Fix typo in my last commit's ChangeLog entry
[official-gcc.git] / libgomp / configure
blob0c9db16d37e607307c9caf2531d7b051a30282e0
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_NEST_LOCK_25_KIND
639 OMP_LOCK_25_KIND
640 OMP_NEST_LOCK_25_ALIGN
641 OMP_NEST_LOCK_25_SIZE
642 OMP_LOCK_25_ALIGN
643 OMP_LOCK_25_SIZE
644 OMP_NEST_LOCK_KIND
645 OMP_LOCK_KIND
646 OMP_NEST_LOCK_ALIGN
647 OMP_NEST_LOCK_SIZE
648 OMP_LOCK_ALIGN
649 OMP_LOCK_SIZE
650 USE_FORTRAN_FALSE
651 USE_FORTRAN_TRUE
652 link_gomp
653 XLDFLAGS
654 XCFLAGS
655 config_path
656 CPU_COUNT
657 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
658 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
659 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
660 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
661 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
662 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
663 OPT_LDFLAGS
664 SECTION_LDFLAGS
665 PLUGIN_HSA_FALSE
666 PLUGIN_HSA_TRUE
667 PLUGIN_NVPTX_FALSE
668 PLUGIN_NVPTX_TRUE
669 offload_additional_lib_paths
670 offload_additional_options
671 offload_targets
672 offload_plugins
673 PLUGIN_HSA_LIBS
674 PLUGIN_HSA_LDFLAGS
675 PLUGIN_HSA_CPPFLAGS
676 PLUGIN_HSA
677 HSA_RUNTIME_LIB
678 HSA_RUNTIME_INCLUDE
679 PLUGIN_NVPTX_LIBS
680 PLUGIN_NVPTX_LDFLAGS
681 PLUGIN_NVPTX_CPPFLAGS
682 PLUGIN_NVPTX
683 CUDA_DRIVER_LIB
684 CUDA_DRIVER_INCLUDE
685 libtool_VERSION
686 ac_ct_FC
687 FCFLAGS
689 MAINT
690 MAINTAINER_MODE_FALSE
691 MAINTAINER_MODE_TRUE
692 enable_static
693 enable_shared
694 lt_host_flags
696 OTOOL64
697 OTOOL
698 LIPO
699 NMEDIT
700 DSYMUTIL
701 OBJDUMP
702 LN_S
704 ac_ct_DUMPBIN
705 DUMPBIN
707 FGREP
708 EGREP
709 GREP
711 LIBTOOL
712 BUILD_INFO_FALSE
713 BUILD_INFO_TRUE
714 PERL
715 RANLIB
717 am__fastdepCC_FALSE
718 am__fastdepCC_TRUE
719 CCDEPMODE
720 am__nodep
721 AMDEPBACKSLASH
722 AMDEP_FALSE
723 AMDEP_TRUE
724 am__quote
725 am__include
726 DEPDIR
727 OBJEXT
728 EXEEXT
729 ac_ct_CC
730 CPPFLAGS
731 LDFLAGS
732 CFLAGS
734 toolexeclibdir
735 toolexecdir
736 multi_basedir
737 AM_BACKSLASH
738 AM_DEFAULT_VERBOSITY
739 AM_DEFAULT_V
740 AM_V
741 am__untar
742 am__tar
743 AMTAR
744 am__leading_dot
745 SET_MAKE
747 mkdir_p
748 MKDIR_P
749 INSTALL_STRIP_PROGRAM
750 STRIP
751 install_sh
752 MAKEINFO
753 AUTOHEADER
754 AUTOMAKE
755 AUTOCONF
756 ACLOCAL
757 VERSION
758 PACKAGE
759 CYGPATH_W
760 am__isrc
761 INSTALL_DATA
762 INSTALL_SCRIPT
763 INSTALL_PROGRAM
764 target_os
765 target_vendor
766 target_cpu
767 target
768 host_os
769 host_vendor
770 host_cpu
771 host
772 build_os
773 build_vendor
774 build_cpu
775 build
776 GENINSRC_FALSE
777 GENINSRC_TRUE
778 target_alias
779 host_alias
780 build_alias
781 LIBS
782 ECHO_T
783 ECHO_N
784 ECHO_C
785 DEFS
786 mandir
787 localedir
788 libdir
789 psdir
790 pdfdir
791 dvidir
792 htmldir
793 infodir
794 docdir
795 oldincludedir
796 includedir
797 localstatedir
798 sharedstatedir
799 sysconfdir
800 datadir
801 datarootdir
802 libexecdir
803 sbindir
804 bindir
805 program_transform_name
806 prefix
807 exec_prefix
808 PACKAGE_URL
809 PACKAGE_BUGREPORT
810 PACKAGE_STRING
811 PACKAGE_VERSION
812 PACKAGE_TARNAME
813 PACKAGE_NAME
814 PATH_SEPARATOR
815 SHELL'
816 ac_subst_files=''
817 ac_user_opts='
818 enable_option_checking
819 enable_version_specific_runtime_libs
820 enable_generated_files_in_srcdir
821 enable_silent_rules
822 enable_multilib
823 enable_dependency_tracking
824 enable_shared
825 enable_static
826 with_pic
827 enable_fast_install
828 with_gnu_ld
829 enable_libtool_lock
830 enable_maintainer_mode
831 with_cuda_driver
832 with_cuda_driver_include
833 with_cuda_driver_lib
834 with_hsa_runtime
835 with_hsa_runtime_include
836 with_hsa_runtime_lib
837 enable_linux_futex
838 enable_tls
839 enable_symvers
840 enable_cet
841 with_gcc_major_version_only
843 ac_precious_vars='build_alias
844 host_alias
845 target_alias
847 CPPFLAGS
849 FCFLAGS
850 LDFLAGS
851 LIBS'
854 # Initialize some variables set by options.
855 ac_init_help=
856 ac_init_version=false
857 ac_unrecognized_opts=
858 ac_unrecognized_sep=
859 # The variables have the same names as the options, with
860 # dashes changed to underlines.
861 cache_file=/dev/null
862 exec_prefix=NONE
863 no_create=
864 no_recursion=
865 prefix=NONE
866 program_prefix=NONE
867 program_suffix=NONE
868 program_transform_name=s,x,x,
869 silent=
870 site=
871 srcdir=
872 verbose=
873 x_includes=NONE
874 x_libraries=NONE
876 # Installation directory options.
877 # These are left unexpanded so users can "make install exec_prefix=/foo"
878 # and all the variables that are supposed to be based on exec_prefix
879 # by default will actually change.
880 # Use braces instead of parens because sh, perl, etc. also accept them.
881 # (The list follows the same order as the GNU Coding Standards.)
882 bindir='${exec_prefix}/bin'
883 sbindir='${exec_prefix}/sbin'
884 libexecdir='${exec_prefix}/libexec'
885 datarootdir='${prefix}/share'
886 datadir='${datarootdir}'
887 sysconfdir='${prefix}/etc'
888 sharedstatedir='${prefix}/com'
889 localstatedir='${prefix}/var'
890 includedir='${prefix}/include'
891 oldincludedir='/usr/include'
892 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
893 infodir='${datarootdir}/info'
894 htmldir='${docdir}'
895 dvidir='${docdir}'
896 pdfdir='${docdir}'
897 psdir='${docdir}'
898 libdir='${exec_prefix}/lib'
899 localedir='${datarootdir}/locale'
900 mandir='${datarootdir}/man'
902 ac_prev=
903 ac_dashdash=
904 for ac_option
906 # If the previous option needs an argument, assign it.
907 if test -n "$ac_prev"; then
908 eval $ac_prev=\$ac_option
909 ac_prev=
910 continue
913 case $ac_option in
914 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
915 *=) ac_optarg= ;;
916 *) ac_optarg=yes ;;
917 esac
919 # Accept the important Cygnus configure options, so we can diagnose typos.
921 case $ac_dashdash$ac_option in
923 ac_dashdash=yes ;;
925 -bindir | --bindir | --bindi | --bind | --bin | --bi)
926 ac_prev=bindir ;;
927 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
928 bindir=$ac_optarg ;;
930 -build | --build | --buil | --bui | --bu)
931 ac_prev=build_alias ;;
932 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
933 build_alias=$ac_optarg ;;
935 -cache-file | --cache-file | --cache-fil | --cache-fi \
936 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
937 ac_prev=cache_file ;;
938 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
939 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
940 cache_file=$ac_optarg ;;
942 --config-cache | -C)
943 cache_file=config.cache ;;
945 -datadir | --datadir | --datadi | --datad)
946 ac_prev=datadir ;;
947 -datadir=* | --datadir=* | --datadi=* | --datad=*)
948 datadir=$ac_optarg ;;
950 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
951 | --dataroo | --dataro | --datar)
952 ac_prev=datarootdir ;;
953 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
954 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
955 datarootdir=$ac_optarg ;;
957 -disable-* | --disable-*)
958 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
959 # Reject names that are not valid shell variable names.
960 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
961 as_fn_error $? "invalid feature name: $ac_useropt"
962 ac_useropt_orig=$ac_useropt
963 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
964 case $ac_user_opts in
966 "enable_$ac_useropt"
967 "*) ;;
968 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
969 ac_unrecognized_sep=', ';;
970 esac
971 eval enable_$ac_useropt=no ;;
973 -docdir | --docdir | --docdi | --doc | --do)
974 ac_prev=docdir ;;
975 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
976 docdir=$ac_optarg ;;
978 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
979 ac_prev=dvidir ;;
980 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
981 dvidir=$ac_optarg ;;
983 -enable-* | --enable-*)
984 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
985 # Reject names that are not valid shell variable names.
986 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
987 as_fn_error $? "invalid feature name: $ac_useropt"
988 ac_useropt_orig=$ac_useropt
989 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
990 case $ac_user_opts in
992 "enable_$ac_useropt"
993 "*) ;;
994 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
995 ac_unrecognized_sep=', ';;
996 esac
997 eval enable_$ac_useropt=\$ac_optarg ;;
999 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1000 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1001 | --exec | --exe | --ex)
1002 ac_prev=exec_prefix ;;
1003 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1004 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1005 | --exec=* | --exe=* | --ex=*)
1006 exec_prefix=$ac_optarg ;;
1008 -gas | --gas | --ga | --g)
1009 # Obsolete; use --with-gas.
1010 with_gas=yes ;;
1012 -help | --help | --hel | --he | -h)
1013 ac_init_help=long ;;
1014 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1015 ac_init_help=recursive ;;
1016 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1017 ac_init_help=short ;;
1019 -host | --host | --hos | --ho)
1020 ac_prev=host_alias ;;
1021 -host=* | --host=* | --hos=* | --ho=*)
1022 host_alias=$ac_optarg ;;
1024 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1025 ac_prev=htmldir ;;
1026 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1027 | --ht=*)
1028 htmldir=$ac_optarg ;;
1030 -includedir | --includedir | --includedi | --included | --include \
1031 | --includ | --inclu | --incl | --inc)
1032 ac_prev=includedir ;;
1033 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1034 | --includ=* | --inclu=* | --incl=* | --inc=*)
1035 includedir=$ac_optarg ;;
1037 -infodir | --infodir | --infodi | --infod | --info | --inf)
1038 ac_prev=infodir ;;
1039 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1040 infodir=$ac_optarg ;;
1042 -libdir | --libdir | --libdi | --libd)
1043 ac_prev=libdir ;;
1044 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1045 libdir=$ac_optarg ;;
1047 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1048 | --libexe | --libex | --libe)
1049 ac_prev=libexecdir ;;
1050 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1051 | --libexe=* | --libex=* | --libe=*)
1052 libexecdir=$ac_optarg ;;
1054 -localedir | --localedir | --localedi | --localed | --locale)
1055 ac_prev=localedir ;;
1056 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1057 localedir=$ac_optarg ;;
1059 -localstatedir | --localstatedir | --localstatedi | --localstated \
1060 | --localstate | --localstat | --localsta | --localst | --locals)
1061 ac_prev=localstatedir ;;
1062 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1063 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1064 localstatedir=$ac_optarg ;;
1066 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1067 ac_prev=mandir ;;
1068 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1069 mandir=$ac_optarg ;;
1071 -nfp | --nfp | --nf)
1072 # Obsolete; use --without-fp.
1073 with_fp=no ;;
1075 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1076 | --no-cr | --no-c | -n)
1077 no_create=yes ;;
1079 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1080 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1081 no_recursion=yes ;;
1083 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1084 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1085 | --oldin | --oldi | --old | --ol | --o)
1086 ac_prev=oldincludedir ;;
1087 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1088 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1089 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1090 oldincludedir=$ac_optarg ;;
1092 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1093 ac_prev=prefix ;;
1094 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1095 prefix=$ac_optarg ;;
1097 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1098 | --program-pre | --program-pr | --program-p)
1099 ac_prev=program_prefix ;;
1100 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1101 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1102 program_prefix=$ac_optarg ;;
1104 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1105 | --program-suf | --program-su | --program-s)
1106 ac_prev=program_suffix ;;
1107 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1108 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1109 program_suffix=$ac_optarg ;;
1111 -program-transform-name | --program-transform-name \
1112 | --program-transform-nam | --program-transform-na \
1113 | --program-transform-n | --program-transform- \
1114 | --program-transform | --program-transfor \
1115 | --program-transfo | --program-transf \
1116 | --program-trans | --program-tran \
1117 | --progr-tra | --program-tr | --program-t)
1118 ac_prev=program_transform_name ;;
1119 -program-transform-name=* | --program-transform-name=* \
1120 | --program-transform-nam=* | --program-transform-na=* \
1121 | --program-transform-n=* | --program-transform-=* \
1122 | --program-transform=* | --program-transfor=* \
1123 | --program-transfo=* | --program-transf=* \
1124 | --program-trans=* | --program-tran=* \
1125 | --progr-tra=* | --program-tr=* | --program-t=*)
1126 program_transform_name=$ac_optarg ;;
1128 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1129 ac_prev=pdfdir ;;
1130 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1131 pdfdir=$ac_optarg ;;
1133 -psdir | --psdir | --psdi | --psd | --ps)
1134 ac_prev=psdir ;;
1135 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1136 psdir=$ac_optarg ;;
1138 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1139 | -silent | --silent | --silen | --sile | --sil)
1140 silent=yes ;;
1142 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1143 ac_prev=sbindir ;;
1144 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1145 | --sbi=* | --sb=*)
1146 sbindir=$ac_optarg ;;
1148 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1149 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1150 | --sharedst | --shareds | --shared | --share | --shar \
1151 | --sha | --sh)
1152 ac_prev=sharedstatedir ;;
1153 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1154 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1155 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1156 | --sha=* | --sh=*)
1157 sharedstatedir=$ac_optarg ;;
1159 -site | --site | --sit)
1160 ac_prev=site ;;
1161 -site=* | --site=* | --sit=*)
1162 site=$ac_optarg ;;
1164 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1165 ac_prev=srcdir ;;
1166 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1167 srcdir=$ac_optarg ;;
1169 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1170 | --syscon | --sysco | --sysc | --sys | --sy)
1171 ac_prev=sysconfdir ;;
1172 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1173 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1174 sysconfdir=$ac_optarg ;;
1176 -target | --target | --targe | --targ | --tar | --ta | --t)
1177 ac_prev=target_alias ;;
1178 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1179 target_alias=$ac_optarg ;;
1181 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1182 verbose=yes ;;
1184 -version | --version | --versio | --versi | --vers | -V)
1185 ac_init_version=: ;;
1187 -with-* | --with-*)
1188 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1189 # Reject names that are not valid shell variable names.
1190 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1191 as_fn_error $? "invalid package name: $ac_useropt"
1192 ac_useropt_orig=$ac_useropt
1193 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1194 case $ac_user_opts in
1196 "with_$ac_useropt"
1197 "*) ;;
1198 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1199 ac_unrecognized_sep=', ';;
1200 esac
1201 eval with_$ac_useropt=\$ac_optarg ;;
1203 -without-* | --without-*)
1204 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1205 # Reject names that are not valid shell variable names.
1206 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1207 as_fn_error $? "invalid package name: $ac_useropt"
1208 ac_useropt_orig=$ac_useropt
1209 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1210 case $ac_user_opts in
1212 "with_$ac_useropt"
1213 "*) ;;
1214 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1215 ac_unrecognized_sep=', ';;
1216 esac
1217 eval with_$ac_useropt=no ;;
1219 --x)
1220 # Obsolete; use --with-x.
1221 with_x=yes ;;
1223 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1224 | --x-incl | --x-inc | --x-in | --x-i)
1225 ac_prev=x_includes ;;
1226 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1227 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1228 x_includes=$ac_optarg ;;
1230 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1231 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1232 ac_prev=x_libraries ;;
1233 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1234 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1235 x_libraries=$ac_optarg ;;
1237 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1238 Try \`$0 --help' for more information"
1241 *=*)
1242 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1243 # Reject names that are not valid shell variable names.
1244 case $ac_envvar in #(
1245 '' | [0-9]* | *[!_$as_cr_alnum]* )
1246 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1247 esac
1248 eval $ac_envvar=\$ac_optarg
1249 export $ac_envvar ;;
1252 # FIXME: should be removed in autoconf 3.0.
1253 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1254 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1255 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1256 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1259 esac
1260 done
1262 if test -n "$ac_prev"; then
1263 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1264 as_fn_error $? "missing argument to $ac_option"
1267 if test -n "$ac_unrecognized_opts"; then
1268 case $enable_option_checking in
1269 no) ;;
1270 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1271 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1272 esac
1275 # Check all directory arguments for consistency.
1276 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1277 datadir sysconfdir sharedstatedir localstatedir includedir \
1278 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1279 libdir localedir mandir
1281 eval ac_val=\$$ac_var
1282 # Remove trailing slashes.
1283 case $ac_val in
1284 */ )
1285 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1286 eval $ac_var=\$ac_val;;
1287 esac
1288 # Be sure to have absolute directory names.
1289 case $ac_val in
1290 [\\/$]* | ?:[\\/]* ) continue;;
1291 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1292 esac
1293 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1294 done
1296 # There might be people who depend on the old broken behavior: `$host'
1297 # used to hold the argument of --host etc.
1298 # FIXME: To remove some day.
1299 build=$build_alias
1300 host=$host_alias
1301 target=$target_alias
1303 # FIXME: To remove some day.
1304 if test "x$host_alias" != x; then
1305 if test "x$build_alias" = x; then
1306 cross_compiling=maybe
1307 elif test "x$build_alias" != "x$host_alias"; then
1308 cross_compiling=yes
1312 ac_tool_prefix=
1313 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1315 test "$silent" = yes && exec 6>/dev/null
1318 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1319 ac_ls_di=`ls -di .` &&
1320 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1321 as_fn_error $? "working directory cannot be determined"
1322 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1323 as_fn_error $? "pwd does not report name of working directory"
1326 # Find the source files, if location was not specified.
1327 if test -z "$srcdir"; then
1328 ac_srcdir_defaulted=yes
1329 # Try the directory containing this script, then the parent directory.
1330 ac_confdir=`$as_dirname -- "$as_myself" ||
1331 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1332 X"$as_myself" : 'X\(//\)[^/]' \| \
1333 X"$as_myself" : 'X\(//\)$' \| \
1334 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1335 $as_echo X"$as_myself" |
1336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1337 s//\1/
1340 /^X\(\/\/\)[^/].*/{
1341 s//\1/
1344 /^X\(\/\/\)$/{
1345 s//\1/
1348 /^X\(\/\).*/{
1349 s//\1/
1352 s/.*/./; q'`
1353 srcdir=$ac_confdir
1354 if test ! -r "$srcdir/$ac_unique_file"; then
1355 srcdir=..
1357 else
1358 ac_srcdir_defaulted=no
1360 if test ! -r "$srcdir/$ac_unique_file"; then
1361 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1362 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1364 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1365 ac_abs_confdir=`(
1366 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1367 pwd)`
1368 # When building in place, set srcdir=.
1369 if test "$ac_abs_confdir" = "$ac_pwd"; then
1370 srcdir=.
1372 # Remove unnecessary trailing slashes from srcdir.
1373 # Double slashes in file names in object file debugging info
1374 # mess up M-x gdb in Emacs.
1375 case $srcdir in
1376 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1377 esac
1378 for ac_var in $ac_precious_vars; do
1379 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1380 eval ac_env_${ac_var}_value=\$${ac_var}
1381 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1382 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1383 done
1386 # Report the --help message.
1388 if test "$ac_init_help" = "long"; then
1389 # Omit some internal or obsolete options to make the list less imposing.
1390 # This message is too long to be a string in the A/UX 3.1 sh.
1391 cat <<_ACEOF
1392 \`configure' configures GNU Offloading and Multi Processing Runtime Library 1.0 to adapt to many kinds of systems.
1394 Usage: $0 [OPTION]... [VAR=VALUE]...
1396 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1397 VAR=VALUE. See below for descriptions of some of the useful variables.
1399 Defaults for the options are specified in brackets.
1401 Configuration:
1402 -h, --help display this help and exit
1403 --help=short display options specific to this package
1404 --help=recursive display the short help of all the included packages
1405 -V, --version display version information and exit
1406 -q, --quiet, --silent do not print \`checking ...' messages
1407 --cache-file=FILE cache test results in FILE [disabled]
1408 -C, --config-cache alias for \`--cache-file=config.cache'
1409 -n, --no-create do not create output files
1410 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1412 Installation directories:
1413 --prefix=PREFIX install architecture-independent files in PREFIX
1414 [$ac_default_prefix]
1415 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1416 [PREFIX]
1418 By default, \`make install' will install all the files in
1419 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1420 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1421 for instance \`--prefix=\$HOME'.
1423 For better control, use the options below.
1425 Fine tuning of the installation directories:
1426 --bindir=DIR user executables [EPREFIX/bin]
1427 --sbindir=DIR system admin executables [EPREFIX/sbin]
1428 --libexecdir=DIR program executables [EPREFIX/libexec]
1429 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1430 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1431 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1432 --libdir=DIR object code libraries [EPREFIX/lib]
1433 --includedir=DIR C header files [PREFIX/include]
1434 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1435 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1436 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1437 --infodir=DIR info documentation [DATAROOTDIR/info]
1438 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1439 --mandir=DIR man documentation [DATAROOTDIR/man]
1440 --docdir=DIR documentation root [DATAROOTDIR/doc/libgomp]
1441 --htmldir=DIR html documentation [DOCDIR]
1442 --dvidir=DIR dvi documentation [DOCDIR]
1443 --pdfdir=DIR pdf documentation [DOCDIR]
1444 --psdir=DIR ps documentation [DOCDIR]
1445 _ACEOF
1447 cat <<\_ACEOF
1449 Program names:
1450 --program-prefix=PREFIX prepend PREFIX to installed program names
1451 --program-suffix=SUFFIX append SUFFIX to installed program names
1452 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1454 System types:
1455 --build=BUILD configure for building on BUILD [guessed]
1456 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1457 --target=TARGET configure for building compilers for TARGET [HOST]
1458 _ACEOF
1461 if test -n "$ac_init_help"; then
1462 case $ac_init_help in
1463 short | recursive ) echo "Configuration of GNU Offloading and Multi Processing Runtime Library 1.0:";;
1464 esac
1465 cat <<\_ACEOF
1467 Optional Features:
1468 --disable-option-checking ignore unrecognized --enable/--with options
1469 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1470 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1471 --enable-version-specific-runtime-libs
1472 Specify that runtime libraries should be installed
1473 in a compiler-specific directory [default=no]
1474 --enable-generated-files-in-srcdir
1475 put copies of generated files in source dir intended
1476 for creating source tarballs for users without
1477 texinfo bison or flex. [default=no]
1478 --enable-silent-rules less verbose build output (undo: "make V=1")
1479 --disable-silent-rules verbose build output (undo: "make V=0")
1480 --enable-multilib build many library versions (default)
1481 --enable-dependency-tracking
1482 do not reject slow dependency extractors
1483 --disable-dependency-tracking
1484 speeds up one-time build
1485 --enable-shared[=PKGS] build shared libraries [default=yes]
1486 --enable-static[=PKGS] build static libraries [default=yes]
1487 --enable-fast-install[=PKGS]
1488 optimize for fast installation [default=yes]
1489 --disable-libtool-lock avoid locking (might break parallel builds)
1490 --enable-maintainer-mode
1491 enable make rules and dependencies not useful (and
1492 sometimes confusing) to the casual installer
1493 --enable-linux-futex use the Linux futex system call [default=default]
1494 --enable-tls Use thread-local storage [default=yes]
1495 --enable-symvers=STYLE enables symbol versioning of the shared library
1496 [default=yes]
1497 --enable-cet enable Intel CET in target libraries [default=no]
1499 Optional Packages:
1500 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1501 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1502 --with-pic try to use only PIC/non-PIC objects [default=use
1503 both]
1504 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1505 --with-cuda-driver=PATH specify prefix directory for installed CUDA driver
1506 package. Equivalent to
1507 --with-cuda-driver-include=PATH/include plus
1508 --with-cuda-driver-lib=PATH/lib
1509 --with-cuda-driver-include=PATH
1510 specify directory for installed CUDA driver include
1511 files
1512 --with-cuda-driver-lib=PATH
1513 specify directory for the installed CUDA driver
1514 library
1515 --with-hsa-runtime=PATH specify prefix directory for installed HSA run-time
1516 package. Equivalent to
1517 --with-hsa-runtime-include=PATH/include plus
1518 --with-hsa-runtime-lib=PATH/lib
1519 --with-hsa-runtime-include=PATH
1520 specify directory for installed HSA run-time include
1521 files
1522 --with-hsa-runtime-lib=PATH
1523 specify directory for the installed HSA run-time
1524 library
1525 --with-gcc-major-version-only
1526 use only GCC major number in filesystem paths
1528 Some influential environment variables:
1529 CC C compiler command
1530 CFLAGS C compiler flags
1531 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1532 nonstandard directory <lib dir>
1533 LIBS libraries to pass to the linker, e.g. -l<library>
1534 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1535 you have headers in a nonstandard directory <include dir>
1536 CPP C preprocessor
1537 FC Fortran compiler command
1538 FCFLAGS Fortran compiler flags
1540 Use these variables to override the choices made by `configure' or to help
1541 it to find libraries and programs with nonstandard names/locations.
1543 Report bugs to the package provider.
1544 GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
1545 General help using GNU software: <http://www.gnu.org/gethelp/>.
1546 _ACEOF
1547 ac_status=$?
1550 if test "$ac_init_help" = "recursive"; then
1551 # If there are subdirs, report their specific --help.
1552 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1553 test -d "$ac_dir" ||
1554 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1555 continue
1556 ac_builddir=.
1558 case "$ac_dir" in
1559 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1561 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1562 # A ".." for each directory in $ac_dir_suffix.
1563 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1564 case $ac_top_builddir_sub in
1565 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1566 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1567 esac ;;
1568 esac
1569 ac_abs_top_builddir=$ac_pwd
1570 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1571 # for backward compatibility:
1572 ac_top_builddir=$ac_top_build_prefix
1574 case $srcdir in
1575 .) # We are building in place.
1576 ac_srcdir=.
1577 ac_top_srcdir=$ac_top_builddir_sub
1578 ac_abs_top_srcdir=$ac_pwd ;;
1579 [\\/]* | ?:[\\/]* ) # Absolute name.
1580 ac_srcdir=$srcdir$ac_dir_suffix;
1581 ac_top_srcdir=$srcdir
1582 ac_abs_top_srcdir=$srcdir ;;
1583 *) # Relative name.
1584 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1585 ac_top_srcdir=$ac_top_build_prefix$srcdir
1586 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1587 esac
1588 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1590 cd "$ac_dir" || { ac_status=$?; continue; }
1591 # Check for guested configure.
1592 if test -f "$ac_srcdir/configure.gnu"; then
1593 echo &&
1594 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1595 elif test -f "$ac_srcdir/configure"; then
1596 echo &&
1597 $SHELL "$ac_srcdir/configure" --help=recursive
1598 else
1599 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1600 fi || ac_status=$?
1601 cd "$ac_pwd" || { ac_status=$?; break; }
1602 done
1605 test -n "$ac_init_help" && exit $ac_status
1606 if $ac_init_version; then
1607 cat <<\_ACEOF
1608 GNU Offloading and Multi Processing Runtime Library configure 1.0
1609 generated by GNU Autoconf 2.69
1611 Copyright (C) 2012 Free Software Foundation, Inc.
1612 This configure script is free software; the Free Software Foundation
1613 gives unlimited permission to copy, distribute and modify it.
1614 _ACEOF
1615 exit
1618 ## ------------------------ ##
1619 ## Autoconf initialization. ##
1620 ## ------------------------ ##
1622 # ac_fn_c_try_compile LINENO
1623 # --------------------------
1624 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1625 ac_fn_c_try_compile ()
1627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628 rm -f conftest.$ac_objext
1629 if { { ac_try="$ac_compile"
1630 case "(($ac_try" in
1631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1632 *) ac_try_echo=$ac_try;;
1633 esac
1634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1635 $as_echo "$ac_try_echo"; } >&5
1636 (eval "$ac_compile") 2>conftest.err
1637 ac_status=$?
1638 if test -s conftest.err; then
1639 grep -v '^ *+' conftest.err >conftest.er1
1640 cat conftest.er1 >&5
1641 mv -f conftest.er1 conftest.err
1643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1644 test $ac_status = 0; } && {
1645 test -z "$ac_c_werror_flag" ||
1646 test ! -s conftest.err
1647 } && test -s conftest.$ac_objext; then :
1648 ac_retval=0
1649 else
1650 $as_echo "$as_me: failed program was:" >&5
1651 sed 's/^/| /' conftest.$ac_ext >&5
1653 ac_retval=1
1655 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1656 as_fn_set_status $ac_retval
1658 } # ac_fn_c_try_compile
1660 # ac_fn_c_try_link LINENO
1661 # -----------------------
1662 # Try to link conftest.$ac_ext, and return whether this succeeded.
1663 ac_fn_c_try_link ()
1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666 rm -f conftest.$ac_objext conftest$ac_exeext
1667 if { { ac_try="$ac_link"
1668 case "(($ac_try" in
1669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1670 *) ac_try_echo=$ac_try;;
1671 esac
1672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673 $as_echo "$ac_try_echo"; } >&5
1674 (eval "$ac_link") 2>conftest.err
1675 ac_status=$?
1676 if test -s conftest.err; then
1677 grep -v '^ *+' conftest.err >conftest.er1
1678 cat conftest.er1 >&5
1679 mv -f conftest.er1 conftest.err
1681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682 test $ac_status = 0; } && {
1683 test -z "$ac_c_werror_flag" ||
1684 test ! -s conftest.err
1685 } && test -s conftest$ac_exeext && {
1686 test "$cross_compiling" = yes ||
1687 test -x conftest$ac_exeext
1688 }; then :
1689 ac_retval=0
1690 else
1691 $as_echo "$as_me: failed program was:" >&5
1692 sed 's/^/| /' conftest.$ac_ext >&5
1694 ac_retval=1
1696 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1697 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1698 # interfere with the next link command; also delete a directory that is
1699 # left behind by Apple's compiler. We do this before executing the actions.
1700 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1702 as_fn_set_status $ac_retval
1704 } # ac_fn_c_try_link
1706 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1707 # -------------------------------------------------------
1708 # Tests whether HEADER exists and can be compiled using the include files in
1709 # INCLUDES, setting the cache variable VAR accordingly.
1710 ac_fn_c_check_header_compile ()
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1714 $as_echo_n "checking for $2... " >&6; }
1715 if eval \${$3+:} false; then :
1716 $as_echo_n "(cached) " >&6
1717 else
1718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1719 /* end confdefs.h. */
1721 #include <$2>
1722 _ACEOF
1723 if ac_fn_c_try_compile "$LINENO"; then :
1724 eval "$3=yes"
1725 else
1726 eval "$3=no"
1728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1730 eval ac_res=\$$3
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1732 $as_echo "$ac_res" >&6; }
1733 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1735 } # ac_fn_c_check_header_compile
1737 # ac_fn_c_try_cpp LINENO
1738 # ----------------------
1739 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1740 ac_fn_c_try_cpp ()
1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743 if { { ac_try="$ac_cpp conftest.$ac_ext"
1744 case "(($ac_try" in
1745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1746 *) ac_try_echo=$ac_try;;
1747 esac
1748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1749 $as_echo "$ac_try_echo"; } >&5
1750 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1751 ac_status=$?
1752 if test -s conftest.err; then
1753 grep -v '^ *+' conftest.err >conftest.er1
1754 cat conftest.er1 >&5
1755 mv -f conftest.er1 conftest.err
1757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1758 test $ac_status = 0; } > conftest.i && {
1759 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1760 test ! -s conftest.err
1761 }; then :
1762 ac_retval=0
1763 else
1764 $as_echo "$as_me: failed program was:" >&5
1765 sed 's/^/| /' conftest.$ac_ext >&5
1767 ac_retval=1
1769 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1770 as_fn_set_status $ac_retval
1772 } # ac_fn_c_try_cpp
1774 # ac_fn_c_try_run LINENO
1775 # ----------------------
1776 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1777 # that executables *can* be run.
1778 ac_fn_c_try_run ()
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 if { { ac_try="$ac_link"
1782 case "(($ac_try" in
1783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1784 *) ac_try_echo=$ac_try;;
1785 esac
1786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787 $as_echo "$ac_try_echo"; } >&5
1788 (eval "$ac_link") 2>&5
1789 ac_status=$?
1790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1792 { { case "(($ac_try" in
1793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1794 *) ac_try_echo=$ac_try;;
1795 esac
1796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1797 $as_echo "$ac_try_echo"; } >&5
1798 (eval "$ac_try") 2>&5
1799 ac_status=$?
1800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801 test $ac_status = 0; }; }; then :
1802 ac_retval=0
1803 else
1804 $as_echo "$as_me: program exited with status $ac_status" >&5
1805 $as_echo "$as_me: failed program was:" >&5
1806 sed 's/^/| /' conftest.$ac_ext >&5
1808 ac_retval=$ac_status
1810 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812 as_fn_set_status $ac_retval
1814 } # ac_fn_c_try_run
1816 # ac_fn_c_check_func LINENO FUNC VAR
1817 # ----------------------------------
1818 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1819 ac_fn_c_check_func ()
1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1823 $as_echo_n "checking for $2... " >&6; }
1824 if eval \${$3+:} false; then :
1825 $as_echo_n "(cached) " >&6
1826 else
1827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828 /* end confdefs.h. */
1829 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1831 #define $2 innocuous_$2
1833 /* System header to define __stub macros and hopefully few prototypes,
1834 which can conflict with char $2 (); below.
1835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1836 <limits.h> exists even on freestanding compilers. */
1838 #ifdef __STDC__
1839 # include <limits.h>
1840 #else
1841 # include <assert.h>
1842 #endif
1844 #undef $2
1846 /* Override any GCC internal prototype to avoid an error.
1847 Use char because int might match the return type of a GCC
1848 builtin and then its argument prototype would still apply. */
1849 #ifdef __cplusplus
1850 extern "C"
1851 #endif
1852 char $2 ();
1853 /* The GNU C library defines this for functions which it implements
1854 to always fail with ENOSYS. Some functions are actually named
1855 something starting with __ and the normal name is an alias. */
1856 #if defined __stub_$2 || defined __stub___$2
1857 choke me
1858 #endif
1861 main ()
1863 return $2 ();
1865 return 0;
1867 _ACEOF
1868 if ac_fn_c_try_link "$LINENO"; then :
1869 eval "$3=yes"
1870 else
1871 eval "$3=no"
1873 rm -f core conftest.err conftest.$ac_objext \
1874 conftest$ac_exeext conftest.$ac_ext
1876 eval ac_res=\$$3
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1878 $as_echo "$ac_res" >&6; }
1879 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1881 } # ac_fn_c_check_func
1883 # ac_fn_fc_try_compile LINENO
1884 # ---------------------------
1885 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1886 ac_fn_fc_try_compile ()
1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889 rm -f conftest.$ac_objext
1890 if { { ac_try="$ac_compile"
1891 case "(($ac_try" in
1892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1893 *) ac_try_echo=$ac_try;;
1894 esac
1895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1896 $as_echo "$ac_try_echo"; } >&5
1897 (eval "$ac_compile") 2>conftest.err
1898 ac_status=$?
1899 if test -s conftest.err; then
1900 grep -v '^ *+' conftest.err >conftest.er1
1901 cat conftest.er1 >&5
1902 mv -f conftest.er1 conftest.err
1904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1905 test $ac_status = 0; } && {
1906 test -z "$ac_fc_werror_flag" ||
1907 test ! -s conftest.err
1908 } && test -s conftest.$ac_objext; then :
1909 ac_retval=0
1910 else
1911 $as_echo "$as_me: failed program was:" >&5
1912 sed 's/^/| /' conftest.$ac_ext >&5
1914 ac_retval=1
1916 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1917 as_fn_set_status $ac_retval
1919 } # ac_fn_fc_try_compile
1921 # ac_fn_fc_try_link LINENO
1922 # ------------------------
1923 # Try to link conftest.$ac_ext, and return whether this succeeded.
1924 ac_fn_fc_try_link ()
1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927 rm -f conftest.$ac_objext conftest$ac_exeext
1928 if { { ac_try="$ac_link"
1929 case "(($ac_try" in
1930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1931 *) ac_try_echo=$ac_try;;
1932 esac
1933 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1934 $as_echo "$ac_try_echo"; } >&5
1935 (eval "$ac_link") 2>conftest.err
1936 ac_status=$?
1937 if test -s conftest.err; then
1938 grep -v '^ *+' conftest.err >conftest.er1
1939 cat conftest.er1 >&5
1940 mv -f conftest.er1 conftest.err
1942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1943 test $ac_status = 0; } && {
1944 test -z "$ac_fc_werror_flag" ||
1945 test ! -s conftest.err
1946 } && test -s conftest$ac_exeext && {
1947 test "$cross_compiling" = yes ||
1948 test -x conftest$ac_exeext
1949 }; then :
1950 ac_retval=0
1951 else
1952 $as_echo "$as_me: failed program was:" >&5
1953 sed 's/^/| /' conftest.$ac_ext >&5
1955 ac_retval=1
1957 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1958 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1959 # interfere with the next link command; also delete a directory that is
1960 # left behind by Apple's compiler. We do this before executing the actions.
1961 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1962 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1963 as_fn_set_status $ac_retval
1965 } # ac_fn_fc_try_link
1967 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1968 # -------------------------------------------------------
1969 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1970 # the include files in INCLUDES and setting the cache variable VAR
1971 # accordingly.
1972 ac_fn_c_check_header_mongrel ()
1974 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1975 if eval \${$3+:} false; then :
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1977 $as_echo_n "checking for $2... " >&6; }
1978 if eval \${$3+:} false; then :
1979 $as_echo_n "(cached) " >&6
1981 eval ac_res=\$$3
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1983 $as_echo "$ac_res" >&6; }
1984 else
1985 # Is the header compilable?
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1987 $as_echo_n "checking $2 usability... " >&6; }
1988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1989 /* end confdefs.h. */
1991 #include <$2>
1992 _ACEOF
1993 if ac_fn_c_try_compile "$LINENO"; then :
1994 ac_header_compiler=yes
1995 else
1996 ac_header_compiler=no
1998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2000 $as_echo "$ac_header_compiler" >&6; }
2002 # Is the header present?
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2004 $as_echo_n "checking $2 presence... " >&6; }
2005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2006 /* end confdefs.h. */
2007 #include <$2>
2008 _ACEOF
2009 if ac_fn_c_try_cpp "$LINENO"; then :
2010 ac_header_preproc=yes
2011 else
2012 ac_header_preproc=no
2014 rm -f conftest.err conftest.i conftest.$ac_ext
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2016 $as_echo "$ac_header_preproc" >&6; }
2018 # So? What about this header?
2019 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2020 yes:no: )
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2022 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2024 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2026 no:yes:* )
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2028 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2030 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2032 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2034 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2036 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2038 esac
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2040 $as_echo_n "checking for $2... " >&6; }
2041 if eval \${$3+:} false; then :
2042 $as_echo_n "(cached) " >&6
2043 else
2044 eval "$3=\$ac_header_compiler"
2046 eval ac_res=\$$3
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2048 $as_echo "$ac_res" >&6; }
2050 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2052 } # ac_fn_c_check_header_mongrel
2054 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2055 # -------------------------------------------
2056 # Tests whether TYPE exists after having included INCLUDES, setting cache
2057 # variable VAR accordingly.
2058 ac_fn_c_check_type ()
2060 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2062 $as_echo_n "checking for $2... " >&6; }
2063 if eval \${$3+:} false; then :
2064 $as_echo_n "(cached) " >&6
2065 else
2066 eval "$3=no"
2067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2068 /* end confdefs.h. */
2071 main ()
2073 if (sizeof ($2))
2074 return 0;
2076 return 0;
2078 _ACEOF
2079 if ac_fn_c_try_compile "$LINENO"; then :
2080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081 /* end confdefs.h. */
2084 main ()
2086 if (sizeof (($2)))
2087 return 0;
2089 return 0;
2091 _ACEOF
2092 if ac_fn_c_try_compile "$LINENO"; then :
2094 else
2095 eval "$3=yes"
2097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2101 eval ac_res=\$$3
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2103 $as_echo "$ac_res" >&6; }
2104 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2106 } # ac_fn_c_check_type
2108 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2109 # --------------------------------------------
2110 # Tries to find the compile-time value of EXPR in a program that includes
2111 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2112 # computed
2113 ac_fn_c_compute_int ()
2115 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2116 if test "$cross_compiling" = yes; then
2117 # Depending upon the size, compute the lo and hi bounds.
2118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119 /* end confdefs.h. */
2122 main ()
2124 static int test_array [1 - 2 * !(($2) >= 0)];
2125 test_array [0] = 0;
2126 return test_array [0];
2129 return 0;
2131 _ACEOF
2132 if ac_fn_c_try_compile "$LINENO"; then :
2133 ac_lo=0 ac_mid=0
2134 while :; do
2135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136 /* end confdefs.h. */
2139 main ()
2141 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2142 test_array [0] = 0;
2143 return test_array [0];
2146 return 0;
2148 _ACEOF
2149 if ac_fn_c_try_compile "$LINENO"; then :
2150 ac_hi=$ac_mid; break
2151 else
2152 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2153 if test $ac_lo -le $ac_mid; then
2154 ac_lo= ac_hi=
2155 break
2157 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2160 done
2161 else
2162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2163 /* end confdefs.h. */
2166 main ()
2168 static int test_array [1 - 2 * !(($2) < 0)];
2169 test_array [0] = 0;
2170 return test_array [0];
2173 return 0;
2175 _ACEOF
2176 if ac_fn_c_try_compile "$LINENO"; then :
2177 ac_hi=-1 ac_mid=-1
2178 while :; do
2179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2180 /* end confdefs.h. */
2183 main ()
2185 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2186 test_array [0] = 0;
2187 return test_array [0];
2190 return 0;
2192 _ACEOF
2193 if ac_fn_c_try_compile "$LINENO"; then :
2194 ac_lo=$ac_mid; break
2195 else
2196 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2197 if test $ac_mid -le $ac_hi; then
2198 ac_lo= ac_hi=
2199 break
2201 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2204 done
2205 else
2206 ac_lo= ac_hi=
2208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2211 # Binary search between lo and hi bounds.
2212 while test "x$ac_lo" != "x$ac_hi"; do
2213 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2215 /* end confdefs.h. */
2218 main ()
2220 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2221 test_array [0] = 0;
2222 return test_array [0];
2225 return 0;
2227 _ACEOF
2228 if ac_fn_c_try_compile "$LINENO"; then :
2229 ac_hi=$ac_mid
2230 else
2231 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2234 done
2235 case $ac_lo in #((
2236 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2237 '') ac_retval=1 ;;
2238 esac
2239 else
2240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2241 /* end confdefs.h. */
2243 static long int longval () { return $2; }
2244 static unsigned long int ulongval () { return $2; }
2245 #include <stdio.h>
2246 #include <stdlib.h>
2248 main ()
2251 FILE *f = fopen ("conftest.val", "w");
2252 if (! f)
2253 return 1;
2254 if (($2) < 0)
2256 long int i = longval ();
2257 if (i != ($2))
2258 return 1;
2259 fprintf (f, "%ld", i);
2261 else
2263 unsigned long int i = ulongval ();
2264 if (i != ($2))
2265 return 1;
2266 fprintf (f, "%lu", i);
2268 /* Do not output a trailing newline, as this causes \r\n confusion
2269 on some platforms. */
2270 return ferror (f) || fclose (f) != 0;
2273 return 0;
2275 _ACEOF
2276 if ac_fn_c_try_run "$LINENO"; then :
2277 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2278 else
2279 ac_retval=1
2281 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2282 conftest.$ac_objext conftest.beam conftest.$ac_ext
2283 rm -f conftest.val
2286 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2287 as_fn_set_status $ac_retval
2289 } # ac_fn_c_compute_int
2290 cat >config.log <<_ACEOF
2291 This file contains any messages produced by compilers while
2292 running configure, to aid debugging if configure makes a mistake.
2294 It was created by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
2295 generated by GNU Autoconf 2.69. Invocation command line was
2297 $ $0 $@
2299 _ACEOF
2300 exec 5>>config.log
2302 cat <<_ASUNAME
2303 ## --------- ##
2304 ## Platform. ##
2305 ## --------- ##
2307 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2308 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2309 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2310 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2311 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2313 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2314 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2316 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2317 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2318 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2319 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2320 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2321 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2322 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2324 _ASUNAME
2326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2327 for as_dir in $PATH
2329 IFS=$as_save_IFS
2330 test -z "$as_dir" && as_dir=.
2331 $as_echo "PATH: $as_dir"
2332 done
2333 IFS=$as_save_IFS
2335 } >&5
2337 cat >&5 <<_ACEOF
2340 ## ----------- ##
2341 ## Core tests. ##
2342 ## ----------- ##
2344 _ACEOF
2347 # Keep a trace of the command line.
2348 # Strip out --no-create and --no-recursion so they do not pile up.
2349 # Strip out --silent because we don't want to record it for future runs.
2350 # Also quote any args containing shell meta-characters.
2351 # Make two passes to allow for proper duplicate-argument suppression.
2352 ac_configure_args=
2353 ac_configure_args0=
2354 ac_configure_args1=
2355 ac_must_keep_next=false
2356 for ac_pass in 1 2
2358 for ac_arg
2360 case $ac_arg in
2361 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2362 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2363 | -silent | --silent | --silen | --sile | --sil)
2364 continue ;;
2365 *\'*)
2366 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2367 esac
2368 case $ac_pass in
2369 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2371 as_fn_append ac_configure_args1 " '$ac_arg'"
2372 if test $ac_must_keep_next = true; then
2373 ac_must_keep_next=false # Got value, back to normal.
2374 else
2375 case $ac_arg in
2376 *=* | --config-cache | -C | -disable-* | --disable-* \
2377 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2378 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2379 | -with-* | --with-* | -without-* | --without-* | --x)
2380 case "$ac_configure_args0 " in
2381 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2382 esac
2384 -* ) ac_must_keep_next=true ;;
2385 esac
2387 as_fn_append ac_configure_args " '$ac_arg'"
2389 esac
2390 done
2391 done
2392 { ac_configure_args0=; unset ac_configure_args0;}
2393 { ac_configure_args1=; unset ac_configure_args1;}
2395 # When interrupted or exit'd, cleanup temporary files, and complete
2396 # config.log. We remove comments because anyway the quotes in there
2397 # would cause problems or look ugly.
2398 # WARNING: Use '\'' to represent an apostrophe within the trap.
2399 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2400 trap 'exit_status=$?
2401 # Save into config.log some information that might help in debugging.
2403 echo
2405 $as_echo "## ---------------- ##
2406 ## Cache variables. ##
2407 ## ---------------- ##"
2408 echo
2409 # The following way of writing the cache mishandles newlines in values,
2411 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2412 eval ac_val=\$$ac_var
2413 case $ac_val in #(
2414 *${as_nl}*)
2415 case $ac_var in #(
2416 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2417 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2418 esac
2419 case $ac_var in #(
2420 _ | IFS | as_nl) ;; #(
2421 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2422 *) { eval $ac_var=; unset $ac_var;} ;;
2423 esac ;;
2424 esac
2425 done
2426 (set) 2>&1 |
2427 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2428 *${as_nl}ac_space=\ *)
2429 sed -n \
2430 "s/'\''/'\''\\\\'\'''\''/g;
2431 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2432 ;; #(
2434 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2436 esac |
2437 sort
2439 echo
2441 $as_echo "## ----------------- ##
2442 ## Output variables. ##
2443 ## ----------------- ##"
2444 echo
2445 for ac_var in $ac_subst_vars
2447 eval ac_val=\$$ac_var
2448 case $ac_val in
2449 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2450 esac
2451 $as_echo "$ac_var='\''$ac_val'\''"
2452 done | sort
2453 echo
2455 if test -n "$ac_subst_files"; then
2456 $as_echo "## ------------------- ##
2457 ## File substitutions. ##
2458 ## ------------------- ##"
2459 echo
2460 for ac_var in $ac_subst_files
2462 eval ac_val=\$$ac_var
2463 case $ac_val in
2464 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2465 esac
2466 $as_echo "$ac_var='\''$ac_val'\''"
2467 done | sort
2468 echo
2471 if test -s confdefs.h; then
2472 $as_echo "## ----------- ##
2473 ## confdefs.h. ##
2474 ## ----------- ##"
2475 echo
2476 cat confdefs.h
2477 echo
2479 test "$ac_signal" != 0 &&
2480 $as_echo "$as_me: caught signal $ac_signal"
2481 $as_echo "$as_me: exit $exit_status"
2482 } >&5
2483 rm -f core *.core core.conftest.* &&
2484 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2485 exit $exit_status
2487 for ac_signal in 1 2 13 15; do
2488 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2489 done
2490 ac_signal=0
2492 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2493 rm -f -r conftest* confdefs.h
2495 $as_echo "/* confdefs.h */" > confdefs.h
2497 # Predefined preprocessor variables.
2499 cat >>confdefs.h <<_ACEOF
2500 #define PACKAGE_NAME "$PACKAGE_NAME"
2501 _ACEOF
2503 cat >>confdefs.h <<_ACEOF
2504 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2505 _ACEOF
2507 cat >>confdefs.h <<_ACEOF
2508 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2509 _ACEOF
2511 cat >>confdefs.h <<_ACEOF
2512 #define PACKAGE_STRING "$PACKAGE_STRING"
2513 _ACEOF
2515 cat >>confdefs.h <<_ACEOF
2516 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2517 _ACEOF
2519 cat >>confdefs.h <<_ACEOF
2520 #define PACKAGE_URL "$PACKAGE_URL"
2521 _ACEOF
2524 # Let the site file select an alternate cache file if it wants to.
2525 # Prefer an explicitly selected file to automatically selected ones.
2526 ac_site_file1=NONE
2527 ac_site_file2=NONE
2528 if test -n "$CONFIG_SITE"; then
2529 # We do not want a PATH search for config.site.
2530 case $CONFIG_SITE in #((
2531 -*) ac_site_file1=./$CONFIG_SITE;;
2532 */*) ac_site_file1=$CONFIG_SITE;;
2533 *) ac_site_file1=./$CONFIG_SITE;;
2534 esac
2535 elif test "x$prefix" != xNONE; then
2536 ac_site_file1=$prefix/share/config.site
2537 ac_site_file2=$prefix/etc/config.site
2538 else
2539 ac_site_file1=$ac_default_prefix/share/config.site
2540 ac_site_file2=$ac_default_prefix/etc/config.site
2542 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2544 test "x$ac_site_file" = xNONE && continue
2545 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2547 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2548 sed 's/^/| /' "$ac_site_file" >&5
2549 . "$ac_site_file" \
2550 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2551 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2552 as_fn_error $? "failed to load site script $ac_site_file
2553 See \`config.log' for more details" "$LINENO" 5; }
2555 done
2557 if test -r "$cache_file"; then
2558 # Some versions of bash will fail to source /dev/null (special files
2559 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2560 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2562 $as_echo "$as_me: loading cache $cache_file" >&6;}
2563 case $cache_file in
2564 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2565 *) . "./$cache_file";;
2566 esac
2568 else
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2570 $as_echo "$as_me: creating cache $cache_file" >&6;}
2571 >$cache_file
2574 as_fn_append ac_header_list " unistd.h"
2575 as_fn_append ac_func_list " secure_getenv"
2576 as_fn_append ac_func_list " __secure_getenv"
2577 as_fn_append ac_func_list " getuid"
2578 as_fn_append ac_func_list " geteuid"
2579 as_fn_append ac_func_list " getgid"
2580 as_fn_append ac_func_list " getegid"
2581 # Check that the precious variables saved in the cache have kept the same
2582 # value.
2583 ac_cache_corrupted=false
2584 for ac_var in $ac_precious_vars; do
2585 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2586 eval ac_new_set=\$ac_env_${ac_var}_set
2587 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2588 eval ac_new_val=\$ac_env_${ac_var}_value
2589 case $ac_old_set,$ac_new_set in
2590 set,)
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2592 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2593 ac_cache_corrupted=: ;;
2594 ,set)
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2596 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2597 ac_cache_corrupted=: ;;
2598 ,);;
2600 if test "x$ac_old_val" != "x$ac_new_val"; then
2601 # differences in whitespace do not lead to failure.
2602 ac_old_val_w=`echo x $ac_old_val`
2603 ac_new_val_w=`echo x $ac_new_val`
2604 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2606 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2607 ac_cache_corrupted=:
2608 else
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2610 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2611 eval $ac_var=\$ac_old_val
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2614 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2616 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2617 fi;;
2618 esac
2619 # Pass precious variables to config.status.
2620 if test "$ac_new_set" = set; then
2621 case $ac_new_val in
2622 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2623 *) ac_arg=$ac_var=$ac_new_val ;;
2624 esac
2625 case " $ac_configure_args " in
2626 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2627 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2628 esac
2630 done
2631 if $ac_cache_corrupted; then
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2633 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2635 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2636 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2638 ## -------------------- ##
2639 ## Main body of script. ##
2640 ## -------------------- ##
2642 ac_ext=c
2643 ac_cpp='$CPP $CPPFLAGS'
2644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2652 ac_config_headers="$ac_config_headers config.h"
2655 # -------
2656 # Options
2657 # -------
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2660 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2661 # Check whether --enable-version-specific-runtime-libs was given.
2662 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2663 enableval=$enable_version_specific_runtime_libs;
2664 case "$enableval" in
2665 yes|no) ;;
2666 *) as_fn_error $? "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2667 esac
2669 else
2670 enable_version_specific_runtime_libs=no
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2675 $as_echo "$enable_version_specific_runtime_libs" >&6; }
2677 # We would like our source tree to be readonly. However when releases or
2678 # pre-releases are generated, the flex/bison generated files as well as the
2679 # various formats of manuals need to be included along with the rest of the
2680 # sources. Therefore we have --enable-generated-files-in-srcdir to do
2681 # just that.
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2683 $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2684 # Check whether --enable-generated-files-in-srcdir was given.
2685 if test "${enable_generated_files_in_srcdir+set}" = set; then :
2686 enableval=$enable_generated_files_in_srcdir;
2687 case "$enableval" in
2688 yes|no) ;;
2689 *) as_fn_error $? "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2690 esac
2692 else
2693 enable_generated_files_in_srcdir=no
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2698 $as_echo "$enable_generated_files_in_srcdir" >&6; }
2699 if test "$enable_generated_files_in_srcdir" = yes; then
2700 GENINSRC_TRUE=
2701 GENINSRC_FALSE='#'
2702 else
2703 GENINSRC_TRUE='#'
2704 GENINSRC_FALSE=
2709 # -------
2710 # -------
2712 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2714 # You will slowly go insane if you do not grok the following fact: when
2715 # building this library, the top-level /target/ becomes the library's /host/.
2717 # configure then causes --target to default to --host, exactly like any
2718 # other package using autoconf. Therefore, 'target' and 'host' will
2719 # always be the same. This makes sense both for native and cross compilers
2720 # just think about it for a little while. :-)
2722 # Also, if this library is being configured as part of a cross compiler, the
2723 # top-level configure script will pass the "real" host as $with_cross_host.
2725 # Do not delete or change the following two lines. For why, see
2726 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2727 ac_aux_dir=
2728 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2729 if test -f "$ac_dir/install-sh"; then
2730 ac_aux_dir=$ac_dir
2731 ac_install_sh="$ac_aux_dir/install-sh -c"
2732 break
2733 elif test -f "$ac_dir/install.sh"; then
2734 ac_aux_dir=$ac_dir
2735 ac_install_sh="$ac_aux_dir/install.sh -c"
2736 break
2737 elif test -f "$ac_dir/shtool"; then
2738 ac_aux_dir=$ac_dir
2739 ac_install_sh="$ac_aux_dir/shtool install -c"
2740 break
2742 done
2743 if test -z "$ac_aux_dir"; then
2744 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2747 # These three variables are undocumented and unsupported,
2748 # and are intended to be withdrawn in a future Autoconf release.
2749 # They can cause serious problems if a builder's source tree is in a directory
2750 # whose full name contains unusual characters.
2751 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2752 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2753 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2756 # Make sure we can run config.sub.
2757 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2758 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2761 $as_echo_n "checking build system type... " >&6; }
2762 if ${ac_cv_build+:} false; then :
2763 $as_echo_n "(cached) " >&6
2764 else
2765 ac_build_alias=$build_alias
2766 test "x$ac_build_alias" = x &&
2767 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2768 test "x$ac_build_alias" = x &&
2769 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2770 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2771 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2775 $as_echo "$ac_cv_build" >&6; }
2776 case $ac_cv_build in
2777 *-*-*) ;;
2778 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2779 esac
2780 build=$ac_cv_build
2781 ac_save_IFS=$IFS; IFS='-'
2782 set x $ac_cv_build
2783 shift
2784 build_cpu=$1
2785 build_vendor=$2
2786 shift; shift
2787 # Remember, the first character of IFS is used to create $*,
2788 # except with old shells:
2789 build_os=$*
2790 IFS=$ac_save_IFS
2791 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2795 $as_echo_n "checking host system type... " >&6; }
2796 if ${ac_cv_host+:} false; then :
2797 $as_echo_n "(cached) " >&6
2798 else
2799 if test "x$host_alias" = x; then
2800 ac_cv_host=$ac_cv_build
2801 else
2802 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2803 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2808 $as_echo "$ac_cv_host" >&6; }
2809 case $ac_cv_host in
2810 *-*-*) ;;
2811 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2812 esac
2813 host=$ac_cv_host
2814 ac_save_IFS=$IFS; IFS='-'
2815 set x $ac_cv_host
2816 shift
2817 host_cpu=$1
2818 host_vendor=$2
2819 shift; shift
2820 # Remember, the first character of IFS is used to create $*,
2821 # except with old shells:
2822 host_os=$*
2823 IFS=$ac_save_IFS
2824 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2828 $as_echo_n "checking target system type... " >&6; }
2829 if ${ac_cv_target+:} false; then :
2830 $as_echo_n "(cached) " >&6
2831 else
2832 if test "x$target_alias" = x; then
2833 ac_cv_target=$ac_cv_host
2834 else
2835 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2836 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2841 $as_echo "$ac_cv_target" >&6; }
2842 case $ac_cv_target in
2843 *-*-*) ;;
2844 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2845 esac
2846 target=$ac_cv_target
2847 ac_save_IFS=$IFS; IFS='-'
2848 set x $ac_cv_target
2849 shift
2850 target_cpu=$1
2851 target_vendor=$2
2852 shift; shift
2853 # Remember, the first character of IFS is used to create $*,
2854 # except with old shells:
2855 target_os=$*
2856 IFS=$ac_save_IFS
2857 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2860 # The aliases save the names the user supplied, while $host etc.
2861 # will get canonicalized.
2862 test -n "$target_alias" &&
2863 test "$program_prefix$program_suffix$program_transform_name" = \
2864 NONENONEs,x,x, &&
2865 program_prefix=${target_alias}-
2867 target_alias=${target_alias-$host_alias}
2869 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2870 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2871 # 1.9.0: minimum required version
2872 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2873 # of other PACKAGE_* variables will, however, and there's nothing
2874 # we can do about that; they come from AC_INIT).
2875 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2876 # file in the top srcdir, etc, etc), so stop complaining.
2877 # no-dist: we don't want 'dist' and related rules.
2878 # -Wall: turns on all automake warnings...
2879 # -Wno-portability: ...except this one, since GNU make is required.
2880 # -Wno-override: ... and this one, since we do want this in testsuite.
2881 am__api_version='1.15'
2883 # Find a good install program. We prefer a C program (faster),
2884 # so one script is as good as another. But avoid the broken or
2885 # incompatible versions:
2886 # SysV /etc/install, /usr/sbin/install
2887 # SunOS /usr/etc/install
2888 # IRIX /sbin/install
2889 # AIX /bin/install
2890 # AmigaOS /C/install, which installs bootblocks on floppy discs
2891 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2892 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2893 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2894 # OS/2's system install, which has a completely different semantic
2895 # ./install, which can be erroneously created by make from ./install.sh.
2896 # Reject install programs that cannot install multiple files.
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2898 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2899 if test -z "$INSTALL"; then
2900 if ${ac_cv_path_install+:} false; then :
2901 $as_echo_n "(cached) " >&6
2902 else
2903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2904 for as_dir in $PATH
2906 IFS=$as_save_IFS
2907 test -z "$as_dir" && as_dir=.
2908 # Account for people who put trailing slashes in PATH elements.
2909 case $as_dir/ in #((
2910 ./ | .// | /[cC]/* | \
2911 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2912 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2913 /usr/ucb/* ) ;;
2915 # OSF1 and SCO ODT 3.0 have their own names for install.
2916 # Don't use installbsd from OSF since it installs stuff as root
2917 # by default.
2918 for ac_prog in ginstall scoinst install; do
2919 for ac_exec_ext in '' $ac_executable_extensions; do
2920 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2921 if test $ac_prog = install &&
2922 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2923 # AIX install. It has an incompatible calling convention.
2925 elif test $ac_prog = install &&
2926 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2927 # program-specific install script used by HP pwplus--don't use.
2929 else
2930 rm -rf conftest.one conftest.two conftest.dir
2931 echo one > conftest.one
2932 echo two > conftest.two
2933 mkdir conftest.dir
2934 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2935 test -s conftest.one && test -s conftest.two &&
2936 test -s conftest.dir/conftest.one &&
2937 test -s conftest.dir/conftest.two
2938 then
2939 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2940 break 3
2944 done
2945 done
2947 esac
2949 done
2950 IFS=$as_save_IFS
2952 rm -rf conftest.one conftest.two conftest.dir
2955 if test "${ac_cv_path_install+set}" = set; then
2956 INSTALL=$ac_cv_path_install
2957 else
2958 # As a last resort, use the slow shell script. Don't cache a
2959 # value for INSTALL within a source directory, because that will
2960 # break other packages using the cache if that directory is
2961 # removed, or if the value is a relative name.
2962 INSTALL=$ac_install_sh
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2966 $as_echo "$INSTALL" >&6; }
2968 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2969 # It thinks the first close brace ends the variable substitution.
2970 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2972 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2974 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2977 $as_echo_n "checking whether build environment is sane... " >&6; }
2978 # Reject unsafe characters in $srcdir or the absolute working directory
2979 # name. Accept space and tab only in the latter.
2980 am_lf='
2982 case `pwd` in
2983 *[\\\"\#\$\&\'\`$am_lf]*)
2984 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2985 esac
2986 case $srcdir in
2987 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2988 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2989 esac
2991 # Do 'set' in a subshell so we don't clobber the current shell's
2992 # arguments. Must try -L first in case configure is actually a
2993 # symlink; some systems play weird games with the mod time of symlinks
2994 # (eg FreeBSD returns the mod time of the symlink's containing
2995 # directory).
2996 if (
2997 am_has_slept=no
2998 for am_try in 1 2; do
2999 echo "timestamp, slept: $am_has_slept" > conftest.file
3000 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3001 if test "$*" = "X"; then
3002 # -L didn't work.
3003 set X `ls -t "$srcdir/configure" conftest.file`
3005 if test "$*" != "X $srcdir/configure conftest.file" \
3006 && test "$*" != "X conftest.file $srcdir/configure"; then
3008 # If neither matched, then we have a broken ls. This can happen
3009 # if, for instance, CONFIG_SHELL is bash and it inherits a
3010 # broken ls alias from the environment. This has actually
3011 # happened. Such a system could not be considered "sane".
3012 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3013 alias in your environment" "$LINENO" 5
3015 if test "$2" = conftest.file || test $am_try -eq 2; then
3016 break
3018 # Just in case.
3019 sleep 1
3020 am_has_slept=yes
3021 done
3022 test "$2" = conftest.file
3024 then
3025 # Ok.
3027 else
3028 as_fn_error $? "newly created file is older than distributed files!
3029 Check your system clock" "$LINENO" 5
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3032 $as_echo "yes" >&6; }
3033 # If we didn't sleep, we still need to ensure time stamps of config.status and
3034 # generated files are strictly newer.
3035 am_sleep_pid=
3036 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3037 ( sleep 1 ) &
3038 am_sleep_pid=$!
3041 rm -f conftest.file
3043 test "$program_prefix" != NONE &&
3044 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3045 # Use a double $ so make ignores it.
3046 test "$program_suffix" != NONE &&
3047 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3048 # Double any \ or $.
3049 # By default was `s,x,x', remove it if useless.
3050 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3051 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3053 # Expand $ac_aux_dir to an absolute path.
3054 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3056 if test x"${MISSING+set}" != xset; then
3057 case $am_aux_dir in
3058 *\ * | *\ *)
3059 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3061 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3062 esac
3064 # Use eval to expand $SHELL
3065 if eval "$MISSING --is-lightweight"; then
3066 am_missing_run="$MISSING "
3067 else
3068 am_missing_run=
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3070 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3073 if test x"${install_sh+set}" != xset; then
3074 case $am_aux_dir in
3075 *\ * | *\ *)
3076 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3078 install_sh="\${SHELL} $am_aux_dir/install-sh"
3079 esac
3082 # Installed binaries are usually stripped using 'strip' when the user
3083 # run "make install-strip". However 'strip' might not be the right
3084 # tool to use in cross-compilation environments, therefore Automake
3085 # will honor the 'STRIP' environment variable to overrule this program.
3086 if test "$cross_compiling" != no; then
3087 if test -n "$ac_tool_prefix"; then
3088 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3089 set dummy ${ac_tool_prefix}strip; ac_word=$2
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3091 $as_echo_n "checking for $ac_word... " >&6; }
3092 if ${ac_cv_prog_STRIP+:} false; then :
3093 $as_echo_n "(cached) " >&6
3094 else
3095 if test -n "$STRIP"; then
3096 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3097 else
3098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3099 for as_dir in $PATH
3101 IFS=$as_save_IFS
3102 test -z "$as_dir" && as_dir=.
3103 for ac_exec_ext in '' $ac_executable_extensions; do
3104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3105 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3107 break 2
3109 done
3110 done
3111 IFS=$as_save_IFS
3115 STRIP=$ac_cv_prog_STRIP
3116 if test -n "$STRIP"; then
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3118 $as_echo "$STRIP" >&6; }
3119 else
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3121 $as_echo "no" >&6; }
3126 if test -z "$ac_cv_prog_STRIP"; then
3127 ac_ct_STRIP=$STRIP
3128 # Extract the first word of "strip", so it can be a program name with args.
3129 set dummy strip; ac_word=$2
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3131 $as_echo_n "checking for $ac_word... " >&6; }
3132 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3133 $as_echo_n "(cached) " >&6
3134 else
3135 if test -n "$ac_ct_STRIP"; then
3136 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3137 else
3138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3139 for as_dir in $PATH
3141 IFS=$as_save_IFS
3142 test -z "$as_dir" && as_dir=.
3143 for ac_exec_ext in '' $ac_executable_extensions; do
3144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3145 ac_cv_prog_ac_ct_STRIP="strip"
3146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3147 break 2
3149 done
3150 done
3151 IFS=$as_save_IFS
3155 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3156 if test -n "$ac_ct_STRIP"; then
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3158 $as_echo "$ac_ct_STRIP" >&6; }
3159 else
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3161 $as_echo "no" >&6; }
3164 if test "x$ac_ct_STRIP" = x; then
3165 STRIP=":"
3166 else
3167 case $cross_compiling:$ac_tool_warned in
3168 yes:)
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3170 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3171 ac_tool_warned=yes ;;
3172 esac
3173 STRIP=$ac_ct_STRIP
3175 else
3176 STRIP="$ac_cv_prog_STRIP"
3180 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3183 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3184 if test -z "$MKDIR_P"; then
3185 if ${ac_cv_path_mkdir+:} false; then :
3186 $as_echo_n "(cached) " >&6
3187 else
3188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3189 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3191 IFS=$as_save_IFS
3192 test -z "$as_dir" && as_dir=.
3193 for ac_prog in mkdir gmkdir; do
3194 for ac_exec_ext in '' $ac_executable_extensions; do
3195 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3196 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3197 'mkdir (GNU coreutils) '* | \
3198 'mkdir (coreutils) '* | \
3199 'mkdir (fileutils) '4.1*)
3200 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3201 break 3;;
3202 esac
3203 done
3204 done
3205 done
3206 IFS=$as_save_IFS
3210 test -d ./--version && rmdir ./--version
3211 if test "${ac_cv_path_mkdir+set}" = set; then
3212 MKDIR_P="$ac_cv_path_mkdir -p"
3213 else
3214 # As a last resort, use the slow shell script. Don't cache a
3215 # value for MKDIR_P within a source directory, because that will
3216 # break other packages using the cache if that directory is
3217 # removed, or if the value is a relative name.
3218 MKDIR_P="$ac_install_sh -d"
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3222 $as_echo "$MKDIR_P" >&6; }
3224 for ac_prog in gawk mawk nawk awk
3226 # Extract the first word of "$ac_prog", so it can be a program name with args.
3227 set dummy $ac_prog; ac_word=$2
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3229 $as_echo_n "checking for $ac_word... " >&6; }
3230 if ${ac_cv_prog_AWK+:} false; then :
3231 $as_echo_n "(cached) " >&6
3232 else
3233 if test -n "$AWK"; then
3234 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3235 else
3236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3237 for as_dir in $PATH
3239 IFS=$as_save_IFS
3240 test -z "$as_dir" && as_dir=.
3241 for ac_exec_ext in '' $ac_executable_extensions; do
3242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3243 ac_cv_prog_AWK="$ac_prog"
3244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3245 break 2
3247 done
3248 done
3249 IFS=$as_save_IFS
3253 AWK=$ac_cv_prog_AWK
3254 if test -n "$AWK"; then
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3256 $as_echo "$AWK" >&6; }
3257 else
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3259 $as_echo "no" >&6; }
3263 test -n "$AWK" && break
3264 done
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3267 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3268 set x ${MAKE-make}
3269 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3270 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3271 $as_echo_n "(cached) " >&6
3272 else
3273 cat >conftest.make <<\_ACEOF
3274 SHELL = /bin/sh
3275 all:
3276 @echo '@@@%%%=$(MAKE)=@@@%%%'
3277 _ACEOF
3278 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3279 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3280 *@@@%%%=?*=@@@%%%*)
3281 eval ac_cv_prog_make_${ac_make}_set=yes;;
3283 eval ac_cv_prog_make_${ac_make}_set=no;;
3284 esac
3285 rm -f conftest.make
3287 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3289 $as_echo "yes" >&6; }
3290 SET_MAKE=
3291 else
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3293 $as_echo "no" >&6; }
3294 SET_MAKE="MAKE=${MAKE-make}"
3297 rm -rf .tst 2>/dev/null
3298 mkdir .tst 2>/dev/null
3299 if test -d .tst; then
3300 am__leading_dot=.
3301 else
3302 am__leading_dot=_
3304 rmdir .tst 2>/dev/null
3306 # Check whether --enable-silent-rules was given.
3307 if test "${enable_silent_rules+set}" = set; then :
3308 enableval=$enable_silent_rules;
3311 case $enable_silent_rules in # (((
3312 yes) AM_DEFAULT_VERBOSITY=0;;
3313 no) AM_DEFAULT_VERBOSITY=1;;
3314 *) AM_DEFAULT_VERBOSITY=1;;
3315 esac
3316 am_make=${MAKE-make}
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3318 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3319 if ${am_cv_make_support_nested_variables+:} false; then :
3320 $as_echo_n "(cached) " >&6
3321 else
3322 if $as_echo 'TRUE=$(BAR$(V))
3323 BAR0=false
3324 BAR1=true
3326 am__doit:
3327 @$(TRUE)
3328 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3329 am_cv_make_support_nested_variables=yes
3330 else
3331 am_cv_make_support_nested_variables=no
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3335 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3336 if test $am_cv_make_support_nested_variables = yes; then
3337 AM_V='$(V)'
3338 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3339 else
3340 AM_V=$AM_DEFAULT_VERBOSITY
3341 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3343 AM_BACKSLASH='\'
3345 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3346 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3347 # is not polluted with repeated "-I."
3348 am__isrc=' -I$(srcdir)'
3349 # test to see if srcdir already configured
3350 if test -f $srcdir/config.status; then
3351 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3355 # test whether we have cygpath
3356 if test -z "$CYGPATH_W"; then
3357 if (cygpath --version) >/dev/null 2>/dev/null; then
3358 CYGPATH_W='cygpath -w'
3359 else
3360 CYGPATH_W=echo
3365 # Define the identity of the package.
3366 PACKAGE='libgomp'
3367 VERSION='1.0'
3370 cat >>confdefs.h <<_ACEOF
3371 #define PACKAGE "$PACKAGE"
3372 _ACEOF
3375 cat >>confdefs.h <<_ACEOF
3376 #define VERSION "$VERSION"
3377 _ACEOF
3379 # Some tools Automake needs.
3381 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3384 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3387 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3390 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3393 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3395 # For better backward compatibility. To be removed once Automake 1.9.x
3396 # dies out for good. For more background, see:
3397 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3398 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3399 mkdir_p='$(MKDIR_P)'
3401 # We need awk for the "check" target (and possibly the TAP driver). The
3402 # system "awk" is bad on some platforms.
3403 # Always define AMTAR for backward compatibility. Yes, it's still used
3404 # in the wild :-( We should find a proper way to deprecate it ...
3405 AMTAR='$${TAR-tar}'
3408 # We'll loop over all known methods to create a tar archive until one works.
3409 _am_tools='gnutar pax cpio none'
3411 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3418 # POSIX will say in a future version that running "rm -f" with no argument
3419 # is OK; and we want to be able to make that assumption in our Makefile
3420 # recipes. So use an aggressive probe to check that the usage we want is
3421 # actually supported "in the wild" to an acceptable degree.
3422 # See automake bug#10828.
3423 # To make any issue more visible, cause the running configure to be aborted
3424 # by default if the 'rm' program in use doesn't match our expectations; the
3425 # user can still override this though.
3426 if rm -f && rm -fr && rm -rf; then : OK; else
3427 cat >&2 <<'END'
3428 Oops!
3430 Your 'rm' program seems unable to run without file operands specified
3431 on the command line, even when the '-f' option is present. This is contrary
3432 to the behaviour of most rm programs out there, and not conforming with
3433 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3435 Please tell bug-automake@gnu.org about your system, including the value
3436 of your $PATH and any error possibly output before this message. This
3437 can help us improve future automake versions.
3440 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3441 echo 'Configuration will proceed anyway, since you have set the' >&2
3442 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3443 echo >&2
3444 else
3445 cat >&2 <<'END'
3446 Aborting the configuration process, to ensure you take notice of the issue.
3448 You can download and install GNU coreutils to get an 'rm' implementation
3449 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3451 If you want to complete the configuration process using your problematic
3452 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3453 to "yes", and re-run configure.
3456 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3460 # Default to --enable-multilib
3461 # Check whether --enable-multilib was given.
3462 if test "${enable_multilib+set}" = set; then :
3463 enableval=$enable_multilib; case "$enableval" in
3464 yes) multilib=yes ;;
3465 no) multilib=no ;;
3466 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
3467 esac
3468 else
3469 multilib=yes
3473 # We may get other options which we leave undocumented:
3474 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3475 # See config-ml.in if you want the gory details.
3477 if test "$srcdir" = "."; then
3478 if test "$with_target_subdir" != "."; then
3479 multi_basedir="$srcdir/$with_multisrctop../.."
3480 else
3481 multi_basedir="$srcdir/$with_multisrctop.."
3483 else
3484 multi_basedir="$srcdir/.."
3488 # Even if the default multilib is not a cross compilation,
3489 # it may be that some of the other multilibs are.
3490 if test $cross_compiling = no && test $multilib = yes \
3491 && test "x${with_multisubdir}" != x ; then
3492 cross_compiling=maybe
3495 ac_config_commands="$ac_config_commands default-1"
3498 # Calculate toolexeclibdir
3499 # Also toolexecdir, though it's only used in toolexeclibdir
3500 case ${enable_version_specific_runtime_libs} in
3501 yes)
3502 # Need the gcc compiler version to know where to install libraries
3503 # and header files if --enable-version-specific-runtime-libs option
3504 # is selected.
3505 toolexecdir='$(libdir)/gcc/$(target_alias)'
3506 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3509 if test -n "$with_cross_host" &&
3510 test x"$with_cross_host" != x"no"; then
3511 # Install a library built with a cross compiler in tooldir, not libdir.
3512 toolexecdir='$(exec_prefix)/$(target_alias)'
3513 toolexeclibdir='$(toolexecdir)/lib'
3514 else
3515 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3516 toolexeclibdir='$(libdir)'
3518 multi_os_directory=`$CC -print-multi-os-directory`
3519 case $multi_os_directory in
3520 .) ;; # Avoid trailing /.
3521 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3522 esac
3524 esac
3528 # Check the compiler.
3529 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3530 # We must force CC to /not/ be precious variables; otherwise
3531 # the wrong, non-multilib-adjusted value will be used in multilibs.
3532 # As a side effect, we have to subst CFLAGS ourselves.
3536 ac_ext=c
3537 ac_cpp='$CPP $CPPFLAGS'
3538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3541 if test -n "$ac_tool_prefix"; then
3542 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3543 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3545 $as_echo_n "checking for $ac_word... " >&6; }
3546 if ${ac_cv_prog_CC+:} false; then :
3547 $as_echo_n "(cached) " >&6
3548 else
3549 if test -n "$CC"; then
3550 ac_cv_prog_CC="$CC" # Let the user override the test.
3551 else
3552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3553 for as_dir in $PATH
3555 IFS=$as_save_IFS
3556 test -z "$as_dir" && as_dir=.
3557 for ac_exec_ext in '' $ac_executable_extensions; do
3558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3559 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3561 break 2
3563 done
3564 done
3565 IFS=$as_save_IFS
3569 CC=$ac_cv_prog_CC
3570 if test -n "$CC"; then
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3572 $as_echo "$CC" >&6; }
3573 else
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3575 $as_echo "no" >&6; }
3580 if test -z "$ac_cv_prog_CC"; then
3581 ac_ct_CC=$CC
3582 # Extract the first word of "gcc", so it can be a program name with args.
3583 set dummy gcc; ac_word=$2
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3585 $as_echo_n "checking for $ac_word... " >&6; }
3586 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3587 $as_echo_n "(cached) " >&6
3588 else
3589 if test -n "$ac_ct_CC"; then
3590 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3591 else
3592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3593 for as_dir in $PATH
3595 IFS=$as_save_IFS
3596 test -z "$as_dir" && as_dir=.
3597 for ac_exec_ext in '' $ac_executable_extensions; do
3598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3599 ac_cv_prog_ac_ct_CC="gcc"
3600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3601 break 2
3603 done
3604 done
3605 IFS=$as_save_IFS
3609 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3610 if test -n "$ac_ct_CC"; then
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3612 $as_echo "$ac_ct_CC" >&6; }
3613 else
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3615 $as_echo "no" >&6; }
3618 if test "x$ac_ct_CC" = x; then
3619 CC=""
3620 else
3621 case $cross_compiling:$ac_tool_warned in
3622 yes:)
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3624 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3625 ac_tool_warned=yes ;;
3626 esac
3627 CC=$ac_ct_CC
3629 else
3630 CC="$ac_cv_prog_CC"
3633 if test -z "$CC"; then
3634 if test -n "$ac_tool_prefix"; then
3635 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3636 set dummy ${ac_tool_prefix}cc; ac_word=$2
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3638 $as_echo_n "checking for $ac_word... " >&6; }
3639 if ${ac_cv_prog_CC+:} false; then :
3640 $as_echo_n "(cached) " >&6
3641 else
3642 if test -n "$CC"; then
3643 ac_cv_prog_CC="$CC" # Let the user override the test.
3644 else
3645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3646 for as_dir in $PATH
3648 IFS=$as_save_IFS
3649 test -z "$as_dir" && as_dir=.
3650 for ac_exec_ext in '' $ac_executable_extensions; do
3651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3652 ac_cv_prog_CC="${ac_tool_prefix}cc"
3653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3654 break 2
3656 done
3657 done
3658 IFS=$as_save_IFS
3662 CC=$ac_cv_prog_CC
3663 if test -n "$CC"; then
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3665 $as_echo "$CC" >&6; }
3666 else
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3668 $as_echo "no" >&6; }
3674 if test -z "$CC"; then
3675 # Extract the first word of "cc", so it can be a program name with args.
3676 set dummy cc; ac_word=$2
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3678 $as_echo_n "checking for $ac_word... " >&6; }
3679 if ${ac_cv_prog_CC+:} false; then :
3680 $as_echo_n "(cached) " >&6
3681 else
3682 if test -n "$CC"; then
3683 ac_cv_prog_CC="$CC" # Let the user override the test.
3684 else
3685 ac_prog_rejected=no
3686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3687 for as_dir in $PATH
3689 IFS=$as_save_IFS
3690 test -z "$as_dir" && as_dir=.
3691 for ac_exec_ext in '' $ac_executable_extensions; do
3692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3693 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3694 ac_prog_rejected=yes
3695 continue
3697 ac_cv_prog_CC="cc"
3698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3699 break 2
3701 done
3702 done
3703 IFS=$as_save_IFS
3705 if test $ac_prog_rejected = yes; then
3706 # We found a bogon in the path, so make sure we never use it.
3707 set dummy $ac_cv_prog_CC
3708 shift
3709 if test $# != 0; then
3710 # We chose a different compiler from the bogus one.
3711 # However, it has the same basename, so the bogon will be chosen
3712 # first if we set CC to just the basename; use the full file name.
3713 shift
3714 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3719 CC=$ac_cv_prog_CC
3720 if test -n "$CC"; then
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3722 $as_echo "$CC" >&6; }
3723 else
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3725 $as_echo "no" >&6; }
3730 if test -z "$CC"; then
3731 if test -n "$ac_tool_prefix"; then
3732 for ac_prog in cl.exe
3734 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3735 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3737 $as_echo_n "checking for $ac_word... " >&6; }
3738 if ${ac_cv_prog_CC+:} false; then :
3739 $as_echo_n "(cached) " >&6
3740 else
3741 if test -n "$CC"; then
3742 ac_cv_prog_CC="$CC" # Let the user override the test.
3743 else
3744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3745 for as_dir in $PATH
3747 IFS=$as_save_IFS
3748 test -z "$as_dir" && as_dir=.
3749 for ac_exec_ext in '' $ac_executable_extensions; do
3750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3751 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3753 break 2
3755 done
3756 done
3757 IFS=$as_save_IFS
3761 CC=$ac_cv_prog_CC
3762 if test -n "$CC"; then
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3764 $as_echo "$CC" >&6; }
3765 else
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3767 $as_echo "no" >&6; }
3771 test -n "$CC" && break
3772 done
3774 if test -z "$CC"; then
3775 ac_ct_CC=$CC
3776 for ac_prog in cl.exe
3778 # Extract the first word of "$ac_prog", so it can be a program name with args.
3779 set dummy $ac_prog; ac_word=$2
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3781 $as_echo_n "checking for $ac_word... " >&6; }
3782 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3783 $as_echo_n "(cached) " >&6
3784 else
3785 if test -n "$ac_ct_CC"; then
3786 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3787 else
3788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3789 for as_dir in $PATH
3791 IFS=$as_save_IFS
3792 test -z "$as_dir" && as_dir=.
3793 for ac_exec_ext in '' $ac_executable_extensions; do
3794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3795 ac_cv_prog_ac_ct_CC="$ac_prog"
3796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3797 break 2
3799 done
3800 done
3801 IFS=$as_save_IFS
3805 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3806 if test -n "$ac_ct_CC"; then
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3808 $as_echo "$ac_ct_CC" >&6; }
3809 else
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3811 $as_echo "no" >&6; }
3815 test -n "$ac_ct_CC" && break
3816 done
3818 if test "x$ac_ct_CC" = x; then
3819 CC=""
3820 else
3821 case $cross_compiling:$ac_tool_warned in
3822 yes:)
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3824 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3825 ac_tool_warned=yes ;;
3826 esac
3827 CC=$ac_ct_CC
3834 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3835 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3836 as_fn_error $? "no acceptable C compiler found in \$PATH
3837 See \`config.log' for more details" "$LINENO" 5; }
3839 # Provide some information about the compiler.
3840 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3841 set X $ac_compile
3842 ac_compiler=$2
3843 for ac_option in --version -v -V -qversion; do
3844 { { ac_try="$ac_compiler $ac_option >&5"
3845 case "(($ac_try" in
3846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3847 *) ac_try_echo=$ac_try;;
3848 esac
3849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3850 $as_echo "$ac_try_echo"; } >&5
3851 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3852 ac_status=$?
3853 if test -s conftest.err; then
3854 sed '10a\
3855 ... rest of stderr output deleted ...
3856 10q' conftest.err >conftest.er1
3857 cat conftest.er1 >&5
3859 rm -f conftest.er1 conftest.err
3860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3861 test $ac_status = 0; }
3862 done
3864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3865 /* end confdefs.h. */
3868 main ()
3872 return 0;
3874 _ACEOF
3875 ac_clean_files_save=$ac_clean_files
3876 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3877 # Try to create an executable without -o first, disregard a.out.
3878 # It will help us diagnose broken compilers, and finding out an intuition
3879 # of exeext.
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3881 $as_echo_n "checking whether the C compiler works... " >&6; }
3882 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3884 # The possible output files:
3885 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3887 ac_rmfiles=
3888 for ac_file in $ac_files
3890 case $ac_file in
3891 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3892 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3893 esac
3894 done
3895 rm -f $ac_rmfiles
3897 if { { ac_try="$ac_link_default"
3898 case "(($ac_try" in
3899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3900 *) ac_try_echo=$ac_try;;
3901 esac
3902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3903 $as_echo "$ac_try_echo"; } >&5
3904 (eval "$ac_link_default") 2>&5
3905 ac_status=$?
3906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3907 test $ac_status = 0; }; then :
3908 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3909 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3910 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3911 # so that the user can short-circuit this test for compilers unknown to
3912 # Autoconf.
3913 for ac_file in $ac_files ''
3915 test -f "$ac_file" || continue
3916 case $ac_file in
3917 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3919 [ab].out )
3920 # We found the default executable, but exeext='' is most
3921 # certainly right.
3922 break;;
3923 *.* )
3924 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3925 then :; else
3926 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3928 # We set ac_cv_exeext here because the later test for it is not
3929 # safe: cross compilers may not add the suffix if given an `-o'
3930 # argument, so we may need to know it at that point already.
3931 # Even if this section looks crufty: it has the advantage of
3932 # actually working.
3933 break;;
3935 break;;
3936 esac
3937 done
3938 test "$ac_cv_exeext" = no && ac_cv_exeext=
3940 else
3941 ac_file=''
3943 if test -z "$ac_file"; then :
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3945 $as_echo "no" >&6; }
3946 $as_echo "$as_me: failed program was:" >&5
3947 sed 's/^/| /' conftest.$ac_ext >&5
3949 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3950 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3951 as_fn_error 77 "C compiler cannot create executables
3952 See \`config.log' for more details" "$LINENO" 5; }
3953 else
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3955 $as_echo "yes" >&6; }
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3958 $as_echo_n "checking for C compiler default output file name... " >&6; }
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3960 $as_echo "$ac_file" >&6; }
3961 ac_exeext=$ac_cv_exeext
3963 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3964 ac_clean_files=$ac_clean_files_save
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3966 $as_echo_n "checking for suffix of executables... " >&6; }
3967 if { { ac_try="$ac_link"
3968 case "(($ac_try" in
3969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3970 *) ac_try_echo=$ac_try;;
3971 esac
3972 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3973 $as_echo "$ac_try_echo"; } >&5
3974 (eval "$ac_link") 2>&5
3975 ac_status=$?
3976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3977 test $ac_status = 0; }; then :
3978 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3979 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3980 # work properly (i.e., refer to `conftest.exe'), while it won't with
3981 # `rm'.
3982 for ac_file in conftest.exe conftest conftest.*; do
3983 test -f "$ac_file" || continue
3984 case $ac_file in
3985 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3986 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3987 break;;
3988 * ) break;;
3989 esac
3990 done
3991 else
3992 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3993 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3994 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3995 See \`config.log' for more details" "$LINENO" 5; }
3997 rm -f conftest conftest$ac_cv_exeext
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3999 $as_echo "$ac_cv_exeext" >&6; }
4001 rm -f conftest.$ac_ext
4002 EXEEXT=$ac_cv_exeext
4003 ac_exeext=$EXEEXT
4004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4005 /* end confdefs.h. */
4006 #include <stdio.h>
4008 main ()
4010 FILE *f = fopen ("conftest.out", "w");
4011 return ferror (f) || fclose (f) != 0;
4014 return 0;
4016 _ACEOF
4017 ac_clean_files="$ac_clean_files conftest.out"
4018 # Check that the compiler produces executables we can run. If not, either
4019 # the compiler is broken, or we cross compile.
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4021 $as_echo_n "checking whether we are cross compiling... " >&6; }
4022 if test "$cross_compiling" != yes; then
4023 { { ac_try="$ac_link"
4024 case "(($ac_try" in
4025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4026 *) ac_try_echo=$ac_try;;
4027 esac
4028 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4029 $as_echo "$ac_try_echo"; } >&5
4030 (eval "$ac_link") 2>&5
4031 ac_status=$?
4032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4033 test $ac_status = 0; }
4034 if { ac_try='./conftest$ac_cv_exeext'
4035 { { case "(($ac_try" in
4036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4037 *) ac_try_echo=$ac_try;;
4038 esac
4039 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4040 $as_echo "$ac_try_echo"; } >&5
4041 (eval "$ac_try") 2>&5
4042 ac_status=$?
4043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4044 test $ac_status = 0; }; }; then
4045 cross_compiling=no
4046 else
4047 if test "$cross_compiling" = maybe; then
4048 cross_compiling=yes
4049 else
4050 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4051 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4052 as_fn_error $? "cannot run C compiled programs.
4053 If you meant to cross compile, use \`--host'.
4054 See \`config.log' for more details" "$LINENO" 5; }
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4059 $as_echo "$cross_compiling" >&6; }
4061 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4062 ac_clean_files=$ac_clean_files_save
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4064 $as_echo_n "checking for suffix of object files... " >&6; }
4065 if ${ac_cv_objext+:} false; then :
4066 $as_echo_n "(cached) " >&6
4067 else
4068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4069 /* end confdefs.h. */
4072 main ()
4076 return 0;
4078 _ACEOF
4079 rm -f conftest.o conftest.obj
4080 if { { ac_try="$ac_compile"
4081 case "(($ac_try" in
4082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4083 *) ac_try_echo=$ac_try;;
4084 esac
4085 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4086 $as_echo "$ac_try_echo"; } >&5
4087 (eval "$ac_compile") 2>&5
4088 ac_status=$?
4089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4090 test $ac_status = 0; }; then :
4091 for ac_file in conftest.o conftest.obj conftest.*; do
4092 test -f "$ac_file" || continue;
4093 case $ac_file in
4094 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4095 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4096 break;;
4097 esac
4098 done
4099 else
4100 $as_echo "$as_me: failed program was:" >&5
4101 sed 's/^/| /' conftest.$ac_ext >&5
4103 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4104 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4105 as_fn_error $? "cannot compute suffix of object files: cannot compile
4106 See \`config.log' for more details" "$LINENO" 5; }
4108 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4111 $as_echo "$ac_cv_objext" >&6; }
4112 OBJEXT=$ac_cv_objext
4113 ac_objext=$OBJEXT
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4115 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4116 if ${ac_cv_c_compiler_gnu+:} false; then :
4117 $as_echo_n "(cached) " >&6
4118 else
4119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4120 /* end confdefs.h. */
4123 main ()
4125 #ifndef __GNUC__
4126 choke me
4127 #endif
4130 return 0;
4132 _ACEOF
4133 if ac_fn_c_try_compile "$LINENO"; then :
4134 ac_compiler_gnu=yes
4135 else
4136 ac_compiler_gnu=no
4138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4139 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4143 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4144 if test $ac_compiler_gnu = yes; then
4145 GCC=yes
4146 else
4147 GCC=
4149 ac_test_CFLAGS=${CFLAGS+set}
4150 ac_save_CFLAGS=$CFLAGS
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4152 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4153 if ${ac_cv_prog_cc_g+:} false; then :
4154 $as_echo_n "(cached) " >&6
4155 else
4156 ac_save_c_werror_flag=$ac_c_werror_flag
4157 ac_c_werror_flag=yes
4158 ac_cv_prog_cc_g=no
4159 CFLAGS="-g"
4160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4161 /* end confdefs.h. */
4164 main ()
4168 return 0;
4170 _ACEOF
4171 if ac_fn_c_try_compile "$LINENO"; then :
4172 ac_cv_prog_cc_g=yes
4173 else
4174 CFLAGS=""
4175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4176 /* end confdefs.h. */
4179 main ()
4183 return 0;
4185 _ACEOF
4186 if ac_fn_c_try_compile "$LINENO"; then :
4188 else
4189 ac_c_werror_flag=$ac_save_c_werror_flag
4190 CFLAGS="-g"
4191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4192 /* end confdefs.h. */
4195 main ()
4199 return 0;
4201 _ACEOF
4202 if ac_fn_c_try_compile "$LINENO"; then :
4203 ac_cv_prog_cc_g=yes
4205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4210 ac_c_werror_flag=$ac_save_c_werror_flag
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4213 $as_echo "$ac_cv_prog_cc_g" >&6; }
4214 if test "$ac_test_CFLAGS" = set; then
4215 CFLAGS=$ac_save_CFLAGS
4216 elif test $ac_cv_prog_cc_g = yes; then
4217 if test "$GCC" = yes; then
4218 CFLAGS="-g -O2"
4219 else
4220 CFLAGS="-g"
4222 else
4223 if test "$GCC" = yes; then
4224 CFLAGS="-O2"
4225 else
4226 CFLAGS=
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4230 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4231 if ${ac_cv_prog_cc_c89+:} false; then :
4232 $as_echo_n "(cached) " >&6
4233 else
4234 ac_cv_prog_cc_c89=no
4235 ac_save_CC=$CC
4236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4237 /* end confdefs.h. */
4238 #include <stdarg.h>
4239 #include <stdio.h>
4240 struct stat;
4241 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4242 struct buf { int x; };
4243 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4244 static char *e (p, i)
4245 char **p;
4246 int i;
4248 return p[i];
4250 static char *f (char * (*g) (char **, int), char **p, ...)
4252 char *s;
4253 va_list v;
4254 va_start (v,p);
4255 s = g (p, va_arg (v,int));
4256 va_end (v);
4257 return s;
4260 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4261 function prototypes and stuff, but not '\xHH' hex character constants.
4262 These don't provoke an error unfortunately, instead are silently treated
4263 as 'x'. The following induces an error, until -std is added to get
4264 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4265 array size at least. It's necessary to write '\x00'==0 to get something
4266 that's true only with -std. */
4267 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4269 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4270 inside strings and character constants. */
4271 #define FOO(x) 'x'
4272 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4274 int test (int i, double x);
4275 struct s1 {int (*f) (int a);};
4276 struct s2 {int (*f) (double a);};
4277 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4278 int argc;
4279 char **argv;
4281 main ()
4283 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4285 return 0;
4287 _ACEOF
4288 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4289 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4291 CC="$ac_save_CC $ac_arg"
4292 if ac_fn_c_try_compile "$LINENO"; then :
4293 ac_cv_prog_cc_c89=$ac_arg
4295 rm -f core conftest.err conftest.$ac_objext
4296 test "x$ac_cv_prog_cc_c89" != "xno" && break
4297 done
4298 rm -f conftest.$ac_ext
4299 CC=$ac_save_CC
4302 # AC_CACHE_VAL
4303 case "x$ac_cv_prog_cc_c89" in
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4306 $as_echo "none needed" >&6; } ;;
4307 xno)
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4309 $as_echo "unsupported" >&6; } ;;
4311 CC="$CC $ac_cv_prog_cc_c89"
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4313 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4314 esac
4315 if test "x$ac_cv_prog_cc_c89" != xno; then :
4319 ac_ext=c
4320 ac_cpp='$CPP $CPPFLAGS'
4321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4325 ac_ext=c
4326 ac_cpp='$CPP $CPPFLAGS'
4327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4331 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4332 if ${am_cv_prog_cc_c_o+:} false; then :
4333 $as_echo_n "(cached) " >&6
4334 else
4335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4336 /* end confdefs.h. */
4339 main ()
4343 return 0;
4345 _ACEOF
4346 # Make sure it works both with $CC and with simple cc.
4347 # Following AC_PROG_CC_C_O, we do the test twice because some
4348 # compilers refuse to overwrite an existing .o file with -o,
4349 # though they will create one.
4350 am_cv_prog_cc_c_o=yes
4351 for am_i in 1 2; do
4352 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4353 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4354 ac_status=$?
4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356 (exit $ac_status); } \
4357 && test -f conftest2.$ac_objext; then
4358 : OK
4359 else
4360 am_cv_prog_cc_c_o=no
4361 break
4363 done
4364 rm -f core conftest*
4365 unset am_i
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4368 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4369 if test "$am_cv_prog_cc_c_o" != yes; then
4370 # Losing compiler, so override with the script.
4371 # FIXME: It is wrong to rewrite CC.
4372 # But if we don't then we get into trouble of one sort or another.
4373 # A longer-term fix would be to have automake use am__CC in this case,
4374 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4375 CC="$am_aux_dir/compile $CC"
4377 ac_ext=c
4378 ac_cpp='$CPP $CPPFLAGS'
4379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4383 DEPDIR="${am__leading_dot}deps"
4385 ac_config_commands="$ac_config_commands depfiles"
4388 am_make=${MAKE-make}
4389 cat > confinc << 'END'
4390 am__doit:
4391 @echo this is the am__doit target
4392 .PHONY: am__doit
4394 # If we don't find an include directive, just comment out the code.
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4396 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4397 am__include="#"
4398 am__quote=
4399 _am_result=none
4400 # First try GNU make style include.
4401 echo "include confinc" > confmf
4402 # Ignore all kinds of additional output from 'make'.
4403 case `$am_make -s -f confmf 2> /dev/null` in #(
4404 *the\ am__doit\ target*)
4405 am__include=include
4406 am__quote=
4407 _am_result=GNU
4409 esac
4410 # Now try BSD make style include.
4411 if test "$am__include" = "#"; then
4412 echo '.include "confinc"' > confmf
4413 case `$am_make -s -f confmf 2> /dev/null` in #(
4414 *the\ am__doit\ target*)
4415 am__include=.include
4416 am__quote="\""
4417 _am_result=BSD
4419 esac
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4424 $as_echo "$_am_result" >&6; }
4425 rm -f confinc confmf
4427 # Check whether --enable-dependency-tracking was given.
4428 if test "${enable_dependency_tracking+set}" = set; then :
4429 enableval=$enable_dependency_tracking;
4432 if test "x$enable_dependency_tracking" != xno; then
4433 am_depcomp="$ac_aux_dir/depcomp"
4434 AMDEPBACKSLASH='\'
4435 am__nodep='_no'
4437 if test "x$enable_dependency_tracking" != xno; then
4438 AMDEP_TRUE=
4439 AMDEP_FALSE='#'
4440 else
4441 AMDEP_TRUE='#'
4442 AMDEP_FALSE=
4447 depcc="$CC" am_compiler_list=
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4450 $as_echo_n "checking dependency style of $depcc... " >&6; }
4451 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4452 $as_echo_n "(cached) " >&6
4453 else
4454 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4455 # We make a subdir and do the tests there. Otherwise we can end up
4456 # making bogus files that we don't know about and never remove. For
4457 # instance it was reported that on HP-UX the gcc test will end up
4458 # making a dummy file named 'D' -- because '-MD' means "put the output
4459 # in D".
4460 rm -rf conftest.dir
4461 mkdir conftest.dir
4462 # Copy depcomp to subdir because otherwise we won't find it if we're
4463 # using a relative directory.
4464 cp "$am_depcomp" conftest.dir
4465 cd conftest.dir
4466 # We will build objects and dependencies in a subdirectory because
4467 # it helps to detect inapplicable dependency modes. For instance
4468 # both Tru64's cc and ICC support -MD to output dependencies as a
4469 # side effect of compilation, but ICC will put the dependencies in
4470 # the current directory while Tru64 will put them in the object
4471 # directory.
4472 mkdir sub
4474 am_cv_CC_dependencies_compiler_type=none
4475 if test "$am_compiler_list" = ""; then
4476 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4478 am__universal=false
4479 case " $depcc " in #(
4480 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4481 esac
4483 for depmode in $am_compiler_list; do
4484 # Setup a source with many dependencies, because some compilers
4485 # like to wrap large dependency lists on column 80 (with \), and
4486 # we should not choose a depcomp mode which is confused by this.
4488 # We need to recreate these files for each test, as the compiler may
4489 # overwrite some of them when testing with obscure command lines.
4490 # This happens at least with the AIX C compiler.
4491 : > sub/conftest.c
4492 for i in 1 2 3 4 5 6; do
4493 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4494 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4495 # Solaris 10 /bin/sh.
4496 echo '/* dummy */' > sub/conftst$i.h
4497 done
4498 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4500 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4501 # mode. It turns out that the SunPro C++ compiler does not properly
4502 # handle '-M -o', and we need to detect this. Also, some Intel
4503 # versions had trouble with output in subdirs.
4504 am__obj=sub/conftest.${OBJEXT-o}
4505 am__minus_obj="-o $am__obj"
4506 case $depmode in
4507 gcc)
4508 # This depmode causes a compiler race in universal mode.
4509 test "$am__universal" = false || continue
4511 nosideeffect)
4512 # After this tag, mechanisms are not by side-effect, so they'll
4513 # only be used when explicitly requested.
4514 if test "x$enable_dependency_tracking" = xyes; then
4515 continue
4516 else
4517 break
4520 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4521 # This compiler won't grok '-c -o', but also, the minuso test has
4522 # not run yet. These depmodes are late enough in the game, and
4523 # so weak that their functioning should not be impacted.
4524 am__obj=conftest.${OBJEXT-o}
4525 am__minus_obj=
4527 none) break ;;
4528 esac
4529 if depmode=$depmode \
4530 source=sub/conftest.c object=$am__obj \
4531 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4532 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4533 >/dev/null 2>conftest.err &&
4534 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4535 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4536 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4537 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4538 # icc doesn't choke on unknown options, it will just issue warnings
4539 # or remarks (even with -Werror). So we grep stderr for any message
4540 # that says an option was ignored or not supported.
4541 # When given -MP, icc 7.0 and 7.1 complain thusly:
4542 # icc: Command line warning: ignoring option '-M'; no argument required
4543 # The diagnosis changed in icc 8.0:
4544 # icc: Command line remark: option '-MP' not supported
4545 if (grep 'ignoring option' conftest.err ||
4546 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4547 am_cv_CC_dependencies_compiler_type=$depmode
4548 break
4551 done
4553 cd ..
4554 rm -rf conftest.dir
4555 else
4556 am_cv_CC_dependencies_compiler_type=none
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4561 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4562 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4565 test "x$enable_dependency_tracking" != xno \
4566 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4567 am__fastdepCC_TRUE=
4568 am__fastdepCC_FALSE='#'
4569 else
4570 am__fastdepCC_TRUE='#'
4571 am__fastdepCC_FALSE=
4579 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
4580 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
4581 # in both places for now and restore CFLAGS at the end of config.
4582 save_CFLAGS="$CFLAGS"
4584 # Add -Wall -Werror if we are using GCC.
4585 if test "x$GCC" = "xyes"; then
4586 XCFLAGS="$XCFLAGS -Wall -Werror"
4589 # Find other programs we need.
4590 if test -n "$ac_tool_prefix"; then
4591 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4592 set dummy ${ac_tool_prefix}ar; ac_word=$2
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4594 $as_echo_n "checking for $ac_word... " >&6; }
4595 if ${ac_cv_prog_AR+:} false; then :
4596 $as_echo_n "(cached) " >&6
4597 else
4598 if test -n "$AR"; then
4599 ac_cv_prog_AR="$AR" # Let the user override the test.
4600 else
4601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4602 for as_dir in $PATH
4604 IFS=$as_save_IFS
4605 test -z "$as_dir" && as_dir=.
4606 for ac_exec_ext in '' $ac_executable_extensions; do
4607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4608 ac_cv_prog_AR="${ac_tool_prefix}ar"
4609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4610 break 2
4612 done
4613 done
4614 IFS=$as_save_IFS
4618 AR=$ac_cv_prog_AR
4619 if test -n "$AR"; then
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4621 $as_echo "$AR" >&6; }
4622 else
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4624 $as_echo "no" >&6; }
4629 if test -z "$ac_cv_prog_AR"; then
4630 ac_ct_AR=$AR
4631 # Extract the first word of "ar", so it can be a program name with args.
4632 set dummy ar; ac_word=$2
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4634 $as_echo_n "checking for $ac_word... " >&6; }
4635 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4636 $as_echo_n "(cached) " >&6
4637 else
4638 if test -n "$ac_ct_AR"; then
4639 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4640 else
4641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4642 for as_dir in $PATH
4644 IFS=$as_save_IFS
4645 test -z "$as_dir" && as_dir=.
4646 for ac_exec_ext in '' $ac_executable_extensions; do
4647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4648 ac_cv_prog_ac_ct_AR="ar"
4649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4650 break 2
4652 done
4653 done
4654 IFS=$as_save_IFS
4658 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4659 if test -n "$ac_ct_AR"; then
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4661 $as_echo "$ac_ct_AR" >&6; }
4662 else
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4664 $as_echo "no" >&6; }
4667 if test "x$ac_ct_AR" = x; then
4668 AR=""
4669 else
4670 case $cross_compiling:$ac_tool_warned in
4671 yes:)
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4673 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4674 ac_tool_warned=yes ;;
4675 esac
4676 AR=$ac_ct_AR
4678 else
4679 AR="$ac_cv_prog_AR"
4682 if test -n "$ac_tool_prefix"; then
4683 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4684 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4686 $as_echo_n "checking for $ac_word... " >&6; }
4687 if ${ac_cv_prog_RANLIB+:} false; then :
4688 $as_echo_n "(cached) " >&6
4689 else
4690 if test -n "$RANLIB"; then
4691 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4692 else
4693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4694 for as_dir in $PATH
4696 IFS=$as_save_IFS
4697 test -z "$as_dir" && as_dir=.
4698 for ac_exec_ext in '' $ac_executable_extensions; do
4699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4700 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4702 break 2
4704 done
4705 done
4706 IFS=$as_save_IFS
4710 RANLIB=$ac_cv_prog_RANLIB
4711 if test -n "$RANLIB"; then
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4713 $as_echo "$RANLIB" >&6; }
4714 else
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4716 $as_echo "no" >&6; }
4721 if test -z "$ac_cv_prog_RANLIB"; then
4722 ac_ct_RANLIB=$RANLIB
4723 # Extract the first word of "ranlib", so it can be a program name with args.
4724 set dummy ranlib; ac_word=$2
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4726 $as_echo_n "checking for $ac_word... " >&6; }
4727 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4728 $as_echo_n "(cached) " >&6
4729 else
4730 if test -n "$ac_ct_RANLIB"; then
4731 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4732 else
4733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4734 for as_dir in $PATH
4736 IFS=$as_save_IFS
4737 test -z "$as_dir" && as_dir=.
4738 for ac_exec_ext in '' $ac_executable_extensions; do
4739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4740 ac_cv_prog_ac_ct_RANLIB="ranlib"
4741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4742 break 2
4744 done
4745 done
4746 IFS=$as_save_IFS
4750 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4751 if test -n "$ac_ct_RANLIB"; then
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4753 $as_echo "$ac_ct_RANLIB" >&6; }
4754 else
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4756 $as_echo "no" >&6; }
4759 if test "x$ac_ct_RANLIB" = x; then
4760 RANLIB="ranlib-not-found-in-path-error"
4761 else
4762 case $cross_compiling:$ac_tool_warned in
4763 yes:)
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4765 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4766 ac_tool_warned=yes ;;
4767 esac
4768 RANLIB=$ac_ct_RANLIB
4770 else
4771 RANLIB="$ac_cv_prog_RANLIB"
4774 # Extract the first word of "perl", so it can be a program name with args.
4775 set dummy perl; ac_word=$2
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4777 $as_echo_n "checking for $ac_word... " >&6; }
4778 if ${ac_cv_path_PERL+:} false; then :
4779 $as_echo_n "(cached) " >&6
4780 else
4781 case $PERL in
4782 [\\/]* | ?:[\\/]*)
4783 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4787 for as_dir in $PATH
4789 IFS=$as_save_IFS
4790 test -z "$as_dir" && as_dir=.
4791 for ac_exec_ext in '' $ac_executable_extensions; do
4792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4793 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4795 break 2
4797 done
4798 done
4799 IFS=$as_save_IFS
4801 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
4803 esac
4805 PERL=$ac_cv_path_PERL
4806 if test -n "$PERL"; then
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4808 $as_echo "$PERL" >&6; }
4809 else
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4811 $as_echo "no" >&6; }
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4816 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4817 set x ${MAKE-make}
4818 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4819 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4820 $as_echo_n "(cached) " >&6
4821 else
4822 cat >conftest.make <<\_ACEOF
4823 SHELL = /bin/sh
4824 all:
4825 @echo '@@@%%%=$(MAKE)=@@@%%%'
4826 _ACEOF
4827 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4828 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4829 *@@@%%%=?*=@@@%%%*)
4830 eval ac_cv_prog_make_${ac_make}_set=yes;;
4832 eval ac_cv_prog_make_${ac_make}_set=no;;
4833 esac
4834 rm -f conftest.make
4836 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4838 $as_echo "yes" >&6; }
4839 SET_MAKE=
4840 else
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4842 $as_echo "no" >&6; }
4843 SET_MAKE="MAKE=${MAKE-make}"
4848 # See if makeinfo has been installed and is modern enough
4849 # that we can use it.
4851 # Extract the first word of "makeinfo", so it can be a program name with args.
4852 set dummy makeinfo; ac_word=$2
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4854 $as_echo_n "checking for $ac_word... " >&6; }
4855 if ${ac_cv_prog_MAKEINFO+:} false; then :
4856 $as_echo_n "(cached) " >&6
4857 else
4858 if test -n "$MAKEINFO"; then
4859 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4860 else
4861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862 for as_dir in $PATH
4864 IFS=$as_save_IFS
4865 test -z "$as_dir" && as_dir=.
4866 for ac_exec_ext in '' $ac_executable_extensions; do
4867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4868 ac_cv_prog_MAKEINFO="makeinfo"
4869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4870 break 2
4872 done
4873 done
4874 IFS=$as_save_IFS
4878 MAKEINFO=$ac_cv_prog_MAKEINFO
4879 if test -n "$MAKEINFO"; then
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4881 $as_echo "$MAKEINFO" >&6; }
4882 else
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4884 $as_echo "no" >&6; }
4888 if test -n "$MAKEINFO"; then
4889 # Found it, now check the version.
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
4891 $as_echo_n "checking for modern makeinfo... " >&6; }
4892 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
4893 $as_echo_n "(cached) " >&6
4894 else
4895 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
4896 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4898 case $ac_prog_version in
4899 '') gcc_cv_prog_makeinfo_modern=no;;
4900 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
4901 *) gcc_cv_prog_makeinfo_modern=no;;
4902 esac
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
4906 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
4907 else
4908 gcc_cv_prog_makeinfo_modern=no
4910 if test $gcc_cv_prog_makeinfo_modern = no; then
4911 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
4914 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
4915 BUILD_INFO_TRUE=
4916 BUILD_INFO_FALSE='#'
4917 else
4918 BUILD_INFO_TRUE='#'
4919 BUILD_INFO_FALSE=
4924 # Configure libtool
4925 case `pwd` in
4926 *\ * | *\ *)
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4928 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4929 esac
4933 macro_version='2.2.7a'
4934 macro_revision='1.3134'
4948 ltmain="$ac_aux_dir/ltmain.sh"
4950 # Backslashify metacharacters that are still active within
4951 # double-quoted strings.
4952 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4954 # Same as above, but do not quote variable references.
4955 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4957 # Sed substitution to delay expansion of an escaped shell variable in a
4958 # double_quote_subst'ed string.
4959 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4961 # Sed substitution to delay expansion of an escaped single quote.
4962 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4964 # Sed substitution to avoid accidental globbing in evaled expressions
4965 no_glob_subst='s/\*/\\\*/g'
4967 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4968 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4969 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4972 $as_echo_n "checking how to print strings... " >&6; }
4973 # Test print first, because it will be a builtin if present.
4974 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4975 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4976 ECHO='print -r --'
4977 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4978 ECHO='printf %s\n'
4979 else
4980 # Use this function as a fallback that always works.
4981 func_fallback_echo ()
4983 eval 'cat <<_LTECHO_EOF
4985 _LTECHO_EOF'
4987 ECHO='func_fallback_echo'
4990 # func_echo_all arg...
4991 # Invoke $ECHO with all args, space-separated.
4992 func_echo_all ()
4994 $ECHO ""
4997 case "$ECHO" in
4998 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4999 $as_echo "printf" >&6; } ;;
5000 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5001 $as_echo "print -r" >&6; } ;;
5002 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5003 $as_echo "cat" >&6; } ;;
5004 esac
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5020 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5021 if ${ac_cv_path_SED+:} false; then :
5022 $as_echo_n "(cached) " >&6
5023 else
5024 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5025 for ac_i in 1 2 3 4 5 6 7; do
5026 ac_script="$ac_script$as_nl$ac_script"
5027 done
5028 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5029 { ac_script=; unset ac_script;}
5030 if test -z "$SED"; then
5031 ac_path_SED_found=false
5032 # Loop through the user's path and test for each of PROGNAME-LIST
5033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5034 for as_dir in $PATH
5036 IFS=$as_save_IFS
5037 test -z "$as_dir" && as_dir=.
5038 for ac_prog in sed gsed; do
5039 for ac_exec_ext in '' $ac_executable_extensions; do
5040 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5041 as_fn_executable_p "$ac_path_SED" || continue
5042 # Check for GNU ac_path_SED and select it if it is found.
5043 # Check for GNU $ac_path_SED
5044 case `"$ac_path_SED" --version 2>&1` in
5045 *GNU*)
5046 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5048 ac_count=0
5049 $as_echo_n 0123456789 >"conftest.in"
5050 while :
5052 cat "conftest.in" "conftest.in" >"conftest.tmp"
5053 mv "conftest.tmp" "conftest.in"
5054 cp "conftest.in" "conftest.nl"
5055 $as_echo '' >> "conftest.nl"
5056 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5057 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5058 as_fn_arith $ac_count + 1 && ac_count=$as_val
5059 if test $ac_count -gt ${ac_path_SED_max-0}; then
5060 # Best one so far, save it but keep looking for a better one
5061 ac_cv_path_SED="$ac_path_SED"
5062 ac_path_SED_max=$ac_count
5064 # 10*(2^10) chars as input seems more than enough
5065 test $ac_count -gt 10 && break
5066 done
5067 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5068 esac
5070 $ac_path_SED_found && break 3
5071 done
5072 done
5073 done
5074 IFS=$as_save_IFS
5075 if test -z "$ac_cv_path_SED"; then
5076 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5078 else
5079 ac_cv_path_SED=$SED
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5084 $as_echo "$ac_cv_path_SED" >&6; }
5085 SED="$ac_cv_path_SED"
5086 rm -f conftest.sed
5088 test -z "$SED" && SED=sed
5089 Xsed="$SED -e 1s/^X//"
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5102 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5103 if ${ac_cv_path_GREP+:} false; then :
5104 $as_echo_n "(cached) " >&6
5105 else
5106 if test -z "$GREP"; then
5107 ac_path_GREP_found=false
5108 # Loop through the user's path and test for each of PROGNAME-LIST
5109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5110 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5112 IFS=$as_save_IFS
5113 test -z "$as_dir" && as_dir=.
5114 for ac_prog in grep ggrep; do
5115 for ac_exec_ext in '' $ac_executable_extensions; do
5116 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5117 as_fn_executable_p "$ac_path_GREP" || continue
5118 # Check for GNU ac_path_GREP and select it if it is found.
5119 # Check for GNU $ac_path_GREP
5120 case `"$ac_path_GREP" --version 2>&1` in
5121 *GNU*)
5122 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5124 ac_count=0
5125 $as_echo_n 0123456789 >"conftest.in"
5126 while :
5128 cat "conftest.in" "conftest.in" >"conftest.tmp"
5129 mv "conftest.tmp" "conftest.in"
5130 cp "conftest.in" "conftest.nl"
5131 $as_echo 'GREP' >> "conftest.nl"
5132 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5133 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5134 as_fn_arith $ac_count + 1 && ac_count=$as_val
5135 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5136 # Best one so far, save it but keep looking for a better one
5137 ac_cv_path_GREP="$ac_path_GREP"
5138 ac_path_GREP_max=$ac_count
5140 # 10*(2^10) chars as input seems more than enough
5141 test $ac_count -gt 10 && break
5142 done
5143 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5144 esac
5146 $ac_path_GREP_found && break 3
5147 done
5148 done
5149 done
5150 IFS=$as_save_IFS
5151 if test -z "$ac_cv_path_GREP"; then
5152 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5154 else
5155 ac_cv_path_GREP=$GREP
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5160 $as_echo "$ac_cv_path_GREP" >&6; }
5161 GREP="$ac_cv_path_GREP"
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5165 $as_echo_n "checking for egrep... " >&6; }
5166 if ${ac_cv_path_EGREP+:} false; then :
5167 $as_echo_n "(cached) " >&6
5168 else
5169 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5170 then ac_cv_path_EGREP="$GREP -E"
5171 else
5172 if test -z "$EGREP"; then
5173 ac_path_EGREP_found=false
5174 # Loop through the user's path and test for each of PROGNAME-LIST
5175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5176 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5178 IFS=$as_save_IFS
5179 test -z "$as_dir" && as_dir=.
5180 for ac_prog in egrep; do
5181 for ac_exec_ext in '' $ac_executable_extensions; do
5182 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5183 as_fn_executable_p "$ac_path_EGREP" || continue
5184 # Check for GNU ac_path_EGREP and select it if it is found.
5185 # Check for GNU $ac_path_EGREP
5186 case `"$ac_path_EGREP" --version 2>&1` in
5187 *GNU*)
5188 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5190 ac_count=0
5191 $as_echo_n 0123456789 >"conftest.in"
5192 while :
5194 cat "conftest.in" "conftest.in" >"conftest.tmp"
5195 mv "conftest.tmp" "conftest.in"
5196 cp "conftest.in" "conftest.nl"
5197 $as_echo 'EGREP' >> "conftest.nl"
5198 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5199 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5200 as_fn_arith $ac_count + 1 && ac_count=$as_val
5201 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5202 # Best one so far, save it but keep looking for a better one
5203 ac_cv_path_EGREP="$ac_path_EGREP"
5204 ac_path_EGREP_max=$ac_count
5206 # 10*(2^10) chars as input seems more than enough
5207 test $ac_count -gt 10 && break
5208 done
5209 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5210 esac
5212 $ac_path_EGREP_found && break 3
5213 done
5214 done
5215 done
5216 IFS=$as_save_IFS
5217 if test -z "$ac_cv_path_EGREP"; then
5218 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5220 else
5221 ac_cv_path_EGREP=$EGREP
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5227 $as_echo "$ac_cv_path_EGREP" >&6; }
5228 EGREP="$ac_cv_path_EGREP"
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5232 $as_echo_n "checking for fgrep... " >&6; }
5233 if ${ac_cv_path_FGREP+:} false; then :
5234 $as_echo_n "(cached) " >&6
5235 else
5236 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5237 then ac_cv_path_FGREP="$GREP -F"
5238 else
5239 if test -z "$FGREP"; then
5240 ac_path_FGREP_found=false
5241 # Loop through the user's path and test for each of PROGNAME-LIST
5242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5243 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5245 IFS=$as_save_IFS
5246 test -z "$as_dir" && as_dir=.
5247 for ac_prog in fgrep; do
5248 for ac_exec_ext in '' $ac_executable_extensions; do
5249 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5250 as_fn_executable_p "$ac_path_FGREP" || continue
5251 # Check for GNU ac_path_FGREP and select it if it is found.
5252 # Check for GNU $ac_path_FGREP
5253 case `"$ac_path_FGREP" --version 2>&1` in
5254 *GNU*)
5255 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5257 ac_count=0
5258 $as_echo_n 0123456789 >"conftest.in"
5259 while :
5261 cat "conftest.in" "conftest.in" >"conftest.tmp"
5262 mv "conftest.tmp" "conftest.in"
5263 cp "conftest.in" "conftest.nl"
5264 $as_echo 'FGREP' >> "conftest.nl"
5265 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5266 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5267 as_fn_arith $ac_count + 1 && ac_count=$as_val
5268 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5269 # Best one so far, save it but keep looking for a better one
5270 ac_cv_path_FGREP="$ac_path_FGREP"
5271 ac_path_FGREP_max=$ac_count
5273 # 10*(2^10) chars as input seems more than enough
5274 test $ac_count -gt 10 && break
5275 done
5276 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5277 esac
5279 $ac_path_FGREP_found && break 3
5280 done
5281 done
5282 done
5283 IFS=$as_save_IFS
5284 if test -z "$ac_cv_path_FGREP"; then
5285 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5287 else
5288 ac_cv_path_FGREP=$FGREP
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5294 $as_echo "$ac_cv_path_FGREP" >&6; }
5295 FGREP="$ac_cv_path_FGREP"
5298 test -z "$GREP" && GREP=grep
5318 # Check whether --with-gnu-ld was given.
5319 if test "${with_gnu_ld+set}" = set; then :
5320 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5321 else
5322 with_gnu_ld=no
5325 ac_prog=ld
5326 if test "$GCC" = yes; then
5327 # Check if gcc -print-prog-name=ld gives a path.
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5329 $as_echo_n "checking for ld used by $CC... " >&6; }
5330 case $host in
5331 *-*-mingw*)
5332 # gcc leaves a trailing carriage return which upsets mingw
5333 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5335 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5336 esac
5337 case $ac_prog in
5338 # Accept absolute paths.
5339 [\\/]* | ?:[\\/]*)
5340 re_direlt='/[^/][^/]*/\.\./'
5341 # Canonicalize the pathname of ld
5342 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5343 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5344 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5345 done
5346 test -z "$LD" && LD="$ac_prog"
5349 # If it fails, then pretend we aren't using GCC.
5350 ac_prog=ld
5353 # If it is relative, then search for the first ld in PATH.
5354 with_gnu_ld=unknown
5356 esac
5357 elif test "$with_gnu_ld" = yes; then
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5359 $as_echo_n "checking for GNU ld... " >&6; }
5360 else
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5362 $as_echo_n "checking for non-GNU ld... " >&6; }
5364 if ${lt_cv_path_LD+:} false; then :
5365 $as_echo_n "(cached) " >&6
5366 else
5367 if test -z "$LD"; then
5368 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5369 for ac_dir in $PATH; do
5370 IFS="$lt_save_ifs"
5371 test -z "$ac_dir" && ac_dir=.
5372 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5373 lt_cv_path_LD="$ac_dir/$ac_prog"
5374 # Check to see if the program is GNU ld. I'd rather use --version,
5375 # but apparently some variants of GNU ld only accept -v.
5376 # Break only if it was the GNU/non-GNU ld that we prefer.
5377 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5378 *GNU* | *'with BFD'*)
5379 test "$with_gnu_ld" != no && break
5382 test "$with_gnu_ld" != yes && break
5384 esac
5386 done
5387 IFS="$lt_save_ifs"
5388 else
5389 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5393 LD="$lt_cv_path_LD"
5394 if test -n "$LD"; then
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5396 $as_echo "$LD" >&6; }
5397 else
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5399 $as_echo "no" >&6; }
5401 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5403 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5404 if ${lt_cv_prog_gnu_ld+:} false; then :
5405 $as_echo_n "(cached) " >&6
5406 else
5407 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5408 case `$LD -v 2>&1 </dev/null` in
5409 *GNU* | *'with BFD'*)
5410 lt_cv_prog_gnu_ld=yes
5413 lt_cv_prog_gnu_ld=no
5415 esac
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5418 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5419 with_gnu_ld=$lt_cv_prog_gnu_ld
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5430 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5431 if ${lt_cv_path_NM+:} false; then :
5432 $as_echo_n "(cached) " >&6
5433 else
5434 if test -n "$NM"; then
5435 # Let the user override the test.
5436 lt_cv_path_NM="$NM"
5437 else
5438 lt_nm_to_check="${ac_tool_prefix}nm"
5439 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5440 lt_nm_to_check="$lt_nm_to_check nm"
5442 for lt_tmp_nm in $lt_nm_to_check; do
5443 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5444 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5445 IFS="$lt_save_ifs"
5446 test -z "$ac_dir" && ac_dir=.
5447 tmp_nm="$ac_dir/$lt_tmp_nm"
5448 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5449 # Check to see if the nm accepts a BSD-compat flag.
5450 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5451 # nm: unknown option "B" ignored
5452 # Tru64's nm complains that /dev/null is an invalid object file
5453 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5454 */dev/null* | *'Invalid file or object type'*)
5455 lt_cv_path_NM="$tmp_nm -B"
5456 break
5459 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5460 */dev/null*)
5461 lt_cv_path_NM="$tmp_nm -p"
5462 break
5465 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5466 continue # so that we can try to find one that supports BSD flags
5468 esac
5470 esac
5472 done
5473 IFS="$lt_save_ifs"
5474 done
5475 : ${lt_cv_path_NM=no}
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5479 $as_echo "$lt_cv_path_NM" >&6; }
5480 if test "$lt_cv_path_NM" != "no"; then
5481 NM="$lt_cv_path_NM"
5482 else
5483 # Didn't find any BSD compatible name lister, look for dumpbin.
5484 if test -n "$DUMPBIN"; then :
5485 # Let the user override the test.
5486 else
5487 if test -n "$ac_tool_prefix"; then
5488 for ac_prog in dumpbin "link -dump"
5490 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5491 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5493 $as_echo_n "checking for $ac_word... " >&6; }
5494 if ${ac_cv_prog_DUMPBIN+:} false; then :
5495 $as_echo_n "(cached) " >&6
5496 else
5497 if test -n "$DUMPBIN"; then
5498 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5499 else
5500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5501 for as_dir in $PATH
5503 IFS=$as_save_IFS
5504 test -z "$as_dir" && as_dir=.
5505 for ac_exec_ext in '' $ac_executable_extensions; do
5506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5507 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5509 break 2
5511 done
5512 done
5513 IFS=$as_save_IFS
5517 DUMPBIN=$ac_cv_prog_DUMPBIN
5518 if test -n "$DUMPBIN"; then
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5520 $as_echo "$DUMPBIN" >&6; }
5521 else
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5523 $as_echo "no" >&6; }
5527 test -n "$DUMPBIN" && break
5528 done
5530 if test -z "$DUMPBIN"; then
5531 ac_ct_DUMPBIN=$DUMPBIN
5532 for ac_prog in dumpbin "link -dump"
5534 # Extract the first word of "$ac_prog", so it can be a program name with args.
5535 set dummy $ac_prog; ac_word=$2
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5537 $as_echo_n "checking for $ac_word... " >&6; }
5538 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5539 $as_echo_n "(cached) " >&6
5540 else
5541 if test -n "$ac_ct_DUMPBIN"; then
5542 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5543 else
5544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5545 for as_dir in $PATH
5547 IFS=$as_save_IFS
5548 test -z "$as_dir" && as_dir=.
5549 for ac_exec_ext in '' $ac_executable_extensions; do
5550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5551 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5553 break 2
5555 done
5556 done
5557 IFS=$as_save_IFS
5561 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5562 if test -n "$ac_ct_DUMPBIN"; then
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5564 $as_echo "$ac_ct_DUMPBIN" >&6; }
5565 else
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5567 $as_echo "no" >&6; }
5571 test -n "$ac_ct_DUMPBIN" && break
5572 done
5574 if test "x$ac_ct_DUMPBIN" = x; then
5575 DUMPBIN=":"
5576 else
5577 case $cross_compiling:$ac_tool_warned in
5578 yes:)
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5581 ac_tool_warned=yes ;;
5582 esac
5583 DUMPBIN=$ac_ct_DUMPBIN
5587 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5588 *COFF*)
5589 DUMPBIN="$DUMPBIN -symbols"
5592 DUMPBIN=:
5594 esac
5597 if test "$DUMPBIN" != ":"; then
5598 NM="$DUMPBIN"
5601 test -z "$NM" && NM=nm
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5609 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5610 if ${lt_cv_nm_interface+:} false; then :
5611 $as_echo_n "(cached) " >&6
5612 else
5613 lt_cv_nm_interface="BSD nm"
5614 echo "int some_variable = 0;" > conftest.$ac_ext
5615 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5616 (eval "$ac_compile" 2>conftest.err)
5617 cat conftest.err >&5
5618 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5619 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5620 cat conftest.err >&5
5621 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5622 cat conftest.out >&5
5623 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5624 lt_cv_nm_interface="MS dumpbin"
5626 rm -f conftest*
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5629 $as_echo "$lt_cv_nm_interface" >&6; }
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5632 $as_echo_n "checking whether ln -s works... " >&6; }
5633 LN_S=$as_ln_s
5634 if test "$LN_S" = "ln -s"; then
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5636 $as_echo "yes" >&6; }
5637 else
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5639 $as_echo "no, using $LN_S" >&6; }
5642 # find the maximum length of command line arguments
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5644 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5645 if ${lt_cv_sys_max_cmd_len+:} false; then :
5646 $as_echo_n "(cached) " >&6
5647 else
5649 teststring="ABCD"
5651 case $build_os in
5652 msdosdjgpp*)
5653 # On DJGPP, this test can blow up pretty badly due to problems in libc
5654 # (any single argument exceeding 2000 bytes causes a buffer overrun
5655 # during glob expansion). Even if it were fixed, the result of this
5656 # check would be larger than it should be.
5657 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5660 gnu*)
5661 # Under GNU Hurd, this test is not required because there is
5662 # no limit to the length of command line arguments.
5663 # Libtool will interpret -1 as no limit whatsoever
5664 lt_cv_sys_max_cmd_len=-1;
5667 cygwin* | mingw* | cegcc*)
5668 # On Win9x/ME, this test blows up -- it succeeds, but takes
5669 # about 5 minutes as the teststring grows exponentially.
5670 # Worse, since 9x/ME are not pre-emptively multitasking,
5671 # you end up with a "frozen" computer, even though with patience
5672 # the test eventually succeeds (with a max line length of 256k).
5673 # Instead, let's just punt: use the minimum linelength reported by
5674 # all of the supported platforms: 8192 (on NT/2K/XP).
5675 lt_cv_sys_max_cmd_len=8192;
5678 mint*)
5679 # On MiNT this can take a long time and run out of memory.
5680 lt_cv_sys_max_cmd_len=8192;
5683 amigaos*)
5684 # On AmigaOS with pdksh, this test takes hours, literally.
5685 # So we just punt and use a minimum line length of 8192.
5686 lt_cv_sys_max_cmd_len=8192;
5689 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5690 # This has been around since 386BSD, at least. Likely further.
5691 if test -x /sbin/sysctl; then
5692 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5693 elif test -x /usr/sbin/sysctl; then
5694 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5695 else
5696 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5698 # And add a safety zone
5699 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5700 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5703 interix*)
5704 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5705 lt_cv_sys_max_cmd_len=196608
5708 osf*)
5709 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5710 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5711 # nice to cause kernel panics so lets avoid the loop below.
5712 # First set a reasonable default.
5713 lt_cv_sys_max_cmd_len=16384
5715 if test -x /sbin/sysconfig; then
5716 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5717 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5718 esac
5721 sco3.2v5*)
5722 lt_cv_sys_max_cmd_len=102400
5724 sysv5* | sco5v6* | sysv4.2uw2*)
5725 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5726 if test -n "$kargmax"; then
5727 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5728 else
5729 lt_cv_sys_max_cmd_len=32768
5733 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5734 if test -n "$lt_cv_sys_max_cmd_len"; then
5735 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5736 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5737 else
5738 # Make teststring a little bigger before we do anything with it.
5739 # a 1K string should be a reasonable start.
5740 for i in 1 2 3 4 5 6 7 8 ; do
5741 teststring=$teststring$teststring
5742 done
5743 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5744 # If test is not a shell built-in, we'll probably end up computing a
5745 # maximum length that is only half of the actual maximum length, but
5746 # we can't tell.
5747 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5748 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5749 test $i != 17 # 1/2 MB should be enough
5751 i=`expr $i + 1`
5752 teststring=$teststring$teststring
5753 done
5754 # Only check the string length outside the loop.
5755 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5756 teststring=
5757 # Add a significant safety factor because C++ compilers can tack on
5758 # massive amounts of additional arguments before passing them to the
5759 # linker. It appears as though 1/2 is a usable value.
5760 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5763 esac
5767 if test -n $lt_cv_sys_max_cmd_len ; then
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5769 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5770 else
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5772 $as_echo "none" >&6; }
5774 max_cmd_len=$lt_cv_sys_max_cmd_len
5781 : ${CP="cp -f"}
5782 : ${MV="mv -f"}
5783 : ${RM="rm -f"}
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5786 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5787 # Try some XSI features
5788 xsi_shell=no
5789 ( _lt_dummy="a/b/c"
5790 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5791 = c,a/b,, \
5792 && eval 'test $(( 1 + 1 )) -eq 2 \
5793 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5794 && xsi_shell=yes
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5796 $as_echo "$xsi_shell" >&6; }
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5800 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5801 lt_shell_append=no
5802 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5803 >/dev/null 2>&1 \
5804 && lt_shell_append=yes
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5806 $as_echo "$lt_shell_append" >&6; }
5809 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5810 lt_unset=unset
5811 else
5812 lt_unset=false
5819 # test EBCDIC or ASCII
5820 case `echo X|tr X '\101'` in
5821 A) # ASCII based system
5822 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5823 lt_SP2NL='tr \040 \012'
5824 lt_NL2SP='tr \015\012 \040\040'
5826 *) # EBCDIC based system
5827 lt_SP2NL='tr \100 \n'
5828 lt_NL2SP='tr \r\n \100\100'
5830 esac
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5841 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5842 if ${lt_cv_ld_reload_flag+:} false; then :
5843 $as_echo_n "(cached) " >&6
5844 else
5845 lt_cv_ld_reload_flag='-r'
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5848 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5849 reload_flag=$lt_cv_ld_reload_flag
5850 case $reload_flag in
5851 "" | " "*) ;;
5852 *) reload_flag=" $reload_flag" ;;
5853 esac
5854 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5855 case $host_os in
5856 darwin*)
5857 if test "$GCC" = yes; then
5858 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5859 else
5860 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5863 esac
5873 if test -n "$ac_tool_prefix"; then
5874 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5875 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5877 $as_echo_n "checking for $ac_word... " >&6; }
5878 if ${ac_cv_prog_OBJDUMP+:} false; then :
5879 $as_echo_n "(cached) " >&6
5880 else
5881 if test -n "$OBJDUMP"; then
5882 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5883 else
5884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5885 for as_dir in $PATH
5887 IFS=$as_save_IFS
5888 test -z "$as_dir" && as_dir=.
5889 for ac_exec_ext in '' $ac_executable_extensions; do
5890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5891 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5893 break 2
5895 done
5896 done
5897 IFS=$as_save_IFS
5901 OBJDUMP=$ac_cv_prog_OBJDUMP
5902 if test -n "$OBJDUMP"; then
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5904 $as_echo "$OBJDUMP" >&6; }
5905 else
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5907 $as_echo "no" >&6; }
5912 if test -z "$ac_cv_prog_OBJDUMP"; then
5913 ac_ct_OBJDUMP=$OBJDUMP
5914 # Extract the first word of "objdump", so it can be a program name with args.
5915 set dummy objdump; ac_word=$2
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5917 $as_echo_n "checking for $ac_word... " >&6; }
5918 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5919 $as_echo_n "(cached) " >&6
5920 else
5921 if test -n "$ac_ct_OBJDUMP"; then
5922 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5923 else
5924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5925 for as_dir in $PATH
5927 IFS=$as_save_IFS
5928 test -z "$as_dir" && as_dir=.
5929 for ac_exec_ext in '' $ac_executable_extensions; do
5930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5931 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5933 break 2
5935 done
5936 done
5937 IFS=$as_save_IFS
5941 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5942 if test -n "$ac_ct_OBJDUMP"; then
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5944 $as_echo "$ac_ct_OBJDUMP" >&6; }
5945 else
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5947 $as_echo "no" >&6; }
5950 if test "x$ac_ct_OBJDUMP" = x; then
5951 OBJDUMP="false"
5952 else
5953 case $cross_compiling:$ac_tool_warned in
5954 yes:)
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5956 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5957 ac_tool_warned=yes ;;
5958 esac
5959 OBJDUMP=$ac_ct_OBJDUMP
5961 else
5962 OBJDUMP="$ac_cv_prog_OBJDUMP"
5965 test -z "$OBJDUMP" && OBJDUMP=objdump
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5976 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5977 if ${lt_cv_deplibs_check_method+:} false; then :
5978 $as_echo_n "(cached) " >&6
5979 else
5980 lt_cv_file_magic_cmd='$MAGIC_CMD'
5981 lt_cv_file_magic_test_file=
5982 lt_cv_deplibs_check_method='unknown'
5983 # Need to set the preceding variable on all platforms that support
5984 # interlibrary dependencies.
5985 # 'none' -- dependencies not supported.
5986 # `unknown' -- same as none, but documents that we really don't know.
5987 # 'pass_all' -- all dependencies passed with no checks.
5988 # 'test_compile' -- check by making test program.
5989 # 'file_magic [[regex]]' -- check by looking for files in library path
5990 # which responds to the $file_magic_cmd with a given extended regex.
5991 # If you have `file' or equivalent on your system and you're not sure
5992 # whether `pass_all' will *always* work, you probably want this one.
5994 case $host_os in
5995 aix[4-9]*)
5996 lt_cv_deplibs_check_method=pass_all
5999 beos*)
6000 lt_cv_deplibs_check_method=pass_all
6003 bsdi[45]*)
6004 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6005 lt_cv_file_magic_cmd='/usr/bin/file -L'
6006 lt_cv_file_magic_test_file=/shlib/libc.so
6009 cygwin*)
6010 # func_win32_libid is a shell function defined in ltmain.sh
6011 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6012 lt_cv_file_magic_cmd='func_win32_libid'
6015 mingw* | pw32*)
6016 # Base MSYS/MinGW do not provide the 'file' command needed by
6017 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6018 # unless we find 'file', for example because we are cross-compiling.
6019 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6020 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6021 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6022 lt_cv_file_magic_cmd='func_win32_libid'
6023 else
6024 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6025 lt_cv_file_magic_cmd='$OBJDUMP -f'
6029 cegcc*)
6030 # use the weaker test based on 'objdump'. See mingw*.
6031 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6032 lt_cv_file_magic_cmd='$OBJDUMP -f'
6035 darwin* | rhapsody*)
6036 lt_cv_deplibs_check_method=pass_all
6039 freebsd* | dragonfly*)
6040 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6041 case $host_cpu in
6042 i*86 )
6043 # Not sure whether the presence of OpenBSD here was a mistake.
6044 # Let's accept both of them until this is cleared up.
6045 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6046 lt_cv_file_magic_cmd=/usr/bin/file
6047 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6049 esac
6050 else
6051 lt_cv_deplibs_check_method=pass_all
6055 gnu*)
6056 lt_cv_deplibs_check_method=pass_all
6059 haiku*)
6060 lt_cv_deplibs_check_method=pass_all
6063 hpux10.20* | hpux11*)
6064 lt_cv_file_magic_cmd=/usr/bin/file
6065 case $host_cpu in
6066 ia64*)
6067 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6068 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6070 hppa*64*)
6071 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]'
6072 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6075 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6076 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6078 esac
6081 interix[3-9]*)
6082 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6083 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6086 irix5* | irix6* | nonstopux*)
6087 case $LD in
6088 *-32|*"-32 ") libmagic=32-bit;;
6089 *-n32|*"-n32 ") libmagic=N32;;
6090 *-64|*"-64 ") libmagic=64-bit;;
6091 *) libmagic=never-match;;
6092 esac
6093 lt_cv_deplibs_check_method=pass_all
6096 # This must be Linux ELF.
6097 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6098 lt_cv_deplibs_check_method=pass_all
6101 netbsd*)
6102 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6103 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6104 else
6105 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6109 newos6*)
6110 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6111 lt_cv_file_magic_cmd=/usr/bin/file
6112 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6115 *nto* | *qnx*)
6116 lt_cv_deplibs_check_method=pass_all
6119 openbsd*)
6120 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6121 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6122 else
6123 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6127 osf3* | osf4* | osf5*)
6128 lt_cv_deplibs_check_method=pass_all
6131 rdos*)
6132 lt_cv_deplibs_check_method=pass_all
6135 solaris*)
6136 lt_cv_deplibs_check_method=pass_all
6139 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6140 lt_cv_deplibs_check_method=pass_all
6143 sysv4 | sysv4.3*)
6144 case $host_vendor in
6145 motorola)
6146 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]'
6147 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6149 ncr)
6150 lt_cv_deplibs_check_method=pass_all
6152 sequent)
6153 lt_cv_file_magic_cmd='/bin/file'
6154 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6156 sni)
6157 lt_cv_file_magic_cmd='/bin/file'
6158 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6159 lt_cv_file_magic_test_file=/lib/libc.so
6161 siemens)
6162 lt_cv_deplibs_check_method=pass_all
6165 lt_cv_deplibs_check_method=pass_all
6167 esac
6170 tpf*)
6171 lt_cv_deplibs_check_method=pass_all
6173 esac
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6177 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6178 file_magic_cmd=$lt_cv_file_magic_cmd
6179 deplibs_check_method=$lt_cv_deplibs_check_method
6180 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6193 if test -n "$ac_tool_prefix"; then
6194 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6195 set dummy ${ac_tool_prefix}ar; ac_word=$2
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6197 $as_echo_n "checking for $ac_word... " >&6; }
6198 if ${ac_cv_prog_AR+:} false; then :
6199 $as_echo_n "(cached) " >&6
6200 else
6201 if test -n "$AR"; then
6202 ac_cv_prog_AR="$AR" # Let the user override the test.
6203 else
6204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6205 for as_dir in $PATH
6207 IFS=$as_save_IFS
6208 test -z "$as_dir" && as_dir=.
6209 for ac_exec_ext in '' $ac_executable_extensions; do
6210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6211 ac_cv_prog_AR="${ac_tool_prefix}ar"
6212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6213 break 2
6215 done
6216 done
6217 IFS=$as_save_IFS
6221 AR=$ac_cv_prog_AR
6222 if test -n "$AR"; then
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6224 $as_echo "$AR" >&6; }
6225 else
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6227 $as_echo "no" >&6; }
6232 if test -z "$ac_cv_prog_AR"; then
6233 ac_ct_AR=$AR
6234 # Extract the first word of "ar", so it can be a program name with args.
6235 set dummy ar; ac_word=$2
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6237 $as_echo_n "checking for $ac_word... " >&6; }
6238 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6239 $as_echo_n "(cached) " >&6
6240 else
6241 if test -n "$ac_ct_AR"; then
6242 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6243 else
6244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6245 for as_dir in $PATH
6247 IFS=$as_save_IFS
6248 test -z "$as_dir" && as_dir=.
6249 for ac_exec_ext in '' $ac_executable_extensions; do
6250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6251 ac_cv_prog_ac_ct_AR="ar"
6252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6253 break 2
6255 done
6256 done
6257 IFS=$as_save_IFS
6261 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6262 if test -n "$ac_ct_AR"; then
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6264 $as_echo "$ac_ct_AR" >&6; }
6265 else
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6267 $as_echo "no" >&6; }
6270 if test "x$ac_ct_AR" = x; then
6271 AR="false"
6272 else
6273 case $cross_compiling:$ac_tool_warned in
6274 yes:)
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6276 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6277 ac_tool_warned=yes ;;
6278 esac
6279 AR=$ac_ct_AR
6281 else
6282 AR="$ac_cv_prog_AR"
6285 test -z "$AR" && AR=ar
6286 test -z "$AR_FLAGS" && AR_FLAGS=cru
6298 if test -n "$ac_tool_prefix"; then
6299 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6300 set dummy ${ac_tool_prefix}strip; ac_word=$2
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6302 $as_echo_n "checking for $ac_word... " >&6; }
6303 if ${ac_cv_prog_STRIP+:} false; then :
6304 $as_echo_n "(cached) " >&6
6305 else
6306 if test -n "$STRIP"; then
6307 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6308 else
6309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6310 for as_dir in $PATH
6312 IFS=$as_save_IFS
6313 test -z "$as_dir" && as_dir=.
6314 for ac_exec_ext in '' $ac_executable_extensions; do
6315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6316 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6318 break 2
6320 done
6321 done
6322 IFS=$as_save_IFS
6326 STRIP=$ac_cv_prog_STRIP
6327 if test -n "$STRIP"; then
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6329 $as_echo "$STRIP" >&6; }
6330 else
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6332 $as_echo "no" >&6; }
6337 if test -z "$ac_cv_prog_STRIP"; then
6338 ac_ct_STRIP=$STRIP
6339 # Extract the first word of "strip", so it can be a program name with args.
6340 set dummy strip; ac_word=$2
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6342 $as_echo_n "checking for $ac_word... " >&6; }
6343 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6344 $as_echo_n "(cached) " >&6
6345 else
6346 if test -n "$ac_ct_STRIP"; then
6347 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6348 else
6349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6350 for as_dir in $PATH
6352 IFS=$as_save_IFS
6353 test -z "$as_dir" && as_dir=.
6354 for ac_exec_ext in '' $ac_executable_extensions; do
6355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6356 ac_cv_prog_ac_ct_STRIP="strip"
6357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6358 break 2
6360 done
6361 done
6362 IFS=$as_save_IFS
6366 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6367 if test -n "$ac_ct_STRIP"; then
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6369 $as_echo "$ac_ct_STRIP" >&6; }
6370 else
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6372 $as_echo "no" >&6; }
6375 if test "x$ac_ct_STRIP" = x; then
6376 STRIP=":"
6377 else
6378 case $cross_compiling:$ac_tool_warned in
6379 yes:)
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6381 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6382 ac_tool_warned=yes ;;
6383 esac
6384 STRIP=$ac_ct_STRIP
6386 else
6387 STRIP="$ac_cv_prog_STRIP"
6390 test -z "$STRIP" && STRIP=:
6397 if test -n "$ac_tool_prefix"; then
6398 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6399 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6401 $as_echo_n "checking for $ac_word... " >&6; }
6402 if ${ac_cv_prog_RANLIB+:} false; then :
6403 $as_echo_n "(cached) " >&6
6404 else
6405 if test -n "$RANLIB"; then
6406 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6407 else
6408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6409 for as_dir in $PATH
6411 IFS=$as_save_IFS
6412 test -z "$as_dir" && as_dir=.
6413 for ac_exec_ext in '' $ac_executable_extensions; do
6414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6415 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6417 break 2
6419 done
6420 done
6421 IFS=$as_save_IFS
6425 RANLIB=$ac_cv_prog_RANLIB
6426 if test -n "$RANLIB"; then
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6428 $as_echo "$RANLIB" >&6; }
6429 else
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6431 $as_echo "no" >&6; }
6436 if test -z "$ac_cv_prog_RANLIB"; then
6437 ac_ct_RANLIB=$RANLIB
6438 # Extract the first word of "ranlib", so it can be a program name with args.
6439 set dummy ranlib; ac_word=$2
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6441 $as_echo_n "checking for $ac_word... " >&6; }
6442 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6443 $as_echo_n "(cached) " >&6
6444 else
6445 if test -n "$ac_ct_RANLIB"; then
6446 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6447 else
6448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6449 for as_dir in $PATH
6451 IFS=$as_save_IFS
6452 test -z "$as_dir" && as_dir=.
6453 for ac_exec_ext in '' $ac_executable_extensions; do
6454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6455 ac_cv_prog_ac_ct_RANLIB="ranlib"
6456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6457 break 2
6459 done
6460 done
6461 IFS=$as_save_IFS
6465 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6466 if test -n "$ac_ct_RANLIB"; then
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6468 $as_echo "$ac_ct_RANLIB" >&6; }
6469 else
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6471 $as_echo "no" >&6; }
6474 if test "x$ac_ct_RANLIB" = x; then
6475 RANLIB=":"
6476 else
6477 case $cross_compiling:$ac_tool_warned in
6478 yes:)
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6480 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6481 ac_tool_warned=yes ;;
6482 esac
6483 RANLIB=$ac_ct_RANLIB
6485 else
6486 RANLIB="$ac_cv_prog_RANLIB"
6489 test -z "$RANLIB" && RANLIB=:
6496 # Determine commands to create old-style static archives.
6497 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6498 old_postinstall_cmds='chmod 644 $oldlib'
6499 old_postuninstall_cmds=
6501 if test -n "$RANLIB"; then
6502 case $host_os in
6503 openbsd*)
6504 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6507 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6509 esac
6510 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6513 case $host_os in
6514 darwin*)
6515 lock_old_archive_extraction=yes ;;
6517 lock_old_archive_extraction=no ;;
6518 esac
6558 # If no C compiler was specified, use CC.
6559 LTCC=${LTCC-"$CC"}
6561 # If no C compiler flags were specified, use CFLAGS.
6562 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6564 # Allow CC to be a program name with arguments.
6565 compiler=$CC
6568 # Check for command to grab the raw symbol name followed by C symbol from nm.
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6570 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6571 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6572 $as_echo_n "(cached) " >&6
6573 else
6575 # These are sane defaults that work on at least a few old systems.
6576 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6578 # Character class describing NM global symbol codes.
6579 symcode='[BCDEGRST]'
6581 # Regexp to match symbols that can be accessed directly from C.
6582 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6584 # Define system-specific variables.
6585 case $host_os in
6586 aix*)
6587 symcode='[BCDT]'
6589 cygwin* | mingw* | pw32* | cegcc*)
6590 symcode='[ABCDGISTW]'
6592 hpux*)
6593 if test "$host_cpu" = ia64; then
6594 symcode='[ABCDEGRST]'
6597 irix* | nonstopux*)
6598 symcode='[BCDEGRST]'
6600 osf*)
6601 symcode='[BCDEGQRST]'
6603 solaris*)
6604 symcode='[BDRT]'
6606 sco3.2v5*)
6607 symcode='[DT]'
6609 sysv4.2uw2*)
6610 symcode='[DT]'
6612 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6613 symcode='[ABDT]'
6615 sysv4)
6616 symcode='[DFNSTU]'
6618 esac
6620 # If we're using GNU nm, then use its standard symbol codes.
6621 case `$NM -V 2>&1` in
6622 *GNU* | *'with BFD'*)
6623 symcode='[ABCDGIRSTW]' ;;
6624 esac
6626 # Transform an extracted symbol line into a proper C declaration.
6627 # Some systems (esp. on ia64) link data and code symbols differently,
6628 # so use this general approach.
6629 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6631 # Transform an extracted symbol line into symbol name and symbol address
6632 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6633 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'"
6635 # Handle CRLF in mingw tool chain
6636 opt_cr=
6637 case $build_os in
6638 mingw*)
6639 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6641 esac
6643 # Try without a prefix underscore, then with it.
6644 for ac_symprfx in "" "_"; do
6646 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6647 symxfrm="\\1 $ac_symprfx\\2 \\2"
6649 # Write the raw and C identifiers.
6650 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6651 # Fake it for dumpbin and say T for any non-static function
6652 # and D for any global variable.
6653 # Also find C++ and __fastcall symbols from MSVC++,
6654 # which start with @ or ?.
6655 lt_cv_sys_global_symbol_pipe="$AWK '"\
6656 " {last_section=section; section=\$ 3};"\
6657 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6658 " \$ 0!~/External *\|/{next};"\
6659 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6660 " {if(hide[section]) next};"\
6661 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6662 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6663 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6664 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6665 " ' prfx=^$ac_symprfx"
6666 else
6667 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6670 # Check to see that the pipe works correctly.
6671 pipe_works=no
6673 rm -f conftest*
6674 cat > conftest.$ac_ext <<_LT_EOF
6675 #ifdef __cplusplus
6676 extern "C" {
6677 #endif
6678 char nm_test_var;
6679 void nm_test_func(void);
6680 void nm_test_func(void){}
6681 #ifdef __cplusplus
6683 #endif
6684 int main(){nm_test_var='a';nm_test_func();return(0);}
6685 _LT_EOF
6687 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6688 (eval $ac_compile) 2>&5
6689 ac_status=$?
6690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6691 test $ac_status = 0; }; then
6692 # Now try to grab the symbols.
6693 nlist=conftest.nm
6694 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6695 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6696 ac_status=$?
6697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6698 test $ac_status = 0; } && test -s "$nlist"; then
6699 # Try sorting and uniquifying the output.
6700 if sort "$nlist" | uniq > "$nlist"T; then
6701 mv -f "$nlist"T "$nlist"
6702 else
6703 rm -f "$nlist"T
6706 # Make sure that we snagged all the symbols we need.
6707 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6708 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6709 cat <<_LT_EOF > conftest.$ac_ext
6710 #ifdef __cplusplus
6711 extern "C" {
6712 #endif
6714 _LT_EOF
6715 # Now generate the symbol file.
6716 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6718 cat <<_LT_EOF >> conftest.$ac_ext
6720 /* The mapping between symbol names and symbols. */
6721 const struct {
6722 const char *name;
6723 void *address;
6725 lt__PROGRAM__LTX_preloaded_symbols[] =
6727 { "@PROGRAM@", (void *) 0 },
6728 _LT_EOF
6729 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6730 cat <<\_LT_EOF >> conftest.$ac_ext
6731 {0, (void *) 0}
6734 /* This works around a problem in FreeBSD linker */
6735 #ifdef FREEBSD_WORKAROUND
6736 static const void *lt_preloaded_setup() {
6737 return lt__PROGRAM__LTX_preloaded_symbols;
6739 #endif
6741 #ifdef __cplusplus
6743 #endif
6744 _LT_EOF
6745 # Now try linking the two files.
6746 mv conftest.$ac_objext conftstm.$ac_objext
6747 lt_save_LIBS="$LIBS"
6748 lt_save_CFLAGS="$CFLAGS"
6749 LIBS="conftstm.$ac_objext"
6750 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6751 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6752 (eval $ac_link) 2>&5
6753 ac_status=$?
6754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6755 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6756 pipe_works=yes
6758 LIBS="$lt_save_LIBS"
6759 CFLAGS="$lt_save_CFLAGS"
6760 else
6761 echo "cannot find nm_test_func in $nlist" >&5
6763 else
6764 echo "cannot find nm_test_var in $nlist" >&5
6766 else
6767 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6769 else
6770 echo "$progname: failed program was:" >&5
6771 cat conftest.$ac_ext >&5
6773 rm -rf conftest* conftst*
6775 # Do not use the global_symbol_pipe unless it works.
6776 if test "$pipe_works" = yes; then
6777 break
6778 else
6779 lt_cv_sys_global_symbol_pipe=
6781 done
6785 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6786 lt_cv_sys_global_symbol_to_cdecl=
6788 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6790 $as_echo "failed" >&6; }
6791 else
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6793 $as_echo "ok" >&6; }
6818 # Check whether --enable-libtool-lock was given.
6819 if test "${enable_libtool_lock+set}" = set; then :
6820 enableval=$enable_libtool_lock;
6823 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6825 # Some flags need to be propagated to the compiler or linker for good
6826 # libtool support.
6827 case $host in
6828 ia64-*-hpux*)
6829 # Find out which ABI we are using.
6830 echo 'int i;' > conftest.$ac_ext
6831 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6832 (eval $ac_compile) 2>&5
6833 ac_status=$?
6834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6835 test $ac_status = 0; }; then
6836 case `/usr/bin/file conftest.$ac_objext` in
6837 *ELF-32*)
6838 HPUX_IA64_MODE="32"
6840 *ELF-64*)
6841 HPUX_IA64_MODE="64"
6843 esac
6845 rm -rf conftest*
6847 *-*-irix6*)
6848 # Find out which ABI we are using.
6849 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6850 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6851 (eval $ac_compile) 2>&5
6852 ac_status=$?
6853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6854 test $ac_status = 0; }; then
6855 if test "$lt_cv_prog_gnu_ld" = yes; then
6856 case `/usr/bin/file conftest.$ac_objext` in
6857 *32-bit*)
6858 LD="${LD-ld} -melf32bsmip"
6860 *N32*)
6861 LD="${LD-ld} -melf32bmipn32"
6863 *64-bit*)
6864 LD="${LD-ld} -melf64bmip"
6866 esac
6867 else
6868 case `/usr/bin/file conftest.$ac_objext` in
6869 *32-bit*)
6870 LD="${LD-ld} -32"
6872 *N32*)
6873 LD="${LD-ld} -n32"
6875 *64-bit*)
6876 LD="${LD-ld} -64"
6878 esac
6881 rm -rf conftest*
6884 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6885 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6886 # Find out which ABI we are using.
6887 echo 'int i;' > conftest.$ac_ext
6888 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6889 (eval $ac_compile) 2>&5
6890 ac_status=$?
6891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6892 test $ac_status = 0; }; then
6893 case `/usr/bin/file conftest.o` in
6894 *32-bit*)
6895 case $host in
6896 x86_64-*kfreebsd*-gnu)
6897 LD="${LD-ld} -m elf_i386_fbsd"
6899 x86_64-*linux*)
6900 case `/usr/bin/file conftest.o` in
6901 *x86-64*)
6902 LD="${LD-ld} -m elf32_x86_64"
6905 LD="${LD-ld} -m elf_i386"
6907 esac
6909 powerpc64le-*linux*)
6910 LD="${LD-ld} -m elf32lppclinux"
6912 powerpc64-*linux*)
6913 LD="${LD-ld} -m elf32ppclinux"
6915 s390x-*linux*)
6916 LD="${LD-ld} -m elf_s390"
6918 sparc64-*linux*)
6919 LD="${LD-ld} -m elf32_sparc"
6921 esac
6923 *64-bit*)
6924 case $host in
6925 x86_64-*kfreebsd*-gnu)
6926 LD="${LD-ld} -m elf_x86_64_fbsd"
6928 x86_64-*linux*)
6929 LD="${LD-ld} -m elf_x86_64"
6931 powerpcle-*linux*)
6932 LD="${LD-ld} -m elf64lppc"
6934 powerpc-*linux*)
6935 LD="${LD-ld} -m elf64ppc"
6937 s390*-*linux*|s390*-*tpf*)
6938 LD="${LD-ld} -m elf64_s390"
6940 sparc*-*linux*)
6941 LD="${LD-ld} -m elf64_sparc"
6943 esac
6945 esac
6947 rm -rf conftest*
6950 *-*-sco3.2v5*)
6951 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6952 SAVE_CFLAGS="$CFLAGS"
6953 CFLAGS="$CFLAGS -belf"
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6955 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6956 if ${lt_cv_cc_needs_belf+:} false; then :
6957 $as_echo_n "(cached) " >&6
6958 else
6959 ac_ext=c
6960 ac_cpp='$CPP $CPPFLAGS'
6961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6966 /* end confdefs.h. */
6969 main ()
6973 return 0;
6975 _ACEOF
6976 if ac_fn_c_try_link "$LINENO"; then :
6977 lt_cv_cc_needs_belf=yes
6978 else
6979 lt_cv_cc_needs_belf=no
6981 rm -f core conftest.err conftest.$ac_objext \
6982 conftest$ac_exeext conftest.$ac_ext
6983 ac_ext=c
6984 ac_cpp='$CPP $CPPFLAGS'
6985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6991 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6992 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6993 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6994 CFLAGS="$SAVE_CFLAGS"
6997 sparc*-*solaris*)
6998 # Find out which ABI we are using.
6999 echo 'int i;' > conftest.$ac_ext
7000 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7001 (eval $ac_compile) 2>&5
7002 ac_status=$?
7003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7004 test $ac_status = 0; }; then
7005 case `/usr/bin/file conftest.o` in
7006 *64-bit*)
7007 case $lt_cv_prog_gnu_ld in
7008 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7010 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7011 LD="${LD-ld} -64"
7014 esac
7016 esac
7018 rm -rf conftest*
7020 esac
7022 need_locks="$enable_libtool_lock"
7025 case $host_os in
7026 rhapsody* | darwin*)
7027 if test -n "$ac_tool_prefix"; then
7028 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7029 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7031 $as_echo_n "checking for $ac_word... " >&6; }
7032 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7033 $as_echo_n "(cached) " >&6
7034 else
7035 if test -n "$DSYMUTIL"; then
7036 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7037 else
7038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7039 for as_dir in $PATH
7041 IFS=$as_save_IFS
7042 test -z "$as_dir" && as_dir=.
7043 for ac_exec_ext in '' $ac_executable_extensions; do
7044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7045 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7047 break 2
7049 done
7050 done
7051 IFS=$as_save_IFS
7055 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7056 if test -n "$DSYMUTIL"; then
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7058 $as_echo "$DSYMUTIL" >&6; }
7059 else
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7061 $as_echo "no" >&6; }
7066 if test -z "$ac_cv_prog_DSYMUTIL"; then
7067 ac_ct_DSYMUTIL=$DSYMUTIL
7068 # Extract the first word of "dsymutil", so it can be a program name with args.
7069 set dummy dsymutil; ac_word=$2
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7071 $as_echo_n "checking for $ac_word... " >&6; }
7072 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7073 $as_echo_n "(cached) " >&6
7074 else
7075 if test -n "$ac_ct_DSYMUTIL"; then
7076 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7077 else
7078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7079 for as_dir in $PATH
7081 IFS=$as_save_IFS
7082 test -z "$as_dir" && as_dir=.
7083 for ac_exec_ext in '' $ac_executable_extensions; do
7084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7085 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7087 break 2
7089 done
7090 done
7091 IFS=$as_save_IFS
7095 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7096 if test -n "$ac_ct_DSYMUTIL"; then
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7098 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7099 else
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7101 $as_echo "no" >&6; }
7104 if test "x$ac_ct_DSYMUTIL" = x; then
7105 DSYMUTIL=":"
7106 else
7107 case $cross_compiling:$ac_tool_warned in
7108 yes:)
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7110 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7111 ac_tool_warned=yes ;;
7112 esac
7113 DSYMUTIL=$ac_ct_DSYMUTIL
7115 else
7116 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7119 if test -n "$ac_tool_prefix"; then
7120 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7121 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7123 $as_echo_n "checking for $ac_word... " >&6; }
7124 if ${ac_cv_prog_NMEDIT+:} false; then :
7125 $as_echo_n "(cached) " >&6
7126 else
7127 if test -n "$NMEDIT"; then
7128 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7129 else
7130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7131 for as_dir in $PATH
7133 IFS=$as_save_IFS
7134 test -z "$as_dir" && as_dir=.
7135 for ac_exec_ext in '' $ac_executable_extensions; do
7136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7137 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7139 break 2
7141 done
7142 done
7143 IFS=$as_save_IFS
7147 NMEDIT=$ac_cv_prog_NMEDIT
7148 if test -n "$NMEDIT"; then
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7150 $as_echo "$NMEDIT" >&6; }
7151 else
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7153 $as_echo "no" >&6; }
7158 if test -z "$ac_cv_prog_NMEDIT"; then
7159 ac_ct_NMEDIT=$NMEDIT
7160 # Extract the first word of "nmedit", so it can be a program name with args.
7161 set dummy nmedit; ac_word=$2
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7163 $as_echo_n "checking for $ac_word... " >&6; }
7164 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7165 $as_echo_n "(cached) " >&6
7166 else
7167 if test -n "$ac_ct_NMEDIT"; then
7168 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7169 else
7170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7171 for as_dir in $PATH
7173 IFS=$as_save_IFS
7174 test -z "$as_dir" && as_dir=.
7175 for ac_exec_ext in '' $ac_executable_extensions; do
7176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7177 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7179 break 2
7181 done
7182 done
7183 IFS=$as_save_IFS
7187 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7188 if test -n "$ac_ct_NMEDIT"; then
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7190 $as_echo "$ac_ct_NMEDIT" >&6; }
7191 else
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7193 $as_echo "no" >&6; }
7196 if test "x$ac_ct_NMEDIT" = x; then
7197 NMEDIT=":"
7198 else
7199 case $cross_compiling:$ac_tool_warned in
7200 yes:)
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7202 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7203 ac_tool_warned=yes ;;
7204 esac
7205 NMEDIT=$ac_ct_NMEDIT
7207 else
7208 NMEDIT="$ac_cv_prog_NMEDIT"
7211 if test -n "$ac_tool_prefix"; then
7212 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7213 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7215 $as_echo_n "checking for $ac_word... " >&6; }
7216 if ${ac_cv_prog_LIPO+:} false; then :
7217 $as_echo_n "(cached) " >&6
7218 else
7219 if test -n "$LIPO"; then
7220 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7221 else
7222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7223 for as_dir in $PATH
7225 IFS=$as_save_IFS
7226 test -z "$as_dir" && as_dir=.
7227 for ac_exec_ext in '' $ac_executable_extensions; do
7228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7229 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7231 break 2
7233 done
7234 done
7235 IFS=$as_save_IFS
7239 LIPO=$ac_cv_prog_LIPO
7240 if test -n "$LIPO"; then
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7242 $as_echo "$LIPO" >&6; }
7243 else
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7245 $as_echo "no" >&6; }
7250 if test -z "$ac_cv_prog_LIPO"; then
7251 ac_ct_LIPO=$LIPO
7252 # Extract the first word of "lipo", so it can be a program name with args.
7253 set dummy lipo; ac_word=$2
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7255 $as_echo_n "checking for $ac_word... " >&6; }
7256 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7257 $as_echo_n "(cached) " >&6
7258 else
7259 if test -n "$ac_ct_LIPO"; then
7260 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7261 else
7262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7263 for as_dir in $PATH
7265 IFS=$as_save_IFS
7266 test -z "$as_dir" && as_dir=.
7267 for ac_exec_ext in '' $ac_executable_extensions; do
7268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7269 ac_cv_prog_ac_ct_LIPO="lipo"
7270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7271 break 2
7273 done
7274 done
7275 IFS=$as_save_IFS
7279 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7280 if test -n "$ac_ct_LIPO"; then
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7282 $as_echo "$ac_ct_LIPO" >&6; }
7283 else
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7285 $as_echo "no" >&6; }
7288 if test "x$ac_ct_LIPO" = x; then
7289 LIPO=":"
7290 else
7291 case $cross_compiling:$ac_tool_warned in
7292 yes:)
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7294 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7295 ac_tool_warned=yes ;;
7296 esac
7297 LIPO=$ac_ct_LIPO
7299 else
7300 LIPO="$ac_cv_prog_LIPO"
7303 if test -n "$ac_tool_prefix"; then
7304 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7305 set dummy ${ac_tool_prefix}otool; ac_word=$2
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7307 $as_echo_n "checking for $ac_word... " >&6; }
7308 if ${ac_cv_prog_OTOOL+:} false; then :
7309 $as_echo_n "(cached) " >&6
7310 else
7311 if test -n "$OTOOL"; then
7312 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7313 else
7314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7315 for as_dir in $PATH
7317 IFS=$as_save_IFS
7318 test -z "$as_dir" && as_dir=.
7319 for ac_exec_ext in '' $ac_executable_extensions; do
7320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7321 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7323 break 2
7325 done
7326 done
7327 IFS=$as_save_IFS
7331 OTOOL=$ac_cv_prog_OTOOL
7332 if test -n "$OTOOL"; then
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7334 $as_echo "$OTOOL" >&6; }
7335 else
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7337 $as_echo "no" >&6; }
7342 if test -z "$ac_cv_prog_OTOOL"; then
7343 ac_ct_OTOOL=$OTOOL
7344 # Extract the first word of "otool", so it can be a program name with args.
7345 set dummy otool; ac_word=$2
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7347 $as_echo_n "checking for $ac_word... " >&6; }
7348 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7349 $as_echo_n "(cached) " >&6
7350 else
7351 if test -n "$ac_ct_OTOOL"; then
7352 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7353 else
7354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355 for as_dir in $PATH
7357 IFS=$as_save_IFS
7358 test -z "$as_dir" && as_dir=.
7359 for ac_exec_ext in '' $ac_executable_extensions; do
7360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7361 ac_cv_prog_ac_ct_OTOOL="otool"
7362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7363 break 2
7365 done
7366 done
7367 IFS=$as_save_IFS
7371 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7372 if test -n "$ac_ct_OTOOL"; then
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7374 $as_echo "$ac_ct_OTOOL" >&6; }
7375 else
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7377 $as_echo "no" >&6; }
7380 if test "x$ac_ct_OTOOL" = x; then
7381 OTOOL=":"
7382 else
7383 case $cross_compiling:$ac_tool_warned in
7384 yes:)
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7386 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7387 ac_tool_warned=yes ;;
7388 esac
7389 OTOOL=$ac_ct_OTOOL
7391 else
7392 OTOOL="$ac_cv_prog_OTOOL"
7395 if test -n "$ac_tool_prefix"; then
7396 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7397 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7399 $as_echo_n "checking for $ac_word... " >&6; }
7400 if ${ac_cv_prog_OTOOL64+:} false; then :
7401 $as_echo_n "(cached) " >&6
7402 else
7403 if test -n "$OTOOL64"; then
7404 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7405 else
7406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7407 for as_dir in $PATH
7409 IFS=$as_save_IFS
7410 test -z "$as_dir" && as_dir=.
7411 for ac_exec_ext in '' $ac_executable_extensions; do
7412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7413 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7415 break 2
7417 done
7418 done
7419 IFS=$as_save_IFS
7423 OTOOL64=$ac_cv_prog_OTOOL64
7424 if test -n "$OTOOL64"; then
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7426 $as_echo "$OTOOL64" >&6; }
7427 else
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7429 $as_echo "no" >&6; }
7434 if test -z "$ac_cv_prog_OTOOL64"; then
7435 ac_ct_OTOOL64=$OTOOL64
7436 # Extract the first word of "otool64", so it can be a program name with args.
7437 set dummy otool64; ac_word=$2
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7439 $as_echo_n "checking for $ac_word... " >&6; }
7440 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7441 $as_echo_n "(cached) " >&6
7442 else
7443 if test -n "$ac_ct_OTOOL64"; then
7444 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7445 else
7446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7447 for as_dir in $PATH
7449 IFS=$as_save_IFS
7450 test -z "$as_dir" && as_dir=.
7451 for ac_exec_ext in '' $ac_executable_extensions; do
7452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7453 ac_cv_prog_ac_ct_OTOOL64="otool64"
7454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7455 break 2
7457 done
7458 done
7459 IFS=$as_save_IFS
7463 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7464 if test -n "$ac_ct_OTOOL64"; then
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7466 $as_echo "$ac_ct_OTOOL64" >&6; }
7467 else
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7469 $as_echo "no" >&6; }
7472 if test "x$ac_ct_OTOOL64" = x; then
7473 OTOOL64=":"
7474 else
7475 case $cross_compiling:$ac_tool_warned in
7476 yes:)
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7478 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7479 ac_tool_warned=yes ;;
7480 esac
7481 OTOOL64=$ac_ct_OTOOL64
7483 else
7484 OTOOL64="$ac_cv_prog_OTOOL64"
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7514 $as_echo_n "checking for -single_module linker flag... " >&6; }
7515 if ${lt_cv_apple_cc_single_mod+:} false; then :
7516 $as_echo_n "(cached) " >&6
7517 else
7518 lt_cv_apple_cc_single_mod=no
7519 if test -z "${LT_MULTI_MODULE}"; then
7520 # By default we will add the -single_module flag. You can override
7521 # by either setting the environment variable LT_MULTI_MODULE
7522 # non-empty at configure time, or by adding -multi_module to the
7523 # link flags.
7524 rm -rf libconftest.dylib*
7525 echo "int foo(void){return 1;}" > conftest.c
7526 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7527 -dynamiclib -Wl,-single_module conftest.c" >&5
7528 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7529 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7530 _lt_result=$?
7531 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7532 lt_cv_apple_cc_single_mod=yes
7533 else
7534 cat conftest.err >&5
7536 rm -rf libconftest.dylib*
7537 rm -f conftest.*
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7541 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7543 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7544 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7545 $as_echo_n "(cached) " >&6
7546 else
7547 lt_cv_ld_exported_symbols_list=no
7548 save_LDFLAGS=$LDFLAGS
7549 echo "_main" > conftest.sym
7550 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7552 /* end confdefs.h. */
7555 main ()
7559 return 0;
7561 _ACEOF
7562 if ac_fn_c_try_link "$LINENO"; then :
7563 lt_cv_ld_exported_symbols_list=yes
7564 else
7565 lt_cv_ld_exported_symbols_list=no
7567 rm -f core conftest.err conftest.$ac_objext \
7568 conftest$ac_exeext conftest.$ac_ext
7569 LDFLAGS="$save_LDFLAGS"
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7573 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7575 $as_echo_n "checking for -force_load linker flag... " >&6; }
7576 if ${lt_cv_ld_force_load+:} false; then :
7577 $as_echo_n "(cached) " >&6
7578 else
7579 lt_cv_ld_force_load=no
7580 cat > conftest.c << _LT_EOF
7581 int forced_loaded() { return 2;}
7582 _LT_EOF
7583 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7584 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7585 echo "$AR cru libconftest.a conftest.o" >&5
7586 $AR cru libconftest.a conftest.o 2>&5
7587 cat > conftest.c << _LT_EOF
7588 int main() { return 0;}
7589 _LT_EOF
7590 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7591 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7592 _lt_result=$?
7593 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7594 lt_cv_ld_force_load=yes
7595 else
7596 cat conftest.err >&5
7598 rm -f conftest.err libconftest.a conftest conftest.c
7599 rm -rf conftest.dSYM
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7603 $as_echo "$lt_cv_ld_force_load" >&6; }
7604 case $host_os in
7605 rhapsody* | darwin1.[012])
7606 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7607 darwin1.*)
7608 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7609 darwin*) # darwin 5.x on
7610 # if running on 10.5 or later, the deployment target defaults
7611 # to the OS version, if on x86, and 10.4, the deployment
7612 # target defaults to 10.4. Don't you love it?
7613 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7614 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7615 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7616 10.[012][,.]*)
7617 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7618 10.*)
7619 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7620 esac
7622 esac
7623 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7624 _lt_dar_single_mod='$single_module'
7626 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7627 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7628 else
7629 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7631 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7632 _lt_dsymutil='~$DSYMUTIL $lib || :'
7633 else
7634 _lt_dsymutil=
7637 esac
7639 ac_ext=c
7640 ac_cpp='$CPP $CPPFLAGS'
7641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7645 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7646 # On Suns, sometimes $CPP names a directory.
7647 if test -n "$CPP" && test -d "$CPP"; then
7648 CPP=
7650 if test -z "$CPP"; then
7651 if ${ac_cv_prog_CPP+:} false; then :
7652 $as_echo_n "(cached) " >&6
7653 else
7654 # Double quotes because CPP needs to be expanded
7655 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7657 ac_preproc_ok=false
7658 for ac_c_preproc_warn_flag in '' yes
7660 # Use a header file that comes with gcc, so configuring glibc
7661 # with a fresh cross-compiler works.
7662 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7663 # <limits.h> exists even on freestanding compilers.
7664 # On the NeXT, cc -E runs the code through the compiler's parser,
7665 # not just through cpp. "Syntax error" is here to catch this case.
7666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7667 /* end confdefs.h. */
7668 #ifdef __STDC__
7669 # include <limits.h>
7670 #else
7671 # include <assert.h>
7672 #endif
7673 Syntax error
7674 _ACEOF
7675 if ac_fn_c_try_cpp "$LINENO"; then :
7677 else
7678 # Broken: fails on valid input.
7679 continue
7681 rm -f conftest.err conftest.i conftest.$ac_ext
7683 # OK, works on sane cases. Now check whether nonexistent headers
7684 # can be detected and how.
7685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7686 /* end confdefs.h. */
7687 #include <ac_nonexistent.h>
7688 _ACEOF
7689 if ac_fn_c_try_cpp "$LINENO"; then :
7690 # Broken: success on invalid input.
7691 continue
7692 else
7693 # Passes both tests.
7694 ac_preproc_ok=:
7695 break
7697 rm -f conftest.err conftest.i conftest.$ac_ext
7699 done
7700 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7701 rm -f conftest.i conftest.err conftest.$ac_ext
7702 if $ac_preproc_ok; then :
7703 break
7706 done
7707 ac_cv_prog_CPP=$CPP
7710 CPP=$ac_cv_prog_CPP
7711 else
7712 ac_cv_prog_CPP=$CPP
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7715 $as_echo "$CPP" >&6; }
7716 ac_preproc_ok=false
7717 for ac_c_preproc_warn_flag in '' yes
7719 # Use a header file that comes with gcc, so configuring glibc
7720 # with a fresh cross-compiler works.
7721 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7722 # <limits.h> exists even on freestanding compilers.
7723 # On the NeXT, cc -E runs the code through the compiler's parser,
7724 # not just through cpp. "Syntax error" is here to catch this case.
7725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7726 /* end confdefs.h. */
7727 #ifdef __STDC__
7728 # include <limits.h>
7729 #else
7730 # include <assert.h>
7731 #endif
7732 Syntax error
7733 _ACEOF
7734 if ac_fn_c_try_cpp "$LINENO"; then :
7736 else
7737 # Broken: fails on valid input.
7738 continue
7740 rm -f conftest.err conftest.i conftest.$ac_ext
7742 # OK, works on sane cases. Now check whether nonexistent headers
7743 # can be detected and how.
7744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7745 /* end confdefs.h. */
7746 #include <ac_nonexistent.h>
7747 _ACEOF
7748 if ac_fn_c_try_cpp "$LINENO"; then :
7749 # Broken: success on invalid input.
7750 continue
7751 else
7752 # Passes both tests.
7753 ac_preproc_ok=:
7754 break
7756 rm -f conftest.err conftest.i conftest.$ac_ext
7758 done
7759 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7760 rm -f conftest.i conftest.err conftest.$ac_ext
7761 if $ac_preproc_ok; then :
7763 else
7764 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7765 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7766 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7767 See \`config.log' for more details" "$LINENO" 5; }
7770 ac_ext=c
7771 ac_cpp='$CPP $CPPFLAGS'
7772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7778 $as_echo_n "checking for ANSI C header files... " >&6; }
7779 if ${ac_cv_header_stdc+:} false; then :
7780 $as_echo_n "(cached) " >&6
7781 else
7782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7783 /* end confdefs.h. */
7784 #include <stdlib.h>
7785 #include <stdarg.h>
7786 #include <string.h>
7787 #include <float.h>
7790 main ()
7794 return 0;
7796 _ACEOF
7797 if ac_fn_c_try_compile "$LINENO"; then :
7798 ac_cv_header_stdc=yes
7799 else
7800 ac_cv_header_stdc=no
7802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7804 if test $ac_cv_header_stdc = yes; then
7805 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7807 /* end confdefs.h. */
7808 #include <string.h>
7810 _ACEOF
7811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7812 $EGREP "memchr" >/dev/null 2>&1; then :
7814 else
7815 ac_cv_header_stdc=no
7817 rm -f conftest*
7821 if test $ac_cv_header_stdc = yes; then
7822 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7824 /* end confdefs.h. */
7825 #include <stdlib.h>
7827 _ACEOF
7828 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7829 $EGREP "free" >/dev/null 2>&1; then :
7831 else
7832 ac_cv_header_stdc=no
7834 rm -f conftest*
7838 if test $ac_cv_header_stdc = yes; then
7839 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7840 if test "$cross_compiling" = yes; then :
7842 else
7843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7844 /* end confdefs.h. */
7845 #include <ctype.h>
7846 #include <stdlib.h>
7847 #if ((' ' & 0x0FF) == 0x020)
7848 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7849 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7850 #else
7851 # define ISLOWER(c) \
7852 (('a' <= (c) && (c) <= 'i') \
7853 || ('j' <= (c) && (c) <= 'r') \
7854 || ('s' <= (c) && (c) <= 'z'))
7855 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7856 #endif
7858 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7860 main ()
7862 int i;
7863 for (i = 0; i < 256; i++)
7864 if (XOR (islower (i), ISLOWER (i))
7865 || toupper (i) != TOUPPER (i))
7866 return 2;
7867 return 0;
7869 _ACEOF
7870 if ac_fn_c_try_run "$LINENO"; then :
7872 else
7873 ac_cv_header_stdc=no
7875 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7876 conftest.$ac_objext conftest.beam conftest.$ac_ext
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7882 $as_echo "$ac_cv_header_stdc" >&6; }
7883 if test $ac_cv_header_stdc = yes; then
7885 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7889 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7890 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7891 inttypes.h stdint.h unistd.h
7892 do :
7893 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7894 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7896 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7897 cat >>confdefs.h <<_ACEOF
7898 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7899 _ACEOF
7903 done
7906 for ac_header in dlfcn.h
7907 do :
7908 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7910 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7911 cat >>confdefs.h <<_ACEOF
7912 #define HAVE_DLFCN_H 1
7913 _ACEOF
7917 done
7923 # Set options
7927 enable_dlopen=no
7930 enable_win32_dll=no
7933 # Check whether --enable-shared was given.
7934 if test "${enable_shared+set}" = set; then :
7935 enableval=$enable_shared; p=${PACKAGE-default}
7936 case $enableval in
7937 yes) enable_shared=yes ;;
7938 no) enable_shared=no ;;
7940 enable_shared=no
7941 # Look at the argument we got. We use all the common list separators.
7942 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7943 for pkg in $enableval; do
7944 IFS="$lt_save_ifs"
7945 if test "X$pkg" = "X$p"; then
7946 enable_shared=yes
7948 done
7949 IFS="$lt_save_ifs"
7951 esac
7952 else
7953 enable_shared=yes
7964 # Check whether --enable-static was given.
7965 if test "${enable_static+set}" = set; then :
7966 enableval=$enable_static; p=${PACKAGE-default}
7967 case $enableval in
7968 yes) enable_static=yes ;;
7969 no) enable_static=no ;;
7971 enable_static=no
7972 # Look at the argument we got. We use all the common list separators.
7973 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7974 for pkg in $enableval; do
7975 IFS="$lt_save_ifs"
7976 if test "X$pkg" = "X$p"; then
7977 enable_static=yes
7979 done
7980 IFS="$lt_save_ifs"
7982 esac
7983 else
7984 enable_static=yes
7996 # Check whether --with-pic was given.
7997 if test "${with_pic+set}" = set; then :
7998 withval=$with_pic; pic_mode="$withval"
7999 else
8000 pic_mode=default
8004 test -z "$pic_mode" && pic_mode=default
8012 # Check whether --enable-fast-install was given.
8013 if test "${enable_fast_install+set}" = set; then :
8014 enableval=$enable_fast_install; p=${PACKAGE-default}
8015 case $enableval in
8016 yes) enable_fast_install=yes ;;
8017 no) enable_fast_install=no ;;
8019 enable_fast_install=no
8020 # Look at the argument we got. We use all the common list separators.
8021 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8022 for pkg in $enableval; do
8023 IFS="$lt_save_ifs"
8024 if test "X$pkg" = "X$p"; then
8025 enable_fast_install=yes
8027 done
8028 IFS="$lt_save_ifs"
8030 esac
8031 else
8032 enable_fast_install=yes
8045 # This can be used to rebuild libtool when needed
8046 LIBTOOL_DEPS="$ltmain"
8048 # Always use our own libtool.
8049 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8076 test -z "$LN_S" && LN_S="ln -s"
8091 if test -n "${ZSH_VERSION+set}" ; then
8092 setopt NO_GLOB_SUBST
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8096 $as_echo_n "checking for objdir... " >&6; }
8097 if ${lt_cv_objdir+:} false; then :
8098 $as_echo_n "(cached) " >&6
8099 else
8100 rm -f .libs 2>/dev/null
8101 mkdir .libs 2>/dev/null
8102 if test -d .libs; then
8103 lt_cv_objdir=.libs
8104 else
8105 # MS-DOS does not allow filenames that begin with a dot.
8106 lt_cv_objdir=_libs
8108 rmdir .libs 2>/dev/null
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8111 $as_echo "$lt_cv_objdir" >&6; }
8112 objdir=$lt_cv_objdir
8118 cat >>confdefs.h <<_ACEOF
8119 #define LT_OBJDIR "$lt_cv_objdir/"
8120 _ACEOF
8125 case $host_os in
8126 aix3*)
8127 # AIX sometimes has problems with the GCC collect2 program. For some
8128 # reason, if we set the COLLECT_NAMES environment variable, the problems
8129 # vanish in a puff of smoke.
8130 if test "X${COLLECT_NAMES+set}" != Xset; then
8131 COLLECT_NAMES=
8132 export COLLECT_NAMES
8135 esac
8137 # Global variables:
8138 ofile=libtool
8139 can_build_shared=yes
8141 # All known linkers require a `.a' archive for static linking (except MSVC,
8142 # which needs '.lib').
8143 libext=a
8145 with_gnu_ld="$lt_cv_prog_gnu_ld"
8147 old_CC="$CC"
8148 old_CFLAGS="$CFLAGS"
8150 # Set sane defaults for various variables
8151 test -z "$CC" && CC=cc
8152 test -z "$LTCC" && LTCC=$CC
8153 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8154 test -z "$LD" && LD=ld
8155 test -z "$ac_objext" && ac_objext=o
8157 for cc_temp in $compiler""; do
8158 case $cc_temp in
8159 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8160 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8161 \-*) ;;
8162 *) break;;
8163 esac
8164 done
8165 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8168 # Only perform the check for file, if the check method requires it
8169 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8170 case $deplibs_check_method in
8171 file_magic*)
8172 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8174 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8175 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8176 $as_echo_n "(cached) " >&6
8177 else
8178 case $MAGIC_CMD in
8179 [\\/*] | ?:[\\/]*)
8180 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8183 lt_save_MAGIC_CMD="$MAGIC_CMD"
8184 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8185 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8186 for ac_dir in $ac_dummy; do
8187 IFS="$lt_save_ifs"
8188 test -z "$ac_dir" && ac_dir=.
8189 if test -f $ac_dir/${ac_tool_prefix}file; then
8190 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8191 if test -n "$file_magic_test_file"; then
8192 case $deplibs_check_method in
8193 "file_magic "*)
8194 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8195 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8196 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8197 $EGREP "$file_magic_regex" > /dev/null; then
8199 else
8200 cat <<_LT_EOF 1>&2
8202 *** Warning: the command libtool uses to detect shared libraries,
8203 *** $file_magic_cmd, produces output that libtool cannot recognize.
8204 *** The result is that libtool may fail to recognize shared libraries
8205 *** as such. This will affect the creation of libtool libraries that
8206 *** depend on shared libraries, but programs linked with such libtool
8207 *** libraries will work regardless of this problem. Nevertheless, you
8208 *** may want to report the problem to your system manager and/or to
8209 *** bug-libtool@gnu.org
8211 _LT_EOF
8212 fi ;;
8213 esac
8215 break
8217 done
8218 IFS="$lt_save_ifs"
8219 MAGIC_CMD="$lt_save_MAGIC_CMD"
8221 esac
8224 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8225 if test -n "$MAGIC_CMD"; then
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8227 $as_echo "$MAGIC_CMD" >&6; }
8228 else
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8230 $as_echo "no" >&6; }
8237 if test -z "$lt_cv_path_MAGIC_CMD"; then
8238 if test -n "$ac_tool_prefix"; then
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8240 $as_echo_n "checking for file... " >&6; }
8241 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8242 $as_echo_n "(cached) " >&6
8243 else
8244 case $MAGIC_CMD in
8245 [\\/*] | ?:[\\/]*)
8246 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8249 lt_save_MAGIC_CMD="$MAGIC_CMD"
8250 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8251 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8252 for ac_dir in $ac_dummy; do
8253 IFS="$lt_save_ifs"
8254 test -z "$ac_dir" && ac_dir=.
8255 if test -f $ac_dir/file; then
8256 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8257 if test -n "$file_magic_test_file"; then
8258 case $deplibs_check_method in
8259 "file_magic "*)
8260 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8261 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8262 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8263 $EGREP "$file_magic_regex" > /dev/null; then
8265 else
8266 cat <<_LT_EOF 1>&2
8268 *** Warning: the command libtool uses to detect shared libraries,
8269 *** $file_magic_cmd, produces output that libtool cannot recognize.
8270 *** The result is that libtool may fail to recognize shared libraries
8271 *** as such. This will affect the creation of libtool libraries that
8272 *** depend on shared libraries, but programs linked with such libtool
8273 *** libraries will work regardless of this problem. Nevertheless, you
8274 *** may want to report the problem to your system manager and/or to
8275 *** bug-libtool@gnu.org
8277 _LT_EOF
8278 fi ;;
8279 esac
8281 break
8283 done
8284 IFS="$lt_save_ifs"
8285 MAGIC_CMD="$lt_save_MAGIC_CMD"
8287 esac
8290 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8291 if test -n "$MAGIC_CMD"; then
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8293 $as_echo "$MAGIC_CMD" >&6; }
8294 else
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8296 $as_echo "no" >&6; }
8300 else
8301 MAGIC_CMD=:
8307 esac
8309 # Use C for the default configuration in the libtool script
8311 lt_save_CC="$CC"
8312 ac_ext=c
8313 ac_cpp='$CPP $CPPFLAGS'
8314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8319 # Source file extension for C test sources.
8320 ac_ext=c
8322 # Object file extension for compiled C test sources.
8323 objext=o
8324 objext=$objext
8326 # Code to be used in simple compile tests
8327 lt_simple_compile_test_code="int some_variable = 0;"
8329 # Code to be used in simple link tests
8330 lt_simple_link_test_code='int main(){return(0);}'
8338 # If no C compiler was specified, use CC.
8339 LTCC=${LTCC-"$CC"}
8341 # If no C compiler flags were specified, use CFLAGS.
8342 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8344 # Allow CC to be a program name with arguments.
8345 compiler=$CC
8347 # Save the default compiler, since it gets overwritten when the other
8348 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8349 compiler_DEFAULT=$CC
8351 # save warnings/boilerplate of simple test code
8352 ac_outfile=conftest.$ac_objext
8353 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8354 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8355 _lt_compiler_boilerplate=`cat conftest.err`
8356 $RM conftest*
8358 ac_outfile=conftest.$ac_objext
8359 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8360 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8361 _lt_linker_boilerplate=`cat conftest.err`
8362 $RM -r conftest*
8365 ## CAVEAT EMPTOR:
8366 ## There is no encapsulation within the following macros, do not change
8367 ## the running order or otherwise move them around unless you know exactly
8368 ## what you are doing...
8369 if test -n "$compiler"; then
8371 lt_prog_compiler_no_builtin_flag=
8373 if test "$GCC" = yes; then
8374 case $cc_basename in
8375 nvcc*)
8376 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8378 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8379 esac
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8382 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8383 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8384 $as_echo_n "(cached) " >&6
8385 else
8386 lt_cv_prog_compiler_rtti_exceptions=no
8387 ac_outfile=conftest.$ac_objext
8388 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8389 lt_compiler_flag="-fno-rtti -fno-exceptions"
8390 # Insert the option either (1) after the last *FLAGS variable, or
8391 # (2) before a word containing "conftest.", or (3) at the end.
8392 # Note that $ac_compile itself does not contain backslashes and begins
8393 # with a dollar sign (not a hyphen), so the echo should work correctly.
8394 # The option is referenced via a variable to avoid confusing sed.
8395 lt_compile=`echo "$ac_compile" | $SED \
8396 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8397 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8398 -e 's:$: $lt_compiler_flag:'`
8399 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8400 (eval "$lt_compile" 2>conftest.err)
8401 ac_status=$?
8402 cat conftest.err >&5
8403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404 if (exit $ac_status) && test -s "$ac_outfile"; then
8405 # The compiler can only warn and ignore the option if not recognized
8406 # So say no if there are warnings other than the usual output.
8407 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8408 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8409 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8410 lt_cv_prog_compiler_rtti_exceptions=yes
8413 $RM conftest*
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8417 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8419 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8420 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8421 else
8432 lt_prog_compiler_wl=
8433 lt_prog_compiler_pic=
8434 lt_prog_compiler_static=
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8437 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8439 if test "$GCC" = yes; then
8440 lt_prog_compiler_wl='-Wl,'
8441 lt_prog_compiler_static='-static'
8443 case $host_os in
8444 aix*)
8445 # All AIX code is PIC.
8446 if test "$host_cpu" = ia64; then
8447 # AIX 5 now supports IA64 processor
8448 lt_prog_compiler_static='-Bstatic'
8450 lt_prog_compiler_pic='-fPIC'
8453 amigaos*)
8454 case $host_cpu in
8455 powerpc)
8456 # see comment about AmigaOS4 .so support
8457 lt_prog_compiler_pic='-fPIC'
8459 m68k)
8460 # FIXME: we need at least 68020 code to build shared libraries, but
8461 # adding the `-m68020' flag to GCC prevents building anything better,
8462 # like `-m68040'.
8463 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8465 esac
8468 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8469 # PIC is the default for these OSes.
8472 mingw* | cygwin* | pw32* | os2* | cegcc*)
8473 # This hack is so that the source file can tell whether it is being
8474 # built for inclusion in a dll (and should export symbols for example).
8475 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8476 # (--disable-auto-import) libraries
8477 lt_prog_compiler_pic='-DDLL_EXPORT'
8480 darwin* | rhapsody*)
8481 # PIC is the default on this platform
8482 # Common symbols not allowed in MH_DYLIB files
8483 lt_prog_compiler_pic='-fno-common'
8486 haiku*)
8487 # PIC is the default for Haiku.
8488 # The "-static" flag exists, but is broken.
8489 lt_prog_compiler_static=
8492 hpux*)
8493 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8494 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8495 # sets the default TLS model and affects inlining.
8496 case $host_cpu in
8497 hppa*64*)
8498 # +Z the default
8501 lt_prog_compiler_pic='-fPIC'
8503 esac
8506 interix[3-9]*)
8507 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8508 # Instead, we relocate shared libraries at runtime.
8511 msdosdjgpp*)
8512 # Just because we use GCC doesn't mean we suddenly get shared libraries
8513 # on systems that don't support them.
8514 lt_prog_compiler_can_build_shared=no
8515 enable_shared=no
8518 *nto* | *qnx*)
8519 # QNX uses GNU C++, but need to define -shared option too, otherwise
8520 # it will coredump.
8521 lt_prog_compiler_pic='-fPIC -shared'
8524 sysv4*MP*)
8525 if test -d /usr/nec; then
8526 lt_prog_compiler_pic=-Kconform_pic
8531 lt_prog_compiler_pic='-fPIC'
8533 esac
8535 case $cc_basename in
8536 nvcc*) # Cuda Compiler Driver 2.2
8537 lt_prog_compiler_wl='-Xlinker '
8538 lt_prog_compiler_pic='-Xcompiler -fPIC'
8540 esac
8541 else
8542 # PORTME Check for flag to pass linker flags through the system compiler.
8543 case $host_os in
8544 aix*)
8545 lt_prog_compiler_wl='-Wl,'
8546 if test "$host_cpu" = ia64; then
8547 # AIX 5 now supports IA64 processor
8548 lt_prog_compiler_static='-Bstatic'
8549 else
8550 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8554 mingw* | cygwin* | pw32* | os2* | cegcc*)
8555 # This hack is so that the source file can tell whether it is being
8556 # built for inclusion in a dll (and should export symbols for example).
8557 lt_prog_compiler_pic='-DDLL_EXPORT'
8560 hpux9* | hpux10* | hpux11*)
8561 lt_prog_compiler_wl='-Wl,'
8562 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8563 # not for PA HP-UX.
8564 case $host_cpu in
8565 hppa*64*|ia64*)
8566 # +Z the default
8569 lt_prog_compiler_pic='+Z'
8571 esac
8572 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8573 lt_prog_compiler_static='${wl}-a ${wl}archive'
8576 irix5* | irix6* | nonstopux*)
8577 lt_prog_compiler_wl='-Wl,'
8578 # PIC (with -KPIC) is the default.
8579 lt_prog_compiler_static='-non_shared'
8582 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8583 case $cc_basename in
8584 # old Intel for x86_64 which still supported -KPIC.
8585 ecc*)
8586 lt_prog_compiler_wl='-Wl,'
8587 lt_prog_compiler_pic='-KPIC'
8588 lt_prog_compiler_static='-static'
8590 # icc used to be incompatible with GCC.
8591 # ICC 10 doesn't accept -KPIC any more.
8592 icc* | ifort*)
8593 lt_prog_compiler_wl='-Wl,'
8594 lt_prog_compiler_pic='-fPIC'
8595 lt_prog_compiler_static='-static'
8597 # Lahey Fortran 8.1.
8598 lf95*)
8599 lt_prog_compiler_wl='-Wl,'
8600 lt_prog_compiler_pic='--shared'
8601 lt_prog_compiler_static='--static'
8603 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8604 # Portland Group compilers (*not* the Pentium gcc compiler,
8605 # which looks to be a dead project)
8606 lt_prog_compiler_wl='-Wl,'
8607 lt_prog_compiler_pic='-fpic'
8608 lt_prog_compiler_static='-Bstatic'
8610 ccc*)
8611 lt_prog_compiler_wl='-Wl,'
8612 # All Alpha code is PIC.
8613 lt_prog_compiler_static='-non_shared'
8615 xl* | bgxl* | bgf* | mpixl*)
8616 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8617 lt_prog_compiler_wl='-Wl,'
8618 lt_prog_compiler_pic='-qpic'
8619 lt_prog_compiler_static='-qstaticlink'
8622 case `$CC -V 2>&1 | sed 5q` in
8623 *Sun\ F* | *Sun*Fortran*)
8624 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8625 lt_prog_compiler_pic='-KPIC'
8626 lt_prog_compiler_static='-Bstatic'
8627 lt_prog_compiler_wl=''
8629 *Sun\ C*)
8630 # Sun C 5.9
8631 lt_prog_compiler_pic='-KPIC'
8632 lt_prog_compiler_static='-Bstatic'
8633 lt_prog_compiler_wl='-Wl,'
8635 esac
8637 esac
8640 newsos6)
8641 lt_prog_compiler_pic='-KPIC'
8642 lt_prog_compiler_static='-Bstatic'
8645 *nto* | *qnx*)
8646 # QNX uses GNU C++, but need to define -shared option too, otherwise
8647 # it will coredump.
8648 lt_prog_compiler_pic='-fPIC -shared'
8651 osf3* | osf4* | osf5*)
8652 lt_prog_compiler_wl='-Wl,'
8653 # All OSF/1 code is PIC.
8654 lt_prog_compiler_static='-non_shared'
8657 rdos*)
8658 lt_prog_compiler_static='-non_shared'
8661 solaris*)
8662 lt_prog_compiler_pic='-KPIC'
8663 lt_prog_compiler_static='-Bstatic'
8664 case $cc_basename in
8665 f77* | f90* | f95*)
8666 lt_prog_compiler_wl='-Qoption ld ';;
8668 lt_prog_compiler_wl='-Wl,';;
8669 esac
8672 sunos4*)
8673 lt_prog_compiler_wl='-Qoption ld '
8674 lt_prog_compiler_pic='-PIC'
8675 lt_prog_compiler_static='-Bstatic'
8678 sysv4 | sysv4.2uw2* | sysv4.3*)
8679 lt_prog_compiler_wl='-Wl,'
8680 lt_prog_compiler_pic='-KPIC'
8681 lt_prog_compiler_static='-Bstatic'
8684 sysv4*MP*)
8685 if test -d /usr/nec ;then
8686 lt_prog_compiler_pic='-Kconform_pic'
8687 lt_prog_compiler_static='-Bstatic'
8691 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8692 lt_prog_compiler_wl='-Wl,'
8693 lt_prog_compiler_pic='-KPIC'
8694 lt_prog_compiler_static='-Bstatic'
8697 unicos*)
8698 lt_prog_compiler_wl='-Wl,'
8699 lt_prog_compiler_can_build_shared=no
8702 uts4*)
8703 lt_prog_compiler_pic='-pic'
8704 lt_prog_compiler_static='-Bstatic'
8708 lt_prog_compiler_can_build_shared=no
8710 esac
8713 case $host_os in
8714 # For platforms which do not support PIC, -DPIC is meaningless:
8715 *djgpp*)
8716 lt_prog_compiler_pic=
8719 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8721 esac
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8723 $as_echo "$lt_prog_compiler_pic" >&6; }
8731 # Check to make sure the PIC flag actually works.
8733 if test -n "$lt_prog_compiler_pic"; then
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8735 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8736 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8737 $as_echo_n "(cached) " >&6
8738 else
8739 lt_cv_prog_compiler_pic_works=no
8740 ac_outfile=conftest.$ac_objext
8741 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8742 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8743 # Insert the option either (1) after the last *FLAGS variable, or
8744 # (2) before a word containing "conftest.", or (3) at the end.
8745 # Note that $ac_compile itself does not contain backslashes and begins
8746 # with a dollar sign (not a hyphen), so the echo should work correctly.
8747 # The option is referenced via a variable to avoid confusing sed.
8748 lt_compile=`echo "$ac_compile" | $SED \
8749 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8750 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8751 -e 's:$: $lt_compiler_flag:'`
8752 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8753 (eval "$lt_compile" 2>conftest.err)
8754 ac_status=$?
8755 cat conftest.err >&5
8756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757 if (exit $ac_status) && test -s "$ac_outfile"; then
8758 # The compiler can only warn and ignore the option if not recognized
8759 # So say no if there are warnings other than the usual output.
8760 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8761 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8762 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8763 lt_cv_prog_compiler_pic_works=yes
8766 $RM conftest*
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8770 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8772 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8773 case $lt_prog_compiler_pic in
8774 "" | " "*) ;;
8775 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8776 esac
8777 else
8778 lt_prog_compiler_pic=
8779 lt_prog_compiler_can_build_shared=no
8790 # Check to make sure the static flag actually works.
8792 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8794 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8795 if ${lt_cv_prog_compiler_static_works+:} false; then :
8796 $as_echo_n "(cached) " >&6
8797 else
8798 lt_cv_prog_compiler_static_works=no
8799 save_LDFLAGS="$LDFLAGS"
8800 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8801 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8802 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8803 # The linker can only warn and ignore the option if not recognized
8804 # So say no if there are warnings
8805 if test -s conftest.err; then
8806 # Append any errors to the config.log.
8807 cat conftest.err 1>&5
8808 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8809 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8810 if diff conftest.exp conftest.er2 >/dev/null; then
8811 lt_cv_prog_compiler_static_works=yes
8813 else
8814 lt_cv_prog_compiler_static_works=yes
8817 $RM -r conftest*
8818 LDFLAGS="$save_LDFLAGS"
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8822 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8824 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8826 else
8827 lt_prog_compiler_static=
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8837 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8838 if ${lt_cv_prog_compiler_c_o+:} false; then :
8839 $as_echo_n "(cached) " >&6
8840 else
8841 lt_cv_prog_compiler_c_o=no
8842 $RM -r conftest 2>/dev/null
8843 mkdir conftest
8844 cd conftest
8845 mkdir out
8846 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8848 lt_compiler_flag="-o out/conftest2.$ac_objext"
8849 # Insert the option either (1) after the last *FLAGS variable, or
8850 # (2) before a word containing "conftest.", or (3) at the end.
8851 # Note that $ac_compile itself does not contain backslashes and begins
8852 # with a dollar sign (not a hyphen), so the echo should work correctly.
8853 lt_compile=`echo "$ac_compile" | $SED \
8854 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8855 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8856 -e 's:$: $lt_compiler_flag:'`
8857 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8858 (eval "$lt_compile" 2>out/conftest.err)
8859 ac_status=$?
8860 cat out/conftest.err >&5
8861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8863 then
8864 # The compiler can only warn and ignore the option if not recognized
8865 # So say no if there are warnings
8866 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8867 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8868 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8869 lt_cv_prog_compiler_c_o=yes
8872 chmod u+w . 2>&5
8873 $RM conftest*
8874 # SGI C++ compiler will create directory out/ii_files/ for
8875 # template instantiation
8876 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8877 $RM out/* && rmdir out
8878 cd ..
8879 $RM -r conftest
8880 $RM conftest*
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8884 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8892 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8893 if ${lt_cv_prog_compiler_c_o+:} false; then :
8894 $as_echo_n "(cached) " >&6
8895 else
8896 lt_cv_prog_compiler_c_o=no
8897 $RM -r conftest 2>/dev/null
8898 mkdir conftest
8899 cd conftest
8900 mkdir out
8901 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8903 lt_compiler_flag="-o out/conftest2.$ac_objext"
8904 # Insert the option either (1) after the last *FLAGS variable, or
8905 # (2) before a word containing "conftest.", or (3) at the end.
8906 # Note that $ac_compile itself does not contain backslashes and begins
8907 # with a dollar sign (not a hyphen), so the echo should work correctly.
8908 lt_compile=`echo "$ac_compile" | $SED \
8909 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8910 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8911 -e 's:$: $lt_compiler_flag:'`
8912 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8913 (eval "$lt_compile" 2>out/conftest.err)
8914 ac_status=$?
8915 cat out/conftest.err >&5
8916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8918 then
8919 # The compiler can only warn and ignore the option if not recognized
8920 # So say no if there are warnings
8921 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8922 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8923 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8924 lt_cv_prog_compiler_c_o=yes
8927 chmod u+w . 2>&5
8928 $RM conftest*
8929 # SGI C++ compiler will create directory out/ii_files/ for
8930 # template instantiation
8931 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8932 $RM out/* && rmdir out
8933 cd ..
8934 $RM -r conftest
8935 $RM conftest*
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8939 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8944 hard_links="nottested"
8945 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8946 # do not overwrite the value of need_locks provided by the user
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8948 $as_echo_n "checking if we can lock with hard links... " >&6; }
8949 hard_links=yes
8950 $RM conftest*
8951 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8952 touch conftest.a
8953 ln conftest.a conftest.b 2>&5 || hard_links=no
8954 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8956 $as_echo "$hard_links" >&6; }
8957 if test "$hard_links" = no; then
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8959 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8960 need_locks=warn
8962 else
8963 need_locks=no
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8972 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8974 runpath_var=
8975 allow_undefined_flag=
8976 always_export_symbols=no
8977 archive_cmds=
8978 archive_expsym_cmds=
8979 compiler_needs_object=no
8980 enable_shared_with_static_runtimes=no
8981 export_dynamic_flag_spec=
8982 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8983 hardcode_automatic=no
8984 hardcode_direct=no
8985 hardcode_direct_absolute=no
8986 hardcode_libdir_flag_spec=
8987 hardcode_libdir_flag_spec_ld=
8988 hardcode_libdir_separator=
8989 hardcode_minus_L=no
8990 hardcode_shlibpath_var=unsupported
8991 inherit_rpath=no
8992 link_all_deplibs=unknown
8993 module_cmds=
8994 module_expsym_cmds=
8995 old_archive_from_new_cmds=
8996 old_archive_from_expsyms_cmds=
8997 thread_safe_flag_spec=
8998 whole_archive_flag_spec=
8999 # include_expsyms should be a list of space-separated symbols to be *always*
9000 # included in the symbol list
9001 include_expsyms=
9002 # exclude_expsyms can be an extended regexp of symbols to exclude
9003 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9004 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9005 # as well as any symbol that contains `d'.
9006 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9007 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9008 # platforms (ab)use it in PIC code, but their linkers get confused if
9009 # the symbol is explicitly referenced. Since portable code cannot
9010 # rely on this symbol name, it's probably fine to never include it in
9011 # preloaded symbol tables.
9012 # Exclude shared library initialization/finalization symbols.
9013 extract_expsyms_cmds=
9015 case $host_os in
9016 cygwin* | mingw* | pw32* | cegcc*)
9017 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9018 # When not using gcc, we currently assume that we are using
9019 # Microsoft Visual C++.
9020 if test "$GCC" != yes; then
9021 with_gnu_ld=no
9024 interix*)
9025 # we just hope/assume this is gcc and not c89 (= MSVC++)
9026 with_gnu_ld=yes
9028 openbsd*)
9029 with_gnu_ld=no
9031 esac
9033 ld_shlibs=yes
9035 # On some targets, GNU ld is compatible enough with the native linker
9036 # that we're better off using the native interface for both.
9037 lt_use_gnu_ld_interface=no
9038 if test "$with_gnu_ld" = yes; then
9039 case $host_os in
9040 aix*)
9041 # The AIX port of GNU ld has always aspired to compatibility
9042 # with the native linker. However, as the warning in the GNU ld
9043 # block says, versions before 2.19.5* couldn't really create working
9044 # shared libraries, regardless of the interface used.
9045 case `$LD -v 2>&1` in
9046 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9047 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9048 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9050 lt_use_gnu_ld_interface=yes
9052 esac
9055 lt_use_gnu_ld_interface=yes
9057 esac
9060 if test "$lt_use_gnu_ld_interface" = yes; then
9061 # If archive_cmds runs LD, not CC, wlarc should be empty
9062 wlarc='${wl}'
9064 # Set some defaults for GNU ld with shared library support. These
9065 # are reset later if shared libraries are not supported. Putting them
9066 # here allows them to be overridden if necessary.
9067 runpath_var=LD_RUN_PATH
9068 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9069 export_dynamic_flag_spec='${wl}--export-dynamic'
9070 # ancient GNU ld didn't support --whole-archive et. al.
9071 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9072 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9073 else
9074 whole_archive_flag_spec=
9076 supports_anon_versioning=no
9077 case `$LD -v 2>&1` in
9078 *GNU\ gold*) supports_anon_versioning=yes ;;
9079 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9080 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9081 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9082 *\ 2.11.*) ;; # other 2.11 versions
9083 *) supports_anon_versioning=yes ;;
9084 esac
9086 # See if GNU ld supports shared libraries.
9087 case $host_os in
9088 aix[3-9]*)
9089 # On AIX/PPC, the GNU linker is very broken
9090 if test "$host_cpu" != ia64; then
9091 ld_shlibs=no
9092 cat <<_LT_EOF 1>&2
9094 *** Warning: the GNU linker, at least up to release 2.19, is reported
9095 *** to be unable to reliably create shared libraries on AIX.
9096 *** Therefore, libtool is disabling shared libraries support. If you
9097 *** really care for shared libraries, you may want to install binutils
9098 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9099 *** You will then need to restart the configuration process.
9101 _LT_EOF
9105 amigaos*)
9106 case $host_cpu in
9107 powerpc)
9108 # see comment about AmigaOS4 .so support
9109 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9110 archive_expsym_cmds=''
9112 m68k)
9113 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)'
9114 hardcode_libdir_flag_spec='-L$libdir'
9115 hardcode_minus_L=yes
9117 esac
9120 beos*)
9121 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9122 allow_undefined_flag=unsupported
9123 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9124 # support --undefined. This deserves some investigation. FIXME
9125 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9126 else
9127 ld_shlibs=no
9131 cygwin* | mingw* | pw32* | cegcc*)
9132 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9133 # as there is no search path for DLLs.
9134 hardcode_libdir_flag_spec='-L$libdir'
9135 export_dynamic_flag_spec='${wl}--export-all-symbols'
9136 allow_undefined_flag=unsupported
9137 always_export_symbols=no
9138 enable_shared_with_static_runtimes=yes
9139 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9141 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9142 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9143 # If the export-symbols file already is a .def file (1st line
9144 # is EXPORTS), use it as is; otherwise, prepend...
9145 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9146 cp $export_symbols $output_objdir/$soname.def;
9147 else
9148 echo EXPORTS > $output_objdir/$soname.def;
9149 cat $export_symbols >> $output_objdir/$soname.def;
9151 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9152 else
9153 ld_shlibs=no
9157 haiku*)
9158 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9159 link_all_deplibs=yes
9162 interix[3-9]*)
9163 hardcode_direct=no
9164 hardcode_shlibpath_var=no
9165 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9166 export_dynamic_flag_spec='${wl}-E'
9167 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9168 # Instead, shared libraries are loaded at an image base (0x10000000 by
9169 # default) and relocated if they conflict, which is a slow very memory
9170 # consuming and fragmenting process. To avoid this, we pick a random,
9171 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9172 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9173 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9174 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'
9177 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9178 tmp_diet=no
9179 if test "$host_os" = linux-dietlibc; then
9180 case $cc_basename in
9181 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9182 esac
9184 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9185 && test "$tmp_diet" = no
9186 then
9187 tmp_addflag=' $pic_flag'
9188 tmp_sharedflag='-shared'
9189 case $cc_basename,$host_cpu in
9190 pgcc*) # Portland Group C compiler
9191 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'
9192 tmp_addflag=' $pic_flag'
9194 pgf77* | pgf90* | pgf95* | pgfortran*)
9195 # Portland Group f77 and f90 compilers
9196 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'
9197 tmp_addflag=' $pic_flag -Mnomain' ;;
9198 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9199 tmp_addflag=' -i_dynamic' ;;
9200 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9201 tmp_addflag=' -i_dynamic -nofor_main' ;;
9202 ifc* | ifort*) # Intel Fortran compiler
9203 tmp_addflag=' -nofor_main' ;;
9204 lf95*) # Lahey Fortran 8.1
9205 whole_archive_flag_spec=
9206 tmp_sharedflag='--shared' ;;
9207 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9208 tmp_sharedflag='-qmkshrobj'
9209 tmp_addflag= ;;
9210 nvcc*) # Cuda Compiler Driver 2.2
9211 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'
9212 compiler_needs_object=yes
9214 esac
9215 case `$CC -V 2>&1 | sed 5q` in
9216 *Sun\ C*) # Sun C 5.9
9217 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'
9218 compiler_needs_object=yes
9219 tmp_sharedflag='-G' ;;
9220 *Sun\ F*) # Sun Fortran 8.3
9221 tmp_sharedflag='-G' ;;
9222 esac
9223 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9225 if test "x$supports_anon_versioning" = xyes; then
9226 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9227 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9228 echo "local: *; };" >> $output_objdir/$libname.ver~
9229 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9232 case $cc_basename in
9233 xlf* | bgf* | bgxlf* | mpixlf*)
9234 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9235 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9236 hardcode_libdir_flag_spec=
9237 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9238 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9239 if test "x$supports_anon_versioning" = xyes; then
9240 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9241 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9242 echo "local: *; };" >> $output_objdir/$libname.ver~
9243 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9246 esac
9247 else
9248 ld_shlibs=no
9252 netbsd*)
9253 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9254 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9255 wlarc=
9256 else
9257 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9258 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9262 solaris*)
9263 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9264 ld_shlibs=no
9265 cat <<_LT_EOF 1>&2
9267 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9268 *** create shared libraries on Solaris systems. Therefore, libtool
9269 *** is disabling shared libraries support. We urge you to upgrade GNU
9270 *** binutils to release 2.9.1 or newer. Another option is to modify
9271 *** your PATH or compiler configuration so that the native linker is
9272 *** used, and then restart.
9274 _LT_EOF
9275 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9276 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9277 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9278 else
9279 ld_shlibs=no
9283 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9284 case `$LD -v 2>&1` in
9285 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9286 ld_shlibs=no
9287 cat <<_LT_EOF 1>&2
9289 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9290 *** reliably create shared libraries on SCO systems. Therefore, libtool
9291 *** is disabling shared libraries support. We urge you to upgrade GNU
9292 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9293 *** your PATH or compiler configuration so that the native linker is
9294 *** used, and then restart.
9296 _LT_EOF
9299 # For security reasons, it is highly recommended that you always
9300 # use absolute paths for naming shared libraries, and exclude the
9301 # DT_RUNPATH tag from executables and libraries. But doing so
9302 # requires that you compile everything twice, which is a pain.
9303 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9304 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9305 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9306 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9307 else
9308 ld_shlibs=no
9311 esac
9314 sunos4*)
9315 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9316 wlarc=
9317 hardcode_direct=yes
9318 hardcode_shlibpath_var=no
9322 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9323 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9324 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9325 else
9326 ld_shlibs=no
9329 esac
9331 if test "$ld_shlibs" = no; then
9332 runpath_var=
9333 hardcode_libdir_flag_spec=
9334 export_dynamic_flag_spec=
9335 whole_archive_flag_spec=
9337 else
9338 # PORTME fill in a description of your system's linker (not GNU ld)
9339 case $host_os in
9340 aix3*)
9341 allow_undefined_flag=unsupported
9342 always_export_symbols=yes
9343 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'
9344 # Note: this linker hardcodes the directories in LIBPATH if there
9345 # are no directories specified by -L.
9346 hardcode_minus_L=yes
9347 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9348 # Neither direct hardcoding nor static linking is supported with a
9349 # broken collect2.
9350 hardcode_direct=unsupported
9354 aix[4-9]*)
9355 if test "$host_cpu" = ia64; then
9356 # On IA64, the linker does run time linking by default, so we don't
9357 # have to do anything special.
9358 aix_use_runtimelinking=no
9359 exp_sym_flag='-Bexport'
9360 no_entry_flag=""
9361 else
9362 # If we're using GNU nm, then we don't want the "-C" option.
9363 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9364 # Also, AIX nm treats weak defined symbols like other global
9365 # defined symbols, whereas GNU nm marks them as "W".
9366 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9367 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'
9368 else
9369 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'
9371 aix_use_runtimelinking=no
9373 # Test if we are trying to use run time linking or normal
9374 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9375 # need to do runtime linking.
9376 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9377 for ld_flag in $LDFLAGS; do
9378 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9379 aix_use_runtimelinking=yes
9380 break
9382 done
9384 esac
9386 exp_sym_flag='-bexport'
9387 no_entry_flag='-bnoentry'
9390 # When large executables or shared objects are built, AIX ld can
9391 # have problems creating the table of contents. If linking a library
9392 # or program results in "error TOC overflow" add -mminimal-toc to
9393 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9394 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9396 archive_cmds=''
9397 hardcode_direct=yes
9398 hardcode_direct_absolute=yes
9399 hardcode_libdir_separator=':'
9400 link_all_deplibs=yes
9401 file_list_spec='${wl}-f,'
9403 if test "$GCC" = yes; then
9404 case $host_os in aix4.[012]|aix4.[012].*)
9405 # We only want to do this on AIX 4.2 and lower, the check
9406 # below for broken collect2 doesn't work under 4.3+
9407 collect2name=`${CC} -print-prog-name=collect2`
9408 if test -f "$collect2name" &&
9409 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9410 then
9411 # We have reworked collect2
9413 else
9414 # We have old collect2
9415 hardcode_direct=unsupported
9416 # It fails to find uninstalled libraries when the uninstalled
9417 # path is not listed in the libpath. Setting hardcode_minus_L
9418 # to unsupported forces relinking
9419 hardcode_minus_L=yes
9420 hardcode_libdir_flag_spec='-L$libdir'
9421 hardcode_libdir_separator=
9424 esac
9425 shared_flag='-shared'
9426 if test "$aix_use_runtimelinking" = yes; then
9427 shared_flag="$shared_flag "'${wl}-G'
9429 else
9430 # not using gcc
9431 if test "$host_cpu" = ia64; then
9432 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9433 # chokes on -Wl,-G. The following line is correct:
9434 shared_flag='-G'
9435 else
9436 if test "$aix_use_runtimelinking" = yes; then
9437 shared_flag='${wl}-G'
9438 else
9439 shared_flag='${wl}-bM:SRE'
9444 export_dynamic_flag_spec='${wl}-bexpall'
9445 # It seems that -bexpall does not export symbols beginning with
9446 # underscore (_), so it is better to generate a list of symbols to export.
9447 always_export_symbols=yes
9448 if test "$aix_use_runtimelinking" = yes; then
9449 # Warning - without using the other runtime loading flags (-brtl),
9450 # -berok will link without error, but may produce a broken library.
9451 allow_undefined_flag='-berok'
9452 # Determine the default libpath from the value encoded in an
9453 # empty executable.
9454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9455 /* end confdefs.h. */
9458 main ()
9462 return 0;
9464 _ACEOF
9465 if ac_fn_c_try_link "$LINENO"; then :
9467 lt_aix_libpath_sed='
9468 /Import File Strings/,/^$/ {
9469 /^0/ {
9470 s/^0 *\(.*\)$/\1/
9474 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9475 # Check for a 64-bit object if we didn't find anything.
9476 if test -z "$aix_libpath"; then
9477 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9480 rm -f core conftest.err conftest.$ac_objext \
9481 conftest$ac_exeext conftest.$ac_ext
9482 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9484 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9485 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"
9486 else
9487 if test "$host_cpu" = ia64; then
9488 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9489 allow_undefined_flag="-z nodefs"
9490 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"
9491 else
9492 # Determine the default libpath from the value encoded in an
9493 # empty executable.
9494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9495 /* end confdefs.h. */
9498 main ()
9502 return 0;
9504 _ACEOF
9505 if ac_fn_c_try_link "$LINENO"; then :
9507 lt_aix_libpath_sed='
9508 /Import File Strings/,/^$/ {
9509 /^0/ {
9510 s/^0 *\(.*\)$/\1/
9514 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9515 # Check for a 64-bit object if we didn't find anything.
9516 if test -z "$aix_libpath"; then
9517 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9520 rm -f core conftest.err conftest.$ac_objext \
9521 conftest$ac_exeext conftest.$ac_ext
9522 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9524 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9525 # Warning - without using the other run time loading flags,
9526 # -berok will link without error, but may produce a broken library.
9527 no_undefined_flag=' ${wl}-bernotok'
9528 allow_undefined_flag=' ${wl}-berok'
9529 if test "$with_gnu_ld" = yes; then
9530 # We only use this code for GNU lds that support --whole-archive.
9531 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9532 else
9533 # Exported symbols can be pulled into shared objects from archives
9534 whole_archive_flag_spec='$convenience'
9536 archive_cmds_need_lc=yes
9537 # This is similar to how AIX traditionally builds its shared libraries.
9538 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'
9543 amigaos*)
9544 case $host_cpu in
9545 powerpc)
9546 # see comment about AmigaOS4 .so support
9547 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9548 archive_expsym_cmds=''
9550 m68k)
9551 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)'
9552 hardcode_libdir_flag_spec='-L$libdir'
9553 hardcode_minus_L=yes
9555 esac
9558 bsdi[45]*)
9559 export_dynamic_flag_spec=-rdynamic
9562 cygwin* | mingw* | pw32* | cegcc*)
9563 # When not using gcc, we currently assume that we are using
9564 # Microsoft Visual C++.
9565 # hardcode_libdir_flag_spec is actually meaningless, as there is
9566 # no search path for DLLs.
9567 hardcode_libdir_flag_spec=' '
9568 allow_undefined_flag=unsupported
9569 # Tell ltmain to make .lib files, not .a files.
9570 libext=lib
9571 # Tell ltmain to make .dll files, not .so files.
9572 shrext_cmds=".dll"
9573 # FIXME: Setting linknames here is a bad hack.
9574 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9575 # The linker will automatically build a .lib file if we build a DLL.
9576 old_archive_from_new_cmds='true'
9577 # FIXME: Should let the user specify the lib program.
9578 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9579 fix_srcfile_path='`cygpath -w "$srcfile"`'
9580 enable_shared_with_static_runtimes=yes
9583 darwin* | rhapsody*)
9586 archive_cmds_need_lc=no
9587 hardcode_direct=no
9588 hardcode_automatic=yes
9589 hardcode_shlibpath_var=unsupported
9590 if test "$lt_cv_ld_force_load" = "yes"; then
9591 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\"`'
9592 else
9593 whole_archive_flag_spec=''
9595 link_all_deplibs=yes
9596 allow_undefined_flag="$_lt_dar_allow_undefined"
9597 case $cc_basename in
9598 ifort*) _lt_dar_can_shared=yes ;;
9599 *) _lt_dar_can_shared=$GCC ;;
9600 esac
9601 if test "$_lt_dar_can_shared" = "yes"; then
9602 output_verbose_link_cmd=func_echo_all
9603 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9604 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9605 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}"
9606 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}"
9608 else
9609 ld_shlibs=no
9614 dgux*)
9615 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9616 hardcode_libdir_flag_spec='-L$libdir'
9617 hardcode_shlibpath_var=no
9620 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9621 # support. Future versions do this automatically, but an explicit c++rt0.o
9622 # does not break anything, and helps significantly (at the cost of a little
9623 # extra space).
9624 freebsd2.2*)
9625 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9626 hardcode_libdir_flag_spec='-R$libdir'
9627 hardcode_direct=yes
9628 hardcode_shlibpath_var=no
9631 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9632 freebsd2.*)
9633 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9634 hardcode_direct=yes
9635 hardcode_minus_L=yes
9636 hardcode_shlibpath_var=no
9639 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9640 freebsd* | dragonfly*)
9641 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9642 hardcode_libdir_flag_spec='-R$libdir'
9643 hardcode_direct=yes
9644 hardcode_shlibpath_var=no
9647 hpux9*)
9648 if test "$GCC" = yes; then
9649 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'
9650 else
9651 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'
9653 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9654 hardcode_libdir_separator=:
9655 hardcode_direct=yes
9657 # hardcode_minus_L: Not really in the search PATH,
9658 # but as the default location of the library.
9659 hardcode_minus_L=yes
9660 export_dynamic_flag_spec='${wl}-E'
9663 hpux10*)
9664 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9665 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9666 else
9667 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9669 if test "$with_gnu_ld" = no; then
9670 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9671 hardcode_libdir_flag_spec_ld='+b $libdir'
9672 hardcode_libdir_separator=:
9673 hardcode_direct=yes
9674 hardcode_direct_absolute=yes
9675 export_dynamic_flag_spec='${wl}-E'
9676 # hardcode_minus_L: Not really in the search PATH,
9677 # but as the default location of the library.
9678 hardcode_minus_L=yes
9682 hpux11*)
9683 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9684 case $host_cpu in
9685 hppa*64*)
9686 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9688 ia64*)
9689 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9692 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9694 esac
9695 else
9696 case $host_cpu in
9697 hppa*64*)
9698 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9700 ia64*)
9701 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9705 # Older versions of the 11.00 compiler do not understand -b yet
9706 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9708 $as_echo_n "checking if $CC understands -b... " >&6; }
9709 if ${lt_cv_prog_compiler__b+:} false; then :
9710 $as_echo_n "(cached) " >&6
9711 else
9712 lt_cv_prog_compiler__b=no
9713 save_LDFLAGS="$LDFLAGS"
9714 LDFLAGS="$LDFLAGS -b"
9715 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9716 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9717 # The linker can only warn and ignore the option if not recognized
9718 # So say no if there are warnings
9719 if test -s conftest.err; then
9720 # Append any errors to the config.log.
9721 cat conftest.err 1>&5
9722 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9723 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9724 if diff conftest.exp conftest.er2 >/dev/null; then
9725 lt_cv_prog_compiler__b=yes
9727 else
9728 lt_cv_prog_compiler__b=yes
9731 $RM -r conftest*
9732 LDFLAGS="$save_LDFLAGS"
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9736 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9738 if test x"$lt_cv_prog_compiler__b" = xyes; then
9739 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9740 else
9741 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9745 esac
9747 if test "$with_gnu_ld" = no; then
9748 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9749 hardcode_libdir_separator=:
9751 case $host_cpu in
9752 hppa*64*|ia64*)
9753 hardcode_direct=no
9754 hardcode_shlibpath_var=no
9757 hardcode_direct=yes
9758 hardcode_direct_absolute=yes
9759 export_dynamic_flag_spec='${wl}-E'
9761 # hardcode_minus_L: Not really in the search PATH,
9762 # but as the default location of the library.
9763 hardcode_minus_L=yes
9765 esac
9769 irix5* | irix6* | nonstopux*)
9770 if test "$GCC" = yes; then
9771 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'
9772 # Try to use the -exported_symbol ld option, if it does not
9773 # work, assume that -exports_file does not work either and
9774 # implicitly export all symbols.
9775 save_LDFLAGS="$LDFLAGS"
9776 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9778 /* end confdefs.h. */
9779 int foo(void) {}
9780 _ACEOF
9781 if ac_fn_c_try_link "$LINENO"; then :
9782 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'
9785 rm -f core conftest.err conftest.$ac_objext \
9786 conftest$ac_exeext conftest.$ac_ext
9787 LDFLAGS="$save_LDFLAGS"
9788 else
9789 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'
9790 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'
9792 archive_cmds_need_lc='no'
9793 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9794 hardcode_libdir_separator=:
9795 inherit_rpath=yes
9796 link_all_deplibs=yes
9799 netbsd*)
9800 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9801 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9802 else
9803 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9805 hardcode_libdir_flag_spec='-R$libdir'
9806 hardcode_direct=yes
9807 hardcode_shlibpath_var=no
9810 newsos6)
9811 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9812 hardcode_direct=yes
9813 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9814 hardcode_libdir_separator=:
9815 hardcode_shlibpath_var=no
9818 *nto* | *qnx*)
9821 openbsd*)
9822 if test -f /usr/libexec/ld.so; then
9823 hardcode_direct=yes
9824 hardcode_shlibpath_var=no
9825 hardcode_direct_absolute=yes
9826 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9827 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9828 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9829 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9830 export_dynamic_flag_spec='${wl}-E'
9831 else
9832 case $host_os in
9833 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9834 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9835 hardcode_libdir_flag_spec='-R$libdir'
9838 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9839 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9841 esac
9843 else
9844 ld_shlibs=no
9848 os2*)
9849 hardcode_libdir_flag_spec='-L$libdir'
9850 hardcode_minus_L=yes
9851 allow_undefined_flag=unsupported
9852 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'
9853 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9856 osf3*)
9857 if test "$GCC" = yes; then
9858 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9859 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'
9860 else
9861 allow_undefined_flag=' -expect_unresolved \*'
9862 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'
9864 archive_cmds_need_lc='no'
9865 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9866 hardcode_libdir_separator=:
9869 osf4* | osf5*) # as osf3* with the addition of -msym flag
9870 if test "$GCC" = yes; then
9871 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9872 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'
9873 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9874 else
9875 allow_undefined_flag=' -expect_unresolved \*'
9876 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'
9877 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~
9878 $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'
9880 # Both c and cxx compiler support -rpath directly
9881 hardcode_libdir_flag_spec='-rpath $libdir'
9883 archive_cmds_need_lc='no'
9884 hardcode_libdir_separator=:
9887 solaris*)
9888 no_undefined_flag=' -z defs'
9889 if test "$GCC" = yes; then
9890 wlarc='${wl}'
9891 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9892 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9893 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9894 else
9895 case `$CC -V 2>&1` in
9896 *"Compilers 5.0"*)
9897 wlarc=''
9898 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9899 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9900 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9903 wlarc='${wl}'
9904 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9905 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9906 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9908 esac
9910 hardcode_libdir_flag_spec='-R$libdir'
9911 hardcode_shlibpath_var=no
9912 case $host_os in
9913 solaris2.[0-5] | solaris2.[0-5].*) ;;
9915 # The compiler driver will combine and reorder linker options,
9916 # but understands `-z linker_flag'. GCC discards it without `$wl',
9917 # but is careful enough not to reorder.
9918 # Supported since Solaris 2.6 (maybe 2.5.1?)
9919 if test "$GCC" = yes; then
9920 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9921 else
9922 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9925 esac
9926 link_all_deplibs=yes
9929 sunos4*)
9930 if test "x$host_vendor" = xsequent; then
9931 # Use $CC to link under sequent, because it throws in some extra .o
9932 # files that make .init and .fini sections work.
9933 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9934 else
9935 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9937 hardcode_libdir_flag_spec='-L$libdir'
9938 hardcode_direct=yes
9939 hardcode_minus_L=yes
9940 hardcode_shlibpath_var=no
9943 sysv4)
9944 case $host_vendor in
9945 sni)
9946 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9947 hardcode_direct=yes # is this really true???
9949 siemens)
9950 ## LD is ld it makes a PLAMLIB
9951 ## CC just makes a GrossModule.
9952 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9953 reload_cmds='$CC -r -o $output$reload_objs'
9954 hardcode_direct=no
9956 motorola)
9957 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9958 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9960 esac
9961 runpath_var='LD_RUN_PATH'
9962 hardcode_shlibpath_var=no
9965 sysv4.3*)
9966 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9967 hardcode_shlibpath_var=no
9968 export_dynamic_flag_spec='-Bexport'
9971 sysv4*MP*)
9972 if test -d /usr/nec; then
9973 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9974 hardcode_shlibpath_var=no
9975 runpath_var=LD_RUN_PATH
9976 hardcode_runpath_var=yes
9977 ld_shlibs=yes
9981 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9982 no_undefined_flag='${wl}-z,text'
9983 archive_cmds_need_lc=no
9984 hardcode_shlibpath_var=no
9985 runpath_var='LD_RUN_PATH'
9987 if test "$GCC" = yes; then
9988 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9989 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9990 else
9991 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9992 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9996 sysv5* | sco3.2v5* | sco5v6*)
9997 # Note: We can NOT use -z defs as we might desire, because we do not
9998 # link with -lc, and that would cause any symbols used from libc to
9999 # always be unresolved, which means just about no library would
10000 # ever link correctly. If we're not using GNU ld we use -z text
10001 # though, which does catch some bad symbols but isn't as heavy-handed
10002 # as -z defs.
10003 no_undefined_flag='${wl}-z,text'
10004 allow_undefined_flag='${wl}-z,nodefs'
10005 archive_cmds_need_lc=no
10006 hardcode_shlibpath_var=no
10007 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10008 hardcode_libdir_separator=':'
10009 link_all_deplibs=yes
10010 export_dynamic_flag_spec='${wl}-Bexport'
10011 runpath_var='LD_RUN_PATH'
10013 if test "$GCC" = yes; then
10014 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10015 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10016 else
10017 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10018 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10022 uts4*)
10023 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10024 hardcode_libdir_flag_spec='-L$libdir'
10025 hardcode_shlibpath_var=no
10029 ld_shlibs=no
10031 esac
10033 if test x$host_vendor = xsni; then
10034 case $host in
10035 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10036 export_dynamic_flag_spec='${wl}-Blargedynsym'
10038 esac
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10043 $as_echo "$ld_shlibs" >&6; }
10044 test "$ld_shlibs" = no && can_build_shared=no
10046 with_gnu_ld=$with_gnu_ld
10063 # Do we need to explicitly link libc?
10065 case "x$archive_cmds_need_lc" in
10066 x|xyes)
10067 # Assume -lc should be added
10068 archive_cmds_need_lc=yes
10070 if test "$enable_shared" = yes && test "$GCC" = yes; then
10071 case $archive_cmds in
10072 *'~'*)
10073 # FIXME: we may have to deal with multi-command sequences.
10075 '$CC '*)
10076 # Test whether the compiler implicitly links with -lc since on some
10077 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10078 # to ld, don't add -lc before -lgcc.
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10080 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10081 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10082 $as_echo_n "(cached) " >&6
10083 else
10084 $RM conftest*
10085 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10087 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10088 (eval $ac_compile) 2>&5
10089 ac_status=$?
10090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10091 test $ac_status = 0; } 2>conftest.err; then
10092 soname=conftest
10093 lib=conftest
10094 libobjs=conftest.$ac_objext
10095 deplibs=
10096 wl=$lt_prog_compiler_wl
10097 pic_flag=$lt_prog_compiler_pic
10098 compiler_flags=-v
10099 linker_flags=-v
10100 verstring=
10101 output_objdir=.
10102 libname=conftest
10103 lt_save_allow_undefined_flag=$allow_undefined_flag
10104 allow_undefined_flag=
10105 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10106 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10107 ac_status=$?
10108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10109 test $ac_status = 0; }
10110 then
10111 lt_cv_archive_cmds_need_lc=no
10112 else
10113 lt_cv_archive_cmds_need_lc=yes
10115 allow_undefined_flag=$lt_save_allow_undefined_flag
10116 else
10117 cat conftest.err 1>&5
10119 $RM conftest*
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10123 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10124 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10126 esac
10129 esac
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10288 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10290 if test "$GCC" = yes; then
10291 case $host_os in
10292 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10293 *) lt_awk_arg="/^libraries:/" ;;
10294 esac
10295 case $host_os in
10296 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10297 *) lt_sed_strip_eq="s,=/,/,g" ;;
10298 esac
10299 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10300 case $lt_search_path_spec in
10301 *\;*)
10302 # if the path contains ";" then we assume it to be the separator
10303 # otherwise default to the standard path separator (i.e. ":") - it is
10304 # assumed that no part of a normal pathname contains ";" but that should
10305 # okay in the real world where ";" in dirpaths is itself problematic.
10306 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10309 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10311 esac
10312 # Ok, now we have the path, separated by spaces, we can step through it
10313 # and add multilib dir if necessary.
10314 lt_tmp_lt_search_path_spec=
10315 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10316 for lt_sys_path in $lt_search_path_spec; do
10317 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10318 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10319 else
10320 test -d "$lt_sys_path" && \
10321 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10323 done
10324 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10325 BEGIN {RS=" "; FS="/|\n";} {
10326 lt_foo="";
10327 lt_count=0;
10328 for (lt_i = NF; lt_i > 0; lt_i--) {
10329 if ($lt_i != "" && $lt_i != ".") {
10330 if ($lt_i == "..") {
10331 lt_count++;
10332 } else {
10333 if (lt_count == 0) {
10334 lt_foo="/" $lt_i lt_foo;
10335 } else {
10336 lt_count--;
10341 if (lt_foo != "") { lt_freq[lt_foo]++; }
10342 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10344 # AWK program above erroneously prepends '/' to C:/dos/paths
10345 # for these hosts.
10346 case $host_os in
10347 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10348 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10349 esac
10350 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10351 else
10352 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10354 library_names_spec=
10355 libname_spec='lib$name'
10356 soname_spec=
10357 shrext_cmds=".so"
10358 postinstall_cmds=
10359 postuninstall_cmds=
10360 finish_cmds=
10361 finish_eval=
10362 shlibpath_var=
10363 shlibpath_overrides_runpath=unknown
10364 version_type=none
10365 dynamic_linker="$host_os ld.so"
10366 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10367 need_lib_prefix=unknown
10368 hardcode_into_libs=no
10370 # when you set need_version to no, make sure it does not cause -set_version
10371 # flags to be left without arguments
10372 need_version=unknown
10374 case $host_os in
10375 aix3*)
10376 version_type=linux
10377 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10378 shlibpath_var=LIBPATH
10380 # AIX 3 has no versioning support, so we append a major version to the name.
10381 soname_spec='${libname}${release}${shared_ext}$major'
10384 aix[4-9]*)
10385 version_type=linux
10386 need_lib_prefix=no
10387 need_version=no
10388 hardcode_into_libs=yes
10389 if test "$host_cpu" = ia64; then
10390 # AIX 5 supports IA64
10391 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10392 shlibpath_var=LD_LIBRARY_PATH
10393 else
10394 # With GCC up to 2.95.x, collect2 would create an import file
10395 # for dependence libraries. The import file would start with
10396 # the line `#! .'. This would cause the generated library to
10397 # depend on `.', always an invalid library. This was fixed in
10398 # development snapshots of GCC prior to 3.0.
10399 case $host_os in
10400 aix4 | aix4.[01] | aix4.[01].*)
10401 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10402 echo ' yes '
10403 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10405 else
10406 can_build_shared=no
10409 esac
10410 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10411 # soname into executable. Probably we can add versioning support to
10412 # collect2, so additional links can be useful in future.
10413 if test "$aix_use_runtimelinking" = yes; then
10414 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10415 # instead of lib<name>.a to let people know that these are not
10416 # typical AIX shared libraries.
10417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10418 else
10419 # We preserve .a as extension for shared libraries through AIX4.2
10420 # and later when we are not doing run time linking.
10421 library_names_spec='${libname}${release}.a $libname.a'
10422 soname_spec='${libname}${release}${shared_ext}$major'
10424 shlibpath_var=LIBPATH
10428 amigaos*)
10429 case $host_cpu in
10430 powerpc)
10431 # Since July 2007 AmigaOS4 officially supports .so libraries.
10432 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10435 m68k)
10436 library_names_spec='$libname.ixlibrary $libname.a'
10437 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10438 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'
10440 esac
10443 beos*)
10444 library_names_spec='${libname}${shared_ext}'
10445 dynamic_linker="$host_os ld.so"
10446 shlibpath_var=LIBRARY_PATH
10449 bsdi[45]*)
10450 version_type=linux
10451 need_version=no
10452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10453 soname_spec='${libname}${release}${shared_ext}$major'
10454 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10455 shlibpath_var=LD_LIBRARY_PATH
10456 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10457 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10458 # the default ld.so.conf also contains /usr/contrib/lib and
10459 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10460 # libtool to hard-code these into programs
10463 cygwin* | mingw* | pw32* | cegcc*)
10464 version_type=windows
10465 shrext_cmds=".dll"
10466 need_version=no
10467 need_lib_prefix=no
10469 case $GCC,$host_os in
10470 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10471 library_names_spec='$libname.dll.a'
10472 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10473 postinstall_cmds='base_file=`basename \${file}`~
10474 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10475 dldir=$destdir/`dirname \$dlpath`~
10476 test -d \$dldir || mkdir -p \$dldir~
10477 $install_prog $dir/$dlname \$dldir/$dlname~
10478 chmod a+x \$dldir/$dlname~
10479 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10480 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10482 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10483 dlpath=$dir/\$dldll~
10484 $RM \$dlpath'
10485 shlibpath_overrides_runpath=yes
10487 case $host_os in
10488 cygwin*)
10489 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10490 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10492 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10494 mingw* | cegcc*)
10495 # MinGW DLLs use traditional 'lib' prefix
10496 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10498 pw32*)
10499 # pw32 DLLs use 'pw' prefix rather than 'lib'
10500 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10502 esac
10506 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10508 esac
10509 dynamic_linker='Win32 ld.exe'
10510 # FIXME: first we should search . and the directory the executable is in
10511 shlibpath_var=PATH
10514 darwin* | rhapsody*)
10515 dynamic_linker="$host_os dyld"
10516 version_type=darwin
10517 need_lib_prefix=no
10518 need_version=no
10519 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10520 soname_spec='${libname}${release}${major}$shared_ext'
10521 shlibpath_overrides_runpath=yes
10522 shlibpath_var=DYLD_LIBRARY_PATH
10523 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10525 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10526 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10529 dgux*)
10530 version_type=linux
10531 need_lib_prefix=no
10532 need_version=no
10533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10534 soname_spec='${libname}${release}${shared_ext}$major'
10535 shlibpath_var=LD_LIBRARY_PATH
10538 freebsd* | dragonfly*)
10539 # DragonFly does not have aout. When/if they implement a new
10540 # versioning mechanism, adjust this.
10541 if test -x /usr/bin/objformat; then
10542 objformat=`/usr/bin/objformat`
10543 else
10544 case $host_os in
10545 freebsd[23].*) objformat=aout ;;
10546 *) objformat=elf ;;
10547 esac
10549 version_type=freebsd-$objformat
10550 case $version_type in
10551 freebsd-elf*)
10552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10553 need_version=no
10554 need_lib_prefix=no
10556 freebsd-*)
10557 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10558 need_version=yes
10560 esac
10561 shlibpath_var=LD_LIBRARY_PATH
10562 case $host_os in
10563 freebsd2.*)
10564 shlibpath_overrides_runpath=yes
10566 freebsd3.[01]* | freebsdelf3.[01]*)
10567 shlibpath_overrides_runpath=yes
10568 hardcode_into_libs=yes
10570 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10571 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10572 shlibpath_overrides_runpath=no
10573 hardcode_into_libs=yes
10575 *) # from 4.6 on, and DragonFly
10576 shlibpath_overrides_runpath=yes
10577 hardcode_into_libs=yes
10579 esac
10582 gnu*)
10583 version_type=linux
10584 need_lib_prefix=no
10585 need_version=no
10586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10587 soname_spec='${libname}${release}${shared_ext}$major'
10588 shlibpath_var=LD_LIBRARY_PATH
10589 hardcode_into_libs=yes
10592 haiku*)
10593 version_type=linux
10594 need_lib_prefix=no
10595 need_version=no
10596 dynamic_linker="$host_os runtime_loader"
10597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10598 soname_spec='${libname}${release}${shared_ext}$major'
10599 shlibpath_var=LIBRARY_PATH
10600 shlibpath_overrides_runpath=yes
10601 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10602 hardcode_into_libs=yes
10605 hpux9* | hpux10* | hpux11*)
10606 # Give a soname corresponding to the major version so that dld.sl refuses to
10607 # link against other versions.
10608 version_type=sunos
10609 need_lib_prefix=no
10610 need_version=no
10611 case $host_cpu in
10612 ia64*)
10613 shrext_cmds='.so'
10614 hardcode_into_libs=yes
10615 dynamic_linker="$host_os dld.so"
10616 shlibpath_var=LD_LIBRARY_PATH
10617 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10619 soname_spec='${libname}${release}${shared_ext}$major'
10620 if test "X$HPUX_IA64_MODE" = X32; then
10621 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10622 else
10623 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10625 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10627 hppa*64*)
10628 shrext_cmds='.sl'
10629 hardcode_into_libs=yes
10630 dynamic_linker="$host_os dld.sl"
10631 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10632 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10634 soname_spec='${libname}${release}${shared_ext}$major'
10635 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10636 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10639 shrext_cmds='.sl'
10640 dynamic_linker="$host_os dld.sl"
10641 shlibpath_var=SHLIB_PATH
10642 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10644 soname_spec='${libname}${release}${shared_ext}$major'
10646 esac
10647 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10648 postinstall_cmds='chmod 555 $lib'
10649 # or fails outright, so override atomically:
10650 install_override_mode=555
10653 interix[3-9]*)
10654 version_type=linux
10655 need_lib_prefix=no
10656 need_version=no
10657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10658 soname_spec='${libname}${release}${shared_ext}$major'
10659 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10660 shlibpath_var=LD_LIBRARY_PATH
10661 shlibpath_overrides_runpath=no
10662 hardcode_into_libs=yes
10665 irix5* | irix6* | nonstopux*)
10666 case $host_os in
10667 nonstopux*) version_type=nonstopux ;;
10669 if test "$lt_cv_prog_gnu_ld" = yes; then
10670 version_type=linux
10671 else
10672 version_type=irix
10673 fi ;;
10674 esac
10675 need_lib_prefix=no
10676 need_version=no
10677 soname_spec='${libname}${release}${shared_ext}$major'
10678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10679 case $host_os in
10680 irix5* | nonstopux*)
10681 libsuff= shlibsuff=
10684 case $LD in # libtool.m4 will add one of these switches to LD
10685 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10686 libsuff= shlibsuff= libmagic=32-bit;;
10687 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10688 libsuff=32 shlibsuff=N32 libmagic=N32;;
10689 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10690 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10691 *) libsuff= shlibsuff= libmagic=never-match;;
10692 esac
10694 esac
10695 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10696 shlibpath_overrides_runpath=no
10697 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10698 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10699 hardcode_into_libs=yes
10702 # No shared lib support for Linux oldld, aout, or coff.
10703 linux*oldld* | linux*aout* | linux*coff*)
10704 dynamic_linker=no
10707 # This must be Linux ELF.
10709 # uclinux* changes (here and below) have been submitted to the libtool
10710 # project, but have not yet been accepted: they are GCC-local changes
10711 # for the time being. (See
10712 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10713 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
10714 version_type=linux
10715 need_lib_prefix=no
10716 need_version=no
10717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10718 soname_spec='${libname}${release}${shared_ext}$major'
10719 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10720 shlibpath_var=LD_LIBRARY_PATH
10721 shlibpath_overrides_runpath=no
10723 # Some binutils ld are patched to set DT_RUNPATH
10724 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10725 $as_echo_n "(cached) " >&6
10726 else
10727 lt_cv_shlibpath_overrides_runpath=no
10728 save_LDFLAGS=$LDFLAGS
10729 save_libdir=$libdir
10730 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10731 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10733 /* end confdefs.h. */
10736 main ()
10740 return 0;
10742 _ACEOF
10743 if ac_fn_c_try_link "$LINENO"; then :
10744 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10745 lt_cv_shlibpath_overrides_runpath=yes
10748 rm -f core conftest.err conftest.$ac_objext \
10749 conftest$ac_exeext conftest.$ac_ext
10750 LDFLAGS=$save_LDFLAGS
10751 libdir=$save_libdir
10755 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10757 # This implies no fast_install, which is unacceptable.
10758 # Some rework will be needed to allow for fast_install
10759 # before this can be enabled.
10760 hardcode_into_libs=yes
10762 # Append ld.so.conf contents to the search path
10763 if test -f /etc/ld.so.conf; then
10764 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' ' '`
10765 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10768 # We used to test for /lib/ld.so.1 and disable shared libraries on
10769 # powerpc, because MkLinux only supported shared libraries with the
10770 # GNU dynamic linker. Since this was broken with cross compilers,
10771 # most powerpc-linux boxes support dynamic linking these days and
10772 # people can always --disable-shared, the test was removed, and we
10773 # assume the GNU/Linux dynamic linker is in use.
10774 dynamic_linker='GNU/Linux ld.so'
10777 netbsd*)
10778 version_type=sunos
10779 need_lib_prefix=no
10780 need_version=no
10781 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10783 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10784 dynamic_linker='NetBSD (a.out) ld.so'
10785 else
10786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10787 soname_spec='${libname}${release}${shared_ext}$major'
10788 dynamic_linker='NetBSD ld.elf_so'
10790 shlibpath_var=LD_LIBRARY_PATH
10791 shlibpath_overrides_runpath=yes
10792 hardcode_into_libs=yes
10795 newsos6)
10796 version_type=linux
10797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10798 shlibpath_var=LD_LIBRARY_PATH
10799 shlibpath_overrides_runpath=yes
10802 *nto* | *qnx*)
10803 version_type=qnx
10804 need_lib_prefix=no
10805 need_version=no
10806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10807 soname_spec='${libname}${release}${shared_ext}$major'
10808 shlibpath_var=LD_LIBRARY_PATH
10809 shlibpath_overrides_runpath=no
10810 hardcode_into_libs=yes
10811 dynamic_linker='ldqnx.so'
10814 openbsd*)
10815 version_type=sunos
10816 sys_lib_dlsearch_path_spec="/usr/lib"
10817 need_lib_prefix=no
10818 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10819 case $host_os in
10820 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10821 *) need_version=no ;;
10822 esac
10823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10824 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10825 shlibpath_var=LD_LIBRARY_PATH
10826 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10827 case $host_os in
10828 openbsd2.[89] | openbsd2.[89].*)
10829 shlibpath_overrides_runpath=no
10832 shlibpath_overrides_runpath=yes
10834 esac
10835 else
10836 shlibpath_overrides_runpath=yes
10840 os2*)
10841 libname_spec='$name'
10842 shrext_cmds=".dll"
10843 need_lib_prefix=no
10844 library_names_spec='$libname${shared_ext} $libname.a'
10845 dynamic_linker='OS/2 ld.exe'
10846 shlibpath_var=LIBPATH
10849 osf3* | osf4* | osf5*)
10850 version_type=osf
10851 need_lib_prefix=no
10852 need_version=no
10853 soname_spec='${libname}${release}${shared_ext}$major'
10854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10855 shlibpath_var=LD_LIBRARY_PATH
10856 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10857 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10860 rdos*)
10861 dynamic_linker=no
10864 solaris*)
10865 version_type=linux
10866 need_lib_prefix=no
10867 need_version=no
10868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10869 soname_spec='${libname}${release}${shared_ext}$major'
10870 shlibpath_var=LD_LIBRARY_PATH
10871 shlibpath_overrides_runpath=yes
10872 hardcode_into_libs=yes
10873 # ldd complains unless libraries are executable
10874 postinstall_cmds='chmod +x $lib'
10877 sunos4*)
10878 version_type=sunos
10879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10880 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10881 shlibpath_var=LD_LIBRARY_PATH
10882 shlibpath_overrides_runpath=yes
10883 if test "$with_gnu_ld" = yes; then
10884 need_lib_prefix=no
10886 need_version=yes
10889 sysv4 | sysv4.3*)
10890 version_type=linux
10891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10892 soname_spec='${libname}${release}${shared_ext}$major'
10893 shlibpath_var=LD_LIBRARY_PATH
10894 case $host_vendor in
10895 sni)
10896 shlibpath_overrides_runpath=no
10897 need_lib_prefix=no
10898 runpath_var=LD_RUN_PATH
10900 siemens)
10901 need_lib_prefix=no
10903 motorola)
10904 need_lib_prefix=no
10905 need_version=no
10906 shlibpath_overrides_runpath=no
10907 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10909 esac
10912 sysv4*MP*)
10913 if test -d /usr/nec ;then
10914 version_type=linux
10915 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10916 soname_spec='$libname${shared_ext}.$major'
10917 shlibpath_var=LD_LIBRARY_PATH
10921 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10922 version_type=freebsd-elf
10923 need_lib_prefix=no
10924 need_version=no
10925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10926 soname_spec='${libname}${release}${shared_ext}$major'
10927 shlibpath_var=LD_LIBRARY_PATH
10928 shlibpath_overrides_runpath=yes
10929 hardcode_into_libs=yes
10930 if test "$with_gnu_ld" = yes; then
10931 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10932 else
10933 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10934 case $host_os in
10935 sco3.2v5*)
10936 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10938 esac
10940 sys_lib_dlsearch_path_spec='/usr/lib'
10943 tpf*)
10944 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10945 version_type=linux
10946 need_lib_prefix=no
10947 need_version=no
10948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10949 shlibpath_var=LD_LIBRARY_PATH
10950 shlibpath_overrides_runpath=no
10951 hardcode_into_libs=yes
10954 uts4*)
10955 version_type=linux
10956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10957 soname_spec='${libname}${release}${shared_ext}$major'
10958 shlibpath_var=LD_LIBRARY_PATH
10962 dynamic_linker=no
10964 esac
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10966 $as_echo "$dynamic_linker" >&6; }
10967 test "$dynamic_linker" = no && can_build_shared=no
10969 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10970 if test "$GCC" = yes; then
10971 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10974 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10975 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10977 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10978 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11073 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11074 hardcode_action=
11075 if test -n "$hardcode_libdir_flag_spec" ||
11076 test -n "$runpath_var" ||
11077 test "X$hardcode_automatic" = "Xyes" ; then
11079 # We can hardcode non-existent directories.
11080 if test "$hardcode_direct" != no &&
11081 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11082 # have to relink, otherwise we might link with an installed library
11083 # when we should be linking with a yet-to-be-installed one
11084 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11085 test "$hardcode_minus_L" != no; then
11086 # Linking always hardcodes the temporary library directory.
11087 hardcode_action=relink
11088 else
11089 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11090 hardcode_action=immediate
11092 else
11093 # We cannot hardcode anything, or else we can only hardcode existing
11094 # directories.
11095 hardcode_action=unsupported
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11098 $as_echo "$hardcode_action" >&6; }
11100 if test "$hardcode_action" = relink ||
11101 test "$inherit_rpath" = yes; then
11102 # Fast installation is not supported
11103 enable_fast_install=no
11104 elif test "$shlibpath_overrides_runpath" = yes ||
11105 test "$enable_shared" = no; then
11106 # Fast installation is not necessary
11107 enable_fast_install=needless
11115 if test "x$enable_dlopen" != xyes; then
11116 enable_dlopen=unknown
11117 enable_dlopen_self=unknown
11118 enable_dlopen_self_static=unknown
11119 else
11120 lt_cv_dlopen=no
11121 lt_cv_dlopen_libs=
11123 case $host_os in
11124 beos*)
11125 lt_cv_dlopen="load_add_on"
11126 lt_cv_dlopen_libs=
11127 lt_cv_dlopen_self=yes
11130 mingw* | pw32* | cegcc*)
11131 lt_cv_dlopen="LoadLibrary"
11132 lt_cv_dlopen_libs=
11135 cygwin*)
11136 lt_cv_dlopen="dlopen"
11137 lt_cv_dlopen_libs=
11140 darwin*)
11141 # if libdl is installed we need to link against it
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11143 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11144 if ${ac_cv_lib_dl_dlopen+:} false; then :
11145 $as_echo_n "(cached) " >&6
11146 else
11147 ac_check_lib_save_LIBS=$LIBS
11148 LIBS="-ldl $LIBS"
11149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11150 /* end confdefs.h. */
11152 /* Override any GCC internal prototype to avoid an error.
11153 Use char because int might match the return type of a GCC
11154 builtin and then its argument prototype would still apply. */
11155 #ifdef __cplusplus
11156 extern "C"
11157 #endif
11158 char dlopen ();
11160 main ()
11162 return dlopen ();
11164 return 0;
11166 _ACEOF
11167 if ac_fn_c_try_link "$LINENO"; then :
11168 ac_cv_lib_dl_dlopen=yes
11169 else
11170 ac_cv_lib_dl_dlopen=no
11172 rm -f core conftest.err conftest.$ac_objext \
11173 conftest$ac_exeext conftest.$ac_ext
11174 LIBS=$ac_check_lib_save_LIBS
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11177 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11178 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11179 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11180 else
11182 lt_cv_dlopen="dyld"
11183 lt_cv_dlopen_libs=
11184 lt_cv_dlopen_self=yes
11191 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11192 if test "x$ac_cv_func_shl_load" = xyes; then :
11193 lt_cv_dlopen="shl_load"
11194 else
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11196 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11197 if ${ac_cv_lib_dld_shl_load+:} false; then :
11198 $as_echo_n "(cached) " >&6
11199 else
11200 ac_check_lib_save_LIBS=$LIBS
11201 LIBS="-ldld $LIBS"
11202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11203 /* end confdefs.h. */
11205 /* Override any GCC internal prototype to avoid an error.
11206 Use char because int might match the return type of a GCC
11207 builtin and then its argument prototype would still apply. */
11208 #ifdef __cplusplus
11209 extern "C"
11210 #endif
11211 char shl_load ();
11213 main ()
11215 return shl_load ();
11217 return 0;
11219 _ACEOF
11220 if ac_fn_c_try_link "$LINENO"; then :
11221 ac_cv_lib_dld_shl_load=yes
11222 else
11223 ac_cv_lib_dld_shl_load=no
11225 rm -f core conftest.err conftest.$ac_objext \
11226 conftest$ac_exeext conftest.$ac_ext
11227 LIBS=$ac_check_lib_save_LIBS
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11230 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11231 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11232 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11233 else
11234 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11235 if test "x$ac_cv_func_dlopen" = xyes; then :
11236 lt_cv_dlopen="dlopen"
11237 else
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11239 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11240 if ${ac_cv_lib_dl_dlopen+:} false; then :
11241 $as_echo_n "(cached) " >&6
11242 else
11243 ac_check_lib_save_LIBS=$LIBS
11244 LIBS="-ldl $LIBS"
11245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11246 /* end confdefs.h. */
11248 /* Override any GCC internal prototype to avoid an error.
11249 Use char because int might match the return type of a GCC
11250 builtin and then its argument prototype would still apply. */
11251 #ifdef __cplusplus
11252 extern "C"
11253 #endif
11254 char dlopen ();
11256 main ()
11258 return dlopen ();
11260 return 0;
11262 _ACEOF
11263 if ac_fn_c_try_link "$LINENO"; then :
11264 ac_cv_lib_dl_dlopen=yes
11265 else
11266 ac_cv_lib_dl_dlopen=no
11268 rm -f core conftest.err conftest.$ac_objext \
11269 conftest$ac_exeext conftest.$ac_ext
11270 LIBS=$ac_check_lib_save_LIBS
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11273 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11274 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11275 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11276 else
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11278 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11279 if ${ac_cv_lib_svld_dlopen+:} false; then :
11280 $as_echo_n "(cached) " >&6
11281 else
11282 ac_check_lib_save_LIBS=$LIBS
11283 LIBS="-lsvld $LIBS"
11284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11285 /* end confdefs.h. */
11287 /* Override any GCC internal prototype to avoid an error.
11288 Use char because int might match the return type of a GCC
11289 builtin and then its argument prototype would still apply. */
11290 #ifdef __cplusplus
11291 extern "C"
11292 #endif
11293 char dlopen ();
11295 main ()
11297 return dlopen ();
11299 return 0;
11301 _ACEOF
11302 if ac_fn_c_try_link "$LINENO"; then :
11303 ac_cv_lib_svld_dlopen=yes
11304 else
11305 ac_cv_lib_svld_dlopen=no
11307 rm -f core conftest.err conftest.$ac_objext \
11308 conftest$ac_exeext conftest.$ac_ext
11309 LIBS=$ac_check_lib_save_LIBS
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11312 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11313 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11314 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11315 else
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11317 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11318 if ${ac_cv_lib_dld_dld_link+:} false; then :
11319 $as_echo_n "(cached) " >&6
11320 else
11321 ac_check_lib_save_LIBS=$LIBS
11322 LIBS="-ldld $LIBS"
11323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11324 /* end confdefs.h. */
11326 /* Override any GCC internal prototype to avoid an error.
11327 Use char because int might match the return type of a GCC
11328 builtin and then its argument prototype would still apply. */
11329 #ifdef __cplusplus
11330 extern "C"
11331 #endif
11332 char dld_link ();
11334 main ()
11336 return dld_link ();
11338 return 0;
11340 _ACEOF
11341 if ac_fn_c_try_link "$LINENO"; then :
11342 ac_cv_lib_dld_dld_link=yes
11343 else
11344 ac_cv_lib_dld_dld_link=no
11346 rm -f core conftest.err conftest.$ac_objext \
11347 conftest$ac_exeext conftest.$ac_ext
11348 LIBS=$ac_check_lib_save_LIBS
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11351 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11352 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11353 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11372 esac
11374 if test "x$lt_cv_dlopen" != xno; then
11375 enable_dlopen=yes
11376 else
11377 enable_dlopen=no
11380 case $lt_cv_dlopen in
11381 dlopen)
11382 save_CPPFLAGS="$CPPFLAGS"
11383 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11385 save_LDFLAGS="$LDFLAGS"
11386 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11388 save_LIBS="$LIBS"
11389 LIBS="$lt_cv_dlopen_libs $LIBS"
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11392 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11393 if ${lt_cv_dlopen_self+:} false; then :
11394 $as_echo_n "(cached) " >&6
11395 else
11396 if test "$cross_compiling" = yes; then :
11397 lt_cv_dlopen_self=cross
11398 else
11399 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11400 lt_status=$lt_dlunknown
11401 cat > conftest.$ac_ext <<_LT_EOF
11402 #line 11402 "configure"
11403 #include "confdefs.h"
11405 #if HAVE_DLFCN_H
11406 #include <dlfcn.h>
11407 #endif
11409 #include <stdio.h>
11411 #ifdef RTLD_GLOBAL
11412 # define LT_DLGLOBAL RTLD_GLOBAL
11413 #else
11414 # ifdef DL_GLOBAL
11415 # define LT_DLGLOBAL DL_GLOBAL
11416 # else
11417 # define LT_DLGLOBAL 0
11418 # endif
11419 #endif
11421 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11422 find out it does not work in some platform. */
11423 #ifndef LT_DLLAZY_OR_NOW
11424 # ifdef RTLD_LAZY
11425 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11426 # else
11427 # ifdef DL_LAZY
11428 # define LT_DLLAZY_OR_NOW DL_LAZY
11429 # else
11430 # ifdef RTLD_NOW
11431 # define LT_DLLAZY_OR_NOW RTLD_NOW
11432 # else
11433 # ifdef DL_NOW
11434 # define LT_DLLAZY_OR_NOW DL_NOW
11435 # else
11436 # define LT_DLLAZY_OR_NOW 0
11437 # endif
11438 # endif
11439 # endif
11440 # endif
11441 #endif
11443 /* When -fvisbility=hidden is used, assume the code has been annotated
11444 correspondingly for the symbols needed. */
11445 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11446 void fnord () __attribute__((visibility("default")));
11447 #endif
11449 void fnord () { int i=42; }
11450 int main ()
11452 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11453 int status = $lt_dlunknown;
11455 if (self)
11457 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11458 else
11460 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11461 else puts (dlerror ());
11463 /* dlclose (self); */
11465 else
11466 puts (dlerror ());
11468 return status;
11470 _LT_EOF
11471 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11472 (eval $ac_link) 2>&5
11473 ac_status=$?
11474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11475 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11476 (./conftest; exit; ) >&5 2>/dev/null
11477 lt_status=$?
11478 case x$lt_status in
11479 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11480 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11481 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11482 esac
11483 else :
11484 # compilation failed
11485 lt_cv_dlopen_self=no
11488 rm -fr conftest*
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11493 $as_echo "$lt_cv_dlopen_self" >&6; }
11495 if test "x$lt_cv_dlopen_self" = xyes; then
11496 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11498 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11499 if ${lt_cv_dlopen_self_static+:} false; then :
11500 $as_echo_n "(cached) " >&6
11501 else
11502 if test "$cross_compiling" = yes; then :
11503 lt_cv_dlopen_self_static=cross
11504 else
11505 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11506 lt_status=$lt_dlunknown
11507 cat > conftest.$ac_ext <<_LT_EOF
11508 #line 11508 "configure"
11509 #include "confdefs.h"
11511 #if HAVE_DLFCN_H
11512 #include <dlfcn.h>
11513 #endif
11515 #include <stdio.h>
11517 #ifdef RTLD_GLOBAL
11518 # define LT_DLGLOBAL RTLD_GLOBAL
11519 #else
11520 # ifdef DL_GLOBAL
11521 # define LT_DLGLOBAL DL_GLOBAL
11522 # else
11523 # define LT_DLGLOBAL 0
11524 # endif
11525 #endif
11527 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11528 find out it does not work in some platform. */
11529 #ifndef LT_DLLAZY_OR_NOW
11530 # ifdef RTLD_LAZY
11531 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11532 # else
11533 # ifdef DL_LAZY
11534 # define LT_DLLAZY_OR_NOW DL_LAZY
11535 # else
11536 # ifdef RTLD_NOW
11537 # define LT_DLLAZY_OR_NOW RTLD_NOW
11538 # else
11539 # ifdef DL_NOW
11540 # define LT_DLLAZY_OR_NOW DL_NOW
11541 # else
11542 # define LT_DLLAZY_OR_NOW 0
11543 # endif
11544 # endif
11545 # endif
11546 # endif
11547 #endif
11549 /* When -fvisbility=hidden is used, assume the code has been annotated
11550 correspondingly for the symbols needed. */
11551 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11552 void fnord () __attribute__((visibility("default")));
11553 #endif
11555 void fnord () { int i=42; }
11556 int main ()
11558 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11559 int status = $lt_dlunknown;
11561 if (self)
11563 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11564 else
11566 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11567 else puts (dlerror ());
11569 /* dlclose (self); */
11571 else
11572 puts (dlerror ());
11574 return status;
11576 _LT_EOF
11577 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11578 (eval $ac_link) 2>&5
11579 ac_status=$?
11580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11581 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11582 (./conftest; exit; ) >&5 2>/dev/null
11583 lt_status=$?
11584 case x$lt_status in
11585 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11586 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11587 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11588 esac
11589 else :
11590 # compilation failed
11591 lt_cv_dlopen_self_static=no
11594 rm -fr conftest*
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11599 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11602 CPPFLAGS="$save_CPPFLAGS"
11603 LDFLAGS="$save_LDFLAGS"
11604 LIBS="$save_LIBS"
11606 esac
11608 case $lt_cv_dlopen_self in
11609 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11610 *) enable_dlopen_self=unknown ;;
11611 esac
11613 case $lt_cv_dlopen_self_static in
11614 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11615 *) enable_dlopen_self_static=unknown ;;
11616 esac
11635 striplib=
11636 old_striplib=
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11638 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11639 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11640 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11641 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11643 $as_echo "yes" >&6; }
11644 else
11645 # FIXME - insert some real tests, host_os isn't really good enough
11646 case $host_os in
11647 darwin*)
11648 if test -n "$STRIP" ; then
11649 striplib="$STRIP -x"
11650 old_striplib="$STRIP -S"
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11652 $as_echo "yes" >&6; }
11653 else
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11655 $as_echo "no" >&6; }
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11660 $as_echo "no" >&6; }
11662 esac
11676 # Report which library types will actually be built
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11678 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11680 $as_echo "$can_build_shared" >&6; }
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11683 $as_echo_n "checking whether to build shared libraries... " >&6; }
11684 test "$can_build_shared" = "no" && enable_shared=no
11686 # On AIX, shared libraries and static libraries use the same namespace, and
11687 # are all built from PIC.
11688 case $host_os in
11689 aix3*)
11690 test "$enable_shared" = yes && enable_static=no
11691 if test -n "$RANLIB"; then
11692 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11693 postinstall_cmds='$RANLIB $lib'
11697 aix[4-9]*)
11698 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11699 test "$enable_shared" = yes && enable_static=no
11702 esac
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11704 $as_echo "$enable_shared" >&6; }
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11707 $as_echo_n "checking whether to build static libraries... " >&6; }
11708 # Make sure either enable_shared or enable_static is yes.
11709 test "$enable_shared" = yes || enable_static=yes
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11711 $as_echo "$enable_static" >&6; }
11717 ac_ext=c
11718 ac_cpp='$CPP $CPPFLAGS'
11719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11723 CC="$lt_save_CC"
11737 ac_config_commands="$ac_config_commands libtool"
11742 # Only expand once:
11748 case $host in
11749 *-cygwin* | *-mingw*)
11750 # 'host' will be top-level target in the case of a target lib,
11751 # we must compare to with_cross_host to decide if this is a native
11752 # or cross-compiler and select where to install dlls appropriately.
11753 if test -n "$with_cross_host" &&
11754 test x"$with_cross_host" != x"no"; then
11755 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
11756 else
11757 lt_host_flags='-no-undefined -bindir "$(bindir)"';
11761 lt_host_flags=
11763 esac
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11772 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11773 # Check whether --enable-maintainer-mode was given.
11774 if test "${enable_maintainer_mode+set}" = set; then :
11775 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11776 else
11777 USE_MAINTAINER_MODE=no
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11781 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11782 if test $USE_MAINTAINER_MODE = yes; then
11783 MAINTAINER_MODE_TRUE=
11784 MAINTAINER_MODE_FALSE='#'
11785 else
11786 MAINTAINER_MODE_TRUE='#'
11787 MAINTAINER_MODE_FALSE=
11790 MAINT=$MAINTAINER_MODE_TRUE
11794 # Create a spec file, so that compile/link tests don't fail
11795 test -f libgfortran.spec || touch libgfortran.spec
11796 FCFLAGS="$FCFLAGS -L."
11798 # We need gfortran to compile parts of the library
11799 # We can't use AC_PROG_FC because it expects a fully working gfortran.
11800 #AC_PROG_FC(gfortran)
11801 case `echo $GFORTRAN` in
11802 -* | no* )
11803 FC=no ;;
11805 set dummy $GFORTRAN; ac_word=$2
11806 if test -x "$ac_word"; then
11807 FC="$GFORTRAN"
11808 else
11809 FC=no
11810 fi ;;
11811 esac
11812 ac_ext=${ac_fc_srcext-f}
11813 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11814 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11815 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11816 if test -n "$ac_tool_prefix"; then
11817 for ac_prog in gfortran
11819 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11820 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11822 $as_echo_n "checking for $ac_word... " >&6; }
11823 if ${ac_cv_prog_FC+:} false; then :
11824 $as_echo_n "(cached) " >&6
11825 else
11826 if test -n "$FC"; then
11827 ac_cv_prog_FC="$FC" # Let the user override the test.
11828 else
11829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11830 for as_dir in $PATH
11832 IFS=$as_save_IFS
11833 test -z "$as_dir" && as_dir=.
11834 for ac_exec_ext in '' $ac_executable_extensions; do
11835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11836 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
11837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11838 break 2
11840 done
11841 done
11842 IFS=$as_save_IFS
11846 FC=$ac_cv_prog_FC
11847 if test -n "$FC"; then
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
11849 $as_echo "$FC" >&6; }
11850 else
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11852 $as_echo "no" >&6; }
11856 test -n "$FC" && break
11857 done
11859 if test -z "$FC"; then
11860 ac_ct_FC=$FC
11861 for ac_prog in gfortran
11863 # Extract the first word of "$ac_prog", so it can be a program name with args.
11864 set dummy $ac_prog; ac_word=$2
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11866 $as_echo_n "checking for $ac_word... " >&6; }
11867 if ${ac_cv_prog_ac_ct_FC+:} false; then :
11868 $as_echo_n "(cached) " >&6
11869 else
11870 if test -n "$ac_ct_FC"; then
11871 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
11872 else
11873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11874 for as_dir in $PATH
11876 IFS=$as_save_IFS
11877 test -z "$as_dir" && as_dir=.
11878 for ac_exec_ext in '' $ac_executable_extensions; do
11879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11880 ac_cv_prog_ac_ct_FC="$ac_prog"
11881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11882 break 2
11884 done
11885 done
11886 IFS=$as_save_IFS
11890 ac_ct_FC=$ac_cv_prog_ac_ct_FC
11891 if test -n "$ac_ct_FC"; then
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
11893 $as_echo "$ac_ct_FC" >&6; }
11894 else
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11896 $as_echo "no" >&6; }
11900 test -n "$ac_ct_FC" && break
11901 done
11903 if test "x$ac_ct_FC" = x; then
11904 FC=""
11905 else
11906 case $cross_compiling:$ac_tool_warned in
11907 yes:)
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11909 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11910 ac_tool_warned=yes ;;
11911 esac
11912 FC=$ac_ct_FC
11917 # Provide some information about the compiler.
11918 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
11919 set X $ac_compile
11920 ac_compiler=$2
11921 for ac_option in --version -v -V -qversion; do
11922 { { ac_try="$ac_compiler $ac_option >&5"
11923 case "(($ac_try" in
11924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11925 *) ac_try_echo=$ac_try;;
11926 esac
11927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11928 $as_echo "$ac_try_echo"; } >&5
11929 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11930 ac_status=$?
11931 if test -s conftest.err; then
11932 sed '10a\
11933 ... rest of stderr output deleted ...
11934 10q' conftest.err >conftest.er1
11935 cat conftest.er1 >&5
11937 rm -f conftest.er1 conftest.err
11938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11939 test $ac_status = 0; }
11940 done
11941 rm -f a.out
11943 # If we don't use `.F' as extension, the preprocessor is not run on the
11944 # input file. (Note that this only needs to work for GNU compilers.)
11945 ac_save_ext=$ac_ext
11946 ac_ext=F
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
11948 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
11949 if ${ac_cv_fc_compiler_gnu+:} false; then :
11950 $as_echo_n "(cached) " >&6
11951 else
11952 cat > conftest.$ac_ext <<_ACEOF
11953 program main
11954 #ifndef __GNUC__
11955 choke me
11956 #endif
11959 _ACEOF
11960 if ac_fn_fc_try_compile "$LINENO"; then :
11961 ac_compiler_gnu=yes
11962 else
11963 ac_compiler_gnu=no
11965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11966 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
11970 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
11971 ac_ext=$ac_save_ext
11972 ac_test_FCFLAGS=${FCFLAGS+set}
11973 ac_save_FCFLAGS=$FCFLAGS
11974 FCFLAGS=
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
11976 $as_echo_n "checking whether $FC accepts -g... " >&6; }
11977 if ${ac_cv_prog_fc_g+:} false; then :
11978 $as_echo_n "(cached) " >&6
11979 else
11980 FCFLAGS=-g
11981 cat > conftest.$ac_ext <<_ACEOF
11982 program main
11985 _ACEOF
11986 if ac_fn_fc_try_compile "$LINENO"; then :
11987 ac_cv_prog_fc_g=yes
11988 else
11989 ac_cv_prog_fc_g=no
11991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
11995 $as_echo "$ac_cv_prog_fc_g" >&6; }
11996 if test "$ac_test_FCFLAGS" = set; then
11997 FCFLAGS=$ac_save_FCFLAGS
11998 elif test $ac_cv_prog_fc_g = yes; then
11999 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12000 FCFLAGS="-g -O2"
12001 else
12002 FCFLAGS="-g"
12004 else
12005 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12006 FCFLAGS="-O2"
12007 else
12008 FCFLAGS=
12012 if test $ac_compiler_gnu = yes; then
12013 GFC=yes
12014 else
12015 GFC=
12017 ac_ext=c
12018 ac_cpp='$CPP $CPPFLAGS'
12019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12023 ac_ext=${ac_fc_srcext-f}
12024 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
12025 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
12026 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12029 if test -z "$FC" || test "X$FC" = "Xno"; then
12030 _lt_disable_FC=yes
12033 archive_cmds_need_lc_FC=no
12034 allow_undefined_flag_FC=
12035 always_export_symbols_FC=no
12036 archive_expsym_cmds_FC=
12037 export_dynamic_flag_spec_FC=
12038 hardcode_direct_FC=no
12039 hardcode_direct_absolute_FC=no
12040 hardcode_libdir_flag_spec_FC=
12041 hardcode_libdir_flag_spec_ld_FC=
12042 hardcode_libdir_separator_FC=
12043 hardcode_minus_L_FC=no
12044 hardcode_automatic_FC=no
12045 inherit_rpath_FC=no
12046 module_cmds_FC=
12047 module_expsym_cmds_FC=
12048 link_all_deplibs_FC=unknown
12049 old_archive_cmds_FC=$old_archive_cmds
12050 reload_flag_FC=$reload_flag
12051 reload_cmds_FC=$reload_cmds
12052 no_undefined_flag_FC=
12053 whole_archive_flag_spec_FC=
12054 enable_shared_with_static_runtimes_FC=no
12056 # Source file extension for fc test sources.
12057 ac_ext=${ac_fc_srcext-f}
12059 # Object file extension for compiled fc test sources.
12060 objext=o
12061 objext_FC=$objext
12063 # No sense in running all these tests if we already determined that
12064 # the FC compiler isn't working. Some variables (like enable_shared)
12065 # are currently assumed to apply to all compilers on this platform,
12066 # and will be corrupted by setting them based on a non-working compiler.
12067 if test "$_lt_disable_FC" != yes; then
12068 # Code to be used in simple compile tests
12069 lt_simple_compile_test_code="\
12070 subroutine t
12071 return
12075 # Code to be used in simple link tests
12076 lt_simple_link_test_code="\
12077 program t
12081 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12088 # If no C compiler was specified, use CC.
12089 LTCC=${LTCC-"$CC"}
12091 # If no C compiler flags were specified, use CFLAGS.
12092 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12094 # Allow CC to be a program name with arguments.
12095 compiler=$CC
12098 # save warnings/boilerplate of simple test code
12099 ac_outfile=conftest.$ac_objext
12100 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12101 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12102 _lt_compiler_boilerplate=`cat conftest.err`
12103 $RM conftest*
12105 ac_outfile=conftest.$ac_objext
12106 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12107 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12108 _lt_linker_boilerplate=`cat conftest.err`
12109 $RM -r conftest*
12112 # Allow CC to be a program name with arguments.
12113 lt_save_CC="$CC"
12114 lt_save_GCC=$GCC
12115 CC=${FC-"f95"}
12116 compiler=$CC
12117 GCC=$ac_cv_fc_compiler_gnu
12119 compiler_FC=$CC
12120 for cc_temp in $compiler""; do
12121 case $cc_temp in
12122 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12123 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12124 \-*) ;;
12125 *) break;;
12126 esac
12127 done
12128 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12131 if test -n "$compiler"; then
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12133 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12135 $as_echo "$can_build_shared" >&6; }
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12138 $as_echo_n "checking whether to build shared libraries... " >&6; }
12139 test "$can_build_shared" = "no" && enable_shared=no
12141 # On AIX, shared libraries and static libraries use the same namespace, and
12142 # are all built from PIC.
12143 case $host_os in
12144 aix3*)
12145 test "$enable_shared" = yes && enable_static=no
12146 if test -n "$RANLIB"; then
12147 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12148 postinstall_cmds='$RANLIB $lib'
12151 aix[4-9]*)
12152 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12153 test "$enable_shared" = yes && enable_static=no
12156 esac
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12158 $as_echo "$enable_shared" >&6; }
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12161 $as_echo_n "checking whether to build static libraries... " >&6; }
12162 # Make sure either enable_shared or enable_static is yes.
12163 test "$enable_shared" = yes || enable_static=yes
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12165 $as_echo "$enable_static" >&6; }
12167 GCC_FC="$ac_cv_fc_compiler_gnu"
12168 LD_FC="$LD"
12170 ## CAVEAT EMPTOR:
12171 ## There is no encapsulation within the following macros, do not change
12172 ## the running order or otherwise move them around unless you know exactly
12173 ## what you are doing...
12174 # Dependencies to place before and after the object being linked:
12175 predep_objects_FC=
12176 postdep_objects_FC=
12177 predeps_FC=
12178 postdeps_FC=
12179 compiler_lib_search_path_FC=
12181 cat > conftest.$ac_ext <<_LT_EOF
12182 subroutine foo
12183 implicit none
12184 integer a
12186 return
12188 _LT_EOF
12190 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12191 (eval $ac_compile) 2>&5
12192 ac_status=$?
12193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12194 test $ac_status = 0; }; then
12195 # Parse the compiler output and extract the necessary
12196 # objects, libraries and library flags.
12198 # Sentinel used to keep track of whether or not we are before
12199 # the conftest object file.
12200 pre_test_object_deps_done=no
12202 for p in `eval "$output_verbose_link_cmd"`; do
12203 case $p in
12205 -L* | -R* | -l*)
12206 # Some compilers place space between "-{L,R}" and the path.
12207 # Remove the space.
12208 if test $p = "-L" ||
12209 test $p = "-R"; then
12210 prev=$p
12211 continue
12212 else
12213 prev=
12216 if test "$pre_test_object_deps_done" = no; then
12217 case $p in
12218 -L* | -R*)
12219 # Internal compiler library paths should come after those
12220 # provided the user. The postdeps already come after the
12221 # user supplied libs so there is no need to process them.
12222 if test -z "$compiler_lib_search_path_FC"; then
12223 compiler_lib_search_path_FC="${prev}${p}"
12224 else
12225 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
12228 # The "-l" case would never come before the object being
12229 # linked, so don't bother handling this case.
12230 esac
12231 else
12232 if test -z "$postdeps_FC"; then
12233 postdeps_FC="${prev}${p}"
12234 else
12235 postdeps_FC="${postdeps_FC} ${prev}${p}"
12240 *.$objext)
12241 # This assumes that the test object file only shows up
12242 # once in the compiler output.
12243 if test "$p" = "conftest.$objext"; then
12244 pre_test_object_deps_done=yes
12245 continue
12248 if test "$pre_test_object_deps_done" = no; then
12249 if test -z "$predep_objects_FC"; then
12250 predep_objects_FC="$p"
12251 else
12252 predep_objects_FC="$predep_objects_FC $p"
12254 else
12255 if test -z "$postdep_objects_FC"; then
12256 postdep_objects_FC="$p"
12257 else
12258 postdep_objects_FC="$postdep_objects_FC $p"
12263 *) ;; # Ignore the rest.
12265 esac
12266 done
12268 # Clean up.
12269 rm -f a.out a.exe
12270 else
12271 echo "libtool.m4: error: problem compiling FC test program"
12274 $RM -f confest.$objext
12276 # PORTME: override above test on systems where it is broken
12279 case " $postdeps_FC " in
12280 *" -lc "*) archive_cmds_need_lc_FC=no ;;
12281 esac
12282 compiler_lib_search_dirs_FC=
12283 if test -n "${compiler_lib_search_path_FC}"; then
12284 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12317 lt_prog_compiler_wl_FC=
12318 lt_prog_compiler_pic_FC=
12319 lt_prog_compiler_static_FC=
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12322 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12324 if test "$GCC" = yes; then
12325 lt_prog_compiler_wl_FC='-Wl,'
12326 lt_prog_compiler_static_FC='-static'
12328 case $host_os in
12329 aix*)
12330 # All AIX code is PIC.
12331 if test "$host_cpu" = ia64; then
12332 # AIX 5 now supports IA64 processor
12333 lt_prog_compiler_static_FC='-Bstatic'
12335 lt_prog_compiler_pic_FC='-fPIC'
12338 amigaos*)
12339 case $host_cpu in
12340 powerpc)
12341 # see comment about AmigaOS4 .so support
12342 lt_prog_compiler_pic_FC='-fPIC'
12344 m68k)
12345 # FIXME: we need at least 68020 code to build shared libraries, but
12346 # adding the `-m68020' flag to GCC prevents building anything better,
12347 # like `-m68040'.
12348 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
12350 esac
12353 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12354 # PIC is the default for these OSes.
12357 mingw* | cygwin* | pw32* | os2* | cegcc*)
12358 # This hack is so that the source file can tell whether it is being
12359 # built for inclusion in a dll (and should export symbols for example).
12360 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12361 # (--disable-auto-import) libraries
12362 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12365 darwin* | rhapsody*)
12366 # PIC is the default on this platform
12367 # Common symbols not allowed in MH_DYLIB files
12368 lt_prog_compiler_pic_FC='-fno-common'
12371 haiku*)
12372 # PIC is the default for Haiku.
12373 # The "-static" flag exists, but is broken.
12374 lt_prog_compiler_static_FC=
12377 hpux*)
12378 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12379 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12380 # sets the default TLS model and affects inlining.
12381 case $host_cpu in
12382 hppa*64*)
12383 # +Z the default
12386 lt_prog_compiler_pic_FC='-fPIC'
12388 esac
12391 interix[3-9]*)
12392 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12393 # Instead, we relocate shared libraries at runtime.
12396 msdosdjgpp*)
12397 # Just because we use GCC doesn't mean we suddenly get shared libraries
12398 # on systems that don't support them.
12399 lt_prog_compiler_can_build_shared_FC=no
12400 enable_shared=no
12403 *nto* | *qnx*)
12404 # QNX uses GNU C++, but need to define -shared option too, otherwise
12405 # it will coredump.
12406 lt_prog_compiler_pic_FC='-fPIC -shared'
12409 sysv4*MP*)
12410 if test -d /usr/nec; then
12411 lt_prog_compiler_pic_FC=-Kconform_pic
12416 lt_prog_compiler_pic_FC='-fPIC'
12418 esac
12420 case $cc_basename in
12421 nvcc*) # Cuda Compiler Driver 2.2
12422 lt_prog_compiler_wl_FC='-Xlinker '
12423 lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
12425 esac
12426 else
12427 # PORTME Check for flag to pass linker flags through the system compiler.
12428 case $host_os in
12429 aix*)
12430 lt_prog_compiler_wl_FC='-Wl,'
12431 if test "$host_cpu" = ia64; then
12432 # AIX 5 now supports IA64 processor
12433 lt_prog_compiler_static_FC='-Bstatic'
12434 else
12435 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
12439 mingw* | cygwin* | pw32* | os2* | cegcc*)
12440 # This hack is so that the source file can tell whether it is being
12441 # built for inclusion in a dll (and should export symbols for example).
12442 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12445 hpux9* | hpux10* | hpux11*)
12446 lt_prog_compiler_wl_FC='-Wl,'
12447 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12448 # not for PA HP-UX.
12449 case $host_cpu in
12450 hppa*64*|ia64*)
12451 # +Z the default
12454 lt_prog_compiler_pic_FC='+Z'
12456 esac
12457 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12458 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
12461 irix5* | irix6* | nonstopux*)
12462 lt_prog_compiler_wl_FC='-Wl,'
12463 # PIC (with -KPIC) is the default.
12464 lt_prog_compiler_static_FC='-non_shared'
12467 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12468 case $cc_basename in
12469 # old Intel for x86_64 which still supported -KPIC.
12470 ecc*)
12471 lt_prog_compiler_wl_FC='-Wl,'
12472 lt_prog_compiler_pic_FC='-KPIC'
12473 lt_prog_compiler_static_FC='-static'
12475 # icc used to be incompatible with GCC.
12476 # ICC 10 doesn't accept -KPIC any more.
12477 icc* | ifort*)
12478 lt_prog_compiler_wl_FC='-Wl,'
12479 lt_prog_compiler_pic_FC='-fPIC'
12480 lt_prog_compiler_static_FC='-static'
12482 # Lahey Fortran 8.1.
12483 lf95*)
12484 lt_prog_compiler_wl_FC='-Wl,'
12485 lt_prog_compiler_pic_FC='--shared'
12486 lt_prog_compiler_static_FC='--static'
12488 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12489 # Portland Group compilers (*not* the Pentium gcc compiler,
12490 # which looks to be a dead project)
12491 lt_prog_compiler_wl_FC='-Wl,'
12492 lt_prog_compiler_pic_FC='-fpic'
12493 lt_prog_compiler_static_FC='-Bstatic'
12495 ccc*)
12496 lt_prog_compiler_wl_FC='-Wl,'
12497 # All Alpha code is PIC.
12498 lt_prog_compiler_static_FC='-non_shared'
12500 xl* | bgxl* | bgf* | mpixl*)
12501 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12502 lt_prog_compiler_wl_FC='-Wl,'
12503 lt_prog_compiler_pic_FC='-qpic'
12504 lt_prog_compiler_static_FC='-qstaticlink'
12507 case `$CC -V 2>&1 | sed 5q` in
12508 *Sun\ F* | *Sun*Fortran*)
12509 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12510 lt_prog_compiler_pic_FC='-KPIC'
12511 lt_prog_compiler_static_FC='-Bstatic'
12512 lt_prog_compiler_wl_FC=''
12514 *Sun\ C*)
12515 # Sun C 5.9
12516 lt_prog_compiler_pic_FC='-KPIC'
12517 lt_prog_compiler_static_FC='-Bstatic'
12518 lt_prog_compiler_wl_FC='-Wl,'
12520 esac
12522 esac
12525 newsos6)
12526 lt_prog_compiler_pic_FC='-KPIC'
12527 lt_prog_compiler_static_FC='-Bstatic'
12530 *nto* | *qnx*)
12531 # QNX uses GNU C++, but need to define -shared option too, otherwise
12532 # it will coredump.
12533 lt_prog_compiler_pic_FC='-fPIC -shared'
12536 osf3* | osf4* | osf5*)
12537 lt_prog_compiler_wl_FC='-Wl,'
12538 # All OSF/1 code is PIC.
12539 lt_prog_compiler_static_FC='-non_shared'
12542 rdos*)
12543 lt_prog_compiler_static_FC='-non_shared'
12546 solaris*)
12547 lt_prog_compiler_pic_FC='-KPIC'
12548 lt_prog_compiler_static_FC='-Bstatic'
12549 case $cc_basename in
12550 f77* | f90* | f95*)
12551 lt_prog_compiler_wl_FC='-Qoption ld ';;
12553 lt_prog_compiler_wl_FC='-Wl,';;
12554 esac
12557 sunos4*)
12558 lt_prog_compiler_wl_FC='-Qoption ld '
12559 lt_prog_compiler_pic_FC='-PIC'
12560 lt_prog_compiler_static_FC='-Bstatic'
12563 sysv4 | sysv4.2uw2* | sysv4.3*)
12564 lt_prog_compiler_wl_FC='-Wl,'
12565 lt_prog_compiler_pic_FC='-KPIC'
12566 lt_prog_compiler_static_FC='-Bstatic'
12569 sysv4*MP*)
12570 if test -d /usr/nec ;then
12571 lt_prog_compiler_pic_FC='-Kconform_pic'
12572 lt_prog_compiler_static_FC='-Bstatic'
12576 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12577 lt_prog_compiler_wl_FC='-Wl,'
12578 lt_prog_compiler_pic_FC='-KPIC'
12579 lt_prog_compiler_static_FC='-Bstatic'
12582 unicos*)
12583 lt_prog_compiler_wl_FC='-Wl,'
12584 lt_prog_compiler_can_build_shared_FC=no
12587 uts4*)
12588 lt_prog_compiler_pic_FC='-pic'
12589 lt_prog_compiler_static_FC='-Bstatic'
12593 lt_prog_compiler_can_build_shared_FC=no
12595 esac
12598 case $host_os in
12599 # For platforms which do not support PIC, -DPIC is meaningless:
12600 *djgpp*)
12601 lt_prog_compiler_pic_FC=
12604 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
12606 esac
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
12608 $as_echo "$lt_prog_compiler_pic_FC" >&6; }
12613 # Check to make sure the PIC flag actually works.
12615 if test -n "$lt_prog_compiler_pic_FC"; then
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
12617 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
12618 if ${lt_cv_prog_compiler_pic_works_FC+:} false; then :
12619 $as_echo_n "(cached) " >&6
12620 else
12621 lt_cv_prog_compiler_pic_works_FC=no
12622 ac_outfile=conftest.$ac_objext
12623 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12624 lt_compiler_flag="$lt_prog_compiler_pic_FC"
12625 # Insert the option either (1) after the last *FLAGS variable, or
12626 # (2) before a word containing "conftest.", or (3) at the end.
12627 # Note that $ac_compile itself does not contain backslashes and begins
12628 # with a dollar sign (not a hyphen), so the echo should work correctly.
12629 # The option is referenced via a variable to avoid confusing sed.
12630 lt_compile=`echo "$ac_compile" | $SED \
12631 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12632 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12633 -e 's:$: $lt_compiler_flag:'`
12634 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12635 (eval "$lt_compile" 2>conftest.err)
12636 ac_status=$?
12637 cat conftest.err >&5
12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 if (exit $ac_status) && test -s "$ac_outfile"; then
12640 # The compiler can only warn and ignore the option if not recognized
12641 # So say no if there are warnings other than the usual output.
12642 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12643 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12644 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12645 lt_cv_prog_compiler_pic_works_FC=yes
12648 $RM conftest*
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
12652 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
12654 if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
12655 case $lt_prog_compiler_pic_FC in
12656 "" | " "*) ;;
12657 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
12658 esac
12659 else
12660 lt_prog_compiler_pic_FC=
12661 lt_prog_compiler_can_build_shared_FC=no
12669 # Check to make sure the static flag actually works.
12671 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12673 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12674 if ${lt_cv_prog_compiler_static_works_FC+:} false; then :
12675 $as_echo_n "(cached) " >&6
12676 else
12677 lt_cv_prog_compiler_static_works_FC=no
12678 save_LDFLAGS="$LDFLAGS"
12679 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12680 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12681 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12682 # The linker can only warn and ignore the option if not recognized
12683 # So say no if there are warnings
12684 if test -s conftest.err; then
12685 # Append any errors to the config.log.
12686 cat conftest.err 1>&5
12687 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12688 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12689 if diff conftest.exp conftest.er2 >/dev/null; then
12690 lt_cv_prog_compiler_static_works_FC=yes
12692 else
12693 lt_cv_prog_compiler_static_works_FC=yes
12696 $RM -r conftest*
12697 LDFLAGS="$save_LDFLAGS"
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
12701 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
12703 if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
12705 else
12706 lt_prog_compiler_static_FC=
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12713 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12714 if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
12715 $as_echo_n "(cached) " >&6
12716 else
12717 lt_cv_prog_compiler_c_o_FC=no
12718 $RM -r conftest 2>/dev/null
12719 mkdir conftest
12720 cd conftest
12721 mkdir out
12722 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12724 lt_compiler_flag="-o out/conftest2.$ac_objext"
12725 # Insert the option either (1) after the last *FLAGS variable, or
12726 # (2) before a word containing "conftest.", or (3) at the end.
12727 # Note that $ac_compile itself does not contain backslashes and begins
12728 # with a dollar sign (not a hyphen), so the echo should work correctly.
12729 lt_compile=`echo "$ac_compile" | $SED \
12730 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12731 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12732 -e 's:$: $lt_compiler_flag:'`
12733 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12734 (eval "$lt_compile" 2>out/conftest.err)
12735 ac_status=$?
12736 cat out/conftest.err >&5
12737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12739 then
12740 # The compiler can only warn and ignore the option if not recognized
12741 # So say no if there are warnings
12742 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12743 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12744 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12745 lt_cv_prog_compiler_c_o_FC=yes
12748 chmod u+w . 2>&5
12749 $RM conftest*
12750 # SGI C++ compiler will create directory out/ii_files/ for
12751 # template instantiation
12752 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12753 $RM out/* && rmdir out
12754 cd ..
12755 $RM -r conftest
12756 $RM conftest*
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12760 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12765 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12766 if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
12767 $as_echo_n "(cached) " >&6
12768 else
12769 lt_cv_prog_compiler_c_o_FC=no
12770 $RM -r conftest 2>/dev/null
12771 mkdir conftest
12772 cd conftest
12773 mkdir out
12774 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12776 lt_compiler_flag="-o out/conftest2.$ac_objext"
12777 # Insert the option either (1) after the last *FLAGS variable, or
12778 # (2) before a word containing "conftest.", or (3) at the end.
12779 # Note that $ac_compile itself does not contain backslashes and begins
12780 # with a dollar sign (not a hyphen), so the echo should work correctly.
12781 lt_compile=`echo "$ac_compile" | $SED \
12782 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12783 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12784 -e 's:$: $lt_compiler_flag:'`
12785 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12786 (eval "$lt_compile" 2>out/conftest.err)
12787 ac_status=$?
12788 cat out/conftest.err >&5
12789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12791 then
12792 # The compiler can only warn and ignore the option if not recognized
12793 # So say no if there are warnings
12794 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12795 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12796 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12797 lt_cv_prog_compiler_c_o_FC=yes
12800 chmod u+w . 2>&5
12801 $RM conftest*
12802 # SGI C++ compiler will create directory out/ii_files/ for
12803 # template instantiation
12804 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12805 $RM out/* && rmdir out
12806 cd ..
12807 $RM -r conftest
12808 $RM conftest*
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12812 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12817 hard_links="nottested"
12818 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
12819 # do not overwrite the value of need_locks provided by the user
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12821 $as_echo_n "checking if we can lock with hard links... " >&6; }
12822 hard_links=yes
12823 $RM conftest*
12824 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12825 touch conftest.a
12826 ln conftest.a conftest.b 2>&5 || hard_links=no
12827 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12829 $as_echo "$hard_links" >&6; }
12830 if test "$hard_links" = no; then
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12832 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12833 need_locks=warn
12835 else
12836 need_locks=no
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12842 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12844 runpath_var=
12845 allow_undefined_flag_FC=
12846 always_export_symbols_FC=no
12847 archive_cmds_FC=
12848 archive_expsym_cmds_FC=
12849 compiler_needs_object_FC=no
12850 enable_shared_with_static_runtimes_FC=no
12851 export_dynamic_flag_spec_FC=
12852 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12853 hardcode_automatic_FC=no
12854 hardcode_direct_FC=no
12855 hardcode_direct_absolute_FC=no
12856 hardcode_libdir_flag_spec_FC=
12857 hardcode_libdir_flag_spec_ld_FC=
12858 hardcode_libdir_separator_FC=
12859 hardcode_minus_L_FC=no
12860 hardcode_shlibpath_var_FC=unsupported
12861 inherit_rpath_FC=no
12862 link_all_deplibs_FC=unknown
12863 module_cmds_FC=
12864 module_expsym_cmds_FC=
12865 old_archive_from_new_cmds_FC=
12866 old_archive_from_expsyms_cmds_FC=
12867 thread_safe_flag_spec_FC=
12868 whole_archive_flag_spec_FC=
12869 # include_expsyms should be a list of space-separated symbols to be *always*
12870 # included in the symbol list
12871 include_expsyms_FC=
12872 # exclude_expsyms can be an extended regexp of symbols to exclude
12873 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12874 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12875 # as well as any symbol that contains `d'.
12876 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12877 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12878 # platforms (ab)use it in PIC code, but their linkers get confused if
12879 # the symbol is explicitly referenced. Since portable code cannot
12880 # rely on this symbol name, it's probably fine to never include it in
12881 # preloaded symbol tables.
12882 # Exclude shared library initialization/finalization symbols.
12883 extract_expsyms_cmds=
12885 case $host_os in
12886 cygwin* | mingw* | pw32* | cegcc*)
12887 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12888 # When not using gcc, we currently assume that we are using
12889 # Microsoft Visual C++.
12890 if test "$GCC" != yes; then
12891 with_gnu_ld=no
12894 interix*)
12895 # we just hope/assume this is gcc and not c89 (= MSVC++)
12896 with_gnu_ld=yes
12898 openbsd*)
12899 with_gnu_ld=no
12901 esac
12903 ld_shlibs_FC=yes
12905 # On some targets, GNU ld is compatible enough with the native linker
12906 # that we're better off using the native interface for both.
12907 lt_use_gnu_ld_interface=no
12908 if test "$with_gnu_ld" = yes; then
12909 case $host_os in
12910 aix*)
12911 # The AIX port of GNU ld has always aspired to compatibility
12912 # with the native linker. However, as the warning in the GNU ld
12913 # block says, versions before 2.19.5* couldn't really create working
12914 # shared libraries, regardless of the interface used.
12915 case `$LD -v 2>&1` in
12916 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12917 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12918 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12920 lt_use_gnu_ld_interface=yes
12922 esac
12925 lt_use_gnu_ld_interface=yes
12927 esac
12930 if test "$lt_use_gnu_ld_interface" = yes; then
12931 # If archive_cmds runs LD, not CC, wlarc should be empty
12932 wlarc='${wl}'
12934 # Set some defaults for GNU ld with shared library support. These
12935 # are reset later if shared libraries are not supported. Putting them
12936 # here allows them to be overridden if necessary.
12937 runpath_var=LD_RUN_PATH
12938 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12939 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
12940 # ancient GNU ld didn't support --whole-archive et. al.
12941 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12942 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12943 else
12944 whole_archive_flag_spec_FC=
12946 supports_anon_versioning=no
12947 case `$LD -v 2>&1` in
12948 *GNU\ gold*) supports_anon_versioning=yes ;;
12949 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12950 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12951 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12952 *\ 2.11.*) ;; # other 2.11 versions
12953 *) supports_anon_versioning=yes ;;
12954 esac
12956 # See if GNU ld supports shared libraries.
12957 case $host_os in
12958 aix[3-9]*)
12959 # On AIX/PPC, the GNU linker is very broken
12960 if test "$host_cpu" != ia64; then
12961 ld_shlibs_FC=no
12962 cat <<_LT_EOF 1>&2
12964 *** Warning: the GNU linker, at least up to release 2.19, is reported
12965 *** to be unable to reliably create shared libraries on AIX.
12966 *** Therefore, libtool is disabling shared libraries support. If you
12967 *** really care for shared libraries, you may want to install binutils
12968 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12969 *** You will then need to restart the configuration process.
12971 _LT_EOF
12975 amigaos*)
12976 case $host_cpu in
12977 powerpc)
12978 # see comment about AmigaOS4 .so support
12979 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12980 archive_expsym_cmds_FC=''
12982 m68k)
12983 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)'
12984 hardcode_libdir_flag_spec_FC='-L$libdir'
12985 hardcode_minus_L_FC=yes
12987 esac
12990 beos*)
12991 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12992 allow_undefined_flag_FC=unsupported
12993 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12994 # support --undefined. This deserves some investigation. FIXME
12995 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12996 else
12997 ld_shlibs_FC=no
13001 cygwin* | mingw* | pw32* | cegcc*)
13002 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
13003 # as there is no search path for DLLs.
13004 hardcode_libdir_flag_spec_FC='-L$libdir'
13005 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
13006 allow_undefined_flag_FC=unsupported
13007 always_export_symbols_FC=no
13008 enable_shared_with_static_runtimes_FC=yes
13009 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13011 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13012 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13013 # If the export-symbols file already is a .def file (1st line
13014 # is EXPORTS), use it as is; otherwise, prepend...
13015 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13016 cp $export_symbols $output_objdir/$soname.def;
13017 else
13018 echo EXPORTS > $output_objdir/$soname.def;
13019 cat $export_symbols >> $output_objdir/$soname.def;
13021 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13022 else
13023 ld_shlibs_FC=no
13027 haiku*)
13028 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13029 link_all_deplibs_FC=yes
13032 interix[3-9]*)
13033 hardcode_direct_FC=no
13034 hardcode_shlibpath_var_FC=no
13035 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13036 export_dynamic_flag_spec_FC='${wl}-E'
13037 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13038 # Instead, shared libraries are loaded at an image base (0x10000000 by
13039 # default) and relocated if they conflict, which is a slow very memory
13040 # consuming and fragmenting process. To avoid this, we pick a random,
13041 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13042 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13043 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'
13044 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'
13047 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
13048 tmp_diet=no
13049 if test "$host_os" = linux-dietlibc; then
13050 case $cc_basename in
13051 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13052 esac
13054 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13055 && test "$tmp_diet" = no
13056 then
13057 tmp_addflag=' $pic_flag'
13058 tmp_sharedflag='-shared'
13059 case $cc_basename,$host_cpu in
13060 pgcc*) # Portland Group C compiler
13061 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'
13062 tmp_addflag=' $pic_flag'
13064 pgf77* | pgf90* | pgf95* | pgfortran*)
13065 # Portland Group f77 and f90 compilers
13066 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'
13067 tmp_addflag=' $pic_flag -Mnomain' ;;
13068 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13069 tmp_addflag=' -i_dynamic' ;;
13070 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13071 tmp_addflag=' -i_dynamic -nofor_main' ;;
13072 ifc* | ifort*) # Intel Fortran compiler
13073 tmp_addflag=' -nofor_main' ;;
13074 lf95*) # Lahey Fortran 8.1
13075 whole_archive_flag_spec_FC=
13076 tmp_sharedflag='--shared' ;;
13077 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13078 tmp_sharedflag='-qmkshrobj'
13079 tmp_addflag= ;;
13080 nvcc*) # Cuda Compiler Driver 2.2
13081 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'
13082 compiler_needs_object_FC=yes
13084 esac
13085 case `$CC -V 2>&1 | sed 5q` in
13086 *Sun\ C*) # Sun C 5.9
13087 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'
13088 compiler_needs_object_FC=yes
13089 tmp_sharedflag='-G' ;;
13090 *Sun\ F*) # Sun Fortran 8.3
13091 tmp_sharedflag='-G' ;;
13092 esac
13093 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13095 if test "x$supports_anon_versioning" = xyes; then
13096 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
13097 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13098 echo "local: *; };" >> $output_objdir/$libname.ver~
13099 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13102 case $cc_basename in
13103 xlf* | bgf* | bgxlf* | mpixlf*)
13104 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13105 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
13106 hardcode_libdir_flag_spec_FC=
13107 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
13108 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13109 if test "x$supports_anon_versioning" = xyes; then
13110 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
13111 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13112 echo "local: *; };" >> $output_objdir/$libname.ver~
13113 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13116 esac
13117 else
13118 ld_shlibs_FC=no
13122 netbsd*)
13123 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13124 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13125 wlarc=
13126 else
13127 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13128 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13132 solaris*)
13133 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13134 ld_shlibs_FC=no
13135 cat <<_LT_EOF 1>&2
13137 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13138 *** create shared libraries on Solaris systems. Therefore, libtool
13139 *** is disabling shared libraries support. We urge you to upgrade GNU
13140 *** binutils to release 2.9.1 or newer. Another option is to modify
13141 *** your PATH or compiler configuration so that the native linker is
13142 *** used, and then restart.
13144 _LT_EOF
13145 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13146 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13147 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13148 else
13149 ld_shlibs_FC=no
13153 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13154 case `$LD -v 2>&1` in
13155 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13156 ld_shlibs_FC=no
13157 cat <<_LT_EOF 1>&2
13159 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13160 *** reliably create shared libraries on SCO systems. Therefore, libtool
13161 *** is disabling shared libraries support. We urge you to upgrade GNU
13162 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13163 *** your PATH or compiler configuration so that the native linker is
13164 *** used, and then restart.
13166 _LT_EOF
13169 # For security reasons, it is highly recommended that you always
13170 # use absolute paths for naming shared libraries, and exclude the
13171 # DT_RUNPATH tag from executables and libraries. But doing so
13172 # requires that you compile everything twice, which is a pain.
13173 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13174 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13175 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13176 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13177 else
13178 ld_shlibs_FC=no
13181 esac
13184 sunos4*)
13185 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13186 wlarc=
13187 hardcode_direct_FC=yes
13188 hardcode_shlibpath_var_FC=no
13192 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13193 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13194 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13195 else
13196 ld_shlibs_FC=no
13199 esac
13201 if test "$ld_shlibs_FC" = no; then
13202 runpath_var=
13203 hardcode_libdir_flag_spec_FC=
13204 export_dynamic_flag_spec_FC=
13205 whole_archive_flag_spec_FC=
13207 else
13208 # PORTME fill in a description of your system's linker (not GNU ld)
13209 case $host_os in
13210 aix3*)
13211 allow_undefined_flag_FC=unsupported
13212 always_export_symbols_FC=yes
13213 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'
13214 # Note: this linker hardcodes the directories in LIBPATH if there
13215 # are no directories specified by -L.
13216 hardcode_minus_L_FC=yes
13217 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13218 # Neither direct hardcoding nor static linking is supported with a
13219 # broken collect2.
13220 hardcode_direct_FC=unsupported
13224 aix[4-9]*)
13225 if test "$host_cpu" = ia64; then
13226 # On IA64, the linker does run time linking by default, so we don't
13227 # have to do anything special.
13228 aix_use_runtimelinking=no
13229 exp_sym_flag='-Bexport'
13230 no_entry_flag=""
13231 else
13232 # If we're using GNU nm, then we don't want the "-C" option.
13233 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13234 # Also, AIX nm treats weak defined symbols like other global
13235 # defined symbols, whereas GNU nm marks them as "W".
13236 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13237 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'
13238 else
13239 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'
13241 aix_use_runtimelinking=no
13243 # Test if we are trying to use run time linking or normal
13244 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13245 # need to do runtime linking.
13246 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13247 for ld_flag in $LDFLAGS; do
13248 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13249 aix_use_runtimelinking=yes
13250 break
13252 done
13254 esac
13256 exp_sym_flag='-bexport'
13257 no_entry_flag='-bnoentry'
13260 # When large executables or shared objects are built, AIX ld can
13261 # have problems creating the table of contents. If linking a library
13262 # or program results in "error TOC overflow" add -mminimal-toc to
13263 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13264 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13266 archive_cmds_FC=''
13267 hardcode_direct_FC=yes
13268 hardcode_direct_absolute_FC=yes
13269 hardcode_libdir_separator_FC=':'
13270 link_all_deplibs_FC=yes
13271 file_list_spec_FC='${wl}-f,'
13273 if test "$GCC" = yes; then
13274 case $host_os in aix4.[012]|aix4.[012].*)
13275 # We only want to do this on AIX 4.2 and lower, the check
13276 # below for broken collect2 doesn't work under 4.3+
13277 collect2name=`${CC} -print-prog-name=collect2`
13278 if test -f "$collect2name" &&
13279 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13280 then
13281 # We have reworked collect2
13283 else
13284 # We have old collect2
13285 hardcode_direct_FC=unsupported
13286 # It fails to find uninstalled libraries when the uninstalled
13287 # path is not listed in the libpath. Setting hardcode_minus_L
13288 # to unsupported forces relinking
13289 hardcode_minus_L_FC=yes
13290 hardcode_libdir_flag_spec_FC='-L$libdir'
13291 hardcode_libdir_separator_FC=
13294 esac
13295 shared_flag='-shared'
13296 if test "$aix_use_runtimelinking" = yes; then
13297 shared_flag="$shared_flag "'${wl}-G'
13299 else
13300 # not using gcc
13301 if test "$host_cpu" = ia64; then
13302 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13303 # chokes on -Wl,-G. The following line is correct:
13304 shared_flag='-G'
13305 else
13306 if test "$aix_use_runtimelinking" = yes; then
13307 shared_flag='${wl}-G'
13308 else
13309 shared_flag='${wl}-bM:SRE'
13314 export_dynamic_flag_spec_FC='${wl}-bexpall'
13315 # It seems that -bexpall does not export symbols beginning with
13316 # underscore (_), so it is better to generate a list of symbols to export.
13317 always_export_symbols_FC=yes
13318 if test "$aix_use_runtimelinking" = yes; then
13319 # Warning - without using the other runtime loading flags (-brtl),
13320 # -berok will link without error, but may produce a broken library.
13321 allow_undefined_flag_FC='-berok'
13322 # Determine the default libpath from the value encoded in an
13323 # empty executable.
13324 cat > conftest.$ac_ext <<_ACEOF
13325 program main
13328 _ACEOF
13329 if ac_fn_fc_try_link "$LINENO"; then :
13331 lt_aix_libpath_sed='
13332 /Import File Strings/,/^$/ {
13333 /^0/ {
13334 s/^0 *\(.*\)$/\1/
13338 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13339 # Check for a 64-bit object if we didn't find anything.
13340 if test -z "$aix_libpath"; then
13341 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13344 rm -f core conftest.err conftest.$ac_objext \
13345 conftest$ac_exeext conftest.$ac_ext
13346 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13348 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13349 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"
13350 else
13351 if test "$host_cpu" = ia64; then
13352 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
13353 allow_undefined_flag_FC="-z nodefs"
13354 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"
13355 else
13356 # Determine the default libpath from the value encoded in an
13357 # empty executable.
13358 cat > conftest.$ac_ext <<_ACEOF
13359 program main
13362 _ACEOF
13363 if ac_fn_fc_try_link "$LINENO"; then :
13365 lt_aix_libpath_sed='
13366 /Import File Strings/,/^$/ {
13367 /^0/ {
13368 s/^0 *\(.*\)$/\1/
13372 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13373 # Check for a 64-bit object if we didn't find anything.
13374 if test -z "$aix_libpath"; then
13375 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13378 rm -f core conftest.err conftest.$ac_objext \
13379 conftest$ac_exeext conftest.$ac_ext
13380 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13382 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13383 # Warning - without using the other run time loading flags,
13384 # -berok will link without error, but may produce a broken library.
13385 no_undefined_flag_FC=' ${wl}-bernotok'
13386 allow_undefined_flag_FC=' ${wl}-berok'
13387 if test "$with_gnu_ld" = yes; then
13388 # We only use this code for GNU lds that support --whole-archive.
13389 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13390 else
13391 # Exported symbols can be pulled into shared objects from archives
13392 whole_archive_flag_spec_FC='$convenience'
13394 archive_cmds_need_lc_FC=yes
13395 # This is similar to how AIX traditionally builds its shared libraries.
13396 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'
13401 amigaos*)
13402 case $host_cpu in
13403 powerpc)
13404 # see comment about AmigaOS4 .so support
13405 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13406 archive_expsym_cmds_FC=''
13408 m68k)
13409 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)'
13410 hardcode_libdir_flag_spec_FC='-L$libdir'
13411 hardcode_minus_L_FC=yes
13413 esac
13416 bsdi[45]*)
13417 export_dynamic_flag_spec_FC=-rdynamic
13420 cygwin* | mingw* | pw32* | cegcc*)
13421 # When not using gcc, we currently assume that we are using
13422 # Microsoft Visual C++.
13423 # hardcode_libdir_flag_spec is actually meaningless, as there is
13424 # no search path for DLLs.
13425 hardcode_libdir_flag_spec_FC=' '
13426 allow_undefined_flag_FC=unsupported
13427 # Tell ltmain to make .lib files, not .a files.
13428 libext=lib
13429 # Tell ltmain to make .dll files, not .so files.
13430 shrext_cmds=".dll"
13431 # FIXME: Setting linknames here is a bad hack.
13432 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13433 # The linker will automatically build a .lib file if we build a DLL.
13434 old_archive_from_new_cmds_FC='true'
13435 # FIXME: Should let the user specify the lib program.
13436 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
13437 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
13438 enable_shared_with_static_runtimes_FC=yes
13441 darwin* | rhapsody*)
13444 archive_cmds_need_lc_FC=no
13445 hardcode_direct_FC=no
13446 hardcode_automatic_FC=yes
13447 hardcode_shlibpath_var_FC=unsupported
13448 if test "$lt_cv_ld_force_load" = "yes"; then
13449 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\"`'
13450 else
13451 whole_archive_flag_spec_FC=''
13453 link_all_deplibs_FC=yes
13454 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
13455 case $cc_basename in
13456 ifort*) _lt_dar_can_shared=yes ;;
13457 *) _lt_dar_can_shared=$GCC ;;
13458 esac
13459 if test "$_lt_dar_can_shared" = "yes"; then
13460 output_verbose_link_cmd=func_echo_all
13461 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}"
13462 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13463 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}"
13464 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}"
13466 else
13467 ld_shlibs_FC=no
13472 dgux*)
13473 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13474 hardcode_libdir_flag_spec_FC='-L$libdir'
13475 hardcode_shlibpath_var_FC=no
13478 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13479 # support. Future versions do this automatically, but an explicit c++rt0.o
13480 # does not break anything, and helps significantly (at the cost of a little
13481 # extra space).
13482 freebsd2.2*)
13483 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13484 hardcode_libdir_flag_spec_FC='-R$libdir'
13485 hardcode_direct_FC=yes
13486 hardcode_shlibpath_var_FC=no
13489 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13490 freebsd2.*)
13491 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13492 hardcode_direct_FC=yes
13493 hardcode_minus_L_FC=yes
13494 hardcode_shlibpath_var_FC=no
13497 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13498 freebsd* | dragonfly*)
13499 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13500 hardcode_libdir_flag_spec_FC='-R$libdir'
13501 hardcode_direct_FC=yes
13502 hardcode_shlibpath_var_FC=no
13505 hpux9*)
13506 if test "$GCC" = yes; then
13507 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'
13508 else
13509 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'
13511 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13512 hardcode_libdir_separator_FC=:
13513 hardcode_direct_FC=yes
13515 # hardcode_minus_L: Not really in the search PATH,
13516 # but as the default location of the library.
13517 hardcode_minus_L_FC=yes
13518 export_dynamic_flag_spec_FC='${wl}-E'
13521 hpux10*)
13522 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13523 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13524 else
13525 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13527 if test "$with_gnu_ld" = no; then
13528 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13529 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
13530 hardcode_libdir_separator_FC=:
13531 hardcode_direct_FC=yes
13532 hardcode_direct_absolute_FC=yes
13533 export_dynamic_flag_spec_FC='${wl}-E'
13534 # hardcode_minus_L: Not really in the search PATH,
13535 # but as the default location of the library.
13536 hardcode_minus_L_FC=yes
13540 hpux11*)
13541 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13542 case $host_cpu in
13543 hppa*64*)
13544 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13546 ia64*)
13547 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13550 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13552 esac
13553 else
13554 case $host_cpu in
13555 hppa*64*)
13556 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13558 ia64*)
13559 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13562 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13564 esac
13566 if test "$with_gnu_ld" = no; then
13567 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13568 hardcode_libdir_separator_FC=:
13570 case $host_cpu in
13571 hppa*64*|ia64*)
13572 hardcode_direct_FC=no
13573 hardcode_shlibpath_var_FC=no
13576 hardcode_direct_FC=yes
13577 hardcode_direct_absolute_FC=yes
13578 export_dynamic_flag_spec_FC='${wl}-E'
13580 # hardcode_minus_L: Not really in the search PATH,
13581 # but as the default location of the library.
13582 hardcode_minus_L_FC=yes
13584 esac
13588 irix5* | irix6* | nonstopux*)
13589 if test "$GCC" = yes; then
13590 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'
13591 # Try to use the -exported_symbol ld option, if it does not
13592 # work, assume that -exports_file does not work either and
13593 # implicitly export all symbols.
13594 save_LDFLAGS="$LDFLAGS"
13595 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13596 cat > conftest.$ac_ext <<_ACEOF
13597 int foo(void) {}
13598 _ACEOF
13599 if ac_fn_fc_try_link "$LINENO"; then :
13600 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'
13603 rm -f core conftest.err conftest.$ac_objext \
13604 conftest$ac_exeext conftest.$ac_ext
13605 LDFLAGS="$save_LDFLAGS"
13606 else
13607 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'
13608 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'
13610 archive_cmds_need_lc_FC='no'
13611 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13612 hardcode_libdir_separator_FC=:
13613 inherit_rpath_FC=yes
13614 link_all_deplibs_FC=yes
13617 netbsd*)
13618 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13619 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13620 else
13621 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13623 hardcode_libdir_flag_spec_FC='-R$libdir'
13624 hardcode_direct_FC=yes
13625 hardcode_shlibpath_var_FC=no
13628 newsos6)
13629 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13630 hardcode_direct_FC=yes
13631 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13632 hardcode_libdir_separator_FC=:
13633 hardcode_shlibpath_var_FC=no
13636 *nto* | *qnx*)
13639 openbsd*)
13640 if test -f /usr/libexec/ld.so; then
13641 hardcode_direct_FC=yes
13642 hardcode_shlibpath_var_FC=no
13643 hardcode_direct_absolute_FC=yes
13644 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13645 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13646 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13647 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13648 export_dynamic_flag_spec_FC='${wl}-E'
13649 else
13650 case $host_os in
13651 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13652 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13653 hardcode_libdir_flag_spec_FC='-R$libdir'
13656 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13657 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13659 esac
13661 else
13662 ld_shlibs_FC=no
13666 os2*)
13667 hardcode_libdir_flag_spec_FC='-L$libdir'
13668 hardcode_minus_L_FC=yes
13669 allow_undefined_flag_FC=unsupported
13670 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'
13671 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13674 osf3*)
13675 if test "$GCC" = yes; then
13676 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13677 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'
13678 else
13679 allow_undefined_flag_FC=' -expect_unresolved \*'
13680 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'
13682 archive_cmds_need_lc_FC='no'
13683 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13684 hardcode_libdir_separator_FC=:
13687 osf4* | osf5*) # as osf3* with the addition of -msym flag
13688 if test "$GCC" = yes; then
13689 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13690 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'
13691 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13692 else
13693 allow_undefined_flag_FC=' -expect_unresolved \*'
13694 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'
13695 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~
13696 $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'
13698 # Both c and cxx compiler support -rpath directly
13699 hardcode_libdir_flag_spec_FC='-rpath $libdir'
13701 archive_cmds_need_lc_FC='no'
13702 hardcode_libdir_separator_FC=:
13705 solaris*)
13706 no_undefined_flag_FC=' -z defs'
13707 if test "$GCC" = yes; then
13708 wlarc='${wl}'
13709 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13710 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13711 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13712 else
13713 case `$CC -V 2>&1` in
13714 *"Compilers 5.0"*)
13715 wlarc=''
13716 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13717 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13718 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13721 wlarc='${wl}'
13722 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13723 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13724 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13726 esac
13728 hardcode_libdir_flag_spec_FC='-R$libdir'
13729 hardcode_shlibpath_var_FC=no
13730 case $host_os in
13731 solaris2.[0-5] | solaris2.[0-5].*) ;;
13733 # The compiler driver will combine and reorder linker options,
13734 # but understands `-z linker_flag'. GCC discards it without `$wl',
13735 # but is careful enough not to reorder.
13736 # Supported since Solaris 2.6 (maybe 2.5.1?)
13737 if test "$GCC" = yes; then
13738 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13739 else
13740 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
13743 esac
13744 link_all_deplibs_FC=yes
13747 sunos4*)
13748 if test "x$host_vendor" = xsequent; then
13749 # Use $CC to link under sequent, because it throws in some extra .o
13750 # files that make .init and .fini sections work.
13751 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13752 else
13753 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13755 hardcode_libdir_flag_spec_FC='-L$libdir'
13756 hardcode_direct_FC=yes
13757 hardcode_minus_L_FC=yes
13758 hardcode_shlibpath_var_FC=no
13761 sysv4)
13762 case $host_vendor in
13763 sni)
13764 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13765 hardcode_direct_FC=yes # is this really true???
13767 siemens)
13768 ## LD is ld it makes a PLAMLIB
13769 ## CC just makes a GrossModule.
13770 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13771 reload_cmds_FC='$CC -r -o $output$reload_objs'
13772 hardcode_direct_FC=no
13774 motorola)
13775 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13776 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
13778 esac
13779 runpath_var='LD_RUN_PATH'
13780 hardcode_shlibpath_var_FC=no
13783 sysv4.3*)
13784 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13785 hardcode_shlibpath_var_FC=no
13786 export_dynamic_flag_spec_FC='-Bexport'
13789 sysv4*MP*)
13790 if test -d /usr/nec; then
13791 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13792 hardcode_shlibpath_var_FC=no
13793 runpath_var=LD_RUN_PATH
13794 hardcode_runpath_var=yes
13795 ld_shlibs_FC=yes
13799 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13800 no_undefined_flag_FC='${wl}-z,text'
13801 archive_cmds_need_lc_FC=no
13802 hardcode_shlibpath_var_FC=no
13803 runpath_var='LD_RUN_PATH'
13805 if test "$GCC" = yes; then
13806 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13807 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13808 else
13809 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13810 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13814 sysv5* | sco3.2v5* | sco5v6*)
13815 # Note: We can NOT use -z defs as we might desire, because we do not
13816 # link with -lc, and that would cause any symbols used from libc to
13817 # always be unresolved, which means just about no library would
13818 # ever link correctly. If we're not using GNU ld we use -z text
13819 # though, which does catch some bad symbols but isn't as heavy-handed
13820 # as -z defs.
13821 no_undefined_flag_FC='${wl}-z,text'
13822 allow_undefined_flag_FC='${wl}-z,nodefs'
13823 archive_cmds_need_lc_FC=no
13824 hardcode_shlibpath_var_FC=no
13825 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
13826 hardcode_libdir_separator_FC=':'
13827 link_all_deplibs_FC=yes
13828 export_dynamic_flag_spec_FC='${wl}-Bexport'
13829 runpath_var='LD_RUN_PATH'
13831 if test "$GCC" = yes; then
13832 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13833 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13834 else
13835 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13836 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13840 uts4*)
13841 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13842 hardcode_libdir_flag_spec_FC='-L$libdir'
13843 hardcode_shlibpath_var_FC=no
13847 ld_shlibs_FC=no
13849 esac
13851 if test x$host_vendor = xsni; then
13852 case $host in
13853 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13854 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
13856 esac
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
13861 $as_echo "$ld_shlibs_FC" >&6; }
13862 test "$ld_shlibs_FC" = no && can_build_shared=no
13864 with_gnu_ld_FC=$with_gnu_ld
13872 # Do we need to explicitly link libc?
13874 case "x$archive_cmds_need_lc_FC" in
13875 x|xyes)
13876 # Assume -lc should be added
13877 archive_cmds_need_lc_FC=yes
13879 if test "$enable_shared" = yes && test "$GCC" = yes; then
13880 case $archive_cmds_FC in
13881 *'~'*)
13882 # FIXME: we may have to deal with multi-command sequences.
13884 '$CC '*)
13885 # Test whether the compiler implicitly links with -lc since on some
13886 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13887 # to ld, don't add -lc before -lgcc.
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13889 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13890 if ${lt_cv_archive_cmds_need_lc_FC+:} false; then :
13891 $as_echo_n "(cached) " >&6
13892 else
13893 $RM conftest*
13894 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13896 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13897 (eval $ac_compile) 2>&5
13898 ac_status=$?
13899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13900 test $ac_status = 0; } 2>conftest.err; then
13901 soname=conftest
13902 lib=conftest
13903 libobjs=conftest.$ac_objext
13904 deplibs=
13905 wl=$lt_prog_compiler_wl_FC
13906 pic_flag=$lt_prog_compiler_pic_FC
13907 compiler_flags=-v
13908 linker_flags=-v
13909 verstring=
13910 output_objdir=.
13911 libname=conftest
13912 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
13913 allow_undefined_flag_FC=
13914 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13915 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13916 ac_status=$?
13917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13918 test $ac_status = 0; }
13919 then
13920 lt_cv_archive_cmds_need_lc_FC=no
13921 else
13922 lt_cv_archive_cmds_need_lc_FC=yes
13924 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
13925 else
13926 cat conftest.err 1>&5
13928 $RM conftest*
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
13932 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
13933 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
13935 esac
13938 esac
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14004 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14006 library_names_spec=
14007 libname_spec='lib$name'
14008 soname_spec=
14009 shrext_cmds=".so"
14010 postinstall_cmds=
14011 postuninstall_cmds=
14012 finish_cmds=
14013 finish_eval=
14014 shlibpath_var=
14015 shlibpath_overrides_runpath=unknown
14016 version_type=none
14017 dynamic_linker="$host_os ld.so"
14018 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14019 need_lib_prefix=unknown
14020 hardcode_into_libs=no
14022 # when you set need_version to no, make sure it does not cause -set_version
14023 # flags to be left without arguments
14024 need_version=unknown
14026 case $host_os in
14027 aix3*)
14028 version_type=linux
14029 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14030 shlibpath_var=LIBPATH
14032 # AIX 3 has no versioning support, so we append a major version to the name.
14033 soname_spec='${libname}${release}${shared_ext}$major'
14036 aix[4-9]*)
14037 version_type=linux
14038 need_lib_prefix=no
14039 need_version=no
14040 hardcode_into_libs=yes
14041 if test "$host_cpu" = ia64; then
14042 # AIX 5 supports IA64
14043 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14044 shlibpath_var=LD_LIBRARY_PATH
14045 else
14046 # With GCC up to 2.95.x, collect2 would create an import file
14047 # for dependence libraries. The import file would start with
14048 # the line `#! .'. This would cause the generated library to
14049 # depend on `.', always an invalid library. This was fixed in
14050 # development snapshots of GCC prior to 3.0.
14051 case $host_os in
14052 aix4 | aix4.[01] | aix4.[01].*)
14053 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14054 echo ' yes '
14055 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14057 else
14058 can_build_shared=no
14061 esac
14062 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14063 # soname into executable. Probably we can add versioning support to
14064 # collect2, so additional links can be useful in future.
14065 if test "$aix_use_runtimelinking" = yes; then
14066 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14067 # instead of lib<name>.a to let people know that these are not
14068 # typical AIX shared libraries.
14069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14070 else
14071 # We preserve .a as extension for shared libraries through AIX4.2
14072 # and later when we are not doing run time linking.
14073 library_names_spec='${libname}${release}.a $libname.a'
14074 soname_spec='${libname}${release}${shared_ext}$major'
14076 shlibpath_var=LIBPATH
14080 amigaos*)
14081 case $host_cpu in
14082 powerpc)
14083 # Since July 2007 AmigaOS4 officially supports .so libraries.
14084 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14087 m68k)
14088 library_names_spec='$libname.ixlibrary $libname.a'
14089 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14090 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'
14092 esac
14095 beos*)
14096 library_names_spec='${libname}${shared_ext}'
14097 dynamic_linker="$host_os ld.so"
14098 shlibpath_var=LIBRARY_PATH
14101 bsdi[45]*)
14102 version_type=linux
14103 need_version=no
14104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14105 soname_spec='${libname}${release}${shared_ext}$major'
14106 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14107 shlibpath_var=LD_LIBRARY_PATH
14108 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14109 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14110 # the default ld.so.conf also contains /usr/contrib/lib and
14111 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14112 # libtool to hard-code these into programs
14115 cygwin* | mingw* | pw32* | cegcc*)
14116 version_type=windows
14117 shrext_cmds=".dll"
14118 need_version=no
14119 need_lib_prefix=no
14121 case $GCC,$host_os in
14122 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14123 library_names_spec='$libname.dll.a'
14124 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14125 postinstall_cmds='base_file=`basename \${file}`~
14126 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14127 dldir=$destdir/`dirname \$dlpath`~
14128 test -d \$dldir || mkdir -p \$dldir~
14129 $install_prog $dir/$dlname \$dldir/$dlname~
14130 chmod a+x \$dldir/$dlname~
14131 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14132 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14134 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14135 dlpath=$dir/\$dldll~
14136 $RM \$dlpath'
14137 shlibpath_overrides_runpath=yes
14139 case $host_os in
14140 cygwin*)
14141 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14142 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14145 mingw* | cegcc*)
14146 # MinGW DLLs use traditional 'lib' prefix
14147 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14149 pw32*)
14150 # pw32 DLLs use 'pw' prefix rather than 'lib'
14151 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14153 esac
14157 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14159 esac
14160 dynamic_linker='Win32 ld.exe'
14161 # FIXME: first we should search . and the directory the executable is in
14162 shlibpath_var=PATH
14165 darwin* | rhapsody*)
14166 dynamic_linker="$host_os dyld"
14167 version_type=darwin
14168 need_lib_prefix=no
14169 need_version=no
14170 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14171 soname_spec='${libname}${release}${major}$shared_ext'
14172 shlibpath_overrides_runpath=yes
14173 shlibpath_var=DYLD_LIBRARY_PATH
14174 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14176 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14179 dgux*)
14180 version_type=linux
14181 need_lib_prefix=no
14182 need_version=no
14183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14184 soname_spec='${libname}${release}${shared_ext}$major'
14185 shlibpath_var=LD_LIBRARY_PATH
14188 freebsd* | dragonfly*)
14189 # DragonFly does not have aout. When/if they implement a new
14190 # versioning mechanism, adjust this.
14191 if test -x /usr/bin/objformat; then
14192 objformat=`/usr/bin/objformat`
14193 else
14194 case $host_os in
14195 freebsd[23].*) objformat=aout ;;
14196 *) objformat=elf ;;
14197 esac
14199 version_type=freebsd-$objformat
14200 case $version_type in
14201 freebsd-elf*)
14202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14203 need_version=no
14204 need_lib_prefix=no
14206 freebsd-*)
14207 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14208 need_version=yes
14210 esac
14211 shlibpath_var=LD_LIBRARY_PATH
14212 case $host_os in
14213 freebsd2.*)
14214 shlibpath_overrides_runpath=yes
14216 freebsd3.[01]* | freebsdelf3.[01]*)
14217 shlibpath_overrides_runpath=yes
14218 hardcode_into_libs=yes
14220 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14221 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14222 shlibpath_overrides_runpath=no
14223 hardcode_into_libs=yes
14225 *) # from 4.6 on, and DragonFly
14226 shlibpath_overrides_runpath=yes
14227 hardcode_into_libs=yes
14229 esac
14232 gnu*)
14233 version_type=linux
14234 need_lib_prefix=no
14235 need_version=no
14236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14237 soname_spec='${libname}${release}${shared_ext}$major'
14238 shlibpath_var=LD_LIBRARY_PATH
14239 hardcode_into_libs=yes
14242 haiku*)
14243 version_type=linux
14244 need_lib_prefix=no
14245 need_version=no
14246 dynamic_linker="$host_os runtime_loader"
14247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14248 soname_spec='${libname}${release}${shared_ext}$major'
14249 shlibpath_var=LIBRARY_PATH
14250 shlibpath_overrides_runpath=yes
14251 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14252 hardcode_into_libs=yes
14255 hpux9* | hpux10* | hpux11*)
14256 # Give a soname corresponding to the major version so that dld.sl refuses to
14257 # link against other versions.
14258 version_type=sunos
14259 need_lib_prefix=no
14260 need_version=no
14261 case $host_cpu in
14262 ia64*)
14263 shrext_cmds='.so'
14264 hardcode_into_libs=yes
14265 dynamic_linker="$host_os dld.so"
14266 shlibpath_var=LD_LIBRARY_PATH
14267 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14269 soname_spec='${libname}${release}${shared_ext}$major'
14270 if test "X$HPUX_IA64_MODE" = X32; then
14271 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14272 else
14273 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14275 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14277 hppa*64*)
14278 shrext_cmds='.sl'
14279 hardcode_into_libs=yes
14280 dynamic_linker="$host_os dld.sl"
14281 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14282 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14284 soname_spec='${libname}${release}${shared_ext}$major'
14285 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14286 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14289 shrext_cmds='.sl'
14290 dynamic_linker="$host_os dld.sl"
14291 shlibpath_var=SHLIB_PATH
14292 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14294 soname_spec='${libname}${release}${shared_ext}$major'
14296 esac
14297 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14298 postinstall_cmds='chmod 555 $lib'
14299 # or fails outright, so override atomically:
14300 install_override_mode=555
14303 interix[3-9]*)
14304 version_type=linux
14305 need_lib_prefix=no
14306 need_version=no
14307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14308 soname_spec='${libname}${release}${shared_ext}$major'
14309 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14310 shlibpath_var=LD_LIBRARY_PATH
14311 shlibpath_overrides_runpath=no
14312 hardcode_into_libs=yes
14315 irix5* | irix6* | nonstopux*)
14316 case $host_os in
14317 nonstopux*) version_type=nonstopux ;;
14319 if test "$lt_cv_prog_gnu_ld" = yes; then
14320 version_type=linux
14321 else
14322 version_type=irix
14323 fi ;;
14324 esac
14325 need_lib_prefix=no
14326 need_version=no
14327 soname_spec='${libname}${release}${shared_ext}$major'
14328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14329 case $host_os in
14330 irix5* | nonstopux*)
14331 libsuff= shlibsuff=
14334 case $LD in # libtool.m4 will add one of these switches to LD
14335 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14336 libsuff= shlibsuff= libmagic=32-bit;;
14337 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14338 libsuff=32 shlibsuff=N32 libmagic=N32;;
14339 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14340 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14341 *) libsuff= shlibsuff= libmagic=never-match;;
14342 esac
14344 esac
14345 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14346 shlibpath_overrides_runpath=no
14347 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14348 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14349 hardcode_into_libs=yes
14352 # No shared lib support for Linux oldld, aout, or coff.
14353 linux*oldld* | linux*aout* | linux*coff*)
14354 dynamic_linker=no
14357 # This must be Linux ELF.
14359 # uclinux* changes (here and below) have been submitted to the libtool
14360 # project, but have not yet been accepted: they are GCC-local changes
14361 # for the time being. (See
14362 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
14363 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
14364 version_type=linux
14365 need_lib_prefix=no
14366 need_version=no
14367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14368 soname_spec='${libname}${release}${shared_ext}$major'
14369 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14370 shlibpath_var=LD_LIBRARY_PATH
14371 shlibpath_overrides_runpath=no
14373 # Some binutils ld are patched to set DT_RUNPATH
14374 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14375 $as_echo_n "(cached) " >&6
14376 else
14377 lt_cv_shlibpath_overrides_runpath=no
14378 save_LDFLAGS=$LDFLAGS
14379 save_libdir=$libdir
14380 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
14381 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
14382 cat > conftest.$ac_ext <<_ACEOF
14383 program main
14386 _ACEOF
14387 if ac_fn_fc_try_link "$LINENO"; then :
14388 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14389 lt_cv_shlibpath_overrides_runpath=yes
14392 rm -f core conftest.err conftest.$ac_objext \
14393 conftest$ac_exeext conftest.$ac_ext
14394 LDFLAGS=$save_LDFLAGS
14395 libdir=$save_libdir
14399 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14401 # This implies no fast_install, which is unacceptable.
14402 # Some rework will be needed to allow for fast_install
14403 # before this can be enabled.
14404 hardcode_into_libs=yes
14406 # Append ld.so.conf contents to the search path
14407 if test -f /etc/ld.so.conf; then
14408 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' ' '`
14409 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14412 # We used to test for /lib/ld.so.1 and disable shared libraries on
14413 # powerpc, because MkLinux only supported shared libraries with the
14414 # GNU dynamic linker. Since this was broken with cross compilers,
14415 # most powerpc-linux boxes support dynamic linking these days and
14416 # people can always --disable-shared, the test was removed, and we
14417 # assume the GNU/Linux dynamic linker is in use.
14418 dynamic_linker='GNU/Linux ld.so'
14421 netbsd*)
14422 version_type=sunos
14423 need_lib_prefix=no
14424 need_version=no
14425 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14427 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14428 dynamic_linker='NetBSD (a.out) ld.so'
14429 else
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 dynamic_linker='NetBSD ld.elf_so'
14434 shlibpath_var=LD_LIBRARY_PATH
14435 shlibpath_overrides_runpath=yes
14436 hardcode_into_libs=yes
14439 newsos6)
14440 version_type=linux
14441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14442 shlibpath_var=LD_LIBRARY_PATH
14443 shlibpath_overrides_runpath=yes
14446 *nto* | *qnx*)
14447 version_type=qnx
14448 need_lib_prefix=no
14449 need_version=no
14450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14451 soname_spec='${libname}${release}${shared_ext}$major'
14452 shlibpath_var=LD_LIBRARY_PATH
14453 shlibpath_overrides_runpath=no
14454 hardcode_into_libs=yes
14455 dynamic_linker='ldqnx.so'
14458 openbsd*)
14459 version_type=sunos
14460 sys_lib_dlsearch_path_spec="/usr/lib"
14461 need_lib_prefix=no
14462 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14463 case $host_os in
14464 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14465 *) need_version=no ;;
14466 esac
14467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14468 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14469 shlibpath_var=LD_LIBRARY_PATH
14470 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14471 case $host_os in
14472 openbsd2.[89] | openbsd2.[89].*)
14473 shlibpath_overrides_runpath=no
14476 shlibpath_overrides_runpath=yes
14478 esac
14479 else
14480 shlibpath_overrides_runpath=yes
14484 os2*)
14485 libname_spec='$name'
14486 shrext_cmds=".dll"
14487 need_lib_prefix=no
14488 library_names_spec='$libname${shared_ext} $libname.a'
14489 dynamic_linker='OS/2 ld.exe'
14490 shlibpath_var=LIBPATH
14493 osf3* | osf4* | osf5*)
14494 version_type=osf
14495 need_lib_prefix=no
14496 need_version=no
14497 soname_spec='${libname}${release}${shared_ext}$major'
14498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14499 shlibpath_var=LD_LIBRARY_PATH
14500 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14501 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14504 rdos*)
14505 dynamic_linker=no
14508 solaris*)
14509 version_type=linux
14510 need_lib_prefix=no
14511 need_version=no
14512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14513 soname_spec='${libname}${release}${shared_ext}$major'
14514 shlibpath_var=LD_LIBRARY_PATH
14515 shlibpath_overrides_runpath=yes
14516 hardcode_into_libs=yes
14517 # ldd complains unless libraries are executable
14518 postinstall_cmds='chmod +x $lib'
14521 sunos4*)
14522 version_type=sunos
14523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14524 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14525 shlibpath_var=LD_LIBRARY_PATH
14526 shlibpath_overrides_runpath=yes
14527 if test "$with_gnu_ld" = yes; then
14528 need_lib_prefix=no
14530 need_version=yes
14533 sysv4 | sysv4.3*)
14534 version_type=linux
14535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14536 soname_spec='${libname}${release}${shared_ext}$major'
14537 shlibpath_var=LD_LIBRARY_PATH
14538 case $host_vendor in
14539 sni)
14540 shlibpath_overrides_runpath=no
14541 need_lib_prefix=no
14542 runpath_var=LD_RUN_PATH
14544 siemens)
14545 need_lib_prefix=no
14547 motorola)
14548 need_lib_prefix=no
14549 need_version=no
14550 shlibpath_overrides_runpath=no
14551 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14553 esac
14556 sysv4*MP*)
14557 if test -d /usr/nec ;then
14558 version_type=linux
14559 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14560 soname_spec='$libname${shared_ext}.$major'
14561 shlibpath_var=LD_LIBRARY_PATH
14565 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14566 version_type=freebsd-elf
14567 need_lib_prefix=no
14568 need_version=no
14569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14570 soname_spec='${libname}${release}${shared_ext}$major'
14571 shlibpath_var=LD_LIBRARY_PATH
14572 shlibpath_overrides_runpath=yes
14573 hardcode_into_libs=yes
14574 if test "$with_gnu_ld" = yes; then
14575 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14576 else
14577 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14578 case $host_os in
14579 sco3.2v5*)
14580 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14582 esac
14584 sys_lib_dlsearch_path_spec='/usr/lib'
14587 tpf*)
14588 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14589 version_type=linux
14590 need_lib_prefix=no
14591 need_version=no
14592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14593 shlibpath_var=LD_LIBRARY_PATH
14594 shlibpath_overrides_runpath=no
14595 hardcode_into_libs=yes
14598 uts4*)
14599 version_type=linux
14600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14601 soname_spec='${libname}${release}${shared_ext}$major'
14602 shlibpath_var=LD_LIBRARY_PATH
14606 dynamic_linker=no
14608 esac
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14610 $as_echo "$dynamic_linker" >&6; }
14611 test "$dynamic_linker" = no && can_build_shared=no
14613 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14614 if test "$GCC" = yes; then
14615 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14618 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14619 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14621 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14622 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14663 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14664 hardcode_action_FC=
14665 if test -n "$hardcode_libdir_flag_spec_FC" ||
14666 test -n "$runpath_var_FC" ||
14667 test "X$hardcode_automatic_FC" = "Xyes" ; then
14669 # We can hardcode non-existent directories.
14670 if test "$hardcode_direct_FC" != no &&
14671 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14672 # have to relink, otherwise we might link with an installed library
14673 # when we should be linking with a yet-to-be-installed one
14674 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
14675 test "$hardcode_minus_L_FC" != no; then
14676 # Linking always hardcodes the temporary library directory.
14677 hardcode_action_FC=relink
14678 else
14679 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14680 hardcode_action_FC=immediate
14682 else
14683 # We cannot hardcode anything, or else we can only hardcode existing
14684 # directories.
14685 hardcode_action_FC=unsupported
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
14688 $as_echo "$hardcode_action_FC" >&6; }
14690 if test "$hardcode_action_FC" = relink ||
14691 test "$inherit_rpath_FC" = yes; then
14692 # Fast installation is not supported
14693 enable_fast_install=no
14694 elif test "$shlibpath_overrides_runpath" = yes ||
14695 test "$enable_shared" = no; then
14696 # Fast installation is not necessary
14697 enable_fast_install=needless
14706 fi # test -n "$compiler"
14708 GCC=$lt_save_GCC
14709 CC="$lt_save_CC"
14710 fi # test "$_lt_disable_FC" != yes
14712 ac_ext=c
14713 ac_cpp='$CPP $CPPFLAGS'
14714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14719 FCFLAGS="$FCFLAGS -Wall -L../libgfortran"
14721 # For libtool versioning info, format is CURRENT:REVISION:AGE
14722 libtool_VERSION=1:0:0
14725 # Check header files.
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14727 $as_echo_n "checking for ANSI C header files... " >&6; }
14728 if ${ac_cv_header_stdc+:} false; then :
14729 $as_echo_n "(cached) " >&6
14730 else
14731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14732 /* end confdefs.h. */
14733 #include <stdlib.h>
14734 #include <stdarg.h>
14735 #include <string.h>
14736 #include <float.h>
14739 main ()
14743 return 0;
14745 _ACEOF
14746 if ac_fn_c_try_compile "$LINENO"; then :
14747 ac_cv_header_stdc=yes
14748 else
14749 ac_cv_header_stdc=no
14751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14753 if test $ac_cv_header_stdc = yes; then
14754 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14756 /* end confdefs.h. */
14757 #include <string.h>
14759 _ACEOF
14760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14761 $EGREP "memchr" >/dev/null 2>&1; then :
14763 else
14764 ac_cv_header_stdc=no
14766 rm -f conftest*
14770 if test $ac_cv_header_stdc = yes; then
14771 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14773 /* end confdefs.h. */
14774 #include <stdlib.h>
14776 _ACEOF
14777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14778 $EGREP "free" >/dev/null 2>&1; then :
14780 else
14781 ac_cv_header_stdc=no
14783 rm -f conftest*
14787 if test $ac_cv_header_stdc = yes; then
14788 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14789 if test "$cross_compiling" = yes; then :
14791 else
14792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14793 /* end confdefs.h. */
14794 #include <ctype.h>
14795 #include <stdlib.h>
14796 #if ((' ' & 0x0FF) == 0x020)
14797 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14798 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14799 #else
14800 # define ISLOWER(c) \
14801 (('a' <= (c) && (c) <= 'i') \
14802 || ('j' <= (c) && (c) <= 'r') \
14803 || ('s' <= (c) && (c) <= 'z'))
14804 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14805 #endif
14807 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14809 main ()
14811 int i;
14812 for (i = 0; i < 256; i++)
14813 if (XOR (islower (i), ISLOWER (i))
14814 || toupper (i) != TOUPPER (i))
14815 return 2;
14816 return 0;
14818 _ACEOF
14819 if ac_fn_c_try_run "$LINENO"; then :
14821 else
14822 ac_cv_header_stdc=no
14824 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14825 conftest.$ac_objext conftest.beam conftest.$ac_ext
14830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14831 $as_echo "$ac_cv_header_stdc" >&6; }
14832 if test $ac_cv_header_stdc = yes; then
14834 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14839 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14840 if ${ac_cv_header_time+:} false; then :
14841 $as_echo_n "(cached) " >&6
14842 else
14843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14844 /* end confdefs.h. */
14845 #include <sys/types.h>
14846 #include <sys/time.h>
14847 #include <time.h>
14850 main ()
14852 if ((struct tm *) 0)
14853 return 0;
14855 return 0;
14857 _ACEOF
14858 if ac_fn_c_try_compile "$LINENO"; then :
14859 ac_cv_header_time=yes
14860 else
14861 ac_cv_header_time=no
14863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14866 $as_echo "$ac_cv_header_time" >&6; }
14867 if test $ac_cv_header_time = yes; then
14869 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
14874 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
14875 if ${gcc_cv_header_string+:} false; then :
14876 $as_echo_n "(cached) " >&6
14877 else
14878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14879 /* end confdefs.h. */
14880 #include <string.h>
14881 #include <strings.h>
14883 main ()
14887 return 0;
14889 _ACEOF
14890 if ac_fn_c_try_compile "$LINENO"; then :
14891 gcc_cv_header_string=yes
14892 else
14893 gcc_cv_header_string=no
14895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
14898 $as_echo "$gcc_cv_header_string" >&6; }
14899 if test $gcc_cv_header_string = yes; then
14901 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
14905 for ac_header in pthread.h unistd.h semaphore.h sys/loadavg.h sys/sysctl.h sys/time.h
14906 do :
14907 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14908 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14909 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14910 cat >>confdefs.h <<_ACEOF
14911 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14912 _ACEOF
14916 done
14921 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
14923 acx_cv_header_stdint=stddef.h
14924 acx_cv_header_stdint_kind="(already complete)"
14925 for i in stdint.h $inttype_headers; do
14926 unset ac_cv_type_uintptr_t
14927 unset ac_cv_type_uintmax_t
14928 unset ac_cv_type_int_least32_t
14929 unset ac_cv_type_int_fast32_t
14930 unset ac_cv_type_uint64_t
14931 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
14932 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
14933 #include <$i>
14935 if test "x$ac_cv_type_uintmax_t" = xyes; then :
14936 acx_cv_header_stdint=$i
14937 else
14938 continue
14941 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
14942 #include <$i>
14944 if test "x$ac_cv_type_uintptr_t" = xyes; then :
14946 else
14947 acx_cv_header_stdint_kind="(mostly complete)"
14950 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
14951 #include <$i>
14953 if test "x$ac_cv_type_int_least32_t" = xyes; then :
14955 else
14956 acx_cv_header_stdint_kind="(mostly complete)"
14959 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
14960 #include <$i>
14962 if test "x$ac_cv_type_int_fast32_t" = xyes; then :
14964 else
14965 acx_cv_header_stdint_kind="(mostly complete)"
14968 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
14969 #include <$i>
14971 if test "x$ac_cv_type_uint64_t" = xyes; then :
14973 else
14974 acx_cv_header_stdint_kind="(lacks uint64_t)"
14977 break
14978 done
14979 if test "$acx_cv_header_stdint" = stddef.h; then
14980 acx_cv_header_stdint_kind="(lacks uintmax_t)"
14981 for i in stdint.h $inttype_headers; do
14982 unset ac_cv_type_uintptr_t
14983 unset ac_cv_type_uint32_t
14984 unset ac_cv_type_uint64_t
14985 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
14986 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
14987 #include <$i>
14989 if test "x$ac_cv_type_uint32_t" = xyes; then :
14990 acx_cv_header_stdint=$i
14991 else
14992 continue
14995 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
14996 #include <$i>
14998 if test "x$ac_cv_type_uint64_t" = xyes; then :
15002 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
15003 #include <$i>
15005 if test "x$ac_cv_type_uintptr_t" = xyes; then :
15009 break
15010 done
15012 if test "$acx_cv_header_stdint" = stddef.h; then
15013 acx_cv_header_stdint_kind="(u_intXX_t style)"
15014 for i in sys/types.h $inttype_headers; do
15015 unset ac_cv_type_u_int32_t
15016 unset ac_cv_type_u_int64_t
15017 $as_echo_n "looking for u_intXX_t types in $i, " >&6
15018 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
15019 #include <$i>
15021 if test "x$ac_cv_type_u_int32_t" = xyes; then :
15022 acx_cv_header_stdint=$i
15023 else
15024 continue
15027 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
15028 #include <$i>
15030 if test "x$ac_cv_type_u_int64_t" = xyes; then :
15034 break
15035 done
15037 if test "$acx_cv_header_stdint" = stddef.h; then
15038 acx_cv_header_stdint_kind="(using manual detection)"
15041 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
15042 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
15043 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
15044 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
15045 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
15047 # ----------------- Summarize what we found so far
15049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
15050 $as_echo_n "checking what to include in gstdint.h... " >&6; }
15052 case `$as_basename -- gstdint.h ||
15053 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
15054 Xgstdint.h : 'X\(//\)$' \| \
15055 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
15056 $as_echo X/gstdint.h |
15057 sed '/^.*\/\([^/][^/]*\)\/*$/{
15058 s//\1/
15061 /^X\/\(\/\/\)$/{
15062 s//\1/
15065 /^X\/\(\/\).*/{
15066 s//\1/
15069 s/.*/./; q'` in
15070 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
15071 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15072 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
15073 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15074 *) ;;
15075 esac
15077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
15078 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
15080 # ----------------- done included file, check C basic types --------
15082 # Lacking an uintptr_t? Test size of void *
15083 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
15084 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
15085 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15086 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15087 # This bug is HP SR number 8606223364.
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15089 $as_echo_n "checking size of void *... " >&6; }
15090 if ${ac_cv_sizeof_void_p+:} false; then :
15091 $as_echo_n "(cached) " >&6
15092 else
15093 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15095 else
15096 if test "$ac_cv_type_void_p" = yes; then
15097 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15098 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15099 as_fn_error 77 "cannot compute sizeof (void *)
15100 See \`config.log' for more details" "$LINENO" 5; }
15101 else
15102 ac_cv_sizeof_void_p=0
15107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15108 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15112 cat >>confdefs.h <<_ACEOF
15113 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15114 _ACEOF
15117 esac
15119 # Lacking an uint64_t? Test size of long
15120 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
15121 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
15122 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15123 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15124 # This bug is HP SR number 8606223364.
15125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
15126 $as_echo_n "checking size of long... " >&6; }
15127 if ${ac_cv_sizeof_long+:} false; then :
15128 $as_echo_n "(cached) " >&6
15129 else
15130 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
15132 else
15133 if test "$ac_cv_type_long" = yes; then
15134 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15135 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15136 as_fn_error 77 "cannot compute sizeof (long)
15137 See \`config.log' for more details" "$LINENO" 5; }
15138 else
15139 ac_cv_sizeof_long=0
15144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
15145 $as_echo "$ac_cv_sizeof_long" >&6; }
15149 cat >>confdefs.h <<_ACEOF
15150 #define SIZEOF_LONG $ac_cv_sizeof_long
15151 _ACEOF
15154 esac
15156 if test $acx_cv_header_stdint = stddef.h; then
15157 # Lacking a good header? Test size of everything and deduce all types.
15158 # The cast to long int works around a bug in the HP C Compiler
15159 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15160 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15161 # This bug is HP SR number 8606223364.
15162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
15163 $as_echo_n "checking size of int... " >&6; }
15164 if ${ac_cv_sizeof_int+:} false; then :
15165 $as_echo_n "(cached) " >&6
15166 else
15167 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
15169 else
15170 if test "$ac_cv_type_int" = yes; then
15171 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15172 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15173 as_fn_error 77 "cannot compute sizeof (int)
15174 See \`config.log' for more details" "$LINENO" 5; }
15175 else
15176 ac_cv_sizeof_int=0
15181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
15182 $as_echo "$ac_cv_sizeof_int" >&6; }
15186 cat >>confdefs.h <<_ACEOF
15187 #define SIZEOF_INT $ac_cv_sizeof_int
15188 _ACEOF
15191 # The cast to long int works around a bug in the HP C Compiler
15192 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15193 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15194 # This bug is HP SR number 8606223364.
15195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
15196 $as_echo_n "checking size of short... " >&6; }
15197 if ${ac_cv_sizeof_short+:} false; then :
15198 $as_echo_n "(cached) " >&6
15199 else
15200 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
15202 else
15203 if test "$ac_cv_type_short" = yes; then
15204 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15205 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15206 as_fn_error 77 "cannot compute sizeof (short)
15207 See \`config.log' for more details" "$LINENO" 5; }
15208 else
15209 ac_cv_sizeof_short=0
15214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
15215 $as_echo "$ac_cv_sizeof_short" >&6; }
15219 cat >>confdefs.h <<_ACEOF
15220 #define SIZEOF_SHORT $ac_cv_sizeof_short
15221 _ACEOF
15224 # The cast to long int works around a bug in the HP C Compiler
15225 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15226 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15227 # This bug is HP SR number 8606223364.
15228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
15229 $as_echo_n "checking size of char... " >&6; }
15230 if ${ac_cv_sizeof_char+:} false; then :
15231 $as_echo_n "(cached) " >&6
15232 else
15233 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
15235 else
15236 if test "$ac_cv_type_char" = yes; then
15237 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15238 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15239 as_fn_error 77 "cannot compute sizeof (char)
15240 See \`config.log' for more details" "$LINENO" 5; }
15241 else
15242 ac_cv_sizeof_char=0
15247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
15248 $as_echo "$ac_cv_sizeof_char" >&6; }
15252 cat >>confdefs.h <<_ACEOF
15253 #define SIZEOF_CHAR $ac_cv_sizeof_char
15254 _ACEOF
15258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
15259 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
15260 case "$ac_cv_sizeof_char" in
15261 1) acx_cv_type_int8_t=char ;;
15262 *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5
15263 esac
15264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
15265 $as_echo "$acx_cv_type_int8_t" >&6; }
15267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
15268 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
15269 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
15270 2:*) acx_cv_type_int16_t=int ;;
15271 *:2) acx_cv_type_int16_t=short ;;
15272 *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5
15273 esac
15274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
15275 $as_echo "$acx_cv_type_int16_t" >&6; }
15277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
15278 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
15279 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
15280 4:*) acx_cv_type_int32_t=int ;;
15281 *:4) acx_cv_type_int32_t=long ;;
15282 *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5
15283 esac
15284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
15285 $as_echo "$acx_cv_type_int32_t" >&6; }
15288 # These tests are here to make the output prettier
15290 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
15291 case "$ac_cv_sizeof_long" in
15292 8) acx_cv_type_int64_t=long ;;
15293 esac
15294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
15295 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
15296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
15297 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
15300 # Now we can use the above types
15302 if test "$ac_cv_type_uintptr_t" != yes; then
15303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
15304 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
15305 case $ac_cv_sizeof_void_p in
15306 2) acx_cv_type_intptr_t=int16_t ;;
15307 4) acx_cv_type_intptr_t=int32_t ;;
15308 8) acx_cv_type_intptr_t=int64_t ;;
15309 *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5
15310 esac
15311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
15312 $as_echo "$acx_cv_type_intptr_t" >&6; }
15315 # ----------------- done all checks, emit header -------------
15316 ac_config_commands="$ac_config_commands gstdint.h"
15321 XPCFLAGS=""
15322 case "$host" in
15323 *-*-rtems*)
15324 # RTEMS supports Pthreads, but the library is not available at GCC build time.
15326 nvptx*-*-*)
15327 # NVPTX does not support Pthreads, has its own code replacement.
15328 libgomp_use_pthreads=no
15329 # NVPTX is an accelerator-only target
15330 libgomp_offloaded_only=yes
15333 # Check to see if -pthread or -lpthread is needed. Prefer the former.
15334 # In case the pthread.h system header is not found, this test will fail.
15335 CFLAGS="$CFLAGS -pthread"
15336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15337 /* end confdefs.h. */
15338 #include <pthread.h>
15339 void *g(void *d) { return NULL; }
15341 main ()
15343 pthread_t t; pthread_create(&t,NULL,g,NULL);
15345 return 0;
15347 _ACEOF
15348 if ac_fn_c_try_link "$LINENO"; then :
15349 XPCFLAGS=" -Wc,-pthread"
15350 else
15351 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
15352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15353 /* end confdefs.h. */
15354 #include <pthread.h>
15355 void *g(void *d) { return NULL; }
15357 main ()
15359 pthread_t t; pthread_create(&t,NULL,g,NULL);
15361 return 0;
15363 _ACEOF
15364 if ac_fn_c_try_link "$LINENO"; then :
15366 else
15367 as_fn_error $? "Pthreads are required to build libgomp" "$LINENO" 5
15369 rm -f core conftest.err conftest.$ac_objext \
15370 conftest$ac_exeext conftest.$ac_ext
15372 rm -f core conftest.err conftest.$ac_objext \
15373 conftest$ac_exeext conftest.$ac_ext
15374 esac
15376 if test x$libgomp_use_pthreads != xno; then
15378 $as_echo "#define LIBGOMP_USE_PTHREADS 1" >>confdefs.h
15382 if test x$libgomp_offloaded_only = xyes; then
15384 $as_echo "#define LIBGOMP_OFFLOADED_ONLY 1" >>confdefs.h
15388 # Plugins for offload execution, configure.ac fragment. -*- mode: autoconf -*-
15390 # Copyright (C) 2014-2019 Free Software Foundation, Inc.
15392 # Contributed by Mentor Embedded.
15394 # This file is part of the GNU Offloading and Multi Processing Library
15395 # (libgomp).
15397 # Libgomp is free software; you can redistribute it and/or modify it
15398 # under the terms of the GNU General Public License as published by
15399 # the Free Software Foundation; either version 3, or (at your option)
15400 # any later version.
15402 # Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY
15403 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15404 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15405 # more details.
15407 # Under Section 7 of GPL version 3, you are granted additional
15408 # permissions described in the GCC Runtime Library Exception, version
15409 # 3.1, as published by the Free Software Foundation.
15411 # You should have received a copy of the GNU General Public License and
15412 # a copy of the GCC Runtime Library Exception along with this program;
15413 # see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
15414 # <http://www.gnu.org/licenses/>.
15416 plugin_support=yes
15417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
15418 $as_echo_n "checking for dlsym in -ldl... " >&6; }
15419 if ${ac_cv_lib_dl_dlsym+:} false; then :
15420 $as_echo_n "(cached) " >&6
15421 else
15422 ac_check_lib_save_LIBS=$LIBS
15423 LIBS="-ldl $LIBS"
15424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15425 /* end confdefs.h. */
15427 /* Override any GCC internal prototype to avoid an error.
15428 Use char because int might match the return type of a GCC
15429 builtin and then its argument prototype would still apply. */
15430 #ifdef __cplusplus
15431 extern "C"
15432 #endif
15433 char dlsym ();
15435 main ()
15437 return dlsym ();
15439 return 0;
15441 _ACEOF
15442 if ac_fn_c_try_link "$LINENO"; then :
15443 ac_cv_lib_dl_dlsym=yes
15444 else
15445 ac_cv_lib_dl_dlsym=no
15447 rm -f core conftest.err conftest.$ac_objext \
15448 conftest$ac_exeext conftest.$ac_ext
15449 LIBS=$ac_check_lib_save_LIBS
15451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
15452 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
15453 if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
15454 cat >>confdefs.h <<_ACEOF
15455 #define HAVE_LIBDL 1
15456 _ACEOF
15458 LIBS="-ldl $LIBS"
15460 else
15461 plugin_support=no
15464 if test x"$plugin_support" = xyes; then
15466 $as_echo "#define PLUGIN_SUPPORT 1" >>confdefs.h
15468 elif test "x${enable_offload_targets-no}" != xno; then
15469 as_fn_error $? "Can't support offloading without support for plugins" "$LINENO" 5
15474 for ac_header in $ac_header_list
15475 do :
15476 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15477 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15479 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15480 cat >>confdefs.h <<_ACEOF
15481 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15482 _ACEOF
15486 done
15494 for ac_func in $ac_func_list
15495 do :
15496 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15497 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15498 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15499 cat >>confdefs.h <<_ACEOF
15500 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15501 _ACEOF
15504 done
15521 # Look for the CUDA driver package.
15522 CUDA_DRIVER_INCLUDE=
15523 CUDA_DRIVER_LIB=
15526 CUDA_DRIVER_CPPFLAGS=
15527 CUDA_DRIVER_LDFLAGS=
15529 # Check whether --with-cuda-driver was given.
15530 if test "${with_cuda_driver+set}" = set; then :
15531 withval=$with_cuda_driver;
15535 # Check whether --with-cuda-driver-include was given.
15536 if test "${with_cuda_driver_include+set}" = set; then :
15537 withval=$with_cuda_driver_include;
15541 # Check whether --with-cuda-driver-lib was given.
15542 if test "${with_cuda_driver_lib+set}" = set; then :
15543 withval=$with_cuda_driver_lib;
15546 case "x$with_cuda_driver" in
15547 x) ;;
15548 xno)
15549 CUDA_DRIVER_INCLUDE=no
15550 CUDA_DRIVER_LIB=no
15552 *) CUDA_DRIVER_INCLUDE=$with_cuda_driver/include
15553 CUDA_DRIVER_LIB=$with_cuda_driver/lib
15555 esac
15556 if test "x$with_cuda_driver_include" != x; then
15557 CUDA_DRIVER_INCLUDE=$with_cuda_driver_include
15559 if test "x$with_cuda_driver_lib" != x; then
15560 CUDA_DRIVER_LIB=$with_cuda_driver_lib
15562 if test "x$CUDA_DRIVER_INCLUDE" != x \
15563 && test "x$CUDA_DRIVER_INCLUDE" != xno; then
15564 CUDA_DRIVER_CPPFLAGS=-I$CUDA_DRIVER_INCLUDE
15566 if test "x$CUDA_DRIVER_LIB" != x \
15567 && test "x$CUDA_DRIVER_LIB" != xno; then
15568 CUDA_DRIVER_LDFLAGS=-L$CUDA_DRIVER_LIB
15571 PLUGIN_NVPTX=0
15572 PLUGIN_NVPTX_CPPFLAGS=
15573 PLUGIN_NVPTX_LDFLAGS=
15574 PLUGIN_NVPTX_LIBS=
15575 PLUGIN_NVPTX_DYNAMIC=0
15581 # Look for HSA run-time, its includes and libraries
15583 HSA_RUNTIME_INCLUDE=
15584 HSA_RUNTIME_LIB=
15587 HSA_RUNTIME_CPPFLAGS=
15588 HSA_RUNTIME_LDFLAGS=
15591 # Check whether --with-hsa-runtime was given.
15592 if test "${with_hsa_runtime+set}" = set; then :
15593 withval=$with_hsa_runtime;
15597 # Check whether --with-hsa-runtime-include was given.
15598 if test "${with_hsa_runtime_include+set}" = set; then :
15599 withval=$with_hsa_runtime_include;
15603 # Check whether --with-hsa-runtime-lib was given.
15604 if test "${with_hsa_runtime_lib+set}" = set; then :
15605 withval=$with_hsa_runtime_lib;
15608 if test "x$with_hsa_runtime" != x; then
15609 HSA_RUNTIME_INCLUDE=$with_hsa_runtime/include
15610 HSA_RUNTIME_LIB=$with_hsa_runtime/lib
15612 if test "x$with_hsa_runtime_include" != x; then
15613 HSA_RUNTIME_INCLUDE=$with_hsa_runtime_include
15615 if test "x$with_hsa_runtime_lib" != x; then
15616 HSA_RUNTIME_LIB=$with_hsa_runtime_lib
15618 if test "x$HSA_RUNTIME_INCLUDE" != x; then
15619 HSA_RUNTIME_CPPFLAGS=-I$HSA_RUNTIME_INCLUDE
15621 if test "x$HSA_RUNTIME_LIB" != x; then
15622 HSA_RUNTIME_LDFLAGS=-L$HSA_RUNTIME_LIB
15625 PLUGIN_HSA=0
15626 PLUGIN_HSA_CPPFLAGS=
15627 PLUGIN_HSA_LDFLAGS=
15628 PLUGIN_HSA_LIBS=
15634 # Parse '--enable-offload-targets', figure out the corresponding libgomp
15635 # plugins, and configure to find the corresponding offload compilers.
15636 # 'offload_plugins' and 'offload_targets' will be populated in the same order.
15637 offload_plugins=
15638 offload_targets=
15641 offload_additional_options=
15642 offload_additional_lib_paths=
15645 if test x"$enable_offload_targets" != x; then
15646 for tgt in `echo $enable_offload_targets | sed -e 's#,# #g'`; do
15647 tgt_dir=`echo $tgt | grep '=' | sed 's/.*=//'`
15648 tgt=`echo $tgt | sed 's/=.*//'`
15649 tgt_plugin=
15650 case $tgt in
15651 *-intelmic-* | *-intelmicemul-*)
15652 tgt_plugin=intelmic
15654 nvptx*)
15655 tgt_plugin=nvptx
15656 PLUGIN_NVPTX=$tgt
15657 if test "x$CUDA_DRIVER_LIB" != xno \
15658 && test "x$CUDA_DRIVER_LIB" != xno; then
15659 PLUGIN_NVPTX_CPPFLAGS=$CUDA_DRIVER_CPPFLAGS
15660 PLUGIN_NVPTX_LDFLAGS=$CUDA_DRIVER_LDFLAGS
15661 PLUGIN_NVPTX_LIBS='-lcuda'
15663 PLUGIN_NVPTX_save_CPPFLAGS=$CPPFLAGS
15664 CPPFLAGS="$PLUGIN_NVPTX_CPPFLAGS $CPPFLAGS"
15665 PLUGIN_NVPTX_save_LDFLAGS=$LDFLAGS
15666 LDFLAGS="$PLUGIN_NVPTX_LDFLAGS $LDFLAGS"
15667 PLUGIN_NVPTX_save_LIBS=$LIBS
15668 LIBS="$PLUGIN_NVPTX_LIBS $LIBS"
15669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15670 /* end confdefs.h. */
15671 #include "cuda.h"
15673 main ()
15675 CUresult r = cuCtxPushCurrent (NULL);
15677 return 0;
15679 _ACEOF
15680 if ac_fn_c_try_link "$LINENO"; then :
15681 PLUGIN_NVPTX=1
15683 rm -f core conftest.err conftest.$ac_objext \
15684 conftest$ac_exeext conftest.$ac_ext
15685 CPPFLAGS=$PLUGIN_NVPTX_save_CPPFLAGS
15686 LDFLAGS=$PLUGIN_NVPTX_save_LDFLAGS
15687 LIBS=$PLUGIN_NVPTX_save_LIBS
15689 case $PLUGIN_NVPTX in
15690 nvptx*)
15691 if (test "x$CUDA_DRIVER_INCLUDE" = x \
15692 || test "x$CUDA_DRIVER_INCLUDE" = xno) \
15693 && (test "x$CUDA_DRIVER_LIB" = x \
15694 || test "x$CUDA_DRIVER_LIB" = xno); then
15695 PLUGIN_NVPTX=1
15696 PLUGIN_NVPTX_CPPFLAGS='-I$(srcdir)/plugin/cuda'
15697 PLUGIN_NVPTX_LIBS='-ldl'
15698 PLUGIN_NVPTX_DYNAMIC=1
15699 else
15700 PLUGIN_NVPTX=0
15701 as_fn_error $? "CUDA driver package required for nvptx support" "$LINENO" 5
15704 esac
15706 hsa*)
15707 case "${target}" in
15708 x86_64-*-*)
15709 case " ${CC} ${CFLAGS} " in
15710 *" -m32 "*)
15711 PLUGIN_HSA=0
15714 tgt_plugin=hsa
15715 PLUGIN_HSA=$tgt
15716 PLUGIN_HSA_CPPFLAGS=$HSA_RUNTIME_CPPFLAGS
15717 PLUGIN_HSA_LDFLAGS="$HSA_RUNTIME_LDFLAGS"
15718 PLUGIN_HSA_LIBS="-ldl"
15720 PLUGIN_HSA_save_CPPFLAGS=$CPPFLAGS
15721 CPPFLAGS="$PLUGIN_HSA_CPPFLAGS $CPPFLAGS"
15722 PLUGIN_HSA_save_LDFLAGS=$LDFLAGS
15723 LDFLAGS="$PLUGIN_HSA_LDFLAGS $LDFLAGS"
15724 PLUGIN_HSA_save_LIBS=$LIBS
15725 LIBS="$PLUGIN_HSA_LIBS $LIBS"
15727 PLUGIN_HSA=1
15728 CPPFLAGS=$PLUGIN_HSA_save_CPPFLAGS
15729 LDFLAGS=$PLUGIN_HSA_save_LDFLAGS
15730 LIBS=$PLUGIN_HSA_save_LIBS
15731 case $PLUGIN_HSA in
15732 hsa*)
15733 HSA_PLUGIN=0
15734 as_fn_error $? "HSA run-time package required for HSA support" "$LINENO" 5
15736 esac
15738 esac
15740 *-*-*)
15741 PLUGIN_HSA=0
15743 esac
15746 as_fn_error $? "unknown offload target specified" "$LINENO" 5
15748 esac
15749 if test x"$tgt_plugin" = x; then
15750 # Not configuring libgomp for this offload target if we're not building
15751 # the corresponding offload plugin.
15752 continue
15753 elif test x"$offload_plugins" = x; then
15754 offload_plugins=$tgt_plugin
15755 offload_targets=$tgt
15756 else
15757 offload_plugins=$offload_plugins,$tgt_plugin
15758 offload_targets=$offload_targets,$tgt
15760 # Configure additional search paths.
15761 if test "$tgt_plugin" = hsa; then
15762 # Offloading compilation is all handled by the target compiler.
15764 elif test x"$tgt_dir" != x; then
15765 offload_additional_options="$offload_additional_options -B$tgt_dir/libexec/gcc/\$(target_alias)/\$(gcc_version) -B$tgt_dir/bin"
15766 offload_additional_lib_paths="$offload_additional_lib_paths:$tgt_dir/lib64:$tgt_dir/lib:$tgt_dir/lib32"
15767 else
15768 offload_additional_options="$offload_additional_options -B\$(libexecdir)/gcc/\$(target_alias)/\$(gcc_version) -B\$(bindir)"
15769 offload_additional_lib_paths="$offload_additional_lib_paths:$toolexeclibdir"
15771 done
15774 cat >>confdefs.h <<_ACEOF
15775 #define OFFLOAD_PLUGINS "$offload_plugins"
15776 _ACEOF
15778 if test $PLUGIN_NVPTX = 1; then
15779 PLUGIN_NVPTX_TRUE=
15780 PLUGIN_NVPTX_FALSE='#'
15781 else
15782 PLUGIN_NVPTX_TRUE='#'
15783 PLUGIN_NVPTX_FALSE=
15787 cat >>confdefs.h <<_ACEOF
15788 #define PLUGIN_NVPTX $PLUGIN_NVPTX
15789 _ACEOF
15792 cat >>confdefs.h <<_ACEOF
15793 #define PLUGIN_NVPTX_DYNAMIC $PLUGIN_NVPTX_DYNAMIC
15794 _ACEOF
15796 if test $PLUGIN_HSA = 1; then
15797 PLUGIN_HSA_TRUE=
15798 PLUGIN_HSA_FALSE='#'
15799 else
15800 PLUGIN_HSA_TRUE='#'
15801 PLUGIN_HSA_FALSE=
15805 cat >>confdefs.h <<_ACEOF
15806 #define PLUGIN_HSA $PLUGIN_HSA
15807 _ACEOF
15810 if test "$HSA_RUNTIME_LIB" != ""; then
15811 HSA_RUNTIME_LIB="$HSA_RUNTIME_LIB/"
15815 cat >>confdefs.h <<_ACEOF
15816 #define HSA_RUNTIME_LIB "$HSA_RUNTIME_LIB"
15817 _ACEOF
15821 # Check for functions needed.
15822 for ac_func in getloadavg clock_gettime strtoull
15823 do :
15824 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15825 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15826 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15827 cat >>confdefs.h <<_ACEOF
15828 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15829 _ACEOF
15832 done
15834 for ac_func in aligned_alloc posix_memalign memalign _aligned_malloc
15835 do :
15836 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15837 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15838 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15839 cat >>confdefs.h <<_ACEOF
15840 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15841 _ACEOF
15844 done
15847 # Check for broken semaphore implementation on darwin.
15848 # sem_init returns: sem_init error: Function not implemented.
15849 case "$host" in
15850 *-darwin*)
15852 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
15855 esac
15857 # RTEMS specific checks
15858 case "$host" in
15859 *-*-rtems*)
15860 ac_fn_c_check_type "$LINENO" "struct _Mutex_Control" "ac_cv_type_struct__Mutex_Control" "#include <sys/lock.h>
15862 if test "x$ac_cv_type_struct__Mutex_Control" = xyes; then :
15864 cat >>confdefs.h <<_ACEOF
15865 #define HAVE_STRUCT__MUTEX_CONTROL 1
15866 _ACEOF
15872 esac
15874 # Check whether --enable-linux-futex was given.
15875 if test "${enable_linux_futex+set}" = set; then :
15876 enableval=$enable_linux_futex;
15877 case "$enableval" in
15878 yes|no|default) ;;
15879 *) as_fn_error $? "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
15880 esac
15882 else
15883 enable_linux_futex=default
15887 case "$target" in
15888 *-linux* | *-uclinux*)
15889 case "$enable_linux_futex" in
15890 default)
15891 # If headers don't have gettid/futex syscalls definition, then
15892 # default to no, otherwise there will be compile time failures.
15893 # Otherwise, default to yes. If we don't detect we are
15894 # compiled/linked against NPTL and not cross-compiling, check
15895 # if programs are run by default against NPTL and if not, issue
15896 # a warning.
15897 enable_linux_futex=no
15898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15899 /* end confdefs.h. */
15900 #include <sys/syscall.h>
15901 #include <unistd.h>
15902 int lk;
15904 main ()
15906 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15908 return 0;
15910 _ACEOF
15911 if ac_fn_c_try_link "$LINENO"; then :
15912 save_LIBS="$LIBS"
15913 LIBS="-lpthread $LIBS"
15914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15915 /* end confdefs.h. */
15916 #ifndef _GNU_SOURCE
15917 #define _GNU_SOURCE 1
15918 #endif
15919 #include <pthread.h>
15920 pthread_t th; void *status;
15922 main ()
15924 pthread_tryjoin_np (th, &status);
15926 return 0;
15928 _ACEOF
15929 if ac_fn_c_try_link "$LINENO"; then :
15930 enable_linux_futex=yes
15931 else
15932 if test x$cross_compiling = xno; then
15933 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
15934 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
15935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
15936 If so, please configure with --disable-linux-futex" >&5
15937 $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
15938 If so, please configure with --disable-linux-futex" >&2;}
15941 enable_linux_futex=yes
15943 rm -f core conftest.err conftest.$ac_objext \
15944 conftest$ac_exeext conftest.$ac_ext
15945 LIBS="$save_LIBS"
15947 rm -f core conftest.err conftest.$ac_objext \
15948 conftest$ac_exeext conftest.$ac_ext
15950 yes)
15951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15952 /* end confdefs.h. */
15953 #include <sys/syscall.h>
15954 #include <unistd.h>
15955 int lk;
15957 main ()
15959 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15961 return 0;
15963 _ACEOF
15964 if ac_fn_c_try_link "$LINENO"; then :
15966 else
15967 as_fn_error $? "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
15969 rm -f core conftest.err conftest.$ac_objext \
15970 conftest$ac_exeext conftest.$ac_ext
15972 esac
15975 enable_linux_futex=no
15977 esac
15978 if test x$enable_linux_futex = xyes; then
15983 # Check for pthread_{,attr_}[sg]etaffinity_np.
15984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15985 /* end confdefs.h. */
15986 #define _GNU_SOURCE
15987 #include <pthread.h>
15989 main ()
15991 cpu_set_t cpuset;
15992 pthread_attr_t attr;
15993 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15994 if (CPU_ISSET (0, &cpuset))
15995 CPU_SET (1, &cpuset);
15996 else
15997 CPU_ZERO (&cpuset);
15998 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15999 pthread_attr_init (&attr);
16000 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
16001 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
16003 return 0;
16005 _ACEOF
16006 if ac_fn_c_try_link "$LINENO"; then :
16008 $as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h
16011 rm -f core conftest.err conftest.$ac_objext \
16012 conftest$ac_exeext conftest.$ac_ext
16014 # At least for glibc, clock_gettime is in librt. But don't pull that
16015 # in if it still doesn't give us the function we want.
16016 if test $ac_cv_func_clock_gettime = no; then
16017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
16018 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
16019 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
16020 $as_echo_n "(cached) " >&6
16021 else
16022 ac_check_lib_save_LIBS=$LIBS
16023 LIBS="-lrt $LIBS"
16024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16025 /* end confdefs.h. */
16027 /* Override any GCC internal prototype to avoid an error.
16028 Use char because int might match the return type of a GCC
16029 builtin and then its argument prototype would still apply. */
16030 #ifdef __cplusplus
16031 extern "C"
16032 #endif
16033 char clock_gettime ();
16035 main ()
16037 return clock_gettime ();
16039 return 0;
16041 _ACEOF
16042 if ac_fn_c_try_link "$LINENO"; then :
16043 ac_cv_lib_rt_clock_gettime=yes
16044 else
16045 ac_cv_lib_rt_clock_gettime=no
16047 rm -f core conftest.err conftest.$ac_objext \
16048 conftest$ac_exeext conftest.$ac_ext
16049 LIBS=$ac_check_lib_save_LIBS
16051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
16052 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
16053 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
16054 LIBS="-lrt $LIBS"
16056 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
16062 # Check for uname.
16063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16064 /* end confdefs.h. */
16065 #include <string.h>
16066 #include <stdlib.h>
16067 #include <sys/utsname.h>
16069 main ()
16071 struct utsname buf;
16072 volatile size_t len = 0;
16073 if (!uname (buf))
16074 len = strlen (buf.nodename);
16076 return 0;
16078 _ACEOF
16079 if ac_fn_c_try_compile "$LINENO"; then :
16081 $as_echo "#define HAVE_UNAME 1" >>confdefs.h
16084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16086 # Check for gethostname.
16087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16088 /* end confdefs.h. */
16089 #include <unistd.h>
16091 main ()
16094 char buf[256];
16095 if (gethostname (buf, sizeof (buf) - 1) == 0)
16096 buf[255] = '\0';
16099 return 0;
16101 _ACEOF
16102 if ac_fn_c_try_compile "$LINENO"; then :
16104 $as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h
16107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16109 # Check for getpid.
16110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16111 /* end confdefs.h. */
16112 #include <unistd.h>
16114 main ()
16116 int pid = getpid ();
16118 return 0;
16120 _ACEOF
16121 if ac_fn_c_try_compile "$LINENO"; then :
16123 $as_echo "#define HAVE_GETPID 1" >>confdefs.h
16126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16128 # See if we support thread-local storage.
16131 # Check whether --enable-tls was given.
16132 if test "${enable_tls+set}" = set; then :
16133 enableval=$enable_tls;
16134 case "$enableval" in
16135 yes|no) ;;
16136 *) as_fn_error $? "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
16137 esac
16139 else
16140 enable_tls=yes
16144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
16145 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
16146 if ${gcc_cv_have_tls+:} false; then :
16147 $as_echo_n "(cached) " >&6
16148 else
16150 if test "$cross_compiling" = yes; then :
16151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16152 /* end confdefs.h. */
16153 __thread int a; int b; int main() { return a = b; }
16154 _ACEOF
16155 if ac_fn_c_try_link "$LINENO"; then :
16156 chktls_save_LDFLAGS="$LDFLAGS"
16157 case $host in
16158 *-*-linux* | -*-uclinuxfdpic*)
16159 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
16161 esac
16162 chktls_save_CFLAGS="$CFLAGS"
16163 CFLAGS="-fPIC $CFLAGS"
16164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16165 /* end confdefs.h. */
16166 int f() { return 0; }
16167 _ACEOF
16168 if ac_fn_c_try_link "$LINENO"; then :
16169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16170 /* end confdefs.h. */
16171 __thread int a; int b; int f() { return a = b; }
16172 _ACEOF
16173 if ac_fn_c_try_link "$LINENO"; then :
16174 gcc_cv_have_tls=yes
16175 else
16176 gcc_cv_have_tls=no
16178 rm -f core conftest.err conftest.$ac_objext \
16179 conftest$ac_exeext conftest.$ac_ext
16180 else
16181 gcc_cv_have_tls=yes
16183 rm -f core conftest.err conftest.$ac_objext \
16184 conftest$ac_exeext conftest.$ac_ext
16185 CFLAGS="$chktls_save_CFLAGS"
16186 LDFLAGS="$chktls_save_LDFLAGS"
16187 else
16188 gcc_cv_have_tls=no
16190 rm -f core conftest.err conftest.$ac_objext \
16191 conftest$ac_exeext conftest.$ac_ext
16194 else
16195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16196 /* end confdefs.h. */
16197 __thread int a; int b; int main() { return a = b; }
16198 _ACEOF
16199 if ac_fn_c_try_run "$LINENO"; then :
16200 chktls_save_LDFLAGS="$LDFLAGS"
16201 LDFLAGS="-static $LDFLAGS"
16202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16203 /* end confdefs.h. */
16204 int main() { return 0; }
16205 _ACEOF
16206 if ac_fn_c_try_link "$LINENO"; then :
16207 if test "$cross_compiling" = yes; then :
16208 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16209 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16210 as_fn_error $? "cannot run test program while cross compiling
16211 See \`config.log' for more details" "$LINENO" 5; }
16212 else
16213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16214 /* end confdefs.h. */
16215 __thread int a; int b; int main() { return a = b; }
16216 _ACEOF
16217 if ac_fn_c_try_run "$LINENO"; then :
16218 gcc_cv_have_tls=yes
16219 else
16220 gcc_cv_have_tls=no
16222 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16223 conftest.$ac_objext conftest.beam conftest.$ac_ext
16226 else
16227 gcc_cv_have_tls=yes
16229 rm -f core conftest.err conftest.$ac_objext \
16230 conftest$ac_exeext conftest.$ac_ext
16231 LDFLAGS="$chktls_save_LDFLAGS"
16232 if test $gcc_cv_have_tls = yes; then
16233 chktls_save_CFLAGS="$CFLAGS"
16234 thread_CFLAGS=failed
16235 for flag in '' '-pthread' '-lpthread'; do
16236 CFLAGS="$flag $chktls_save_CFLAGS"
16237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16238 /* end confdefs.h. */
16239 #include <pthread.h>
16240 void *g(void *d) { return NULL; }
16242 main ()
16244 pthread_t t; pthread_create(&t,NULL,g,NULL);
16246 return 0;
16248 _ACEOF
16249 if ac_fn_c_try_link "$LINENO"; then :
16250 thread_CFLAGS="$flag"
16252 rm -f core conftest.err conftest.$ac_objext \
16253 conftest$ac_exeext conftest.$ac_ext
16254 if test "X$thread_CFLAGS" != Xfailed; then
16255 break
16257 done
16258 CFLAGS="$chktls_save_CFLAGS"
16259 if test "X$thread_CFLAGS" != Xfailed; then
16260 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
16261 if test "$cross_compiling" = yes; then :
16262 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16263 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16264 as_fn_error $? "cannot run test program while cross compiling
16265 See \`config.log' for more details" "$LINENO" 5; }
16266 else
16267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16268 /* end confdefs.h. */
16269 #include <pthread.h>
16270 __thread int a;
16271 static int *volatile a_in_other_thread;
16272 static void *
16273 thread_func (void *arg)
16275 a_in_other_thread = &a;
16276 return (void *)0;
16279 main ()
16281 pthread_t thread;
16282 void *thread_retval;
16283 int *volatile a_in_main_thread;
16284 a_in_main_thread = &a;
16285 if (pthread_create (&thread, (pthread_attr_t *)0,
16286 thread_func, (void *)0))
16287 return 0;
16288 if (pthread_join (thread, &thread_retval))
16289 return 0;
16290 return (a_in_other_thread == a_in_main_thread);
16292 return 0;
16294 _ACEOF
16295 if ac_fn_c_try_run "$LINENO"; then :
16296 gcc_cv_have_tls=yes
16297 else
16298 gcc_cv_have_tls=no
16300 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16301 conftest.$ac_objext conftest.beam conftest.$ac_ext
16304 CFLAGS="$chktls_save_CFLAGS"
16307 else
16308 gcc_cv_have_tls=no
16310 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16311 conftest.$ac_objext conftest.beam conftest.$ac_ext
16315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
16316 $as_echo "$gcc_cv_have_tls" >&6; }
16317 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
16319 $as_echo "#define HAVE_TLS 1" >>confdefs.h
16323 # See if we have emulated thread-local storage.
16325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the thread-local storage support is from emutls" >&5
16326 $as_echo_n "checking whether the thread-local storage support is from emutls... " >&6; }
16327 if ${gcc_cv_use_emutls+:} false; then :
16328 $as_echo_n "(cached) " >&6
16329 else
16331 gcc_cv_use_emutls=no
16332 echo '__thread int a; int b; int main() { return a = b; }' > conftest.c
16333 if { ac_try='${CC-cc} -Werror -S -o conftest.s conftest.c 1>&5'
16334 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16335 (eval $ac_try) 2>&5
16336 ac_status=$?
16337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16338 test $ac_status = 0; }; }; then
16339 if grep __emutls_get_address conftest.s > /dev/null; then
16340 gcc_cv_use_emutls=yes
16343 rm -f conftest.*
16346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_use_emutls" >&5
16347 $as_echo "$gcc_cv_use_emutls" >&6; }
16348 if test "$gcc_cv_use_emutls" = "yes" ; then
16350 $as_echo "#define USE_EMUTLS 1" >>confdefs.h
16354 # See what sort of export controls are available.
16356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
16357 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
16358 if ${libgomp_cv_have_attribute_visibility+:} false; then :
16359 $as_echo_n "(cached) " >&6
16360 else
16362 save_CFLAGS="$CFLAGS"
16363 CFLAGS="$CFLAGS -Werror"
16364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16365 /* end confdefs.h. */
16366 void __attribute__((visibility("hidden"))) foo(void) { }
16368 main ()
16372 return 0;
16374 _ACEOF
16375 if ac_fn_c_try_compile "$LINENO"; then :
16376 libgomp_cv_have_attribute_visibility=yes
16377 else
16378 libgomp_cv_have_attribute_visibility=no
16380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16381 CFLAGS="$save_CFLAGS"
16383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_visibility" >&5
16384 $as_echo "$libgomp_cv_have_attribute_visibility" >&6; }
16385 if test $libgomp_cv_have_attribute_visibility = yes; then
16387 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
16391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
16392 $as_echo_n "checking whether the target supports dllexport... " >&6; }
16393 if ${libgomp_cv_have_attribute_dllexport+:} false; then :
16394 $as_echo_n "(cached) " >&6
16395 else
16397 save_CFLAGS="$CFLAGS"
16398 CFLAGS="$CFLAGS -Werror"
16399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16400 /* end confdefs.h. */
16401 void __attribute__((dllexport)) foo(void) { }
16403 main ()
16407 return 0;
16409 _ACEOF
16410 if ac_fn_c_try_compile "$LINENO"; then :
16411 libgomp_cv_have_attribute_dllexport=yes
16412 else
16413 libgomp_cv_have_attribute_dllexport=no
16415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16416 CFLAGS="$save_CFLAGS"
16418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_dllexport" >&5
16419 $as_echo "$libgomp_cv_have_attribute_dllexport" >&6; }
16420 if test $libgomp_cv_have_attribute_dllexport = yes; then
16422 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
16426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
16427 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
16428 if ${libgomp_cv_have_attribute_alias+:} false; then :
16429 $as_echo_n "(cached) " >&6
16430 else
16432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16433 /* end confdefs.h. */
16435 void foo(void) { }
16436 extern void bar(void) __attribute__((alias("foo")));
16438 main ()
16440 bar();
16442 return 0;
16444 _ACEOF
16445 if ac_fn_c_try_link "$LINENO"; then :
16446 libgomp_cv_have_attribute_alias=yes
16447 else
16448 libgomp_cv_have_attribute_alias=no
16450 rm -f core conftest.err conftest.$ac_objext \
16451 conftest$ac_exeext conftest.$ac_ext
16453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_alias" >&5
16454 $as_echo "$libgomp_cv_have_attribute_alias" >&6; }
16455 if test $libgomp_cv_have_attribute_alias = yes; then
16457 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
16462 # Check whether --with-gnu-ld was given.
16463 if test "${with_gnu_ld+set}" = set; then :
16464 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16465 else
16466 with_gnu_ld=no
16469 ac_prog=ld
16470 if test "$GCC" = yes; then
16471 # Check if gcc -print-prog-name=ld gives a path.
16472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16473 $as_echo_n "checking for ld used by $CC... " >&6; }
16474 case $host in
16475 *-*-mingw*)
16476 # gcc leaves a trailing carriage return which upsets mingw
16477 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16479 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16480 esac
16481 case $ac_prog in
16482 # Accept absolute paths.
16483 [\\/]* | ?:[\\/]*)
16484 re_direlt='/[^/][^/]*/\.\./'
16485 # Canonicalize the pathname of ld
16486 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16487 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16488 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16489 done
16490 test -z "$LD" && LD="$ac_prog"
16493 # If it fails, then pretend we aren't using GCC.
16494 ac_prog=ld
16497 # If it is relative, then search for the first ld in PATH.
16498 with_gnu_ld=unknown
16500 esac
16501 elif test "$with_gnu_ld" = yes; then
16502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16503 $as_echo_n "checking for GNU ld... " >&6; }
16504 else
16505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16506 $as_echo_n "checking for non-GNU ld... " >&6; }
16508 if ${lt_cv_path_LD+:} false; then :
16509 $as_echo_n "(cached) " >&6
16510 else
16511 if test -z "$LD"; then
16512 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16513 for ac_dir in $PATH; do
16514 IFS="$lt_save_ifs"
16515 test -z "$ac_dir" && ac_dir=.
16516 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16517 lt_cv_path_LD="$ac_dir/$ac_prog"
16518 # Check to see if the program is GNU ld. I'd rather use --version,
16519 # but apparently some variants of GNU ld only accept -v.
16520 # Break only if it was the GNU/non-GNU ld that we prefer.
16521 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16522 *GNU* | *'with BFD'*)
16523 test "$with_gnu_ld" != no && break
16526 test "$with_gnu_ld" != yes && break
16528 esac
16530 done
16531 IFS="$lt_save_ifs"
16532 else
16533 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16537 LD="$lt_cv_path_LD"
16538 if test -n "$LD"; then
16539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16540 $as_echo "$LD" >&6; }
16541 else
16542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16543 $as_echo "no" >&6; }
16545 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16547 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16548 if ${lt_cv_prog_gnu_ld+:} false; then :
16549 $as_echo_n "(cached) " >&6
16550 else
16551 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16552 case `$LD -v 2>&1 </dev/null` in
16553 *GNU* | *'with BFD'*)
16554 lt_cv_prog_gnu_ld=yes
16557 lt_cv_prog_gnu_ld=no
16559 esac
16561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16562 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16563 with_gnu_ld=$lt_cv_prog_gnu_ld
16571 # If we're not using GNU ld, then there's no point in even trying these
16572 # tests. Check for that first. We should have already tested for gld
16573 # by now (in libtool), but require it now just to be safe...
16574 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
16575 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
16579 # The name set by libtool depends on the version of libtool. Shame on us
16580 # for depending on an impl detail, but c'est la vie. Older versions used
16581 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
16582 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
16583 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
16584 # set (hence we're using an older libtool), then set it.
16585 if test x${with_gnu_ld+set} != xset; then
16586 if test x${ac_cv_prog_gnu_ld+set} != xset; then
16587 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
16588 with_gnu_ld=no
16589 else
16590 with_gnu_ld=$ac_cv_prog_gnu_ld
16594 # Start by getting the version number. I think the libtool test already
16595 # does some of this, but throws away the result.
16596 libgomp_ld_is_gold=no
16597 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
16598 libgomp_ld_is_gold=yes
16601 ldver=`$LD --version 2>/dev/null |
16602 sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
16604 libgomp_gnu_ld_version=`echo $ldver | \
16605 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
16607 # Set --gc-sections.
16608 if test "$with_gnu_ld" = "notbroken"; then
16609 # GNU ld it is! Joy and bunny rabbits!
16611 # All these tests are for C++; save the language and the compiler flags.
16612 # Need to do this so that g++ won't try to link in libstdc++
16613 ac_test_CFLAGS="${CFLAGS+set}"
16614 ac_save_CFLAGS="$CFLAGS"
16615 CFLAGS='-x c++ -Wl,--gc-sections'
16617 # Check for -Wl,--gc-sections
16618 # XXX This test is broken at the moment, as symbols required for linking
16619 # are now in libsupc++ (not built yet). In addition, this test has
16620 # cored on solaris in the past. In addition, --gc-sections doesn't
16621 # really work at the moment (keeps on discarding used sections, first
16622 # .eh_frame and now some of the glibc sections for iconv).
16623 # Bzzzzt. Thanks for playing, maybe next time.
16624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
16625 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
16626 if test "$cross_compiling" = yes; then :
16627 ac_sectionLDflags=yes
16628 else
16629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16630 /* end confdefs.h. */
16632 int main(void)
16634 try { throw 1; }
16635 catch (...) { };
16636 return 0;
16639 _ACEOF
16640 if ac_fn_c_try_run "$LINENO"; then :
16641 ac_sectionLDflags=yes
16642 else
16643 ac_sectionLDflags=no
16645 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16646 conftest.$ac_objext conftest.beam conftest.$ac_ext
16649 if test "$ac_test_CFLAGS" = set; then
16650 CFLAGS="$ac_save_CFLAGS"
16651 else
16652 # this is the suspicious part
16653 CFLAGS=''
16655 if test "$ac_sectionLDflags" = "yes"; then
16656 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
16658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
16659 $as_echo "$ac_sectionLDflags" >&6; }
16662 # Set linker optimization flags.
16663 if test x"$with_gnu_ld" = x"yes"; then
16664 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
16672 # Check whether --enable-symvers was given.
16673 if test "${enable_symvers+set}" = set; then :
16674 enableval=$enable_symvers;
16675 case "$enableval" in
16676 yes|no|gnu*|sun) ;;
16677 *) as_fn_error $? "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
16678 esac
16680 else
16681 enable_symvers=yes
16686 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
16687 # don't know enough about $LD to do tricks...
16690 # Turn a 'yes' into a suitable default.
16691 if test x$enable_symvers = xyes ; then
16692 # FIXME The following test is too strict, in theory.
16693 if test $enable_shared = no || test "x$LD" = x; then
16694 enable_symvers=no
16695 else
16696 if test $with_gnu_ld = yes ; then
16697 enable_symvers=gnu
16698 else
16699 case ${target_os} in
16700 # Sun symbol versioning exists since Solaris 2.5.
16701 solaris2.[5-9]* | solaris2.1[0-9]*)
16702 enable_symvers=sun ;;
16704 enable_symvers=no ;;
16705 esac
16710 # Check if 'sun' was requested on non-Solaris 2 platforms.
16711 if test x$enable_symvers = xsun ; then
16712 case ${target_os} in
16713 solaris2*)
16714 # All fine.
16717 # Unlikely to work.
16718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
16719 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
16720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
16721 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
16722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16723 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16724 enable_symvers=no
16726 esac
16729 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
16730 if test $enable_symvers != no; then
16731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
16732 $as_echo_n "checking for shared libgcc... " >&6; }
16733 ac_save_CFLAGS="$CFLAGS"
16734 CFLAGS=' -lgcc_s'
16735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16736 /* end confdefs.h. */
16739 main ()
16741 return 0;
16743 return 0;
16745 _ACEOF
16746 if ac_fn_c_try_link "$LINENO"; then :
16747 libgomp_shared_libgcc=yes
16748 else
16749 libgomp_shared_libgcc=no
16751 rm -f core conftest.err conftest.$ac_objext \
16752 conftest$ac_exeext conftest.$ac_ext
16753 CFLAGS="$ac_save_CFLAGS"
16754 if test $libgomp_shared_libgcc = no; then
16755 cat > conftest.c <<EOF
16756 int main (void) { return 0; }
16758 libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
16759 -shared -shared-libgcc -o conftest.so \
16760 conftest.c -v 2>&1 >/dev/null \
16761 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
16762 rm -f conftest.c conftest.so
16763 if test x${libgomp_libgcc_s_suffix+set} = xset; then
16764 CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
16765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16766 /* end confdefs.h. */
16769 main ()
16771 return 0;
16773 return 0;
16775 _ACEOF
16776 if ac_fn_c_try_link "$LINENO"; then :
16777 libgomp_shared_libgcc=yes
16779 rm -f core conftest.err conftest.$ac_objext \
16780 conftest$ac_exeext conftest.$ac_ext
16781 CFLAGS="$ac_save_CFLAGS"
16784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_shared_libgcc" >&5
16785 $as_echo "$libgomp_shared_libgcc" >&6; }
16788 # For GNU ld, we need at least this version. The format is described in
16789 # LIBGOMP_CHECK_LINKER_FEATURES above.
16790 libgomp_min_gnu_ld_version=21400
16791 # XXXXXXXXXXX libgomp_gnu_ld_version=21390
16793 # Check to see if unspecified "yes" value can win, given results above.
16794 # Change "yes" into either "no" or a style name.
16795 if test $enable_symvers != no && test $libgomp_shared_libgcc = yes; then
16796 if test $with_gnu_ld = yes; then
16797 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
16798 enable_symvers=gnu
16799 elif test $libgomp_ld_is_gold = yes ; then
16800 enable_symvers=gnu
16801 else
16802 # The right tools, the right setup, but too old. Fallbacks?
16803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
16804 $as_echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
16805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
16806 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
16807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
16808 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
16809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
16810 $as_echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
16811 if test $libgomp_gnu_ld_version -ge 21200 ; then
16812 # Globbing fix is present, proper block support is not.
16813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16814 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16815 enable_symvers=no
16816 else
16817 # 2.11 or older.
16818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16819 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16820 enable_symvers=no
16823 elif test $enable_symvers = sun; then
16824 : All interesting versions of Sun ld support sun style symbol versioning.
16825 else
16826 # just fail for now
16827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
16828 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
16829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
16830 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
16831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
16832 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
16833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16834 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16835 enable_symvers=no
16839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports .symver directive" >&5
16840 $as_echo_n "checking whether the target supports .symver directive... " >&6; }
16841 if ${libgomp_cv_have_as_symver_directive+:} false; then :
16842 $as_echo_n "(cached) " >&6
16843 else
16845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16846 /* end confdefs.h. */
16847 void foo (void); __asm (".symver foo, bar@SYMVER");
16849 main ()
16853 return 0;
16855 _ACEOF
16856 if ac_fn_c_try_compile "$LINENO"; then :
16857 libgomp_cv_have_as_symver_directive=yes
16858 else
16859 libgomp_cv_have_as_symver_directive=no
16861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_as_symver_directive" >&5
16864 $as_echo "$libgomp_cv_have_as_symver_directive" >&6; }
16865 if test $libgomp_cv_have_as_symver_directive = yes; then
16867 $as_echo "#define HAVE_AS_SYMVER_DIRECTIVE 1" >>confdefs.h
16871 if test $enable_symvers != no; then
16872 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
16873 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
16874 else
16875 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
16876 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
16879 if test $enable_symvers = gnu; then
16880 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE=
16881 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
16882 else
16883 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
16884 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE=
16887 if test $enable_symvers = sun; then
16888 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE=
16889 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
16890 else
16891 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
16892 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE=
16895 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
16896 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
16898 if test $enable_symvers != no ; then
16899 case ${target_os} in
16900 # The Solaris 2 runtime linker doesn't support the GNU extension of
16901 # binding the same symbol to different versions
16902 solaris2*)
16904 # Other platforms with GNU symbol versioning (GNU/Linux, more?) do.
16907 $as_echo "#define HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT 1" >>confdefs.h
16910 esac
16914 if test $enable_symvers = gnu; then
16916 $as_echo "#define LIBGOMP_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
16920 # Determine cpu count to limit testsuite parallelism.
16921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the number of available CPUs" >&5
16922 $as_echo_n "checking the number of available CPUs... " >&6; }
16923 CPU_COUNT="0"
16925 # Try generic methods
16927 # 'getconf' is POSIX utility, but '_NPROCESSORS_ONLN' and
16928 # 'NPROCESSORS_ONLN' are platform-specific
16929 command -v getconf >/dev/null 2>&1 && \
16930 CPU_COUNT=`getconf _NPROCESSORS_ONLN 2>/dev/null || getconf NPROCESSORS_ONLN 2>/dev/null` || CPU_COUNT="0"
16931 if test "$CPU_COUNT" -gt "0" 2>/dev/null || ! command -v nproc >/dev/null 2>&1; then :
16932 : # empty
16933 else
16934 # 'nproc' is part of GNU Coreutils and is widely available
16935 CPU_COUNT=`OMP_NUM_THREADS='' nproc 2>/dev/null` || CPU_COUNT=`nproc 2>/dev/null` || CPU_COUNT="0"
16938 if test "$CPU_COUNT" -gt "0" 2>/dev/null; then :
16939 : # empty
16940 else
16941 # Try platform-specific preferred methods
16942 case $host_os in #(
16943 *linux*) :
16944 CPU_COUNT=`lscpu -p 2>/dev/null | $EGREP -e '^[0-9]+,' -c` || CPU_COUNT="0" ;; #(
16945 *darwin*) :
16946 CPU_COUNT=`sysctl -n hw.logicalcpu 2>/dev/null` || CPU_COUNT="0" ;; #(
16947 freebsd*) :
16948 command -v sysctl >/dev/null 2>&1 && CPU_COUNT=`sysctl -n kern.smp.cpus 2>/dev/null` || CPU_COUNT="0" ;; #(
16949 netbsd*) :
16950 command -v sysctl >/dev/null 2>&1 && CPU_COUNT=`sysctl -n hw.ncpuonline 2>/dev/null` || CPU_COUNT="0" ;; #(
16951 solaris*) :
16952 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" ;; #(
16953 mingw*) :
16954 CPU_COUNT=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT="0" ;; #(
16955 msys*) :
16956 CPU_COUNT=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT="0" ;; #(
16957 cygwin*) :
16958 CPU_COUNT=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT="0" ;; #(
16959 *) :
16961 esac
16963 if test "$CPU_COUNT" -gt "0" 2>/dev/null || ! command -v sysctl >/dev/null 2>&1; then :
16964 : # empty
16965 else
16966 # Try less preferred generic method
16967 # 'hw.ncpu' exist on many platforms, but not on GNU/Linux
16968 CPU_COUNT=`sysctl -n hw.ncpu 2>/dev/null` || CPU_COUNT="0"
16971 if test "$CPU_COUNT" -gt "0" 2>/dev/null; then :
16972 : # empty
16973 else
16974 # Try platform-specific fallback methods
16975 # They can be less accurate and slower then preferred methods
16976 case $host_os in #(
16977 *linux*) :
16978 CPU_COUNT=`$EGREP -e '^processor' -c /proc/cpuinfo 2>/dev/null` || CPU_COUNT="0" ;; #(
16979 *darwin*) :
16980 CPU_COUNT=`system_profiler SPHardwareDataType 2>/dev/null | $EGREP -i -e 'number of cores:'|cut -d : -f 2 -s|tr -d ' '` || CPU_COUNT="0" ;; #(
16981 freebsd*) :
16982 CPU_COUNT=`dmesg 2>/dev/null| $EGREP -e '^cpu[0-9]+: '|sort -u|$EGREP -e '^' -c` || CPU_COUNT="0" ;; #(
16983 netbsd*) :
16984 CPU_COUNT=`command -v cpuctl >/dev/null 2>&1 && cpuctl list 2>/dev/null| $EGREP -e '^[0-9]+ .* online ' -c` || \
16985 CPU_COUNT=`dmesg 2>/dev/null| $EGREP -e '^cpu[0-9]+ at'|sort -u|$EGREP -e '^' -c` || CPU_COUNT="0" ;; #(
16986 solaris*) :
16987 command -v kstat >/dev/null 2>&1 && CPU_COUNT=`kstat -m cpu_info -s state -p 2>/dev/null | $EGREP -c -e 'on-line'` || \
16988 CPU_COUNT=`kstat -m cpu_info 2>/dev/null | $EGREP -c -e 'module: cpu_info'` || CPU_COUNT="0" ;; #(
16989 mingw*) :
16990 if CPU_COUNT=`reg query 'HKLM\\Hardware\\Description\\System\\CentralProcessor' 2>/dev/null | $EGREP -e '\\\\[0-9]+$' -c`; then :
16991 : # empty
16992 else
16993 test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev/null && CPU_COUNT="$NUMBER_OF_PROCESSORS"
16994 fi ;; #(
16995 msys*) :
16996 test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev/null && CPU_COUNT="$NUMBER_OF_PROCESSORS" ;; #(
16997 cygwin*) :
16998 test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev/null && CPU_COUNT="$NUMBER_OF_PROCESSORS" ;; #(
16999 *) :
17001 esac
17003 if test "x$CPU_COUNT" != "x0" && test "$CPU_COUNT" -gt 0 2>/dev/null; then :
17004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPU_COUNT" >&5
17005 $as_echo "$CPU_COUNT" >&6; }
17007 else
17008 CPU_COUNT="1"
17009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to detect (assuming 1)" >&5
17010 $as_echo "unable to detect (assuming 1)" >&6; }
17015 # Get target configury.
17016 . ${srcdir}/configure.tgt
17017 CFLAGS="$save_CFLAGS $XCFLAGS"
17019 # Check for __sync_val_compare_and_swap, but only after the target has
17020 # had a chance to set XCFLAGS.
17022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
17023 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
17024 if ${libgomp_cv_have_sync_builtins+:} false; then :
17025 $as_echo_n "(cached) " >&6
17026 else
17028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17029 /* end confdefs.h. */
17032 main ()
17034 int foo; __sync_val_compare_and_swap(&foo, 0, 1);
17036 return 0;
17038 _ACEOF
17039 if ac_fn_c_try_link "$LINENO"; then :
17040 libgomp_cv_have_sync_builtins=yes
17041 else
17042 libgomp_cv_have_sync_builtins=no
17044 rm -f core conftest.err conftest.$ac_objext \
17045 conftest$ac_exeext conftest.$ac_ext
17047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_sync_builtins" >&5
17048 $as_echo "$libgomp_cv_have_sync_builtins" >&6; }
17049 if test $libgomp_cv_have_sync_builtins = yes; then
17051 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
17055 XCFLAGS="$XCFLAGS$XPCFLAGS"
17057 # Add CET specific flags if CET is enabled
17058 # Check whether --enable-cet was given.
17059 if test "${enable_cet+set}" = set; then :
17060 enableval=$enable_cet;
17061 case "$enableval" in
17062 yes|no|auto) ;;
17063 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
17064 esac
17066 else
17067 enable_cet=no
17071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
17072 $as_echo_n "checking for CET support... " >&6; }
17074 case "$host" in
17075 i[34567]86-*-linux* | x86_64-*-linux*)
17076 case "$enable_cet" in
17077 auto)
17078 # Check if target supports multi-byte NOPs
17079 # and if assembler supports CET insn.
17080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17081 /* end confdefs.h. */
17084 main ()
17087 #if !defined(__SSE2__)
17088 #error target does not support multi-byte NOPs
17089 #else
17090 asm ("setssbsy");
17091 #endif
17094 return 0;
17096 _ACEOF
17097 if ac_fn_c_try_compile "$LINENO"; then :
17098 enable_cet=yes
17099 else
17100 enable_cet=no
17102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17104 yes)
17105 # Check if assembler supports CET.
17106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17107 /* end confdefs.h. */
17110 main ()
17112 asm ("setssbsy");
17114 return 0;
17116 _ACEOF
17117 if ac_fn_c_try_compile "$LINENO"; then :
17119 else
17120 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
17122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17124 esac
17127 enable_cet=no
17129 esac
17130 if test x$enable_cet = xyes; then
17131 CET_FLAGS="-fcf-protection -mshstk"
17132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17133 $as_echo "yes" >&6; }
17134 else
17135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17136 $as_echo "no" >&6; }
17139 XCFLAGS="$XCFLAGS $CET_FLAGS"
17140 FCFLAGS="$FCFLAGS $CET_FLAGS"
17146 # Cleanup and exit.
17147 CFLAGS="$save_CFLAGS"
17148 cat >confcache <<\_ACEOF
17149 # This file is a shell script that caches the results of configure
17150 # tests run on this system so they can be shared between configure
17151 # scripts and configure runs, see configure's option --config-cache.
17152 # It is not useful on other systems. If it contains results you don't
17153 # want to keep, you may remove or edit it.
17155 # config.status only pays attention to the cache file if you give it
17156 # the --recheck option to rerun configure.
17158 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17159 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17160 # following values.
17162 _ACEOF
17164 # The following way of writing the cache mishandles newlines in values,
17165 # but we know of no workaround that is simple, portable, and efficient.
17166 # So, we kill variables containing newlines.
17167 # Ultrix sh set writes to stderr and can't be redirected directly,
17168 # and sets the high bit in the cache file unless we assign to the vars.
17170 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17171 eval ac_val=\$$ac_var
17172 case $ac_val in #(
17173 *${as_nl}*)
17174 case $ac_var in #(
17175 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17176 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17177 esac
17178 case $ac_var in #(
17179 _ | IFS | as_nl) ;; #(
17180 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17181 *) { eval $ac_var=; unset $ac_var;} ;;
17182 esac ;;
17183 esac
17184 done
17186 (set) 2>&1 |
17187 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17188 *${as_nl}ac_space=\ *)
17189 # `set' does not quote correctly, so add quotes: double-quote
17190 # substitution turns \\\\ into \\, and sed turns \\ into \.
17191 sed -n \
17192 "s/'/'\\\\''/g;
17193 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17194 ;; #(
17196 # `set' quotes correctly as required by POSIX, so do not add quotes.
17197 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17199 esac |
17200 sort
17202 sed '
17203 /^ac_cv_env_/b end
17204 t clear
17205 :clear
17206 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17207 t end
17208 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17209 :end' >>confcache
17210 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17211 if test -w "$cache_file"; then
17212 if test "x$cache_file" != "x/dev/null"; then
17213 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17214 $as_echo "$as_me: updating cache $cache_file" >&6;}
17215 if test ! -f "$cache_file" || test -h "$cache_file"; then
17216 cat confcache >"$cache_file"
17217 else
17218 case $cache_file in #(
17219 */* | ?:*)
17220 mv -f confcache "$cache_file"$$ &&
17221 mv -f "$cache_file"$$ "$cache_file" ;; #(
17223 mv -f confcache "$cache_file" ;;
17224 esac
17227 else
17228 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17229 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17232 rm -f confcache
17234 if test ${multilib} = yes; then
17235 multilib_arg="--enable-multilib"
17236 else
17237 multilib_arg=
17240 # Set up the set of libraries that we need to link against for libgomp.
17241 # Note that the GOMP_SELF_SPEC in gcc.c may force -pthread,
17242 # which will force linkage against -lpthread (or equivalent for the system).
17243 # That's not 100% ideal, but about the best we can do easily.
17244 if test $enable_shared = yes; then
17245 link_gomp="-lgomp %{static: $LIBS}"
17246 else
17247 link_gomp="-lgomp $LIBS"
17251 if test "$ac_cv_fc_compiler_gnu" = yes; then
17252 USE_FORTRAN_TRUE=
17253 USE_FORTRAN_FALSE='#'
17254 else
17255 USE_FORTRAN_TRUE='#'
17256 USE_FORTRAN_FALSE=
17260 # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
17261 # and export AC_COMPUTE_INT. If that happens, then we'll need to remove
17262 # the underscore here and update the PREREQ. If it doesn't, then we'll
17263 # need to copy this macro to our acinclude.m4.
17264 save_CFLAGS="$CFLAGS"
17265 for i in $config_path; do
17266 if test -f $srcdir/config/$i/omp-lock.h; then
17267 CFLAGS="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h"
17268 break
17270 done
17272 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_t)" "OMP_LOCK_SIZE" ""; then :
17274 else
17275 as_fn_error $? "unsupported system, cannot find sizeof (omp_lock_t)" "$LINENO" 5
17279 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_t)" "OMP_LOCK_ALIGN" ""; then :
17284 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_t)" "OMP_NEST_LOCK_SIZE" ""; then :
17289 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_t)" "OMP_NEST_LOCK_ALIGN" ""; then :
17294 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_25_t)" "OMP_LOCK_25_SIZE" ""; then :
17296 else
17297 as_fn_error $? "unsupported system, cannot find sizeof (omp_lock_25_t)" "$LINENO" 5
17301 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_25_t)" "OMP_LOCK_25_ALIGN" ""; then :
17306 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_SIZE" ""; then :
17311 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_ALIGN" ""; then :
17317 # If the lock fits in an integer, then arrange for Fortran to use that
17318 # integer. If it doesn't, then arrange for Fortran to use a pointer.
17319 # Except that we don't have a way at present to multi-lib the installed
17320 # Fortran modules, so we assume 8 bytes for pointers, regardless of the
17321 # actual target.
17322 OMP_LOCK_KIND=$OMP_LOCK_SIZE
17323 OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
17324 if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
17325 OMP_LOCK_KIND=8
17327 if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
17328 OMP_NEST_LOCK_KIND=8
17330 OMP_LOCK_25_KIND=$OMP_LOCK_25_SIZE
17331 OMP_NEST_LOCK_25_KIND=$OMP_NEST_LOCK_25_SIZE
17332 if test $OMP_LOCK_25_SIZE -gt 8 || test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then
17333 OMP_LOCK_25_KIND=8
17335 if test $OMP_NEST_LOCK_25_SIZE -gt 8 || test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then
17336 OMP_NEST_LOCK_25_KIND=8
17351 CFLAGS="$save_CFLAGS"
17353 # Determine what GCC version number to use in filesystem paths.
17355 get_gcc_base_ver="cat"
17357 # Check whether --with-gcc-major-version-only was given.
17358 if test "${with_gcc_major_version_only+set}" = set; then :
17359 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
17360 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
17368 ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
17370 ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
17372 ac_config_files="$ac_config_files testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in"
17374 cat >confcache <<\_ACEOF
17375 # This file is a shell script that caches the results of configure
17376 # tests run on this system so they can be shared between configure
17377 # scripts and configure runs, see configure's option --config-cache.
17378 # It is not useful on other systems. If it contains results you don't
17379 # want to keep, you may remove or edit it.
17381 # config.status only pays attention to the cache file if you give it
17382 # the --recheck option to rerun configure.
17384 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17385 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17386 # following values.
17388 _ACEOF
17390 # The following way of writing the cache mishandles newlines in values,
17391 # but we know of no workaround that is simple, portable, and efficient.
17392 # So, we kill variables containing newlines.
17393 # Ultrix sh set writes to stderr and can't be redirected directly,
17394 # and sets the high bit in the cache file unless we assign to the vars.
17396 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17397 eval ac_val=\$$ac_var
17398 case $ac_val in #(
17399 *${as_nl}*)
17400 case $ac_var in #(
17401 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17402 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17403 esac
17404 case $ac_var in #(
17405 _ | IFS | as_nl) ;; #(
17406 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17407 *) { eval $ac_var=; unset $ac_var;} ;;
17408 esac ;;
17409 esac
17410 done
17412 (set) 2>&1 |
17413 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17414 *${as_nl}ac_space=\ *)
17415 # `set' does not quote correctly, so add quotes: double-quote
17416 # substitution turns \\\\ into \\, and sed turns \\ into \.
17417 sed -n \
17418 "s/'/'\\\\''/g;
17419 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17420 ;; #(
17422 # `set' quotes correctly as required by POSIX, so do not add quotes.
17423 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17425 esac |
17426 sort
17428 sed '
17429 /^ac_cv_env_/b end
17430 t clear
17431 :clear
17432 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17433 t end
17434 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17435 :end' >>confcache
17436 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17437 if test -w "$cache_file"; then
17438 if test "x$cache_file" != "x/dev/null"; then
17439 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17440 $as_echo "$as_me: updating cache $cache_file" >&6;}
17441 if test ! -f "$cache_file" || test -h "$cache_file"; then
17442 cat confcache >"$cache_file"
17443 else
17444 case $cache_file in #(
17445 */* | ?:*)
17446 mv -f confcache "$cache_file"$$ &&
17447 mv -f "$cache_file"$$ "$cache_file" ;; #(
17449 mv -f confcache "$cache_file" ;;
17450 esac
17453 else
17454 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17455 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17458 rm -f confcache
17460 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17461 # Let make expand exec_prefix.
17462 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17464 DEFS=-DHAVE_CONFIG_H
17466 ac_libobjs=
17467 ac_ltlibobjs=
17469 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17470 # 1. Remove the extension, and $U if already installed.
17471 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17472 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17473 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17474 # will be set to the directory where LIBOBJS objects are built.
17475 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17476 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17477 done
17478 LIBOBJS=$ac_libobjs
17480 LTLIBOBJS=$ac_ltlibobjs
17483 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
17484 as_fn_error $? "conditional \"GENINSRC\" was never defined.
17485 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17488 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17489 if test -n "$am_sleep_pid"; then
17490 # Hide warnings about reused PIDs.
17491 wait $am_sleep_pid 2>/dev/null
17493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17494 $as_echo "done" >&6; }
17495 if test -n "$EXEEXT"; then
17496 am__EXEEXT_TRUE=
17497 am__EXEEXT_FALSE='#'
17498 else
17499 am__EXEEXT_TRUE='#'
17500 am__EXEEXT_FALSE=
17503 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17504 as_fn_error $? "conditional \"AMDEP\" was never defined.
17505 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17507 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17508 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17509 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17511 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
17512 as_fn_error $? "conditional \"BUILD_INFO\" was never defined.
17513 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17515 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17516 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17517 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17519 if test -z "${PLUGIN_NVPTX_TRUE}" && test -z "${PLUGIN_NVPTX_FALSE}"; then
17520 as_fn_error $? "conditional \"PLUGIN_NVPTX\" was never defined.
17521 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17523 if test -z "${PLUGIN_HSA_TRUE}" && test -z "${PLUGIN_HSA_FALSE}"; then
17524 as_fn_error $? "conditional \"PLUGIN_HSA\" was never defined.
17525 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17527 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
17528 as_fn_error $? "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
17529 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17531 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
17532 as_fn_error $? "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
17533 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17535 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
17536 as_fn_error $? "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
17537 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17539 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
17540 as_fn_error $? "conditional \"USE_FORTRAN\" was never defined.
17541 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17544 : "${CONFIG_STATUS=./config.status}"
17545 ac_write_fail=0
17546 ac_clean_files_save=$ac_clean_files
17547 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17548 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17549 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17550 as_write_fail=0
17551 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17552 #! $SHELL
17553 # Generated by $as_me.
17554 # Run this file to recreate the current configuration.
17555 # Compiler output produced by configure, useful for debugging
17556 # configure, is in config.log if it exists.
17558 debug=false
17559 ac_cs_recheck=false
17560 ac_cs_silent=false
17562 SHELL=\${CONFIG_SHELL-$SHELL}
17563 export SHELL
17564 _ASEOF
17565 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17566 ## -------------------- ##
17567 ## M4sh Initialization. ##
17568 ## -------------------- ##
17570 # Be more Bourne compatible
17571 DUALCASE=1; export DUALCASE # for MKS sh
17572 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17573 emulate sh
17574 NULLCMD=:
17575 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17576 # is contrary to our usage. Disable this feature.
17577 alias -g '${1+"$@"}'='"$@"'
17578 setopt NO_GLOB_SUBST
17579 else
17580 case `(set -o) 2>/dev/null` in #(
17581 *posix*) :
17582 set -o posix ;; #(
17583 *) :
17585 esac
17589 as_nl='
17591 export as_nl
17592 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17593 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17594 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17595 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17596 # Prefer a ksh shell builtin over an external printf program on Solaris,
17597 # but without wasting forks for bash or zsh.
17598 if test -z "$BASH_VERSION$ZSH_VERSION" \
17599 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17600 as_echo='print -r --'
17601 as_echo_n='print -rn --'
17602 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17603 as_echo='printf %s\n'
17604 as_echo_n='printf %s'
17605 else
17606 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17607 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17608 as_echo_n='/usr/ucb/echo -n'
17609 else
17610 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17611 as_echo_n_body='eval
17612 arg=$1;
17613 case $arg in #(
17614 *"$as_nl"*)
17615 expr "X$arg" : "X\\(.*\\)$as_nl";
17616 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17617 esac;
17618 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17620 export as_echo_n_body
17621 as_echo_n='sh -c $as_echo_n_body as_echo'
17623 export as_echo_body
17624 as_echo='sh -c $as_echo_body as_echo'
17627 # The user is always right.
17628 if test "${PATH_SEPARATOR+set}" != set; then
17629 PATH_SEPARATOR=:
17630 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17631 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17632 PATH_SEPARATOR=';'
17637 # IFS
17638 # We need space, tab and new line, in precisely that order. Quoting is
17639 # there to prevent editors from complaining about space-tab.
17640 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17641 # splitting by setting IFS to empty value.)
17642 IFS=" "" $as_nl"
17644 # Find who we are. Look in the path if we contain no directory separator.
17645 as_myself=
17646 case $0 in #((
17647 *[\\/]* ) as_myself=$0 ;;
17648 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17649 for as_dir in $PATH
17651 IFS=$as_save_IFS
17652 test -z "$as_dir" && as_dir=.
17653 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17654 done
17655 IFS=$as_save_IFS
17658 esac
17659 # We did not find ourselves, most probably we were run as `sh COMMAND'
17660 # in which case we are not to be found in the path.
17661 if test "x$as_myself" = x; then
17662 as_myself=$0
17664 if test ! -f "$as_myself"; then
17665 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17666 exit 1
17669 # Unset variables that we do not need and which cause bugs (e.g. in
17670 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17671 # suppresses any "Segmentation fault" message there. '((' could
17672 # trigger a bug in pdksh 5.2.14.
17673 for as_var in BASH_ENV ENV MAIL MAILPATH
17674 do eval test x\${$as_var+set} = xset \
17675 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17676 done
17677 PS1='$ '
17678 PS2='> '
17679 PS4='+ '
17681 # NLS nuisances.
17682 LC_ALL=C
17683 export LC_ALL
17684 LANGUAGE=C
17685 export LANGUAGE
17687 # CDPATH.
17688 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17691 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17692 # ----------------------------------------
17693 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17694 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17695 # script with STATUS, using 1 if that was 0.
17696 as_fn_error ()
17698 as_status=$1; test $as_status -eq 0 && as_status=1
17699 if test "$4"; then
17700 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17701 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17703 $as_echo "$as_me: error: $2" >&2
17704 as_fn_exit $as_status
17705 } # as_fn_error
17708 # as_fn_set_status STATUS
17709 # -----------------------
17710 # Set $? to STATUS, without forking.
17711 as_fn_set_status ()
17713 return $1
17714 } # as_fn_set_status
17716 # as_fn_exit STATUS
17717 # -----------------
17718 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17719 as_fn_exit ()
17721 set +e
17722 as_fn_set_status $1
17723 exit $1
17724 } # as_fn_exit
17726 # as_fn_unset VAR
17727 # ---------------
17728 # Portably unset VAR.
17729 as_fn_unset ()
17731 { eval $1=; unset $1;}
17733 as_unset=as_fn_unset
17734 # as_fn_append VAR VALUE
17735 # ----------------------
17736 # Append the text in VALUE to the end of the definition contained in VAR. Take
17737 # advantage of any shell optimizations that allow amortized linear growth over
17738 # repeated appends, instead of the typical quadratic growth present in naive
17739 # implementations.
17740 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17741 eval 'as_fn_append ()
17743 eval $1+=\$2
17745 else
17746 as_fn_append ()
17748 eval $1=\$$1\$2
17750 fi # as_fn_append
17752 # as_fn_arith ARG...
17753 # ------------------
17754 # Perform arithmetic evaluation on the ARGs, and store the result in the
17755 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17756 # must be portable across $(()) and expr.
17757 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17758 eval 'as_fn_arith ()
17760 as_val=$(( $* ))
17762 else
17763 as_fn_arith ()
17765 as_val=`expr "$@" || test $? -eq 1`
17767 fi # as_fn_arith
17770 if expr a : '\(a\)' >/dev/null 2>&1 &&
17771 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17772 as_expr=expr
17773 else
17774 as_expr=false
17777 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17778 as_basename=basename
17779 else
17780 as_basename=false
17783 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17784 as_dirname=dirname
17785 else
17786 as_dirname=false
17789 as_me=`$as_basename -- "$0" ||
17790 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17791 X"$0" : 'X\(//\)$' \| \
17792 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17793 $as_echo X/"$0" |
17794 sed '/^.*\/\([^/][^/]*\)\/*$/{
17795 s//\1/
17798 /^X\/\(\/\/\)$/{
17799 s//\1/
17802 /^X\/\(\/\).*/{
17803 s//\1/
17806 s/.*/./; q'`
17808 # Avoid depending upon Character Ranges.
17809 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17810 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17811 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17812 as_cr_digits='0123456789'
17813 as_cr_alnum=$as_cr_Letters$as_cr_digits
17815 ECHO_C= ECHO_N= ECHO_T=
17816 case `echo -n x` in #(((((
17817 -n*)
17818 case `echo 'xy\c'` in
17819 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17820 xy) ECHO_C='\c';;
17821 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17822 ECHO_T=' ';;
17823 esac;;
17825 ECHO_N='-n';;
17826 esac
17828 rm -f conf$$ conf$$.exe conf$$.file
17829 if test -d conf$$.dir; then
17830 rm -f conf$$.dir/conf$$.file
17831 else
17832 rm -f conf$$.dir
17833 mkdir conf$$.dir 2>/dev/null
17835 if (echo >conf$$.file) 2>/dev/null; then
17836 if ln -s conf$$.file conf$$ 2>/dev/null; then
17837 as_ln_s='ln -s'
17838 # ... but there are two gotchas:
17839 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17840 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17841 # In both cases, we have to default to `cp -pR'.
17842 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17843 as_ln_s='cp -pR'
17844 elif ln conf$$.file conf$$ 2>/dev/null; then
17845 as_ln_s=ln
17846 else
17847 as_ln_s='cp -pR'
17849 else
17850 as_ln_s='cp -pR'
17852 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17853 rmdir conf$$.dir 2>/dev/null
17856 # as_fn_mkdir_p
17857 # -------------
17858 # Create "$as_dir" as a directory, including parents if necessary.
17859 as_fn_mkdir_p ()
17862 case $as_dir in #(
17863 -*) as_dir=./$as_dir;;
17864 esac
17865 test -d "$as_dir" || eval $as_mkdir_p || {
17866 as_dirs=
17867 while :; do
17868 case $as_dir in #(
17869 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17870 *) as_qdir=$as_dir;;
17871 esac
17872 as_dirs="'$as_qdir' $as_dirs"
17873 as_dir=`$as_dirname -- "$as_dir" ||
17874 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17875 X"$as_dir" : 'X\(//\)[^/]' \| \
17876 X"$as_dir" : 'X\(//\)$' \| \
17877 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17878 $as_echo X"$as_dir" |
17879 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17880 s//\1/
17883 /^X\(\/\/\)[^/].*/{
17884 s//\1/
17887 /^X\(\/\/\)$/{
17888 s//\1/
17891 /^X\(\/\).*/{
17892 s//\1/
17895 s/.*/./; q'`
17896 test -d "$as_dir" && break
17897 done
17898 test -z "$as_dirs" || eval "mkdir $as_dirs"
17899 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17902 } # as_fn_mkdir_p
17903 if mkdir -p . 2>/dev/null; then
17904 as_mkdir_p='mkdir -p "$as_dir"'
17905 else
17906 test -d ./-p && rmdir ./-p
17907 as_mkdir_p=false
17911 # as_fn_executable_p FILE
17912 # -----------------------
17913 # Test if FILE is an executable regular file.
17914 as_fn_executable_p ()
17916 test -f "$1" && test -x "$1"
17917 } # as_fn_executable_p
17918 as_test_x='test -x'
17919 as_executable_p=as_fn_executable_p
17921 # Sed expression to map a string onto a valid CPP name.
17922 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17924 # Sed expression to map a string onto a valid variable name.
17925 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17928 exec 6>&1
17929 ## ----------------------------------- ##
17930 ## Main body of $CONFIG_STATUS script. ##
17931 ## ----------------------------------- ##
17932 _ASEOF
17933 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17935 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17936 # Save the log message, to keep $0 and so on meaningful, and to
17937 # report actual input values of CONFIG_FILES etc. instead of their
17938 # values after options handling.
17939 ac_log="
17940 This file was extended by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
17941 generated by GNU Autoconf 2.69. Invocation command line was
17943 CONFIG_FILES = $CONFIG_FILES
17944 CONFIG_HEADERS = $CONFIG_HEADERS
17945 CONFIG_LINKS = $CONFIG_LINKS
17946 CONFIG_COMMANDS = $CONFIG_COMMANDS
17947 $ $0 $@
17949 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17952 _ACEOF
17954 case $ac_config_files in *"
17955 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17956 esac
17958 case $ac_config_headers in *"
17959 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17960 esac
17963 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17964 # Files that config.status was made for.
17965 config_files="$ac_config_files"
17966 config_headers="$ac_config_headers"
17967 config_commands="$ac_config_commands"
17969 _ACEOF
17971 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17972 ac_cs_usage="\
17973 \`$as_me' instantiates files and other configuration actions
17974 from templates according to the current configuration. Unless the files
17975 and actions are specified as TAGs, all are instantiated by default.
17977 Usage: $0 [OPTION]... [TAG]...
17979 -h, --help print this help, then exit
17980 -V, --version print version number and configuration settings, then exit
17981 --config print configuration, then exit
17982 -q, --quiet, --silent
17983 do not print progress messages
17984 -d, --debug don't remove temporary files
17985 --recheck update $as_me by reconfiguring in the same conditions
17986 --file=FILE[:TEMPLATE]
17987 instantiate the configuration file FILE
17988 --header=FILE[:TEMPLATE]
17989 instantiate the configuration header FILE
17991 Configuration files:
17992 $config_files
17994 Configuration headers:
17995 $config_headers
17997 Configuration commands:
17998 $config_commands
18000 Report bugs to the package provider.
18001 GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
18002 General help using GNU software: <http://www.gnu.org/gethelp/>."
18004 _ACEOF
18005 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18006 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18007 ac_cs_version="\\
18008 GNU Offloading and Multi Processing Runtime Library config.status 1.0
18009 configured by $0, generated by GNU Autoconf 2.69,
18010 with options \\"\$ac_cs_config\\"
18012 Copyright (C) 2012 Free Software Foundation, Inc.
18013 This config.status script is free software; the Free Software Foundation
18014 gives unlimited permission to copy, distribute and modify it."
18016 ac_pwd='$ac_pwd'
18017 srcdir='$srcdir'
18018 INSTALL='$INSTALL'
18019 MKDIR_P='$MKDIR_P'
18020 AWK='$AWK'
18021 test -n "\$AWK" || AWK=awk
18022 _ACEOF
18024 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18025 # The default lists apply if the user does not specify any file.
18026 ac_need_defaults=:
18027 while test $# != 0
18029 case $1 in
18030 --*=?*)
18031 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18032 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18033 ac_shift=:
18035 --*=)
18036 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18037 ac_optarg=
18038 ac_shift=:
18041 ac_option=$1
18042 ac_optarg=$2
18043 ac_shift=shift
18045 esac
18047 case $ac_option in
18048 # Handling of the options.
18049 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18050 ac_cs_recheck=: ;;
18051 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18052 $as_echo "$ac_cs_version"; exit ;;
18053 --config | --confi | --conf | --con | --co | --c )
18054 $as_echo "$ac_cs_config"; exit ;;
18055 --debug | --debu | --deb | --de | --d | -d )
18056 debug=: ;;
18057 --file | --fil | --fi | --f )
18058 $ac_shift
18059 case $ac_optarg in
18060 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18061 '') as_fn_error $? "missing file argument" ;;
18062 esac
18063 as_fn_append CONFIG_FILES " '$ac_optarg'"
18064 ac_need_defaults=false;;
18065 --header | --heade | --head | --hea )
18066 $ac_shift
18067 case $ac_optarg in
18068 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18069 esac
18070 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18071 ac_need_defaults=false;;
18072 --he | --h)
18073 # Conflict between --help and --header
18074 as_fn_error $? "ambiguous option: \`$1'
18075 Try \`$0 --help' for more information.";;
18076 --help | --hel | -h )
18077 $as_echo "$ac_cs_usage"; exit ;;
18078 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18079 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18080 ac_cs_silent=: ;;
18082 # This is an error.
18083 -*) as_fn_error $? "unrecognized option: \`$1'
18084 Try \`$0 --help' for more information." ;;
18086 *) as_fn_append ac_config_targets " $1"
18087 ac_need_defaults=false ;;
18089 esac
18090 shift
18091 done
18093 ac_configure_extra_args=
18095 if $ac_cs_silent; then
18096 exec 6>/dev/null
18097 ac_configure_extra_args="$ac_configure_extra_args --silent"
18100 _ACEOF
18101 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18102 if \$ac_cs_recheck; then
18103 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18104 shift
18105 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18106 CONFIG_SHELL='$SHELL'
18107 export CONFIG_SHELL
18108 exec "\$@"
18111 _ACEOF
18112 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18113 exec 5>>config.log
18115 echo
18116 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18117 ## Running $as_me. ##
18118 _ASBOX
18119 $as_echo "$ac_log"
18120 } >&5
18122 _ACEOF
18123 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18125 # INIT-COMMANDS
18128 srcdir="$srcdir"
18129 host="$host"
18130 target="$target"
18131 with_multisubdir="$with_multisubdir"
18132 with_multisrctop="$with_multisrctop"
18133 with_target_subdir="$with_target_subdir"
18134 ac_configure_args="${multilib_arg} ${ac_configure_args}"
18135 multi_basedir="$multi_basedir"
18136 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
18137 CC="$CC"
18138 CXX="$CXX"
18139 GFORTRAN="$GFORTRAN"
18140 GDC="$GDC"
18141 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18144 # The HP-UX ksh and POSIX shell print the target directory to stdout
18145 # if CDPATH is set.
18146 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18148 sed_quote_subst='$sed_quote_subst'
18149 double_quote_subst='$double_quote_subst'
18150 delay_variable_subst='$delay_variable_subst'
18151 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18152 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18153 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18154 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18155 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18156 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18157 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18158 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18159 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18160 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18161 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18162 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18163 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18164 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18165 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18166 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18167 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18168 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18169 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18170 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18171 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18172 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18173 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18174 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18175 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18176 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18177 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18178 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18179 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18180 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18181 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18182 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18183 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18184 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18185 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18186 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18187 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18188 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18189 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18190 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18191 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18192 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18193 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18194 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18195 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18196 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18197 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18198 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18199 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"`'
18200 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18201 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18202 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18203 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18204 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18205 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18206 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18207 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18208 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18209 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18210 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18211 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18212 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18213 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18214 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18215 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18216 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18217 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18218 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18219 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18220 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18221 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18222 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18223 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18224 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18225 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18226 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18227 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18228 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18229 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18230 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18231 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18232 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18233 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18234 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18235 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18236 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18237 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18238 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18239 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18240 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
18241 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18242 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18243 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18244 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18245 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18246 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18247 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18248 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18249 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18250 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18251 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18252 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18253 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18254 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18255 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18256 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18257 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18258 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18259 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18260 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18261 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18262 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18263 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18264 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18265 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18266 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18267 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18268 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18269 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18270 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18271 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18272 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18273 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18274 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18275 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18276 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18277 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
18278 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
18279 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
18280 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
18281 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
18282 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
18283 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
18284 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
18285 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
18286 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
18287 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
18288 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
18289 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
18290 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
18291 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
18292 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
18293 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
18294 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
18295 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
18296 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
18297 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
18298 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
18299 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
18300 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
18301 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
18302 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
18303 hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
18304 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
18305 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
18306 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
18307 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
18308 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
18309 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
18310 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
18311 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
18312 fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
18313 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
18314 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
18315 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
18316 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
18317 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
18318 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
18319 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
18320 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
18321 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
18322 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
18323 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
18324 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
18325 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
18327 LTCC='$LTCC'
18328 LTCFLAGS='$LTCFLAGS'
18329 compiler='$compiler_DEFAULT'
18331 # A function that is used when there is no print builtin or printf.
18332 func_fallback_echo ()
18334 eval 'cat <<_LTECHO_EOF
18336 _LTECHO_EOF'
18339 # Quote evaled strings.
18340 for var in SHELL \
18341 ECHO \
18342 SED \
18343 GREP \
18344 EGREP \
18345 FGREP \
18346 LD \
18347 NM \
18348 LN_S \
18349 lt_SP2NL \
18350 lt_NL2SP \
18351 reload_flag \
18352 OBJDUMP \
18353 deplibs_check_method \
18354 file_magic_cmd \
18355 AR \
18356 AR_FLAGS \
18357 STRIP \
18358 RANLIB \
18359 CC \
18360 CFLAGS \
18361 compiler \
18362 lt_cv_sys_global_symbol_pipe \
18363 lt_cv_sys_global_symbol_to_cdecl \
18364 lt_cv_sys_global_symbol_to_c_name_address \
18365 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18366 lt_prog_compiler_no_builtin_flag \
18367 lt_prog_compiler_wl \
18368 lt_prog_compiler_pic \
18369 lt_prog_compiler_static \
18370 lt_cv_prog_compiler_c_o \
18371 need_locks \
18372 DSYMUTIL \
18373 NMEDIT \
18374 LIPO \
18375 OTOOL \
18376 OTOOL64 \
18377 shrext_cmds \
18378 export_dynamic_flag_spec \
18379 whole_archive_flag_spec \
18380 compiler_needs_object \
18381 with_gnu_ld \
18382 allow_undefined_flag \
18383 no_undefined_flag \
18384 hardcode_libdir_flag_spec \
18385 hardcode_libdir_flag_spec_ld \
18386 hardcode_libdir_separator \
18387 fix_srcfile_path \
18388 exclude_expsyms \
18389 include_expsyms \
18390 file_list_spec \
18391 variables_saved_for_relink \
18392 libname_spec \
18393 library_names_spec \
18394 soname_spec \
18395 install_override_mode \
18396 finish_eval \
18397 old_striplib \
18398 striplib \
18399 compiler_lib_search_dirs \
18400 predep_objects \
18401 postdep_objects \
18402 predeps \
18403 postdeps \
18404 compiler_lib_search_path \
18405 LD_FC \
18406 reload_flag_FC \
18407 compiler_FC \
18408 lt_prog_compiler_no_builtin_flag_FC \
18409 lt_prog_compiler_wl_FC \
18410 lt_prog_compiler_pic_FC \
18411 lt_prog_compiler_static_FC \
18412 lt_cv_prog_compiler_c_o_FC \
18413 export_dynamic_flag_spec_FC \
18414 whole_archive_flag_spec_FC \
18415 compiler_needs_object_FC \
18416 with_gnu_ld_FC \
18417 allow_undefined_flag_FC \
18418 no_undefined_flag_FC \
18419 hardcode_libdir_flag_spec_FC \
18420 hardcode_libdir_flag_spec_ld_FC \
18421 hardcode_libdir_separator_FC \
18422 fix_srcfile_path_FC \
18423 exclude_expsyms_FC \
18424 include_expsyms_FC \
18425 file_list_spec_FC \
18426 compiler_lib_search_dirs_FC \
18427 predep_objects_FC \
18428 postdep_objects_FC \
18429 predeps_FC \
18430 postdeps_FC \
18431 compiler_lib_search_path_FC; do
18432 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18433 *[\\\\\\\`\\"\\\$]*)
18434 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18437 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18439 esac
18440 done
18442 # Double-quote double-evaled strings.
18443 for var in reload_cmds \
18444 old_postinstall_cmds \
18445 old_postuninstall_cmds \
18446 old_archive_cmds \
18447 extract_expsyms_cmds \
18448 old_archive_from_new_cmds \
18449 old_archive_from_expsyms_cmds \
18450 archive_cmds \
18451 archive_expsym_cmds \
18452 module_cmds \
18453 module_expsym_cmds \
18454 export_symbols_cmds \
18455 prelink_cmds \
18456 postinstall_cmds \
18457 postuninstall_cmds \
18458 finish_cmds \
18459 sys_lib_search_path_spec \
18460 sys_lib_dlsearch_path_spec \
18461 reload_cmds_FC \
18462 old_archive_cmds_FC \
18463 old_archive_from_new_cmds_FC \
18464 old_archive_from_expsyms_cmds_FC \
18465 archive_cmds_FC \
18466 archive_expsym_cmds_FC \
18467 module_cmds_FC \
18468 module_expsym_cmds_FC \
18469 export_symbols_cmds_FC \
18470 prelink_cmds_FC; do
18471 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18472 *[\\\\\\\`\\"\\\$]*)
18473 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18476 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18478 esac
18479 done
18481 ac_aux_dir='$ac_aux_dir'
18482 xsi_shell='$xsi_shell'
18483 lt_shell_append='$lt_shell_append'
18485 # See if we are running on zsh, and set the options which allow our
18486 # commands through without removal of \ escapes INIT.
18487 if test -n "\${ZSH_VERSION+set}" ; then
18488 setopt NO_GLOB_SUBST
18492 PACKAGE='$PACKAGE'
18493 VERSION='$VERSION'
18494 TIMESTAMP='$TIMESTAMP'
18495 RM='$RM'
18496 ofile='$ofile'
18503 GCC="$GCC"
18504 CC="$CC"
18505 acx_cv_header_stdint="$acx_cv_header_stdint"
18506 acx_cv_type_int8_t="$acx_cv_type_int8_t"
18507 acx_cv_type_int16_t="$acx_cv_type_int16_t"
18508 acx_cv_type_int32_t="$acx_cv_type_int32_t"
18509 acx_cv_type_int64_t="$acx_cv_type_int64_t"
18510 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
18511 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
18512 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
18513 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
18514 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
18515 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
18516 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
18517 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
18518 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
18521 _ACEOF
18523 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18525 # Handling of arguments.
18526 for ac_config_target in $ac_config_targets
18528 case $ac_config_target in
18529 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18530 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18531 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18532 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18533 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
18534 "omp.h") CONFIG_FILES="$CONFIG_FILES omp.h" ;;
18535 "omp_lib.h") CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
18536 "omp_lib.f90") CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
18537 "libgomp_f.h") CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
18538 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18539 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
18540 "libgomp.spec") CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
18541 "testsuite/libgomp-test-support.pt.exp") CONFIG_FILES="$CONFIG_FILES testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in" ;;
18543 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18544 esac
18545 done
18548 # If the user did not use the arguments to specify the items to instantiate,
18549 # then the envvar interface is used. Set only those that are not.
18550 # We use the long form for the default assignment because of an extremely
18551 # bizarre bug on SunOS 4.1.3.
18552 if $ac_need_defaults; then
18553 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18554 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18555 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18558 # Have a temporary directory for convenience. Make it in the build tree
18559 # simply because there is no reason against having it here, and in addition,
18560 # creating and moving files from /tmp can sometimes cause problems.
18561 # Hook for its removal unless debugging.
18562 # Note that there is a small window in which the directory will not be cleaned:
18563 # after its creation but before its name has been assigned to `$tmp'.
18564 $debug ||
18566 tmp= ac_tmp=
18567 trap 'exit_status=$?
18568 : "${ac_tmp:=$tmp}"
18569 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18571 trap 'as_fn_exit 1' 1 2 13 15
18573 # Create a (secure) tmp directory for tmp files.
18576 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18577 test -d "$tmp"
18578 } ||
18580 tmp=./conf$$-$RANDOM
18581 (umask 077 && mkdir "$tmp")
18582 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18583 ac_tmp=$tmp
18585 # Set up the scripts for CONFIG_FILES section.
18586 # No need to generate them if there are no CONFIG_FILES.
18587 # This happens for instance with `./config.status config.h'.
18588 if test -n "$CONFIG_FILES"; then
18591 ac_cr=`echo X | tr X '\015'`
18592 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18593 # But we know of no other shell where ac_cr would be empty at this
18594 # point, so we can use a bashism as a fallback.
18595 if test "x$ac_cr" = x; then
18596 eval ac_cr=\$\'\\r\'
18598 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18599 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18600 ac_cs_awk_cr='\\r'
18601 else
18602 ac_cs_awk_cr=$ac_cr
18605 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18606 _ACEOF
18610 echo "cat >conf$$subs.awk <<_ACEOF" &&
18611 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18612 echo "_ACEOF"
18613 } >conf$$subs.sh ||
18614 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18615 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18616 ac_delim='%!_!# '
18617 for ac_last_try in false false false false false :; do
18618 . ./conf$$subs.sh ||
18619 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18621 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18622 if test $ac_delim_n = $ac_delim_num; then
18623 break
18624 elif $ac_last_try; then
18625 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18626 else
18627 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18629 done
18630 rm -f conf$$subs.sh
18632 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18633 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18634 _ACEOF
18635 sed -n '
18637 s/^/S["/; s/!.*/"]=/
18640 s/^[^!]*!//
18641 :repl
18642 t repl
18643 s/'"$ac_delim"'$//
18644 t delim
18647 s/\(.\{148\}\)..*/\1/
18648 t more1
18649 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18652 b repl
18653 :more1
18654 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18657 s/.\{148\}//
18658 t nl
18659 :delim
18661 s/\(.\{148\}\)..*/\1/
18662 t more2
18663 s/["\\]/\\&/g; s/^/"/; s/$/"/
18666 :more2
18667 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18670 s/.\{148\}//
18671 t delim
18672 ' <conf$$subs.awk | sed '
18673 /^[^""]/{
18675 s/\n//
18677 ' >>$CONFIG_STATUS || ac_write_fail=1
18678 rm -f conf$$subs.awk
18679 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18680 _ACAWK
18681 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18682 for (key in S) S_is_set[key] = 1
18683 FS = "\a"
18687 line = $ 0
18688 nfields = split(line, field, "@")
18689 substed = 0
18690 len = length(field[1])
18691 for (i = 2; i < nfields; i++) {
18692 key = field[i]
18693 keylen = length(key)
18694 if (S_is_set[key]) {
18695 value = S[key]
18696 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18697 len += length(value) + length(field[++i])
18698 substed = 1
18699 } else
18700 len += 1 + keylen
18703 print line
18706 _ACAWK
18707 _ACEOF
18708 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18709 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18710 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18711 else
18713 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18714 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18715 _ACEOF
18717 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18718 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18719 # trailing colons and then remove the whole line if VPATH becomes empty
18720 # (actually we leave an empty line to preserve line numbers).
18721 if test "x$srcdir" = x.; then
18722 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18724 s///
18725 s/^/:/
18726 s/[ ]*$/:/
18727 s/:\$(srcdir):/:/g
18728 s/:\${srcdir}:/:/g
18729 s/:@srcdir@:/:/g
18730 s/^:*//
18731 s/:*$//
18733 s/\(=[ ]*\).*/\1/
18735 s/\n//
18736 s/^[^=]*=[ ]*$//
18740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18741 fi # test -n "$CONFIG_FILES"
18743 # Set up the scripts for CONFIG_HEADERS section.
18744 # No need to generate them if there are no CONFIG_HEADERS.
18745 # This happens for instance with `./config.status Makefile'.
18746 if test -n "$CONFIG_HEADERS"; then
18747 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18748 BEGIN {
18749 _ACEOF
18751 # Transform confdefs.h into an awk script `defines.awk', embedded as
18752 # here-document in config.status, that substitutes the proper values into
18753 # config.h.in to produce config.h.
18755 # Create a delimiter string that does not exist in confdefs.h, to ease
18756 # handling of long lines.
18757 ac_delim='%!_!# '
18758 for ac_last_try in false false :; do
18759 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18760 if test -z "$ac_tt"; then
18761 break
18762 elif $ac_last_try; then
18763 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18764 else
18765 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18767 done
18769 # For the awk script, D is an array of macro values keyed by name,
18770 # likewise P contains macro parameters if any. Preserve backslash
18771 # newline sequences.
18773 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18774 sed -n '
18775 s/.\{148\}/&'"$ac_delim"'/g
18776 t rset
18777 :rset
18778 s/^[ ]*#[ ]*define[ ][ ]*/ /
18779 t def
18781 :def
18782 s/\\$//
18783 t bsnl
18784 s/["\\]/\\&/g
18785 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18786 D["\1"]=" \3"/p
18787 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18789 :bsnl
18790 s/["\\]/\\&/g
18791 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18792 D["\1"]=" \3\\\\\\n"\\/p
18793 t cont
18794 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18795 t cont
18797 :cont
18799 s/.\{148\}/&'"$ac_delim"'/g
18800 t clear
18801 :clear
18802 s/\\$//
18803 t bsnlc
18804 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18806 :bsnlc
18807 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18808 b cont
18809 ' <confdefs.h | sed '
18810 s/'"$ac_delim"'/"\\\
18811 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18813 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18814 for (key in D) D_is_set[key] = 1
18815 FS = "\a"
18817 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18818 line = \$ 0
18819 split(line, arg, " ")
18820 if (arg[1] == "#") {
18821 defundef = arg[2]
18822 mac1 = arg[3]
18823 } else {
18824 defundef = substr(arg[1], 2)
18825 mac1 = arg[2]
18827 split(mac1, mac2, "(") #)
18828 macro = mac2[1]
18829 prefix = substr(line, 1, index(line, defundef) - 1)
18830 if (D_is_set[macro]) {
18831 # Preserve the white space surrounding the "#".
18832 print prefix "define", macro P[macro] D[macro]
18833 next
18834 } else {
18835 # Replace #undef with comments. This is necessary, for example,
18836 # in the case of _POSIX_SOURCE, which is predefined and required
18837 # on some systems where configure will not decide to define it.
18838 if (defundef == "undef") {
18839 print "/*", prefix defundef, macro, "*/"
18840 next
18844 { print }
18845 _ACAWK
18846 _ACEOF
18847 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18848 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18849 fi # test -n "$CONFIG_HEADERS"
18852 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18853 shift
18854 for ac_tag
18856 case $ac_tag in
18857 :[FHLC]) ac_mode=$ac_tag; continue;;
18858 esac
18859 case $ac_mode$ac_tag in
18860 :[FHL]*:*);;
18861 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18862 :[FH]-) ac_tag=-:-;;
18863 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18864 esac
18865 ac_save_IFS=$IFS
18866 IFS=:
18867 set x $ac_tag
18868 IFS=$ac_save_IFS
18869 shift
18870 ac_file=$1
18871 shift
18873 case $ac_mode in
18874 :L) ac_source=$1;;
18875 :[FH])
18876 ac_file_inputs=
18877 for ac_f
18879 case $ac_f in
18880 -) ac_f="$ac_tmp/stdin";;
18881 *) # Look for the file first in the build tree, then in the source tree
18882 # (if the path is not absolute). The absolute path cannot be DOS-style,
18883 # because $ac_f cannot contain `:'.
18884 test -f "$ac_f" ||
18885 case $ac_f in
18886 [\\/$]*) false;;
18887 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18888 esac ||
18889 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18890 esac
18891 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18892 as_fn_append ac_file_inputs " '$ac_f'"
18893 done
18895 # Let's still pretend it is `configure' which instantiates (i.e., don't
18896 # use $as_me), people would be surprised to read:
18897 # /* config.h. Generated by config.status. */
18898 configure_input='Generated from '`
18899 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18900 `' by configure.'
18901 if test x"$ac_file" != x-; then
18902 configure_input="$ac_file. $configure_input"
18903 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18904 $as_echo "$as_me: creating $ac_file" >&6;}
18906 # Neutralize special characters interpreted by sed in replacement strings.
18907 case $configure_input in #(
18908 *\&* | *\|* | *\\* )
18909 ac_sed_conf_input=`$as_echo "$configure_input" |
18910 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18911 *) ac_sed_conf_input=$configure_input;;
18912 esac
18914 case $ac_tag in
18915 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18916 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18917 esac
18919 esac
18921 ac_dir=`$as_dirname -- "$ac_file" ||
18922 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18923 X"$ac_file" : 'X\(//\)[^/]' \| \
18924 X"$ac_file" : 'X\(//\)$' \| \
18925 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18926 $as_echo X"$ac_file" |
18927 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18928 s//\1/
18931 /^X\(\/\/\)[^/].*/{
18932 s//\1/
18935 /^X\(\/\/\)$/{
18936 s//\1/
18939 /^X\(\/\).*/{
18940 s//\1/
18943 s/.*/./; q'`
18944 as_dir="$ac_dir"; as_fn_mkdir_p
18945 ac_builddir=.
18947 case "$ac_dir" in
18948 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18950 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18951 # A ".." for each directory in $ac_dir_suffix.
18952 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18953 case $ac_top_builddir_sub in
18954 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18955 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18956 esac ;;
18957 esac
18958 ac_abs_top_builddir=$ac_pwd
18959 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18960 # for backward compatibility:
18961 ac_top_builddir=$ac_top_build_prefix
18963 case $srcdir in
18964 .) # We are building in place.
18965 ac_srcdir=.
18966 ac_top_srcdir=$ac_top_builddir_sub
18967 ac_abs_top_srcdir=$ac_pwd ;;
18968 [\\/]* | ?:[\\/]* ) # Absolute name.
18969 ac_srcdir=$srcdir$ac_dir_suffix;
18970 ac_top_srcdir=$srcdir
18971 ac_abs_top_srcdir=$srcdir ;;
18972 *) # Relative name.
18973 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18974 ac_top_srcdir=$ac_top_build_prefix$srcdir
18975 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18976 esac
18977 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18980 case $ac_mode in
18983 # CONFIG_FILE
18986 case $INSTALL in
18987 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18988 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18989 esac
18990 ac_MKDIR_P=$MKDIR_P
18991 case $MKDIR_P in
18992 [\\/$]* | ?:[\\/]* ) ;;
18993 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18994 esac
18995 _ACEOF
18997 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18998 # If the template does not know about datarootdir, expand it.
18999 # FIXME: This hack should be removed a few years after 2.60.
19000 ac_datarootdir_hack=; ac_datarootdir_seen=
19001 ac_sed_dataroot='
19002 /datarootdir/ {
19006 /@datadir@/p
19007 /@docdir@/p
19008 /@infodir@/p
19009 /@localedir@/p
19010 /@mandir@/p'
19011 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19012 *datarootdir*) ac_datarootdir_seen=yes;;
19013 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19015 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19016 _ACEOF
19017 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19018 ac_datarootdir_hack='
19019 s&@datadir@&$datadir&g
19020 s&@docdir@&$docdir&g
19021 s&@infodir@&$infodir&g
19022 s&@localedir@&$localedir&g
19023 s&@mandir@&$mandir&g
19024 s&\\\${datarootdir}&$datarootdir&g' ;;
19025 esac
19026 _ACEOF
19028 # Neutralize VPATH when `$srcdir' = `.'.
19029 # Shell code in configure.ac might set extrasub.
19030 # FIXME: do we really want to maintain this feature?
19031 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19032 ac_sed_extra="$ac_vpsub
19033 $extrasub
19034 _ACEOF
19035 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19037 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19038 s|@configure_input@|$ac_sed_conf_input|;t t
19039 s&@top_builddir@&$ac_top_builddir_sub&;t t
19040 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19041 s&@srcdir@&$ac_srcdir&;t t
19042 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19043 s&@top_srcdir@&$ac_top_srcdir&;t t
19044 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19045 s&@builddir@&$ac_builddir&;t t
19046 s&@abs_builddir@&$ac_abs_builddir&;t t
19047 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19048 s&@INSTALL@&$ac_INSTALL&;t t
19049 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19050 $ac_datarootdir_hack
19052 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19053 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19055 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19056 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19057 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19058 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19060 which seems to be undefined. Please make sure it is defined" >&5
19061 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19062 which seems to be undefined. Please make sure it is defined" >&2;}
19064 rm -f "$ac_tmp/stdin"
19065 case $ac_file in
19066 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19067 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19068 esac \
19069 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19073 # CONFIG_HEADER
19075 if test x"$ac_file" != x-; then
19077 $as_echo "/* $configure_input */" \
19078 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19079 } >"$ac_tmp/config.h" \
19080 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19081 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19082 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19083 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19084 else
19085 rm -f "$ac_file"
19086 mv "$ac_tmp/config.h" "$ac_file" \
19087 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19089 else
19090 $as_echo "/* $configure_input */" \
19091 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19092 || as_fn_error $? "could not create -" "$LINENO" 5
19094 # Compute "$ac_file"'s index in $config_headers.
19095 _am_arg="$ac_file"
19096 _am_stamp_count=1
19097 for _am_header in $config_headers :; do
19098 case $_am_header in
19099 $_am_arg | $_am_arg:* )
19100 break ;;
19102 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19103 esac
19104 done
19105 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19106 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19107 X"$_am_arg" : 'X\(//\)[^/]' \| \
19108 X"$_am_arg" : 'X\(//\)$' \| \
19109 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19110 $as_echo X"$_am_arg" |
19111 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19112 s//\1/
19115 /^X\(\/\/\)[^/].*/{
19116 s//\1/
19119 /^X\(\/\/\)$/{
19120 s//\1/
19123 /^X\(\/\).*/{
19124 s//\1/
19127 s/.*/./; q'`/stamp-h$_am_stamp_count
19130 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19131 $as_echo "$as_me: executing $ac_file commands" >&6;}
19133 esac
19136 case $ac_file$ac_mode in
19137 "default-1":C)
19138 # Only add multilib support code if we just rebuilt the top-level
19139 # Makefile.
19140 case " $CONFIG_FILES " in
19141 *" Makefile "*)
19142 ac_file=Makefile . ${multi_basedir}/config-ml.in
19144 esac ;;
19145 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19146 # Older Autoconf quotes --file arguments for eval, but not when files
19147 # are listed without --file. Let's play safe and only enable the eval
19148 # if we detect the quoting.
19149 case $CONFIG_FILES in
19150 *\'*) eval set x "$CONFIG_FILES" ;;
19151 *) set x $CONFIG_FILES ;;
19152 esac
19153 shift
19154 for mf
19156 # Strip MF so we end up with the name of the file.
19157 mf=`echo "$mf" | sed -e 's/:.*$//'`
19158 # Check whether this is an Automake generated Makefile or not.
19159 # We used to match only the files named 'Makefile.in', but
19160 # some people rename them; so instead we look at the file content.
19161 # Grep'ing the first line is not enough: some people post-process
19162 # each Makefile.in and add a new line on top of each file to say so.
19163 # Grep'ing the whole file is not good either: AIX grep has a line
19164 # limit of 2048, but all sed's we know have understand at least 4000.
19165 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19166 dirpart=`$as_dirname -- "$mf" ||
19167 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19168 X"$mf" : 'X\(//\)[^/]' \| \
19169 X"$mf" : 'X\(//\)$' \| \
19170 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19171 $as_echo X"$mf" |
19172 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19173 s//\1/
19176 /^X\(\/\/\)[^/].*/{
19177 s//\1/
19180 /^X\(\/\/\)$/{
19181 s//\1/
19184 /^X\(\/\).*/{
19185 s//\1/
19188 s/.*/./; q'`
19189 else
19190 continue
19192 # Extract the definition of DEPDIR, am__include, and am__quote
19193 # from the Makefile without running 'make'.
19194 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19195 test -z "$DEPDIR" && continue
19196 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19197 test -z "$am__include" && continue
19198 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19199 # Find all dependency output files, they are included files with
19200 # $(DEPDIR) in their names. We invoke sed twice because it is the
19201 # simplest approach to changing $(DEPDIR) to its actual value in the
19202 # expansion.
19203 for file in `sed -n "
19204 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19205 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19206 # Make sure the directory exists.
19207 test -f "$dirpart/$file" && continue
19208 fdir=`$as_dirname -- "$file" ||
19209 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19210 X"$file" : 'X\(//\)[^/]' \| \
19211 X"$file" : 'X\(//\)$' \| \
19212 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19213 $as_echo X"$file" |
19214 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19215 s//\1/
19218 /^X\(\/\/\)[^/].*/{
19219 s//\1/
19222 /^X\(\/\/\)$/{
19223 s//\1/
19226 /^X\(\/\).*/{
19227 s//\1/
19230 s/.*/./; q'`
19231 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19232 # echo "creating $dirpart/$file"
19233 echo '# dummy' > "$dirpart/$file"
19234 done
19235 done
19238 "libtool":C)
19240 # See if we are running on zsh, and set the options which allow our
19241 # commands through without removal of \ escapes.
19242 if test -n "${ZSH_VERSION+set}" ; then
19243 setopt NO_GLOB_SUBST
19246 cfgfile="${ofile}T"
19247 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19248 $RM "$cfgfile"
19250 cat <<_LT_EOF >> "$cfgfile"
19251 #! $SHELL
19253 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19254 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19255 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19256 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19258 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19259 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
19260 # Written by Gordon Matzigkeit, 1996
19262 # This file is part of GNU Libtool.
19264 # GNU Libtool is free software; you can redistribute it and/or
19265 # modify it under the terms of the GNU General Public License as
19266 # published by the Free Software Foundation; either version 2 of
19267 # the License, or (at your option) any later version.
19269 # As a special exception to the GNU General Public License,
19270 # if you distribute this file as part of a program or library that
19271 # is built using GNU Libtool, you may include this file under the
19272 # same distribution terms that you use for the rest of that program.
19274 # GNU Libtool is distributed in the hope that it will be useful,
19275 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19276 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19277 # GNU General Public License for more details.
19279 # You should have received a copy of the GNU General Public License
19280 # along with GNU Libtool; see the file COPYING. If not, a copy
19281 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19282 # obtained by writing to the Free Software Foundation, Inc.,
19283 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19286 # The names of the tagged configurations supported by this script.
19287 available_tags="FC "
19289 # ### BEGIN LIBTOOL CONFIG
19291 # Which release of libtool.m4 was used?
19292 macro_version=$macro_version
19293 macro_revision=$macro_revision
19295 # Whether or not to build shared libraries.
19296 build_libtool_libs=$enable_shared
19298 # Whether or not to build static libraries.
19299 build_old_libs=$enable_static
19301 # What type of objects to build.
19302 pic_mode=$pic_mode
19304 # Whether or not to optimize for fast installation.
19305 fast_install=$enable_fast_install
19307 # Shell to use when invoking shell scripts.
19308 SHELL=$lt_SHELL
19310 # An echo program that protects backslashes.
19311 ECHO=$lt_ECHO
19313 # The host system.
19314 host_alias=$host_alias
19315 host=$host
19316 host_os=$host_os
19318 # The build system.
19319 build_alias=$build_alias
19320 build=$build
19321 build_os=$build_os
19323 # A sed program that does not truncate output.
19324 SED=$lt_SED
19326 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19327 Xsed="\$SED -e 1s/^X//"
19329 # A grep program that handles long lines.
19330 GREP=$lt_GREP
19332 # An ERE matcher.
19333 EGREP=$lt_EGREP
19335 # A literal string matcher.
19336 FGREP=$lt_FGREP
19338 # A BSD- or MS-compatible name lister.
19339 NM=$lt_NM
19341 # Whether we need soft or hard links.
19342 LN_S=$lt_LN_S
19344 # What is the maximum length of a command?
19345 max_cmd_len=$max_cmd_len
19347 # Object file suffix (normally "o").
19348 objext=$ac_objext
19350 # Executable file suffix (normally "").
19351 exeext=$exeext
19353 # whether the shell understands "unset".
19354 lt_unset=$lt_unset
19356 # turn spaces into newlines.
19357 SP2NL=$lt_lt_SP2NL
19359 # turn newlines into spaces.
19360 NL2SP=$lt_lt_NL2SP
19362 # An object symbol dumper.
19363 OBJDUMP=$lt_OBJDUMP
19365 # Method to check whether dependent libraries are shared objects.
19366 deplibs_check_method=$lt_deplibs_check_method
19368 # Command to use when deplibs_check_method == "file_magic".
19369 file_magic_cmd=$lt_file_magic_cmd
19371 # The archiver.
19372 AR=$lt_AR
19373 AR_FLAGS=$lt_AR_FLAGS
19375 # A symbol stripping program.
19376 STRIP=$lt_STRIP
19378 # Commands used to install an old-style archive.
19379 RANLIB=$lt_RANLIB
19380 old_postinstall_cmds=$lt_old_postinstall_cmds
19381 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19383 # Whether to use a lock for old archive extraction.
19384 lock_old_archive_extraction=$lock_old_archive_extraction
19386 # A C compiler.
19387 LTCC=$lt_CC
19389 # LTCC compiler flags.
19390 LTCFLAGS=$lt_CFLAGS
19392 # Take the output of nm and produce a listing of raw symbols and C names.
19393 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19395 # Transform the output of nm in a proper C declaration.
19396 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19398 # Transform the output of nm in a C name address pair.
19399 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19401 # Transform the output of nm in a C name address pair when lib prefix is needed.
19402 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19404 # The name of the directory that contains temporary libtool files.
19405 objdir=$objdir
19407 # Used to examine libraries when file_magic_cmd begins with "file".
19408 MAGIC_CMD=$MAGIC_CMD
19410 # Must we lock files when doing compilation?
19411 need_locks=$lt_need_locks
19413 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19414 DSYMUTIL=$lt_DSYMUTIL
19416 # Tool to change global to local symbols on Mac OS X.
19417 NMEDIT=$lt_NMEDIT
19419 # Tool to manipulate fat objects and archives on Mac OS X.
19420 LIPO=$lt_LIPO
19422 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19423 OTOOL=$lt_OTOOL
19425 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19426 OTOOL64=$lt_OTOOL64
19428 # Old archive suffix (normally "a").
19429 libext=$libext
19431 # Shared library suffix (normally ".so").
19432 shrext_cmds=$lt_shrext_cmds
19434 # The commands to extract the exported symbol list from a shared archive.
19435 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19437 # Variables whose values should be saved in libtool wrapper scripts and
19438 # restored at link time.
19439 variables_saved_for_relink=$lt_variables_saved_for_relink
19441 # Do we need the "lib" prefix for modules?
19442 need_lib_prefix=$need_lib_prefix
19444 # Do we need a version for libraries?
19445 need_version=$need_version
19447 # Library versioning type.
19448 version_type=$version_type
19450 # Shared library runtime path variable.
19451 runpath_var=$runpath_var
19453 # Shared library path variable.
19454 shlibpath_var=$shlibpath_var
19456 # Is shlibpath searched before the hard-coded library search path?
19457 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19459 # Format of library name prefix.
19460 libname_spec=$lt_libname_spec
19462 # List of archive names. First name is the real one, the rest are links.
19463 # The last name is the one that the linker finds with -lNAME
19464 library_names_spec=$lt_library_names_spec
19466 # The coded name of the library, if different from the real name.
19467 soname_spec=$lt_soname_spec
19469 # Permission mode override for installation of shared libraries.
19470 install_override_mode=$lt_install_override_mode
19472 # Command to use after installation of a shared archive.
19473 postinstall_cmds=$lt_postinstall_cmds
19475 # Command to use after uninstallation of a shared archive.
19476 postuninstall_cmds=$lt_postuninstall_cmds
19478 # Commands used to finish a libtool library installation in a directory.
19479 finish_cmds=$lt_finish_cmds
19481 # As "finish_cmds", except a single script fragment to be evaled but
19482 # not shown.
19483 finish_eval=$lt_finish_eval
19485 # Whether we should hardcode library paths into libraries.
19486 hardcode_into_libs=$hardcode_into_libs
19488 # Compile-time system search path for libraries.
19489 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19491 # Run-time system search path for libraries.
19492 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19494 # Whether dlopen is supported.
19495 dlopen_support=$enable_dlopen
19497 # Whether dlopen of programs is supported.
19498 dlopen_self=$enable_dlopen_self
19500 # Whether dlopen of statically linked programs is supported.
19501 dlopen_self_static=$enable_dlopen_self_static
19503 # Commands to strip libraries.
19504 old_striplib=$lt_old_striplib
19505 striplib=$lt_striplib
19508 # The linker used to build libraries.
19509 LD=$lt_LD
19511 # How to create reloadable object files.
19512 reload_flag=$lt_reload_flag
19513 reload_cmds=$lt_reload_cmds
19515 # Commands used to build an old-style archive.
19516 old_archive_cmds=$lt_old_archive_cmds
19518 # A language specific compiler.
19519 CC=$lt_compiler
19521 # Is the compiler the GNU compiler?
19522 with_gcc=$GCC
19524 # Compiler flag to turn off builtin functions.
19525 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19527 # How to pass a linker flag through the compiler.
19528 wl=$lt_lt_prog_compiler_wl
19530 # Additional compiler flags for building library objects.
19531 pic_flag=$lt_lt_prog_compiler_pic
19533 # Compiler flag to prevent dynamic linking.
19534 link_static_flag=$lt_lt_prog_compiler_static
19536 # Does compiler simultaneously support -c and -o options?
19537 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19539 # Whether or not to add -lc for building shared libraries.
19540 build_libtool_need_lc=$archive_cmds_need_lc
19542 # Whether or not to disallow shared libs when runtime libs are static.
19543 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19545 # Compiler flag to allow reflexive dlopens.
19546 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19548 # Compiler flag to generate shared objects directly from archives.
19549 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19551 # Whether the compiler copes with passing no objects directly.
19552 compiler_needs_object=$lt_compiler_needs_object
19554 # Create an old-style archive from a shared archive.
19555 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19557 # Create a temporary old-style archive to link instead of a shared archive.
19558 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19560 # Commands used to build a shared archive.
19561 archive_cmds=$lt_archive_cmds
19562 archive_expsym_cmds=$lt_archive_expsym_cmds
19564 # Commands used to build a loadable module if different from building
19565 # a shared archive.
19566 module_cmds=$lt_module_cmds
19567 module_expsym_cmds=$lt_module_expsym_cmds
19569 # Whether we are building with GNU ld or not.
19570 with_gnu_ld=$lt_with_gnu_ld
19572 # Flag that allows shared libraries with undefined symbols to be built.
19573 allow_undefined_flag=$lt_allow_undefined_flag
19575 # Flag that enforces no undefined symbols.
19576 no_undefined_flag=$lt_no_undefined_flag
19578 # Flag to hardcode \$libdir into a binary during linking.
19579 # This must work even if \$libdir does not exist
19580 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19582 # If ld is used when linking, flag to hardcode \$libdir into a binary
19583 # during linking. This must work even if \$libdir does not exist.
19584 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19586 # Whether we need a single "-rpath" flag with a separated argument.
19587 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19589 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19590 # DIR into the resulting binary.
19591 hardcode_direct=$hardcode_direct
19593 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19594 # DIR into the resulting binary and the resulting library dependency is
19595 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19596 # library is relocated.
19597 hardcode_direct_absolute=$hardcode_direct_absolute
19599 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19600 # into the resulting binary.
19601 hardcode_minus_L=$hardcode_minus_L
19603 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19604 # into the resulting binary.
19605 hardcode_shlibpath_var=$hardcode_shlibpath_var
19607 # Set to "yes" if building a shared library automatically hardcodes DIR
19608 # into the library and all subsequent libraries and executables linked
19609 # against it.
19610 hardcode_automatic=$hardcode_automatic
19612 # Set to yes if linker adds runtime paths of dependent libraries
19613 # to runtime path list.
19614 inherit_rpath=$inherit_rpath
19616 # Whether libtool must link a program against all its dependency libraries.
19617 link_all_deplibs=$link_all_deplibs
19619 # Fix the shell variable \$srcfile for the compiler.
19620 fix_srcfile_path=$lt_fix_srcfile_path
19622 # Set to "yes" if exported symbols are required.
19623 always_export_symbols=$always_export_symbols
19625 # The commands to list exported symbols.
19626 export_symbols_cmds=$lt_export_symbols_cmds
19628 # Symbols that should not be listed in the preloaded symbols.
19629 exclude_expsyms=$lt_exclude_expsyms
19631 # Symbols that must always be exported.
19632 include_expsyms=$lt_include_expsyms
19634 # Commands necessary for linking programs (against libraries) with templates.
19635 prelink_cmds=$lt_prelink_cmds
19637 # Specify filename containing input files.
19638 file_list_spec=$lt_file_list_spec
19640 # How to hardcode a shared library path into an executable.
19641 hardcode_action=$hardcode_action
19643 # The directories searched by this compiler when creating a shared library.
19644 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19646 # Dependencies to place before and after the objects being linked to
19647 # create a shared library.
19648 predep_objects=$lt_predep_objects
19649 postdep_objects=$lt_postdep_objects
19650 predeps=$lt_predeps
19651 postdeps=$lt_postdeps
19653 # The library search path used internally by the compiler when linking
19654 # a shared library.
19655 compiler_lib_search_path=$lt_compiler_lib_search_path
19657 # ### END LIBTOOL CONFIG
19659 _LT_EOF
19661 case $host_os in
19662 aix3*)
19663 cat <<\_LT_EOF >> "$cfgfile"
19664 # AIX sometimes has problems with the GCC collect2 program. For some
19665 # reason, if we set the COLLECT_NAMES environment variable, the problems
19666 # vanish in a puff of smoke.
19667 if test "X${COLLECT_NAMES+set}" != Xset; then
19668 COLLECT_NAMES=
19669 export COLLECT_NAMES
19671 _LT_EOF
19673 esac
19676 ltmain="$ac_aux_dir/ltmain.sh"
19679 # We use sed instead of cat because bash on DJGPP gets confused if
19680 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19681 # text mode, it properly converts lines to CR/LF. This bash problem
19682 # is reportedly fixed, but why not run on old versions too?
19683 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19684 || (rm -f "$cfgfile"; exit 1)
19686 case $xsi_shell in
19687 yes)
19688 cat << \_LT_EOF >> "$cfgfile"
19690 # func_dirname file append nondir_replacement
19691 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19692 # otherwise set result to NONDIR_REPLACEMENT.
19693 func_dirname ()
19695 case ${1} in
19696 */*) func_dirname_result="${1%/*}${2}" ;;
19697 * ) func_dirname_result="${3}" ;;
19698 esac
19701 # func_basename file
19702 func_basename ()
19704 func_basename_result="${1##*/}"
19707 # func_dirname_and_basename file append nondir_replacement
19708 # perform func_basename and func_dirname in a single function
19709 # call:
19710 # dirname: Compute the dirname of FILE. If nonempty,
19711 # add APPEND to the result, otherwise set result
19712 # to NONDIR_REPLACEMENT.
19713 # value returned in "$func_dirname_result"
19714 # basename: Compute filename of FILE.
19715 # value retuned in "$func_basename_result"
19716 # Implementation must be kept synchronized with func_dirname
19717 # and func_basename. For efficiency, we do not delegate to
19718 # those functions but instead duplicate the functionality here.
19719 func_dirname_and_basename ()
19721 case ${1} in
19722 */*) func_dirname_result="${1%/*}${2}" ;;
19723 * ) func_dirname_result="${3}" ;;
19724 esac
19725 func_basename_result="${1##*/}"
19728 # func_stripname prefix suffix name
19729 # strip PREFIX and SUFFIX off of NAME.
19730 # PREFIX and SUFFIX must not contain globbing or regex special
19731 # characters, hashes, percent signs, but SUFFIX may contain a leading
19732 # dot (in which case that matches only a dot).
19733 func_stripname ()
19735 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19736 # positional parameters, so assign one to ordinary parameter first.
19737 func_stripname_result=${3}
19738 func_stripname_result=${func_stripname_result#"${1}"}
19739 func_stripname_result=${func_stripname_result%"${2}"}
19742 # func_opt_split
19743 func_opt_split ()
19745 func_opt_split_opt=${1%%=*}
19746 func_opt_split_arg=${1#*=}
19749 # func_lo2o object
19750 func_lo2o ()
19752 case ${1} in
19753 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19754 *) func_lo2o_result=${1} ;;
19755 esac
19758 # func_xform libobj-or-source
19759 func_xform ()
19761 func_xform_result=${1%.*}.lo
19764 # func_arith arithmetic-term...
19765 func_arith ()
19767 func_arith_result=$(( $* ))
19770 # func_len string
19771 # STRING may not start with a hyphen.
19772 func_len ()
19774 func_len_result=${#1}
19777 _LT_EOF
19779 *) # Bourne compatible functions.
19780 cat << \_LT_EOF >> "$cfgfile"
19782 # func_dirname file append nondir_replacement
19783 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19784 # otherwise set result to NONDIR_REPLACEMENT.
19785 func_dirname ()
19787 # Extract subdirectory from the argument.
19788 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19789 if test "X$func_dirname_result" = "X${1}"; then
19790 func_dirname_result="${3}"
19791 else
19792 func_dirname_result="$func_dirname_result${2}"
19796 # func_basename file
19797 func_basename ()
19799 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19803 # func_stripname prefix suffix name
19804 # strip PREFIX and SUFFIX off of NAME.
19805 # PREFIX and SUFFIX must not contain globbing or regex special
19806 # characters, hashes, percent signs, but SUFFIX may contain a leading
19807 # dot (in which case that matches only a dot).
19808 # func_strip_suffix prefix name
19809 func_stripname ()
19811 case ${2} in
19812 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19813 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19814 esac
19817 # sed scripts:
19818 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19819 my_sed_long_arg='1s/^-[^=]*=//'
19821 # func_opt_split
19822 func_opt_split ()
19824 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19825 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19828 # func_lo2o object
19829 func_lo2o ()
19831 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19834 # func_xform libobj-or-source
19835 func_xform ()
19837 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19840 # func_arith arithmetic-term...
19841 func_arith ()
19843 func_arith_result=`expr "$@"`
19846 # func_len string
19847 # STRING may not start with a hyphen.
19848 func_len ()
19850 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19853 _LT_EOF
19854 esac
19856 case $lt_shell_append in
19857 yes)
19858 cat << \_LT_EOF >> "$cfgfile"
19860 # func_append var value
19861 # Append VALUE to the end of shell variable VAR.
19862 func_append ()
19864 eval "$1+=\$2"
19866 _LT_EOF
19869 cat << \_LT_EOF >> "$cfgfile"
19871 # func_append var value
19872 # Append VALUE to the end of shell variable VAR.
19873 func_append ()
19875 eval "$1=\$$1\$2"
19878 _LT_EOF
19880 esac
19883 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19884 || (rm -f "$cfgfile"; exit 1)
19886 mv -f "$cfgfile" "$ofile" ||
19887 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19888 chmod +x "$ofile"
19891 cat <<_LT_EOF >> "$ofile"
19893 # ### BEGIN LIBTOOL TAG CONFIG: FC
19895 # The linker used to build libraries.
19896 LD=$lt_LD_FC
19898 # How to create reloadable object files.
19899 reload_flag=$lt_reload_flag_FC
19900 reload_cmds=$lt_reload_cmds_FC
19902 # Commands used to build an old-style archive.
19903 old_archive_cmds=$lt_old_archive_cmds_FC
19905 # A language specific compiler.
19906 CC=$lt_compiler_FC
19908 # Is the compiler the GNU compiler?
19909 with_gcc=$GCC_FC
19911 # Compiler flag to turn off builtin functions.
19912 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
19914 # How to pass a linker flag through the compiler.
19915 wl=$lt_lt_prog_compiler_wl_FC
19917 # Additional compiler flags for building library objects.
19918 pic_flag=$lt_lt_prog_compiler_pic_FC
19920 # Compiler flag to prevent dynamic linking.
19921 link_static_flag=$lt_lt_prog_compiler_static_FC
19923 # Does compiler simultaneously support -c and -o options?
19924 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
19926 # Whether or not to add -lc for building shared libraries.
19927 build_libtool_need_lc=$archive_cmds_need_lc_FC
19929 # Whether or not to disallow shared libs when runtime libs are static.
19930 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
19932 # Compiler flag to allow reflexive dlopens.
19933 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
19935 # Compiler flag to generate shared objects directly from archives.
19936 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
19938 # Whether the compiler copes with passing no objects directly.
19939 compiler_needs_object=$lt_compiler_needs_object_FC
19941 # Create an old-style archive from a shared archive.
19942 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
19944 # Create a temporary old-style archive to link instead of a shared archive.
19945 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
19947 # Commands used to build a shared archive.
19948 archive_cmds=$lt_archive_cmds_FC
19949 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
19951 # Commands used to build a loadable module if different from building
19952 # a shared archive.
19953 module_cmds=$lt_module_cmds_FC
19954 module_expsym_cmds=$lt_module_expsym_cmds_FC
19956 # Whether we are building with GNU ld or not.
19957 with_gnu_ld=$lt_with_gnu_ld_FC
19959 # Flag that allows shared libraries with undefined symbols to be built.
19960 allow_undefined_flag=$lt_allow_undefined_flag_FC
19962 # Flag that enforces no undefined symbols.
19963 no_undefined_flag=$lt_no_undefined_flag_FC
19965 # Flag to hardcode \$libdir into a binary during linking.
19966 # This must work even if \$libdir does not exist
19967 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
19969 # If ld is used when linking, flag to hardcode \$libdir into a binary
19970 # during linking. This must work even if \$libdir does not exist.
19971 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
19973 # Whether we need a single "-rpath" flag with a separated argument.
19974 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
19976 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19977 # DIR into the resulting binary.
19978 hardcode_direct=$hardcode_direct_FC
19980 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19981 # DIR into the resulting binary and the resulting library dependency is
19982 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19983 # library is relocated.
19984 hardcode_direct_absolute=$hardcode_direct_absolute_FC
19986 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19987 # into the resulting binary.
19988 hardcode_minus_L=$hardcode_minus_L_FC
19990 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19991 # into the resulting binary.
19992 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
19994 # Set to "yes" if building a shared library automatically hardcodes DIR
19995 # into the library and all subsequent libraries and executables linked
19996 # against it.
19997 hardcode_automatic=$hardcode_automatic_FC
19999 # Set to yes if linker adds runtime paths of dependent libraries
20000 # to runtime path list.
20001 inherit_rpath=$inherit_rpath_FC
20003 # Whether libtool must link a program against all its dependency libraries.
20004 link_all_deplibs=$link_all_deplibs_FC
20006 # Fix the shell variable \$srcfile for the compiler.
20007 fix_srcfile_path=$lt_fix_srcfile_path_FC
20009 # Set to "yes" if exported symbols are required.
20010 always_export_symbols=$always_export_symbols_FC
20012 # The commands to list exported symbols.
20013 export_symbols_cmds=$lt_export_symbols_cmds_FC
20015 # Symbols that should not be listed in the preloaded symbols.
20016 exclude_expsyms=$lt_exclude_expsyms_FC
20018 # Symbols that must always be exported.
20019 include_expsyms=$lt_include_expsyms_FC
20021 # Commands necessary for linking programs (against libraries) with templates.
20022 prelink_cmds=$lt_prelink_cmds_FC
20024 # Specify filename containing input files.
20025 file_list_spec=$lt_file_list_spec_FC
20027 # How to hardcode a shared library path into an executable.
20028 hardcode_action=$hardcode_action_FC
20030 # The directories searched by this compiler when creating a shared library.
20031 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
20033 # Dependencies to place before and after the objects being linked to
20034 # create a shared library.
20035 predep_objects=$lt_predep_objects_FC
20036 postdep_objects=$lt_postdep_objects_FC
20037 predeps=$lt_predeps_FC
20038 postdeps=$lt_postdeps_FC
20040 # The library search path used internally by the compiler when linking
20041 # a shared library.
20042 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
20044 # ### END LIBTOOL TAG CONFIG: FC
20045 _LT_EOF
20048 "gstdint.h":C)
20049 if test "$GCC" = yes; then
20050 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
20051 else
20052 echo "/* generated for $CC */" > tmp-stdint.h
20055 sed 's/^ *//' >> tmp-stdint.h <<EOF
20057 #ifndef GCC_GENERATED_STDINT_H
20058 #define GCC_GENERATED_STDINT_H 1
20060 #include <sys/types.h>
20063 if test "$acx_cv_header_stdint" != stdint.h; then
20064 echo "#include <stddef.h>" >> tmp-stdint.h
20066 if test "$acx_cv_header_stdint" != stddef.h; then
20067 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
20070 sed 's/^ *//' >> tmp-stdint.h <<EOF
20071 /* glibc uses these symbols as guards to prevent redefinitions. */
20072 #ifdef __int8_t_defined
20073 #define _INT8_T
20074 #define _INT16_T
20075 #define _INT32_T
20076 #endif
20077 #ifdef __uint32_t_defined
20078 #define _UINT32_T
20079 #endif
20083 # ----------------- done header, emit basic int types -------------
20084 if test "$acx_cv_header_stdint" = stddef.h; then
20085 sed 's/^ *//' >> tmp-stdint.h <<EOF
20087 #ifndef _UINT8_T
20088 #define _UINT8_T
20089 #ifndef __uint8_t_defined
20090 #define __uint8_t_defined
20091 #ifndef uint8_t
20092 typedef unsigned $acx_cv_type_int8_t uint8_t;
20093 #endif
20094 #endif
20095 #endif
20097 #ifndef _UINT16_T
20098 #define _UINT16_T
20099 #ifndef __uint16_t_defined
20100 #define __uint16_t_defined
20101 #ifndef uint16_t
20102 typedef unsigned $acx_cv_type_int16_t uint16_t;
20103 #endif
20104 #endif
20105 #endif
20107 #ifndef _UINT32_T
20108 #define _UINT32_T
20109 #ifndef __uint32_t_defined
20110 #define __uint32_t_defined
20111 #ifndef uint32_t
20112 typedef unsigned $acx_cv_type_int32_t uint32_t;
20113 #endif
20114 #endif
20115 #endif
20117 #ifndef _INT8_T
20118 #define _INT8_T
20119 #ifndef __int8_t_defined
20120 #define __int8_t_defined
20121 #ifndef int8_t
20122 typedef $acx_cv_type_int8_t int8_t;
20123 #endif
20124 #endif
20125 #endif
20127 #ifndef _INT16_T
20128 #define _INT16_T
20129 #ifndef __int16_t_defined
20130 #define __int16_t_defined
20131 #ifndef int16_t
20132 typedef $acx_cv_type_int16_t int16_t;
20133 #endif
20134 #endif
20135 #endif
20137 #ifndef _INT32_T
20138 #define _INT32_T
20139 #ifndef __int32_t_defined
20140 #define __int32_t_defined
20141 #ifndef int32_t
20142 typedef $acx_cv_type_int32_t int32_t;
20143 #endif
20144 #endif
20145 #endif
20147 elif test "$ac_cv_type_u_int32_t" = yes; then
20148 sed 's/^ *//' >> tmp-stdint.h <<EOF
20150 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
20151 #ifndef _INT8_T
20152 #define _INT8_T
20153 #endif
20154 #ifndef _INT16_T
20155 #define _INT16_T
20156 #endif
20157 #ifndef _INT32_T
20158 #define _INT32_T
20159 #endif
20161 #ifndef _UINT8_T
20162 #define _UINT8_T
20163 #ifndef __uint8_t_defined
20164 #define __uint8_t_defined
20165 #ifndef uint8_t
20166 typedef u_int8_t uint8_t;
20167 #endif
20168 #endif
20169 #endif
20171 #ifndef _UINT16_T
20172 #define _UINT16_T
20173 #ifndef __uint16_t_defined
20174 #define __uint16_t_defined
20175 #ifndef uint16_t
20176 typedef u_int16_t uint16_t;
20177 #endif
20178 #endif
20179 #endif
20181 #ifndef _UINT32_T
20182 #define _UINT32_T
20183 #ifndef __uint32_t_defined
20184 #define __uint32_t_defined
20185 #ifndef uint32_t
20186 typedef u_int32_t uint32_t;
20187 #endif
20188 #endif
20189 #endif
20191 else
20192 sed 's/^ *//' >> tmp-stdint.h <<EOF
20194 /* Some systems have guard macros to prevent redefinitions, define them. */
20195 #ifndef _INT8_T
20196 #define _INT8_T
20197 #endif
20198 #ifndef _INT16_T
20199 #define _INT16_T
20200 #endif
20201 #ifndef _INT32_T
20202 #define _INT32_T
20203 #endif
20204 #ifndef _UINT8_T
20205 #define _UINT8_T
20206 #endif
20207 #ifndef _UINT16_T
20208 #define _UINT16_T
20209 #endif
20210 #ifndef _UINT32_T
20211 #define _UINT32_T
20212 #endif
20216 # ------------- done basic int types, emit int64_t types ------------
20217 if test "$ac_cv_type_uint64_t" = yes; then
20218 sed 's/^ *//' >> tmp-stdint.h <<EOF
20220 /* system headers have good uint64_t and int64_t */
20221 #ifndef _INT64_T
20222 #define _INT64_T
20223 #endif
20224 #ifndef _UINT64_T
20225 #define _UINT64_T
20226 #endif
20228 elif test "$ac_cv_type_u_int64_t" = yes; then
20229 sed 's/^ *//' >> tmp-stdint.h <<EOF
20231 /* system headers have an u_int64_t (and int64_t) */
20232 #ifndef _INT64_T
20233 #define _INT64_T
20234 #endif
20235 #ifndef _UINT64_T
20236 #define _UINT64_T
20237 #ifndef __uint64_t_defined
20238 #define __uint64_t_defined
20239 #ifndef uint64_t
20240 typedef u_int64_t uint64_t;
20241 #endif
20242 #endif
20243 #endif
20245 elif test -n "$acx_cv_type_int64_t"; then
20246 sed 's/^ *//' >> tmp-stdint.h <<EOF
20248 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
20249 #ifndef _INT64_T
20250 #define _INT64_T
20251 #ifndef int64_t
20252 typedef $acx_cv_type_int64_t int64_t;
20253 #endif
20254 #endif
20255 #ifndef _UINT64_T
20256 #define _UINT64_T
20257 #ifndef __uint64_t_defined
20258 #define __uint64_t_defined
20259 #ifndef uint64_t
20260 typedef unsigned $acx_cv_type_int64_t uint64_t;
20261 #endif
20262 #endif
20263 #endif
20265 else
20266 sed 's/^ *//' >> tmp-stdint.h <<EOF
20268 /* some common heuristics for int64_t, using compiler-specific tests */
20269 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
20270 #ifndef _INT64_T
20271 #define _INT64_T
20272 #ifndef __int64_t_defined
20273 #ifndef int64_t
20274 typedef long long int64_t;
20275 #endif
20276 #endif
20277 #endif
20278 #ifndef _UINT64_T
20279 #define _UINT64_T
20280 #ifndef uint64_t
20281 typedef unsigned long long uint64_t;
20282 #endif
20283 #endif
20285 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
20286 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
20287 does not implement __extension__. But that compiler doesn't define
20288 __GNUC_MINOR__. */
20289 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
20290 # define __extension__
20291 # endif
20293 # ifndef _INT64_T
20294 # define _INT64_T
20295 # ifndef int64_t
20296 __extension__ typedef long long int64_t;
20297 # endif
20298 # endif
20299 # ifndef _UINT64_T
20300 # define _UINT64_T
20301 # ifndef uint64_t
20302 __extension__ typedef unsigned long long uint64_t;
20303 # endif
20304 # endif
20306 #elif !defined __STRICT_ANSI__
20307 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
20309 # ifndef _INT64_T
20310 # define _INT64_T
20311 # ifndef int64_t
20312 typedef __int64 int64_t;
20313 # endif
20314 # endif
20315 # ifndef _UINT64_T
20316 # define _UINT64_T
20317 # ifndef uint64_t
20318 typedef unsigned __int64 uint64_t;
20319 # endif
20320 # endif
20321 # endif /* compiler */
20323 #endif /* ANSI version */
20327 # ------------- done int64_t types, emit intptr types ------------
20328 if test "$ac_cv_type_uintptr_t" != yes; then
20329 sed 's/^ *//' >> tmp-stdint.h <<EOF
20331 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
20332 #ifndef __uintptr_t_defined
20333 #ifndef uintptr_t
20334 typedef u$acx_cv_type_intptr_t uintptr_t;
20335 #endif
20336 #endif
20337 #ifndef __intptr_t_defined
20338 #ifndef intptr_t
20339 typedef $acx_cv_type_intptr_t intptr_t;
20340 #endif
20341 #endif
20345 # ------------- done intptr types, emit int_least types ------------
20346 if test "$ac_cv_type_int_least32_t" != yes; then
20347 sed 's/^ *//' >> tmp-stdint.h <<EOF
20349 /* Define int_least types */
20350 typedef int8_t int_least8_t;
20351 typedef int16_t int_least16_t;
20352 typedef int32_t int_least32_t;
20353 #ifdef _INT64_T
20354 typedef int64_t int_least64_t;
20355 #endif
20357 typedef uint8_t uint_least8_t;
20358 typedef uint16_t uint_least16_t;
20359 typedef uint32_t uint_least32_t;
20360 #ifdef _UINT64_T
20361 typedef uint64_t uint_least64_t;
20362 #endif
20366 # ------------- done intptr types, emit int_fast types ------------
20367 if test "$ac_cv_type_int_fast32_t" != yes; then
20368 sed 's/^ *//' >> tmp-stdint.h <<EOF
20370 /* Define int_fast types. short is often slow */
20371 typedef int8_t int_fast8_t;
20372 typedef int int_fast16_t;
20373 typedef int32_t int_fast32_t;
20374 #ifdef _INT64_T
20375 typedef int64_t int_fast64_t;
20376 #endif
20378 typedef uint8_t uint_fast8_t;
20379 typedef unsigned int uint_fast16_t;
20380 typedef uint32_t uint_fast32_t;
20381 #ifdef _UINT64_T
20382 typedef uint64_t uint_fast64_t;
20383 #endif
20387 if test "$ac_cv_type_uintmax_t" != yes; then
20388 sed 's/^ *//' >> tmp-stdint.h <<EOF
20390 /* Define intmax based on what we found */
20391 #ifndef intmax_t
20392 #ifdef _INT64_T
20393 typedef int64_t intmax_t;
20394 #else
20395 typedef long intmax_t;
20396 #endif
20397 #endif
20398 #ifndef uintmax_t
20399 #ifdef _UINT64_T
20400 typedef uint64_t uintmax_t;
20401 #else
20402 typedef unsigned long uintmax_t;
20403 #endif
20404 #endif
20408 sed 's/^ *//' >> tmp-stdint.h <<EOF
20410 #endif /* GCC_GENERATED_STDINT_H */
20413 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
20414 rm -f tmp-stdint.h
20415 else
20416 mv -f tmp-stdint.h gstdint.h
20421 esac
20422 done # for ac_tag
20425 as_fn_exit 0
20426 _ACEOF
20427 ac_clean_files=$ac_clean_files_save
20429 test $ac_write_fail = 0 ||
20430 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20433 # configure is writing to config.log, and then calls config.status.
20434 # config.status does its own redirection, appending to config.log.
20435 # Unfortunately, on DOS this fails, as config.log is still kept open
20436 # by configure, so config.status won't be able to write to it; its
20437 # output is simply discarded. So we exec the FD to /dev/null,
20438 # effectively closing config.log, so it can be properly (re)opened and
20439 # appended to by config.status. When coming back to configure, we
20440 # need to make the FD available again.
20441 if test "$no_create" != yes; then
20442 ac_cs_success=:
20443 ac_config_status_args=
20444 test "$silent" = yes &&
20445 ac_config_status_args="$ac_config_status_args --quiet"
20446 exec 5>/dev/null
20447 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20448 exec 5>>config.log
20449 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20450 # would make configure fail if this is the last instruction.
20451 $ac_cs_success || as_fn_exit 1
20453 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20455 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}