correct ChangeLogs for PR69422
[official-gcc.git] / libgomp / configure
blob1410bc71223c834376bf728939dd41460cfcd2d2
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for GNU Offloading and Multi Processing Runtime Library 1.0.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # 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 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
173 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
174 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
175 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 PATH=/empty FPATH=/empty; export PATH FPATH
178 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
179 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
180 test \$(( 1 + 1 )) = 2 || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME='GNU Offloading and Multi Processing Runtime Library'
558 PACKAGE_TARNAME='libgomp'
559 PACKAGE_VERSION='1.0'
560 PACKAGE_STRING='GNU Offloading and Multi Processing Runtime Library 1.0'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL='http://www.gnu.org/software/libgomp/'
564 # Factoring default headers for most tests.
565 ac_includes_default="\
566 #include <stdio.h>
567 #ifdef HAVE_SYS_TYPES_H
568 # include <sys/types.h>
569 #endif
570 #ifdef HAVE_SYS_STAT_H
571 # include <sys/stat.h>
572 #endif
573 #ifdef STDC_HEADERS
574 # include <stdlib.h>
575 # include <stddef.h>
576 #else
577 # ifdef HAVE_STDLIB_H
578 # include <stdlib.h>
579 # endif
580 #endif
581 #ifdef HAVE_STRING_H
582 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
583 # include <memory.h>
584 # endif
585 # include <string.h>
586 #endif
587 #ifdef HAVE_STRINGS_H
588 # include <strings.h>
589 #endif
590 #ifdef HAVE_INTTYPES_H
591 # include <inttypes.h>
592 #endif
593 #ifdef HAVE_STDINT_H
594 # include <stdint.h>
595 #endif
596 #ifdef HAVE_UNISTD_H
597 # include <unistd.h>
598 #endif"
600 ac_subst_vars='am__EXEEXT_FALSE
601 am__EXEEXT_TRUE
602 LTLIBOBJS
603 LIBOBJS
604 OMP_NEST_LOCK_25_KIND
605 OMP_LOCK_25_KIND
606 OMP_NEST_LOCK_25_ALIGN
607 OMP_NEST_LOCK_25_SIZE
608 OMP_LOCK_25_ALIGN
609 OMP_LOCK_25_SIZE
610 OMP_NEST_LOCK_KIND
611 OMP_LOCK_KIND
612 OMP_NEST_LOCK_ALIGN
613 OMP_NEST_LOCK_SIZE
614 OMP_LOCK_ALIGN
615 OMP_LOCK_SIZE
616 USE_FORTRAN_FALSE
617 USE_FORTRAN_TRUE
618 link_gomp
619 XLDFLAGS
620 XCFLAGS
621 config_path
622 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
623 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
624 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
625 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
626 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
627 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
628 OPT_LDFLAGS
629 SECTION_LDFLAGS
630 PLUGIN_HSA_FALSE
631 PLUGIN_HSA_TRUE
632 PLUGIN_NVPTX_FALSE
633 PLUGIN_NVPTX_TRUE
634 offload_additional_lib_paths
635 offload_additional_options
636 PLUGIN_HSA_LIBS
637 PLUGIN_HSA_LDFLAGS
638 PLUGIN_HSA_CPPFLAGS
639 PLUGIN_HSA
640 HSA_RUNTIME_LIB
641 HSA_RUNTIME_INCLUDE
642 PLUGIN_NVPTX_LIBS
643 PLUGIN_NVPTX_LDFLAGS
644 PLUGIN_NVPTX_CPPFLAGS
645 PLUGIN_NVPTX
646 CUDA_DRIVER_LIB
647 CUDA_DRIVER_INCLUDE
648 offload_targets
649 libtool_VERSION
650 ac_ct_FC
651 FCFLAGS
653 MAINT
654 MAINTAINER_MODE_FALSE
655 MAINTAINER_MODE_TRUE
656 enable_static
657 enable_shared
658 lt_host_flags
660 OTOOL64
661 OTOOL
662 LIPO
663 NMEDIT
664 DSYMUTIL
665 OBJDUMP
666 LN_S
668 ac_ct_DUMPBIN
669 DUMPBIN
671 FGREP
672 EGREP
673 GREP
675 LIBTOOL
676 BUILD_INFO_FALSE
677 BUILD_INFO_TRUE
678 PERL
679 RANLIB
681 am__fastdepCC_FALSE
682 am__fastdepCC_TRUE
683 CCDEPMODE
684 am__nodep
685 AMDEPBACKSLASH
686 AMDEP_FALSE
687 AMDEP_TRUE
688 am__quote
689 am__include
690 DEPDIR
691 OBJEXT
692 EXEEXT
693 ac_ct_CC
694 CPPFLAGS
695 LDFLAGS
696 CFLAGS
698 toolexeclibdir
699 toolexecdir
700 multi_basedir
701 am__untar
702 am__tar
703 AMTAR
704 am__leading_dot
705 SET_MAKE
707 mkdir_p
708 MKDIR_P
709 INSTALL_STRIP_PROGRAM
710 STRIP
711 install_sh
712 MAKEINFO
713 AUTOHEADER
714 AUTOMAKE
715 AUTOCONF
716 ACLOCAL
717 VERSION
718 PACKAGE
719 CYGPATH_W
720 am__isrc
721 INSTALL_DATA
722 INSTALL_SCRIPT
723 INSTALL_PROGRAM
724 target_os
725 target_vendor
726 target_cpu
727 target
728 host_os
729 host_vendor
730 host_cpu
731 host
732 build_os
733 build_vendor
734 build_cpu
735 build
736 GENINSRC_FALSE
737 GENINSRC_TRUE
738 target_alias
739 host_alias
740 build_alias
741 LIBS
742 ECHO_T
743 ECHO_N
744 ECHO_C
745 DEFS
746 mandir
747 localedir
748 libdir
749 psdir
750 pdfdir
751 dvidir
752 htmldir
753 infodir
754 docdir
755 oldincludedir
756 includedir
757 localstatedir
758 sharedstatedir
759 sysconfdir
760 datadir
761 datarootdir
762 libexecdir
763 sbindir
764 bindir
765 program_transform_name
766 prefix
767 exec_prefix
768 PACKAGE_URL
769 PACKAGE_BUGREPORT
770 PACKAGE_STRING
771 PACKAGE_VERSION
772 PACKAGE_TARNAME
773 PACKAGE_NAME
774 PATH_SEPARATOR
775 SHELL'
776 ac_subst_files=''
777 ac_user_opts='
778 enable_option_checking
779 enable_version_specific_runtime_libs
780 enable_generated_files_in_srcdir
781 enable_multilib
782 enable_dependency_tracking
783 enable_shared
784 enable_static
785 with_pic
786 enable_fast_install
787 with_gnu_ld
788 enable_libtool_lock
789 enable_maintainer_mode
790 with_cuda_driver
791 with_cuda_driver_include
792 with_cuda_driver_lib
793 with_hsa_runtime
794 with_hsa_runtime_include
795 with_hsa_runtime_lib
796 with_hsa_kmt_lib
797 enable_linux_futex
798 enable_tls
799 enable_symvers
801 ac_precious_vars='build_alias
802 host_alias
803 target_alias
805 CPPFLAGS
807 FCFLAGS
808 LDFLAGS
809 LIBS'
812 # Initialize some variables set by options.
813 ac_init_help=
814 ac_init_version=false
815 ac_unrecognized_opts=
816 ac_unrecognized_sep=
817 # The variables have the same names as the options, with
818 # dashes changed to underlines.
819 cache_file=/dev/null
820 exec_prefix=NONE
821 no_create=
822 no_recursion=
823 prefix=NONE
824 program_prefix=NONE
825 program_suffix=NONE
826 program_transform_name=s,x,x,
827 silent=
828 site=
829 srcdir=
830 verbose=
831 x_includes=NONE
832 x_libraries=NONE
834 # Installation directory options.
835 # These are left unexpanded so users can "make install exec_prefix=/foo"
836 # and all the variables that are supposed to be based on exec_prefix
837 # by default will actually change.
838 # Use braces instead of parens because sh, perl, etc. also accept them.
839 # (The list follows the same order as the GNU Coding Standards.)
840 bindir='${exec_prefix}/bin'
841 sbindir='${exec_prefix}/sbin'
842 libexecdir='${exec_prefix}/libexec'
843 datarootdir='${prefix}/share'
844 datadir='${datarootdir}'
845 sysconfdir='${prefix}/etc'
846 sharedstatedir='${prefix}/com'
847 localstatedir='${prefix}/var'
848 includedir='${prefix}/include'
849 oldincludedir='/usr/include'
850 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
851 infodir='${datarootdir}/info'
852 htmldir='${docdir}'
853 dvidir='${docdir}'
854 pdfdir='${docdir}'
855 psdir='${docdir}'
856 libdir='${exec_prefix}/lib'
857 localedir='${datarootdir}/locale'
858 mandir='${datarootdir}/man'
860 ac_prev=
861 ac_dashdash=
862 for ac_option
864 # If the previous option needs an argument, assign it.
865 if test -n "$ac_prev"; then
866 eval $ac_prev=\$ac_option
867 ac_prev=
868 continue
871 case $ac_option in
872 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
873 *) ac_optarg=yes ;;
874 esac
876 # Accept the important Cygnus configure options, so we can diagnose typos.
878 case $ac_dashdash$ac_option in
880 ac_dashdash=yes ;;
882 -bindir | --bindir | --bindi | --bind | --bin | --bi)
883 ac_prev=bindir ;;
884 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
885 bindir=$ac_optarg ;;
887 -build | --build | --buil | --bui | --bu)
888 ac_prev=build_alias ;;
889 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
890 build_alias=$ac_optarg ;;
892 -cache-file | --cache-file | --cache-fil | --cache-fi \
893 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
894 ac_prev=cache_file ;;
895 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
896 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
897 cache_file=$ac_optarg ;;
899 --config-cache | -C)
900 cache_file=config.cache ;;
902 -datadir | --datadir | --datadi | --datad)
903 ac_prev=datadir ;;
904 -datadir=* | --datadir=* | --datadi=* | --datad=*)
905 datadir=$ac_optarg ;;
907 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
908 | --dataroo | --dataro | --datar)
909 ac_prev=datarootdir ;;
910 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
911 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
912 datarootdir=$ac_optarg ;;
914 -disable-* | --disable-*)
915 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
916 # Reject names that are not valid shell variable names.
917 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
918 as_fn_error "invalid feature name: $ac_useropt"
919 ac_useropt_orig=$ac_useropt
920 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
921 case $ac_user_opts in
923 "enable_$ac_useropt"
924 "*) ;;
925 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
926 ac_unrecognized_sep=', ';;
927 esac
928 eval enable_$ac_useropt=no ;;
930 -docdir | --docdir | --docdi | --doc | --do)
931 ac_prev=docdir ;;
932 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
933 docdir=$ac_optarg ;;
935 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
936 ac_prev=dvidir ;;
937 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
938 dvidir=$ac_optarg ;;
940 -enable-* | --enable-*)
941 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
942 # Reject names that are not valid shell variable names.
943 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
944 as_fn_error "invalid feature name: $ac_useropt"
945 ac_useropt_orig=$ac_useropt
946 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
947 case $ac_user_opts in
949 "enable_$ac_useropt"
950 "*) ;;
951 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
952 ac_unrecognized_sep=', ';;
953 esac
954 eval enable_$ac_useropt=\$ac_optarg ;;
956 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
957 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
958 | --exec | --exe | --ex)
959 ac_prev=exec_prefix ;;
960 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
961 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
962 | --exec=* | --exe=* | --ex=*)
963 exec_prefix=$ac_optarg ;;
965 -gas | --gas | --ga | --g)
966 # Obsolete; use --with-gas.
967 with_gas=yes ;;
969 -help | --help | --hel | --he | -h)
970 ac_init_help=long ;;
971 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
972 ac_init_help=recursive ;;
973 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
974 ac_init_help=short ;;
976 -host | --host | --hos | --ho)
977 ac_prev=host_alias ;;
978 -host=* | --host=* | --hos=* | --ho=*)
979 host_alias=$ac_optarg ;;
981 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
982 ac_prev=htmldir ;;
983 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
984 | --ht=*)
985 htmldir=$ac_optarg ;;
987 -includedir | --includedir | --includedi | --included | --include \
988 | --includ | --inclu | --incl | --inc)
989 ac_prev=includedir ;;
990 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
991 | --includ=* | --inclu=* | --incl=* | --inc=*)
992 includedir=$ac_optarg ;;
994 -infodir | --infodir | --infodi | --infod | --info | --inf)
995 ac_prev=infodir ;;
996 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
997 infodir=$ac_optarg ;;
999 -libdir | --libdir | --libdi | --libd)
1000 ac_prev=libdir ;;
1001 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1002 libdir=$ac_optarg ;;
1004 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1005 | --libexe | --libex | --libe)
1006 ac_prev=libexecdir ;;
1007 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1008 | --libexe=* | --libex=* | --libe=*)
1009 libexecdir=$ac_optarg ;;
1011 -localedir | --localedir | --localedi | --localed | --locale)
1012 ac_prev=localedir ;;
1013 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1014 localedir=$ac_optarg ;;
1016 -localstatedir | --localstatedir | --localstatedi | --localstated \
1017 | --localstate | --localstat | --localsta | --localst | --locals)
1018 ac_prev=localstatedir ;;
1019 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1020 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1021 localstatedir=$ac_optarg ;;
1023 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1024 ac_prev=mandir ;;
1025 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1026 mandir=$ac_optarg ;;
1028 -nfp | --nfp | --nf)
1029 # Obsolete; use --without-fp.
1030 with_fp=no ;;
1032 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1033 | --no-cr | --no-c | -n)
1034 no_create=yes ;;
1036 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1037 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1038 no_recursion=yes ;;
1040 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1041 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1042 | --oldin | --oldi | --old | --ol | --o)
1043 ac_prev=oldincludedir ;;
1044 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1045 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1046 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1047 oldincludedir=$ac_optarg ;;
1049 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1050 ac_prev=prefix ;;
1051 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1052 prefix=$ac_optarg ;;
1054 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1055 | --program-pre | --program-pr | --program-p)
1056 ac_prev=program_prefix ;;
1057 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1058 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1059 program_prefix=$ac_optarg ;;
1061 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1062 | --program-suf | --program-su | --program-s)
1063 ac_prev=program_suffix ;;
1064 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1065 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1066 program_suffix=$ac_optarg ;;
1068 -program-transform-name | --program-transform-name \
1069 | --program-transform-nam | --program-transform-na \
1070 | --program-transform-n | --program-transform- \
1071 | --program-transform | --program-transfor \
1072 | --program-transfo | --program-transf \
1073 | --program-trans | --program-tran \
1074 | --progr-tra | --program-tr | --program-t)
1075 ac_prev=program_transform_name ;;
1076 -program-transform-name=* | --program-transform-name=* \
1077 | --program-transform-nam=* | --program-transform-na=* \
1078 | --program-transform-n=* | --program-transform-=* \
1079 | --program-transform=* | --program-transfor=* \
1080 | --program-transfo=* | --program-transf=* \
1081 | --program-trans=* | --program-tran=* \
1082 | --progr-tra=* | --program-tr=* | --program-t=*)
1083 program_transform_name=$ac_optarg ;;
1085 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1086 ac_prev=pdfdir ;;
1087 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1088 pdfdir=$ac_optarg ;;
1090 -psdir | --psdir | --psdi | --psd | --ps)
1091 ac_prev=psdir ;;
1092 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1093 psdir=$ac_optarg ;;
1095 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1096 | -silent | --silent | --silen | --sile | --sil)
1097 silent=yes ;;
1099 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1100 ac_prev=sbindir ;;
1101 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1102 | --sbi=* | --sb=*)
1103 sbindir=$ac_optarg ;;
1105 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1106 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1107 | --sharedst | --shareds | --shared | --share | --shar \
1108 | --sha | --sh)
1109 ac_prev=sharedstatedir ;;
1110 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1111 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1112 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1113 | --sha=* | --sh=*)
1114 sharedstatedir=$ac_optarg ;;
1116 -site | --site | --sit)
1117 ac_prev=site ;;
1118 -site=* | --site=* | --sit=*)
1119 site=$ac_optarg ;;
1121 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1122 ac_prev=srcdir ;;
1123 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1124 srcdir=$ac_optarg ;;
1126 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1127 | --syscon | --sysco | --sysc | --sys | --sy)
1128 ac_prev=sysconfdir ;;
1129 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1130 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1131 sysconfdir=$ac_optarg ;;
1133 -target | --target | --targe | --targ | --tar | --ta | --t)
1134 ac_prev=target_alias ;;
1135 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1136 target_alias=$ac_optarg ;;
1138 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1139 verbose=yes ;;
1141 -version | --version | --versio | --versi | --vers | -V)
1142 ac_init_version=: ;;
1144 -with-* | --with-*)
1145 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1146 # Reject names that are not valid shell variable names.
1147 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1148 as_fn_error "invalid package name: $ac_useropt"
1149 ac_useropt_orig=$ac_useropt
1150 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1151 case $ac_user_opts in
1153 "with_$ac_useropt"
1154 "*) ;;
1155 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1156 ac_unrecognized_sep=', ';;
1157 esac
1158 eval with_$ac_useropt=\$ac_optarg ;;
1160 -without-* | --without-*)
1161 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1162 # Reject names that are not valid shell variable names.
1163 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1164 as_fn_error "invalid package name: $ac_useropt"
1165 ac_useropt_orig=$ac_useropt
1166 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1167 case $ac_user_opts in
1169 "with_$ac_useropt"
1170 "*) ;;
1171 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1172 ac_unrecognized_sep=', ';;
1173 esac
1174 eval with_$ac_useropt=no ;;
1176 --x)
1177 # Obsolete; use --with-x.
1178 with_x=yes ;;
1180 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1181 | --x-incl | --x-inc | --x-in | --x-i)
1182 ac_prev=x_includes ;;
1183 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1184 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1185 x_includes=$ac_optarg ;;
1187 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1188 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1189 ac_prev=x_libraries ;;
1190 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1191 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1192 x_libraries=$ac_optarg ;;
1194 -*) as_fn_error "unrecognized option: \`$ac_option'
1195 Try \`$0 --help' for more information."
1198 *=*)
1199 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1200 # Reject names that are not valid shell variable names.
1201 case $ac_envvar in #(
1202 '' | [0-9]* | *[!_$as_cr_alnum]* )
1203 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1204 esac
1205 eval $ac_envvar=\$ac_optarg
1206 export $ac_envvar ;;
1209 # FIXME: should be removed in autoconf 3.0.
1210 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1211 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1212 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1213 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1216 esac
1217 done
1219 if test -n "$ac_prev"; then
1220 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1221 as_fn_error "missing argument to $ac_option"
1224 if test -n "$ac_unrecognized_opts"; then
1225 case $enable_option_checking in
1226 no) ;;
1227 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1228 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1229 esac
1232 # Check all directory arguments for consistency.
1233 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1234 datadir sysconfdir sharedstatedir localstatedir includedir \
1235 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1236 libdir localedir mandir
1238 eval ac_val=\$$ac_var
1239 # Remove trailing slashes.
1240 case $ac_val in
1241 */ )
1242 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1243 eval $ac_var=\$ac_val;;
1244 esac
1245 # Be sure to have absolute directory names.
1246 case $ac_val in
1247 [\\/$]* | ?:[\\/]* ) continue;;
1248 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1249 esac
1250 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1251 done
1253 # There might be people who depend on the old broken behavior: `$host'
1254 # used to hold the argument of --host etc.
1255 # FIXME: To remove some day.
1256 build=$build_alias
1257 host=$host_alias
1258 target=$target_alias
1260 # FIXME: To remove some day.
1261 if test "x$host_alias" != x; then
1262 if test "x$build_alias" = x; then
1263 cross_compiling=maybe
1264 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1265 If a cross compiler is detected then cross compile mode will be used." >&2
1266 elif test "x$build_alias" != "x$host_alias"; then
1267 cross_compiling=yes
1271 ac_tool_prefix=
1272 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1274 test "$silent" = yes && exec 6>/dev/null
1277 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1278 ac_ls_di=`ls -di .` &&
1279 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1280 as_fn_error "working directory cannot be determined"
1281 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1282 as_fn_error "pwd does not report name of working directory"
1285 # Find the source files, if location was not specified.
1286 if test -z "$srcdir"; then
1287 ac_srcdir_defaulted=yes
1288 # Try the directory containing this script, then the parent directory.
1289 ac_confdir=`$as_dirname -- "$as_myself" ||
1290 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1291 X"$as_myself" : 'X\(//\)[^/]' \| \
1292 X"$as_myself" : 'X\(//\)$' \| \
1293 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1294 $as_echo X"$as_myself" |
1295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1296 s//\1/
1299 /^X\(\/\/\)[^/].*/{
1300 s//\1/
1303 /^X\(\/\/\)$/{
1304 s//\1/
1307 /^X\(\/\).*/{
1308 s//\1/
1311 s/.*/./; q'`
1312 srcdir=$ac_confdir
1313 if test ! -r "$srcdir/$ac_unique_file"; then
1314 srcdir=..
1316 else
1317 ac_srcdir_defaulted=no
1319 if test ! -r "$srcdir/$ac_unique_file"; then
1320 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1321 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1323 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1324 ac_abs_confdir=`(
1325 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1326 pwd)`
1327 # When building in place, set srcdir=.
1328 if test "$ac_abs_confdir" = "$ac_pwd"; then
1329 srcdir=.
1331 # Remove unnecessary trailing slashes from srcdir.
1332 # Double slashes in file names in object file debugging info
1333 # mess up M-x gdb in Emacs.
1334 case $srcdir in
1335 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1336 esac
1337 for ac_var in $ac_precious_vars; do
1338 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1339 eval ac_env_${ac_var}_value=\$${ac_var}
1340 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1341 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1342 done
1345 # Report the --help message.
1347 if test "$ac_init_help" = "long"; then
1348 # Omit some internal or obsolete options to make the list less imposing.
1349 # This message is too long to be a string in the A/UX 3.1 sh.
1350 cat <<_ACEOF
1351 \`configure' configures GNU Offloading and Multi Processing Runtime Library 1.0 to adapt to many kinds of systems.
1353 Usage: $0 [OPTION]... [VAR=VALUE]...
1355 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1356 VAR=VALUE. See below for descriptions of some of the useful variables.
1358 Defaults for the options are specified in brackets.
1360 Configuration:
1361 -h, --help display this help and exit
1362 --help=short display options specific to this package
1363 --help=recursive display the short help of all the included packages
1364 -V, --version display version information and exit
1365 -q, --quiet, --silent do not print \`checking...' messages
1366 --cache-file=FILE cache test results in FILE [disabled]
1367 -C, --config-cache alias for \`--cache-file=config.cache'
1368 -n, --no-create do not create output files
1369 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1371 Installation directories:
1372 --prefix=PREFIX install architecture-independent files in PREFIX
1373 [$ac_default_prefix]
1374 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1375 [PREFIX]
1377 By default, \`make install' will install all the files in
1378 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1379 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1380 for instance \`--prefix=\$HOME'.
1382 For better control, use the options below.
1384 Fine tuning of the installation directories:
1385 --bindir=DIR user executables [EPREFIX/bin]
1386 --sbindir=DIR system admin executables [EPREFIX/sbin]
1387 --libexecdir=DIR program executables [EPREFIX/libexec]
1388 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1389 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1390 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1391 --libdir=DIR object code libraries [EPREFIX/lib]
1392 --includedir=DIR C header files [PREFIX/include]
1393 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1394 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1395 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1396 --infodir=DIR info documentation [DATAROOTDIR/info]
1397 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1398 --mandir=DIR man documentation [DATAROOTDIR/man]
1399 --docdir=DIR documentation root [DATAROOTDIR/doc/libgomp]
1400 --htmldir=DIR html documentation [DOCDIR]
1401 --dvidir=DIR dvi documentation [DOCDIR]
1402 --pdfdir=DIR pdf documentation [DOCDIR]
1403 --psdir=DIR ps documentation [DOCDIR]
1404 _ACEOF
1406 cat <<\_ACEOF
1408 Program names:
1409 --program-prefix=PREFIX prepend PREFIX to installed program names
1410 --program-suffix=SUFFIX append SUFFIX to installed program names
1411 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1413 System types:
1414 --build=BUILD configure for building on BUILD [guessed]
1415 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1416 --target=TARGET configure for building compilers for TARGET [HOST]
1417 _ACEOF
1420 if test -n "$ac_init_help"; then
1421 case $ac_init_help in
1422 short | recursive ) echo "Configuration of GNU Offloading and Multi Processing Runtime Library 1.0:";;
1423 esac
1424 cat <<\_ACEOF
1426 Optional Features:
1427 --disable-option-checking ignore unrecognized --enable/--with options
1428 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1429 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1430 --enable-version-specific-runtime-libs
1431 Specify that runtime libraries should be installed
1432 in a compiler-specific directory [default=no]
1433 --enable-generated-files-in-srcdir
1434 put copies of generated files in source dir intended
1435 for creating source tarballs for users without
1436 texinfo bison or flex. [default=no]
1437 --enable-multilib build many library versions (default)
1438 --disable-dependency-tracking speeds up one-time build
1439 --enable-dependency-tracking do not reject slow dependency extractors
1440 --enable-shared[=PKGS] build shared libraries [default=yes]
1441 --enable-static[=PKGS] build static libraries [default=yes]
1442 --enable-fast-install[=PKGS]
1443 optimize for fast installation [default=yes]
1444 --disable-libtool-lock avoid locking (might break parallel builds)
1445 --enable-maintainer-mode enable make rules and dependencies not useful
1446 (and sometimes confusing) to the casual installer
1447 --enable-linux-futex use the Linux futex system call [default=default]
1448 --enable-tls Use thread-local storage [default=yes]
1449 --enable-symvers=STYLE enables symbol versioning of the shared library
1450 [default=yes]
1452 Optional Packages:
1453 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1454 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1455 --with-pic try to use only PIC/non-PIC objects [default=use
1456 both]
1457 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1458 --with-cuda-driver=PATH specify prefix directory for installed CUDA driver
1459 package. Equivalent to
1460 --with-cuda-driver-include=PATH/include plus
1461 --with-cuda-driver-lib=PATH/lib
1462 --with-cuda-driver-include=PATH
1463 specify directory for installed CUDA driver include
1464 files
1465 --with-cuda-driver-lib=PATH
1466 specify directory for the installed CUDA driver
1467 library
1468 --with-hsa-runtime=PATH specify prefix directory for installed HSA run-time
1469 package. Equivalent to
1470 --with-hsa-runtime-include=PATH/include plus
1471 --with-hsa-runtime-lib=PATH/lib
1472 --with-hsa-runtime-include=PATH
1473 specify directory for installed HSA run-time include
1474 files
1475 --with-hsa-runtime-lib=PATH
1476 specify directory for the installed HSA run-time
1477 library
1478 --with-hsa-kmt-lib=PATH specify directory for installed HSA KMT library.
1480 Some influential environment variables:
1481 CC C compiler command
1482 CFLAGS C compiler flags
1483 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1484 nonstandard directory <lib dir>
1485 LIBS libraries to pass to the linker, e.g. -l<library>
1486 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1487 you have headers in a nonstandard directory <include dir>
1488 CPP C preprocessor
1489 FC Fortran compiler command
1490 FCFLAGS Fortran compiler flags
1492 Use these variables to override the choices made by `configure' or to help
1493 it to find libraries and programs with nonstandard names/locations.
1495 Report bugs to the package provider.
1496 GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
1497 General help using GNU software: <http://www.gnu.org/gethelp/>.
1498 _ACEOF
1499 ac_status=$?
1502 if test "$ac_init_help" = "recursive"; then
1503 # If there are subdirs, report their specific --help.
1504 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1505 test -d "$ac_dir" ||
1506 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1507 continue
1508 ac_builddir=.
1510 case "$ac_dir" in
1511 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1513 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1514 # A ".." for each directory in $ac_dir_suffix.
1515 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1516 case $ac_top_builddir_sub in
1517 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1518 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1519 esac ;;
1520 esac
1521 ac_abs_top_builddir=$ac_pwd
1522 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1523 # for backward compatibility:
1524 ac_top_builddir=$ac_top_build_prefix
1526 case $srcdir in
1527 .) # We are building in place.
1528 ac_srcdir=.
1529 ac_top_srcdir=$ac_top_builddir_sub
1530 ac_abs_top_srcdir=$ac_pwd ;;
1531 [\\/]* | ?:[\\/]* ) # Absolute name.
1532 ac_srcdir=$srcdir$ac_dir_suffix;
1533 ac_top_srcdir=$srcdir
1534 ac_abs_top_srcdir=$srcdir ;;
1535 *) # Relative name.
1536 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1537 ac_top_srcdir=$ac_top_build_prefix$srcdir
1538 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1539 esac
1540 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1542 cd "$ac_dir" || { ac_status=$?; continue; }
1543 # Check for guested configure.
1544 if test -f "$ac_srcdir/configure.gnu"; then
1545 echo &&
1546 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1547 elif test -f "$ac_srcdir/configure"; then
1548 echo &&
1549 $SHELL "$ac_srcdir/configure" --help=recursive
1550 else
1551 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1552 fi || ac_status=$?
1553 cd "$ac_pwd" || { ac_status=$?; break; }
1554 done
1557 test -n "$ac_init_help" && exit $ac_status
1558 if $ac_init_version; then
1559 cat <<\_ACEOF
1560 GNU Offloading and Multi Processing Runtime Library configure 1.0
1561 generated by GNU Autoconf 2.64
1563 Copyright (C) 2009 Free Software Foundation, Inc.
1564 This configure script is free software; the Free Software Foundation
1565 gives unlimited permission to copy, distribute and modify it.
1566 _ACEOF
1567 exit
1570 ## ------------------------ ##
1571 ## Autoconf initialization. ##
1572 ## ------------------------ ##
1574 # ac_fn_c_try_compile LINENO
1575 # --------------------------
1576 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1577 ac_fn_c_try_compile ()
1579 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1580 rm -f conftest.$ac_objext
1581 if { { ac_try="$ac_compile"
1582 case "(($ac_try" in
1583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1584 *) ac_try_echo=$ac_try;;
1585 esac
1586 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1587 $as_echo "$ac_try_echo"; } >&5
1588 (eval "$ac_compile") 2>conftest.err
1589 ac_status=$?
1590 if test -s conftest.err; then
1591 grep -v '^ *+' conftest.err >conftest.er1
1592 cat conftest.er1 >&5
1593 mv -f conftest.er1 conftest.err
1595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1596 test $ac_status = 0; } && {
1597 test -z "$ac_c_werror_flag" ||
1598 test ! -s conftest.err
1599 } && test -s conftest.$ac_objext; then :
1600 ac_retval=0
1601 else
1602 $as_echo "$as_me: failed program was:" >&5
1603 sed 's/^/| /' conftest.$ac_ext >&5
1605 ac_retval=1
1607 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1608 return $ac_retval
1610 } # ac_fn_c_try_compile
1612 # ac_fn_c_try_link LINENO
1613 # -----------------------
1614 # Try to link conftest.$ac_ext, and return whether this succeeded.
1615 ac_fn_c_try_link ()
1617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618 rm -f conftest.$ac_objext conftest$ac_exeext
1619 if { { ac_try="$ac_link"
1620 case "(($ac_try" in
1621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1622 *) ac_try_echo=$ac_try;;
1623 esac
1624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1625 $as_echo "$ac_try_echo"; } >&5
1626 (eval "$ac_link") 2>conftest.err
1627 ac_status=$?
1628 if test -s conftest.err; then
1629 grep -v '^ *+' conftest.err >conftest.er1
1630 cat conftest.er1 >&5
1631 mv -f conftest.er1 conftest.err
1633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1634 test $ac_status = 0; } && {
1635 test -z "$ac_c_werror_flag" ||
1636 test ! -s conftest.err
1637 } && test -s conftest$ac_exeext && {
1638 test "$cross_compiling" = yes ||
1639 $as_test_x conftest$ac_exeext
1640 }; then :
1641 ac_retval=0
1642 else
1643 $as_echo "$as_me: failed program was:" >&5
1644 sed 's/^/| /' conftest.$ac_ext >&5
1646 ac_retval=1
1648 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1649 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1650 # interfere with the next link command; also delete a directory that is
1651 # left behind by Apple's compiler. We do this before executing the actions.
1652 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1653 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1654 return $ac_retval
1656 } # ac_fn_c_try_link
1658 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1659 # -------------------------------------------------------
1660 # Tests whether HEADER exists and can be compiled using the include files in
1661 # INCLUDES, setting the cache variable VAR accordingly.
1662 ac_fn_c_check_header_compile ()
1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1666 $as_echo_n "checking for $2... " >&6; }
1667 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1668 $as_echo_n "(cached) " >&6
1669 else
1670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1671 /* end confdefs.h. */
1673 #include <$2>
1674 _ACEOF
1675 if ac_fn_c_try_compile "$LINENO"; then :
1676 eval "$3=yes"
1677 else
1678 eval "$3=no"
1680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1682 eval ac_res=\$$3
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1684 $as_echo "$ac_res" >&6; }
1685 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1687 } # ac_fn_c_check_header_compile
1689 # ac_fn_c_try_cpp LINENO
1690 # ----------------------
1691 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1692 ac_fn_c_try_cpp ()
1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695 if { { ac_try="$ac_cpp conftest.$ac_ext"
1696 case "(($ac_try" in
1697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698 *) ac_try_echo=$ac_try;;
1699 esac
1700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701 $as_echo "$ac_try_echo"; } >&5
1702 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1703 ac_status=$?
1704 if test -s conftest.err; then
1705 grep -v '^ *+' conftest.err >conftest.er1
1706 cat conftest.er1 >&5
1707 mv -f conftest.er1 conftest.err
1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710 test $ac_status = 0; } >/dev/null && {
1711 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1712 test ! -s conftest.err
1713 }; then :
1714 ac_retval=0
1715 else
1716 $as_echo "$as_me: failed program was:" >&5
1717 sed 's/^/| /' conftest.$ac_ext >&5
1719 ac_retval=1
1721 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1722 return $ac_retval
1724 } # ac_fn_c_try_cpp
1726 # ac_fn_c_try_run LINENO
1727 # ----------------------
1728 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1729 # that executables *can* be run.
1730 ac_fn_c_try_run ()
1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733 if { { ac_try="$ac_link"
1734 case "(($ac_try" in
1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736 *) ac_try_echo=$ac_try;;
1737 esac
1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 $as_echo "$ac_try_echo"; } >&5
1740 (eval "$ac_link") 2>&5
1741 ac_status=$?
1742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
1751 ac_status=$?
1752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753 test $ac_status = 0; }; }; then :
1754 ac_retval=0
1755 else
1756 $as_echo "$as_me: program exited with status $ac_status" >&5
1757 $as_echo "$as_me: failed program was:" >&5
1758 sed 's/^/| /' conftest.$ac_ext >&5
1760 ac_retval=$ac_status
1762 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1763 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1764 return $ac_retval
1766 } # ac_fn_c_try_run
1768 # ac_fn_c_check_func LINENO FUNC VAR
1769 # ----------------------------------
1770 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1771 ac_fn_c_check_func ()
1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1775 $as_echo_n "checking for $2... " >&6; }
1776 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1777 $as_echo_n "(cached) " >&6
1778 else
1779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1780 /* end confdefs.h. */
1781 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1782 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1783 #define $2 innocuous_$2
1785 /* System header to define __stub macros and hopefully few prototypes,
1786 which can conflict with char $2 (); below.
1787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1788 <limits.h> exists even on freestanding compilers. */
1790 #ifdef __STDC__
1791 # include <limits.h>
1792 #else
1793 # include <assert.h>
1794 #endif
1796 #undef $2
1798 /* Override any GCC internal prototype to avoid an error.
1799 Use char because int might match the return type of a GCC
1800 builtin and then its argument prototype would still apply. */
1801 #ifdef __cplusplus
1802 extern "C"
1803 #endif
1804 char $2 ();
1805 /* The GNU C library defines this for functions which it implements
1806 to always fail with ENOSYS. Some functions are actually named
1807 something starting with __ and the normal name is an alias. */
1808 #if defined __stub_$2 || defined __stub___$2
1809 choke me
1810 #endif
1813 main ()
1815 return $2 ();
1817 return 0;
1819 _ACEOF
1820 if ac_fn_c_try_link "$LINENO"; then :
1821 eval "$3=yes"
1822 else
1823 eval "$3=no"
1825 rm -f core conftest.err conftest.$ac_objext \
1826 conftest$ac_exeext conftest.$ac_ext
1828 eval ac_res=\$$3
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1830 $as_echo "$ac_res" >&6; }
1831 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1833 } # ac_fn_c_check_func
1835 # ac_fn_fc_try_compile LINENO
1836 # ---------------------------
1837 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1838 ac_fn_fc_try_compile ()
1840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841 rm -f conftest.$ac_objext
1842 if { { ac_try="$ac_compile"
1843 case "(($ac_try" in
1844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1845 *) ac_try_echo=$ac_try;;
1846 esac
1847 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1848 $as_echo "$ac_try_echo"; } >&5
1849 (eval "$ac_compile") 2>conftest.err
1850 ac_status=$?
1851 if test -s conftest.err; then
1852 grep -v '^ *+' conftest.err >conftest.er1
1853 cat conftest.er1 >&5
1854 mv -f conftest.er1 conftest.err
1856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1857 test $ac_status = 0; } && {
1858 test -z "$ac_fc_werror_flag" ||
1859 test ! -s conftest.err
1860 } && test -s conftest.$ac_objext; then :
1861 ac_retval=0
1862 else
1863 $as_echo "$as_me: failed program was:" >&5
1864 sed 's/^/| /' conftest.$ac_ext >&5
1866 ac_retval=1
1868 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1869 return $ac_retval
1871 } # ac_fn_fc_try_compile
1873 # ac_fn_fc_try_link LINENO
1874 # ------------------------
1875 # Try to link conftest.$ac_ext, and return whether this succeeded.
1876 ac_fn_fc_try_link ()
1878 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1879 rm -f conftest.$ac_objext conftest$ac_exeext
1880 if { { ac_try="$ac_link"
1881 case "(($ac_try" in
1882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1883 *) ac_try_echo=$ac_try;;
1884 esac
1885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1886 $as_echo "$ac_try_echo"; } >&5
1887 (eval "$ac_link") 2>conftest.err
1888 ac_status=$?
1889 if test -s conftest.err; then
1890 grep -v '^ *+' conftest.err >conftest.er1
1891 cat conftest.er1 >&5
1892 mv -f conftest.er1 conftest.err
1894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1895 test $ac_status = 0; } && {
1896 test -z "$ac_fc_werror_flag" ||
1897 test ! -s conftest.err
1898 } && test -s conftest$ac_exeext && {
1899 test "$cross_compiling" = yes ||
1900 $as_test_x conftest$ac_exeext
1901 }; then :
1902 ac_retval=0
1903 else
1904 $as_echo "$as_me: failed program was:" >&5
1905 sed 's/^/| /' conftest.$ac_ext >&5
1907 ac_retval=1
1909 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1910 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1911 # interfere with the next link command; also delete a directory that is
1912 # left behind by Apple's compiler. We do this before executing the actions.
1913 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1914 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1915 return $ac_retval
1917 } # ac_fn_fc_try_link
1919 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1920 # -------------------------------------------------------
1921 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1922 # the include files in INCLUDES and setting the cache variable VAR
1923 # accordingly.
1924 ac_fn_c_check_header_mongrel ()
1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1929 $as_echo_n "checking for $2... " >&6; }
1930 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1931 $as_echo_n "(cached) " >&6
1933 eval ac_res=\$$3
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1935 $as_echo "$ac_res" >&6; }
1936 else
1937 # Is the header compilable?
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1939 $as_echo_n "checking $2 usability... " >&6; }
1940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1941 /* end confdefs.h. */
1943 #include <$2>
1944 _ACEOF
1945 if ac_fn_c_try_compile "$LINENO"; then :
1946 ac_header_compiler=yes
1947 else
1948 ac_header_compiler=no
1950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1952 $as_echo "$ac_header_compiler" >&6; }
1954 # Is the header present?
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1956 $as_echo_n "checking $2 presence... " >&6; }
1957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958 /* end confdefs.h. */
1959 #include <$2>
1960 _ACEOF
1961 if ac_fn_c_try_cpp "$LINENO"; then :
1962 ac_header_preproc=yes
1963 else
1964 ac_header_preproc=no
1966 rm -f conftest.err conftest.$ac_ext
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1968 $as_echo "$ac_header_preproc" >&6; }
1970 # So? What about this header?
1971 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1972 yes:no: )
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1974 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1976 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1978 no:yes:* )
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1980 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1982 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1984 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1986 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1988 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1990 esac
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1992 $as_echo_n "checking for $2... " >&6; }
1993 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1994 $as_echo_n "(cached) " >&6
1995 else
1996 eval "$3=\$ac_header_compiler"
1998 eval ac_res=\$$3
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2000 $as_echo "$ac_res" >&6; }
2002 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2004 } # ac_fn_c_check_header_mongrel
2006 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2007 # -------------------------------------------
2008 # Tests whether TYPE exists after having included INCLUDES, setting cache
2009 # variable VAR accordingly.
2010 ac_fn_c_check_type ()
2012 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2014 $as_echo_n "checking for $2... " >&6; }
2015 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2016 $as_echo_n "(cached) " >&6
2017 else
2018 eval "$3=no"
2019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2020 /* end confdefs.h. */
2023 main ()
2025 if (sizeof ($2))
2026 return 0;
2028 return 0;
2030 _ACEOF
2031 if ac_fn_c_try_compile "$LINENO"; then :
2032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033 /* end confdefs.h. */
2036 main ()
2038 if (sizeof (($2)))
2039 return 0;
2041 return 0;
2043 _ACEOF
2044 if ac_fn_c_try_compile "$LINENO"; then :
2046 else
2047 eval "$3=yes"
2049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2053 eval ac_res=\$$3
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2055 $as_echo "$ac_res" >&6; }
2056 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2058 } # ac_fn_c_check_type
2060 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2061 # --------------------------------------------
2062 # Tries to find the compile-time value of EXPR in a program that includes
2063 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2064 # computed
2065 ac_fn_c_compute_int ()
2067 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2068 if test "$cross_compiling" = yes; then
2069 # Depending upon the size, compute the lo and hi bounds.
2070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2071 /* end confdefs.h. */
2074 main ()
2076 static int test_array [1 - 2 * !(($2) >= 0)];
2077 test_array [0] = 0
2080 return 0;
2082 _ACEOF
2083 if ac_fn_c_try_compile "$LINENO"; then :
2084 ac_lo=0 ac_mid=0
2085 while :; do
2086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2087 /* end confdefs.h. */
2090 main ()
2092 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2093 test_array [0] = 0
2096 return 0;
2098 _ACEOF
2099 if ac_fn_c_try_compile "$LINENO"; then :
2100 ac_hi=$ac_mid; break
2101 else
2102 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2103 if test $ac_lo -le $ac_mid; then
2104 ac_lo= ac_hi=
2105 break
2107 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2110 done
2111 else
2112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2113 /* end confdefs.h. */
2116 main ()
2118 static int test_array [1 - 2 * !(($2) < 0)];
2119 test_array [0] = 0
2122 return 0;
2124 _ACEOF
2125 if ac_fn_c_try_compile "$LINENO"; then :
2126 ac_hi=-1 ac_mid=-1
2127 while :; do
2128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2129 /* end confdefs.h. */
2132 main ()
2134 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2135 test_array [0] = 0
2138 return 0;
2140 _ACEOF
2141 if ac_fn_c_try_compile "$LINENO"; then :
2142 ac_lo=$ac_mid; break
2143 else
2144 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2145 if test $ac_mid -le $ac_hi; then
2146 ac_lo= ac_hi=
2147 break
2149 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2152 done
2153 else
2154 ac_lo= ac_hi=
2156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2159 # Binary search between lo and hi bounds.
2160 while test "x$ac_lo" != "x$ac_hi"; do
2161 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2163 /* end confdefs.h. */
2166 main ()
2168 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2169 test_array [0] = 0
2172 return 0;
2174 _ACEOF
2175 if ac_fn_c_try_compile "$LINENO"; then :
2176 ac_hi=$ac_mid
2177 else
2178 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2181 done
2182 case $ac_lo in #((
2183 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2184 '') ac_retval=1 ;;
2185 esac
2186 else
2187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2188 /* end confdefs.h. */
2190 static long int longval () { return $2; }
2191 static unsigned long int ulongval () { return $2; }
2192 #include <stdio.h>
2193 #include <stdlib.h>
2195 main ()
2198 FILE *f = fopen ("conftest.val", "w");
2199 if (! f)
2200 return 1;
2201 if (($2) < 0)
2203 long int i = longval ();
2204 if (i != ($2))
2205 return 1;
2206 fprintf (f, "%ld", i);
2208 else
2210 unsigned long int i = ulongval ();
2211 if (i != ($2))
2212 return 1;
2213 fprintf (f, "%lu", i);
2215 /* Do not output a trailing newline, as this causes \r\n confusion
2216 on some platforms. */
2217 return ferror (f) || fclose (f) != 0;
2220 return 0;
2222 _ACEOF
2223 if ac_fn_c_try_run "$LINENO"; then :
2224 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2225 else
2226 ac_retval=1
2228 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2229 conftest.$ac_objext conftest.beam conftest.$ac_ext
2230 rm -f conftest.val
2233 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2234 return $ac_retval
2236 } # ac_fn_c_compute_int
2237 cat >config.log <<_ACEOF
2238 This file contains any messages produced by compilers while
2239 running configure, to aid debugging if configure makes a mistake.
2241 It was created by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
2242 generated by GNU Autoconf 2.64. Invocation command line was
2244 $ $0 $@
2246 _ACEOF
2247 exec 5>>config.log
2249 cat <<_ASUNAME
2250 ## --------- ##
2251 ## Platform. ##
2252 ## --------- ##
2254 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2255 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2256 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2257 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2258 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2260 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2261 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2263 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2264 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2265 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2266 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2267 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2268 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2269 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2271 _ASUNAME
2273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2274 for as_dir in $PATH
2276 IFS=$as_save_IFS
2277 test -z "$as_dir" && as_dir=.
2278 $as_echo "PATH: $as_dir"
2279 done
2280 IFS=$as_save_IFS
2282 } >&5
2284 cat >&5 <<_ACEOF
2287 ## ----------- ##
2288 ## Core tests. ##
2289 ## ----------- ##
2291 _ACEOF
2294 # Keep a trace of the command line.
2295 # Strip out --no-create and --no-recursion so they do not pile up.
2296 # Strip out --silent because we don't want to record it for future runs.
2297 # Also quote any args containing shell meta-characters.
2298 # Make two passes to allow for proper duplicate-argument suppression.
2299 ac_configure_args=
2300 ac_configure_args0=
2301 ac_configure_args1=
2302 ac_must_keep_next=false
2303 for ac_pass in 1 2
2305 for ac_arg
2307 case $ac_arg in
2308 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2309 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2310 | -silent | --silent | --silen | --sile | --sil)
2311 continue ;;
2312 *\'*)
2313 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2314 esac
2315 case $ac_pass in
2316 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2318 as_fn_append ac_configure_args1 " '$ac_arg'"
2319 if test $ac_must_keep_next = true; then
2320 ac_must_keep_next=false # Got value, back to normal.
2321 else
2322 case $ac_arg in
2323 *=* | --config-cache | -C | -disable-* | --disable-* \
2324 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2325 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2326 | -with-* | --with-* | -without-* | --without-* | --x)
2327 case "$ac_configure_args0 " in
2328 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2329 esac
2331 -* ) ac_must_keep_next=true ;;
2332 esac
2334 as_fn_append ac_configure_args " '$ac_arg'"
2336 esac
2337 done
2338 done
2339 { ac_configure_args0=; unset ac_configure_args0;}
2340 { ac_configure_args1=; unset ac_configure_args1;}
2342 # When interrupted or exit'd, cleanup temporary files, and complete
2343 # config.log. We remove comments because anyway the quotes in there
2344 # would cause problems or look ugly.
2345 # WARNING: Use '\'' to represent an apostrophe within the trap.
2346 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2347 trap 'exit_status=$?
2348 # Save into config.log some information that might help in debugging.
2350 echo
2352 cat <<\_ASBOX
2353 ## ---------------- ##
2354 ## Cache variables. ##
2355 ## ---------------- ##
2356 _ASBOX
2357 echo
2358 # The following way of writing the cache mishandles newlines in values,
2360 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2361 eval ac_val=\$$ac_var
2362 case $ac_val in #(
2363 *${as_nl}*)
2364 case $ac_var in #(
2365 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2366 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2367 esac
2368 case $ac_var in #(
2369 _ | IFS | as_nl) ;; #(
2370 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2371 *) { eval $ac_var=; unset $ac_var;} ;;
2372 esac ;;
2373 esac
2374 done
2375 (set) 2>&1 |
2376 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2377 *${as_nl}ac_space=\ *)
2378 sed -n \
2379 "s/'\''/'\''\\\\'\'''\''/g;
2380 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2381 ;; #(
2383 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2385 esac |
2386 sort
2388 echo
2390 cat <<\_ASBOX
2391 ## ----------------- ##
2392 ## Output variables. ##
2393 ## ----------------- ##
2394 _ASBOX
2395 echo
2396 for ac_var in $ac_subst_vars
2398 eval ac_val=\$$ac_var
2399 case $ac_val in
2400 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2401 esac
2402 $as_echo "$ac_var='\''$ac_val'\''"
2403 done | sort
2404 echo
2406 if test -n "$ac_subst_files"; then
2407 cat <<\_ASBOX
2408 ## ------------------- ##
2409 ## File substitutions. ##
2410 ## ------------------- ##
2411 _ASBOX
2412 echo
2413 for ac_var in $ac_subst_files
2415 eval ac_val=\$$ac_var
2416 case $ac_val in
2417 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2418 esac
2419 $as_echo "$ac_var='\''$ac_val'\''"
2420 done | sort
2421 echo
2424 if test -s confdefs.h; then
2425 cat <<\_ASBOX
2426 ## ----------- ##
2427 ## confdefs.h. ##
2428 ## ----------- ##
2429 _ASBOX
2430 echo
2431 cat confdefs.h
2432 echo
2434 test "$ac_signal" != 0 &&
2435 $as_echo "$as_me: caught signal $ac_signal"
2436 $as_echo "$as_me: exit $exit_status"
2437 } >&5
2438 rm -f core *.core core.conftest.* &&
2439 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2440 exit $exit_status
2442 for ac_signal in 1 2 13 15; do
2443 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2444 done
2445 ac_signal=0
2447 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2448 rm -f -r conftest* confdefs.h
2450 $as_echo "/* confdefs.h */" > confdefs.h
2452 # Predefined preprocessor variables.
2454 cat >>confdefs.h <<_ACEOF
2455 #define PACKAGE_NAME "$PACKAGE_NAME"
2456 _ACEOF
2458 cat >>confdefs.h <<_ACEOF
2459 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2460 _ACEOF
2462 cat >>confdefs.h <<_ACEOF
2463 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2464 _ACEOF
2466 cat >>confdefs.h <<_ACEOF
2467 #define PACKAGE_STRING "$PACKAGE_STRING"
2468 _ACEOF
2470 cat >>confdefs.h <<_ACEOF
2471 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2472 _ACEOF
2474 cat >>confdefs.h <<_ACEOF
2475 #define PACKAGE_URL "$PACKAGE_URL"
2476 _ACEOF
2479 # Let the site file select an alternate cache file if it wants to.
2480 # Prefer an explicitly selected file to automatically selected ones.
2481 ac_site_file1=NONE
2482 ac_site_file2=NONE
2483 if test -n "$CONFIG_SITE"; then
2484 ac_site_file1=$CONFIG_SITE
2485 elif test "x$prefix" != xNONE; then
2486 ac_site_file1=$prefix/share/config.site
2487 ac_site_file2=$prefix/etc/config.site
2488 else
2489 ac_site_file1=$ac_default_prefix/share/config.site
2490 ac_site_file2=$ac_default_prefix/etc/config.site
2492 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2494 test "x$ac_site_file" = xNONE && continue
2495 if test -r "$ac_site_file"; then
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2497 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2498 sed 's/^/| /' "$ac_site_file" >&5
2499 . "$ac_site_file"
2501 done
2503 if test -r "$cache_file"; then
2504 # Some versions of bash will fail to source /dev/null (special
2505 # files actually), so we avoid doing that.
2506 if test -f "$cache_file"; then
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2508 $as_echo "$as_me: loading cache $cache_file" >&6;}
2509 case $cache_file in
2510 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2511 *) . "./$cache_file";;
2512 esac
2514 else
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2516 $as_echo "$as_me: creating cache $cache_file" >&6;}
2517 >$cache_file
2520 # Check that the precious variables saved in the cache have kept the same
2521 # value.
2522 ac_cache_corrupted=false
2523 for ac_var in $ac_precious_vars; do
2524 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2525 eval ac_new_set=\$ac_env_${ac_var}_set
2526 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2527 eval ac_new_val=\$ac_env_${ac_var}_value
2528 case $ac_old_set,$ac_new_set in
2529 set,)
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2531 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2532 ac_cache_corrupted=: ;;
2533 ,set)
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2535 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2536 ac_cache_corrupted=: ;;
2537 ,);;
2539 if test "x$ac_old_val" != "x$ac_new_val"; then
2540 # differences in whitespace do not lead to failure.
2541 ac_old_val_w=`echo x $ac_old_val`
2542 ac_new_val_w=`echo x $ac_new_val`
2543 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2545 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2546 ac_cache_corrupted=:
2547 else
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2549 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2550 eval $ac_var=\$ac_old_val
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2553 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2555 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2556 fi;;
2557 esac
2558 # Pass precious variables to config.status.
2559 if test "$ac_new_set" = set; then
2560 case $ac_new_val in
2561 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2562 *) ac_arg=$ac_var=$ac_new_val ;;
2563 esac
2564 case " $ac_configure_args " in
2565 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2566 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2567 esac
2569 done
2570 if $ac_cache_corrupted; then
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2572 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2574 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2575 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2577 ## -------------------- ##
2578 ## Main body of script. ##
2579 ## -------------------- ##
2581 ac_ext=c
2582 ac_cpp='$CPP $CPPFLAGS'
2583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2591 ac_config_headers="$ac_config_headers config.h"
2594 # -------
2595 # Options
2596 # -------
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2599 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2600 # Check whether --enable-version-specific-runtime-libs was given.
2601 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2602 enableval=$enable_version_specific_runtime_libs;
2603 case "$enableval" in
2604 yes|no) ;;
2605 *) as_fn_error "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2606 esac
2608 else
2609 enable_version_specific_runtime_libs=no
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2614 $as_echo "$enable_version_specific_runtime_libs" >&6; }
2616 # We would like our source tree to be readonly. However when releases or
2617 # pre-releases are generated, the flex/bison generated files as well as the
2618 # various formats of manuals need to be included along with the rest of the
2619 # sources. Therefore we have --enable-generated-files-in-srcdir to do
2620 # just that.
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2622 $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2623 # Check whether --enable-generated-files-in-srcdir was given.
2624 if test "${enable_generated_files_in_srcdir+set}" = set; then :
2625 enableval=$enable_generated_files_in_srcdir;
2626 case "$enableval" in
2627 yes|no) ;;
2628 *) as_fn_error "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2629 esac
2631 else
2632 enable_generated_files_in_srcdir=no
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2637 $as_echo "$enable_generated_files_in_srcdir" >&6; }
2638 if test "$enable_generated_files_in_srcdir" = yes; then
2639 GENINSRC_TRUE=
2640 GENINSRC_FALSE='#'
2641 else
2642 GENINSRC_TRUE='#'
2643 GENINSRC_FALSE=
2648 # -------
2649 # -------
2651 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2653 # You will slowly go insane if you do not grok the following fact: when
2654 # building this library, the top-level /target/ becomes the library's /host/.
2656 # configure then causes --target to default to --host, exactly like any
2657 # other package using autoconf. Therefore, 'target' and 'host' will
2658 # always be the same. This makes sense both for native and cross compilers
2659 # just think about it for a little while. :-)
2661 # Also, if this library is being configured as part of a cross compiler, the
2662 # top-level configure script will pass the "real" host as $with_cross_host.
2664 # Do not delete or change the following two lines. For why, see
2665 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2666 ac_aux_dir=
2667 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2668 for ac_t in install-sh install.sh shtool; do
2669 if test -f "$ac_dir/$ac_t"; then
2670 ac_aux_dir=$ac_dir
2671 ac_install_sh="$ac_aux_dir/$ac_t -c"
2672 break 2
2674 done
2675 done
2676 if test -z "$ac_aux_dir"; then
2677 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2680 # These three variables are undocumented and unsupported,
2681 # and are intended to be withdrawn in a future Autoconf release.
2682 # They can cause serious problems if a builder's source tree is in a directory
2683 # whose full name contains unusual characters.
2684 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2685 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2686 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2689 # Make sure we can run config.sub.
2690 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2691 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2694 $as_echo_n "checking build system type... " >&6; }
2695 if test "${ac_cv_build+set}" = set; then :
2696 $as_echo_n "(cached) " >&6
2697 else
2698 ac_build_alias=$build_alias
2699 test "x$ac_build_alias" = x &&
2700 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2701 test "x$ac_build_alias" = x &&
2702 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2703 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2704 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2708 $as_echo "$ac_cv_build" >&6; }
2709 case $ac_cv_build in
2710 *-*-*) ;;
2711 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2712 esac
2713 build=$ac_cv_build
2714 ac_save_IFS=$IFS; IFS='-'
2715 set x $ac_cv_build
2716 shift
2717 build_cpu=$1
2718 build_vendor=$2
2719 shift; shift
2720 # Remember, the first character of IFS is used to create $*,
2721 # except with old shells:
2722 build_os=$*
2723 IFS=$ac_save_IFS
2724 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2728 $as_echo_n "checking host system type... " >&6; }
2729 if test "${ac_cv_host+set}" = set; then :
2730 $as_echo_n "(cached) " >&6
2731 else
2732 if test "x$host_alias" = x; then
2733 ac_cv_host=$ac_cv_build
2734 else
2735 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2736 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2741 $as_echo "$ac_cv_host" >&6; }
2742 case $ac_cv_host in
2743 *-*-*) ;;
2744 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2745 esac
2746 host=$ac_cv_host
2747 ac_save_IFS=$IFS; IFS='-'
2748 set x $ac_cv_host
2749 shift
2750 host_cpu=$1
2751 host_vendor=$2
2752 shift; shift
2753 # Remember, the first character of IFS is used to create $*,
2754 # except with old shells:
2755 host_os=$*
2756 IFS=$ac_save_IFS
2757 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2761 $as_echo_n "checking target system type... " >&6; }
2762 if test "${ac_cv_target+set}" = set; then :
2763 $as_echo_n "(cached) " >&6
2764 else
2765 if test "x$target_alias" = x; then
2766 ac_cv_target=$ac_cv_host
2767 else
2768 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2769 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2774 $as_echo "$ac_cv_target" >&6; }
2775 case $ac_cv_target in
2776 *-*-*) ;;
2777 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2778 esac
2779 target=$ac_cv_target
2780 ac_save_IFS=$IFS; IFS='-'
2781 set x $ac_cv_target
2782 shift
2783 target_cpu=$1
2784 target_vendor=$2
2785 shift; shift
2786 # Remember, the first character of IFS is used to create $*,
2787 # except with old shells:
2788 target_os=$*
2789 IFS=$ac_save_IFS
2790 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2793 # The aliases save the names the user supplied, while $host etc.
2794 # will get canonicalized.
2795 test -n "$target_alias" &&
2796 test "$program_prefix$program_suffix$program_transform_name" = \
2797 NONENONEs,x,x, &&
2798 program_prefix=${target_alias}-
2800 target_alias=${target_alias-$host_alias}
2802 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2803 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2804 # 1.9.0: minimum required version
2805 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2806 # of other PACKAGE_* variables will, however, and there's nothing
2807 # we can do about that; they come from AC_INIT).
2808 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2809 # file in the top srcdir, etc, etc), so stop complaining.
2810 # no-dist: we don't want 'dist' and related rules.
2811 # -Wall: turns on all automake warnings...
2812 # -Wno-portability: ...except this one, since GNU make is required.
2813 # -Wno-override: ... and this one, since we do want this in testsuite.
2814 am__api_version='1.11'
2816 # Find a good install program. We prefer a C program (faster),
2817 # so one script is as good as another. But avoid the broken or
2818 # incompatible versions:
2819 # SysV /etc/install, /usr/sbin/install
2820 # SunOS /usr/etc/install
2821 # IRIX /sbin/install
2822 # AIX /bin/install
2823 # AmigaOS /C/install, which installs bootblocks on floppy discs
2824 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2825 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2826 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2827 # OS/2's system install, which has a completely different semantic
2828 # ./install, which can be erroneously created by make from ./install.sh.
2829 # Reject install programs that cannot install multiple files.
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2831 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2832 if test -z "$INSTALL"; then
2833 if test "${ac_cv_path_install+set}" = set; then :
2834 $as_echo_n "(cached) " >&6
2835 else
2836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2837 for as_dir in $PATH
2839 IFS=$as_save_IFS
2840 test -z "$as_dir" && as_dir=.
2841 # Account for people who put trailing slashes in PATH elements.
2842 case $as_dir/ in #((
2843 ./ | .// | /[cC]/* | \
2844 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2845 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2846 /usr/ucb/* ) ;;
2848 # OSF1 and SCO ODT 3.0 have their own names for install.
2849 # Don't use installbsd from OSF since it installs stuff as root
2850 # by default.
2851 for ac_prog in ginstall scoinst install; do
2852 for ac_exec_ext in '' $ac_executable_extensions; do
2853 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2854 if test $ac_prog = install &&
2855 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2856 # AIX install. It has an incompatible calling convention.
2858 elif test $ac_prog = install &&
2859 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2860 # program-specific install script used by HP pwplus--don't use.
2862 else
2863 rm -rf conftest.one conftest.two conftest.dir
2864 echo one > conftest.one
2865 echo two > conftest.two
2866 mkdir conftest.dir
2867 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2868 test -s conftest.one && test -s conftest.two &&
2869 test -s conftest.dir/conftest.one &&
2870 test -s conftest.dir/conftest.two
2871 then
2872 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2873 break 3
2877 done
2878 done
2880 esac
2882 done
2883 IFS=$as_save_IFS
2885 rm -rf conftest.one conftest.two conftest.dir
2888 if test "${ac_cv_path_install+set}" = set; then
2889 INSTALL=$ac_cv_path_install
2890 else
2891 # As a last resort, use the slow shell script. Don't cache a
2892 # value for INSTALL within a source directory, because that will
2893 # break other packages using the cache if that directory is
2894 # removed, or if the value is a relative name.
2895 INSTALL=$ac_install_sh
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2899 $as_echo "$INSTALL" >&6; }
2901 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2902 # It thinks the first close brace ends the variable substitution.
2903 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2905 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2907 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2910 $as_echo_n "checking whether build environment is sane... " >&6; }
2911 # Just in case
2912 sleep 1
2913 echo timestamp > conftest.file
2914 # Reject unsafe characters in $srcdir or the absolute working directory
2915 # name. Accept space and tab only in the latter.
2916 am_lf='
2918 case `pwd` in
2919 *[\\\"\#\$\&\'\`$am_lf]*)
2920 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2921 esac
2922 case $srcdir in
2923 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2924 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2925 esac
2927 # Do `set' in a subshell so we don't clobber the current shell's
2928 # arguments. Must try -L first in case configure is actually a
2929 # symlink; some systems play weird games with the mod time of symlinks
2930 # (eg FreeBSD returns the mod time of the symlink's containing
2931 # directory).
2932 if (
2933 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2934 if test "$*" = "X"; then
2935 # -L didn't work.
2936 set X `ls -t "$srcdir/configure" conftest.file`
2938 rm -f conftest.file
2939 if test "$*" != "X $srcdir/configure conftest.file" \
2940 && test "$*" != "X conftest.file $srcdir/configure"; then
2942 # If neither matched, then we have a broken ls. This can happen
2943 # if, for instance, CONFIG_SHELL is bash and it inherits a
2944 # broken ls alias from the environment. This has actually
2945 # happened. Such a system could not be considered "sane".
2946 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2947 alias in your environment" "$LINENO" 5
2950 test "$2" = conftest.file
2952 then
2953 # Ok.
2955 else
2956 as_fn_error "newly created file is older than distributed files!
2957 Check your system clock" "$LINENO" 5
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2960 $as_echo "yes" >&6; }
2961 test "$program_prefix" != NONE &&
2962 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2963 # Use a double $ so make ignores it.
2964 test "$program_suffix" != NONE &&
2965 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2966 # Double any \ or $.
2967 # By default was `s,x,x', remove it if useless.
2968 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2969 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2971 # expand $ac_aux_dir to an absolute path
2972 am_aux_dir=`cd $ac_aux_dir && pwd`
2974 if test x"${MISSING+set}" != xset; then
2975 case $am_aux_dir in
2976 *\ * | *\ *)
2977 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2979 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2980 esac
2982 # Use eval to expand $SHELL
2983 if eval "$MISSING --run true"; then
2984 am_missing_run="$MISSING --run "
2985 else
2986 am_missing_run=
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2988 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2991 if test x"${install_sh}" != xset; then
2992 case $am_aux_dir in
2993 *\ * | *\ *)
2994 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2996 install_sh="\${SHELL} $am_aux_dir/install-sh"
2997 esac
3000 # Installed binaries are usually stripped using `strip' when the user
3001 # run `make install-strip'. However `strip' might not be the right
3002 # tool to use in cross-compilation environments, therefore Automake
3003 # will honor the `STRIP' environment variable to overrule this program.
3004 if test "$cross_compiling" != no; then
3005 if test -n "$ac_tool_prefix"; then
3006 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3007 set dummy ${ac_tool_prefix}strip; ac_word=$2
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3009 $as_echo_n "checking for $ac_word... " >&6; }
3010 if test "${ac_cv_prog_STRIP+set}" = set; then :
3011 $as_echo_n "(cached) " >&6
3012 else
3013 if test -n "$STRIP"; then
3014 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3015 else
3016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3017 for as_dir in $PATH
3019 IFS=$as_save_IFS
3020 test -z "$as_dir" && as_dir=.
3021 for ac_exec_ext in '' $ac_executable_extensions; do
3022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3023 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3025 break 2
3027 done
3028 done
3029 IFS=$as_save_IFS
3033 STRIP=$ac_cv_prog_STRIP
3034 if test -n "$STRIP"; then
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3036 $as_echo "$STRIP" >&6; }
3037 else
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3039 $as_echo "no" >&6; }
3044 if test -z "$ac_cv_prog_STRIP"; then
3045 ac_ct_STRIP=$STRIP
3046 # Extract the first word of "strip", so it can be a program name with args.
3047 set dummy strip; ac_word=$2
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3049 $as_echo_n "checking for $ac_word... " >&6; }
3050 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3051 $as_echo_n "(cached) " >&6
3052 else
3053 if test -n "$ac_ct_STRIP"; then
3054 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3055 else
3056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3057 for as_dir in $PATH
3059 IFS=$as_save_IFS
3060 test -z "$as_dir" && as_dir=.
3061 for ac_exec_ext in '' $ac_executable_extensions; do
3062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3063 ac_cv_prog_ac_ct_STRIP="strip"
3064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3065 break 2
3067 done
3068 done
3069 IFS=$as_save_IFS
3073 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3074 if test -n "$ac_ct_STRIP"; then
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3076 $as_echo "$ac_ct_STRIP" >&6; }
3077 else
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3079 $as_echo "no" >&6; }
3082 if test "x$ac_ct_STRIP" = x; then
3083 STRIP=":"
3084 else
3085 case $cross_compiling:$ac_tool_warned in
3086 yes:)
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3088 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3089 ac_tool_warned=yes ;;
3090 esac
3091 STRIP=$ac_ct_STRIP
3093 else
3094 STRIP="$ac_cv_prog_STRIP"
3098 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3101 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3102 if test -z "$MKDIR_P"; then
3103 if test "${ac_cv_path_mkdir+set}" = set; then :
3104 $as_echo_n "(cached) " >&6
3105 else
3106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3107 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3109 IFS=$as_save_IFS
3110 test -z "$as_dir" && as_dir=.
3111 for ac_prog in mkdir gmkdir; do
3112 for ac_exec_ext in '' $ac_executable_extensions; do
3113 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3114 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3115 'mkdir (GNU coreutils) '* | \
3116 'mkdir (coreutils) '* | \
3117 'mkdir (fileutils) '4.1*)
3118 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3119 break 3;;
3120 esac
3121 done
3122 done
3123 done
3124 IFS=$as_save_IFS
3128 if test "${ac_cv_path_mkdir+set}" = set; then
3129 MKDIR_P="$ac_cv_path_mkdir -p"
3130 else
3131 # As a last resort, use the slow shell script. Don't cache a
3132 # value for MKDIR_P within a source directory, because that will
3133 # break other packages using the cache if that directory is
3134 # removed, or if the value is a relative name.
3135 test -d ./--version && rmdir ./--version
3136 MKDIR_P="$ac_install_sh -d"
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3140 $as_echo "$MKDIR_P" >&6; }
3142 mkdir_p="$MKDIR_P"
3143 case $mkdir_p in
3144 [\\/$]* | ?:[\\/]*) ;;
3145 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3146 esac
3148 for ac_prog in gawk mawk nawk awk
3150 # Extract the first word of "$ac_prog", so it can be a program name with args.
3151 set dummy $ac_prog; ac_word=$2
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3153 $as_echo_n "checking for $ac_word... " >&6; }
3154 if test "${ac_cv_prog_AWK+set}" = set; then :
3155 $as_echo_n "(cached) " >&6
3156 else
3157 if test -n "$AWK"; then
3158 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3159 else
3160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3161 for as_dir in $PATH
3163 IFS=$as_save_IFS
3164 test -z "$as_dir" && as_dir=.
3165 for ac_exec_ext in '' $ac_executable_extensions; do
3166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3167 ac_cv_prog_AWK="$ac_prog"
3168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3169 break 2
3171 done
3172 done
3173 IFS=$as_save_IFS
3177 AWK=$ac_cv_prog_AWK
3178 if test -n "$AWK"; then
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3180 $as_echo "$AWK" >&6; }
3181 else
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3183 $as_echo "no" >&6; }
3187 test -n "$AWK" && break
3188 done
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3191 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3192 set x ${MAKE-make}
3193 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3194 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3195 $as_echo_n "(cached) " >&6
3196 else
3197 cat >conftest.make <<\_ACEOF
3198 SHELL = /bin/sh
3199 all:
3200 @echo '@@@%%%=$(MAKE)=@@@%%%'
3201 _ACEOF
3202 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3203 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3204 *@@@%%%=?*=@@@%%%*)
3205 eval ac_cv_prog_make_${ac_make}_set=yes;;
3207 eval ac_cv_prog_make_${ac_make}_set=no;;
3208 esac
3209 rm -f conftest.make
3211 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3213 $as_echo "yes" >&6; }
3214 SET_MAKE=
3215 else
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3217 $as_echo "no" >&6; }
3218 SET_MAKE="MAKE=${MAKE-make}"
3221 rm -rf .tst 2>/dev/null
3222 mkdir .tst 2>/dev/null
3223 if test -d .tst; then
3224 am__leading_dot=.
3225 else
3226 am__leading_dot=_
3228 rmdir .tst 2>/dev/null
3230 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3231 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3232 # is not polluted with repeated "-I."
3233 am__isrc=' -I$(srcdir)'
3234 # test to see if srcdir already configured
3235 if test -f $srcdir/config.status; then
3236 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3240 # test whether we have cygpath
3241 if test -z "$CYGPATH_W"; then
3242 if (cygpath --version) >/dev/null 2>/dev/null; then
3243 CYGPATH_W='cygpath -w'
3244 else
3245 CYGPATH_W=echo
3250 # Define the identity of the package.
3251 PACKAGE='libgomp'
3252 VERSION='1.0'
3255 cat >>confdefs.h <<_ACEOF
3256 #define PACKAGE "$PACKAGE"
3257 _ACEOF
3260 cat >>confdefs.h <<_ACEOF
3261 #define VERSION "$VERSION"
3262 _ACEOF
3264 # Some tools Automake needs.
3266 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3269 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3272 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3275 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3278 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3280 # We need awk for the "check" target. The system "awk" is bad on
3281 # some platforms.
3282 # Always define AMTAR for backward compatibility. Yes, it's still used
3283 # in the wild :-( We should find a proper way to deprecate it ...
3284 AMTAR='$${TAR-tar}'
3286 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3292 # Default to --enable-multilib
3293 # Check whether --enable-multilib was given.
3294 if test "${enable_multilib+set}" = set; then :
3295 enableval=$enable_multilib; case "$enableval" in
3296 yes) multilib=yes ;;
3297 no) multilib=no ;;
3298 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3299 esac
3300 else
3301 multilib=yes
3305 # We may get other options which we leave undocumented:
3306 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3307 # See config-ml.in if you want the gory details.
3309 if test "$srcdir" = "."; then
3310 if test "$with_target_subdir" != "."; then
3311 multi_basedir="$srcdir/$with_multisrctop../.."
3312 else
3313 multi_basedir="$srcdir/$with_multisrctop.."
3315 else
3316 multi_basedir="$srcdir/.."
3320 # Even if the default multilib is not a cross compilation,
3321 # it may be that some of the other multilibs are.
3322 if test $cross_compiling = no && test $multilib = yes \
3323 && test "x${with_multisubdir}" != x ; then
3324 cross_compiling=maybe
3327 ac_config_commands="$ac_config_commands default-1"
3330 # Calculate toolexeclibdir
3331 # Also toolexecdir, though it's only used in toolexeclibdir
3332 case ${enable_version_specific_runtime_libs} in
3333 yes)
3334 # Need the gcc compiler version to know where to install libraries
3335 # and header files if --enable-version-specific-runtime-libs option
3336 # is selected.
3337 toolexecdir='$(libdir)/gcc/$(target_alias)'
3338 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3341 if test -n "$with_cross_host" &&
3342 test x"$with_cross_host" != x"no"; then
3343 # Install a library built with a cross compiler in tooldir, not libdir.
3344 toolexecdir='$(exec_prefix)/$(target_alias)'
3345 toolexeclibdir='$(toolexecdir)/lib'
3346 else
3347 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3348 toolexeclibdir='$(libdir)'
3350 multi_os_directory=`$CC -print-multi-os-directory`
3351 case $multi_os_directory in
3352 .) ;; # Avoid trailing /.
3353 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3354 esac
3356 esac
3360 # Check the compiler.
3361 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3362 # We must force CC to /not/ be precious variables; otherwise
3363 # the wrong, non-multilib-adjusted value will be used in multilibs.
3364 # As a side effect, we have to subst CFLAGS ourselves.
3368 ac_ext=c
3369 ac_cpp='$CPP $CPPFLAGS'
3370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3373 if test -n "$ac_tool_prefix"; then
3374 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3375 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3377 $as_echo_n "checking for $ac_word... " >&6; }
3378 if test "${ac_cv_prog_CC+set}" = set; then :
3379 $as_echo_n "(cached) " >&6
3380 else
3381 if test -n "$CC"; then
3382 ac_cv_prog_CC="$CC" # Let the user override the test.
3383 else
3384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3385 for as_dir in $PATH
3387 IFS=$as_save_IFS
3388 test -z "$as_dir" && as_dir=.
3389 for ac_exec_ext in '' $ac_executable_extensions; do
3390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3391 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3393 break 2
3395 done
3396 done
3397 IFS=$as_save_IFS
3401 CC=$ac_cv_prog_CC
3402 if test -n "$CC"; then
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3404 $as_echo "$CC" >&6; }
3405 else
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3407 $as_echo "no" >&6; }
3412 if test -z "$ac_cv_prog_CC"; then
3413 ac_ct_CC=$CC
3414 # Extract the first word of "gcc", so it can be a program name with args.
3415 set dummy gcc; ac_word=$2
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3417 $as_echo_n "checking for $ac_word... " >&6; }
3418 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3419 $as_echo_n "(cached) " >&6
3420 else
3421 if test -n "$ac_ct_CC"; then
3422 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3423 else
3424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3425 for as_dir in $PATH
3427 IFS=$as_save_IFS
3428 test -z "$as_dir" && as_dir=.
3429 for ac_exec_ext in '' $ac_executable_extensions; do
3430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3431 ac_cv_prog_ac_ct_CC="gcc"
3432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3433 break 2
3435 done
3436 done
3437 IFS=$as_save_IFS
3441 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3442 if test -n "$ac_ct_CC"; then
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3444 $as_echo "$ac_ct_CC" >&6; }
3445 else
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3447 $as_echo "no" >&6; }
3450 if test "x$ac_ct_CC" = x; then
3451 CC=""
3452 else
3453 case $cross_compiling:$ac_tool_warned in
3454 yes:)
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3456 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3457 ac_tool_warned=yes ;;
3458 esac
3459 CC=$ac_ct_CC
3461 else
3462 CC="$ac_cv_prog_CC"
3465 if test -z "$CC"; then
3466 if test -n "$ac_tool_prefix"; then
3467 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3468 set dummy ${ac_tool_prefix}cc; ac_word=$2
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3470 $as_echo_n "checking for $ac_word... " >&6; }
3471 if test "${ac_cv_prog_CC+set}" = set; then :
3472 $as_echo_n "(cached) " >&6
3473 else
3474 if test -n "$CC"; then
3475 ac_cv_prog_CC="$CC" # Let the user override the test.
3476 else
3477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3478 for as_dir in $PATH
3480 IFS=$as_save_IFS
3481 test -z "$as_dir" && as_dir=.
3482 for ac_exec_ext in '' $ac_executable_extensions; do
3483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3484 ac_cv_prog_CC="${ac_tool_prefix}cc"
3485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3486 break 2
3488 done
3489 done
3490 IFS=$as_save_IFS
3494 CC=$ac_cv_prog_CC
3495 if test -n "$CC"; then
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3497 $as_echo "$CC" >&6; }
3498 else
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3500 $as_echo "no" >&6; }
3506 if test -z "$CC"; then
3507 # Extract the first word of "cc", so it can be a program name with args.
3508 set dummy cc; ac_word=$2
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3510 $as_echo_n "checking for $ac_word... " >&6; }
3511 if test "${ac_cv_prog_CC+set}" = set; then :
3512 $as_echo_n "(cached) " >&6
3513 else
3514 if test -n "$CC"; then
3515 ac_cv_prog_CC="$CC" # Let the user override the test.
3516 else
3517 ac_prog_rejected=no
3518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3519 for as_dir in $PATH
3521 IFS=$as_save_IFS
3522 test -z "$as_dir" && as_dir=.
3523 for ac_exec_ext in '' $ac_executable_extensions; do
3524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3525 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3526 ac_prog_rejected=yes
3527 continue
3529 ac_cv_prog_CC="cc"
3530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3531 break 2
3533 done
3534 done
3535 IFS=$as_save_IFS
3537 if test $ac_prog_rejected = yes; then
3538 # We found a bogon in the path, so make sure we never use it.
3539 set dummy $ac_cv_prog_CC
3540 shift
3541 if test $# != 0; then
3542 # We chose a different compiler from the bogus one.
3543 # However, it has the same basename, so the bogon will be chosen
3544 # first if we set CC to just the basename; use the full file name.
3545 shift
3546 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3551 CC=$ac_cv_prog_CC
3552 if test -n "$CC"; then
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3554 $as_echo "$CC" >&6; }
3555 else
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3557 $as_echo "no" >&6; }
3562 if test -z "$CC"; then
3563 if test -n "$ac_tool_prefix"; then
3564 for ac_prog in cl.exe
3566 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3567 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3569 $as_echo_n "checking for $ac_word... " >&6; }
3570 if test "${ac_cv_prog_CC+set}" = set; then :
3571 $as_echo_n "(cached) " >&6
3572 else
3573 if test -n "$CC"; then
3574 ac_cv_prog_CC="$CC" # Let the user override the test.
3575 else
3576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3577 for as_dir in $PATH
3579 IFS=$as_save_IFS
3580 test -z "$as_dir" && as_dir=.
3581 for ac_exec_ext in '' $ac_executable_extensions; do
3582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3583 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3585 break 2
3587 done
3588 done
3589 IFS=$as_save_IFS
3593 CC=$ac_cv_prog_CC
3594 if test -n "$CC"; then
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3596 $as_echo "$CC" >&6; }
3597 else
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3599 $as_echo "no" >&6; }
3603 test -n "$CC" && break
3604 done
3606 if test -z "$CC"; then
3607 ac_ct_CC=$CC
3608 for ac_prog in cl.exe
3610 # Extract the first word of "$ac_prog", so it can be a program name with args.
3611 set dummy $ac_prog; ac_word=$2
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3613 $as_echo_n "checking for $ac_word... " >&6; }
3614 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3615 $as_echo_n "(cached) " >&6
3616 else
3617 if test -n "$ac_ct_CC"; then
3618 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3619 else
3620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3621 for as_dir in $PATH
3623 IFS=$as_save_IFS
3624 test -z "$as_dir" && as_dir=.
3625 for ac_exec_ext in '' $ac_executable_extensions; do
3626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3627 ac_cv_prog_ac_ct_CC="$ac_prog"
3628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3629 break 2
3631 done
3632 done
3633 IFS=$as_save_IFS
3637 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3638 if test -n "$ac_ct_CC"; then
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3640 $as_echo "$ac_ct_CC" >&6; }
3641 else
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3643 $as_echo "no" >&6; }
3647 test -n "$ac_ct_CC" && break
3648 done
3650 if test "x$ac_ct_CC" = x; then
3651 CC=""
3652 else
3653 case $cross_compiling:$ac_tool_warned in
3654 yes:)
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3656 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3657 ac_tool_warned=yes ;;
3658 esac
3659 CC=$ac_ct_CC
3666 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3667 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3668 as_fn_error "no acceptable C compiler found in \$PATH
3669 See \`config.log' for more details." "$LINENO" 5; }
3671 # Provide some information about the compiler.
3672 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3673 set X $ac_compile
3674 ac_compiler=$2
3675 for ac_option in --version -v -V -qversion; do
3676 { { ac_try="$ac_compiler $ac_option >&5"
3677 case "(($ac_try" in
3678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3679 *) ac_try_echo=$ac_try;;
3680 esac
3681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3682 $as_echo "$ac_try_echo"; } >&5
3683 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3684 ac_status=$?
3685 if test -s conftest.err; then
3686 sed '10a\
3687 ... rest of stderr output deleted ...
3688 10q' conftest.err >conftest.er1
3689 cat conftest.er1 >&5
3690 rm -f conftest.er1 conftest.err
3692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3693 test $ac_status = 0; }
3694 done
3696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3697 /* end confdefs.h. */
3700 main ()
3704 return 0;
3706 _ACEOF
3707 ac_clean_files_save=$ac_clean_files
3708 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3709 # Try to create an executable without -o first, disregard a.out.
3710 # It will help us diagnose broken compilers, and finding out an intuition
3711 # of exeext.
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3713 $as_echo_n "checking for C compiler default output file name... " >&6; }
3714 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3716 # The possible output files:
3717 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3719 ac_rmfiles=
3720 for ac_file in $ac_files
3722 case $ac_file in
3723 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3724 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3725 esac
3726 done
3727 rm -f $ac_rmfiles
3729 if { { ac_try="$ac_link_default"
3730 case "(($ac_try" in
3731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3732 *) ac_try_echo=$ac_try;;
3733 esac
3734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3735 $as_echo "$ac_try_echo"; } >&5
3736 (eval "$ac_link_default") 2>&5
3737 ac_status=$?
3738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3739 test $ac_status = 0; }; then :
3740 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3741 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3742 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3743 # so that the user can short-circuit this test for compilers unknown to
3744 # Autoconf.
3745 for ac_file in $ac_files ''
3747 test -f "$ac_file" || continue
3748 case $ac_file in
3749 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3751 [ab].out )
3752 # We found the default executable, but exeext='' is most
3753 # certainly right.
3754 break;;
3755 *.* )
3756 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3757 then :; else
3758 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3760 # We set ac_cv_exeext here because the later test for it is not
3761 # safe: cross compilers may not add the suffix if given an `-o'
3762 # argument, so we may need to know it at that point already.
3763 # Even if this section looks crufty: it has the advantage of
3764 # actually working.
3765 break;;
3767 break;;
3768 esac
3769 done
3770 test "$ac_cv_exeext" = no && ac_cv_exeext=
3772 else
3773 ac_file=''
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3776 $as_echo "$ac_file" >&6; }
3777 if test -z "$ac_file"; then :
3778 $as_echo "$as_me: failed program was:" >&5
3779 sed 's/^/| /' conftest.$ac_ext >&5
3781 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3782 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3783 { as_fn_set_status 77
3784 as_fn_error "C compiler cannot create executables
3785 See \`config.log' for more details." "$LINENO" 5; }; }
3787 ac_exeext=$ac_cv_exeext
3789 # Check that the compiler produces executables we can run. If not, either
3790 # the compiler is broken, or we cross compile.
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3792 $as_echo_n "checking whether the C compiler works... " >&6; }
3793 # If not cross compiling, check that we can run a simple program.
3794 if test "$cross_compiling" != yes; then
3795 if { ac_try='./$ac_file'
3796 { { case "(($ac_try" in
3797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3798 *) ac_try_echo=$ac_try;;
3799 esac
3800 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3801 $as_echo "$ac_try_echo"; } >&5
3802 (eval "$ac_try") 2>&5
3803 ac_status=$?
3804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3805 test $ac_status = 0; }; }; then
3806 cross_compiling=no
3807 else
3808 if test "$cross_compiling" = maybe; then
3809 cross_compiling=yes
3810 else
3811 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3812 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3813 as_fn_error "cannot run C compiled programs.
3814 If you meant to cross compile, use \`--host'.
3815 See \`config.log' for more details." "$LINENO" 5; }
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3820 $as_echo "yes" >&6; }
3822 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3823 ac_clean_files=$ac_clean_files_save
3824 # Check that the compiler produces executables we can run. If not, either
3825 # the compiler is broken, or we cross compile.
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3827 $as_echo_n "checking whether we are cross compiling... " >&6; }
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3829 $as_echo "$cross_compiling" >&6; }
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3832 $as_echo_n "checking for suffix of executables... " >&6; }
3833 if { { ac_try="$ac_link"
3834 case "(($ac_try" in
3835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3836 *) ac_try_echo=$ac_try;;
3837 esac
3838 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3839 $as_echo "$ac_try_echo"; } >&5
3840 (eval "$ac_link") 2>&5
3841 ac_status=$?
3842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3843 test $ac_status = 0; }; then :
3844 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3845 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3846 # work properly (i.e., refer to `conftest.exe'), while it won't with
3847 # `rm'.
3848 for ac_file in conftest.exe conftest conftest.*; do
3849 test -f "$ac_file" || continue
3850 case $ac_file in
3851 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3852 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3853 break;;
3854 * ) break;;
3855 esac
3856 done
3857 else
3858 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3859 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3860 as_fn_error "cannot compute suffix of executables: cannot compile and link
3861 See \`config.log' for more details." "$LINENO" 5; }
3863 rm -f conftest$ac_cv_exeext
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3865 $as_echo "$ac_cv_exeext" >&6; }
3867 rm -f conftest.$ac_ext
3868 EXEEXT=$ac_cv_exeext
3869 ac_exeext=$EXEEXT
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3871 $as_echo_n "checking for suffix of object files... " >&6; }
3872 if test "${ac_cv_objext+set}" = set; then :
3873 $as_echo_n "(cached) " >&6
3874 else
3875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3876 /* end confdefs.h. */
3879 main ()
3883 return 0;
3885 _ACEOF
3886 rm -f conftest.o conftest.obj
3887 if { { ac_try="$ac_compile"
3888 case "(($ac_try" in
3889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3890 *) ac_try_echo=$ac_try;;
3891 esac
3892 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3893 $as_echo "$ac_try_echo"; } >&5
3894 (eval "$ac_compile") 2>&5
3895 ac_status=$?
3896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3897 test $ac_status = 0; }; then :
3898 for ac_file in conftest.o conftest.obj conftest.*; do
3899 test -f "$ac_file" || continue;
3900 case $ac_file in
3901 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3902 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3903 break;;
3904 esac
3905 done
3906 else
3907 $as_echo "$as_me: failed program was:" >&5
3908 sed 's/^/| /' conftest.$ac_ext >&5
3910 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3911 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3912 as_fn_error "cannot compute suffix of object files: cannot compile
3913 See \`config.log' for more details." "$LINENO" 5; }
3915 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3918 $as_echo "$ac_cv_objext" >&6; }
3919 OBJEXT=$ac_cv_objext
3920 ac_objext=$OBJEXT
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3922 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3923 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3924 $as_echo_n "(cached) " >&6
3925 else
3926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3927 /* end confdefs.h. */
3930 main ()
3932 #ifndef __GNUC__
3933 choke me
3934 #endif
3937 return 0;
3939 _ACEOF
3940 if ac_fn_c_try_compile "$LINENO"; then :
3941 ac_compiler_gnu=yes
3942 else
3943 ac_compiler_gnu=no
3945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3946 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3950 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3951 if test $ac_compiler_gnu = yes; then
3952 GCC=yes
3953 else
3954 GCC=
3956 ac_test_CFLAGS=${CFLAGS+set}
3957 ac_save_CFLAGS=$CFLAGS
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3959 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3960 if test "${ac_cv_prog_cc_g+set}" = set; then :
3961 $as_echo_n "(cached) " >&6
3962 else
3963 ac_save_c_werror_flag=$ac_c_werror_flag
3964 ac_c_werror_flag=yes
3965 ac_cv_prog_cc_g=no
3966 CFLAGS="-g"
3967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3968 /* end confdefs.h. */
3971 main ()
3975 return 0;
3977 _ACEOF
3978 if ac_fn_c_try_compile "$LINENO"; then :
3979 ac_cv_prog_cc_g=yes
3980 else
3981 CFLAGS=""
3982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3983 /* end confdefs.h. */
3986 main ()
3990 return 0;
3992 _ACEOF
3993 if ac_fn_c_try_compile "$LINENO"; then :
3995 else
3996 ac_c_werror_flag=$ac_save_c_werror_flag
3997 CFLAGS="-g"
3998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3999 /* end confdefs.h. */
4002 main ()
4006 return 0;
4008 _ACEOF
4009 if ac_fn_c_try_compile "$LINENO"; then :
4010 ac_cv_prog_cc_g=yes
4012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4017 ac_c_werror_flag=$ac_save_c_werror_flag
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4020 $as_echo "$ac_cv_prog_cc_g" >&6; }
4021 if test "$ac_test_CFLAGS" = set; then
4022 CFLAGS=$ac_save_CFLAGS
4023 elif test $ac_cv_prog_cc_g = yes; then
4024 if test "$GCC" = yes; then
4025 CFLAGS="-g -O2"
4026 else
4027 CFLAGS="-g"
4029 else
4030 if test "$GCC" = yes; then
4031 CFLAGS="-O2"
4032 else
4033 CFLAGS=
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4037 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4038 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4039 $as_echo_n "(cached) " >&6
4040 else
4041 ac_cv_prog_cc_c89=no
4042 ac_save_CC=$CC
4043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4044 /* end confdefs.h. */
4045 #include <stdarg.h>
4046 #include <stdio.h>
4047 #include <sys/types.h>
4048 #include <sys/stat.h>
4049 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4050 struct buf { int x; };
4051 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4052 static char *e (p, i)
4053 char **p;
4054 int i;
4056 return p[i];
4058 static char *f (char * (*g) (char **, int), char **p, ...)
4060 char *s;
4061 va_list v;
4062 va_start (v,p);
4063 s = g (p, va_arg (v,int));
4064 va_end (v);
4065 return s;
4068 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4069 function prototypes and stuff, but not '\xHH' hex character constants.
4070 These don't provoke an error unfortunately, instead are silently treated
4071 as 'x'. The following induces an error, until -std is added to get
4072 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4073 array size at least. It's necessary to write '\x00'==0 to get something
4074 that's true only with -std. */
4075 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4077 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4078 inside strings and character constants. */
4079 #define FOO(x) 'x'
4080 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4082 int test (int i, double x);
4083 struct s1 {int (*f) (int a);};
4084 struct s2 {int (*f) (double a);};
4085 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4086 int argc;
4087 char **argv;
4089 main ()
4091 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4093 return 0;
4095 _ACEOF
4096 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4097 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4099 CC="$ac_save_CC $ac_arg"
4100 if ac_fn_c_try_compile "$LINENO"; then :
4101 ac_cv_prog_cc_c89=$ac_arg
4103 rm -f core conftest.err conftest.$ac_objext
4104 test "x$ac_cv_prog_cc_c89" != "xno" && break
4105 done
4106 rm -f conftest.$ac_ext
4107 CC=$ac_save_CC
4110 # AC_CACHE_VAL
4111 case "x$ac_cv_prog_cc_c89" in
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4114 $as_echo "none needed" >&6; } ;;
4115 xno)
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4117 $as_echo "unsupported" >&6; } ;;
4119 CC="$CC $ac_cv_prog_cc_c89"
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4121 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4122 esac
4123 if test "x$ac_cv_prog_cc_c89" != xno; then :
4127 ac_ext=c
4128 ac_cpp='$CPP $CPPFLAGS'
4129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4132 DEPDIR="${am__leading_dot}deps"
4134 ac_config_commands="$ac_config_commands depfiles"
4137 am_make=${MAKE-make}
4138 cat > confinc << 'END'
4139 am__doit:
4140 @echo this is the am__doit target
4141 .PHONY: am__doit
4143 # If we don't find an include directive, just comment out the code.
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4145 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4146 am__include="#"
4147 am__quote=
4148 _am_result=none
4149 # First try GNU make style include.
4150 echo "include confinc" > confmf
4151 # Ignore all kinds of additional output from `make'.
4152 case `$am_make -s -f confmf 2> /dev/null` in #(
4153 *the\ am__doit\ target*)
4154 am__include=include
4155 am__quote=
4156 _am_result=GNU
4158 esac
4159 # Now try BSD make style include.
4160 if test "$am__include" = "#"; then
4161 echo '.include "confinc"' > confmf
4162 case `$am_make -s -f confmf 2> /dev/null` in #(
4163 *the\ am__doit\ target*)
4164 am__include=.include
4165 am__quote="\""
4166 _am_result=BSD
4168 esac
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4173 $as_echo "$_am_result" >&6; }
4174 rm -f confinc confmf
4176 # Check whether --enable-dependency-tracking was given.
4177 if test "${enable_dependency_tracking+set}" = set; then :
4178 enableval=$enable_dependency_tracking;
4181 if test "x$enable_dependency_tracking" != xno; then
4182 am_depcomp="$ac_aux_dir/depcomp"
4183 AMDEPBACKSLASH='\'
4184 am__nodep='_no'
4186 if test "x$enable_dependency_tracking" != xno; then
4187 AMDEP_TRUE=
4188 AMDEP_FALSE='#'
4189 else
4190 AMDEP_TRUE='#'
4191 AMDEP_FALSE=
4196 depcc="$CC" am_compiler_list=
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4199 $as_echo_n "checking dependency style of $depcc... " >&6; }
4200 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4201 $as_echo_n "(cached) " >&6
4202 else
4203 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4204 # We make a subdir and do the tests there. Otherwise we can end up
4205 # making bogus files that we don't know about and never remove. For
4206 # instance it was reported that on HP-UX the gcc test will end up
4207 # making a dummy file named `D' -- because `-MD' means `put the output
4208 # in D'.
4209 rm -rf conftest.dir
4210 mkdir conftest.dir
4211 # Copy depcomp to subdir because otherwise we won't find it if we're
4212 # using a relative directory.
4213 cp "$am_depcomp" conftest.dir
4214 cd conftest.dir
4215 # We will build objects and dependencies in a subdirectory because
4216 # it helps to detect inapplicable dependency modes. For instance
4217 # both Tru64's cc and ICC support -MD to output dependencies as a
4218 # side effect of compilation, but ICC will put the dependencies in
4219 # the current directory while Tru64 will put them in the object
4220 # directory.
4221 mkdir sub
4223 am_cv_CC_dependencies_compiler_type=none
4224 if test "$am_compiler_list" = ""; then
4225 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4227 am__universal=false
4228 case " $depcc " in #(
4229 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4230 esac
4232 for depmode in $am_compiler_list; do
4233 # Setup a source with many dependencies, because some compilers
4234 # like to wrap large dependency lists on column 80 (with \), and
4235 # we should not choose a depcomp mode which is confused by this.
4237 # We need to recreate these files for each test, as the compiler may
4238 # overwrite some of them when testing with obscure command lines.
4239 # This happens at least with the AIX C compiler.
4240 : > sub/conftest.c
4241 for i in 1 2 3 4 5 6; do
4242 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4243 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4244 # Solaris 8's {/usr,}/bin/sh.
4245 touch sub/conftst$i.h
4246 done
4247 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4249 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4250 # mode. It turns out that the SunPro C++ compiler does not properly
4251 # handle `-M -o', and we need to detect this. Also, some Intel
4252 # versions had trouble with output in subdirs
4253 am__obj=sub/conftest.${OBJEXT-o}
4254 am__minus_obj="-o $am__obj"
4255 case $depmode in
4256 gcc)
4257 # This depmode causes a compiler race in universal mode.
4258 test "$am__universal" = false || continue
4260 nosideeffect)
4261 # after this tag, mechanisms are not by side-effect, so they'll
4262 # only be used when explicitly requested
4263 if test "x$enable_dependency_tracking" = xyes; then
4264 continue
4265 else
4266 break
4269 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4270 # This compiler won't grok `-c -o', but also, the minuso test has
4271 # not run yet. These depmodes are late enough in the game, and
4272 # so weak that their functioning should not be impacted.
4273 am__obj=conftest.${OBJEXT-o}
4274 am__minus_obj=
4276 none) break ;;
4277 esac
4278 if depmode=$depmode \
4279 source=sub/conftest.c object=$am__obj \
4280 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4281 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4282 >/dev/null 2>conftest.err &&
4283 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4284 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4285 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4286 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4287 # icc doesn't choke on unknown options, it will just issue warnings
4288 # or remarks (even with -Werror). So we grep stderr for any message
4289 # that says an option was ignored or not supported.
4290 # When given -MP, icc 7.0 and 7.1 complain thusly:
4291 # icc: Command line warning: ignoring option '-M'; no argument required
4292 # The diagnosis changed in icc 8.0:
4293 # icc: Command line remark: option '-MP' not supported
4294 if (grep 'ignoring option' conftest.err ||
4295 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4296 am_cv_CC_dependencies_compiler_type=$depmode
4297 break
4300 done
4302 cd ..
4303 rm -rf conftest.dir
4304 else
4305 am_cv_CC_dependencies_compiler_type=none
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4310 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4311 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4314 test "x$enable_dependency_tracking" != xno \
4315 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4316 am__fastdepCC_TRUE=
4317 am__fastdepCC_FALSE='#'
4318 else
4319 am__fastdepCC_TRUE='#'
4320 am__fastdepCC_FALSE=
4328 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
4329 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
4330 # in both places for now and restore CFLAGS at the end of config.
4331 save_CFLAGS="$CFLAGS"
4333 # Add -Wall -Werror if we are using GCC.
4334 if test "x$GCC" = "xyes"; then
4335 XCFLAGS="$XCFLAGS -Wall -Werror"
4338 # Find other programs we need.
4339 if test -n "$ac_tool_prefix"; then
4340 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4341 set dummy ${ac_tool_prefix}ar; ac_word=$2
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4343 $as_echo_n "checking for $ac_word... " >&6; }
4344 if test "${ac_cv_prog_AR+set}" = set; then :
4345 $as_echo_n "(cached) " >&6
4346 else
4347 if test -n "$AR"; then
4348 ac_cv_prog_AR="$AR" # Let the user override the test.
4349 else
4350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4351 for as_dir in $PATH
4353 IFS=$as_save_IFS
4354 test -z "$as_dir" && as_dir=.
4355 for ac_exec_ext in '' $ac_executable_extensions; do
4356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4357 ac_cv_prog_AR="${ac_tool_prefix}ar"
4358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4359 break 2
4361 done
4362 done
4363 IFS=$as_save_IFS
4367 AR=$ac_cv_prog_AR
4368 if test -n "$AR"; then
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4370 $as_echo "$AR" >&6; }
4371 else
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4373 $as_echo "no" >&6; }
4378 if test -z "$ac_cv_prog_AR"; then
4379 ac_ct_AR=$AR
4380 # Extract the first word of "ar", so it can be a program name with args.
4381 set dummy ar; ac_word=$2
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4383 $as_echo_n "checking for $ac_word... " >&6; }
4384 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4385 $as_echo_n "(cached) " >&6
4386 else
4387 if test -n "$ac_ct_AR"; then
4388 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4389 else
4390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4391 for as_dir in $PATH
4393 IFS=$as_save_IFS
4394 test -z "$as_dir" && as_dir=.
4395 for ac_exec_ext in '' $ac_executable_extensions; do
4396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4397 ac_cv_prog_ac_ct_AR="ar"
4398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4399 break 2
4401 done
4402 done
4403 IFS=$as_save_IFS
4407 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4408 if test -n "$ac_ct_AR"; then
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4410 $as_echo "$ac_ct_AR" >&6; }
4411 else
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4413 $as_echo "no" >&6; }
4416 if test "x$ac_ct_AR" = x; then
4417 AR=""
4418 else
4419 case $cross_compiling:$ac_tool_warned in
4420 yes:)
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4422 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4423 ac_tool_warned=yes ;;
4424 esac
4425 AR=$ac_ct_AR
4427 else
4428 AR="$ac_cv_prog_AR"
4431 if test -n "$ac_tool_prefix"; then
4432 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4433 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4435 $as_echo_n "checking for $ac_word... " >&6; }
4436 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4437 $as_echo_n "(cached) " >&6
4438 else
4439 if test -n "$RANLIB"; then
4440 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4441 else
4442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4443 for as_dir in $PATH
4445 IFS=$as_save_IFS
4446 test -z "$as_dir" && as_dir=.
4447 for ac_exec_ext in '' $ac_executable_extensions; do
4448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4449 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4451 break 2
4453 done
4454 done
4455 IFS=$as_save_IFS
4459 RANLIB=$ac_cv_prog_RANLIB
4460 if test -n "$RANLIB"; then
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4462 $as_echo "$RANLIB" >&6; }
4463 else
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4465 $as_echo "no" >&6; }
4470 if test -z "$ac_cv_prog_RANLIB"; then
4471 ac_ct_RANLIB=$RANLIB
4472 # Extract the first word of "ranlib", so it can be a program name with args.
4473 set dummy ranlib; ac_word=$2
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4475 $as_echo_n "checking for $ac_word... " >&6; }
4476 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4477 $as_echo_n "(cached) " >&6
4478 else
4479 if test -n "$ac_ct_RANLIB"; then
4480 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4481 else
4482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4483 for as_dir in $PATH
4485 IFS=$as_save_IFS
4486 test -z "$as_dir" && as_dir=.
4487 for ac_exec_ext in '' $ac_executable_extensions; do
4488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4489 ac_cv_prog_ac_ct_RANLIB="ranlib"
4490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4491 break 2
4493 done
4494 done
4495 IFS=$as_save_IFS
4499 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4500 if test -n "$ac_ct_RANLIB"; then
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4502 $as_echo "$ac_ct_RANLIB" >&6; }
4503 else
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4505 $as_echo "no" >&6; }
4508 if test "x$ac_ct_RANLIB" = x; then
4509 RANLIB="ranlib-not-found-in-path-error"
4510 else
4511 case $cross_compiling:$ac_tool_warned in
4512 yes:)
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4514 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4515 ac_tool_warned=yes ;;
4516 esac
4517 RANLIB=$ac_ct_RANLIB
4519 else
4520 RANLIB="$ac_cv_prog_RANLIB"
4523 # Extract the first word of "perl", so it can be a program name with args.
4524 set dummy perl; ac_word=$2
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4526 $as_echo_n "checking for $ac_word... " >&6; }
4527 if test "${ac_cv_path_PERL+set}" = set; then :
4528 $as_echo_n "(cached) " >&6
4529 else
4530 case $PERL in
4531 [\\/]* | ?:[\\/]*)
4532 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4536 for as_dir in $PATH
4538 IFS=$as_save_IFS
4539 test -z "$as_dir" && as_dir=.
4540 for ac_exec_ext in '' $ac_executable_extensions; do
4541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4542 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4544 break 2
4546 done
4547 done
4548 IFS=$as_save_IFS
4550 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
4552 esac
4554 PERL=$ac_cv_path_PERL
4555 if test -n "$PERL"; then
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4557 $as_echo "$PERL" >&6; }
4558 else
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4560 $as_echo "no" >&6; }
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4565 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4566 set x ${MAKE-make}
4567 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4568 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4569 $as_echo_n "(cached) " >&6
4570 else
4571 cat >conftest.make <<\_ACEOF
4572 SHELL = /bin/sh
4573 all:
4574 @echo '@@@%%%=$(MAKE)=@@@%%%'
4575 _ACEOF
4576 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4577 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4578 *@@@%%%=?*=@@@%%%*)
4579 eval ac_cv_prog_make_${ac_make}_set=yes;;
4581 eval ac_cv_prog_make_${ac_make}_set=no;;
4582 esac
4583 rm -f conftest.make
4585 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4587 $as_echo "yes" >&6; }
4588 SET_MAKE=
4589 else
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4591 $as_echo "no" >&6; }
4592 SET_MAKE="MAKE=${MAKE-make}"
4597 # See if makeinfo has been installed and is modern enough
4598 # that we can use it.
4600 # Extract the first word of "makeinfo", so it can be a program name with args.
4601 set dummy makeinfo; ac_word=$2
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4603 $as_echo_n "checking for $ac_word... " >&6; }
4604 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
4605 $as_echo_n "(cached) " >&6
4606 else
4607 if test -n "$MAKEINFO"; then
4608 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4609 else
4610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4611 for as_dir in $PATH
4613 IFS=$as_save_IFS
4614 test -z "$as_dir" && as_dir=.
4615 for ac_exec_ext in '' $ac_executable_extensions; do
4616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4617 ac_cv_prog_MAKEINFO="makeinfo"
4618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4619 break 2
4621 done
4622 done
4623 IFS=$as_save_IFS
4627 MAKEINFO=$ac_cv_prog_MAKEINFO
4628 if test -n "$MAKEINFO"; then
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4630 $as_echo "$MAKEINFO" >&6; }
4631 else
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4633 $as_echo "no" >&6; }
4637 if test -n "$MAKEINFO"; then
4638 # Found it, now check the version.
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
4640 $as_echo_n "checking for modern makeinfo... " >&6; }
4641 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
4642 $as_echo_n "(cached) " >&6
4643 else
4644 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
4645 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4647 case $ac_prog_version in
4648 '') gcc_cv_prog_makeinfo_modern=no;;
4649 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
4650 *) gcc_cv_prog_makeinfo_modern=no;;
4651 esac
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
4655 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
4656 else
4657 gcc_cv_prog_makeinfo_modern=no
4659 if test $gcc_cv_prog_makeinfo_modern = no; then
4660 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
4663 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
4664 BUILD_INFO_TRUE=
4665 BUILD_INFO_FALSE='#'
4666 else
4667 BUILD_INFO_TRUE='#'
4668 BUILD_INFO_FALSE=
4673 # Configure libtool
4674 case `pwd` in
4675 *\ * | *\ *)
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4677 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4678 esac
4682 macro_version='2.2.7a'
4683 macro_revision='1.3134'
4697 ltmain="$ac_aux_dir/ltmain.sh"
4699 # Backslashify metacharacters that are still active within
4700 # double-quoted strings.
4701 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4703 # Same as above, but do not quote variable references.
4704 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4706 # Sed substitution to delay expansion of an escaped shell variable in a
4707 # double_quote_subst'ed string.
4708 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4710 # Sed substitution to delay expansion of an escaped single quote.
4711 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4713 # Sed substitution to avoid accidental globbing in evaled expressions
4714 no_glob_subst='s/\*/\\\*/g'
4716 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4717 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4718 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4721 $as_echo_n "checking how to print strings... " >&6; }
4722 # Test print first, because it will be a builtin if present.
4723 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4724 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4725 ECHO='print -r --'
4726 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4727 ECHO='printf %s\n'
4728 else
4729 # Use this function as a fallback that always works.
4730 func_fallback_echo ()
4732 eval 'cat <<_LTECHO_EOF
4734 _LTECHO_EOF'
4736 ECHO='func_fallback_echo'
4739 # func_echo_all arg...
4740 # Invoke $ECHO with all args, space-separated.
4741 func_echo_all ()
4743 $ECHO ""
4746 case "$ECHO" in
4747 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4748 $as_echo "printf" >&6; } ;;
4749 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4750 $as_echo "print -r" >&6; } ;;
4751 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4752 $as_echo "cat" >&6; } ;;
4753 esac
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4769 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4770 if test "${ac_cv_path_SED+set}" = set; then :
4771 $as_echo_n "(cached) " >&6
4772 else
4773 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4774 for ac_i in 1 2 3 4 5 6 7; do
4775 ac_script="$ac_script$as_nl$ac_script"
4776 done
4777 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4778 { ac_script=; unset ac_script;}
4779 if test -z "$SED"; then
4780 ac_path_SED_found=false
4781 # Loop through the user's path and test for each of PROGNAME-LIST
4782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4783 for as_dir in $PATH
4785 IFS=$as_save_IFS
4786 test -z "$as_dir" && as_dir=.
4787 for ac_prog in sed gsed; do
4788 for ac_exec_ext in '' $ac_executable_extensions; do
4789 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4790 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4791 # Check for GNU ac_path_SED and select it if it is found.
4792 # Check for GNU $ac_path_SED
4793 case `"$ac_path_SED" --version 2>&1` in
4794 *GNU*)
4795 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4797 ac_count=0
4798 $as_echo_n 0123456789 >"conftest.in"
4799 while :
4801 cat "conftest.in" "conftest.in" >"conftest.tmp"
4802 mv "conftest.tmp" "conftest.in"
4803 cp "conftest.in" "conftest.nl"
4804 $as_echo '' >> "conftest.nl"
4805 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4806 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4807 as_fn_arith $ac_count + 1 && ac_count=$as_val
4808 if test $ac_count -gt ${ac_path_SED_max-0}; then
4809 # Best one so far, save it but keep looking for a better one
4810 ac_cv_path_SED="$ac_path_SED"
4811 ac_path_SED_max=$ac_count
4813 # 10*(2^10) chars as input seems more than enough
4814 test $ac_count -gt 10 && break
4815 done
4816 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4817 esac
4819 $ac_path_SED_found && break 3
4820 done
4821 done
4822 done
4823 IFS=$as_save_IFS
4824 if test -z "$ac_cv_path_SED"; then
4825 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4827 else
4828 ac_cv_path_SED=$SED
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4833 $as_echo "$ac_cv_path_SED" >&6; }
4834 SED="$ac_cv_path_SED"
4835 rm -f conftest.sed
4837 test -z "$SED" && SED=sed
4838 Xsed="$SED -e 1s/^X//"
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4851 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4852 if test "${ac_cv_path_GREP+set}" = set; then :
4853 $as_echo_n "(cached) " >&6
4854 else
4855 if test -z "$GREP"; then
4856 ac_path_GREP_found=false
4857 # Loop through the user's path and test for each of PROGNAME-LIST
4858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4859 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4861 IFS=$as_save_IFS
4862 test -z "$as_dir" && as_dir=.
4863 for ac_prog in grep ggrep; do
4864 for ac_exec_ext in '' $ac_executable_extensions; do
4865 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4866 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4867 # Check for GNU ac_path_GREP and select it if it is found.
4868 # Check for GNU $ac_path_GREP
4869 case `"$ac_path_GREP" --version 2>&1` in
4870 *GNU*)
4871 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4873 ac_count=0
4874 $as_echo_n 0123456789 >"conftest.in"
4875 while :
4877 cat "conftest.in" "conftest.in" >"conftest.tmp"
4878 mv "conftest.tmp" "conftest.in"
4879 cp "conftest.in" "conftest.nl"
4880 $as_echo 'GREP' >> "conftest.nl"
4881 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4882 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4883 as_fn_arith $ac_count + 1 && ac_count=$as_val
4884 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4885 # Best one so far, save it but keep looking for a better one
4886 ac_cv_path_GREP="$ac_path_GREP"
4887 ac_path_GREP_max=$ac_count
4889 # 10*(2^10) chars as input seems more than enough
4890 test $ac_count -gt 10 && break
4891 done
4892 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4893 esac
4895 $ac_path_GREP_found && break 3
4896 done
4897 done
4898 done
4899 IFS=$as_save_IFS
4900 if test -z "$ac_cv_path_GREP"; then
4901 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4903 else
4904 ac_cv_path_GREP=$GREP
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4909 $as_echo "$ac_cv_path_GREP" >&6; }
4910 GREP="$ac_cv_path_GREP"
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4914 $as_echo_n "checking for egrep... " >&6; }
4915 if test "${ac_cv_path_EGREP+set}" = set; then :
4916 $as_echo_n "(cached) " >&6
4917 else
4918 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4919 then ac_cv_path_EGREP="$GREP -E"
4920 else
4921 if test -z "$EGREP"; then
4922 ac_path_EGREP_found=false
4923 # Loop through the user's path and test for each of PROGNAME-LIST
4924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4925 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4927 IFS=$as_save_IFS
4928 test -z "$as_dir" && as_dir=.
4929 for ac_prog in egrep; do
4930 for ac_exec_ext in '' $ac_executable_extensions; do
4931 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4932 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4933 # Check for GNU ac_path_EGREP and select it if it is found.
4934 # Check for GNU $ac_path_EGREP
4935 case `"$ac_path_EGREP" --version 2>&1` in
4936 *GNU*)
4937 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4939 ac_count=0
4940 $as_echo_n 0123456789 >"conftest.in"
4941 while :
4943 cat "conftest.in" "conftest.in" >"conftest.tmp"
4944 mv "conftest.tmp" "conftest.in"
4945 cp "conftest.in" "conftest.nl"
4946 $as_echo 'EGREP' >> "conftest.nl"
4947 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4948 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4949 as_fn_arith $ac_count + 1 && ac_count=$as_val
4950 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4951 # Best one so far, save it but keep looking for a better one
4952 ac_cv_path_EGREP="$ac_path_EGREP"
4953 ac_path_EGREP_max=$ac_count
4955 # 10*(2^10) chars as input seems more than enough
4956 test $ac_count -gt 10 && break
4957 done
4958 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4959 esac
4961 $ac_path_EGREP_found && break 3
4962 done
4963 done
4964 done
4965 IFS=$as_save_IFS
4966 if test -z "$ac_cv_path_EGREP"; then
4967 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4969 else
4970 ac_cv_path_EGREP=$EGREP
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4976 $as_echo "$ac_cv_path_EGREP" >&6; }
4977 EGREP="$ac_cv_path_EGREP"
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4981 $as_echo_n "checking for fgrep... " >&6; }
4982 if test "${ac_cv_path_FGREP+set}" = set; then :
4983 $as_echo_n "(cached) " >&6
4984 else
4985 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4986 then ac_cv_path_FGREP="$GREP -F"
4987 else
4988 if test -z "$FGREP"; then
4989 ac_path_FGREP_found=false
4990 # Loop through the user's path and test for each of PROGNAME-LIST
4991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4992 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4994 IFS=$as_save_IFS
4995 test -z "$as_dir" && as_dir=.
4996 for ac_prog in fgrep; do
4997 for ac_exec_ext in '' $ac_executable_extensions; do
4998 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4999 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5000 # Check for GNU ac_path_FGREP and select it if it is found.
5001 # Check for GNU $ac_path_FGREP
5002 case `"$ac_path_FGREP" --version 2>&1` in
5003 *GNU*)
5004 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5006 ac_count=0
5007 $as_echo_n 0123456789 >"conftest.in"
5008 while :
5010 cat "conftest.in" "conftest.in" >"conftest.tmp"
5011 mv "conftest.tmp" "conftest.in"
5012 cp "conftest.in" "conftest.nl"
5013 $as_echo 'FGREP' >> "conftest.nl"
5014 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5015 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5016 as_fn_arith $ac_count + 1 && ac_count=$as_val
5017 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5018 # Best one so far, save it but keep looking for a better one
5019 ac_cv_path_FGREP="$ac_path_FGREP"
5020 ac_path_FGREP_max=$ac_count
5022 # 10*(2^10) chars as input seems more than enough
5023 test $ac_count -gt 10 && break
5024 done
5025 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5026 esac
5028 $ac_path_FGREP_found && break 3
5029 done
5030 done
5031 done
5032 IFS=$as_save_IFS
5033 if test -z "$ac_cv_path_FGREP"; then
5034 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5036 else
5037 ac_cv_path_FGREP=$FGREP
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5043 $as_echo "$ac_cv_path_FGREP" >&6; }
5044 FGREP="$ac_cv_path_FGREP"
5047 test -z "$GREP" && GREP=grep
5067 # Check whether --with-gnu-ld was given.
5068 if test "${with_gnu_ld+set}" = set; then :
5069 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5070 else
5071 with_gnu_ld=no
5074 ac_prog=ld
5075 if test "$GCC" = yes; then
5076 # Check if gcc -print-prog-name=ld gives a path.
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5078 $as_echo_n "checking for ld used by $CC... " >&6; }
5079 case $host in
5080 *-*-mingw*)
5081 # gcc leaves a trailing carriage return which upsets mingw
5082 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5084 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5085 esac
5086 case $ac_prog in
5087 # Accept absolute paths.
5088 [\\/]* | ?:[\\/]*)
5089 re_direlt='/[^/][^/]*/\.\./'
5090 # Canonicalize the pathname of ld
5091 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5092 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5093 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5094 done
5095 test -z "$LD" && LD="$ac_prog"
5098 # If it fails, then pretend we aren't using GCC.
5099 ac_prog=ld
5102 # If it is relative, then search for the first ld in PATH.
5103 with_gnu_ld=unknown
5105 esac
5106 elif test "$with_gnu_ld" = yes; then
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5108 $as_echo_n "checking for GNU ld... " >&6; }
5109 else
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5111 $as_echo_n "checking for non-GNU ld... " >&6; }
5113 if test "${lt_cv_path_LD+set}" = set; then :
5114 $as_echo_n "(cached) " >&6
5115 else
5116 if test -z "$LD"; then
5117 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5118 for ac_dir in $PATH; do
5119 IFS="$lt_save_ifs"
5120 test -z "$ac_dir" && ac_dir=.
5121 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5122 lt_cv_path_LD="$ac_dir/$ac_prog"
5123 # Check to see if the program is GNU ld. I'd rather use --version,
5124 # but apparently some variants of GNU ld only accept -v.
5125 # Break only if it was the GNU/non-GNU ld that we prefer.
5126 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5127 *GNU* | *'with BFD'*)
5128 test "$with_gnu_ld" != no && break
5131 test "$with_gnu_ld" != yes && break
5133 esac
5135 done
5136 IFS="$lt_save_ifs"
5137 else
5138 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5142 LD="$lt_cv_path_LD"
5143 if test -n "$LD"; then
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5145 $as_echo "$LD" >&6; }
5146 else
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5148 $as_echo "no" >&6; }
5150 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5152 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5153 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5154 $as_echo_n "(cached) " >&6
5155 else
5156 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5157 case `$LD -v 2>&1 </dev/null` in
5158 *GNU* | *'with BFD'*)
5159 lt_cv_prog_gnu_ld=yes
5162 lt_cv_prog_gnu_ld=no
5164 esac
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5167 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5168 with_gnu_ld=$lt_cv_prog_gnu_ld
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5179 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5180 if test "${lt_cv_path_NM+set}" = set; then :
5181 $as_echo_n "(cached) " >&6
5182 else
5183 if test -n "$NM"; then
5184 # Let the user override the test.
5185 lt_cv_path_NM="$NM"
5186 else
5187 lt_nm_to_check="${ac_tool_prefix}nm"
5188 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5189 lt_nm_to_check="$lt_nm_to_check nm"
5191 for lt_tmp_nm in $lt_nm_to_check; do
5192 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5193 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5194 IFS="$lt_save_ifs"
5195 test -z "$ac_dir" && ac_dir=.
5196 tmp_nm="$ac_dir/$lt_tmp_nm"
5197 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5198 # Check to see if the nm accepts a BSD-compat flag.
5199 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5200 # nm: unknown option "B" ignored
5201 # Tru64's nm complains that /dev/null is an invalid object file
5202 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5203 */dev/null* | *'Invalid file or object type'*)
5204 lt_cv_path_NM="$tmp_nm -B"
5205 break
5208 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5209 */dev/null*)
5210 lt_cv_path_NM="$tmp_nm -p"
5211 break
5214 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5215 continue # so that we can try to find one that supports BSD flags
5217 esac
5219 esac
5221 done
5222 IFS="$lt_save_ifs"
5223 done
5224 : ${lt_cv_path_NM=no}
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5228 $as_echo "$lt_cv_path_NM" >&6; }
5229 if test "$lt_cv_path_NM" != "no"; then
5230 NM="$lt_cv_path_NM"
5231 else
5232 # Didn't find any BSD compatible name lister, look for dumpbin.
5233 if test -n "$DUMPBIN"; then :
5234 # Let the user override the test.
5235 else
5236 if test -n "$ac_tool_prefix"; then
5237 for ac_prog in dumpbin "link -dump"
5239 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5240 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5242 $as_echo_n "checking for $ac_word... " >&6; }
5243 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5244 $as_echo_n "(cached) " >&6
5245 else
5246 if test -n "$DUMPBIN"; then
5247 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5248 else
5249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5250 for as_dir in $PATH
5252 IFS=$as_save_IFS
5253 test -z "$as_dir" && as_dir=.
5254 for ac_exec_ext in '' $ac_executable_extensions; do
5255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5256 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5258 break 2
5260 done
5261 done
5262 IFS=$as_save_IFS
5266 DUMPBIN=$ac_cv_prog_DUMPBIN
5267 if test -n "$DUMPBIN"; then
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5269 $as_echo "$DUMPBIN" >&6; }
5270 else
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5272 $as_echo "no" >&6; }
5276 test -n "$DUMPBIN" && break
5277 done
5279 if test -z "$DUMPBIN"; then
5280 ac_ct_DUMPBIN=$DUMPBIN
5281 for ac_prog in dumpbin "link -dump"
5283 # Extract the first word of "$ac_prog", so it can be a program name with args.
5284 set dummy $ac_prog; ac_word=$2
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5286 $as_echo_n "checking for $ac_word... " >&6; }
5287 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5288 $as_echo_n "(cached) " >&6
5289 else
5290 if test -n "$ac_ct_DUMPBIN"; then
5291 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5292 else
5293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5294 for as_dir in $PATH
5296 IFS=$as_save_IFS
5297 test -z "$as_dir" && as_dir=.
5298 for ac_exec_ext in '' $ac_executable_extensions; do
5299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5300 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5302 break 2
5304 done
5305 done
5306 IFS=$as_save_IFS
5310 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5311 if test -n "$ac_ct_DUMPBIN"; then
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5313 $as_echo "$ac_ct_DUMPBIN" >&6; }
5314 else
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5316 $as_echo "no" >&6; }
5320 test -n "$ac_ct_DUMPBIN" && break
5321 done
5323 if test "x$ac_ct_DUMPBIN" = x; then
5324 DUMPBIN=":"
5325 else
5326 case $cross_compiling:$ac_tool_warned in
5327 yes:)
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5329 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5330 ac_tool_warned=yes ;;
5331 esac
5332 DUMPBIN=$ac_ct_DUMPBIN
5336 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5337 *COFF*)
5338 DUMPBIN="$DUMPBIN -symbols"
5341 DUMPBIN=:
5343 esac
5346 if test "$DUMPBIN" != ":"; then
5347 NM="$DUMPBIN"
5350 test -z "$NM" && NM=nm
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5358 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5359 if test "${lt_cv_nm_interface+set}" = set; then :
5360 $as_echo_n "(cached) " >&6
5361 else
5362 lt_cv_nm_interface="BSD nm"
5363 echo "int some_variable = 0;" > conftest.$ac_ext
5364 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5365 (eval "$ac_compile" 2>conftest.err)
5366 cat conftest.err >&5
5367 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5368 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5369 cat conftest.err >&5
5370 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5371 cat conftest.out >&5
5372 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5373 lt_cv_nm_interface="MS dumpbin"
5375 rm -f conftest*
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5378 $as_echo "$lt_cv_nm_interface" >&6; }
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5381 $as_echo_n "checking whether ln -s works... " >&6; }
5382 LN_S=$as_ln_s
5383 if test "$LN_S" = "ln -s"; then
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5385 $as_echo "yes" >&6; }
5386 else
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5388 $as_echo "no, using $LN_S" >&6; }
5391 # find the maximum length of command line arguments
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5393 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5394 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5395 $as_echo_n "(cached) " >&6
5396 else
5398 teststring="ABCD"
5400 case $build_os in
5401 msdosdjgpp*)
5402 # On DJGPP, this test can blow up pretty badly due to problems in libc
5403 # (any single argument exceeding 2000 bytes causes a buffer overrun
5404 # during glob expansion). Even if it were fixed, the result of this
5405 # check would be larger than it should be.
5406 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5409 gnu*)
5410 # Under GNU Hurd, this test is not required because there is
5411 # no limit to the length of command line arguments.
5412 # Libtool will interpret -1 as no limit whatsoever
5413 lt_cv_sys_max_cmd_len=-1;
5416 cygwin* | mingw* | cegcc*)
5417 # On Win9x/ME, this test blows up -- it succeeds, but takes
5418 # about 5 minutes as the teststring grows exponentially.
5419 # Worse, since 9x/ME are not pre-emptively multitasking,
5420 # you end up with a "frozen" computer, even though with patience
5421 # the test eventually succeeds (with a max line length of 256k).
5422 # Instead, let's just punt: use the minimum linelength reported by
5423 # all of the supported platforms: 8192 (on NT/2K/XP).
5424 lt_cv_sys_max_cmd_len=8192;
5427 mint*)
5428 # On MiNT this can take a long time and run out of memory.
5429 lt_cv_sys_max_cmd_len=8192;
5432 amigaos*)
5433 # On AmigaOS with pdksh, this test takes hours, literally.
5434 # So we just punt and use a minimum line length of 8192.
5435 lt_cv_sys_max_cmd_len=8192;
5438 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5439 # This has been around since 386BSD, at least. Likely further.
5440 if test -x /sbin/sysctl; then
5441 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5442 elif test -x /usr/sbin/sysctl; then
5443 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5444 else
5445 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5447 # And add a safety zone
5448 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5449 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5452 interix*)
5453 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5454 lt_cv_sys_max_cmd_len=196608
5457 osf*)
5458 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5459 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5460 # nice to cause kernel panics so lets avoid the loop below.
5461 # First set a reasonable default.
5462 lt_cv_sys_max_cmd_len=16384
5464 if test -x /sbin/sysconfig; then
5465 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5466 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5467 esac
5470 sco3.2v5*)
5471 lt_cv_sys_max_cmd_len=102400
5473 sysv5* | sco5v6* | sysv4.2uw2*)
5474 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5475 if test -n "$kargmax"; then
5476 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5477 else
5478 lt_cv_sys_max_cmd_len=32768
5482 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5483 if test -n "$lt_cv_sys_max_cmd_len"; then
5484 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5485 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5486 else
5487 # Make teststring a little bigger before we do anything with it.
5488 # a 1K string should be a reasonable start.
5489 for i in 1 2 3 4 5 6 7 8 ; do
5490 teststring=$teststring$teststring
5491 done
5492 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5493 # If test is not a shell built-in, we'll probably end up computing a
5494 # maximum length that is only half of the actual maximum length, but
5495 # we can't tell.
5496 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5497 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5498 test $i != 17 # 1/2 MB should be enough
5500 i=`expr $i + 1`
5501 teststring=$teststring$teststring
5502 done
5503 # Only check the string length outside the loop.
5504 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5505 teststring=
5506 # Add a significant safety factor because C++ compilers can tack on
5507 # massive amounts of additional arguments before passing them to the
5508 # linker. It appears as though 1/2 is a usable value.
5509 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5512 esac
5516 if test -n $lt_cv_sys_max_cmd_len ; then
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5518 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5519 else
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5521 $as_echo "none" >&6; }
5523 max_cmd_len=$lt_cv_sys_max_cmd_len
5530 : ${CP="cp -f"}
5531 : ${MV="mv -f"}
5532 : ${RM="rm -f"}
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5535 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5536 # Try some XSI features
5537 xsi_shell=no
5538 ( _lt_dummy="a/b/c"
5539 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5540 = c,a/b,, \
5541 && eval 'test $(( 1 + 1 )) -eq 2 \
5542 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5543 && xsi_shell=yes
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5545 $as_echo "$xsi_shell" >&6; }
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5549 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5550 lt_shell_append=no
5551 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5552 >/dev/null 2>&1 \
5553 && lt_shell_append=yes
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5555 $as_echo "$lt_shell_append" >&6; }
5558 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5559 lt_unset=unset
5560 else
5561 lt_unset=false
5568 # test EBCDIC or ASCII
5569 case `echo X|tr X '\101'` in
5570 A) # ASCII based system
5571 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5572 lt_SP2NL='tr \040 \012'
5573 lt_NL2SP='tr \015\012 \040\040'
5575 *) # EBCDIC based system
5576 lt_SP2NL='tr \100 \n'
5577 lt_NL2SP='tr \r\n \100\100'
5579 esac
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5590 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5591 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5592 $as_echo_n "(cached) " >&6
5593 else
5594 lt_cv_ld_reload_flag='-r'
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5597 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5598 reload_flag=$lt_cv_ld_reload_flag
5599 case $reload_flag in
5600 "" | " "*) ;;
5601 *) reload_flag=" $reload_flag" ;;
5602 esac
5603 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5604 case $host_os in
5605 darwin*)
5606 if test "$GCC" = yes; then
5607 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5608 else
5609 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5612 esac
5622 if test -n "$ac_tool_prefix"; then
5623 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5624 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5626 $as_echo_n "checking for $ac_word... " >&6; }
5627 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5628 $as_echo_n "(cached) " >&6
5629 else
5630 if test -n "$OBJDUMP"; then
5631 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5632 else
5633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5634 for as_dir in $PATH
5636 IFS=$as_save_IFS
5637 test -z "$as_dir" && as_dir=.
5638 for ac_exec_ext in '' $ac_executable_extensions; do
5639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5640 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5642 break 2
5644 done
5645 done
5646 IFS=$as_save_IFS
5650 OBJDUMP=$ac_cv_prog_OBJDUMP
5651 if test -n "$OBJDUMP"; then
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5653 $as_echo "$OBJDUMP" >&6; }
5654 else
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5656 $as_echo "no" >&6; }
5661 if test -z "$ac_cv_prog_OBJDUMP"; then
5662 ac_ct_OBJDUMP=$OBJDUMP
5663 # Extract the first word of "objdump", so it can be a program name with args.
5664 set dummy objdump; ac_word=$2
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5666 $as_echo_n "checking for $ac_word... " >&6; }
5667 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5668 $as_echo_n "(cached) " >&6
5669 else
5670 if test -n "$ac_ct_OBJDUMP"; then
5671 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5672 else
5673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5674 for as_dir in $PATH
5676 IFS=$as_save_IFS
5677 test -z "$as_dir" && as_dir=.
5678 for ac_exec_ext in '' $ac_executable_extensions; do
5679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5680 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5682 break 2
5684 done
5685 done
5686 IFS=$as_save_IFS
5690 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5691 if test -n "$ac_ct_OBJDUMP"; then
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5693 $as_echo "$ac_ct_OBJDUMP" >&6; }
5694 else
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5696 $as_echo "no" >&6; }
5699 if test "x$ac_ct_OBJDUMP" = x; then
5700 OBJDUMP="false"
5701 else
5702 case $cross_compiling:$ac_tool_warned in
5703 yes:)
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5705 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5706 ac_tool_warned=yes ;;
5707 esac
5708 OBJDUMP=$ac_ct_OBJDUMP
5710 else
5711 OBJDUMP="$ac_cv_prog_OBJDUMP"
5714 test -z "$OBJDUMP" && OBJDUMP=objdump
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5725 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5726 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5727 $as_echo_n "(cached) " >&6
5728 else
5729 lt_cv_file_magic_cmd='$MAGIC_CMD'
5730 lt_cv_file_magic_test_file=
5731 lt_cv_deplibs_check_method='unknown'
5732 # Need to set the preceding variable on all platforms that support
5733 # interlibrary dependencies.
5734 # 'none' -- dependencies not supported.
5735 # `unknown' -- same as none, but documents that we really don't know.
5736 # 'pass_all' -- all dependencies passed with no checks.
5737 # 'test_compile' -- check by making test program.
5738 # 'file_magic [[regex]]' -- check by looking for files in library path
5739 # which responds to the $file_magic_cmd with a given extended regex.
5740 # If you have `file' or equivalent on your system and you're not sure
5741 # whether `pass_all' will *always* work, you probably want this one.
5743 case $host_os in
5744 aix[4-9]*)
5745 lt_cv_deplibs_check_method=pass_all
5748 beos*)
5749 lt_cv_deplibs_check_method=pass_all
5752 bsdi[45]*)
5753 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5754 lt_cv_file_magic_cmd='/usr/bin/file -L'
5755 lt_cv_file_magic_test_file=/shlib/libc.so
5758 cygwin*)
5759 # func_win32_libid is a shell function defined in ltmain.sh
5760 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5761 lt_cv_file_magic_cmd='func_win32_libid'
5764 mingw* | pw32*)
5765 # Base MSYS/MinGW do not provide the 'file' command needed by
5766 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5767 # unless we find 'file', for example because we are cross-compiling.
5768 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5769 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5770 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5771 lt_cv_file_magic_cmd='func_win32_libid'
5772 else
5773 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5774 lt_cv_file_magic_cmd='$OBJDUMP -f'
5778 cegcc*)
5779 # use the weaker test based on 'objdump'. See mingw*.
5780 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5781 lt_cv_file_magic_cmd='$OBJDUMP -f'
5784 darwin* | rhapsody*)
5785 lt_cv_deplibs_check_method=pass_all
5788 freebsd* | dragonfly*)
5789 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5790 case $host_cpu in
5791 i*86 )
5792 # Not sure whether the presence of OpenBSD here was a mistake.
5793 # Let's accept both of them until this is cleared up.
5794 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5795 lt_cv_file_magic_cmd=/usr/bin/file
5796 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5798 esac
5799 else
5800 lt_cv_deplibs_check_method=pass_all
5804 gnu*)
5805 lt_cv_deplibs_check_method=pass_all
5808 haiku*)
5809 lt_cv_deplibs_check_method=pass_all
5812 hpux10.20* | hpux11*)
5813 lt_cv_file_magic_cmd=/usr/bin/file
5814 case $host_cpu in
5815 ia64*)
5816 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5817 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5819 hppa*64*)
5820 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]'
5821 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5824 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5825 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5827 esac
5830 interix[3-9]*)
5831 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5832 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5835 irix5* | irix6* | nonstopux*)
5836 case $LD in
5837 *-32|*"-32 ") libmagic=32-bit;;
5838 *-n32|*"-n32 ") libmagic=N32;;
5839 *-64|*"-64 ") libmagic=64-bit;;
5840 *) libmagic=never-match;;
5841 esac
5842 lt_cv_deplibs_check_method=pass_all
5845 # This must be Linux ELF.
5846 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5847 lt_cv_deplibs_check_method=pass_all
5850 netbsd*)
5851 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5852 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5853 else
5854 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5858 newos6*)
5859 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5860 lt_cv_file_magic_cmd=/usr/bin/file
5861 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5864 *nto* | *qnx*)
5865 lt_cv_deplibs_check_method=pass_all
5868 openbsd*)
5869 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5870 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5871 else
5872 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5876 osf3* | osf4* | osf5*)
5877 lt_cv_deplibs_check_method=pass_all
5880 rdos*)
5881 lt_cv_deplibs_check_method=pass_all
5884 solaris*)
5885 lt_cv_deplibs_check_method=pass_all
5888 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5889 lt_cv_deplibs_check_method=pass_all
5892 sysv4 | sysv4.3*)
5893 case $host_vendor in
5894 motorola)
5895 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]'
5896 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5898 ncr)
5899 lt_cv_deplibs_check_method=pass_all
5901 sequent)
5902 lt_cv_file_magic_cmd='/bin/file'
5903 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5905 sni)
5906 lt_cv_file_magic_cmd='/bin/file'
5907 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5908 lt_cv_file_magic_test_file=/lib/libc.so
5910 siemens)
5911 lt_cv_deplibs_check_method=pass_all
5914 lt_cv_deplibs_check_method=pass_all
5916 esac
5919 tpf*)
5920 lt_cv_deplibs_check_method=pass_all
5922 esac
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5926 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5927 file_magic_cmd=$lt_cv_file_magic_cmd
5928 deplibs_check_method=$lt_cv_deplibs_check_method
5929 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5942 if test -n "$ac_tool_prefix"; then
5943 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5944 set dummy ${ac_tool_prefix}ar; ac_word=$2
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5946 $as_echo_n "checking for $ac_word... " >&6; }
5947 if test "${ac_cv_prog_AR+set}" = set; then :
5948 $as_echo_n "(cached) " >&6
5949 else
5950 if test -n "$AR"; then
5951 ac_cv_prog_AR="$AR" # Let the user override the test.
5952 else
5953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5954 for as_dir in $PATH
5956 IFS=$as_save_IFS
5957 test -z "$as_dir" && as_dir=.
5958 for ac_exec_ext in '' $ac_executable_extensions; do
5959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5960 ac_cv_prog_AR="${ac_tool_prefix}ar"
5961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5962 break 2
5964 done
5965 done
5966 IFS=$as_save_IFS
5970 AR=$ac_cv_prog_AR
5971 if test -n "$AR"; then
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5973 $as_echo "$AR" >&6; }
5974 else
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5976 $as_echo "no" >&6; }
5981 if test -z "$ac_cv_prog_AR"; then
5982 ac_ct_AR=$AR
5983 # Extract the first word of "ar", so it can be a program name with args.
5984 set dummy ar; ac_word=$2
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5986 $as_echo_n "checking for $ac_word... " >&6; }
5987 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5988 $as_echo_n "(cached) " >&6
5989 else
5990 if test -n "$ac_ct_AR"; then
5991 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5992 else
5993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5994 for as_dir in $PATH
5996 IFS=$as_save_IFS
5997 test -z "$as_dir" && as_dir=.
5998 for ac_exec_ext in '' $ac_executable_extensions; do
5999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6000 ac_cv_prog_ac_ct_AR="ar"
6001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6002 break 2
6004 done
6005 done
6006 IFS=$as_save_IFS
6010 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6011 if test -n "$ac_ct_AR"; then
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6013 $as_echo "$ac_ct_AR" >&6; }
6014 else
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6016 $as_echo "no" >&6; }
6019 if test "x$ac_ct_AR" = x; then
6020 AR="false"
6021 else
6022 case $cross_compiling:$ac_tool_warned in
6023 yes:)
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6025 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6026 ac_tool_warned=yes ;;
6027 esac
6028 AR=$ac_ct_AR
6030 else
6031 AR="$ac_cv_prog_AR"
6034 test -z "$AR" && AR=ar
6035 test -z "$AR_FLAGS" && AR_FLAGS=cru
6047 if test -n "$ac_tool_prefix"; then
6048 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6049 set dummy ${ac_tool_prefix}strip; ac_word=$2
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6051 $as_echo_n "checking for $ac_word... " >&6; }
6052 if test "${ac_cv_prog_STRIP+set}" = set; then :
6053 $as_echo_n "(cached) " >&6
6054 else
6055 if test -n "$STRIP"; then
6056 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6057 else
6058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6059 for as_dir in $PATH
6061 IFS=$as_save_IFS
6062 test -z "$as_dir" && as_dir=.
6063 for ac_exec_ext in '' $ac_executable_extensions; do
6064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6065 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6067 break 2
6069 done
6070 done
6071 IFS=$as_save_IFS
6075 STRIP=$ac_cv_prog_STRIP
6076 if test -n "$STRIP"; then
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6078 $as_echo "$STRIP" >&6; }
6079 else
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6081 $as_echo "no" >&6; }
6086 if test -z "$ac_cv_prog_STRIP"; then
6087 ac_ct_STRIP=$STRIP
6088 # Extract the first word of "strip", so it can be a program name with args.
6089 set dummy strip; ac_word=$2
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6091 $as_echo_n "checking for $ac_word... " >&6; }
6092 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6093 $as_echo_n "(cached) " >&6
6094 else
6095 if test -n "$ac_ct_STRIP"; then
6096 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6097 else
6098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6099 for as_dir in $PATH
6101 IFS=$as_save_IFS
6102 test -z "$as_dir" && as_dir=.
6103 for ac_exec_ext in '' $ac_executable_extensions; do
6104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6105 ac_cv_prog_ac_ct_STRIP="strip"
6106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6107 break 2
6109 done
6110 done
6111 IFS=$as_save_IFS
6115 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6116 if test -n "$ac_ct_STRIP"; then
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6118 $as_echo "$ac_ct_STRIP" >&6; }
6119 else
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6121 $as_echo "no" >&6; }
6124 if test "x$ac_ct_STRIP" = x; then
6125 STRIP=":"
6126 else
6127 case $cross_compiling:$ac_tool_warned in
6128 yes:)
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6130 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6131 ac_tool_warned=yes ;;
6132 esac
6133 STRIP=$ac_ct_STRIP
6135 else
6136 STRIP="$ac_cv_prog_STRIP"
6139 test -z "$STRIP" && STRIP=:
6146 if test -n "$ac_tool_prefix"; then
6147 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6148 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6150 $as_echo_n "checking for $ac_word... " >&6; }
6151 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6152 $as_echo_n "(cached) " >&6
6153 else
6154 if test -n "$RANLIB"; then
6155 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6156 else
6157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6158 for as_dir in $PATH
6160 IFS=$as_save_IFS
6161 test -z "$as_dir" && as_dir=.
6162 for ac_exec_ext in '' $ac_executable_extensions; do
6163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6164 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6166 break 2
6168 done
6169 done
6170 IFS=$as_save_IFS
6174 RANLIB=$ac_cv_prog_RANLIB
6175 if test -n "$RANLIB"; then
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6177 $as_echo "$RANLIB" >&6; }
6178 else
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6180 $as_echo "no" >&6; }
6185 if test -z "$ac_cv_prog_RANLIB"; then
6186 ac_ct_RANLIB=$RANLIB
6187 # Extract the first word of "ranlib", so it can be a program name with args.
6188 set dummy ranlib; ac_word=$2
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6190 $as_echo_n "checking for $ac_word... " >&6; }
6191 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6192 $as_echo_n "(cached) " >&6
6193 else
6194 if test -n "$ac_ct_RANLIB"; then
6195 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6196 else
6197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6198 for as_dir in $PATH
6200 IFS=$as_save_IFS
6201 test -z "$as_dir" && as_dir=.
6202 for ac_exec_ext in '' $ac_executable_extensions; do
6203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6204 ac_cv_prog_ac_ct_RANLIB="ranlib"
6205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6206 break 2
6208 done
6209 done
6210 IFS=$as_save_IFS
6214 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6215 if test -n "$ac_ct_RANLIB"; then
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6217 $as_echo "$ac_ct_RANLIB" >&6; }
6218 else
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6220 $as_echo "no" >&6; }
6223 if test "x$ac_ct_RANLIB" = x; then
6224 RANLIB=":"
6225 else
6226 case $cross_compiling:$ac_tool_warned in
6227 yes:)
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6229 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6230 ac_tool_warned=yes ;;
6231 esac
6232 RANLIB=$ac_ct_RANLIB
6234 else
6235 RANLIB="$ac_cv_prog_RANLIB"
6238 test -z "$RANLIB" && RANLIB=:
6245 # Determine commands to create old-style static archives.
6246 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6247 old_postinstall_cmds='chmod 644 $oldlib'
6248 old_postuninstall_cmds=
6250 if test -n "$RANLIB"; then
6251 case $host_os in
6252 openbsd*)
6253 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6256 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6258 esac
6259 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6262 case $host_os in
6263 darwin*)
6264 lock_old_archive_extraction=yes ;;
6266 lock_old_archive_extraction=no ;;
6267 esac
6307 # If no C compiler was specified, use CC.
6308 LTCC=${LTCC-"$CC"}
6310 # If no C compiler flags were specified, use CFLAGS.
6311 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6313 # Allow CC to be a program name with arguments.
6314 compiler=$CC
6317 # Check for command to grab the raw symbol name followed by C symbol from nm.
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6319 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6320 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6321 $as_echo_n "(cached) " >&6
6322 else
6324 # These are sane defaults that work on at least a few old systems.
6325 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6327 # Character class describing NM global symbol codes.
6328 symcode='[BCDEGRST]'
6330 # Regexp to match symbols that can be accessed directly from C.
6331 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6333 # Define system-specific variables.
6334 case $host_os in
6335 aix*)
6336 symcode='[BCDT]'
6338 cygwin* | mingw* | pw32* | cegcc*)
6339 symcode='[ABCDGISTW]'
6341 hpux*)
6342 if test "$host_cpu" = ia64; then
6343 symcode='[ABCDEGRST]'
6346 irix* | nonstopux*)
6347 symcode='[BCDEGRST]'
6349 osf*)
6350 symcode='[BCDEGQRST]'
6352 solaris*)
6353 symcode='[BDRT]'
6355 sco3.2v5*)
6356 symcode='[DT]'
6358 sysv4.2uw2*)
6359 symcode='[DT]'
6361 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6362 symcode='[ABDT]'
6364 sysv4)
6365 symcode='[DFNSTU]'
6367 esac
6369 # If we're using GNU nm, then use its standard symbol codes.
6370 case `$NM -V 2>&1` in
6371 *GNU* | *'with BFD'*)
6372 symcode='[ABCDGIRSTW]' ;;
6373 esac
6375 # Transform an extracted symbol line into a proper C declaration.
6376 # Some systems (esp. on ia64) link data and code symbols differently,
6377 # so use this general approach.
6378 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6380 # Transform an extracted symbol line into symbol name and symbol address
6381 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6382 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'"
6384 # Handle CRLF in mingw tool chain
6385 opt_cr=
6386 case $build_os in
6387 mingw*)
6388 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6390 esac
6392 # Try without a prefix underscore, then with it.
6393 for ac_symprfx in "" "_"; do
6395 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6396 symxfrm="\\1 $ac_symprfx\\2 \\2"
6398 # Write the raw and C identifiers.
6399 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6400 # Fake it for dumpbin and say T for any non-static function
6401 # and D for any global variable.
6402 # Also find C++ and __fastcall symbols from MSVC++,
6403 # which start with @ or ?.
6404 lt_cv_sys_global_symbol_pipe="$AWK '"\
6405 " {last_section=section; section=\$ 3};"\
6406 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6407 " \$ 0!~/External *\|/{next};"\
6408 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6409 " {if(hide[section]) next};"\
6410 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6411 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6412 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6413 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6414 " ' prfx=^$ac_symprfx"
6415 else
6416 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6419 # Check to see that the pipe works correctly.
6420 pipe_works=no
6422 rm -f conftest*
6423 cat > conftest.$ac_ext <<_LT_EOF
6424 #ifdef __cplusplus
6425 extern "C" {
6426 #endif
6427 char nm_test_var;
6428 void nm_test_func(void);
6429 void nm_test_func(void){}
6430 #ifdef __cplusplus
6432 #endif
6433 int main(){nm_test_var='a';nm_test_func();return(0);}
6434 _LT_EOF
6436 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6437 (eval $ac_compile) 2>&5
6438 ac_status=$?
6439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6440 test $ac_status = 0; }; then
6441 # Now try to grab the symbols.
6442 nlist=conftest.nm
6443 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6444 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6445 ac_status=$?
6446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6447 test $ac_status = 0; } && test -s "$nlist"; then
6448 # Try sorting and uniquifying the output.
6449 if sort "$nlist" | uniq > "$nlist"T; then
6450 mv -f "$nlist"T "$nlist"
6451 else
6452 rm -f "$nlist"T
6455 # Make sure that we snagged all the symbols we need.
6456 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6457 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6458 cat <<_LT_EOF > conftest.$ac_ext
6459 #ifdef __cplusplus
6460 extern "C" {
6461 #endif
6463 _LT_EOF
6464 # Now generate the symbol file.
6465 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6467 cat <<_LT_EOF >> conftest.$ac_ext
6469 /* The mapping between symbol names and symbols. */
6470 const struct {
6471 const char *name;
6472 void *address;
6474 lt__PROGRAM__LTX_preloaded_symbols[] =
6476 { "@PROGRAM@", (void *) 0 },
6477 _LT_EOF
6478 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6479 cat <<\_LT_EOF >> conftest.$ac_ext
6480 {0, (void *) 0}
6483 /* This works around a problem in FreeBSD linker */
6484 #ifdef FREEBSD_WORKAROUND
6485 static const void *lt_preloaded_setup() {
6486 return lt__PROGRAM__LTX_preloaded_symbols;
6488 #endif
6490 #ifdef __cplusplus
6492 #endif
6493 _LT_EOF
6494 # Now try linking the two files.
6495 mv conftest.$ac_objext conftstm.$ac_objext
6496 lt_save_LIBS="$LIBS"
6497 lt_save_CFLAGS="$CFLAGS"
6498 LIBS="conftstm.$ac_objext"
6499 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6500 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6501 (eval $ac_link) 2>&5
6502 ac_status=$?
6503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6504 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6505 pipe_works=yes
6507 LIBS="$lt_save_LIBS"
6508 CFLAGS="$lt_save_CFLAGS"
6509 else
6510 echo "cannot find nm_test_func in $nlist" >&5
6512 else
6513 echo "cannot find nm_test_var in $nlist" >&5
6515 else
6516 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6518 else
6519 echo "$progname: failed program was:" >&5
6520 cat conftest.$ac_ext >&5
6522 rm -rf conftest* conftst*
6524 # Do not use the global_symbol_pipe unless it works.
6525 if test "$pipe_works" = yes; then
6526 break
6527 else
6528 lt_cv_sys_global_symbol_pipe=
6530 done
6534 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6535 lt_cv_sys_global_symbol_to_cdecl=
6537 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6539 $as_echo "failed" >&6; }
6540 else
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6542 $as_echo "ok" >&6; }
6567 # Check whether --enable-libtool-lock was given.
6568 if test "${enable_libtool_lock+set}" = set; then :
6569 enableval=$enable_libtool_lock;
6572 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6574 # Some flags need to be propagated to the compiler or linker for good
6575 # libtool support.
6576 case $host in
6577 ia64-*-hpux*)
6578 # Find out which ABI we are using.
6579 echo 'int i;' > conftest.$ac_ext
6580 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6581 (eval $ac_compile) 2>&5
6582 ac_status=$?
6583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6584 test $ac_status = 0; }; then
6585 case `/usr/bin/file conftest.$ac_objext` in
6586 *ELF-32*)
6587 HPUX_IA64_MODE="32"
6589 *ELF-64*)
6590 HPUX_IA64_MODE="64"
6592 esac
6594 rm -rf conftest*
6596 *-*-irix6*)
6597 # Find out which ABI we are using.
6598 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6599 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6600 (eval $ac_compile) 2>&5
6601 ac_status=$?
6602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6603 test $ac_status = 0; }; then
6604 if test "$lt_cv_prog_gnu_ld" = yes; then
6605 case `/usr/bin/file conftest.$ac_objext` in
6606 *32-bit*)
6607 LD="${LD-ld} -melf32bsmip"
6609 *N32*)
6610 LD="${LD-ld} -melf32bmipn32"
6612 *64-bit*)
6613 LD="${LD-ld} -melf64bmip"
6615 esac
6616 else
6617 case `/usr/bin/file conftest.$ac_objext` in
6618 *32-bit*)
6619 LD="${LD-ld} -32"
6621 *N32*)
6622 LD="${LD-ld} -n32"
6624 *64-bit*)
6625 LD="${LD-ld} -64"
6627 esac
6630 rm -rf conftest*
6633 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6634 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6635 # Find out which ABI we are using.
6636 echo 'int i;' > conftest.$ac_ext
6637 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6638 (eval $ac_compile) 2>&5
6639 ac_status=$?
6640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6641 test $ac_status = 0; }; then
6642 case `/usr/bin/file conftest.o` in
6643 *32-bit*)
6644 case $host in
6645 x86_64-*kfreebsd*-gnu)
6646 LD="${LD-ld} -m elf_i386_fbsd"
6648 x86_64-*linux*)
6649 case `/usr/bin/file conftest.o` in
6650 *x86-64*)
6651 LD="${LD-ld} -m elf32_x86_64"
6654 LD="${LD-ld} -m elf_i386"
6656 esac
6658 powerpc64le-*linux*)
6659 LD="${LD-ld} -m elf32lppclinux"
6661 powerpc64-*linux*)
6662 LD="${LD-ld} -m elf32ppclinux"
6664 s390x-*linux*)
6665 LD="${LD-ld} -m elf_s390"
6667 sparc64-*linux*)
6668 LD="${LD-ld} -m elf32_sparc"
6670 esac
6672 *64-bit*)
6673 case $host in
6674 x86_64-*kfreebsd*-gnu)
6675 LD="${LD-ld} -m elf_x86_64_fbsd"
6677 x86_64-*linux*)
6678 LD="${LD-ld} -m elf_x86_64"
6680 powerpcle-*linux*)
6681 LD="${LD-ld} -m elf64lppc"
6683 powerpc-*linux*)
6684 LD="${LD-ld} -m elf64ppc"
6686 s390*-*linux*|s390*-*tpf*)
6687 LD="${LD-ld} -m elf64_s390"
6689 sparc*-*linux*)
6690 LD="${LD-ld} -m elf64_sparc"
6692 esac
6694 esac
6696 rm -rf conftest*
6699 *-*-sco3.2v5*)
6700 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6701 SAVE_CFLAGS="$CFLAGS"
6702 CFLAGS="$CFLAGS -belf"
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6704 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6705 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6706 $as_echo_n "(cached) " >&6
6707 else
6708 ac_ext=c
6709 ac_cpp='$CPP $CPPFLAGS'
6710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6715 /* end confdefs.h. */
6718 main ()
6722 return 0;
6724 _ACEOF
6725 if ac_fn_c_try_link "$LINENO"; then :
6726 lt_cv_cc_needs_belf=yes
6727 else
6728 lt_cv_cc_needs_belf=no
6730 rm -f core conftest.err conftest.$ac_objext \
6731 conftest$ac_exeext conftest.$ac_ext
6732 ac_ext=c
6733 ac_cpp='$CPP $CPPFLAGS'
6734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6740 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6741 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6742 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6743 CFLAGS="$SAVE_CFLAGS"
6746 sparc*-*solaris*)
6747 # Find out which ABI we are using.
6748 echo 'int i;' > conftest.$ac_ext
6749 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6750 (eval $ac_compile) 2>&5
6751 ac_status=$?
6752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6753 test $ac_status = 0; }; then
6754 case `/usr/bin/file conftest.o` in
6755 *64-bit*)
6756 case $lt_cv_prog_gnu_ld in
6757 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6759 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6760 LD="${LD-ld} -64"
6763 esac
6765 esac
6767 rm -rf conftest*
6769 esac
6771 need_locks="$enable_libtool_lock"
6774 case $host_os in
6775 rhapsody* | darwin*)
6776 if test -n "$ac_tool_prefix"; then
6777 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6778 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6780 $as_echo_n "checking for $ac_word... " >&6; }
6781 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6782 $as_echo_n "(cached) " >&6
6783 else
6784 if test -n "$DSYMUTIL"; then
6785 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6786 else
6787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6788 for as_dir in $PATH
6790 IFS=$as_save_IFS
6791 test -z "$as_dir" && as_dir=.
6792 for ac_exec_ext in '' $ac_executable_extensions; do
6793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6794 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6796 break 2
6798 done
6799 done
6800 IFS=$as_save_IFS
6804 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6805 if test -n "$DSYMUTIL"; then
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6807 $as_echo "$DSYMUTIL" >&6; }
6808 else
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6810 $as_echo "no" >&6; }
6815 if test -z "$ac_cv_prog_DSYMUTIL"; then
6816 ac_ct_DSYMUTIL=$DSYMUTIL
6817 # Extract the first word of "dsymutil", so it can be a program name with args.
6818 set dummy dsymutil; ac_word=$2
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6820 $as_echo_n "checking for $ac_word... " >&6; }
6821 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6822 $as_echo_n "(cached) " >&6
6823 else
6824 if test -n "$ac_ct_DSYMUTIL"; then
6825 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6826 else
6827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828 for as_dir in $PATH
6830 IFS=$as_save_IFS
6831 test -z "$as_dir" && as_dir=.
6832 for ac_exec_ext in '' $ac_executable_extensions; do
6833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6834 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6836 break 2
6838 done
6839 done
6840 IFS=$as_save_IFS
6844 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6845 if test -n "$ac_ct_DSYMUTIL"; then
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6847 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6848 else
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6850 $as_echo "no" >&6; }
6853 if test "x$ac_ct_DSYMUTIL" = x; then
6854 DSYMUTIL=":"
6855 else
6856 case $cross_compiling:$ac_tool_warned in
6857 yes:)
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6859 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6860 ac_tool_warned=yes ;;
6861 esac
6862 DSYMUTIL=$ac_ct_DSYMUTIL
6864 else
6865 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6868 if test -n "$ac_tool_prefix"; then
6869 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6870 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6872 $as_echo_n "checking for $ac_word... " >&6; }
6873 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6874 $as_echo_n "(cached) " >&6
6875 else
6876 if test -n "$NMEDIT"; then
6877 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6878 else
6879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6880 for as_dir in $PATH
6882 IFS=$as_save_IFS
6883 test -z "$as_dir" && as_dir=.
6884 for ac_exec_ext in '' $ac_executable_extensions; do
6885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6886 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6888 break 2
6890 done
6891 done
6892 IFS=$as_save_IFS
6896 NMEDIT=$ac_cv_prog_NMEDIT
6897 if test -n "$NMEDIT"; then
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6899 $as_echo "$NMEDIT" >&6; }
6900 else
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6902 $as_echo "no" >&6; }
6907 if test -z "$ac_cv_prog_NMEDIT"; then
6908 ac_ct_NMEDIT=$NMEDIT
6909 # Extract the first word of "nmedit", so it can be a program name with args.
6910 set dummy nmedit; ac_word=$2
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6912 $as_echo_n "checking for $ac_word... " >&6; }
6913 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6914 $as_echo_n "(cached) " >&6
6915 else
6916 if test -n "$ac_ct_NMEDIT"; then
6917 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6918 else
6919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6920 for as_dir in $PATH
6922 IFS=$as_save_IFS
6923 test -z "$as_dir" && as_dir=.
6924 for ac_exec_ext in '' $ac_executable_extensions; do
6925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6926 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6928 break 2
6930 done
6931 done
6932 IFS=$as_save_IFS
6936 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6937 if test -n "$ac_ct_NMEDIT"; then
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6939 $as_echo "$ac_ct_NMEDIT" >&6; }
6940 else
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6942 $as_echo "no" >&6; }
6945 if test "x$ac_ct_NMEDIT" = x; then
6946 NMEDIT=":"
6947 else
6948 case $cross_compiling:$ac_tool_warned in
6949 yes:)
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6951 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6952 ac_tool_warned=yes ;;
6953 esac
6954 NMEDIT=$ac_ct_NMEDIT
6956 else
6957 NMEDIT="$ac_cv_prog_NMEDIT"
6960 if test -n "$ac_tool_prefix"; then
6961 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6962 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6964 $as_echo_n "checking for $ac_word... " >&6; }
6965 if test "${ac_cv_prog_LIPO+set}" = set; then :
6966 $as_echo_n "(cached) " >&6
6967 else
6968 if test -n "$LIPO"; then
6969 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6970 else
6971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6972 for as_dir in $PATH
6974 IFS=$as_save_IFS
6975 test -z "$as_dir" && as_dir=.
6976 for ac_exec_ext in '' $ac_executable_extensions; do
6977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6978 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6980 break 2
6982 done
6983 done
6984 IFS=$as_save_IFS
6988 LIPO=$ac_cv_prog_LIPO
6989 if test -n "$LIPO"; then
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6991 $as_echo "$LIPO" >&6; }
6992 else
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6994 $as_echo "no" >&6; }
6999 if test -z "$ac_cv_prog_LIPO"; then
7000 ac_ct_LIPO=$LIPO
7001 # Extract the first word of "lipo", so it can be a program name with args.
7002 set dummy lipo; ac_word=$2
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7004 $as_echo_n "checking for $ac_word... " >&6; }
7005 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7006 $as_echo_n "(cached) " >&6
7007 else
7008 if test -n "$ac_ct_LIPO"; then
7009 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7010 else
7011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7012 for as_dir in $PATH
7014 IFS=$as_save_IFS
7015 test -z "$as_dir" && as_dir=.
7016 for ac_exec_ext in '' $ac_executable_extensions; do
7017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7018 ac_cv_prog_ac_ct_LIPO="lipo"
7019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7020 break 2
7022 done
7023 done
7024 IFS=$as_save_IFS
7028 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7029 if test -n "$ac_ct_LIPO"; then
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7031 $as_echo "$ac_ct_LIPO" >&6; }
7032 else
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7034 $as_echo "no" >&6; }
7037 if test "x$ac_ct_LIPO" = x; then
7038 LIPO=":"
7039 else
7040 case $cross_compiling:$ac_tool_warned in
7041 yes:)
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7043 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7044 ac_tool_warned=yes ;;
7045 esac
7046 LIPO=$ac_ct_LIPO
7048 else
7049 LIPO="$ac_cv_prog_LIPO"
7052 if test -n "$ac_tool_prefix"; then
7053 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7054 set dummy ${ac_tool_prefix}otool; ac_word=$2
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7056 $as_echo_n "checking for $ac_word... " >&6; }
7057 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7058 $as_echo_n "(cached) " >&6
7059 else
7060 if test -n "$OTOOL"; then
7061 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7062 else
7063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7064 for as_dir in $PATH
7066 IFS=$as_save_IFS
7067 test -z "$as_dir" && as_dir=.
7068 for ac_exec_ext in '' $ac_executable_extensions; do
7069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7070 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7072 break 2
7074 done
7075 done
7076 IFS=$as_save_IFS
7080 OTOOL=$ac_cv_prog_OTOOL
7081 if test -n "$OTOOL"; then
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7083 $as_echo "$OTOOL" >&6; }
7084 else
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7086 $as_echo "no" >&6; }
7091 if test -z "$ac_cv_prog_OTOOL"; then
7092 ac_ct_OTOOL=$OTOOL
7093 # Extract the first word of "otool", so it can be a program name with args.
7094 set dummy otool; ac_word=$2
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7096 $as_echo_n "checking for $ac_word... " >&6; }
7097 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7098 $as_echo_n "(cached) " >&6
7099 else
7100 if test -n "$ac_ct_OTOOL"; then
7101 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7102 else
7103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7104 for as_dir in $PATH
7106 IFS=$as_save_IFS
7107 test -z "$as_dir" && as_dir=.
7108 for ac_exec_ext in '' $ac_executable_extensions; do
7109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7110 ac_cv_prog_ac_ct_OTOOL="otool"
7111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7112 break 2
7114 done
7115 done
7116 IFS=$as_save_IFS
7120 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7121 if test -n "$ac_ct_OTOOL"; then
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7123 $as_echo "$ac_ct_OTOOL" >&6; }
7124 else
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7126 $as_echo "no" >&6; }
7129 if test "x$ac_ct_OTOOL" = x; then
7130 OTOOL=":"
7131 else
7132 case $cross_compiling:$ac_tool_warned in
7133 yes:)
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7135 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7136 ac_tool_warned=yes ;;
7137 esac
7138 OTOOL=$ac_ct_OTOOL
7140 else
7141 OTOOL="$ac_cv_prog_OTOOL"
7144 if test -n "$ac_tool_prefix"; then
7145 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7146 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7148 $as_echo_n "checking for $ac_word... " >&6; }
7149 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7150 $as_echo_n "(cached) " >&6
7151 else
7152 if test -n "$OTOOL64"; then
7153 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7154 else
7155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7156 for as_dir in $PATH
7158 IFS=$as_save_IFS
7159 test -z "$as_dir" && as_dir=.
7160 for ac_exec_ext in '' $ac_executable_extensions; do
7161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7162 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7164 break 2
7166 done
7167 done
7168 IFS=$as_save_IFS
7172 OTOOL64=$ac_cv_prog_OTOOL64
7173 if test -n "$OTOOL64"; then
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7175 $as_echo "$OTOOL64" >&6; }
7176 else
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7178 $as_echo "no" >&6; }
7183 if test -z "$ac_cv_prog_OTOOL64"; then
7184 ac_ct_OTOOL64=$OTOOL64
7185 # Extract the first word of "otool64", so it can be a program name with args.
7186 set dummy otool64; ac_word=$2
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7188 $as_echo_n "checking for $ac_word... " >&6; }
7189 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7190 $as_echo_n "(cached) " >&6
7191 else
7192 if test -n "$ac_ct_OTOOL64"; then
7193 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7194 else
7195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7196 for as_dir in $PATH
7198 IFS=$as_save_IFS
7199 test -z "$as_dir" && as_dir=.
7200 for ac_exec_ext in '' $ac_executable_extensions; do
7201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7202 ac_cv_prog_ac_ct_OTOOL64="otool64"
7203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7204 break 2
7206 done
7207 done
7208 IFS=$as_save_IFS
7212 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7213 if test -n "$ac_ct_OTOOL64"; then
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7215 $as_echo "$ac_ct_OTOOL64" >&6; }
7216 else
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7218 $as_echo "no" >&6; }
7221 if test "x$ac_ct_OTOOL64" = x; then
7222 OTOOL64=":"
7223 else
7224 case $cross_compiling:$ac_tool_warned in
7225 yes:)
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7227 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7228 ac_tool_warned=yes ;;
7229 esac
7230 OTOOL64=$ac_ct_OTOOL64
7232 else
7233 OTOOL64="$ac_cv_prog_OTOOL64"
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7263 $as_echo_n "checking for -single_module linker flag... " >&6; }
7264 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7265 $as_echo_n "(cached) " >&6
7266 else
7267 lt_cv_apple_cc_single_mod=no
7268 if test -z "${LT_MULTI_MODULE}"; then
7269 # By default we will add the -single_module flag. You can override
7270 # by either setting the environment variable LT_MULTI_MODULE
7271 # non-empty at configure time, or by adding -multi_module to the
7272 # link flags.
7273 rm -rf libconftest.dylib*
7274 echo "int foo(void){return 1;}" > conftest.c
7275 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7276 -dynamiclib -Wl,-single_module conftest.c" >&5
7277 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7278 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7279 _lt_result=$?
7280 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7281 lt_cv_apple_cc_single_mod=yes
7282 else
7283 cat conftest.err >&5
7285 rm -rf libconftest.dylib*
7286 rm -f conftest.*
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7290 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7292 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7293 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7294 $as_echo_n "(cached) " >&6
7295 else
7296 lt_cv_ld_exported_symbols_list=no
7297 save_LDFLAGS=$LDFLAGS
7298 echo "_main" > conftest.sym
7299 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7301 /* end confdefs.h. */
7304 main ()
7308 return 0;
7310 _ACEOF
7311 if ac_fn_c_try_link "$LINENO"; then :
7312 lt_cv_ld_exported_symbols_list=yes
7313 else
7314 lt_cv_ld_exported_symbols_list=no
7316 rm -f core conftest.err conftest.$ac_objext \
7317 conftest$ac_exeext conftest.$ac_ext
7318 LDFLAGS="$save_LDFLAGS"
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7322 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7324 $as_echo_n "checking for -force_load linker flag... " >&6; }
7325 if test "${lt_cv_ld_force_load+set}" = set; then :
7326 $as_echo_n "(cached) " >&6
7327 else
7328 lt_cv_ld_force_load=no
7329 cat > conftest.c << _LT_EOF
7330 int forced_loaded() { return 2;}
7331 _LT_EOF
7332 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7333 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7334 echo "$AR cru libconftest.a conftest.o" >&5
7335 $AR cru libconftest.a conftest.o 2>&5
7336 cat > conftest.c << _LT_EOF
7337 int main() { return 0;}
7338 _LT_EOF
7339 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7340 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7341 _lt_result=$?
7342 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7343 lt_cv_ld_force_load=yes
7344 else
7345 cat conftest.err >&5
7347 rm -f conftest.err libconftest.a conftest conftest.c
7348 rm -rf conftest.dSYM
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7352 $as_echo "$lt_cv_ld_force_load" >&6; }
7353 case $host_os in
7354 rhapsody* | darwin1.[012])
7355 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7356 darwin1.*)
7357 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7358 darwin*) # darwin 5.x on
7359 # if running on 10.5 or later, the deployment target defaults
7360 # to the OS version, if on x86, and 10.4, the deployment
7361 # target defaults to 10.4. Don't you love it?
7362 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7363 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7364 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7365 10.[012][,.]*)
7366 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7367 10.*)
7368 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7369 esac
7371 esac
7372 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7373 _lt_dar_single_mod='$single_module'
7375 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7376 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7377 else
7378 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7380 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7381 _lt_dsymutil='~$DSYMUTIL $lib || :'
7382 else
7383 _lt_dsymutil=
7386 esac
7388 ac_ext=c
7389 ac_cpp='$CPP $CPPFLAGS'
7390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7394 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7395 # On Suns, sometimes $CPP names a directory.
7396 if test -n "$CPP" && test -d "$CPP"; then
7397 CPP=
7399 if test -z "$CPP"; then
7400 if test "${ac_cv_prog_CPP+set}" = set; then :
7401 $as_echo_n "(cached) " >&6
7402 else
7403 # Double quotes because CPP needs to be expanded
7404 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7406 ac_preproc_ok=false
7407 for ac_c_preproc_warn_flag in '' yes
7409 # Use a header file that comes with gcc, so configuring glibc
7410 # with a fresh cross-compiler works.
7411 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7412 # <limits.h> exists even on freestanding compilers.
7413 # On the NeXT, cc -E runs the code through the compiler's parser,
7414 # not just through cpp. "Syntax error" is here to catch this case.
7415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7416 /* end confdefs.h. */
7417 #ifdef __STDC__
7418 # include <limits.h>
7419 #else
7420 # include <assert.h>
7421 #endif
7422 Syntax error
7423 _ACEOF
7424 if ac_fn_c_try_cpp "$LINENO"; then :
7426 else
7427 # Broken: fails on valid input.
7428 continue
7430 rm -f conftest.err conftest.$ac_ext
7432 # OK, works on sane cases. Now check whether nonexistent headers
7433 # can be detected and how.
7434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7435 /* end confdefs.h. */
7436 #include <ac_nonexistent.h>
7437 _ACEOF
7438 if ac_fn_c_try_cpp "$LINENO"; then :
7439 # Broken: success on invalid input.
7440 continue
7441 else
7442 # Passes both tests.
7443 ac_preproc_ok=:
7444 break
7446 rm -f conftest.err conftest.$ac_ext
7448 done
7449 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7450 rm -f conftest.err conftest.$ac_ext
7451 if $ac_preproc_ok; then :
7452 break
7455 done
7456 ac_cv_prog_CPP=$CPP
7459 CPP=$ac_cv_prog_CPP
7460 else
7461 ac_cv_prog_CPP=$CPP
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7464 $as_echo "$CPP" >&6; }
7465 ac_preproc_ok=false
7466 for ac_c_preproc_warn_flag in '' yes
7468 # Use a header file that comes with gcc, so configuring glibc
7469 # with a fresh cross-compiler works.
7470 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7471 # <limits.h> exists even on freestanding compilers.
7472 # On the NeXT, cc -E runs the code through the compiler's parser,
7473 # not just through cpp. "Syntax error" is here to catch this case.
7474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7475 /* end confdefs.h. */
7476 #ifdef __STDC__
7477 # include <limits.h>
7478 #else
7479 # include <assert.h>
7480 #endif
7481 Syntax error
7482 _ACEOF
7483 if ac_fn_c_try_cpp "$LINENO"; then :
7485 else
7486 # Broken: fails on valid input.
7487 continue
7489 rm -f conftest.err conftest.$ac_ext
7491 # OK, works on sane cases. Now check whether nonexistent headers
7492 # can be detected and how.
7493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7494 /* end confdefs.h. */
7495 #include <ac_nonexistent.h>
7496 _ACEOF
7497 if ac_fn_c_try_cpp "$LINENO"; then :
7498 # Broken: success on invalid input.
7499 continue
7500 else
7501 # Passes both tests.
7502 ac_preproc_ok=:
7503 break
7505 rm -f conftest.err conftest.$ac_ext
7507 done
7508 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7509 rm -f conftest.err conftest.$ac_ext
7510 if $ac_preproc_ok; then :
7512 else
7513 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7514 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7515 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7516 See \`config.log' for more details." "$LINENO" 5; }
7519 ac_ext=c
7520 ac_cpp='$CPP $CPPFLAGS'
7521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7527 $as_echo_n "checking for ANSI C header files... " >&6; }
7528 if test "${ac_cv_header_stdc+set}" = set; then :
7529 $as_echo_n "(cached) " >&6
7530 else
7531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7532 /* end confdefs.h. */
7533 #include <stdlib.h>
7534 #include <stdarg.h>
7535 #include <string.h>
7536 #include <float.h>
7539 main ()
7543 return 0;
7545 _ACEOF
7546 if ac_fn_c_try_compile "$LINENO"; then :
7547 ac_cv_header_stdc=yes
7548 else
7549 ac_cv_header_stdc=no
7551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7553 if test $ac_cv_header_stdc = yes; then
7554 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7556 /* end confdefs.h. */
7557 #include <string.h>
7559 _ACEOF
7560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7561 $EGREP "memchr" >/dev/null 2>&1; then :
7563 else
7564 ac_cv_header_stdc=no
7566 rm -f conftest*
7570 if test $ac_cv_header_stdc = yes; then
7571 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7573 /* end confdefs.h. */
7574 #include <stdlib.h>
7576 _ACEOF
7577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7578 $EGREP "free" >/dev/null 2>&1; then :
7580 else
7581 ac_cv_header_stdc=no
7583 rm -f conftest*
7587 if test $ac_cv_header_stdc = yes; then
7588 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7589 if test "$cross_compiling" = yes; then :
7591 else
7592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7593 /* end confdefs.h. */
7594 #include <ctype.h>
7595 #include <stdlib.h>
7596 #if ((' ' & 0x0FF) == 0x020)
7597 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7598 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7599 #else
7600 # define ISLOWER(c) \
7601 (('a' <= (c) && (c) <= 'i') \
7602 || ('j' <= (c) && (c) <= 'r') \
7603 || ('s' <= (c) && (c) <= 'z'))
7604 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7605 #endif
7607 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7609 main ()
7611 int i;
7612 for (i = 0; i < 256; i++)
7613 if (XOR (islower (i), ISLOWER (i))
7614 || toupper (i) != TOUPPER (i))
7615 return 2;
7616 return 0;
7618 _ACEOF
7619 if ac_fn_c_try_run "$LINENO"; then :
7621 else
7622 ac_cv_header_stdc=no
7624 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7625 conftest.$ac_objext conftest.beam conftest.$ac_ext
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7631 $as_echo "$ac_cv_header_stdc" >&6; }
7632 if test $ac_cv_header_stdc = yes; then
7634 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7638 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7639 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7640 inttypes.h stdint.h unistd.h
7641 do :
7642 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7643 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7645 eval as_val=\$$as_ac_Header
7646 if test "x$as_val" = x""yes; then :
7647 cat >>confdefs.h <<_ACEOF
7648 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7649 _ACEOF
7653 done
7656 for ac_header in dlfcn.h
7657 do :
7658 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7660 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7661 cat >>confdefs.h <<_ACEOF
7662 #define HAVE_DLFCN_H 1
7663 _ACEOF
7667 done
7673 # Set options
7677 enable_dlopen=no
7680 enable_win32_dll=no
7683 # Check whether --enable-shared was given.
7684 if test "${enable_shared+set}" = set; then :
7685 enableval=$enable_shared; p=${PACKAGE-default}
7686 case $enableval in
7687 yes) enable_shared=yes ;;
7688 no) enable_shared=no ;;
7690 enable_shared=no
7691 # Look at the argument we got. We use all the common list separators.
7692 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7693 for pkg in $enableval; do
7694 IFS="$lt_save_ifs"
7695 if test "X$pkg" = "X$p"; then
7696 enable_shared=yes
7698 done
7699 IFS="$lt_save_ifs"
7701 esac
7702 else
7703 enable_shared=yes
7714 # Check whether --enable-static was given.
7715 if test "${enable_static+set}" = set; then :
7716 enableval=$enable_static; p=${PACKAGE-default}
7717 case $enableval in
7718 yes) enable_static=yes ;;
7719 no) enable_static=no ;;
7721 enable_static=no
7722 # Look at the argument we got. We use all the common list separators.
7723 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7724 for pkg in $enableval; do
7725 IFS="$lt_save_ifs"
7726 if test "X$pkg" = "X$p"; then
7727 enable_static=yes
7729 done
7730 IFS="$lt_save_ifs"
7732 esac
7733 else
7734 enable_static=yes
7746 # Check whether --with-pic was given.
7747 if test "${with_pic+set}" = set; then :
7748 withval=$with_pic; pic_mode="$withval"
7749 else
7750 pic_mode=default
7754 test -z "$pic_mode" && pic_mode=default
7762 # Check whether --enable-fast-install was given.
7763 if test "${enable_fast_install+set}" = set; then :
7764 enableval=$enable_fast_install; p=${PACKAGE-default}
7765 case $enableval in
7766 yes) enable_fast_install=yes ;;
7767 no) enable_fast_install=no ;;
7769 enable_fast_install=no
7770 # Look at the argument we got. We use all the common list separators.
7771 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7772 for pkg in $enableval; do
7773 IFS="$lt_save_ifs"
7774 if test "X$pkg" = "X$p"; then
7775 enable_fast_install=yes
7777 done
7778 IFS="$lt_save_ifs"
7780 esac
7781 else
7782 enable_fast_install=yes
7795 # This can be used to rebuild libtool when needed
7796 LIBTOOL_DEPS="$ltmain"
7798 # Always use our own libtool.
7799 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7826 test -z "$LN_S" && LN_S="ln -s"
7841 if test -n "${ZSH_VERSION+set}" ; then
7842 setopt NO_GLOB_SUBST
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7846 $as_echo_n "checking for objdir... " >&6; }
7847 if test "${lt_cv_objdir+set}" = set; then :
7848 $as_echo_n "(cached) " >&6
7849 else
7850 rm -f .libs 2>/dev/null
7851 mkdir .libs 2>/dev/null
7852 if test -d .libs; then
7853 lt_cv_objdir=.libs
7854 else
7855 # MS-DOS does not allow filenames that begin with a dot.
7856 lt_cv_objdir=_libs
7858 rmdir .libs 2>/dev/null
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7861 $as_echo "$lt_cv_objdir" >&6; }
7862 objdir=$lt_cv_objdir
7868 cat >>confdefs.h <<_ACEOF
7869 #define LT_OBJDIR "$lt_cv_objdir/"
7870 _ACEOF
7875 case $host_os in
7876 aix3*)
7877 # AIX sometimes has problems with the GCC collect2 program. For some
7878 # reason, if we set the COLLECT_NAMES environment variable, the problems
7879 # vanish in a puff of smoke.
7880 if test "X${COLLECT_NAMES+set}" != Xset; then
7881 COLLECT_NAMES=
7882 export COLLECT_NAMES
7885 esac
7887 # Global variables:
7888 ofile=libtool
7889 can_build_shared=yes
7891 # All known linkers require a `.a' archive for static linking (except MSVC,
7892 # which needs '.lib').
7893 libext=a
7895 with_gnu_ld="$lt_cv_prog_gnu_ld"
7897 old_CC="$CC"
7898 old_CFLAGS="$CFLAGS"
7900 # Set sane defaults for various variables
7901 test -z "$CC" && CC=cc
7902 test -z "$LTCC" && LTCC=$CC
7903 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7904 test -z "$LD" && LD=ld
7905 test -z "$ac_objext" && ac_objext=o
7907 for cc_temp in $compiler""; do
7908 case $cc_temp in
7909 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7910 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7911 \-*) ;;
7912 *) break;;
7913 esac
7914 done
7915 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7918 # Only perform the check for file, if the check method requires it
7919 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7920 case $deplibs_check_method in
7921 file_magic*)
7922 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7924 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7925 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7926 $as_echo_n "(cached) " >&6
7927 else
7928 case $MAGIC_CMD in
7929 [\\/*] | ?:[\\/]*)
7930 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7933 lt_save_MAGIC_CMD="$MAGIC_CMD"
7934 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7935 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7936 for ac_dir in $ac_dummy; do
7937 IFS="$lt_save_ifs"
7938 test -z "$ac_dir" && ac_dir=.
7939 if test -f $ac_dir/${ac_tool_prefix}file; then
7940 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7941 if test -n "$file_magic_test_file"; then
7942 case $deplibs_check_method in
7943 "file_magic "*)
7944 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7945 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7946 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7947 $EGREP "$file_magic_regex" > /dev/null; then
7949 else
7950 cat <<_LT_EOF 1>&2
7952 *** Warning: the command libtool uses to detect shared libraries,
7953 *** $file_magic_cmd, produces output that libtool cannot recognize.
7954 *** The result is that libtool may fail to recognize shared libraries
7955 *** as such. This will affect the creation of libtool libraries that
7956 *** depend on shared libraries, but programs linked with such libtool
7957 *** libraries will work regardless of this problem. Nevertheless, you
7958 *** may want to report the problem to your system manager and/or to
7959 *** bug-libtool@gnu.org
7961 _LT_EOF
7962 fi ;;
7963 esac
7965 break
7967 done
7968 IFS="$lt_save_ifs"
7969 MAGIC_CMD="$lt_save_MAGIC_CMD"
7971 esac
7974 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7975 if test -n "$MAGIC_CMD"; then
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7977 $as_echo "$MAGIC_CMD" >&6; }
7978 else
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7980 $as_echo "no" >&6; }
7987 if test -z "$lt_cv_path_MAGIC_CMD"; then
7988 if test -n "$ac_tool_prefix"; then
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7990 $as_echo_n "checking for file... " >&6; }
7991 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7992 $as_echo_n "(cached) " >&6
7993 else
7994 case $MAGIC_CMD in
7995 [\\/*] | ?:[\\/]*)
7996 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7999 lt_save_MAGIC_CMD="$MAGIC_CMD"
8000 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8001 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8002 for ac_dir in $ac_dummy; do
8003 IFS="$lt_save_ifs"
8004 test -z "$ac_dir" && ac_dir=.
8005 if test -f $ac_dir/file; then
8006 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8007 if test -n "$file_magic_test_file"; then
8008 case $deplibs_check_method in
8009 "file_magic "*)
8010 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8011 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8012 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8013 $EGREP "$file_magic_regex" > /dev/null; then
8015 else
8016 cat <<_LT_EOF 1>&2
8018 *** Warning: the command libtool uses to detect shared libraries,
8019 *** $file_magic_cmd, produces output that libtool cannot recognize.
8020 *** The result is that libtool may fail to recognize shared libraries
8021 *** as such. This will affect the creation of libtool libraries that
8022 *** depend on shared libraries, but programs linked with such libtool
8023 *** libraries will work regardless of this problem. Nevertheless, you
8024 *** may want to report the problem to your system manager and/or to
8025 *** bug-libtool@gnu.org
8027 _LT_EOF
8028 fi ;;
8029 esac
8031 break
8033 done
8034 IFS="$lt_save_ifs"
8035 MAGIC_CMD="$lt_save_MAGIC_CMD"
8037 esac
8040 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8041 if test -n "$MAGIC_CMD"; then
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8043 $as_echo "$MAGIC_CMD" >&6; }
8044 else
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8046 $as_echo "no" >&6; }
8050 else
8051 MAGIC_CMD=:
8057 esac
8059 # Use C for the default configuration in the libtool script
8061 lt_save_CC="$CC"
8062 ac_ext=c
8063 ac_cpp='$CPP $CPPFLAGS'
8064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8069 # Source file extension for C test sources.
8070 ac_ext=c
8072 # Object file extension for compiled C test sources.
8073 objext=o
8074 objext=$objext
8076 # Code to be used in simple compile tests
8077 lt_simple_compile_test_code="int some_variable = 0;"
8079 # Code to be used in simple link tests
8080 lt_simple_link_test_code='int main(){return(0);}'
8088 # If no C compiler was specified, use CC.
8089 LTCC=${LTCC-"$CC"}
8091 # If no C compiler flags were specified, use CFLAGS.
8092 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8094 # Allow CC to be a program name with arguments.
8095 compiler=$CC
8097 # Save the default compiler, since it gets overwritten when the other
8098 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8099 compiler_DEFAULT=$CC
8101 # save warnings/boilerplate of simple test code
8102 ac_outfile=conftest.$ac_objext
8103 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8104 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8105 _lt_compiler_boilerplate=`cat conftest.err`
8106 $RM conftest*
8108 ac_outfile=conftest.$ac_objext
8109 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8110 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8111 _lt_linker_boilerplate=`cat conftest.err`
8112 $RM -r conftest*
8115 ## CAVEAT EMPTOR:
8116 ## There is no encapsulation within the following macros, do not change
8117 ## the running order or otherwise move them around unless you know exactly
8118 ## what you are doing...
8119 if test -n "$compiler"; then
8121 lt_prog_compiler_no_builtin_flag=
8123 if test "$GCC" = yes; then
8124 case $cc_basename in
8125 nvcc*)
8126 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8128 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8129 esac
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8132 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8133 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8134 $as_echo_n "(cached) " >&6
8135 else
8136 lt_cv_prog_compiler_rtti_exceptions=no
8137 ac_outfile=conftest.$ac_objext
8138 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8139 lt_compiler_flag="-fno-rtti -fno-exceptions"
8140 # Insert the option either (1) after the last *FLAGS variable, or
8141 # (2) before a word containing "conftest.", or (3) at the end.
8142 # Note that $ac_compile itself does not contain backslashes and begins
8143 # with a dollar sign (not a hyphen), so the echo should work correctly.
8144 # The option is referenced via a variable to avoid confusing sed.
8145 lt_compile=`echo "$ac_compile" | $SED \
8146 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8147 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8148 -e 's:$: $lt_compiler_flag:'`
8149 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8150 (eval "$lt_compile" 2>conftest.err)
8151 ac_status=$?
8152 cat conftest.err >&5
8153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8154 if (exit $ac_status) && test -s "$ac_outfile"; then
8155 # The compiler can only warn and ignore the option if not recognized
8156 # So say no if there are warnings other than the usual output.
8157 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8158 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8159 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8160 lt_cv_prog_compiler_rtti_exceptions=yes
8163 $RM conftest*
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8167 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8169 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8170 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8171 else
8182 lt_prog_compiler_wl=
8183 lt_prog_compiler_pic=
8184 lt_prog_compiler_static=
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8187 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8189 if test "$GCC" = yes; then
8190 lt_prog_compiler_wl='-Wl,'
8191 lt_prog_compiler_static='-static'
8193 case $host_os in
8194 aix*)
8195 # All AIX code is PIC.
8196 if test "$host_cpu" = ia64; then
8197 # AIX 5 now supports IA64 processor
8198 lt_prog_compiler_static='-Bstatic'
8200 lt_prog_compiler_pic='-fPIC'
8203 amigaos*)
8204 case $host_cpu in
8205 powerpc)
8206 # see comment about AmigaOS4 .so support
8207 lt_prog_compiler_pic='-fPIC'
8209 m68k)
8210 # FIXME: we need at least 68020 code to build shared libraries, but
8211 # adding the `-m68020' flag to GCC prevents building anything better,
8212 # like `-m68040'.
8213 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8215 esac
8218 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8219 # PIC is the default for these OSes.
8222 mingw* | cygwin* | pw32* | os2* | cegcc*)
8223 # This hack is so that the source file can tell whether it is being
8224 # built for inclusion in a dll (and should export symbols for example).
8225 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8226 # (--disable-auto-import) libraries
8227 lt_prog_compiler_pic='-DDLL_EXPORT'
8230 darwin* | rhapsody*)
8231 # PIC is the default on this platform
8232 # Common symbols not allowed in MH_DYLIB files
8233 lt_prog_compiler_pic='-fno-common'
8236 haiku*)
8237 # PIC is the default for Haiku.
8238 # The "-static" flag exists, but is broken.
8239 lt_prog_compiler_static=
8242 hpux*)
8243 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8244 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8245 # sets the default TLS model and affects inlining.
8246 case $host_cpu in
8247 hppa*64*)
8248 # +Z the default
8251 lt_prog_compiler_pic='-fPIC'
8253 esac
8256 interix[3-9]*)
8257 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8258 # Instead, we relocate shared libraries at runtime.
8261 msdosdjgpp*)
8262 # Just because we use GCC doesn't mean we suddenly get shared libraries
8263 # on systems that don't support them.
8264 lt_prog_compiler_can_build_shared=no
8265 enable_shared=no
8268 *nto* | *qnx*)
8269 # QNX uses GNU C++, but need to define -shared option too, otherwise
8270 # it will coredump.
8271 lt_prog_compiler_pic='-fPIC -shared'
8274 sysv4*MP*)
8275 if test -d /usr/nec; then
8276 lt_prog_compiler_pic=-Kconform_pic
8281 lt_prog_compiler_pic='-fPIC'
8283 esac
8285 case $cc_basename in
8286 nvcc*) # Cuda Compiler Driver 2.2
8287 lt_prog_compiler_wl='-Xlinker '
8288 lt_prog_compiler_pic='-Xcompiler -fPIC'
8290 esac
8291 else
8292 # PORTME Check for flag to pass linker flags through the system compiler.
8293 case $host_os in
8294 aix*)
8295 lt_prog_compiler_wl='-Wl,'
8296 if test "$host_cpu" = ia64; then
8297 # AIX 5 now supports IA64 processor
8298 lt_prog_compiler_static='-Bstatic'
8299 else
8300 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8304 mingw* | cygwin* | pw32* | os2* | cegcc*)
8305 # This hack is so that the source file can tell whether it is being
8306 # built for inclusion in a dll (and should export symbols for example).
8307 lt_prog_compiler_pic='-DDLL_EXPORT'
8310 hpux9* | hpux10* | hpux11*)
8311 lt_prog_compiler_wl='-Wl,'
8312 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8313 # not for PA HP-UX.
8314 case $host_cpu in
8315 hppa*64*|ia64*)
8316 # +Z the default
8319 lt_prog_compiler_pic='+Z'
8321 esac
8322 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8323 lt_prog_compiler_static='${wl}-a ${wl}archive'
8326 irix5* | irix6* | nonstopux*)
8327 lt_prog_compiler_wl='-Wl,'
8328 # PIC (with -KPIC) is the default.
8329 lt_prog_compiler_static='-non_shared'
8332 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8333 case $cc_basename in
8334 # old Intel for x86_64 which still supported -KPIC.
8335 ecc*)
8336 lt_prog_compiler_wl='-Wl,'
8337 lt_prog_compiler_pic='-KPIC'
8338 lt_prog_compiler_static='-static'
8340 # icc used to be incompatible with GCC.
8341 # ICC 10 doesn't accept -KPIC any more.
8342 icc* | ifort*)
8343 lt_prog_compiler_wl='-Wl,'
8344 lt_prog_compiler_pic='-fPIC'
8345 lt_prog_compiler_static='-static'
8347 # Lahey Fortran 8.1.
8348 lf95*)
8349 lt_prog_compiler_wl='-Wl,'
8350 lt_prog_compiler_pic='--shared'
8351 lt_prog_compiler_static='--static'
8353 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8354 # Portland Group compilers (*not* the Pentium gcc compiler,
8355 # which looks to be a dead project)
8356 lt_prog_compiler_wl='-Wl,'
8357 lt_prog_compiler_pic='-fpic'
8358 lt_prog_compiler_static='-Bstatic'
8360 ccc*)
8361 lt_prog_compiler_wl='-Wl,'
8362 # All Alpha code is PIC.
8363 lt_prog_compiler_static='-non_shared'
8365 xl* | bgxl* | bgf* | mpixl*)
8366 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8367 lt_prog_compiler_wl='-Wl,'
8368 lt_prog_compiler_pic='-qpic'
8369 lt_prog_compiler_static='-qstaticlink'
8372 case `$CC -V 2>&1 | sed 5q` in
8373 *Sun\ F* | *Sun*Fortran*)
8374 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8375 lt_prog_compiler_pic='-KPIC'
8376 lt_prog_compiler_static='-Bstatic'
8377 lt_prog_compiler_wl=''
8379 *Sun\ C*)
8380 # Sun C 5.9
8381 lt_prog_compiler_pic='-KPIC'
8382 lt_prog_compiler_static='-Bstatic'
8383 lt_prog_compiler_wl='-Wl,'
8385 esac
8387 esac
8390 newsos6)
8391 lt_prog_compiler_pic='-KPIC'
8392 lt_prog_compiler_static='-Bstatic'
8395 *nto* | *qnx*)
8396 # QNX uses GNU C++, but need to define -shared option too, otherwise
8397 # it will coredump.
8398 lt_prog_compiler_pic='-fPIC -shared'
8401 osf3* | osf4* | osf5*)
8402 lt_prog_compiler_wl='-Wl,'
8403 # All OSF/1 code is PIC.
8404 lt_prog_compiler_static='-non_shared'
8407 rdos*)
8408 lt_prog_compiler_static='-non_shared'
8411 solaris*)
8412 lt_prog_compiler_pic='-KPIC'
8413 lt_prog_compiler_static='-Bstatic'
8414 case $cc_basename in
8415 f77* | f90* | f95*)
8416 lt_prog_compiler_wl='-Qoption ld ';;
8418 lt_prog_compiler_wl='-Wl,';;
8419 esac
8422 sunos4*)
8423 lt_prog_compiler_wl='-Qoption ld '
8424 lt_prog_compiler_pic='-PIC'
8425 lt_prog_compiler_static='-Bstatic'
8428 sysv4 | sysv4.2uw2* | sysv4.3*)
8429 lt_prog_compiler_wl='-Wl,'
8430 lt_prog_compiler_pic='-KPIC'
8431 lt_prog_compiler_static='-Bstatic'
8434 sysv4*MP*)
8435 if test -d /usr/nec ;then
8436 lt_prog_compiler_pic='-Kconform_pic'
8437 lt_prog_compiler_static='-Bstatic'
8441 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8442 lt_prog_compiler_wl='-Wl,'
8443 lt_prog_compiler_pic='-KPIC'
8444 lt_prog_compiler_static='-Bstatic'
8447 unicos*)
8448 lt_prog_compiler_wl='-Wl,'
8449 lt_prog_compiler_can_build_shared=no
8452 uts4*)
8453 lt_prog_compiler_pic='-pic'
8454 lt_prog_compiler_static='-Bstatic'
8458 lt_prog_compiler_can_build_shared=no
8460 esac
8463 case $host_os in
8464 # For platforms which do not support PIC, -DPIC is meaningless:
8465 *djgpp*)
8466 lt_prog_compiler_pic=
8469 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8471 esac
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8473 $as_echo "$lt_prog_compiler_pic" >&6; }
8481 # Check to make sure the PIC flag actually works.
8483 if test -n "$lt_prog_compiler_pic"; then
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8485 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8486 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8487 $as_echo_n "(cached) " >&6
8488 else
8489 lt_cv_prog_compiler_pic_works=no
8490 ac_outfile=conftest.$ac_objext
8491 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8492 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8493 # Insert the option either (1) after the last *FLAGS variable, or
8494 # (2) before a word containing "conftest.", or (3) at the end.
8495 # Note that $ac_compile itself does not contain backslashes and begins
8496 # with a dollar sign (not a hyphen), so the echo should work correctly.
8497 # The option is referenced via a variable to avoid confusing sed.
8498 lt_compile=`echo "$ac_compile" | $SED \
8499 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8500 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8501 -e 's:$: $lt_compiler_flag:'`
8502 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8503 (eval "$lt_compile" 2>conftest.err)
8504 ac_status=$?
8505 cat conftest.err >&5
8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507 if (exit $ac_status) && test -s "$ac_outfile"; then
8508 # The compiler can only warn and ignore the option if not recognized
8509 # So say no if there are warnings other than the usual output.
8510 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8511 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8512 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8513 lt_cv_prog_compiler_pic_works=yes
8516 $RM conftest*
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8520 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8522 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8523 case $lt_prog_compiler_pic in
8524 "" | " "*) ;;
8525 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8526 esac
8527 else
8528 lt_prog_compiler_pic=
8529 lt_prog_compiler_can_build_shared=no
8540 # Check to make sure the static flag actually works.
8542 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8544 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8545 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8546 $as_echo_n "(cached) " >&6
8547 else
8548 lt_cv_prog_compiler_static_works=no
8549 save_LDFLAGS="$LDFLAGS"
8550 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8551 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8552 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8553 # The linker can only warn and ignore the option if not recognized
8554 # So say no if there are warnings
8555 if test -s conftest.err; then
8556 # Append any errors to the config.log.
8557 cat conftest.err 1>&5
8558 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8559 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8560 if diff conftest.exp conftest.er2 >/dev/null; then
8561 lt_cv_prog_compiler_static_works=yes
8563 else
8564 lt_cv_prog_compiler_static_works=yes
8567 $RM -r conftest*
8568 LDFLAGS="$save_LDFLAGS"
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8572 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8574 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8576 else
8577 lt_prog_compiler_static=
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8587 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8588 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8589 $as_echo_n "(cached) " >&6
8590 else
8591 lt_cv_prog_compiler_c_o=no
8592 $RM -r conftest 2>/dev/null
8593 mkdir conftest
8594 cd conftest
8595 mkdir out
8596 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8598 lt_compiler_flag="-o out/conftest2.$ac_objext"
8599 # Insert the option either (1) after the last *FLAGS variable, or
8600 # (2) before a word containing "conftest.", or (3) at the end.
8601 # Note that $ac_compile itself does not contain backslashes and begins
8602 # with a dollar sign (not a hyphen), so the echo should work correctly.
8603 lt_compile=`echo "$ac_compile" | $SED \
8604 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8605 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8606 -e 's:$: $lt_compiler_flag:'`
8607 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8608 (eval "$lt_compile" 2>out/conftest.err)
8609 ac_status=$?
8610 cat out/conftest.err >&5
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8613 then
8614 # The compiler can only warn and ignore the option if not recognized
8615 # So say no if there are warnings
8616 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8617 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8618 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8619 lt_cv_prog_compiler_c_o=yes
8622 chmod u+w . 2>&5
8623 $RM conftest*
8624 # SGI C++ compiler will create directory out/ii_files/ for
8625 # template instantiation
8626 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8627 $RM out/* && rmdir out
8628 cd ..
8629 $RM -r conftest
8630 $RM conftest*
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8634 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8642 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8643 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8644 $as_echo_n "(cached) " >&6
8645 else
8646 lt_cv_prog_compiler_c_o=no
8647 $RM -r conftest 2>/dev/null
8648 mkdir conftest
8649 cd conftest
8650 mkdir out
8651 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8653 lt_compiler_flag="-o out/conftest2.$ac_objext"
8654 # Insert the option either (1) after the last *FLAGS variable, or
8655 # (2) before a word containing "conftest.", or (3) at the end.
8656 # Note that $ac_compile itself does not contain backslashes and begins
8657 # with a dollar sign (not a hyphen), so the echo should work correctly.
8658 lt_compile=`echo "$ac_compile" | $SED \
8659 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8660 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8661 -e 's:$: $lt_compiler_flag:'`
8662 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8663 (eval "$lt_compile" 2>out/conftest.err)
8664 ac_status=$?
8665 cat out/conftest.err >&5
8666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8668 then
8669 # The compiler can only warn and ignore the option if not recognized
8670 # So say no if there are warnings
8671 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8672 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8673 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8674 lt_cv_prog_compiler_c_o=yes
8677 chmod u+w . 2>&5
8678 $RM conftest*
8679 # SGI C++ compiler will create directory out/ii_files/ for
8680 # template instantiation
8681 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8682 $RM out/* && rmdir out
8683 cd ..
8684 $RM -r conftest
8685 $RM conftest*
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8689 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8694 hard_links="nottested"
8695 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8696 # do not overwrite the value of need_locks provided by the user
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8698 $as_echo_n "checking if we can lock with hard links... " >&6; }
8699 hard_links=yes
8700 $RM conftest*
8701 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8702 touch conftest.a
8703 ln conftest.a conftest.b 2>&5 || hard_links=no
8704 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8706 $as_echo "$hard_links" >&6; }
8707 if test "$hard_links" = no; then
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8709 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8710 need_locks=warn
8712 else
8713 need_locks=no
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8722 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8724 runpath_var=
8725 allow_undefined_flag=
8726 always_export_symbols=no
8727 archive_cmds=
8728 archive_expsym_cmds=
8729 compiler_needs_object=no
8730 enable_shared_with_static_runtimes=no
8731 export_dynamic_flag_spec=
8732 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8733 hardcode_automatic=no
8734 hardcode_direct=no
8735 hardcode_direct_absolute=no
8736 hardcode_libdir_flag_spec=
8737 hardcode_libdir_flag_spec_ld=
8738 hardcode_libdir_separator=
8739 hardcode_minus_L=no
8740 hardcode_shlibpath_var=unsupported
8741 inherit_rpath=no
8742 link_all_deplibs=unknown
8743 module_cmds=
8744 module_expsym_cmds=
8745 old_archive_from_new_cmds=
8746 old_archive_from_expsyms_cmds=
8747 thread_safe_flag_spec=
8748 whole_archive_flag_spec=
8749 # include_expsyms should be a list of space-separated symbols to be *always*
8750 # included in the symbol list
8751 include_expsyms=
8752 # exclude_expsyms can be an extended regexp of symbols to exclude
8753 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8754 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8755 # as well as any symbol that contains `d'.
8756 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8757 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8758 # platforms (ab)use it in PIC code, but their linkers get confused if
8759 # the symbol is explicitly referenced. Since portable code cannot
8760 # rely on this symbol name, it's probably fine to never include it in
8761 # preloaded symbol tables.
8762 # Exclude shared library initialization/finalization symbols.
8763 extract_expsyms_cmds=
8765 case $host_os in
8766 cygwin* | mingw* | pw32* | cegcc*)
8767 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8768 # When not using gcc, we currently assume that we are using
8769 # Microsoft Visual C++.
8770 if test "$GCC" != yes; then
8771 with_gnu_ld=no
8774 interix*)
8775 # we just hope/assume this is gcc and not c89 (= MSVC++)
8776 with_gnu_ld=yes
8778 openbsd*)
8779 with_gnu_ld=no
8781 esac
8783 ld_shlibs=yes
8785 # On some targets, GNU ld is compatible enough with the native linker
8786 # that we're better off using the native interface for both.
8787 lt_use_gnu_ld_interface=no
8788 if test "$with_gnu_ld" = yes; then
8789 case $host_os in
8790 aix*)
8791 # The AIX port of GNU ld has always aspired to compatibility
8792 # with the native linker. However, as the warning in the GNU ld
8793 # block says, versions before 2.19.5* couldn't really create working
8794 # shared libraries, regardless of the interface used.
8795 case `$LD -v 2>&1` in
8796 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8797 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8798 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8800 lt_use_gnu_ld_interface=yes
8802 esac
8805 lt_use_gnu_ld_interface=yes
8807 esac
8810 if test "$lt_use_gnu_ld_interface" = yes; then
8811 # If archive_cmds runs LD, not CC, wlarc should be empty
8812 wlarc='${wl}'
8814 # Set some defaults for GNU ld with shared library support. These
8815 # are reset later if shared libraries are not supported. Putting them
8816 # here allows them to be overridden if necessary.
8817 runpath_var=LD_RUN_PATH
8818 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8819 export_dynamic_flag_spec='${wl}--export-dynamic'
8820 # ancient GNU ld didn't support --whole-archive et. al.
8821 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8822 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8823 else
8824 whole_archive_flag_spec=
8826 supports_anon_versioning=no
8827 case `$LD -v 2>&1` in
8828 *GNU\ gold*) supports_anon_versioning=yes ;;
8829 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8830 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8831 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8832 *\ 2.11.*) ;; # other 2.11 versions
8833 *) supports_anon_versioning=yes ;;
8834 esac
8836 # See if GNU ld supports shared libraries.
8837 case $host_os in
8838 aix[3-9]*)
8839 # On AIX/PPC, the GNU linker is very broken
8840 if test "$host_cpu" != ia64; then
8841 ld_shlibs=no
8842 cat <<_LT_EOF 1>&2
8844 *** Warning: the GNU linker, at least up to release 2.19, is reported
8845 *** to be unable to reliably create shared libraries on AIX.
8846 *** Therefore, libtool is disabling shared libraries support. If you
8847 *** really care for shared libraries, you may want to install binutils
8848 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8849 *** You will then need to restart the configuration process.
8851 _LT_EOF
8855 amigaos*)
8856 case $host_cpu in
8857 powerpc)
8858 # see comment about AmigaOS4 .so support
8859 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8860 archive_expsym_cmds=''
8862 m68k)
8863 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)'
8864 hardcode_libdir_flag_spec='-L$libdir'
8865 hardcode_minus_L=yes
8867 esac
8870 beos*)
8871 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8872 allow_undefined_flag=unsupported
8873 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8874 # support --undefined. This deserves some investigation. FIXME
8875 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8876 else
8877 ld_shlibs=no
8881 cygwin* | mingw* | pw32* | cegcc*)
8882 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8883 # as there is no search path for DLLs.
8884 hardcode_libdir_flag_spec='-L$libdir'
8885 export_dynamic_flag_spec='${wl}--export-all-symbols'
8886 allow_undefined_flag=unsupported
8887 always_export_symbols=no
8888 enable_shared_with_static_runtimes=yes
8889 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8891 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8892 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8893 # If the export-symbols file already is a .def file (1st line
8894 # is EXPORTS), use it as is; otherwise, prepend...
8895 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8896 cp $export_symbols $output_objdir/$soname.def;
8897 else
8898 echo EXPORTS > $output_objdir/$soname.def;
8899 cat $export_symbols >> $output_objdir/$soname.def;
8901 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8902 else
8903 ld_shlibs=no
8907 haiku*)
8908 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8909 link_all_deplibs=yes
8912 interix[3-9]*)
8913 hardcode_direct=no
8914 hardcode_shlibpath_var=no
8915 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8916 export_dynamic_flag_spec='${wl}-E'
8917 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8918 # Instead, shared libraries are loaded at an image base (0x10000000 by
8919 # default) and relocated if they conflict, which is a slow very memory
8920 # consuming and fragmenting process. To avoid this, we pick a random,
8921 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8922 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8923 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8924 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'
8927 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8928 tmp_diet=no
8929 if test "$host_os" = linux-dietlibc; then
8930 case $cc_basename in
8931 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8932 esac
8934 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8935 && test "$tmp_diet" = no
8936 then
8937 tmp_addflag=' $pic_flag'
8938 tmp_sharedflag='-shared'
8939 case $cc_basename,$host_cpu in
8940 pgcc*) # Portland Group C compiler
8941 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'
8942 tmp_addflag=' $pic_flag'
8944 pgf77* | pgf90* | pgf95* | pgfortran*)
8945 # Portland Group f77 and f90 compilers
8946 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'
8947 tmp_addflag=' $pic_flag -Mnomain' ;;
8948 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8949 tmp_addflag=' -i_dynamic' ;;
8950 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8951 tmp_addflag=' -i_dynamic -nofor_main' ;;
8952 ifc* | ifort*) # Intel Fortran compiler
8953 tmp_addflag=' -nofor_main' ;;
8954 lf95*) # Lahey Fortran 8.1
8955 whole_archive_flag_spec=
8956 tmp_sharedflag='--shared' ;;
8957 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8958 tmp_sharedflag='-qmkshrobj'
8959 tmp_addflag= ;;
8960 nvcc*) # Cuda Compiler Driver 2.2
8961 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'
8962 compiler_needs_object=yes
8964 esac
8965 case `$CC -V 2>&1 | sed 5q` in
8966 *Sun\ C*) # Sun C 5.9
8967 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'
8968 compiler_needs_object=yes
8969 tmp_sharedflag='-G' ;;
8970 *Sun\ F*) # Sun Fortran 8.3
8971 tmp_sharedflag='-G' ;;
8972 esac
8973 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8975 if test "x$supports_anon_versioning" = xyes; then
8976 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8977 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8978 echo "local: *; };" >> $output_objdir/$libname.ver~
8979 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8982 case $cc_basename in
8983 xlf* | bgf* | bgxlf* | mpixlf*)
8984 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8985 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8986 hardcode_libdir_flag_spec=
8987 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8988 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8989 if test "x$supports_anon_versioning" = xyes; then
8990 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8991 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8992 echo "local: *; };" >> $output_objdir/$libname.ver~
8993 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8996 esac
8997 else
8998 ld_shlibs=no
9002 netbsd*)
9003 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9004 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9005 wlarc=
9006 else
9007 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9008 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9012 solaris*)
9013 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9014 ld_shlibs=no
9015 cat <<_LT_EOF 1>&2
9017 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9018 *** create shared libraries on Solaris systems. Therefore, libtool
9019 *** is disabling shared libraries support. We urge you to upgrade GNU
9020 *** binutils to release 2.9.1 or newer. Another option is to modify
9021 *** your PATH or compiler configuration so that the native linker is
9022 *** used, and then restart.
9024 _LT_EOF
9025 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9026 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9027 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9028 else
9029 ld_shlibs=no
9033 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9034 case `$LD -v 2>&1` in
9035 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9036 ld_shlibs=no
9037 cat <<_LT_EOF 1>&2
9039 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9040 *** reliably create shared libraries on SCO systems. Therefore, libtool
9041 *** is disabling shared libraries support. We urge you to upgrade GNU
9042 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9043 *** your PATH or compiler configuration so that the native linker is
9044 *** used, and then restart.
9046 _LT_EOF
9049 # For security reasons, it is highly recommended that you always
9050 # use absolute paths for naming shared libraries, and exclude the
9051 # DT_RUNPATH tag from executables and libraries. But doing so
9052 # requires that you compile everything twice, which is a pain.
9053 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9054 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9055 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9056 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9057 else
9058 ld_shlibs=no
9061 esac
9064 sunos4*)
9065 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9066 wlarc=
9067 hardcode_direct=yes
9068 hardcode_shlibpath_var=no
9072 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9073 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9074 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9075 else
9076 ld_shlibs=no
9079 esac
9081 if test "$ld_shlibs" = no; then
9082 runpath_var=
9083 hardcode_libdir_flag_spec=
9084 export_dynamic_flag_spec=
9085 whole_archive_flag_spec=
9087 else
9088 # PORTME fill in a description of your system's linker (not GNU ld)
9089 case $host_os in
9090 aix3*)
9091 allow_undefined_flag=unsupported
9092 always_export_symbols=yes
9093 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'
9094 # Note: this linker hardcodes the directories in LIBPATH if there
9095 # are no directories specified by -L.
9096 hardcode_minus_L=yes
9097 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9098 # Neither direct hardcoding nor static linking is supported with a
9099 # broken collect2.
9100 hardcode_direct=unsupported
9104 aix[4-9]*)
9105 if test "$host_cpu" = ia64; then
9106 # On IA64, the linker does run time linking by default, so we don't
9107 # have to do anything special.
9108 aix_use_runtimelinking=no
9109 exp_sym_flag='-Bexport'
9110 no_entry_flag=""
9111 else
9112 # If we're using GNU nm, then we don't want the "-C" option.
9113 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9114 # Also, AIX nm treats weak defined symbols like other global
9115 # defined symbols, whereas GNU nm marks them as "W".
9116 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9117 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'
9118 else
9119 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'
9121 aix_use_runtimelinking=no
9123 # Test if we are trying to use run time linking or normal
9124 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9125 # need to do runtime linking.
9126 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9127 for ld_flag in $LDFLAGS; do
9128 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9129 aix_use_runtimelinking=yes
9130 break
9132 done
9134 esac
9136 exp_sym_flag='-bexport'
9137 no_entry_flag='-bnoentry'
9140 # When large executables or shared objects are built, AIX ld can
9141 # have problems creating the table of contents. If linking a library
9142 # or program results in "error TOC overflow" add -mminimal-toc to
9143 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9144 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9146 archive_cmds=''
9147 hardcode_direct=yes
9148 hardcode_direct_absolute=yes
9149 hardcode_libdir_separator=':'
9150 link_all_deplibs=yes
9151 file_list_spec='${wl}-f,'
9153 if test "$GCC" = yes; then
9154 case $host_os in aix4.[012]|aix4.[012].*)
9155 # We only want to do this on AIX 4.2 and lower, the check
9156 # below for broken collect2 doesn't work under 4.3+
9157 collect2name=`${CC} -print-prog-name=collect2`
9158 if test -f "$collect2name" &&
9159 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9160 then
9161 # We have reworked collect2
9163 else
9164 # We have old collect2
9165 hardcode_direct=unsupported
9166 # It fails to find uninstalled libraries when the uninstalled
9167 # path is not listed in the libpath. Setting hardcode_minus_L
9168 # to unsupported forces relinking
9169 hardcode_minus_L=yes
9170 hardcode_libdir_flag_spec='-L$libdir'
9171 hardcode_libdir_separator=
9174 esac
9175 shared_flag='-shared'
9176 if test "$aix_use_runtimelinking" = yes; then
9177 shared_flag="$shared_flag "'${wl}-G'
9179 else
9180 # not using gcc
9181 if test "$host_cpu" = ia64; then
9182 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9183 # chokes on -Wl,-G. The following line is correct:
9184 shared_flag='-G'
9185 else
9186 if test "$aix_use_runtimelinking" = yes; then
9187 shared_flag='${wl}-G'
9188 else
9189 shared_flag='${wl}-bM:SRE'
9194 export_dynamic_flag_spec='${wl}-bexpall'
9195 # It seems that -bexpall does not export symbols beginning with
9196 # underscore (_), so it is better to generate a list of symbols to export.
9197 always_export_symbols=yes
9198 if test "$aix_use_runtimelinking" = yes; then
9199 # Warning - without using the other runtime loading flags (-brtl),
9200 # -berok will link without error, but may produce a broken library.
9201 allow_undefined_flag='-berok'
9202 # Determine the default libpath from the value encoded in an
9203 # empty executable.
9204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9205 /* end confdefs.h. */
9208 main ()
9212 return 0;
9214 _ACEOF
9215 if ac_fn_c_try_link "$LINENO"; then :
9217 lt_aix_libpath_sed='
9218 /Import File Strings/,/^$/ {
9219 /^0/ {
9220 s/^0 *\(.*\)$/\1/
9224 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9225 # Check for a 64-bit object if we didn't find anything.
9226 if test -z "$aix_libpath"; then
9227 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9230 rm -f core conftest.err conftest.$ac_objext \
9231 conftest$ac_exeext conftest.$ac_ext
9232 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9234 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9235 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"
9236 else
9237 if test "$host_cpu" = ia64; then
9238 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9239 allow_undefined_flag="-z nodefs"
9240 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"
9241 else
9242 # Determine the default libpath from the value encoded in an
9243 # empty executable.
9244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9245 /* end confdefs.h. */
9248 main ()
9252 return 0;
9254 _ACEOF
9255 if ac_fn_c_try_link "$LINENO"; then :
9257 lt_aix_libpath_sed='
9258 /Import File Strings/,/^$/ {
9259 /^0/ {
9260 s/^0 *\(.*\)$/\1/
9264 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9265 # Check for a 64-bit object if we didn't find anything.
9266 if test -z "$aix_libpath"; then
9267 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9270 rm -f core conftest.err conftest.$ac_objext \
9271 conftest$ac_exeext conftest.$ac_ext
9272 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9274 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9275 # Warning - without using the other run time loading flags,
9276 # -berok will link without error, but may produce a broken library.
9277 no_undefined_flag=' ${wl}-bernotok'
9278 allow_undefined_flag=' ${wl}-berok'
9279 if test "$with_gnu_ld" = yes; then
9280 # We only use this code for GNU lds that support --whole-archive.
9281 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9282 else
9283 # Exported symbols can be pulled into shared objects from archives
9284 whole_archive_flag_spec='$convenience'
9286 archive_cmds_need_lc=yes
9287 # This is similar to how AIX traditionally builds its shared libraries.
9288 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'
9293 amigaos*)
9294 case $host_cpu in
9295 powerpc)
9296 # see comment about AmigaOS4 .so support
9297 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9298 archive_expsym_cmds=''
9300 m68k)
9301 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)'
9302 hardcode_libdir_flag_spec='-L$libdir'
9303 hardcode_minus_L=yes
9305 esac
9308 bsdi[45]*)
9309 export_dynamic_flag_spec=-rdynamic
9312 cygwin* | mingw* | pw32* | cegcc*)
9313 # When not using gcc, we currently assume that we are using
9314 # Microsoft Visual C++.
9315 # hardcode_libdir_flag_spec is actually meaningless, as there is
9316 # no search path for DLLs.
9317 hardcode_libdir_flag_spec=' '
9318 allow_undefined_flag=unsupported
9319 # Tell ltmain to make .lib files, not .a files.
9320 libext=lib
9321 # Tell ltmain to make .dll files, not .so files.
9322 shrext_cmds=".dll"
9323 # FIXME: Setting linknames here is a bad hack.
9324 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9325 # The linker will automatically build a .lib file if we build a DLL.
9326 old_archive_from_new_cmds='true'
9327 # FIXME: Should let the user specify the lib program.
9328 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9329 fix_srcfile_path='`cygpath -w "$srcfile"`'
9330 enable_shared_with_static_runtimes=yes
9333 darwin* | rhapsody*)
9336 archive_cmds_need_lc=no
9337 hardcode_direct=no
9338 hardcode_automatic=yes
9339 hardcode_shlibpath_var=unsupported
9340 if test "$lt_cv_ld_force_load" = "yes"; then
9341 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\"`'
9342 else
9343 whole_archive_flag_spec=''
9345 link_all_deplibs=yes
9346 allow_undefined_flag="$_lt_dar_allow_undefined"
9347 case $cc_basename in
9348 ifort*) _lt_dar_can_shared=yes ;;
9349 *) _lt_dar_can_shared=$GCC ;;
9350 esac
9351 if test "$_lt_dar_can_shared" = "yes"; then
9352 output_verbose_link_cmd=func_echo_all
9353 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9354 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9355 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}"
9356 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}"
9358 else
9359 ld_shlibs=no
9364 dgux*)
9365 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9366 hardcode_libdir_flag_spec='-L$libdir'
9367 hardcode_shlibpath_var=no
9370 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9371 # support. Future versions do this automatically, but an explicit c++rt0.o
9372 # does not break anything, and helps significantly (at the cost of a little
9373 # extra space).
9374 freebsd2.2*)
9375 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9376 hardcode_libdir_flag_spec='-R$libdir'
9377 hardcode_direct=yes
9378 hardcode_shlibpath_var=no
9381 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9382 freebsd2.*)
9383 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9384 hardcode_direct=yes
9385 hardcode_minus_L=yes
9386 hardcode_shlibpath_var=no
9389 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9390 freebsd* | dragonfly*)
9391 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9392 hardcode_libdir_flag_spec='-R$libdir'
9393 hardcode_direct=yes
9394 hardcode_shlibpath_var=no
9397 hpux9*)
9398 if test "$GCC" = yes; then
9399 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'
9400 else
9401 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'
9403 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9404 hardcode_libdir_separator=:
9405 hardcode_direct=yes
9407 # hardcode_minus_L: Not really in the search PATH,
9408 # but as the default location of the library.
9409 hardcode_minus_L=yes
9410 export_dynamic_flag_spec='${wl}-E'
9413 hpux10*)
9414 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9415 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9416 else
9417 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9419 if test "$with_gnu_ld" = no; then
9420 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9421 hardcode_libdir_flag_spec_ld='+b $libdir'
9422 hardcode_libdir_separator=:
9423 hardcode_direct=yes
9424 hardcode_direct_absolute=yes
9425 export_dynamic_flag_spec='${wl}-E'
9426 # hardcode_minus_L: Not really in the search PATH,
9427 # but as the default location of the library.
9428 hardcode_minus_L=yes
9432 hpux11*)
9433 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9434 case $host_cpu in
9435 hppa*64*)
9436 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9438 ia64*)
9439 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9442 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9444 esac
9445 else
9446 case $host_cpu in
9447 hppa*64*)
9448 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9450 ia64*)
9451 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9455 # Older versions of the 11.00 compiler do not understand -b yet
9456 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9458 $as_echo_n "checking if $CC understands -b... " >&6; }
9459 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9460 $as_echo_n "(cached) " >&6
9461 else
9462 lt_cv_prog_compiler__b=no
9463 save_LDFLAGS="$LDFLAGS"
9464 LDFLAGS="$LDFLAGS -b"
9465 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9466 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9467 # The linker can only warn and ignore the option if not recognized
9468 # So say no if there are warnings
9469 if test -s conftest.err; then
9470 # Append any errors to the config.log.
9471 cat conftest.err 1>&5
9472 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9473 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9474 if diff conftest.exp conftest.er2 >/dev/null; then
9475 lt_cv_prog_compiler__b=yes
9477 else
9478 lt_cv_prog_compiler__b=yes
9481 $RM -r conftest*
9482 LDFLAGS="$save_LDFLAGS"
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9486 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9488 if test x"$lt_cv_prog_compiler__b" = xyes; then
9489 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9490 else
9491 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9495 esac
9497 if test "$with_gnu_ld" = no; then
9498 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9499 hardcode_libdir_separator=:
9501 case $host_cpu in
9502 hppa*64*|ia64*)
9503 hardcode_direct=no
9504 hardcode_shlibpath_var=no
9507 hardcode_direct=yes
9508 hardcode_direct_absolute=yes
9509 export_dynamic_flag_spec='${wl}-E'
9511 # hardcode_minus_L: Not really in the search PATH,
9512 # but as the default location of the library.
9513 hardcode_minus_L=yes
9515 esac
9519 irix5* | irix6* | nonstopux*)
9520 if test "$GCC" = yes; then
9521 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'
9522 # Try to use the -exported_symbol ld option, if it does not
9523 # work, assume that -exports_file does not work either and
9524 # implicitly export all symbols.
9525 save_LDFLAGS="$LDFLAGS"
9526 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9528 /* end confdefs.h. */
9529 int foo(void) {}
9530 _ACEOF
9531 if ac_fn_c_try_link "$LINENO"; then :
9532 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'
9535 rm -f core conftest.err conftest.$ac_objext \
9536 conftest$ac_exeext conftest.$ac_ext
9537 LDFLAGS="$save_LDFLAGS"
9538 else
9539 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'
9540 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'
9542 archive_cmds_need_lc='no'
9543 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9544 hardcode_libdir_separator=:
9545 inherit_rpath=yes
9546 link_all_deplibs=yes
9549 netbsd*)
9550 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9551 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9552 else
9553 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9555 hardcode_libdir_flag_spec='-R$libdir'
9556 hardcode_direct=yes
9557 hardcode_shlibpath_var=no
9560 newsos6)
9561 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9562 hardcode_direct=yes
9563 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9564 hardcode_libdir_separator=:
9565 hardcode_shlibpath_var=no
9568 *nto* | *qnx*)
9571 openbsd*)
9572 if test -f /usr/libexec/ld.so; then
9573 hardcode_direct=yes
9574 hardcode_shlibpath_var=no
9575 hardcode_direct_absolute=yes
9576 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9577 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9578 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9579 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9580 export_dynamic_flag_spec='${wl}-E'
9581 else
9582 case $host_os in
9583 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9584 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9585 hardcode_libdir_flag_spec='-R$libdir'
9588 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9589 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9591 esac
9593 else
9594 ld_shlibs=no
9598 os2*)
9599 hardcode_libdir_flag_spec='-L$libdir'
9600 hardcode_minus_L=yes
9601 allow_undefined_flag=unsupported
9602 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'
9603 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9606 osf3*)
9607 if test "$GCC" = yes; then
9608 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9609 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'
9610 else
9611 allow_undefined_flag=' -expect_unresolved \*'
9612 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'
9614 archive_cmds_need_lc='no'
9615 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9616 hardcode_libdir_separator=:
9619 osf4* | osf5*) # as osf3* with the addition of -msym flag
9620 if test "$GCC" = yes; then
9621 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9622 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'
9623 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9624 else
9625 allow_undefined_flag=' -expect_unresolved \*'
9626 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'
9627 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~
9628 $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'
9630 # Both c and cxx compiler support -rpath directly
9631 hardcode_libdir_flag_spec='-rpath $libdir'
9633 archive_cmds_need_lc='no'
9634 hardcode_libdir_separator=:
9637 solaris*)
9638 no_undefined_flag=' -z defs'
9639 if test "$GCC" = yes; then
9640 wlarc='${wl}'
9641 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9642 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9643 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9644 else
9645 case `$CC -V 2>&1` in
9646 *"Compilers 5.0"*)
9647 wlarc=''
9648 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9649 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9650 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9653 wlarc='${wl}'
9654 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9655 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9656 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9658 esac
9660 hardcode_libdir_flag_spec='-R$libdir'
9661 hardcode_shlibpath_var=no
9662 case $host_os in
9663 solaris2.[0-5] | solaris2.[0-5].*) ;;
9665 # The compiler driver will combine and reorder linker options,
9666 # but understands `-z linker_flag'. GCC discards it without `$wl',
9667 # but is careful enough not to reorder.
9668 # Supported since Solaris 2.6 (maybe 2.5.1?)
9669 if test "$GCC" = yes; then
9670 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9671 else
9672 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9675 esac
9676 link_all_deplibs=yes
9679 sunos4*)
9680 if test "x$host_vendor" = xsequent; then
9681 # Use $CC to link under sequent, because it throws in some extra .o
9682 # files that make .init and .fini sections work.
9683 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9684 else
9685 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9687 hardcode_libdir_flag_spec='-L$libdir'
9688 hardcode_direct=yes
9689 hardcode_minus_L=yes
9690 hardcode_shlibpath_var=no
9693 sysv4)
9694 case $host_vendor in
9695 sni)
9696 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9697 hardcode_direct=yes # is this really true???
9699 siemens)
9700 ## LD is ld it makes a PLAMLIB
9701 ## CC just makes a GrossModule.
9702 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9703 reload_cmds='$CC -r -o $output$reload_objs'
9704 hardcode_direct=no
9706 motorola)
9707 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9708 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9710 esac
9711 runpath_var='LD_RUN_PATH'
9712 hardcode_shlibpath_var=no
9715 sysv4.3*)
9716 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9717 hardcode_shlibpath_var=no
9718 export_dynamic_flag_spec='-Bexport'
9721 sysv4*MP*)
9722 if test -d /usr/nec; then
9723 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9724 hardcode_shlibpath_var=no
9725 runpath_var=LD_RUN_PATH
9726 hardcode_runpath_var=yes
9727 ld_shlibs=yes
9731 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9732 no_undefined_flag='${wl}-z,text'
9733 archive_cmds_need_lc=no
9734 hardcode_shlibpath_var=no
9735 runpath_var='LD_RUN_PATH'
9737 if test "$GCC" = yes; then
9738 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9739 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9740 else
9741 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9742 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9746 sysv5* | sco3.2v5* | sco5v6*)
9747 # Note: We can NOT use -z defs as we might desire, because we do not
9748 # link with -lc, and that would cause any symbols used from libc to
9749 # always be unresolved, which means just about no library would
9750 # ever link correctly. If we're not using GNU ld we use -z text
9751 # though, which does catch some bad symbols but isn't as heavy-handed
9752 # as -z defs.
9753 no_undefined_flag='${wl}-z,text'
9754 allow_undefined_flag='${wl}-z,nodefs'
9755 archive_cmds_need_lc=no
9756 hardcode_shlibpath_var=no
9757 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9758 hardcode_libdir_separator=':'
9759 link_all_deplibs=yes
9760 export_dynamic_flag_spec='${wl}-Bexport'
9761 runpath_var='LD_RUN_PATH'
9763 if test "$GCC" = yes; then
9764 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9765 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9766 else
9767 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9768 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9772 uts4*)
9773 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9774 hardcode_libdir_flag_spec='-L$libdir'
9775 hardcode_shlibpath_var=no
9779 ld_shlibs=no
9781 esac
9783 if test x$host_vendor = xsni; then
9784 case $host in
9785 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9786 export_dynamic_flag_spec='${wl}-Blargedynsym'
9788 esac
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9793 $as_echo "$ld_shlibs" >&6; }
9794 test "$ld_shlibs" = no && can_build_shared=no
9796 with_gnu_ld=$with_gnu_ld
9813 # Do we need to explicitly link libc?
9815 case "x$archive_cmds_need_lc" in
9816 x|xyes)
9817 # Assume -lc should be added
9818 archive_cmds_need_lc=yes
9820 if test "$enable_shared" = yes && test "$GCC" = yes; then
9821 case $archive_cmds in
9822 *'~'*)
9823 # FIXME: we may have to deal with multi-command sequences.
9825 '$CC '*)
9826 # Test whether the compiler implicitly links with -lc since on some
9827 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9828 # to ld, don't add -lc before -lgcc.
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9830 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9831 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9832 $as_echo_n "(cached) " >&6
9833 else
9834 $RM conftest*
9835 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9837 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9838 (eval $ac_compile) 2>&5
9839 ac_status=$?
9840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9841 test $ac_status = 0; } 2>conftest.err; then
9842 soname=conftest
9843 lib=conftest
9844 libobjs=conftest.$ac_objext
9845 deplibs=
9846 wl=$lt_prog_compiler_wl
9847 pic_flag=$lt_prog_compiler_pic
9848 compiler_flags=-v
9849 linker_flags=-v
9850 verstring=
9851 output_objdir=.
9852 libname=conftest
9853 lt_save_allow_undefined_flag=$allow_undefined_flag
9854 allow_undefined_flag=
9855 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9856 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9857 ac_status=$?
9858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9859 test $ac_status = 0; }
9860 then
9861 lt_cv_archive_cmds_need_lc=no
9862 else
9863 lt_cv_archive_cmds_need_lc=yes
9865 allow_undefined_flag=$lt_save_allow_undefined_flag
9866 else
9867 cat conftest.err 1>&5
9869 $RM conftest*
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9873 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9874 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9876 esac
9879 esac
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10038 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10040 if test "$GCC" = yes; then
10041 case $host_os in
10042 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10043 *) lt_awk_arg="/^libraries:/" ;;
10044 esac
10045 case $host_os in
10046 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10047 *) lt_sed_strip_eq="s,=/,/,g" ;;
10048 esac
10049 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10050 case $lt_search_path_spec in
10051 *\;*)
10052 # if the path contains ";" then we assume it to be the separator
10053 # otherwise default to the standard path separator (i.e. ":") - it is
10054 # assumed that no part of a normal pathname contains ";" but that should
10055 # okay in the real world where ";" in dirpaths is itself problematic.
10056 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10059 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10061 esac
10062 # Ok, now we have the path, separated by spaces, we can step through it
10063 # and add multilib dir if necessary.
10064 lt_tmp_lt_search_path_spec=
10065 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10066 for lt_sys_path in $lt_search_path_spec; do
10067 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10068 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10069 else
10070 test -d "$lt_sys_path" && \
10071 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10073 done
10074 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10075 BEGIN {RS=" "; FS="/|\n";} {
10076 lt_foo="";
10077 lt_count=0;
10078 for (lt_i = NF; lt_i > 0; lt_i--) {
10079 if ($lt_i != "" && $lt_i != ".") {
10080 if ($lt_i == "..") {
10081 lt_count++;
10082 } else {
10083 if (lt_count == 0) {
10084 lt_foo="/" $lt_i lt_foo;
10085 } else {
10086 lt_count--;
10091 if (lt_foo != "") { lt_freq[lt_foo]++; }
10092 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10094 # AWK program above erroneously prepends '/' to C:/dos/paths
10095 # for these hosts.
10096 case $host_os in
10097 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10098 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10099 esac
10100 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10101 else
10102 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10104 library_names_spec=
10105 libname_spec='lib$name'
10106 soname_spec=
10107 shrext_cmds=".so"
10108 postinstall_cmds=
10109 postuninstall_cmds=
10110 finish_cmds=
10111 finish_eval=
10112 shlibpath_var=
10113 shlibpath_overrides_runpath=unknown
10114 version_type=none
10115 dynamic_linker="$host_os ld.so"
10116 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10117 need_lib_prefix=unknown
10118 hardcode_into_libs=no
10120 # when you set need_version to no, make sure it does not cause -set_version
10121 # flags to be left without arguments
10122 need_version=unknown
10124 case $host_os in
10125 aix3*)
10126 version_type=linux
10127 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10128 shlibpath_var=LIBPATH
10130 # AIX 3 has no versioning support, so we append a major version to the name.
10131 soname_spec='${libname}${release}${shared_ext}$major'
10134 aix[4-9]*)
10135 version_type=linux
10136 need_lib_prefix=no
10137 need_version=no
10138 hardcode_into_libs=yes
10139 if test "$host_cpu" = ia64; then
10140 # AIX 5 supports IA64
10141 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10142 shlibpath_var=LD_LIBRARY_PATH
10143 else
10144 # With GCC up to 2.95.x, collect2 would create an import file
10145 # for dependence libraries. The import file would start with
10146 # the line `#! .'. This would cause the generated library to
10147 # depend on `.', always an invalid library. This was fixed in
10148 # development snapshots of GCC prior to 3.0.
10149 case $host_os in
10150 aix4 | aix4.[01] | aix4.[01].*)
10151 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10152 echo ' yes '
10153 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10155 else
10156 can_build_shared=no
10159 esac
10160 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10161 # soname into executable. Probably we can add versioning support to
10162 # collect2, so additional links can be useful in future.
10163 if test "$aix_use_runtimelinking" = yes; then
10164 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10165 # instead of lib<name>.a to let people know that these are not
10166 # typical AIX shared libraries.
10167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10168 else
10169 # We preserve .a as extension for shared libraries through AIX4.2
10170 # and later when we are not doing run time linking.
10171 library_names_spec='${libname}${release}.a $libname.a'
10172 soname_spec='${libname}${release}${shared_ext}$major'
10174 shlibpath_var=LIBPATH
10178 amigaos*)
10179 case $host_cpu in
10180 powerpc)
10181 # Since July 2007 AmigaOS4 officially supports .so libraries.
10182 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10185 m68k)
10186 library_names_spec='$libname.ixlibrary $libname.a'
10187 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10188 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'
10190 esac
10193 beos*)
10194 library_names_spec='${libname}${shared_ext}'
10195 dynamic_linker="$host_os ld.so"
10196 shlibpath_var=LIBRARY_PATH
10199 bsdi[45]*)
10200 version_type=linux
10201 need_version=no
10202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10203 soname_spec='${libname}${release}${shared_ext}$major'
10204 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10205 shlibpath_var=LD_LIBRARY_PATH
10206 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10207 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10208 # the default ld.so.conf also contains /usr/contrib/lib and
10209 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10210 # libtool to hard-code these into programs
10213 cygwin* | mingw* | pw32* | cegcc*)
10214 version_type=windows
10215 shrext_cmds=".dll"
10216 need_version=no
10217 need_lib_prefix=no
10219 case $GCC,$host_os in
10220 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10221 library_names_spec='$libname.dll.a'
10222 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10223 postinstall_cmds='base_file=`basename \${file}`~
10224 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10225 dldir=$destdir/`dirname \$dlpath`~
10226 test -d \$dldir || mkdir -p \$dldir~
10227 $install_prog $dir/$dlname \$dldir/$dlname~
10228 chmod a+x \$dldir/$dlname~
10229 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10230 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10232 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10233 dlpath=$dir/\$dldll~
10234 $RM \$dlpath'
10235 shlibpath_overrides_runpath=yes
10237 case $host_os in
10238 cygwin*)
10239 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10240 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10242 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10244 mingw* | cegcc*)
10245 # MinGW DLLs use traditional 'lib' prefix
10246 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10248 pw32*)
10249 # pw32 DLLs use 'pw' prefix rather than 'lib'
10250 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10252 esac
10256 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10258 esac
10259 dynamic_linker='Win32 ld.exe'
10260 # FIXME: first we should search . and the directory the executable is in
10261 shlibpath_var=PATH
10264 darwin* | rhapsody*)
10265 dynamic_linker="$host_os dyld"
10266 version_type=darwin
10267 need_lib_prefix=no
10268 need_version=no
10269 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10270 soname_spec='${libname}${release}${major}$shared_ext'
10271 shlibpath_overrides_runpath=yes
10272 shlibpath_var=DYLD_LIBRARY_PATH
10273 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10275 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10276 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10279 dgux*)
10280 version_type=linux
10281 need_lib_prefix=no
10282 need_version=no
10283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10284 soname_spec='${libname}${release}${shared_ext}$major'
10285 shlibpath_var=LD_LIBRARY_PATH
10288 freebsd* | dragonfly*)
10289 # DragonFly does not have aout. When/if they implement a new
10290 # versioning mechanism, adjust this.
10291 if test -x /usr/bin/objformat; then
10292 objformat=`/usr/bin/objformat`
10293 else
10294 case $host_os in
10295 freebsd[23].*) objformat=aout ;;
10296 *) objformat=elf ;;
10297 esac
10299 version_type=freebsd-$objformat
10300 case $version_type in
10301 freebsd-elf*)
10302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10303 need_version=no
10304 need_lib_prefix=no
10306 freebsd-*)
10307 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10308 need_version=yes
10310 esac
10311 shlibpath_var=LD_LIBRARY_PATH
10312 case $host_os in
10313 freebsd2.*)
10314 shlibpath_overrides_runpath=yes
10316 freebsd3.[01]* | freebsdelf3.[01]*)
10317 shlibpath_overrides_runpath=yes
10318 hardcode_into_libs=yes
10320 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10321 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10322 shlibpath_overrides_runpath=no
10323 hardcode_into_libs=yes
10325 *) # from 4.6 on, and DragonFly
10326 shlibpath_overrides_runpath=yes
10327 hardcode_into_libs=yes
10329 esac
10332 gnu*)
10333 version_type=linux
10334 need_lib_prefix=no
10335 need_version=no
10336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10337 soname_spec='${libname}${release}${shared_ext}$major'
10338 shlibpath_var=LD_LIBRARY_PATH
10339 hardcode_into_libs=yes
10342 haiku*)
10343 version_type=linux
10344 need_lib_prefix=no
10345 need_version=no
10346 dynamic_linker="$host_os runtime_loader"
10347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10348 soname_spec='${libname}${release}${shared_ext}$major'
10349 shlibpath_var=LIBRARY_PATH
10350 shlibpath_overrides_runpath=yes
10351 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10352 hardcode_into_libs=yes
10355 hpux9* | hpux10* | hpux11*)
10356 # Give a soname corresponding to the major version so that dld.sl refuses to
10357 # link against other versions.
10358 version_type=sunos
10359 need_lib_prefix=no
10360 need_version=no
10361 case $host_cpu in
10362 ia64*)
10363 shrext_cmds='.so'
10364 hardcode_into_libs=yes
10365 dynamic_linker="$host_os dld.so"
10366 shlibpath_var=LD_LIBRARY_PATH
10367 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10369 soname_spec='${libname}${release}${shared_ext}$major'
10370 if test "X$HPUX_IA64_MODE" = X32; then
10371 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10372 else
10373 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10375 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10377 hppa*64*)
10378 shrext_cmds='.sl'
10379 hardcode_into_libs=yes
10380 dynamic_linker="$host_os dld.sl"
10381 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10382 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10384 soname_spec='${libname}${release}${shared_ext}$major'
10385 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10386 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10389 shrext_cmds='.sl'
10390 dynamic_linker="$host_os dld.sl"
10391 shlibpath_var=SHLIB_PATH
10392 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10394 soname_spec='${libname}${release}${shared_ext}$major'
10396 esac
10397 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10398 postinstall_cmds='chmod 555 $lib'
10399 # or fails outright, so override atomically:
10400 install_override_mode=555
10403 interix[3-9]*)
10404 version_type=linux
10405 need_lib_prefix=no
10406 need_version=no
10407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10408 soname_spec='${libname}${release}${shared_ext}$major'
10409 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10410 shlibpath_var=LD_LIBRARY_PATH
10411 shlibpath_overrides_runpath=no
10412 hardcode_into_libs=yes
10415 irix5* | irix6* | nonstopux*)
10416 case $host_os in
10417 nonstopux*) version_type=nonstopux ;;
10419 if test "$lt_cv_prog_gnu_ld" = yes; then
10420 version_type=linux
10421 else
10422 version_type=irix
10423 fi ;;
10424 esac
10425 need_lib_prefix=no
10426 need_version=no
10427 soname_spec='${libname}${release}${shared_ext}$major'
10428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10429 case $host_os in
10430 irix5* | nonstopux*)
10431 libsuff= shlibsuff=
10434 case $LD in # libtool.m4 will add one of these switches to LD
10435 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10436 libsuff= shlibsuff= libmagic=32-bit;;
10437 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10438 libsuff=32 shlibsuff=N32 libmagic=N32;;
10439 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10440 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10441 *) libsuff= shlibsuff= libmagic=never-match;;
10442 esac
10444 esac
10445 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10446 shlibpath_overrides_runpath=no
10447 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10448 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10449 hardcode_into_libs=yes
10452 # No shared lib support for Linux oldld, aout, or coff.
10453 linux*oldld* | linux*aout* | linux*coff*)
10454 dynamic_linker=no
10457 # This must be Linux ELF.
10458 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10459 version_type=linux
10460 need_lib_prefix=no
10461 need_version=no
10462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10463 soname_spec='${libname}${release}${shared_ext}$major'
10464 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10465 shlibpath_var=LD_LIBRARY_PATH
10466 shlibpath_overrides_runpath=no
10468 # Some binutils ld are patched to set DT_RUNPATH
10469 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10470 $as_echo_n "(cached) " >&6
10471 else
10472 lt_cv_shlibpath_overrides_runpath=no
10473 save_LDFLAGS=$LDFLAGS
10474 save_libdir=$libdir
10475 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10476 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10478 /* end confdefs.h. */
10481 main ()
10485 return 0;
10487 _ACEOF
10488 if ac_fn_c_try_link "$LINENO"; then :
10489 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10490 lt_cv_shlibpath_overrides_runpath=yes
10493 rm -f core conftest.err conftest.$ac_objext \
10494 conftest$ac_exeext conftest.$ac_ext
10495 LDFLAGS=$save_LDFLAGS
10496 libdir=$save_libdir
10500 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10502 # This implies no fast_install, which is unacceptable.
10503 # Some rework will be needed to allow for fast_install
10504 # before this can be enabled.
10505 hardcode_into_libs=yes
10507 # Append ld.so.conf contents to the search path
10508 if test -f /etc/ld.so.conf; then
10509 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' ' '`
10510 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10513 # We used to test for /lib/ld.so.1 and disable shared libraries on
10514 # powerpc, because MkLinux only supported shared libraries with the
10515 # GNU dynamic linker. Since this was broken with cross compilers,
10516 # most powerpc-linux boxes support dynamic linking these days and
10517 # people can always --disable-shared, the test was removed, and we
10518 # assume the GNU/Linux dynamic linker is in use.
10519 dynamic_linker='GNU/Linux ld.so'
10522 netbsd*)
10523 version_type=sunos
10524 need_lib_prefix=no
10525 need_version=no
10526 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10528 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10529 dynamic_linker='NetBSD (a.out) ld.so'
10530 else
10531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10532 soname_spec='${libname}${release}${shared_ext}$major'
10533 dynamic_linker='NetBSD ld.elf_so'
10535 shlibpath_var=LD_LIBRARY_PATH
10536 shlibpath_overrides_runpath=yes
10537 hardcode_into_libs=yes
10540 newsos6)
10541 version_type=linux
10542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10543 shlibpath_var=LD_LIBRARY_PATH
10544 shlibpath_overrides_runpath=yes
10547 *nto* | *qnx*)
10548 version_type=qnx
10549 need_lib_prefix=no
10550 need_version=no
10551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10552 soname_spec='${libname}${release}${shared_ext}$major'
10553 shlibpath_var=LD_LIBRARY_PATH
10554 shlibpath_overrides_runpath=no
10555 hardcode_into_libs=yes
10556 dynamic_linker='ldqnx.so'
10559 openbsd*)
10560 version_type=sunos
10561 sys_lib_dlsearch_path_spec="/usr/lib"
10562 need_lib_prefix=no
10563 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10564 case $host_os in
10565 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10566 *) need_version=no ;;
10567 esac
10568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10569 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10570 shlibpath_var=LD_LIBRARY_PATH
10571 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10572 case $host_os in
10573 openbsd2.[89] | openbsd2.[89].*)
10574 shlibpath_overrides_runpath=no
10577 shlibpath_overrides_runpath=yes
10579 esac
10580 else
10581 shlibpath_overrides_runpath=yes
10585 os2*)
10586 libname_spec='$name'
10587 shrext_cmds=".dll"
10588 need_lib_prefix=no
10589 library_names_spec='$libname${shared_ext} $libname.a'
10590 dynamic_linker='OS/2 ld.exe'
10591 shlibpath_var=LIBPATH
10594 osf3* | osf4* | osf5*)
10595 version_type=osf
10596 need_lib_prefix=no
10597 need_version=no
10598 soname_spec='${libname}${release}${shared_ext}$major'
10599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10600 shlibpath_var=LD_LIBRARY_PATH
10601 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10602 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10605 rdos*)
10606 dynamic_linker=no
10609 solaris*)
10610 version_type=linux
10611 need_lib_prefix=no
10612 need_version=no
10613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10614 soname_spec='${libname}${release}${shared_ext}$major'
10615 shlibpath_var=LD_LIBRARY_PATH
10616 shlibpath_overrides_runpath=yes
10617 hardcode_into_libs=yes
10618 # ldd complains unless libraries are executable
10619 postinstall_cmds='chmod +x $lib'
10622 sunos4*)
10623 version_type=sunos
10624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10625 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10626 shlibpath_var=LD_LIBRARY_PATH
10627 shlibpath_overrides_runpath=yes
10628 if test "$with_gnu_ld" = yes; then
10629 need_lib_prefix=no
10631 need_version=yes
10634 sysv4 | sysv4.3*)
10635 version_type=linux
10636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10637 soname_spec='${libname}${release}${shared_ext}$major'
10638 shlibpath_var=LD_LIBRARY_PATH
10639 case $host_vendor in
10640 sni)
10641 shlibpath_overrides_runpath=no
10642 need_lib_prefix=no
10643 runpath_var=LD_RUN_PATH
10645 siemens)
10646 need_lib_prefix=no
10648 motorola)
10649 need_lib_prefix=no
10650 need_version=no
10651 shlibpath_overrides_runpath=no
10652 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10654 esac
10657 sysv4*MP*)
10658 if test -d /usr/nec ;then
10659 version_type=linux
10660 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10661 soname_spec='$libname${shared_ext}.$major'
10662 shlibpath_var=LD_LIBRARY_PATH
10666 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10667 version_type=freebsd-elf
10668 need_lib_prefix=no
10669 need_version=no
10670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10671 soname_spec='${libname}${release}${shared_ext}$major'
10672 shlibpath_var=LD_LIBRARY_PATH
10673 shlibpath_overrides_runpath=yes
10674 hardcode_into_libs=yes
10675 if test "$with_gnu_ld" = yes; then
10676 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10677 else
10678 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10679 case $host_os in
10680 sco3.2v5*)
10681 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10683 esac
10685 sys_lib_dlsearch_path_spec='/usr/lib'
10688 tpf*)
10689 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10690 version_type=linux
10691 need_lib_prefix=no
10692 need_version=no
10693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10694 shlibpath_var=LD_LIBRARY_PATH
10695 shlibpath_overrides_runpath=no
10696 hardcode_into_libs=yes
10699 uts4*)
10700 version_type=linux
10701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10702 soname_spec='${libname}${release}${shared_ext}$major'
10703 shlibpath_var=LD_LIBRARY_PATH
10707 dynamic_linker=no
10709 esac
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10711 $as_echo "$dynamic_linker" >&6; }
10712 test "$dynamic_linker" = no && can_build_shared=no
10714 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10715 if test "$GCC" = yes; then
10716 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10719 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10720 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10722 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10723 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10818 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10819 hardcode_action=
10820 if test -n "$hardcode_libdir_flag_spec" ||
10821 test -n "$runpath_var" ||
10822 test "X$hardcode_automatic" = "Xyes" ; then
10824 # We can hardcode non-existent directories.
10825 if test "$hardcode_direct" != no &&
10826 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10827 # have to relink, otherwise we might link with an installed library
10828 # when we should be linking with a yet-to-be-installed one
10829 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10830 test "$hardcode_minus_L" != no; then
10831 # Linking always hardcodes the temporary library directory.
10832 hardcode_action=relink
10833 else
10834 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10835 hardcode_action=immediate
10837 else
10838 # We cannot hardcode anything, or else we can only hardcode existing
10839 # directories.
10840 hardcode_action=unsupported
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10843 $as_echo "$hardcode_action" >&6; }
10845 if test "$hardcode_action" = relink ||
10846 test "$inherit_rpath" = yes; then
10847 # Fast installation is not supported
10848 enable_fast_install=no
10849 elif test "$shlibpath_overrides_runpath" = yes ||
10850 test "$enable_shared" = no; then
10851 # Fast installation is not necessary
10852 enable_fast_install=needless
10860 if test "x$enable_dlopen" != xyes; then
10861 enable_dlopen=unknown
10862 enable_dlopen_self=unknown
10863 enable_dlopen_self_static=unknown
10864 else
10865 lt_cv_dlopen=no
10866 lt_cv_dlopen_libs=
10868 case $host_os in
10869 beos*)
10870 lt_cv_dlopen="load_add_on"
10871 lt_cv_dlopen_libs=
10872 lt_cv_dlopen_self=yes
10875 mingw* | pw32* | cegcc*)
10876 lt_cv_dlopen="LoadLibrary"
10877 lt_cv_dlopen_libs=
10880 cygwin*)
10881 lt_cv_dlopen="dlopen"
10882 lt_cv_dlopen_libs=
10885 darwin*)
10886 # if libdl is installed we need to link against it
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10888 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10889 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10890 $as_echo_n "(cached) " >&6
10891 else
10892 ac_check_lib_save_LIBS=$LIBS
10893 LIBS="-ldl $LIBS"
10894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10895 /* end confdefs.h. */
10897 /* Override any GCC internal prototype to avoid an error.
10898 Use char because int might match the return type of a GCC
10899 builtin and then its argument prototype would still apply. */
10900 #ifdef __cplusplus
10901 extern "C"
10902 #endif
10903 char dlopen ();
10905 main ()
10907 return dlopen ();
10909 return 0;
10911 _ACEOF
10912 if ac_fn_c_try_link "$LINENO"; then :
10913 ac_cv_lib_dl_dlopen=yes
10914 else
10915 ac_cv_lib_dl_dlopen=no
10917 rm -f core conftest.err conftest.$ac_objext \
10918 conftest$ac_exeext conftest.$ac_ext
10919 LIBS=$ac_check_lib_save_LIBS
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10922 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10923 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10924 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10925 else
10927 lt_cv_dlopen="dyld"
10928 lt_cv_dlopen_libs=
10929 lt_cv_dlopen_self=yes
10936 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10937 if test "x$ac_cv_func_shl_load" = x""yes; then :
10938 lt_cv_dlopen="shl_load"
10939 else
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10941 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10942 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10943 $as_echo_n "(cached) " >&6
10944 else
10945 ac_check_lib_save_LIBS=$LIBS
10946 LIBS="-ldld $LIBS"
10947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10948 /* end confdefs.h. */
10950 /* Override any GCC internal prototype to avoid an error.
10951 Use char because int might match the return type of a GCC
10952 builtin and then its argument prototype would still apply. */
10953 #ifdef __cplusplus
10954 extern "C"
10955 #endif
10956 char shl_load ();
10958 main ()
10960 return shl_load ();
10962 return 0;
10964 _ACEOF
10965 if ac_fn_c_try_link "$LINENO"; then :
10966 ac_cv_lib_dld_shl_load=yes
10967 else
10968 ac_cv_lib_dld_shl_load=no
10970 rm -f core conftest.err conftest.$ac_objext \
10971 conftest$ac_exeext conftest.$ac_ext
10972 LIBS=$ac_check_lib_save_LIBS
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10975 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10976 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10977 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10978 else
10979 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10980 if test "x$ac_cv_func_dlopen" = x""yes; then :
10981 lt_cv_dlopen="dlopen"
10982 else
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10984 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10985 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10986 $as_echo_n "(cached) " >&6
10987 else
10988 ac_check_lib_save_LIBS=$LIBS
10989 LIBS="-ldl $LIBS"
10990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10991 /* end confdefs.h. */
10993 /* Override any GCC internal prototype to avoid an error.
10994 Use char because int might match the return type of a GCC
10995 builtin and then its argument prototype would still apply. */
10996 #ifdef __cplusplus
10997 extern "C"
10998 #endif
10999 char dlopen ();
11001 main ()
11003 return dlopen ();
11005 return 0;
11007 _ACEOF
11008 if ac_fn_c_try_link "$LINENO"; then :
11009 ac_cv_lib_dl_dlopen=yes
11010 else
11011 ac_cv_lib_dl_dlopen=no
11013 rm -f core conftest.err conftest.$ac_objext \
11014 conftest$ac_exeext conftest.$ac_ext
11015 LIBS=$ac_check_lib_save_LIBS
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11018 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11019 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11020 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11021 else
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11023 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11024 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11025 $as_echo_n "(cached) " >&6
11026 else
11027 ac_check_lib_save_LIBS=$LIBS
11028 LIBS="-lsvld $LIBS"
11029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11030 /* end confdefs.h. */
11032 /* Override any GCC internal prototype to avoid an error.
11033 Use char because int might match the return type of a GCC
11034 builtin and then its argument prototype would still apply. */
11035 #ifdef __cplusplus
11036 extern "C"
11037 #endif
11038 char dlopen ();
11040 main ()
11042 return dlopen ();
11044 return 0;
11046 _ACEOF
11047 if ac_fn_c_try_link "$LINENO"; then :
11048 ac_cv_lib_svld_dlopen=yes
11049 else
11050 ac_cv_lib_svld_dlopen=no
11052 rm -f core conftest.err conftest.$ac_objext \
11053 conftest$ac_exeext conftest.$ac_ext
11054 LIBS=$ac_check_lib_save_LIBS
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11057 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11058 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11059 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11060 else
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11062 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11063 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11064 $as_echo_n "(cached) " >&6
11065 else
11066 ac_check_lib_save_LIBS=$LIBS
11067 LIBS="-ldld $LIBS"
11068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11069 /* end confdefs.h. */
11071 /* Override any GCC internal prototype to avoid an error.
11072 Use char because int might match the return type of a GCC
11073 builtin and then its argument prototype would still apply. */
11074 #ifdef __cplusplus
11075 extern "C"
11076 #endif
11077 char dld_link ();
11079 main ()
11081 return dld_link ();
11083 return 0;
11085 _ACEOF
11086 if ac_fn_c_try_link "$LINENO"; then :
11087 ac_cv_lib_dld_dld_link=yes
11088 else
11089 ac_cv_lib_dld_dld_link=no
11091 rm -f core conftest.err conftest.$ac_objext \
11092 conftest$ac_exeext conftest.$ac_ext
11093 LIBS=$ac_check_lib_save_LIBS
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11096 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11097 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11098 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11117 esac
11119 if test "x$lt_cv_dlopen" != xno; then
11120 enable_dlopen=yes
11121 else
11122 enable_dlopen=no
11125 case $lt_cv_dlopen in
11126 dlopen)
11127 save_CPPFLAGS="$CPPFLAGS"
11128 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11130 save_LDFLAGS="$LDFLAGS"
11131 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11133 save_LIBS="$LIBS"
11134 LIBS="$lt_cv_dlopen_libs $LIBS"
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11137 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11138 if test "${lt_cv_dlopen_self+set}" = set; then :
11139 $as_echo_n "(cached) " >&6
11140 else
11141 if test "$cross_compiling" = yes; then :
11142 lt_cv_dlopen_self=cross
11143 else
11144 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11145 lt_status=$lt_dlunknown
11146 cat > conftest.$ac_ext <<_LT_EOF
11147 #line 11147 "configure"
11148 #include "confdefs.h"
11150 #if HAVE_DLFCN_H
11151 #include <dlfcn.h>
11152 #endif
11154 #include <stdio.h>
11156 #ifdef RTLD_GLOBAL
11157 # define LT_DLGLOBAL RTLD_GLOBAL
11158 #else
11159 # ifdef DL_GLOBAL
11160 # define LT_DLGLOBAL DL_GLOBAL
11161 # else
11162 # define LT_DLGLOBAL 0
11163 # endif
11164 #endif
11166 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11167 find out it does not work in some platform. */
11168 #ifndef LT_DLLAZY_OR_NOW
11169 # ifdef RTLD_LAZY
11170 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11171 # else
11172 # ifdef DL_LAZY
11173 # define LT_DLLAZY_OR_NOW DL_LAZY
11174 # else
11175 # ifdef RTLD_NOW
11176 # define LT_DLLAZY_OR_NOW RTLD_NOW
11177 # else
11178 # ifdef DL_NOW
11179 # define LT_DLLAZY_OR_NOW DL_NOW
11180 # else
11181 # define LT_DLLAZY_OR_NOW 0
11182 # endif
11183 # endif
11184 # endif
11185 # endif
11186 #endif
11188 /* When -fvisbility=hidden is used, assume the code has been annotated
11189 correspondingly for the symbols needed. */
11190 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11191 void fnord () __attribute__((visibility("default")));
11192 #endif
11194 void fnord () { int i=42; }
11195 int main ()
11197 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11198 int status = $lt_dlunknown;
11200 if (self)
11202 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11203 else
11205 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11206 else puts (dlerror ());
11208 /* dlclose (self); */
11210 else
11211 puts (dlerror ());
11213 return status;
11215 _LT_EOF
11216 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11217 (eval $ac_link) 2>&5
11218 ac_status=$?
11219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11220 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11221 (./conftest; exit; ) >&5 2>/dev/null
11222 lt_status=$?
11223 case x$lt_status in
11224 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11225 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11226 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11227 esac
11228 else :
11229 # compilation failed
11230 lt_cv_dlopen_self=no
11233 rm -fr conftest*
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11238 $as_echo "$lt_cv_dlopen_self" >&6; }
11240 if test "x$lt_cv_dlopen_self" = xyes; then
11241 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11243 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11244 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11245 $as_echo_n "(cached) " >&6
11246 else
11247 if test "$cross_compiling" = yes; then :
11248 lt_cv_dlopen_self_static=cross
11249 else
11250 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11251 lt_status=$lt_dlunknown
11252 cat > conftest.$ac_ext <<_LT_EOF
11253 #line 11253 "configure"
11254 #include "confdefs.h"
11256 #if HAVE_DLFCN_H
11257 #include <dlfcn.h>
11258 #endif
11260 #include <stdio.h>
11262 #ifdef RTLD_GLOBAL
11263 # define LT_DLGLOBAL RTLD_GLOBAL
11264 #else
11265 # ifdef DL_GLOBAL
11266 # define LT_DLGLOBAL DL_GLOBAL
11267 # else
11268 # define LT_DLGLOBAL 0
11269 # endif
11270 #endif
11272 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11273 find out it does not work in some platform. */
11274 #ifndef LT_DLLAZY_OR_NOW
11275 # ifdef RTLD_LAZY
11276 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11277 # else
11278 # ifdef DL_LAZY
11279 # define LT_DLLAZY_OR_NOW DL_LAZY
11280 # else
11281 # ifdef RTLD_NOW
11282 # define LT_DLLAZY_OR_NOW RTLD_NOW
11283 # else
11284 # ifdef DL_NOW
11285 # define LT_DLLAZY_OR_NOW DL_NOW
11286 # else
11287 # define LT_DLLAZY_OR_NOW 0
11288 # endif
11289 # endif
11290 # endif
11291 # endif
11292 #endif
11294 /* When -fvisbility=hidden is used, assume the code has been annotated
11295 correspondingly for the symbols needed. */
11296 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11297 void fnord () __attribute__((visibility("default")));
11298 #endif
11300 void fnord () { int i=42; }
11301 int main ()
11303 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11304 int status = $lt_dlunknown;
11306 if (self)
11308 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11309 else
11311 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11312 else puts (dlerror ());
11314 /* dlclose (self); */
11316 else
11317 puts (dlerror ());
11319 return status;
11321 _LT_EOF
11322 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11323 (eval $ac_link) 2>&5
11324 ac_status=$?
11325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11326 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11327 (./conftest; exit; ) >&5 2>/dev/null
11328 lt_status=$?
11329 case x$lt_status in
11330 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11331 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11332 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11333 esac
11334 else :
11335 # compilation failed
11336 lt_cv_dlopen_self_static=no
11339 rm -fr conftest*
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11344 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11347 CPPFLAGS="$save_CPPFLAGS"
11348 LDFLAGS="$save_LDFLAGS"
11349 LIBS="$save_LIBS"
11351 esac
11353 case $lt_cv_dlopen_self in
11354 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11355 *) enable_dlopen_self=unknown ;;
11356 esac
11358 case $lt_cv_dlopen_self_static in
11359 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11360 *) enable_dlopen_self_static=unknown ;;
11361 esac
11380 striplib=
11381 old_striplib=
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11383 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11384 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11385 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11386 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11388 $as_echo "yes" >&6; }
11389 else
11390 # FIXME - insert some real tests, host_os isn't really good enough
11391 case $host_os in
11392 darwin*)
11393 if test -n "$STRIP" ; then
11394 striplib="$STRIP -x"
11395 old_striplib="$STRIP -S"
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11397 $as_echo "yes" >&6; }
11398 else
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11400 $as_echo "no" >&6; }
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11405 $as_echo "no" >&6; }
11407 esac
11421 # Report which library types will actually be built
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11423 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11425 $as_echo "$can_build_shared" >&6; }
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11428 $as_echo_n "checking whether to build shared libraries... " >&6; }
11429 test "$can_build_shared" = "no" && enable_shared=no
11431 # On AIX, shared libraries and static libraries use the same namespace, and
11432 # are all built from PIC.
11433 case $host_os in
11434 aix3*)
11435 test "$enable_shared" = yes && enable_static=no
11436 if test -n "$RANLIB"; then
11437 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11438 postinstall_cmds='$RANLIB $lib'
11442 aix[4-9]*)
11443 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11444 test "$enable_shared" = yes && enable_static=no
11447 esac
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11449 $as_echo "$enable_shared" >&6; }
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11452 $as_echo_n "checking whether to build static libraries... " >&6; }
11453 # Make sure either enable_shared or enable_static is yes.
11454 test "$enable_shared" = yes || enable_static=yes
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11456 $as_echo "$enable_static" >&6; }
11462 ac_ext=c
11463 ac_cpp='$CPP $CPPFLAGS'
11464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11468 CC="$lt_save_CC"
11482 ac_config_commands="$ac_config_commands libtool"
11487 # Only expand once:
11493 case $host in
11494 *-cygwin* | *-mingw*)
11495 # 'host' will be top-level target in the case of a target lib,
11496 # we must compare to with_cross_host to decide if this is a native
11497 # or cross-compiler and select where to install dlls appropriately.
11498 if test -n "$with_cross_host" &&
11499 test x"$with_cross_host" != x"no"; then
11500 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
11501 else
11502 lt_host_flags='-no-undefined -bindir "$(bindir)"';
11506 lt_host_flags=
11508 esac
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11517 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11518 # Check whether --enable-maintainer-mode was given.
11519 if test "${enable_maintainer_mode+set}" = set; then :
11520 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11521 else
11522 USE_MAINTAINER_MODE=no
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11526 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11527 if test $USE_MAINTAINER_MODE = yes; then
11528 MAINTAINER_MODE_TRUE=
11529 MAINTAINER_MODE_FALSE='#'
11530 else
11531 MAINTAINER_MODE_TRUE='#'
11532 MAINTAINER_MODE_FALSE=
11535 MAINT=$MAINTAINER_MODE_TRUE
11539 # Create a spec file, so that compile/link tests don't fail
11540 test -f libgfortran.spec || touch libgfortran.spec
11541 FCFLAGS="$FCFLAGS -L."
11543 # We need gfortran to compile parts of the library
11544 # We can't use AC_PROG_FC because it expects a fully working gfortran.
11545 #AC_PROG_FC(gfortran)
11546 case `echo $GFORTRAN` in
11547 -* | no* )
11548 FC=no ;;
11550 set dummy $GFORTRAN; ac_word=$2
11551 if test -x "$ac_word"; then
11552 FC="$GFORTRAN"
11553 else
11554 FC=no
11555 fi ;;
11556 esac
11557 ac_ext=${ac_fc_srcext-f}
11558 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11559 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11560 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11561 if test -n "$ac_tool_prefix"; then
11562 for ac_prog in gfortran
11564 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11565 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11567 $as_echo_n "checking for $ac_word... " >&6; }
11568 if test "${ac_cv_prog_FC+set}" = set; then :
11569 $as_echo_n "(cached) " >&6
11570 else
11571 if test -n "$FC"; then
11572 ac_cv_prog_FC="$FC" # Let the user override the test.
11573 else
11574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11575 for as_dir in $PATH
11577 IFS=$as_save_IFS
11578 test -z "$as_dir" && as_dir=.
11579 for ac_exec_ext in '' $ac_executable_extensions; do
11580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11581 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
11582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11583 break 2
11585 done
11586 done
11587 IFS=$as_save_IFS
11591 FC=$ac_cv_prog_FC
11592 if test -n "$FC"; then
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
11594 $as_echo "$FC" >&6; }
11595 else
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11597 $as_echo "no" >&6; }
11601 test -n "$FC" && break
11602 done
11604 if test -z "$FC"; then
11605 ac_ct_FC=$FC
11606 for ac_prog in gfortran
11608 # Extract the first word of "$ac_prog", so it can be a program name with args.
11609 set dummy $ac_prog; ac_word=$2
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11611 $as_echo_n "checking for $ac_word... " >&6; }
11612 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
11613 $as_echo_n "(cached) " >&6
11614 else
11615 if test -n "$ac_ct_FC"; then
11616 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
11617 else
11618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11619 for as_dir in $PATH
11621 IFS=$as_save_IFS
11622 test -z "$as_dir" && as_dir=.
11623 for ac_exec_ext in '' $ac_executable_extensions; do
11624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11625 ac_cv_prog_ac_ct_FC="$ac_prog"
11626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11627 break 2
11629 done
11630 done
11631 IFS=$as_save_IFS
11635 ac_ct_FC=$ac_cv_prog_ac_ct_FC
11636 if test -n "$ac_ct_FC"; then
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
11638 $as_echo "$ac_ct_FC" >&6; }
11639 else
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11641 $as_echo "no" >&6; }
11645 test -n "$ac_ct_FC" && break
11646 done
11648 if test "x$ac_ct_FC" = x; then
11649 FC=""
11650 else
11651 case $cross_compiling:$ac_tool_warned in
11652 yes:)
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11654 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11655 ac_tool_warned=yes ;;
11656 esac
11657 FC=$ac_ct_FC
11662 # Provide some information about the compiler.
11663 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
11664 set X $ac_compile
11665 ac_compiler=$2
11666 for ac_option in --version -v -V -qversion; do
11667 { { ac_try="$ac_compiler $ac_option >&5"
11668 case "(($ac_try" in
11669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11670 *) ac_try_echo=$ac_try;;
11671 esac
11672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11673 $as_echo "$ac_try_echo"; } >&5
11674 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11675 ac_status=$?
11676 if test -s conftest.err; then
11677 sed '10a\
11678 ... rest of stderr output deleted ...
11679 10q' conftest.err >conftest.er1
11680 cat conftest.er1 >&5
11681 rm -f conftest.er1 conftest.err
11683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11684 test $ac_status = 0; }
11685 done
11686 rm -f a.out
11688 # If we don't use `.F' as extension, the preprocessor is not run on the
11689 # input file. (Note that this only needs to work for GNU compilers.)
11690 ac_save_ext=$ac_ext
11691 ac_ext=F
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
11693 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
11694 if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
11695 $as_echo_n "(cached) " >&6
11696 else
11697 cat > conftest.$ac_ext <<_ACEOF
11698 program main
11699 #ifndef __GNUC__
11700 choke me
11701 #endif
11704 _ACEOF
11705 if ac_fn_fc_try_compile "$LINENO"; then :
11706 ac_compiler_gnu=yes
11707 else
11708 ac_compiler_gnu=no
11710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11711 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
11715 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
11716 ac_ext=$ac_save_ext
11717 ac_test_FCFLAGS=${FCFLAGS+set}
11718 ac_save_FCFLAGS=$FCFLAGS
11719 FCFLAGS=
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
11721 $as_echo_n "checking whether $FC accepts -g... " >&6; }
11722 if test "${ac_cv_prog_fc_g+set}" = set; then :
11723 $as_echo_n "(cached) " >&6
11724 else
11725 FCFLAGS=-g
11726 cat > conftest.$ac_ext <<_ACEOF
11727 program main
11730 _ACEOF
11731 if ac_fn_fc_try_compile "$LINENO"; then :
11732 ac_cv_prog_fc_g=yes
11733 else
11734 ac_cv_prog_fc_g=no
11736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
11740 $as_echo "$ac_cv_prog_fc_g" >&6; }
11741 if test "$ac_test_FCFLAGS" = set; then
11742 FCFLAGS=$ac_save_FCFLAGS
11743 elif test $ac_cv_prog_fc_g = yes; then
11744 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11745 FCFLAGS="-g -O2"
11746 else
11747 FCFLAGS="-g"
11749 else
11750 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11751 FCFLAGS="-O2"
11752 else
11753 FCFLAGS=
11757 ac_ext=c
11758 ac_cpp='$CPP $CPPFLAGS'
11759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11763 ac_ext=${ac_fc_srcext-f}
11764 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11765 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11766 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11769 if test -z "$FC" || test "X$FC" = "Xno"; then
11770 _lt_disable_FC=yes
11773 archive_cmds_need_lc_FC=no
11774 allow_undefined_flag_FC=
11775 always_export_symbols_FC=no
11776 archive_expsym_cmds_FC=
11777 export_dynamic_flag_spec_FC=
11778 hardcode_direct_FC=no
11779 hardcode_direct_absolute_FC=no
11780 hardcode_libdir_flag_spec_FC=
11781 hardcode_libdir_flag_spec_ld_FC=
11782 hardcode_libdir_separator_FC=
11783 hardcode_minus_L_FC=no
11784 hardcode_automatic_FC=no
11785 inherit_rpath_FC=no
11786 module_cmds_FC=
11787 module_expsym_cmds_FC=
11788 link_all_deplibs_FC=unknown
11789 old_archive_cmds_FC=$old_archive_cmds
11790 reload_flag_FC=$reload_flag
11791 reload_cmds_FC=$reload_cmds
11792 no_undefined_flag_FC=
11793 whole_archive_flag_spec_FC=
11794 enable_shared_with_static_runtimes_FC=no
11796 # Source file extension for fc test sources.
11797 ac_ext=${ac_fc_srcext-f}
11799 # Object file extension for compiled fc test sources.
11800 objext=o
11801 objext_FC=$objext
11803 # No sense in running all these tests if we already determined that
11804 # the FC compiler isn't working. Some variables (like enable_shared)
11805 # are currently assumed to apply to all compilers on this platform,
11806 # and will be corrupted by setting them based on a non-working compiler.
11807 if test "$_lt_disable_FC" != yes; then
11808 # Code to be used in simple compile tests
11809 lt_simple_compile_test_code="\
11810 subroutine t
11811 return
11815 # Code to be used in simple link tests
11816 lt_simple_link_test_code="\
11817 program t
11821 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11828 # If no C compiler was specified, use CC.
11829 LTCC=${LTCC-"$CC"}
11831 # If no C compiler flags were specified, use CFLAGS.
11832 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11834 # Allow CC to be a program name with arguments.
11835 compiler=$CC
11838 # save warnings/boilerplate of simple test code
11839 ac_outfile=conftest.$ac_objext
11840 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11841 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11842 _lt_compiler_boilerplate=`cat conftest.err`
11843 $RM conftest*
11845 ac_outfile=conftest.$ac_objext
11846 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11847 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11848 _lt_linker_boilerplate=`cat conftest.err`
11849 $RM -r conftest*
11852 # Allow CC to be a program name with arguments.
11853 lt_save_CC="$CC"
11854 lt_save_GCC=$GCC
11855 CC=${FC-"f95"}
11856 compiler=$CC
11857 GCC=$ac_cv_fc_compiler_gnu
11859 compiler_FC=$CC
11860 for cc_temp in $compiler""; do
11861 case $cc_temp in
11862 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11863 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11864 \-*) ;;
11865 *) break;;
11866 esac
11867 done
11868 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11871 if test -n "$compiler"; then
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11873 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11875 $as_echo "$can_build_shared" >&6; }
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11878 $as_echo_n "checking whether to build shared libraries... " >&6; }
11879 test "$can_build_shared" = "no" && enable_shared=no
11881 # On AIX, shared libraries and static libraries use the same namespace, and
11882 # are all built from PIC.
11883 case $host_os in
11884 aix3*)
11885 test "$enable_shared" = yes && enable_static=no
11886 if test -n "$RANLIB"; then
11887 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11888 postinstall_cmds='$RANLIB $lib'
11891 aix[4-9]*)
11892 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11893 test "$enable_shared" = yes && enable_static=no
11896 esac
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11898 $as_echo "$enable_shared" >&6; }
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11901 $as_echo_n "checking whether to build static libraries... " >&6; }
11902 # Make sure either enable_shared or enable_static is yes.
11903 test "$enable_shared" = yes || enable_static=yes
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11905 $as_echo "$enable_static" >&6; }
11907 GCC_FC="$ac_cv_fc_compiler_gnu"
11908 LD_FC="$LD"
11910 ## CAVEAT EMPTOR:
11911 ## There is no encapsulation within the following macros, do not change
11912 ## the running order or otherwise move them around unless you know exactly
11913 ## what you are doing...
11914 # Dependencies to place before and after the object being linked:
11915 predep_objects_FC=
11916 postdep_objects_FC=
11917 predeps_FC=
11918 postdeps_FC=
11919 compiler_lib_search_path_FC=
11921 cat > conftest.$ac_ext <<_LT_EOF
11922 subroutine foo
11923 implicit none
11924 integer a
11926 return
11928 _LT_EOF
11930 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11931 (eval $ac_compile) 2>&5
11932 ac_status=$?
11933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11934 test $ac_status = 0; }; then
11935 # Parse the compiler output and extract the necessary
11936 # objects, libraries and library flags.
11938 # Sentinel used to keep track of whether or not we are before
11939 # the conftest object file.
11940 pre_test_object_deps_done=no
11942 for p in `eval "$output_verbose_link_cmd"`; do
11943 case $p in
11945 -L* | -R* | -l*)
11946 # Some compilers place space between "-{L,R}" and the path.
11947 # Remove the space.
11948 if test $p = "-L" ||
11949 test $p = "-R"; then
11950 prev=$p
11951 continue
11952 else
11953 prev=
11956 if test "$pre_test_object_deps_done" = no; then
11957 case $p in
11958 -L* | -R*)
11959 # Internal compiler library paths should come after those
11960 # provided the user. The postdeps already come after the
11961 # user supplied libs so there is no need to process them.
11962 if test -z "$compiler_lib_search_path_FC"; then
11963 compiler_lib_search_path_FC="${prev}${p}"
11964 else
11965 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
11968 # The "-l" case would never come before the object being
11969 # linked, so don't bother handling this case.
11970 esac
11971 else
11972 if test -z "$postdeps_FC"; then
11973 postdeps_FC="${prev}${p}"
11974 else
11975 postdeps_FC="${postdeps_FC} ${prev}${p}"
11980 *.$objext)
11981 # This assumes that the test object file only shows up
11982 # once in the compiler output.
11983 if test "$p" = "conftest.$objext"; then
11984 pre_test_object_deps_done=yes
11985 continue
11988 if test "$pre_test_object_deps_done" = no; then
11989 if test -z "$predep_objects_FC"; then
11990 predep_objects_FC="$p"
11991 else
11992 predep_objects_FC="$predep_objects_FC $p"
11994 else
11995 if test -z "$postdep_objects_FC"; then
11996 postdep_objects_FC="$p"
11997 else
11998 postdep_objects_FC="$postdep_objects_FC $p"
12003 *) ;; # Ignore the rest.
12005 esac
12006 done
12008 # Clean up.
12009 rm -f a.out a.exe
12010 else
12011 echo "libtool.m4: error: problem compiling FC test program"
12014 $RM -f confest.$objext
12016 # PORTME: override above test on systems where it is broken
12019 case " $postdeps_FC " in
12020 *" -lc "*) archive_cmds_need_lc_FC=no ;;
12021 esac
12022 compiler_lib_search_dirs_FC=
12023 if test -n "${compiler_lib_search_path_FC}"; then
12024 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12057 lt_prog_compiler_wl_FC=
12058 lt_prog_compiler_pic_FC=
12059 lt_prog_compiler_static_FC=
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12062 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12064 if test "$GCC" = yes; then
12065 lt_prog_compiler_wl_FC='-Wl,'
12066 lt_prog_compiler_static_FC='-static'
12068 case $host_os in
12069 aix*)
12070 # All AIX code is PIC.
12071 if test "$host_cpu" = ia64; then
12072 # AIX 5 now supports IA64 processor
12073 lt_prog_compiler_static_FC='-Bstatic'
12075 lt_prog_compiler_pic_FC='-fPIC'
12078 amigaos*)
12079 case $host_cpu in
12080 powerpc)
12081 # see comment about AmigaOS4 .so support
12082 lt_prog_compiler_pic_FC='-fPIC'
12084 m68k)
12085 # FIXME: we need at least 68020 code to build shared libraries, but
12086 # adding the `-m68020' flag to GCC prevents building anything better,
12087 # like `-m68040'.
12088 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
12090 esac
12093 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12094 # PIC is the default for these OSes.
12097 mingw* | cygwin* | pw32* | os2* | cegcc*)
12098 # This hack is so that the source file can tell whether it is being
12099 # built for inclusion in a dll (and should export symbols for example).
12100 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12101 # (--disable-auto-import) libraries
12102 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12105 darwin* | rhapsody*)
12106 # PIC is the default on this platform
12107 # Common symbols not allowed in MH_DYLIB files
12108 lt_prog_compiler_pic_FC='-fno-common'
12111 haiku*)
12112 # PIC is the default for Haiku.
12113 # The "-static" flag exists, but is broken.
12114 lt_prog_compiler_static_FC=
12117 hpux*)
12118 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12119 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12120 # sets the default TLS model and affects inlining.
12121 case $host_cpu in
12122 hppa*64*)
12123 # +Z the default
12126 lt_prog_compiler_pic_FC='-fPIC'
12128 esac
12131 interix[3-9]*)
12132 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12133 # Instead, we relocate shared libraries at runtime.
12136 msdosdjgpp*)
12137 # Just because we use GCC doesn't mean we suddenly get shared libraries
12138 # on systems that don't support them.
12139 lt_prog_compiler_can_build_shared_FC=no
12140 enable_shared=no
12143 *nto* | *qnx*)
12144 # QNX uses GNU C++, but need to define -shared option too, otherwise
12145 # it will coredump.
12146 lt_prog_compiler_pic_FC='-fPIC -shared'
12149 sysv4*MP*)
12150 if test -d /usr/nec; then
12151 lt_prog_compiler_pic_FC=-Kconform_pic
12156 lt_prog_compiler_pic_FC='-fPIC'
12158 esac
12160 case $cc_basename in
12161 nvcc*) # Cuda Compiler Driver 2.2
12162 lt_prog_compiler_wl_FC='-Xlinker '
12163 lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
12165 esac
12166 else
12167 # PORTME Check for flag to pass linker flags through the system compiler.
12168 case $host_os in
12169 aix*)
12170 lt_prog_compiler_wl_FC='-Wl,'
12171 if test "$host_cpu" = ia64; then
12172 # AIX 5 now supports IA64 processor
12173 lt_prog_compiler_static_FC='-Bstatic'
12174 else
12175 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
12179 mingw* | cygwin* | pw32* | os2* | cegcc*)
12180 # This hack is so that the source file can tell whether it is being
12181 # built for inclusion in a dll (and should export symbols for example).
12182 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12185 hpux9* | hpux10* | hpux11*)
12186 lt_prog_compiler_wl_FC='-Wl,'
12187 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12188 # not for PA HP-UX.
12189 case $host_cpu in
12190 hppa*64*|ia64*)
12191 # +Z the default
12194 lt_prog_compiler_pic_FC='+Z'
12196 esac
12197 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12198 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
12201 irix5* | irix6* | nonstopux*)
12202 lt_prog_compiler_wl_FC='-Wl,'
12203 # PIC (with -KPIC) is the default.
12204 lt_prog_compiler_static_FC='-non_shared'
12207 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12208 case $cc_basename in
12209 # old Intel for x86_64 which still supported -KPIC.
12210 ecc*)
12211 lt_prog_compiler_wl_FC='-Wl,'
12212 lt_prog_compiler_pic_FC='-KPIC'
12213 lt_prog_compiler_static_FC='-static'
12215 # icc used to be incompatible with GCC.
12216 # ICC 10 doesn't accept -KPIC any more.
12217 icc* | ifort*)
12218 lt_prog_compiler_wl_FC='-Wl,'
12219 lt_prog_compiler_pic_FC='-fPIC'
12220 lt_prog_compiler_static_FC='-static'
12222 # Lahey Fortran 8.1.
12223 lf95*)
12224 lt_prog_compiler_wl_FC='-Wl,'
12225 lt_prog_compiler_pic_FC='--shared'
12226 lt_prog_compiler_static_FC='--static'
12228 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12229 # Portland Group compilers (*not* the Pentium gcc compiler,
12230 # which looks to be a dead project)
12231 lt_prog_compiler_wl_FC='-Wl,'
12232 lt_prog_compiler_pic_FC='-fpic'
12233 lt_prog_compiler_static_FC='-Bstatic'
12235 ccc*)
12236 lt_prog_compiler_wl_FC='-Wl,'
12237 # All Alpha code is PIC.
12238 lt_prog_compiler_static_FC='-non_shared'
12240 xl* | bgxl* | bgf* | mpixl*)
12241 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12242 lt_prog_compiler_wl_FC='-Wl,'
12243 lt_prog_compiler_pic_FC='-qpic'
12244 lt_prog_compiler_static_FC='-qstaticlink'
12247 case `$CC -V 2>&1 | sed 5q` in
12248 *Sun\ F* | *Sun*Fortran*)
12249 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12250 lt_prog_compiler_pic_FC='-KPIC'
12251 lt_prog_compiler_static_FC='-Bstatic'
12252 lt_prog_compiler_wl_FC=''
12254 *Sun\ C*)
12255 # Sun C 5.9
12256 lt_prog_compiler_pic_FC='-KPIC'
12257 lt_prog_compiler_static_FC='-Bstatic'
12258 lt_prog_compiler_wl_FC='-Wl,'
12260 esac
12262 esac
12265 newsos6)
12266 lt_prog_compiler_pic_FC='-KPIC'
12267 lt_prog_compiler_static_FC='-Bstatic'
12270 *nto* | *qnx*)
12271 # QNX uses GNU C++, but need to define -shared option too, otherwise
12272 # it will coredump.
12273 lt_prog_compiler_pic_FC='-fPIC -shared'
12276 osf3* | osf4* | osf5*)
12277 lt_prog_compiler_wl_FC='-Wl,'
12278 # All OSF/1 code is PIC.
12279 lt_prog_compiler_static_FC='-non_shared'
12282 rdos*)
12283 lt_prog_compiler_static_FC='-non_shared'
12286 solaris*)
12287 lt_prog_compiler_pic_FC='-KPIC'
12288 lt_prog_compiler_static_FC='-Bstatic'
12289 case $cc_basename in
12290 f77* | f90* | f95*)
12291 lt_prog_compiler_wl_FC='-Qoption ld ';;
12293 lt_prog_compiler_wl_FC='-Wl,';;
12294 esac
12297 sunos4*)
12298 lt_prog_compiler_wl_FC='-Qoption ld '
12299 lt_prog_compiler_pic_FC='-PIC'
12300 lt_prog_compiler_static_FC='-Bstatic'
12303 sysv4 | sysv4.2uw2* | sysv4.3*)
12304 lt_prog_compiler_wl_FC='-Wl,'
12305 lt_prog_compiler_pic_FC='-KPIC'
12306 lt_prog_compiler_static_FC='-Bstatic'
12309 sysv4*MP*)
12310 if test -d /usr/nec ;then
12311 lt_prog_compiler_pic_FC='-Kconform_pic'
12312 lt_prog_compiler_static_FC='-Bstatic'
12316 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12317 lt_prog_compiler_wl_FC='-Wl,'
12318 lt_prog_compiler_pic_FC='-KPIC'
12319 lt_prog_compiler_static_FC='-Bstatic'
12322 unicos*)
12323 lt_prog_compiler_wl_FC='-Wl,'
12324 lt_prog_compiler_can_build_shared_FC=no
12327 uts4*)
12328 lt_prog_compiler_pic_FC='-pic'
12329 lt_prog_compiler_static_FC='-Bstatic'
12333 lt_prog_compiler_can_build_shared_FC=no
12335 esac
12338 case $host_os in
12339 # For platforms which do not support PIC, -DPIC is meaningless:
12340 *djgpp*)
12341 lt_prog_compiler_pic_FC=
12344 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
12346 esac
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
12348 $as_echo "$lt_prog_compiler_pic_FC" >&6; }
12353 # Check to make sure the PIC flag actually works.
12355 if test -n "$lt_prog_compiler_pic_FC"; then
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
12357 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
12358 if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then :
12359 $as_echo_n "(cached) " >&6
12360 else
12361 lt_cv_prog_compiler_pic_works_FC=no
12362 ac_outfile=conftest.$ac_objext
12363 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12364 lt_compiler_flag="$lt_prog_compiler_pic_FC"
12365 # Insert the option either (1) after the last *FLAGS variable, or
12366 # (2) before a word containing "conftest.", or (3) at the end.
12367 # Note that $ac_compile itself does not contain backslashes and begins
12368 # with a dollar sign (not a hyphen), so the echo should work correctly.
12369 # The option is referenced via a variable to avoid confusing sed.
12370 lt_compile=`echo "$ac_compile" | $SED \
12371 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12372 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12373 -e 's:$: $lt_compiler_flag:'`
12374 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12375 (eval "$lt_compile" 2>conftest.err)
12376 ac_status=$?
12377 cat conftest.err >&5
12378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379 if (exit $ac_status) && test -s "$ac_outfile"; then
12380 # The compiler can only warn and ignore the option if not recognized
12381 # So say no if there are warnings other than the usual output.
12382 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12383 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12384 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12385 lt_cv_prog_compiler_pic_works_FC=yes
12388 $RM conftest*
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
12392 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
12394 if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
12395 case $lt_prog_compiler_pic_FC in
12396 "" | " "*) ;;
12397 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
12398 esac
12399 else
12400 lt_prog_compiler_pic_FC=
12401 lt_prog_compiler_can_build_shared_FC=no
12409 # Check to make sure the static flag actually works.
12411 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12413 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12414 if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then :
12415 $as_echo_n "(cached) " >&6
12416 else
12417 lt_cv_prog_compiler_static_works_FC=no
12418 save_LDFLAGS="$LDFLAGS"
12419 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12420 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12421 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12422 # The linker can only warn and ignore the option if not recognized
12423 # So say no if there are warnings
12424 if test -s conftest.err; then
12425 # Append any errors to the config.log.
12426 cat conftest.err 1>&5
12427 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12428 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12429 if diff conftest.exp conftest.er2 >/dev/null; then
12430 lt_cv_prog_compiler_static_works_FC=yes
12432 else
12433 lt_cv_prog_compiler_static_works_FC=yes
12436 $RM -r conftest*
12437 LDFLAGS="$save_LDFLAGS"
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
12441 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
12443 if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
12445 else
12446 lt_prog_compiler_static_FC=
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12453 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12454 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
12455 $as_echo_n "(cached) " >&6
12456 else
12457 lt_cv_prog_compiler_c_o_FC=no
12458 $RM -r conftest 2>/dev/null
12459 mkdir conftest
12460 cd conftest
12461 mkdir out
12462 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12464 lt_compiler_flag="-o out/conftest2.$ac_objext"
12465 # Insert the option either (1) after the last *FLAGS variable, or
12466 # (2) before a word containing "conftest.", or (3) at the end.
12467 # Note that $ac_compile itself does not contain backslashes and begins
12468 # with a dollar sign (not a hyphen), so the echo should work correctly.
12469 lt_compile=`echo "$ac_compile" | $SED \
12470 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12471 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12472 -e 's:$: $lt_compiler_flag:'`
12473 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12474 (eval "$lt_compile" 2>out/conftest.err)
12475 ac_status=$?
12476 cat out/conftest.err >&5
12477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12479 then
12480 # The compiler can only warn and ignore the option if not recognized
12481 # So say no if there are warnings
12482 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12483 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12484 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12485 lt_cv_prog_compiler_c_o_FC=yes
12488 chmod u+w . 2>&5
12489 $RM conftest*
12490 # SGI C++ compiler will create directory out/ii_files/ for
12491 # template instantiation
12492 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12493 $RM out/* && rmdir out
12494 cd ..
12495 $RM -r conftest
12496 $RM conftest*
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12500 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12505 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12506 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
12507 $as_echo_n "(cached) " >&6
12508 else
12509 lt_cv_prog_compiler_c_o_FC=no
12510 $RM -r conftest 2>/dev/null
12511 mkdir conftest
12512 cd conftest
12513 mkdir out
12514 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12516 lt_compiler_flag="-o out/conftest2.$ac_objext"
12517 # Insert the option either (1) after the last *FLAGS variable, or
12518 # (2) before a word containing "conftest.", or (3) at the end.
12519 # Note that $ac_compile itself does not contain backslashes and begins
12520 # with a dollar sign (not a hyphen), so the echo should work correctly.
12521 lt_compile=`echo "$ac_compile" | $SED \
12522 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12523 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12524 -e 's:$: $lt_compiler_flag:'`
12525 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12526 (eval "$lt_compile" 2>out/conftest.err)
12527 ac_status=$?
12528 cat out/conftest.err >&5
12529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12531 then
12532 # The compiler can only warn and ignore the option if not recognized
12533 # So say no if there are warnings
12534 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12535 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12536 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12537 lt_cv_prog_compiler_c_o_FC=yes
12540 chmod u+w . 2>&5
12541 $RM conftest*
12542 # SGI C++ compiler will create directory out/ii_files/ for
12543 # template instantiation
12544 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12545 $RM out/* && rmdir out
12546 cd ..
12547 $RM -r conftest
12548 $RM conftest*
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12552 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12557 hard_links="nottested"
12558 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
12559 # do not overwrite the value of need_locks provided by the user
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12561 $as_echo_n "checking if we can lock with hard links... " >&6; }
12562 hard_links=yes
12563 $RM conftest*
12564 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12565 touch conftest.a
12566 ln conftest.a conftest.b 2>&5 || hard_links=no
12567 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12569 $as_echo "$hard_links" >&6; }
12570 if test "$hard_links" = no; then
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12572 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12573 need_locks=warn
12575 else
12576 need_locks=no
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12582 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12584 runpath_var=
12585 allow_undefined_flag_FC=
12586 always_export_symbols_FC=no
12587 archive_cmds_FC=
12588 archive_expsym_cmds_FC=
12589 compiler_needs_object_FC=no
12590 enable_shared_with_static_runtimes_FC=no
12591 export_dynamic_flag_spec_FC=
12592 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12593 hardcode_automatic_FC=no
12594 hardcode_direct_FC=no
12595 hardcode_direct_absolute_FC=no
12596 hardcode_libdir_flag_spec_FC=
12597 hardcode_libdir_flag_spec_ld_FC=
12598 hardcode_libdir_separator_FC=
12599 hardcode_minus_L_FC=no
12600 hardcode_shlibpath_var_FC=unsupported
12601 inherit_rpath_FC=no
12602 link_all_deplibs_FC=unknown
12603 module_cmds_FC=
12604 module_expsym_cmds_FC=
12605 old_archive_from_new_cmds_FC=
12606 old_archive_from_expsyms_cmds_FC=
12607 thread_safe_flag_spec_FC=
12608 whole_archive_flag_spec_FC=
12609 # include_expsyms should be a list of space-separated symbols to be *always*
12610 # included in the symbol list
12611 include_expsyms_FC=
12612 # exclude_expsyms can be an extended regexp of symbols to exclude
12613 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12614 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12615 # as well as any symbol that contains `d'.
12616 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12617 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12618 # platforms (ab)use it in PIC code, but their linkers get confused if
12619 # the symbol is explicitly referenced. Since portable code cannot
12620 # rely on this symbol name, it's probably fine to never include it in
12621 # preloaded symbol tables.
12622 # Exclude shared library initialization/finalization symbols.
12623 extract_expsyms_cmds=
12625 case $host_os in
12626 cygwin* | mingw* | pw32* | cegcc*)
12627 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12628 # When not using gcc, we currently assume that we are using
12629 # Microsoft Visual C++.
12630 if test "$GCC" != yes; then
12631 with_gnu_ld=no
12634 interix*)
12635 # we just hope/assume this is gcc and not c89 (= MSVC++)
12636 with_gnu_ld=yes
12638 openbsd*)
12639 with_gnu_ld=no
12641 esac
12643 ld_shlibs_FC=yes
12645 # On some targets, GNU ld is compatible enough with the native linker
12646 # that we're better off using the native interface for both.
12647 lt_use_gnu_ld_interface=no
12648 if test "$with_gnu_ld" = yes; then
12649 case $host_os in
12650 aix*)
12651 # The AIX port of GNU ld has always aspired to compatibility
12652 # with the native linker. However, as the warning in the GNU ld
12653 # block says, versions before 2.19.5* couldn't really create working
12654 # shared libraries, regardless of the interface used.
12655 case `$LD -v 2>&1` in
12656 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12657 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12658 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12660 lt_use_gnu_ld_interface=yes
12662 esac
12665 lt_use_gnu_ld_interface=yes
12667 esac
12670 if test "$lt_use_gnu_ld_interface" = yes; then
12671 # If archive_cmds runs LD, not CC, wlarc should be empty
12672 wlarc='${wl}'
12674 # Set some defaults for GNU ld with shared library support. These
12675 # are reset later if shared libraries are not supported. Putting them
12676 # here allows them to be overridden if necessary.
12677 runpath_var=LD_RUN_PATH
12678 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12679 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
12680 # ancient GNU ld didn't support --whole-archive et. al.
12681 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12682 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12683 else
12684 whole_archive_flag_spec_FC=
12686 supports_anon_versioning=no
12687 case `$LD -v 2>&1` in
12688 *GNU\ gold*) supports_anon_versioning=yes ;;
12689 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12690 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12691 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12692 *\ 2.11.*) ;; # other 2.11 versions
12693 *) supports_anon_versioning=yes ;;
12694 esac
12696 # See if GNU ld supports shared libraries.
12697 case $host_os in
12698 aix[3-9]*)
12699 # On AIX/PPC, the GNU linker is very broken
12700 if test "$host_cpu" != ia64; then
12701 ld_shlibs_FC=no
12702 cat <<_LT_EOF 1>&2
12704 *** Warning: the GNU linker, at least up to release 2.19, is reported
12705 *** to be unable to reliably create shared libraries on AIX.
12706 *** Therefore, libtool is disabling shared libraries support. If you
12707 *** really care for shared libraries, you may want to install binutils
12708 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12709 *** You will then need to restart the configuration process.
12711 _LT_EOF
12715 amigaos*)
12716 case $host_cpu in
12717 powerpc)
12718 # see comment about AmigaOS4 .so support
12719 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12720 archive_expsym_cmds_FC=''
12722 m68k)
12723 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)'
12724 hardcode_libdir_flag_spec_FC='-L$libdir'
12725 hardcode_minus_L_FC=yes
12727 esac
12730 beos*)
12731 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12732 allow_undefined_flag_FC=unsupported
12733 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12734 # support --undefined. This deserves some investigation. FIXME
12735 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12736 else
12737 ld_shlibs_FC=no
12741 cygwin* | mingw* | pw32* | cegcc*)
12742 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
12743 # as there is no search path for DLLs.
12744 hardcode_libdir_flag_spec_FC='-L$libdir'
12745 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
12746 allow_undefined_flag_FC=unsupported
12747 always_export_symbols_FC=no
12748 enable_shared_with_static_runtimes_FC=yes
12749 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12751 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12752 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12753 # If the export-symbols file already is a .def file (1st line
12754 # is EXPORTS), use it as is; otherwise, prepend...
12755 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12756 cp $export_symbols $output_objdir/$soname.def;
12757 else
12758 echo EXPORTS > $output_objdir/$soname.def;
12759 cat $export_symbols >> $output_objdir/$soname.def;
12761 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12762 else
12763 ld_shlibs_FC=no
12767 haiku*)
12768 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12769 link_all_deplibs_FC=yes
12772 interix[3-9]*)
12773 hardcode_direct_FC=no
12774 hardcode_shlibpath_var_FC=no
12775 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
12776 export_dynamic_flag_spec_FC='${wl}-E'
12777 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12778 # Instead, shared libraries are loaded at an image base (0x10000000 by
12779 # default) and relocated if they conflict, which is a slow very memory
12780 # consuming and fragmenting process. To avoid this, we pick a random,
12781 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12782 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12783 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'
12784 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'
12787 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12788 tmp_diet=no
12789 if test "$host_os" = linux-dietlibc; then
12790 case $cc_basename in
12791 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12792 esac
12794 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12795 && test "$tmp_diet" = no
12796 then
12797 tmp_addflag=' $pic_flag'
12798 tmp_sharedflag='-shared'
12799 case $cc_basename,$host_cpu in
12800 pgcc*) # Portland Group C compiler
12801 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'
12802 tmp_addflag=' $pic_flag'
12804 pgf77* | pgf90* | pgf95* | pgfortran*)
12805 # Portland Group f77 and f90 compilers
12806 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'
12807 tmp_addflag=' $pic_flag -Mnomain' ;;
12808 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12809 tmp_addflag=' -i_dynamic' ;;
12810 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12811 tmp_addflag=' -i_dynamic -nofor_main' ;;
12812 ifc* | ifort*) # Intel Fortran compiler
12813 tmp_addflag=' -nofor_main' ;;
12814 lf95*) # Lahey Fortran 8.1
12815 whole_archive_flag_spec_FC=
12816 tmp_sharedflag='--shared' ;;
12817 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12818 tmp_sharedflag='-qmkshrobj'
12819 tmp_addflag= ;;
12820 nvcc*) # Cuda Compiler Driver 2.2
12821 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'
12822 compiler_needs_object_FC=yes
12824 esac
12825 case `$CC -V 2>&1 | sed 5q` in
12826 *Sun\ C*) # Sun C 5.9
12827 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'
12828 compiler_needs_object_FC=yes
12829 tmp_sharedflag='-G' ;;
12830 *Sun\ F*) # Sun Fortran 8.3
12831 tmp_sharedflag='-G' ;;
12832 esac
12833 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12835 if test "x$supports_anon_versioning" = xyes; then
12836 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
12837 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12838 echo "local: *; };" >> $output_objdir/$libname.ver~
12839 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12842 case $cc_basename in
12843 xlf* | bgf* | bgxlf* | mpixlf*)
12844 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12845 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
12846 hardcode_libdir_flag_spec_FC=
12847 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
12848 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12849 if test "x$supports_anon_versioning" = xyes; then
12850 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
12851 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12852 echo "local: *; };" >> $output_objdir/$libname.ver~
12853 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12856 esac
12857 else
12858 ld_shlibs_FC=no
12862 netbsd*)
12863 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12864 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12865 wlarc=
12866 else
12867 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12868 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12872 solaris*)
12873 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12874 ld_shlibs_FC=no
12875 cat <<_LT_EOF 1>&2
12877 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12878 *** create shared libraries on Solaris systems. Therefore, libtool
12879 *** is disabling shared libraries support. We urge you to upgrade GNU
12880 *** binutils to release 2.9.1 or newer. Another option is to modify
12881 *** your PATH or compiler configuration so that the native linker is
12882 *** used, and then restart.
12884 _LT_EOF
12885 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12886 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12887 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12888 else
12889 ld_shlibs_FC=no
12893 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12894 case `$LD -v 2>&1` in
12895 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12896 ld_shlibs_FC=no
12897 cat <<_LT_EOF 1>&2
12899 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12900 *** reliably create shared libraries on SCO systems. Therefore, libtool
12901 *** is disabling shared libraries support. We urge you to upgrade GNU
12902 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12903 *** your PATH or compiler configuration so that the native linker is
12904 *** used, and then restart.
12906 _LT_EOF
12909 # For security reasons, it is highly recommended that you always
12910 # use absolute paths for naming shared libraries, and exclude the
12911 # DT_RUNPATH tag from executables and libraries. But doing so
12912 # requires that you compile everything twice, which is a pain.
12913 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12914 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12915 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12916 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12917 else
12918 ld_shlibs_FC=no
12921 esac
12924 sunos4*)
12925 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12926 wlarc=
12927 hardcode_direct_FC=yes
12928 hardcode_shlibpath_var_FC=no
12932 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12933 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12934 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12935 else
12936 ld_shlibs_FC=no
12939 esac
12941 if test "$ld_shlibs_FC" = no; then
12942 runpath_var=
12943 hardcode_libdir_flag_spec_FC=
12944 export_dynamic_flag_spec_FC=
12945 whole_archive_flag_spec_FC=
12947 else
12948 # PORTME fill in a description of your system's linker (not GNU ld)
12949 case $host_os in
12950 aix3*)
12951 allow_undefined_flag_FC=unsupported
12952 always_export_symbols_FC=yes
12953 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'
12954 # Note: this linker hardcodes the directories in LIBPATH if there
12955 # are no directories specified by -L.
12956 hardcode_minus_L_FC=yes
12957 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12958 # Neither direct hardcoding nor static linking is supported with a
12959 # broken collect2.
12960 hardcode_direct_FC=unsupported
12964 aix[4-9]*)
12965 if test "$host_cpu" = ia64; then
12966 # On IA64, the linker does run time linking by default, so we don't
12967 # have to do anything special.
12968 aix_use_runtimelinking=no
12969 exp_sym_flag='-Bexport'
12970 no_entry_flag=""
12971 else
12972 # If we're using GNU nm, then we don't want the "-C" option.
12973 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12974 # Also, AIX nm treats weak defined symbols like other global
12975 # defined symbols, whereas GNU nm marks them as "W".
12976 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12977 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'
12978 else
12979 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'
12981 aix_use_runtimelinking=no
12983 # Test if we are trying to use run time linking or normal
12984 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12985 # need to do runtime linking.
12986 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12987 for ld_flag in $LDFLAGS; do
12988 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12989 aix_use_runtimelinking=yes
12990 break
12992 done
12994 esac
12996 exp_sym_flag='-bexport'
12997 no_entry_flag='-bnoentry'
13000 # When large executables or shared objects are built, AIX ld can
13001 # have problems creating the table of contents. If linking a library
13002 # or program results in "error TOC overflow" add -mminimal-toc to
13003 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13004 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13006 archive_cmds_FC=''
13007 hardcode_direct_FC=yes
13008 hardcode_direct_absolute_FC=yes
13009 hardcode_libdir_separator_FC=':'
13010 link_all_deplibs_FC=yes
13011 file_list_spec_FC='${wl}-f,'
13013 if test "$GCC" = yes; then
13014 case $host_os in aix4.[012]|aix4.[012].*)
13015 # We only want to do this on AIX 4.2 and lower, the check
13016 # below for broken collect2 doesn't work under 4.3+
13017 collect2name=`${CC} -print-prog-name=collect2`
13018 if test -f "$collect2name" &&
13019 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13020 then
13021 # We have reworked collect2
13023 else
13024 # We have old collect2
13025 hardcode_direct_FC=unsupported
13026 # It fails to find uninstalled libraries when the uninstalled
13027 # path is not listed in the libpath. Setting hardcode_minus_L
13028 # to unsupported forces relinking
13029 hardcode_minus_L_FC=yes
13030 hardcode_libdir_flag_spec_FC='-L$libdir'
13031 hardcode_libdir_separator_FC=
13034 esac
13035 shared_flag='-shared'
13036 if test "$aix_use_runtimelinking" = yes; then
13037 shared_flag="$shared_flag "'${wl}-G'
13039 else
13040 # not using gcc
13041 if test "$host_cpu" = ia64; then
13042 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13043 # chokes on -Wl,-G. The following line is correct:
13044 shared_flag='-G'
13045 else
13046 if test "$aix_use_runtimelinking" = yes; then
13047 shared_flag='${wl}-G'
13048 else
13049 shared_flag='${wl}-bM:SRE'
13054 export_dynamic_flag_spec_FC='${wl}-bexpall'
13055 # It seems that -bexpall does not export symbols beginning with
13056 # underscore (_), so it is better to generate a list of symbols to export.
13057 always_export_symbols_FC=yes
13058 if test "$aix_use_runtimelinking" = yes; then
13059 # Warning - without using the other runtime loading flags (-brtl),
13060 # -berok will link without error, but may produce a broken library.
13061 allow_undefined_flag_FC='-berok'
13062 # Determine the default libpath from the value encoded in an
13063 # empty executable.
13064 cat > conftest.$ac_ext <<_ACEOF
13065 program main
13068 _ACEOF
13069 if ac_fn_fc_try_link "$LINENO"; then :
13071 lt_aix_libpath_sed='
13072 /Import File Strings/,/^$/ {
13073 /^0/ {
13074 s/^0 *\(.*\)$/\1/
13078 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13079 # Check for a 64-bit object if we didn't find anything.
13080 if test -z "$aix_libpath"; then
13081 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13084 rm -f core conftest.err conftest.$ac_objext \
13085 conftest$ac_exeext conftest.$ac_ext
13086 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13088 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13089 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"
13090 else
13091 if test "$host_cpu" = ia64; then
13092 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
13093 allow_undefined_flag_FC="-z nodefs"
13094 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"
13095 else
13096 # Determine the default libpath from the value encoded in an
13097 # empty executable.
13098 cat > conftest.$ac_ext <<_ACEOF
13099 program main
13102 _ACEOF
13103 if ac_fn_fc_try_link "$LINENO"; then :
13105 lt_aix_libpath_sed='
13106 /Import File Strings/,/^$/ {
13107 /^0/ {
13108 s/^0 *\(.*\)$/\1/
13112 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13113 # Check for a 64-bit object if we didn't find anything.
13114 if test -z "$aix_libpath"; then
13115 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13118 rm -f core conftest.err conftest.$ac_objext \
13119 conftest$ac_exeext conftest.$ac_ext
13120 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13122 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13123 # Warning - without using the other run time loading flags,
13124 # -berok will link without error, but may produce a broken library.
13125 no_undefined_flag_FC=' ${wl}-bernotok'
13126 allow_undefined_flag_FC=' ${wl}-berok'
13127 if test "$with_gnu_ld" = yes; then
13128 # We only use this code for GNU lds that support --whole-archive.
13129 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13130 else
13131 # Exported symbols can be pulled into shared objects from archives
13132 whole_archive_flag_spec_FC='$convenience'
13134 archive_cmds_need_lc_FC=yes
13135 # This is similar to how AIX traditionally builds its shared libraries.
13136 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'
13141 amigaos*)
13142 case $host_cpu in
13143 powerpc)
13144 # see comment about AmigaOS4 .so support
13145 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13146 archive_expsym_cmds_FC=''
13148 m68k)
13149 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)'
13150 hardcode_libdir_flag_spec_FC='-L$libdir'
13151 hardcode_minus_L_FC=yes
13153 esac
13156 bsdi[45]*)
13157 export_dynamic_flag_spec_FC=-rdynamic
13160 cygwin* | mingw* | pw32* | cegcc*)
13161 # When not using gcc, we currently assume that we are using
13162 # Microsoft Visual C++.
13163 # hardcode_libdir_flag_spec is actually meaningless, as there is
13164 # no search path for DLLs.
13165 hardcode_libdir_flag_spec_FC=' '
13166 allow_undefined_flag_FC=unsupported
13167 # Tell ltmain to make .lib files, not .a files.
13168 libext=lib
13169 # Tell ltmain to make .dll files, not .so files.
13170 shrext_cmds=".dll"
13171 # FIXME: Setting linknames here is a bad hack.
13172 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13173 # The linker will automatically build a .lib file if we build a DLL.
13174 old_archive_from_new_cmds_FC='true'
13175 # FIXME: Should let the user specify the lib program.
13176 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
13177 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
13178 enable_shared_with_static_runtimes_FC=yes
13181 darwin* | rhapsody*)
13184 archive_cmds_need_lc_FC=no
13185 hardcode_direct_FC=no
13186 hardcode_automatic_FC=yes
13187 hardcode_shlibpath_var_FC=unsupported
13188 if test "$lt_cv_ld_force_load" = "yes"; then
13189 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\"`'
13190 else
13191 whole_archive_flag_spec_FC=''
13193 link_all_deplibs_FC=yes
13194 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
13195 case $cc_basename in
13196 ifort*) _lt_dar_can_shared=yes ;;
13197 *) _lt_dar_can_shared=$GCC ;;
13198 esac
13199 if test "$_lt_dar_can_shared" = "yes"; then
13200 output_verbose_link_cmd=func_echo_all
13201 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}"
13202 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13203 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}"
13204 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}"
13206 else
13207 ld_shlibs_FC=no
13212 dgux*)
13213 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13214 hardcode_libdir_flag_spec_FC='-L$libdir'
13215 hardcode_shlibpath_var_FC=no
13218 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13219 # support. Future versions do this automatically, but an explicit c++rt0.o
13220 # does not break anything, and helps significantly (at the cost of a little
13221 # extra space).
13222 freebsd2.2*)
13223 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13224 hardcode_libdir_flag_spec_FC='-R$libdir'
13225 hardcode_direct_FC=yes
13226 hardcode_shlibpath_var_FC=no
13229 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13230 freebsd2.*)
13231 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13232 hardcode_direct_FC=yes
13233 hardcode_minus_L_FC=yes
13234 hardcode_shlibpath_var_FC=no
13237 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13238 freebsd* | dragonfly*)
13239 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13240 hardcode_libdir_flag_spec_FC='-R$libdir'
13241 hardcode_direct_FC=yes
13242 hardcode_shlibpath_var_FC=no
13245 hpux9*)
13246 if test "$GCC" = yes; then
13247 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'
13248 else
13249 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'
13251 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13252 hardcode_libdir_separator_FC=:
13253 hardcode_direct_FC=yes
13255 # hardcode_minus_L: Not really in the search PATH,
13256 # but as the default location of the library.
13257 hardcode_minus_L_FC=yes
13258 export_dynamic_flag_spec_FC='${wl}-E'
13261 hpux10*)
13262 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13263 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13264 else
13265 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13267 if test "$with_gnu_ld" = no; then
13268 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13269 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
13270 hardcode_libdir_separator_FC=:
13271 hardcode_direct_FC=yes
13272 hardcode_direct_absolute_FC=yes
13273 export_dynamic_flag_spec_FC='${wl}-E'
13274 # hardcode_minus_L: Not really in the search PATH,
13275 # but as the default location of the library.
13276 hardcode_minus_L_FC=yes
13280 hpux11*)
13281 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13282 case $host_cpu in
13283 hppa*64*)
13284 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13286 ia64*)
13287 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13290 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13292 esac
13293 else
13294 case $host_cpu in
13295 hppa*64*)
13296 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13298 ia64*)
13299 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13302 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13304 esac
13306 if test "$with_gnu_ld" = no; then
13307 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13308 hardcode_libdir_separator_FC=:
13310 case $host_cpu in
13311 hppa*64*|ia64*)
13312 hardcode_direct_FC=no
13313 hardcode_shlibpath_var_FC=no
13316 hardcode_direct_FC=yes
13317 hardcode_direct_absolute_FC=yes
13318 export_dynamic_flag_spec_FC='${wl}-E'
13320 # hardcode_minus_L: Not really in the search PATH,
13321 # but as the default location of the library.
13322 hardcode_minus_L_FC=yes
13324 esac
13328 irix5* | irix6* | nonstopux*)
13329 if test "$GCC" = yes; then
13330 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'
13331 # Try to use the -exported_symbol ld option, if it does not
13332 # work, assume that -exports_file does not work either and
13333 # implicitly export all symbols.
13334 save_LDFLAGS="$LDFLAGS"
13335 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13336 cat > conftest.$ac_ext <<_ACEOF
13337 int foo(void) {}
13338 _ACEOF
13339 if ac_fn_fc_try_link "$LINENO"; then :
13340 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'
13343 rm -f core conftest.err conftest.$ac_objext \
13344 conftest$ac_exeext conftest.$ac_ext
13345 LDFLAGS="$save_LDFLAGS"
13346 else
13347 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'
13348 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'
13350 archive_cmds_need_lc_FC='no'
13351 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13352 hardcode_libdir_separator_FC=:
13353 inherit_rpath_FC=yes
13354 link_all_deplibs_FC=yes
13357 netbsd*)
13358 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13359 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13360 else
13361 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13363 hardcode_libdir_flag_spec_FC='-R$libdir'
13364 hardcode_direct_FC=yes
13365 hardcode_shlibpath_var_FC=no
13368 newsos6)
13369 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13370 hardcode_direct_FC=yes
13371 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13372 hardcode_libdir_separator_FC=:
13373 hardcode_shlibpath_var_FC=no
13376 *nto* | *qnx*)
13379 openbsd*)
13380 if test -f /usr/libexec/ld.so; then
13381 hardcode_direct_FC=yes
13382 hardcode_shlibpath_var_FC=no
13383 hardcode_direct_absolute_FC=yes
13384 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13385 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13386 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13387 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13388 export_dynamic_flag_spec_FC='${wl}-E'
13389 else
13390 case $host_os in
13391 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13392 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13393 hardcode_libdir_flag_spec_FC='-R$libdir'
13396 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13397 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13399 esac
13401 else
13402 ld_shlibs_FC=no
13406 os2*)
13407 hardcode_libdir_flag_spec_FC='-L$libdir'
13408 hardcode_minus_L_FC=yes
13409 allow_undefined_flag_FC=unsupported
13410 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'
13411 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13414 osf3*)
13415 if test "$GCC" = yes; then
13416 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13417 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'
13418 else
13419 allow_undefined_flag_FC=' -expect_unresolved \*'
13420 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'
13422 archive_cmds_need_lc_FC='no'
13423 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13424 hardcode_libdir_separator_FC=:
13427 osf4* | osf5*) # as osf3* with the addition of -msym flag
13428 if test "$GCC" = yes; then
13429 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13430 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'
13431 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13432 else
13433 allow_undefined_flag_FC=' -expect_unresolved \*'
13434 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'
13435 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~
13436 $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'
13438 # Both c and cxx compiler support -rpath directly
13439 hardcode_libdir_flag_spec_FC='-rpath $libdir'
13441 archive_cmds_need_lc_FC='no'
13442 hardcode_libdir_separator_FC=:
13445 solaris*)
13446 no_undefined_flag_FC=' -z defs'
13447 if test "$GCC" = yes; then
13448 wlarc='${wl}'
13449 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13450 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13451 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13452 else
13453 case `$CC -V 2>&1` in
13454 *"Compilers 5.0"*)
13455 wlarc=''
13456 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13457 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13458 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13461 wlarc='${wl}'
13462 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13463 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13464 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13466 esac
13468 hardcode_libdir_flag_spec_FC='-R$libdir'
13469 hardcode_shlibpath_var_FC=no
13470 case $host_os in
13471 solaris2.[0-5] | solaris2.[0-5].*) ;;
13473 # The compiler driver will combine and reorder linker options,
13474 # but understands `-z linker_flag'. GCC discards it without `$wl',
13475 # but is careful enough not to reorder.
13476 # Supported since Solaris 2.6 (maybe 2.5.1?)
13477 if test "$GCC" = yes; then
13478 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13479 else
13480 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
13483 esac
13484 link_all_deplibs_FC=yes
13487 sunos4*)
13488 if test "x$host_vendor" = xsequent; then
13489 # Use $CC to link under sequent, because it throws in some extra .o
13490 # files that make .init and .fini sections work.
13491 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13492 else
13493 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13495 hardcode_libdir_flag_spec_FC='-L$libdir'
13496 hardcode_direct_FC=yes
13497 hardcode_minus_L_FC=yes
13498 hardcode_shlibpath_var_FC=no
13501 sysv4)
13502 case $host_vendor in
13503 sni)
13504 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13505 hardcode_direct_FC=yes # is this really true???
13507 siemens)
13508 ## LD is ld it makes a PLAMLIB
13509 ## CC just makes a GrossModule.
13510 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13511 reload_cmds_FC='$CC -r -o $output$reload_objs'
13512 hardcode_direct_FC=no
13514 motorola)
13515 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13516 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
13518 esac
13519 runpath_var='LD_RUN_PATH'
13520 hardcode_shlibpath_var_FC=no
13523 sysv4.3*)
13524 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13525 hardcode_shlibpath_var_FC=no
13526 export_dynamic_flag_spec_FC='-Bexport'
13529 sysv4*MP*)
13530 if test -d /usr/nec; then
13531 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13532 hardcode_shlibpath_var_FC=no
13533 runpath_var=LD_RUN_PATH
13534 hardcode_runpath_var=yes
13535 ld_shlibs_FC=yes
13539 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13540 no_undefined_flag_FC='${wl}-z,text'
13541 archive_cmds_need_lc_FC=no
13542 hardcode_shlibpath_var_FC=no
13543 runpath_var='LD_RUN_PATH'
13545 if test "$GCC" = yes; then
13546 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13547 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13548 else
13549 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13550 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13554 sysv5* | sco3.2v5* | sco5v6*)
13555 # Note: We can NOT use -z defs as we might desire, because we do not
13556 # link with -lc, and that would cause any symbols used from libc to
13557 # always be unresolved, which means just about no library would
13558 # ever link correctly. If we're not using GNU ld we use -z text
13559 # though, which does catch some bad symbols but isn't as heavy-handed
13560 # as -z defs.
13561 no_undefined_flag_FC='${wl}-z,text'
13562 allow_undefined_flag_FC='${wl}-z,nodefs'
13563 archive_cmds_need_lc_FC=no
13564 hardcode_shlibpath_var_FC=no
13565 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
13566 hardcode_libdir_separator_FC=':'
13567 link_all_deplibs_FC=yes
13568 export_dynamic_flag_spec_FC='${wl}-Bexport'
13569 runpath_var='LD_RUN_PATH'
13571 if test "$GCC" = yes; then
13572 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13573 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13574 else
13575 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13576 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13580 uts4*)
13581 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13582 hardcode_libdir_flag_spec_FC='-L$libdir'
13583 hardcode_shlibpath_var_FC=no
13587 ld_shlibs_FC=no
13589 esac
13591 if test x$host_vendor = xsni; then
13592 case $host in
13593 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13594 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
13596 esac
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
13601 $as_echo "$ld_shlibs_FC" >&6; }
13602 test "$ld_shlibs_FC" = no && can_build_shared=no
13604 with_gnu_ld_FC=$with_gnu_ld
13612 # Do we need to explicitly link libc?
13614 case "x$archive_cmds_need_lc_FC" in
13615 x|xyes)
13616 # Assume -lc should be added
13617 archive_cmds_need_lc_FC=yes
13619 if test "$enable_shared" = yes && test "$GCC" = yes; then
13620 case $archive_cmds_FC in
13621 *'~'*)
13622 # FIXME: we may have to deal with multi-command sequences.
13624 '$CC '*)
13625 # Test whether the compiler implicitly links with -lc since on some
13626 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13627 # to ld, don't add -lc before -lgcc.
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13629 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13630 if test "${lt_cv_archive_cmds_need_lc_FC+set}" = set; then :
13631 $as_echo_n "(cached) " >&6
13632 else
13633 $RM conftest*
13634 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13636 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13637 (eval $ac_compile) 2>&5
13638 ac_status=$?
13639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13640 test $ac_status = 0; } 2>conftest.err; then
13641 soname=conftest
13642 lib=conftest
13643 libobjs=conftest.$ac_objext
13644 deplibs=
13645 wl=$lt_prog_compiler_wl_FC
13646 pic_flag=$lt_prog_compiler_pic_FC
13647 compiler_flags=-v
13648 linker_flags=-v
13649 verstring=
13650 output_objdir=.
13651 libname=conftest
13652 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
13653 allow_undefined_flag_FC=
13654 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13655 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13656 ac_status=$?
13657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13658 test $ac_status = 0; }
13659 then
13660 lt_cv_archive_cmds_need_lc_FC=no
13661 else
13662 lt_cv_archive_cmds_need_lc_FC=yes
13664 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
13665 else
13666 cat conftest.err 1>&5
13668 $RM conftest*
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
13672 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
13673 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
13675 esac
13678 esac
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13744 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13746 library_names_spec=
13747 libname_spec='lib$name'
13748 soname_spec=
13749 shrext_cmds=".so"
13750 postinstall_cmds=
13751 postuninstall_cmds=
13752 finish_cmds=
13753 finish_eval=
13754 shlibpath_var=
13755 shlibpath_overrides_runpath=unknown
13756 version_type=none
13757 dynamic_linker="$host_os ld.so"
13758 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13759 need_lib_prefix=unknown
13760 hardcode_into_libs=no
13762 # when you set need_version to no, make sure it does not cause -set_version
13763 # flags to be left without arguments
13764 need_version=unknown
13766 case $host_os in
13767 aix3*)
13768 version_type=linux
13769 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13770 shlibpath_var=LIBPATH
13772 # AIX 3 has no versioning support, so we append a major version to the name.
13773 soname_spec='${libname}${release}${shared_ext}$major'
13776 aix[4-9]*)
13777 version_type=linux
13778 need_lib_prefix=no
13779 need_version=no
13780 hardcode_into_libs=yes
13781 if test "$host_cpu" = ia64; then
13782 # AIX 5 supports IA64
13783 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13784 shlibpath_var=LD_LIBRARY_PATH
13785 else
13786 # With GCC up to 2.95.x, collect2 would create an import file
13787 # for dependence libraries. The import file would start with
13788 # the line `#! .'. This would cause the generated library to
13789 # depend on `.', always an invalid library. This was fixed in
13790 # development snapshots of GCC prior to 3.0.
13791 case $host_os in
13792 aix4 | aix4.[01] | aix4.[01].*)
13793 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13794 echo ' yes '
13795 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13797 else
13798 can_build_shared=no
13801 esac
13802 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13803 # soname into executable. Probably we can add versioning support to
13804 # collect2, so additional links can be useful in future.
13805 if test "$aix_use_runtimelinking" = yes; then
13806 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13807 # instead of lib<name>.a to let people know that these are not
13808 # typical AIX shared libraries.
13809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13810 else
13811 # We preserve .a as extension for shared libraries through AIX4.2
13812 # and later when we are not doing run time linking.
13813 library_names_spec='${libname}${release}.a $libname.a'
13814 soname_spec='${libname}${release}${shared_ext}$major'
13816 shlibpath_var=LIBPATH
13820 amigaos*)
13821 case $host_cpu in
13822 powerpc)
13823 # Since July 2007 AmigaOS4 officially supports .so libraries.
13824 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13827 m68k)
13828 library_names_spec='$libname.ixlibrary $libname.a'
13829 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13830 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'
13832 esac
13835 beos*)
13836 library_names_spec='${libname}${shared_ext}'
13837 dynamic_linker="$host_os ld.so"
13838 shlibpath_var=LIBRARY_PATH
13841 bsdi[45]*)
13842 version_type=linux
13843 need_version=no
13844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13845 soname_spec='${libname}${release}${shared_ext}$major'
13846 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13847 shlibpath_var=LD_LIBRARY_PATH
13848 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13849 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13850 # the default ld.so.conf also contains /usr/contrib/lib and
13851 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13852 # libtool to hard-code these into programs
13855 cygwin* | mingw* | pw32* | cegcc*)
13856 version_type=windows
13857 shrext_cmds=".dll"
13858 need_version=no
13859 need_lib_prefix=no
13861 case $GCC,$host_os in
13862 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13863 library_names_spec='$libname.dll.a'
13864 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13865 postinstall_cmds='base_file=`basename \${file}`~
13866 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13867 dldir=$destdir/`dirname \$dlpath`~
13868 test -d \$dldir || mkdir -p \$dldir~
13869 $install_prog $dir/$dlname \$dldir/$dlname~
13870 chmod a+x \$dldir/$dlname~
13871 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13872 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13874 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13875 dlpath=$dir/\$dldll~
13876 $RM \$dlpath'
13877 shlibpath_overrides_runpath=yes
13879 case $host_os in
13880 cygwin*)
13881 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13882 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13885 mingw* | cegcc*)
13886 # MinGW DLLs use traditional 'lib' prefix
13887 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13889 pw32*)
13890 # pw32 DLLs use 'pw' prefix rather than 'lib'
13891 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13893 esac
13897 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13899 esac
13900 dynamic_linker='Win32 ld.exe'
13901 # FIXME: first we should search . and the directory the executable is in
13902 shlibpath_var=PATH
13905 darwin* | rhapsody*)
13906 dynamic_linker="$host_os dyld"
13907 version_type=darwin
13908 need_lib_prefix=no
13909 need_version=no
13910 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13911 soname_spec='${libname}${release}${major}$shared_ext'
13912 shlibpath_overrides_runpath=yes
13913 shlibpath_var=DYLD_LIBRARY_PATH
13914 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13916 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13919 dgux*)
13920 version_type=linux
13921 need_lib_prefix=no
13922 need_version=no
13923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13924 soname_spec='${libname}${release}${shared_ext}$major'
13925 shlibpath_var=LD_LIBRARY_PATH
13928 freebsd* | dragonfly*)
13929 # DragonFly does not have aout. When/if they implement a new
13930 # versioning mechanism, adjust this.
13931 if test -x /usr/bin/objformat; then
13932 objformat=`/usr/bin/objformat`
13933 else
13934 case $host_os in
13935 freebsd[23].*) objformat=aout ;;
13936 *) objformat=elf ;;
13937 esac
13939 version_type=freebsd-$objformat
13940 case $version_type in
13941 freebsd-elf*)
13942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13943 need_version=no
13944 need_lib_prefix=no
13946 freebsd-*)
13947 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13948 need_version=yes
13950 esac
13951 shlibpath_var=LD_LIBRARY_PATH
13952 case $host_os in
13953 freebsd2.*)
13954 shlibpath_overrides_runpath=yes
13956 freebsd3.[01]* | freebsdelf3.[01]*)
13957 shlibpath_overrides_runpath=yes
13958 hardcode_into_libs=yes
13960 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13961 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13962 shlibpath_overrides_runpath=no
13963 hardcode_into_libs=yes
13965 *) # from 4.6 on, and DragonFly
13966 shlibpath_overrides_runpath=yes
13967 hardcode_into_libs=yes
13969 esac
13972 gnu*)
13973 version_type=linux
13974 need_lib_prefix=no
13975 need_version=no
13976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13977 soname_spec='${libname}${release}${shared_ext}$major'
13978 shlibpath_var=LD_LIBRARY_PATH
13979 hardcode_into_libs=yes
13982 haiku*)
13983 version_type=linux
13984 need_lib_prefix=no
13985 need_version=no
13986 dynamic_linker="$host_os runtime_loader"
13987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13988 soname_spec='${libname}${release}${shared_ext}$major'
13989 shlibpath_var=LIBRARY_PATH
13990 shlibpath_overrides_runpath=yes
13991 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
13992 hardcode_into_libs=yes
13995 hpux9* | hpux10* | hpux11*)
13996 # Give a soname corresponding to the major version so that dld.sl refuses to
13997 # link against other versions.
13998 version_type=sunos
13999 need_lib_prefix=no
14000 need_version=no
14001 case $host_cpu in
14002 ia64*)
14003 shrext_cmds='.so'
14004 hardcode_into_libs=yes
14005 dynamic_linker="$host_os dld.so"
14006 shlibpath_var=LD_LIBRARY_PATH
14007 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14009 soname_spec='${libname}${release}${shared_ext}$major'
14010 if test "X$HPUX_IA64_MODE" = X32; then
14011 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14012 else
14013 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14015 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14017 hppa*64*)
14018 shrext_cmds='.sl'
14019 hardcode_into_libs=yes
14020 dynamic_linker="$host_os dld.sl"
14021 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14022 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14024 soname_spec='${libname}${release}${shared_ext}$major'
14025 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14026 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14029 shrext_cmds='.sl'
14030 dynamic_linker="$host_os dld.sl"
14031 shlibpath_var=SHLIB_PATH
14032 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14034 soname_spec='${libname}${release}${shared_ext}$major'
14036 esac
14037 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14038 postinstall_cmds='chmod 555 $lib'
14039 # or fails outright, so override atomically:
14040 install_override_mode=555
14043 interix[3-9]*)
14044 version_type=linux
14045 need_lib_prefix=no
14046 need_version=no
14047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14048 soname_spec='${libname}${release}${shared_ext}$major'
14049 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14050 shlibpath_var=LD_LIBRARY_PATH
14051 shlibpath_overrides_runpath=no
14052 hardcode_into_libs=yes
14055 irix5* | irix6* | nonstopux*)
14056 case $host_os in
14057 nonstopux*) version_type=nonstopux ;;
14059 if test "$lt_cv_prog_gnu_ld" = yes; then
14060 version_type=linux
14061 else
14062 version_type=irix
14063 fi ;;
14064 esac
14065 need_lib_prefix=no
14066 need_version=no
14067 soname_spec='${libname}${release}${shared_ext}$major'
14068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14069 case $host_os in
14070 irix5* | nonstopux*)
14071 libsuff= shlibsuff=
14074 case $LD in # libtool.m4 will add one of these switches to LD
14075 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14076 libsuff= shlibsuff= libmagic=32-bit;;
14077 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14078 libsuff=32 shlibsuff=N32 libmagic=N32;;
14079 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14080 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14081 *) libsuff= shlibsuff= libmagic=never-match;;
14082 esac
14084 esac
14085 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14086 shlibpath_overrides_runpath=no
14087 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14088 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14089 hardcode_into_libs=yes
14092 # No shared lib support for Linux oldld, aout, or coff.
14093 linux*oldld* | linux*aout* | linux*coff*)
14094 dynamic_linker=no
14097 # This must be Linux ELF.
14098 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14099 version_type=linux
14100 need_lib_prefix=no
14101 need_version=no
14102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14103 soname_spec='${libname}${release}${shared_ext}$major'
14104 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14105 shlibpath_var=LD_LIBRARY_PATH
14106 shlibpath_overrides_runpath=no
14108 # Some binutils ld are patched to set DT_RUNPATH
14109 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14110 $as_echo_n "(cached) " >&6
14111 else
14112 lt_cv_shlibpath_overrides_runpath=no
14113 save_LDFLAGS=$LDFLAGS
14114 save_libdir=$libdir
14115 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
14116 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
14117 cat > conftest.$ac_ext <<_ACEOF
14118 program main
14121 _ACEOF
14122 if ac_fn_fc_try_link "$LINENO"; then :
14123 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14124 lt_cv_shlibpath_overrides_runpath=yes
14127 rm -f core conftest.err conftest.$ac_objext \
14128 conftest$ac_exeext conftest.$ac_ext
14129 LDFLAGS=$save_LDFLAGS
14130 libdir=$save_libdir
14134 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14136 # This implies no fast_install, which is unacceptable.
14137 # Some rework will be needed to allow for fast_install
14138 # before this can be enabled.
14139 hardcode_into_libs=yes
14141 # Append ld.so.conf contents to the search path
14142 if test -f /etc/ld.so.conf; then
14143 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' ' '`
14144 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14147 # We used to test for /lib/ld.so.1 and disable shared libraries on
14148 # powerpc, because MkLinux only supported shared libraries with the
14149 # GNU dynamic linker. Since this was broken with cross compilers,
14150 # most powerpc-linux boxes support dynamic linking these days and
14151 # people can always --disable-shared, the test was removed, and we
14152 # assume the GNU/Linux dynamic linker is in use.
14153 dynamic_linker='GNU/Linux ld.so'
14156 netbsd*)
14157 version_type=sunos
14158 need_lib_prefix=no
14159 need_version=no
14160 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14162 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14163 dynamic_linker='NetBSD (a.out) ld.so'
14164 else
14165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14166 soname_spec='${libname}${release}${shared_ext}$major'
14167 dynamic_linker='NetBSD ld.elf_so'
14169 shlibpath_var=LD_LIBRARY_PATH
14170 shlibpath_overrides_runpath=yes
14171 hardcode_into_libs=yes
14174 newsos6)
14175 version_type=linux
14176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14177 shlibpath_var=LD_LIBRARY_PATH
14178 shlibpath_overrides_runpath=yes
14181 *nto* | *qnx*)
14182 version_type=qnx
14183 need_lib_prefix=no
14184 need_version=no
14185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14186 soname_spec='${libname}${release}${shared_ext}$major'
14187 shlibpath_var=LD_LIBRARY_PATH
14188 shlibpath_overrides_runpath=no
14189 hardcode_into_libs=yes
14190 dynamic_linker='ldqnx.so'
14193 openbsd*)
14194 version_type=sunos
14195 sys_lib_dlsearch_path_spec="/usr/lib"
14196 need_lib_prefix=no
14197 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14198 case $host_os in
14199 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14200 *) need_version=no ;;
14201 esac
14202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14203 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14204 shlibpath_var=LD_LIBRARY_PATH
14205 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14206 case $host_os in
14207 openbsd2.[89] | openbsd2.[89].*)
14208 shlibpath_overrides_runpath=no
14211 shlibpath_overrides_runpath=yes
14213 esac
14214 else
14215 shlibpath_overrides_runpath=yes
14219 os2*)
14220 libname_spec='$name'
14221 shrext_cmds=".dll"
14222 need_lib_prefix=no
14223 library_names_spec='$libname${shared_ext} $libname.a'
14224 dynamic_linker='OS/2 ld.exe'
14225 shlibpath_var=LIBPATH
14228 osf3* | osf4* | osf5*)
14229 version_type=osf
14230 need_lib_prefix=no
14231 need_version=no
14232 soname_spec='${libname}${release}${shared_ext}$major'
14233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14234 shlibpath_var=LD_LIBRARY_PATH
14235 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14236 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14239 rdos*)
14240 dynamic_linker=no
14243 solaris*)
14244 version_type=linux
14245 need_lib_prefix=no
14246 need_version=no
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=LD_LIBRARY_PATH
14250 shlibpath_overrides_runpath=yes
14251 hardcode_into_libs=yes
14252 # ldd complains unless libraries are executable
14253 postinstall_cmds='chmod +x $lib'
14256 sunos4*)
14257 version_type=sunos
14258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14259 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14260 shlibpath_var=LD_LIBRARY_PATH
14261 shlibpath_overrides_runpath=yes
14262 if test "$with_gnu_ld" = yes; then
14263 need_lib_prefix=no
14265 need_version=yes
14268 sysv4 | sysv4.3*)
14269 version_type=linux
14270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14271 soname_spec='${libname}${release}${shared_ext}$major'
14272 shlibpath_var=LD_LIBRARY_PATH
14273 case $host_vendor in
14274 sni)
14275 shlibpath_overrides_runpath=no
14276 need_lib_prefix=no
14277 runpath_var=LD_RUN_PATH
14279 siemens)
14280 need_lib_prefix=no
14282 motorola)
14283 need_lib_prefix=no
14284 need_version=no
14285 shlibpath_overrides_runpath=no
14286 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14288 esac
14291 sysv4*MP*)
14292 if test -d /usr/nec ;then
14293 version_type=linux
14294 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14295 soname_spec='$libname${shared_ext}.$major'
14296 shlibpath_var=LD_LIBRARY_PATH
14300 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14301 version_type=freebsd-elf
14302 need_lib_prefix=no
14303 need_version=no
14304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14305 soname_spec='${libname}${release}${shared_ext}$major'
14306 shlibpath_var=LD_LIBRARY_PATH
14307 shlibpath_overrides_runpath=yes
14308 hardcode_into_libs=yes
14309 if test "$with_gnu_ld" = yes; then
14310 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14311 else
14312 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14313 case $host_os in
14314 sco3.2v5*)
14315 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14317 esac
14319 sys_lib_dlsearch_path_spec='/usr/lib'
14322 tpf*)
14323 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14324 version_type=linux
14325 need_lib_prefix=no
14326 need_version=no
14327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14328 shlibpath_var=LD_LIBRARY_PATH
14329 shlibpath_overrides_runpath=no
14330 hardcode_into_libs=yes
14333 uts4*)
14334 version_type=linux
14335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14336 soname_spec='${libname}${release}${shared_ext}$major'
14337 shlibpath_var=LD_LIBRARY_PATH
14341 dynamic_linker=no
14343 esac
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14345 $as_echo "$dynamic_linker" >&6; }
14346 test "$dynamic_linker" = no && can_build_shared=no
14348 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14349 if test "$GCC" = yes; then
14350 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14353 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14354 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14356 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14357 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14398 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14399 hardcode_action_FC=
14400 if test -n "$hardcode_libdir_flag_spec_FC" ||
14401 test -n "$runpath_var_FC" ||
14402 test "X$hardcode_automatic_FC" = "Xyes" ; then
14404 # We can hardcode non-existent directories.
14405 if test "$hardcode_direct_FC" != no &&
14406 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14407 # have to relink, otherwise we might link with an installed library
14408 # when we should be linking with a yet-to-be-installed one
14409 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
14410 test "$hardcode_minus_L_FC" != no; then
14411 # Linking always hardcodes the temporary library directory.
14412 hardcode_action_FC=relink
14413 else
14414 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14415 hardcode_action_FC=immediate
14417 else
14418 # We cannot hardcode anything, or else we can only hardcode existing
14419 # directories.
14420 hardcode_action_FC=unsupported
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
14423 $as_echo "$hardcode_action_FC" >&6; }
14425 if test "$hardcode_action_FC" = relink ||
14426 test "$inherit_rpath_FC" = yes; then
14427 # Fast installation is not supported
14428 enable_fast_install=no
14429 elif test "$shlibpath_overrides_runpath" = yes ||
14430 test "$enable_shared" = no; then
14431 # Fast installation is not necessary
14432 enable_fast_install=needless
14441 fi # test -n "$compiler"
14443 GCC=$lt_save_GCC
14444 CC="$lt_save_CC"
14445 fi # test "$_lt_disable_FC" != yes
14447 ac_ext=c
14448 ac_cpp='$CPP $CPPFLAGS'
14449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14454 FCFLAGS="$FCFLAGS -Wall -L../libgfortran"
14456 # For libtool versioning info, format is CURRENT:REVISION:AGE
14457 libtool_VERSION=1:0:0
14460 # Check header files.
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14462 $as_echo_n "checking for ANSI C header files... " >&6; }
14463 if test "${ac_cv_header_stdc+set}" = set; then :
14464 $as_echo_n "(cached) " >&6
14465 else
14466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14467 /* end confdefs.h. */
14468 #include <stdlib.h>
14469 #include <stdarg.h>
14470 #include <string.h>
14471 #include <float.h>
14474 main ()
14478 return 0;
14480 _ACEOF
14481 if ac_fn_c_try_compile "$LINENO"; then :
14482 ac_cv_header_stdc=yes
14483 else
14484 ac_cv_header_stdc=no
14486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14488 if test $ac_cv_header_stdc = yes; then
14489 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14491 /* end confdefs.h. */
14492 #include <string.h>
14494 _ACEOF
14495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14496 $EGREP "memchr" >/dev/null 2>&1; then :
14498 else
14499 ac_cv_header_stdc=no
14501 rm -f conftest*
14505 if test $ac_cv_header_stdc = yes; then
14506 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14508 /* end confdefs.h. */
14509 #include <stdlib.h>
14511 _ACEOF
14512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14513 $EGREP "free" >/dev/null 2>&1; then :
14515 else
14516 ac_cv_header_stdc=no
14518 rm -f conftest*
14522 if test $ac_cv_header_stdc = yes; then
14523 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14524 if test "$cross_compiling" = yes; then :
14526 else
14527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14528 /* end confdefs.h. */
14529 #include <ctype.h>
14530 #include <stdlib.h>
14531 #if ((' ' & 0x0FF) == 0x020)
14532 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14533 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14534 #else
14535 # define ISLOWER(c) \
14536 (('a' <= (c) && (c) <= 'i') \
14537 || ('j' <= (c) && (c) <= 'r') \
14538 || ('s' <= (c) && (c) <= 'z'))
14539 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14540 #endif
14542 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14544 main ()
14546 int i;
14547 for (i = 0; i < 256; i++)
14548 if (XOR (islower (i), ISLOWER (i))
14549 || toupper (i) != TOUPPER (i))
14550 return 2;
14551 return 0;
14553 _ACEOF
14554 if ac_fn_c_try_run "$LINENO"; then :
14556 else
14557 ac_cv_header_stdc=no
14559 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14560 conftest.$ac_objext conftest.beam conftest.$ac_ext
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14566 $as_echo "$ac_cv_header_stdc" >&6; }
14567 if test $ac_cv_header_stdc = yes; then
14569 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14574 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14575 if test "${ac_cv_header_time+set}" = set; then :
14576 $as_echo_n "(cached) " >&6
14577 else
14578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14579 /* end confdefs.h. */
14580 #include <sys/types.h>
14581 #include <sys/time.h>
14582 #include <time.h>
14585 main ()
14587 if ((struct tm *) 0)
14588 return 0;
14590 return 0;
14592 _ACEOF
14593 if ac_fn_c_try_compile "$LINENO"; then :
14594 ac_cv_header_time=yes
14595 else
14596 ac_cv_header_time=no
14598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14601 $as_echo "$ac_cv_header_time" >&6; }
14602 if test $ac_cv_header_time = yes; then
14604 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
14609 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
14610 if test "${gcc_cv_header_string+set}" = set; then :
14611 $as_echo_n "(cached) " >&6
14612 else
14613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14614 /* end confdefs.h. */
14615 #include <string.h>
14616 #include <strings.h>
14618 main ()
14622 return 0;
14624 _ACEOF
14625 if ac_fn_c_try_compile "$LINENO"; then :
14626 gcc_cv_header_string=yes
14627 else
14628 gcc_cv_header_string=no
14630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
14633 $as_echo "$gcc_cv_header_string" >&6; }
14634 if test $gcc_cv_header_string = yes; then
14636 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
14640 for ac_header in pthread.h unistd.h semaphore.h sys/loadavg.h sys/sysctl.h sys/time.h
14641 do :
14642 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14643 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14644 eval as_val=\$$as_ac_Header
14645 if test "x$as_val" = x""yes; then :
14646 cat >>confdefs.h <<_ACEOF
14647 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14648 _ACEOF
14652 done
14657 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
14659 acx_cv_header_stdint=stddef.h
14660 acx_cv_header_stdint_kind="(already complete)"
14661 for i in stdint.h $inttype_headers; do
14662 unset ac_cv_type_uintptr_t
14663 unset ac_cv_type_uintmax_t
14664 unset ac_cv_type_int_least32_t
14665 unset ac_cv_type_int_fast32_t
14666 unset ac_cv_type_uint64_t
14667 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
14668 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
14669 #include <$i>
14671 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
14672 acx_cv_header_stdint=$i
14673 else
14674 continue
14677 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
14678 #include <$i>
14680 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
14682 else
14683 acx_cv_header_stdint_kind="(mostly complete)"
14686 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
14687 #include <$i>
14689 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
14691 else
14692 acx_cv_header_stdint_kind="(mostly complete)"
14695 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
14696 #include <$i>
14698 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
14700 else
14701 acx_cv_header_stdint_kind="(mostly complete)"
14704 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
14705 #include <$i>
14707 if test "x$ac_cv_type_uint64_t" = x""yes; then :
14709 else
14710 acx_cv_header_stdint_kind="(lacks uint64_t)"
14713 break
14714 done
14715 if test "$acx_cv_header_stdint" = stddef.h; then
14716 acx_cv_header_stdint_kind="(lacks uintmax_t)"
14717 for i in stdint.h $inttype_headers; do
14718 unset ac_cv_type_uintptr_t
14719 unset ac_cv_type_uint32_t
14720 unset ac_cv_type_uint64_t
14721 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
14722 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
14723 #include <$i>
14725 if test "x$ac_cv_type_uint32_t" = x""yes; then :
14726 acx_cv_header_stdint=$i
14727 else
14728 continue
14731 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
14732 #include <$i>
14734 if test "x$ac_cv_type_uint64_t" = x""yes; then :
14738 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
14739 #include <$i>
14741 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
14745 break
14746 done
14748 if test "$acx_cv_header_stdint" = stddef.h; then
14749 acx_cv_header_stdint_kind="(u_intXX_t style)"
14750 for i in sys/types.h $inttype_headers; do
14751 unset ac_cv_type_u_int32_t
14752 unset ac_cv_type_u_int64_t
14753 $as_echo_n "looking for u_intXX_t types in $i, " >&6
14754 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
14755 #include <$i>
14757 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
14758 acx_cv_header_stdint=$i
14759 else
14760 continue
14763 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
14764 #include <$i>
14766 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
14770 break
14771 done
14773 if test "$acx_cv_header_stdint" = stddef.h; then
14774 acx_cv_header_stdint_kind="(using manual detection)"
14777 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
14778 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
14779 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
14780 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
14781 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
14783 # ----------------- Summarize what we found so far
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
14786 $as_echo_n "checking what to include in gstdint.h... " >&6; }
14788 case `$as_basename -- gstdint.h ||
14789 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
14790 Xgstdint.h : 'X\(//\)$' \| \
14791 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
14792 $as_echo X/gstdint.h |
14793 sed '/^.*\/\([^/][^/]*\)\/*$/{
14794 s//\1/
14797 /^X\/\(\/\/\)$/{
14798 s//\1/
14801 /^X\/\(\/\).*/{
14802 s//\1/
14805 s/.*/./; q'` in
14806 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
14807 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14808 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
14809 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14810 *) ;;
14811 esac
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
14814 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
14816 # ----------------- done included file, check C basic types --------
14818 # Lacking an uintptr_t? Test size of void *
14819 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
14820 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
14821 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14822 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14823 # This bug is HP SR number 8606223364.
14824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
14825 $as_echo_n "checking size of void *... " >&6; }
14826 if test "${ac_cv_sizeof_void_p+set}" = set; then :
14827 $as_echo_n "(cached) " >&6
14828 else
14829 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
14831 else
14832 if test "$ac_cv_type_void_p" = yes; then
14833 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14834 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14835 { as_fn_set_status 77
14836 as_fn_error "cannot compute sizeof (void *)
14837 See \`config.log' for more details." "$LINENO" 5; }; }
14838 else
14839 ac_cv_sizeof_void_p=0
14844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
14845 $as_echo "$ac_cv_sizeof_void_p" >&6; }
14849 cat >>confdefs.h <<_ACEOF
14850 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14851 _ACEOF
14854 esac
14856 # Lacking an uint64_t? Test size of long
14857 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
14858 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
14859 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14860 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14861 # This bug is HP SR number 8606223364.
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
14863 $as_echo_n "checking size of long... " >&6; }
14864 if test "${ac_cv_sizeof_long+set}" = set; then :
14865 $as_echo_n "(cached) " >&6
14866 else
14867 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
14869 else
14870 if test "$ac_cv_type_long" = yes; then
14871 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14872 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14873 { as_fn_set_status 77
14874 as_fn_error "cannot compute sizeof (long)
14875 See \`config.log' for more details." "$LINENO" 5; }; }
14876 else
14877 ac_cv_sizeof_long=0
14882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
14883 $as_echo "$ac_cv_sizeof_long" >&6; }
14887 cat >>confdefs.h <<_ACEOF
14888 #define SIZEOF_LONG $ac_cv_sizeof_long
14889 _ACEOF
14892 esac
14894 if test $acx_cv_header_stdint = stddef.h; then
14895 # Lacking a good header? Test size of everything and deduce all types.
14896 # The cast to long int works around a bug in the HP C Compiler
14897 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14898 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14899 # This bug is HP SR number 8606223364.
14900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
14901 $as_echo_n "checking size of int... " >&6; }
14902 if test "${ac_cv_sizeof_int+set}" = set; then :
14903 $as_echo_n "(cached) " >&6
14904 else
14905 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
14907 else
14908 if test "$ac_cv_type_int" = yes; then
14909 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14910 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14911 { as_fn_set_status 77
14912 as_fn_error "cannot compute sizeof (int)
14913 See \`config.log' for more details." "$LINENO" 5; }; }
14914 else
14915 ac_cv_sizeof_int=0
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
14921 $as_echo "$ac_cv_sizeof_int" >&6; }
14925 cat >>confdefs.h <<_ACEOF
14926 #define SIZEOF_INT $ac_cv_sizeof_int
14927 _ACEOF
14930 # The cast to long int works around a bug in the HP C Compiler
14931 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14932 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14933 # This bug is HP SR number 8606223364.
14934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
14935 $as_echo_n "checking size of short... " >&6; }
14936 if test "${ac_cv_sizeof_short+set}" = set; then :
14937 $as_echo_n "(cached) " >&6
14938 else
14939 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
14941 else
14942 if test "$ac_cv_type_short" = yes; then
14943 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14944 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14945 { as_fn_set_status 77
14946 as_fn_error "cannot compute sizeof (short)
14947 See \`config.log' for more details." "$LINENO" 5; }; }
14948 else
14949 ac_cv_sizeof_short=0
14954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
14955 $as_echo "$ac_cv_sizeof_short" >&6; }
14959 cat >>confdefs.h <<_ACEOF
14960 #define SIZEOF_SHORT $ac_cv_sizeof_short
14961 _ACEOF
14964 # The cast to long int works around a bug in the HP C Compiler
14965 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14966 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14967 # This bug is HP SR number 8606223364.
14968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
14969 $as_echo_n "checking size of char... " >&6; }
14970 if test "${ac_cv_sizeof_char+set}" = set; then :
14971 $as_echo_n "(cached) " >&6
14972 else
14973 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
14975 else
14976 if test "$ac_cv_type_char" = yes; then
14977 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14978 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14979 { as_fn_set_status 77
14980 as_fn_error "cannot compute sizeof (char)
14981 See \`config.log' for more details." "$LINENO" 5; }; }
14982 else
14983 ac_cv_sizeof_char=0
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
14989 $as_echo "$ac_cv_sizeof_char" >&6; }
14993 cat >>confdefs.h <<_ACEOF
14994 #define SIZEOF_CHAR $ac_cv_sizeof_char
14995 _ACEOF
14999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
15000 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
15001 case "$ac_cv_sizeof_char" in
15002 1) acx_cv_type_int8_t=char ;;
15003 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
15004 esac
15005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
15006 $as_echo "$acx_cv_type_int8_t" >&6; }
15008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
15009 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
15010 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
15011 2:*) acx_cv_type_int16_t=int ;;
15012 *:2) acx_cv_type_int16_t=short ;;
15013 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
15014 esac
15015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
15016 $as_echo "$acx_cv_type_int16_t" >&6; }
15018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
15019 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
15020 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
15021 4:*) acx_cv_type_int32_t=int ;;
15022 *:4) acx_cv_type_int32_t=long ;;
15023 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
15024 esac
15025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
15026 $as_echo "$acx_cv_type_int32_t" >&6; }
15029 # These tests are here to make the output prettier
15031 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
15032 case "$ac_cv_sizeof_long" in
15033 8) acx_cv_type_int64_t=long ;;
15034 esac
15035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
15036 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
15038 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
15041 # Now we can use the above types
15043 if test "$ac_cv_type_uintptr_t" != yes; then
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
15045 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
15046 case $ac_cv_sizeof_void_p in
15047 2) acx_cv_type_intptr_t=int16_t ;;
15048 4) acx_cv_type_intptr_t=int32_t ;;
15049 8) acx_cv_type_intptr_t=int64_t ;;
15050 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
15051 esac
15052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
15053 $as_echo "$acx_cv_type_intptr_t" >&6; }
15056 # ----------------- done all checks, emit header -------------
15057 ac_config_commands="$ac_config_commands gstdint.h"
15062 XPCFLAGS=""
15063 case "$host" in
15064 *-*-rtems*)
15065 # RTEMS supports Pthreads, but the library is not available at GCC build time.
15067 nvptx*-*-*)
15068 # NVPTX does not support Pthreads, has its own code replacement.
15071 # Check to see if -pthread or -lpthread is needed. Prefer the former.
15072 # In case the pthread.h system header is not found, this test will fail.
15073 CFLAGS="$CFLAGS -pthread"
15074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15075 /* end confdefs.h. */
15076 #include <pthread.h>
15077 void *g(void *d) { return NULL; }
15079 main ()
15081 pthread_t t; pthread_create(&t,NULL,g,NULL);
15083 return 0;
15085 _ACEOF
15086 if ac_fn_c_try_link "$LINENO"; then :
15087 XPCFLAGS=" -Wc,-pthread"
15088 else
15089 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
15090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15091 /* end confdefs.h. */
15092 #include <pthread.h>
15093 void *g(void *d) { return NULL; }
15095 main ()
15097 pthread_t t; pthread_create(&t,NULL,g,NULL);
15099 return 0;
15101 _ACEOF
15102 if ac_fn_c_try_link "$LINENO"; then :
15104 else
15105 as_fn_error "Pthreads are required to build libgomp" "$LINENO" 5
15107 rm -f core conftest.err conftest.$ac_objext \
15108 conftest$ac_exeext conftest.$ac_ext
15110 rm -f core conftest.err conftest.$ac_objext \
15111 conftest$ac_exeext conftest.$ac_ext
15112 esac
15114 # Plugins for offload execution, configure.ac fragment. -*- mode: autoconf -*-
15116 # Copyright (C) 2014-2016 Free Software Foundation, Inc.
15118 # Contributed by Mentor Embedded.
15120 # This file is part of the GNU Offloading and Multi Processing Library
15121 # (libgomp).
15123 # Libgomp is free software; you can redistribute it and/or modify it
15124 # under the terms of the GNU General Public License as published by
15125 # the Free Software Foundation; either version 3, or (at your option)
15126 # any later version.
15128 # Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY
15129 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15130 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15131 # more details.
15133 # Under Section 7 of GPL version 3, you are granted additional
15134 # permissions described in the GCC Runtime Library Exception, version
15135 # 3.1, as published by the Free Software Foundation.
15137 # You should have received a copy of the GNU General Public License and
15138 # a copy of the GCC Runtime Library Exception along with this program;
15139 # see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
15140 # <http://www.gnu.org/licenses/>.
15142 offload_targets=
15144 plugin_support=yes
15145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
15146 $as_echo_n "checking for dlsym in -ldl... " >&6; }
15147 if test "${ac_cv_lib_dl_dlsym+set}" = set; then :
15148 $as_echo_n "(cached) " >&6
15149 else
15150 ac_check_lib_save_LIBS=$LIBS
15151 LIBS="-ldl $LIBS"
15152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15153 /* end confdefs.h. */
15155 /* Override any GCC internal prototype to avoid an error.
15156 Use char because int might match the return type of a GCC
15157 builtin and then its argument prototype would still apply. */
15158 #ifdef __cplusplus
15159 extern "C"
15160 #endif
15161 char dlsym ();
15163 main ()
15165 return dlsym ();
15167 return 0;
15169 _ACEOF
15170 if ac_fn_c_try_link "$LINENO"; then :
15171 ac_cv_lib_dl_dlsym=yes
15172 else
15173 ac_cv_lib_dl_dlsym=no
15175 rm -f core conftest.err conftest.$ac_objext \
15176 conftest$ac_exeext conftest.$ac_ext
15177 LIBS=$ac_check_lib_save_LIBS
15179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
15180 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
15181 if test "x$ac_cv_lib_dl_dlsym" = x""yes; then :
15182 cat >>confdefs.h <<_ACEOF
15183 #define HAVE_LIBDL 1
15184 _ACEOF
15186 LIBS="-ldl $LIBS"
15188 else
15189 plugin_support=no
15192 if test x"$plugin_support" = xyes; then
15194 $as_echo "#define PLUGIN_SUPPORT 1" >>confdefs.h
15196 elif test "x${enable_offload_targets-no}" != xno; then
15197 as_fn_error "Can't support offloading without support for plugins" "$LINENO" 5
15200 # Look for the CUDA driver package.
15201 CUDA_DRIVER_INCLUDE=
15202 CUDA_DRIVER_LIB=
15205 CUDA_DRIVER_CPPFLAGS=
15206 CUDA_DRIVER_LDFLAGS=
15208 # Check whether --with-cuda-driver was given.
15209 if test "${with_cuda_driver+set}" = set; then :
15210 withval=$with_cuda_driver;
15214 # Check whether --with-cuda-driver-include was given.
15215 if test "${with_cuda_driver_include+set}" = set; then :
15216 withval=$with_cuda_driver_include;
15220 # Check whether --with-cuda-driver-lib was given.
15221 if test "${with_cuda_driver_lib+set}" = set; then :
15222 withval=$with_cuda_driver_lib;
15225 if test "x$with_cuda_driver" != x; then
15226 CUDA_DRIVER_INCLUDE=$with_cuda_driver/include
15227 CUDA_DRIVER_LIB=$with_cuda_driver/lib
15229 if test "x$with_cuda_driver_include" != x; then
15230 CUDA_DRIVER_INCLUDE=$with_cuda_driver_include
15232 if test "x$with_cuda_driver_lib" != x; then
15233 CUDA_DRIVER_LIB=$with_cuda_driver_lib
15235 if test "x$CUDA_DRIVER_INCLUDE" != x; then
15236 CUDA_DRIVER_CPPFLAGS=-I$CUDA_DRIVER_INCLUDE
15238 if test "x$CUDA_DRIVER_LIB" != x; then
15239 CUDA_DRIVER_LDFLAGS=-L$CUDA_DRIVER_LIB
15242 PLUGIN_NVPTX=0
15243 PLUGIN_NVPTX_CPPFLAGS=
15244 PLUGIN_NVPTX_LDFLAGS=
15245 PLUGIN_NVPTX_LIBS=
15251 # Look for HSA run-time, its includes and libraries
15253 HSA_RUNTIME_INCLUDE=
15254 HSA_RUNTIME_LIB=
15257 HSA_RUNTIME_CPPFLAGS=
15258 HSA_RUNTIME_LDFLAGS=
15261 # Check whether --with-hsa-runtime was given.
15262 if test "${with_hsa_runtime+set}" = set; then :
15263 withval=$with_hsa_runtime;
15267 # Check whether --with-hsa-runtime-include was given.
15268 if test "${with_hsa_runtime_include+set}" = set; then :
15269 withval=$with_hsa_runtime_include;
15273 # Check whether --with-hsa-runtime-lib was given.
15274 if test "${with_hsa_runtime_lib+set}" = set; then :
15275 withval=$with_hsa_runtime_lib;
15278 if test "x$with_hsa_runtime" != x; then
15279 HSA_RUNTIME_INCLUDE=$with_hsa_runtime/include
15280 HSA_RUNTIME_LIB=$with_hsa_runtime/lib
15282 if test "x$with_hsa_runtime_include" != x; then
15283 HSA_RUNTIME_INCLUDE=$with_hsa_runtime_include
15285 if test "x$with_hsa_runtime_lib" != x; then
15286 HSA_RUNTIME_LIB=$with_hsa_runtime_lib
15288 if test "x$HSA_RUNTIME_INCLUDE" != x; then
15289 HSA_RUNTIME_CPPFLAGS=-I$HSA_RUNTIME_INCLUDE
15291 if test "x$HSA_RUNTIME_LIB" != x; then
15292 HSA_RUNTIME_LDFLAGS=-L$HSA_RUNTIME_LIB
15296 # Check whether --with-hsa-kmt-lib was given.
15297 if test "${with_hsa_kmt_lib+set}" = set; then :
15298 withval=$with_hsa_kmt_lib;
15301 if test "x$with_hsa_kmt_lib" != x; then
15302 HSA_RUNTIME_LDFLAGS="$HSA_RUNTIME_LDFLAGS -L$with_hsa_kmt_lib"
15303 HSA_RUNTIME_LIB=
15306 PLUGIN_HSA=0
15307 PLUGIN_HSA_CPPFLAGS=
15308 PLUGIN_HSA_LDFLAGS=
15309 PLUGIN_HSA_LIBS=
15317 # Get offload targets and path to install tree of offloading compiler.
15318 offload_additional_options=
15319 offload_additional_lib_paths=
15322 if test x"$enable_offload_targets" != x; then
15323 for tgt in `echo $enable_offload_targets | sed -e 's#,# #g'`; do
15324 tgt_dir=`echo $tgt | grep '=' | sed 's/.*=//'`
15325 tgt=`echo $tgt | sed 's/=.*//'`
15326 case $tgt in
15327 *-intelmic-* | *-intelmicemul-*)
15328 tgt_name=intelmic
15330 nvptx*)
15331 tgt_name=nvptx
15332 PLUGIN_NVPTX=$tgt
15333 PLUGIN_NVPTX_CPPFLAGS=$CUDA_DRIVER_CPPFLAGS
15334 PLUGIN_NVPTX_LDFLAGS=$CUDA_DRIVER_LDFLAGS
15335 PLUGIN_NVPTX_LIBS='-lcuda'
15337 PLUGIN_NVPTX_save_CPPFLAGS=$CPPFLAGS
15338 CPPFLAGS="$PLUGIN_NVPTX_CPPFLAGS $CPPFLAGS"
15339 PLUGIN_NVPTX_save_LDFLAGS=$LDFLAGS
15340 LDFLAGS="$PLUGIN_NVPTX_LDFLAGS $LDFLAGS"
15341 PLUGIN_NVPTX_save_LIBS=$LIBS
15342 LIBS="$PLUGIN_NVPTX_LIBS $LIBS"
15343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15344 /* end confdefs.h. */
15345 #include "cuda.h"
15347 main ()
15349 CUresult r = cuCtxPushCurrent (NULL);
15351 return 0;
15353 _ACEOF
15354 if ac_fn_c_try_link "$LINENO"; then :
15355 PLUGIN_NVPTX=1
15357 rm -f core conftest.err conftest.$ac_objext \
15358 conftest$ac_exeext conftest.$ac_ext
15359 CPPFLAGS=$PLUGIN_NVPTX_save_CPPFLAGS
15360 LDFLAGS=$PLUGIN_NVPTX_save_LDFLAGS
15361 LIBS=$PLUGIN_NVPTX_save_LIBS
15362 case $PLUGIN_NVPTX in
15363 nvptx*)
15364 PLUGIN_NVPTX=0
15365 as_fn_error "CUDA driver package required for nvptx support" "$LINENO" 5
15367 esac
15369 hsa*)
15370 case "${target}" in
15371 x86_64-*-*)
15372 case " ${CC} ${CFLAGS} " in
15373 *" -m32 "*)
15374 PLUGIN_HSA=0
15377 tgt_name=hsa
15378 PLUGIN_HSA=$tgt
15379 PLUGIN_HSA_CPPFLAGS=$HSA_RUNTIME_CPPFLAGS
15380 PLUGIN_HSA_LDFLAGS=$HSA_RUNTIME_LDFLAGS
15381 PLUGIN_HSA_LIBS="-lhsa-runtime64 -lhsakmt"
15383 PLUGIN_HSA_save_CPPFLAGS=$CPPFLAGS
15384 CPPFLAGS="$PLUGIN_HSA_CPPFLAGS $CPPFLAGS"
15385 PLUGIN_HSA_save_LDFLAGS=$LDFLAGS
15386 LDFLAGS="$PLUGIN_HSA_LDFLAGS $LDFLAGS"
15387 PLUGIN_HSA_save_LIBS=$LIBS
15388 LIBS="$PLUGIN_HSA_LIBS $LIBS"
15390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15391 /* end confdefs.h. */
15392 #include "hsa.h"
15394 main ()
15396 hsa_status_t status = hsa_init ()
15398 return 0;
15400 _ACEOF
15401 if ac_fn_c_try_link "$LINENO"; then :
15402 PLUGIN_HSA=1
15404 rm -f core conftest.err conftest.$ac_objext \
15405 conftest$ac_exeext conftest.$ac_ext
15406 CPPFLAGS=$PLUGIN_HSA_save_CPPFLAGS
15407 LDFLAGS=$PLUGIN_HSA_save_LDFLAGS
15408 LIBS=$PLUGIN_HSA_save_LIBS
15409 case $PLUGIN_HSA in
15410 hsa*)
15411 HSA_PLUGIN=0
15412 as_fn_error "HSA run-time package required for HSA support" "$LINENO" 5
15414 esac
15416 esac
15418 *-*-*)
15419 PLUGIN_HSA=0
15421 esac
15424 as_fn_error "unknown offload target specified" "$LINENO" 5
15426 esac
15427 if test x"$offload_targets" = x; then
15428 offload_targets=$tgt_name
15429 else
15430 offload_targets=$offload_targets,$tgt_name
15432 if test x"$tgt_dir" != x; then
15433 offload_additional_options="$offload_additional_options -B$tgt_dir/libexec/gcc/\$(target_alias)/\$(gcc_version) -B$tgt_dir/bin"
15434 offload_additional_lib_paths="$offload_additional_lib_paths:$tgt_dir/lib64:$tgt_dir/lib:$tgt_dir/lib32"
15435 else
15436 offload_additional_options="$offload_additional_options -B\$(libexecdir)/gcc/\$(target_alias)/\$(gcc_version) -B\$(bindir)"
15437 offload_additional_lib_paths="$offload_additional_lib_paths:$toolexeclibdir"
15439 done
15442 cat >>confdefs.h <<_ACEOF
15443 #define OFFLOAD_TARGETS "$offload_targets"
15444 _ACEOF
15446 if test $PLUGIN_NVPTX = 1; then
15447 PLUGIN_NVPTX_TRUE=
15448 PLUGIN_NVPTX_FALSE='#'
15449 else
15450 PLUGIN_NVPTX_TRUE='#'
15451 PLUGIN_NVPTX_FALSE=
15455 cat >>confdefs.h <<_ACEOF
15456 #define PLUGIN_NVPTX $PLUGIN_NVPTX
15457 _ACEOF
15459 if test $PLUGIN_HSA = 1; then
15460 PLUGIN_HSA_TRUE=
15461 PLUGIN_HSA_FALSE='#'
15462 else
15463 PLUGIN_HSA_TRUE='#'
15464 PLUGIN_HSA_FALSE=
15468 cat >>confdefs.h <<_ACEOF
15469 #define PLUGIN_HSA $PLUGIN_HSA
15470 _ACEOF
15474 # Check for functions needed.
15475 for ac_func in getloadavg clock_gettime strtoull
15476 do :
15477 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15478 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15479 eval as_val=\$$as_ac_var
15480 if test "x$as_val" = x""yes; then :
15481 cat >>confdefs.h <<_ACEOF
15482 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15483 _ACEOF
15486 done
15489 # Check for broken semaphore implementation on darwin.
15490 # sem_init returns: sem_init error: Function not implemented.
15491 case "$host" in
15492 *-darwin*)
15494 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
15497 esac
15499 # RTEMS specific checks
15500 case "$host" in
15501 *-*-rtems*)
15502 ac_fn_c_check_type "$LINENO" "struct _Mutex_Control" "ac_cv_type_struct__Mutex_Control" "#include <sys/lock.h>
15504 if test "x$ac_cv_type_struct__Mutex_Control" = x""yes; then :
15506 cat >>confdefs.h <<_ACEOF
15507 #define HAVE_STRUCT__MUTEX_CONTROL 1
15508 _ACEOF
15514 esac
15516 # Check whether --enable-linux-futex was given.
15517 if test "${enable_linux_futex+set}" = set; then :
15518 enableval=$enable_linux_futex;
15519 case "$enableval" in
15520 yes|no|default) ;;
15521 *) as_fn_error "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
15522 esac
15524 else
15525 enable_linux_futex=default
15529 case "$target" in
15530 *-linux*)
15531 case "$enable_linux_futex" in
15532 default)
15533 # If headers don't have gettid/futex syscalls definition, then
15534 # default to no, otherwise there will be compile time failures.
15535 # Otherwise, default to yes. If we don't detect we are
15536 # compiled/linked against NPTL and not cross-compiling, check
15537 # if programs are run by default against NPTL and if not, issue
15538 # a warning.
15539 enable_linux_futex=no
15540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15541 /* end confdefs.h. */
15542 #include <sys/syscall.h>
15543 int lk;
15545 main ()
15547 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15549 return 0;
15551 _ACEOF
15552 if ac_fn_c_try_link "$LINENO"; then :
15553 save_LIBS="$LIBS"
15554 LIBS="-lpthread $LIBS"
15555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15556 /* end confdefs.h. */
15557 #ifndef _GNU_SOURCE
15558 #define _GNU_SOURCE 1
15559 #endif
15560 #include <pthread.h>
15561 pthread_t th; void *status;
15563 main ()
15565 pthread_tryjoin_np (th, &status);
15567 return 0;
15569 _ACEOF
15570 if ac_fn_c_try_link "$LINENO"; then :
15571 enable_linux_futex=yes
15572 else
15573 if test x$cross_compiling = xno; then
15574 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
15575 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
15576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
15577 If so, please configure with --disable-linux-futex" >&5
15578 $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
15579 If so, please configure with --disable-linux-futex" >&2;}
15582 enable_linux_futex=yes
15584 rm -f core conftest.err conftest.$ac_objext \
15585 conftest$ac_exeext conftest.$ac_ext
15586 LIBS="$save_LIBS"
15588 rm -f core conftest.err conftest.$ac_objext \
15589 conftest$ac_exeext conftest.$ac_ext
15591 yes)
15592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15593 /* end confdefs.h. */
15594 #include <sys/syscall.h>
15595 int lk;
15597 main ()
15599 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15601 return 0;
15603 _ACEOF
15604 if ac_fn_c_try_link "$LINENO"; then :
15606 else
15607 as_fn_error "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
15609 rm -f core conftest.err conftest.$ac_objext \
15610 conftest$ac_exeext conftest.$ac_ext
15612 esac
15615 enable_linux_futex=no
15617 esac
15618 if test x$enable_linux_futex = xyes; then
15623 # Check for pthread_{,attr_}[sg]etaffinity_np.
15624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15625 /* end confdefs.h. */
15626 #define _GNU_SOURCE
15627 #include <pthread.h>
15629 main ()
15631 cpu_set_t cpuset;
15632 pthread_attr_t attr;
15633 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15634 if (CPU_ISSET (0, &cpuset))
15635 CPU_SET (1, &cpuset);
15636 else
15637 CPU_ZERO (&cpuset);
15638 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15639 pthread_attr_init (&attr);
15640 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15641 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15643 return 0;
15645 _ACEOF
15646 if ac_fn_c_try_link "$LINENO"; then :
15648 $as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h
15651 rm -f core conftest.err conftest.$ac_objext \
15652 conftest$ac_exeext conftest.$ac_ext
15654 # At least for glibc, clock_gettime is in librt. But don't pull that
15655 # in if it still doesn't give us the function we want.
15656 if test $ac_cv_func_clock_gettime = no; then
15657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
15658 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
15659 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
15660 $as_echo_n "(cached) " >&6
15661 else
15662 ac_check_lib_save_LIBS=$LIBS
15663 LIBS="-lrt $LIBS"
15664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15665 /* end confdefs.h. */
15667 /* Override any GCC internal prototype to avoid an error.
15668 Use char because int might match the return type of a GCC
15669 builtin and then its argument prototype would still apply. */
15670 #ifdef __cplusplus
15671 extern "C"
15672 #endif
15673 char clock_gettime ();
15675 main ()
15677 return clock_gettime ();
15679 return 0;
15681 _ACEOF
15682 if ac_fn_c_try_link "$LINENO"; then :
15683 ac_cv_lib_rt_clock_gettime=yes
15684 else
15685 ac_cv_lib_rt_clock_gettime=no
15687 rm -f core conftest.err conftest.$ac_objext \
15688 conftest$ac_exeext conftest.$ac_ext
15689 LIBS=$ac_check_lib_save_LIBS
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
15692 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15693 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
15694 LIBS="-lrt $LIBS"
15696 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
15702 # See if we support thread-local storage.
15705 # Check whether --enable-tls was given.
15706 if test "${enable_tls+set}" = set; then :
15707 enableval=$enable_tls;
15708 case "$enableval" in
15709 yes|no) ;;
15710 *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
15711 esac
15713 else
15714 enable_tls=yes
15718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
15719 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
15720 if test "${gcc_cv_have_tls+set}" = set; then :
15721 $as_echo_n "(cached) " >&6
15722 else
15724 if test "$cross_compiling" = yes; then :
15725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15726 /* end confdefs.h. */
15727 __thread int a; int b; int main() { return a = b; }
15728 _ACEOF
15729 if ac_fn_c_try_link "$LINENO"; then :
15730 chktls_save_LDFLAGS="$LDFLAGS"
15731 case $host in
15732 *-*-linux*)
15733 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
15735 esac
15736 chktls_save_CFLAGS="$CFLAGS"
15737 CFLAGS="-fPIC $CFLAGS"
15738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15739 /* end confdefs.h. */
15740 int f() { return 0; }
15741 _ACEOF
15742 if ac_fn_c_try_link "$LINENO"; then :
15743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15744 /* end confdefs.h. */
15745 __thread int a; int b; int f() { return a = b; }
15746 _ACEOF
15747 if ac_fn_c_try_link "$LINENO"; then :
15748 gcc_cv_have_tls=yes
15749 else
15750 gcc_cv_have_tls=no
15752 rm -f core conftest.err conftest.$ac_objext \
15753 conftest$ac_exeext conftest.$ac_ext
15754 else
15755 gcc_cv_have_tls=yes
15757 rm -f core conftest.err conftest.$ac_objext \
15758 conftest$ac_exeext conftest.$ac_ext
15759 CFLAGS="$chktls_save_CFLAGS"
15760 LDFLAGS="$chktls_save_LDFLAGS"
15761 else
15762 gcc_cv_have_tls=no
15764 rm -f core conftest.err conftest.$ac_objext \
15765 conftest$ac_exeext conftest.$ac_ext
15768 else
15769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15770 /* end confdefs.h. */
15771 __thread int a; int b; int main() { return a = b; }
15772 _ACEOF
15773 if ac_fn_c_try_run "$LINENO"; then :
15774 chktls_save_LDFLAGS="$LDFLAGS"
15775 LDFLAGS="-static $LDFLAGS"
15776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15777 /* end confdefs.h. */
15778 int main() { return 0; }
15779 _ACEOF
15780 if ac_fn_c_try_link "$LINENO"; then :
15781 if test "$cross_compiling" = yes; then :
15782 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15783 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15784 as_fn_error "cannot run test program while cross compiling
15785 See \`config.log' for more details." "$LINENO" 5; }
15786 else
15787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15788 /* end confdefs.h. */
15789 __thread int a; int b; int main() { return a = b; }
15790 _ACEOF
15791 if ac_fn_c_try_run "$LINENO"; then :
15792 gcc_cv_have_tls=yes
15793 else
15794 gcc_cv_have_tls=no
15796 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15797 conftest.$ac_objext conftest.beam conftest.$ac_ext
15800 else
15801 gcc_cv_have_tls=yes
15803 rm -f core conftest.err conftest.$ac_objext \
15804 conftest$ac_exeext conftest.$ac_ext
15805 LDFLAGS="$chktls_save_LDFLAGS"
15806 if test $gcc_cv_have_tls = yes; then
15807 chktls_save_CFLAGS="$CFLAGS"
15808 thread_CFLAGS=failed
15809 for flag in '' '-pthread' '-lpthread'; do
15810 CFLAGS="$flag $chktls_save_CFLAGS"
15811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15812 /* end confdefs.h. */
15813 #include <pthread.h>
15814 void *g(void *d) { return NULL; }
15816 main ()
15818 pthread_t t; pthread_create(&t,NULL,g,NULL);
15820 return 0;
15822 _ACEOF
15823 if ac_fn_c_try_link "$LINENO"; then :
15824 thread_CFLAGS="$flag"
15826 rm -f core conftest.err conftest.$ac_objext \
15827 conftest$ac_exeext conftest.$ac_ext
15828 if test "X$thread_CFLAGS" != Xfailed; then
15829 break
15831 done
15832 CFLAGS="$chktls_save_CFLAGS"
15833 if test "X$thread_CFLAGS" != Xfailed; then
15834 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
15835 if test "$cross_compiling" = yes; then :
15836 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15837 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15838 as_fn_error "cannot run test program while cross compiling
15839 See \`config.log' for more details." "$LINENO" 5; }
15840 else
15841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15842 /* end confdefs.h. */
15843 #include <pthread.h>
15844 __thread int a;
15845 static int *volatile a_in_other_thread;
15846 static void *
15847 thread_func (void *arg)
15849 a_in_other_thread = &a;
15850 return (void *)0;
15853 main ()
15855 pthread_t thread;
15856 void *thread_retval;
15857 int *volatile a_in_main_thread;
15858 a_in_main_thread = &a;
15859 if (pthread_create (&thread, (pthread_attr_t *)0,
15860 thread_func, (void *)0))
15861 return 0;
15862 if (pthread_join (thread, &thread_retval))
15863 return 0;
15864 return (a_in_other_thread == a_in_main_thread);
15866 return 0;
15868 _ACEOF
15869 if ac_fn_c_try_run "$LINENO"; then :
15870 gcc_cv_have_tls=yes
15871 else
15872 gcc_cv_have_tls=no
15874 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15875 conftest.$ac_objext conftest.beam conftest.$ac_ext
15878 CFLAGS="$chktls_save_CFLAGS"
15881 else
15882 gcc_cv_have_tls=no
15884 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15885 conftest.$ac_objext conftest.beam conftest.$ac_ext
15889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
15890 $as_echo "$gcc_cv_have_tls" >&6; }
15891 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
15893 $as_echo "#define HAVE_TLS 1" >>confdefs.h
15897 # See if we have emulated thread-local storage.
15899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the thread-local storage support is from emutls" >&5
15900 $as_echo_n "checking whether the thread-local storage support is from emutls... " >&6; }
15901 if test "${gcc_cv_use_emutls+set}" = set; then :
15902 $as_echo_n "(cached) " >&6
15903 else
15905 gcc_cv_use_emutls=no
15906 echo '__thread int a; int b; int main() { return a = b; }' > conftest.c
15907 if { ac_try='${CC-cc} -Werror -S -o conftest.s conftest.c 1>&5'
15908 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15909 (eval $ac_try) 2>&5
15910 ac_status=$?
15911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15912 test $ac_status = 0; }; }; then
15913 if grep __emutls_get_address conftest.s > /dev/null; then
15914 gcc_cv_use_emutls=yes
15917 rm -f conftest.*
15920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_use_emutls" >&5
15921 $as_echo "$gcc_cv_use_emutls" >&6; }
15922 if test "$gcc_cv_use_emutls" = "yes" ; then
15924 $as_echo "#define USE_EMUTLS 1" >>confdefs.h
15928 # See what sort of export controls are available.
15930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
15931 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
15932 if test "${libgomp_cv_have_attribute_visibility+set}" = set; then :
15933 $as_echo_n "(cached) " >&6
15934 else
15936 save_CFLAGS="$CFLAGS"
15937 CFLAGS="$CFLAGS -Werror"
15938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15939 /* end confdefs.h. */
15940 void __attribute__((visibility("hidden"))) foo(void) { }
15942 main ()
15946 return 0;
15948 _ACEOF
15949 if ac_fn_c_try_compile "$LINENO"; then :
15950 libgomp_cv_have_attribute_visibility=yes
15951 else
15952 libgomp_cv_have_attribute_visibility=no
15954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15955 CFLAGS="$save_CFLAGS"
15957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_visibility" >&5
15958 $as_echo "$libgomp_cv_have_attribute_visibility" >&6; }
15959 if test $libgomp_cv_have_attribute_visibility = yes; then
15961 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
15965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
15966 $as_echo_n "checking whether the target supports dllexport... " >&6; }
15967 if test "${libgomp_cv_have_attribute_dllexport+set}" = set; then :
15968 $as_echo_n "(cached) " >&6
15969 else
15971 save_CFLAGS="$CFLAGS"
15972 CFLAGS="$CFLAGS -Werror"
15973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15974 /* end confdefs.h. */
15975 void __attribute__((dllexport)) foo(void) { }
15977 main ()
15981 return 0;
15983 _ACEOF
15984 if ac_fn_c_try_compile "$LINENO"; then :
15985 libgomp_cv_have_attribute_dllexport=yes
15986 else
15987 libgomp_cv_have_attribute_dllexport=no
15989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15990 CFLAGS="$save_CFLAGS"
15992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_dllexport" >&5
15993 $as_echo "$libgomp_cv_have_attribute_dllexport" >&6; }
15994 if test $libgomp_cv_have_attribute_dllexport = yes; then
15996 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
16000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
16001 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
16002 if test "${libgomp_cv_have_attribute_alias+set}" = set; then :
16003 $as_echo_n "(cached) " >&6
16004 else
16006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16007 /* end confdefs.h. */
16009 void foo(void) { }
16010 extern void bar(void) __attribute__((alias("foo")));
16012 main ()
16014 bar();
16016 return 0;
16018 _ACEOF
16019 if ac_fn_c_try_link "$LINENO"; then :
16020 libgomp_cv_have_attribute_alias=yes
16021 else
16022 libgomp_cv_have_attribute_alias=no
16024 rm -f core conftest.err conftest.$ac_objext \
16025 conftest$ac_exeext conftest.$ac_ext
16027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_alias" >&5
16028 $as_echo "$libgomp_cv_have_attribute_alias" >&6; }
16029 if test $libgomp_cv_have_attribute_alias = yes; then
16031 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
16036 # Check whether --with-gnu-ld was given.
16037 if test "${with_gnu_ld+set}" = set; then :
16038 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16039 else
16040 with_gnu_ld=no
16043 ac_prog=ld
16044 if test "$GCC" = yes; then
16045 # Check if gcc -print-prog-name=ld gives a path.
16046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16047 $as_echo_n "checking for ld used by $CC... " >&6; }
16048 case $host in
16049 *-*-mingw*)
16050 # gcc leaves a trailing carriage return which upsets mingw
16051 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16053 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16054 esac
16055 case $ac_prog in
16056 # Accept absolute paths.
16057 [\\/]* | ?:[\\/]*)
16058 re_direlt='/[^/][^/]*/\.\./'
16059 # Canonicalize the pathname of ld
16060 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16061 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16062 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16063 done
16064 test -z "$LD" && LD="$ac_prog"
16067 # If it fails, then pretend we aren't using GCC.
16068 ac_prog=ld
16071 # If it is relative, then search for the first ld in PATH.
16072 with_gnu_ld=unknown
16074 esac
16075 elif test "$with_gnu_ld" = yes; then
16076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16077 $as_echo_n "checking for GNU ld... " >&6; }
16078 else
16079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16080 $as_echo_n "checking for non-GNU ld... " >&6; }
16082 if test "${lt_cv_path_LD+set}" = set; then :
16083 $as_echo_n "(cached) " >&6
16084 else
16085 if test -z "$LD"; then
16086 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16087 for ac_dir in $PATH; do
16088 IFS="$lt_save_ifs"
16089 test -z "$ac_dir" && ac_dir=.
16090 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16091 lt_cv_path_LD="$ac_dir/$ac_prog"
16092 # Check to see if the program is GNU ld. I'd rather use --version,
16093 # but apparently some variants of GNU ld only accept -v.
16094 # Break only if it was the GNU/non-GNU ld that we prefer.
16095 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16096 *GNU* | *'with BFD'*)
16097 test "$with_gnu_ld" != no && break
16100 test "$with_gnu_ld" != yes && break
16102 esac
16104 done
16105 IFS="$lt_save_ifs"
16106 else
16107 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16111 LD="$lt_cv_path_LD"
16112 if test -n "$LD"; then
16113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16114 $as_echo "$LD" >&6; }
16115 else
16116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16117 $as_echo "no" >&6; }
16119 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
16120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16121 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16122 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
16123 $as_echo_n "(cached) " >&6
16124 else
16125 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16126 case `$LD -v 2>&1 </dev/null` in
16127 *GNU* | *'with BFD'*)
16128 lt_cv_prog_gnu_ld=yes
16131 lt_cv_prog_gnu_ld=no
16133 esac
16135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16136 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16137 with_gnu_ld=$lt_cv_prog_gnu_ld
16145 # If we're not using GNU ld, then there's no point in even trying these
16146 # tests. Check for that first. We should have already tested for gld
16147 # by now (in libtool), but require it now just to be safe...
16148 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
16149 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
16153 # The name set by libtool depends on the version of libtool. Shame on us
16154 # for depending on an impl detail, but c'est la vie. Older versions used
16155 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
16156 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
16157 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
16158 # set (hence we're using an older libtool), then set it.
16159 if test x${with_gnu_ld+set} != xset; then
16160 if test x${ac_cv_prog_gnu_ld+set} != xset; then
16161 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
16162 with_gnu_ld=no
16163 else
16164 with_gnu_ld=$ac_cv_prog_gnu_ld
16168 # Start by getting the version number. I think the libtool test already
16169 # does some of this, but throws away the result.
16170 libgomp_ld_is_gold=no
16171 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
16172 libgomp_ld_is_gold=yes
16175 ldver=`$LD --version 2>/dev/null |
16176 sed -e 's/GNU gold /GNU ld /;s/GNU ld version /GNU ld /;s/GNU ld ([^)]*) /GNU ld /;s/GNU ld \([0-9.][0-9.]*\).*/\1/; q'`
16178 libgomp_gnu_ld_version=`echo $ldver | \
16179 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
16181 # Set --gc-sections.
16182 if test "$with_gnu_ld" = "notbroken"; then
16183 # GNU ld it is! Joy and bunny rabbits!
16185 # All these tests are for C++; save the language and the compiler flags.
16186 # Need to do this so that g++ won't try to link in libstdc++
16187 ac_test_CFLAGS="${CFLAGS+set}"
16188 ac_save_CFLAGS="$CFLAGS"
16189 CFLAGS='-x c++ -Wl,--gc-sections'
16191 # Check for -Wl,--gc-sections
16192 # XXX This test is broken at the moment, as symbols required for linking
16193 # are now in libsupc++ (not built yet). In addition, this test has
16194 # cored on solaris in the past. In addition, --gc-sections doesn't
16195 # really work at the moment (keeps on discarding used sections, first
16196 # .eh_frame and now some of the glibc sections for iconv).
16197 # Bzzzzt. Thanks for playing, maybe next time.
16198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
16199 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
16200 if test "$cross_compiling" = yes; then :
16201 ac_sectionLDflags=yes
16202 else
16203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16204 /* end confdefs.h. */
16206 int main(void)
16208 try { throw 1; }
16209 catch (...) { };
16210 return 0;
16213 _ACEOF
16214 if ac_fn_c_try_run "$LINENO"; then :
16215 ac_sectionLDflags=yes
16216 else
16217 ac_sectionLDflags=no
16219 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16220 conftest.$ac_objext conftest.beam conftest.$ac_ext
16223 if test "$ac_test_CFLAGS" = set; then
16224 CFLAGS="$ac_save_CFLAGS"
16225 else
16226 # this is the suspicious part
16227 CFLAGS=''
16229 if test "$ac_sectionLDflags" = "yes"; then
16230 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
16232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
16233 $as_echo "$ac_sectionLDflags" >&6; }
16236 # Set linker optimization flags.
16237 if test x"$with_gnu_ld" = x"yes"; then
16238 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
16246 # Check whether --enable-symvers was given.
16247 if test "${enable_symvers+set}" = set; then :
16248 enableval=$enable_symvers;
16249 case "$enableval" in
16250 yes|no|gnu*|sun) ;;
16251 *) as_fn_error "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
16252 esac
16254 else
16255 enable_symvers=yes
16260 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
16261 # don't know enough about $LD to do tricks...
16264 # Turn a 'yes' into a suitable default.
16265 if test x$enable_symvers = xyes ; then
16266 # FIXME The following test is too strict, in theory.
16267 if test $enable_shared = no || test "x$LD" = x; then
16268 enable_symvers=no
16269 else
16270 if test $with_gnu_ld = yes ; then
16271 enable_symvers=gnu
16272 else
16273 case ${target_os} in
16274 # Sun symbol versioning exists since Solaris 2.5.
16275 solaris2.[5-9]* | solaris2.1[0-9]*)
16276 enable_symvers=sun ;;
16278 enable_symvers=no ;;
16279 esac
16284 # Check if 'sun' was requested on non-Solaris 2 platforms.
16285 if test x$enable_symvers = xsun ; then
16286 case ${target_os} in
16287 solaris2*)
16288 # All fine.
16291 # Unlikely to work.
16292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
16293 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
16294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
16295 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
16296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16297 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16298 enable_symvers=no
16300 esac
16303 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
16304 if test $enable_symvers != no; then
16305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
16306 $as_echo_n "checking for shared libgcc... " >&6; }
16307 ac_save_CFLAGS="$CFLAGS"
16308 CFLAGS=' -lgcc_s'
16309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16310 /* end confdefs.h. */
16313 main ()
16315 return 0;
16317 return 0;
16319 _ACEOF
16320 if ac_fn_c_try_link "$LINENO"; then :
16321 libgomp_shared_libgcc=yes
16322 else
16323 libgomp_shared_libgcc=no
16325 rm -f core conftest.err conftest.$ac_objext \
16326 conftest$ac_exeext conftest.$ac_ext
16327 CFLAGS="$ac_save_CFLAGS"
16328 if test $libgomp_shared_libgcc = no; then
16329 cat > conftest.c <<EOF
16330 int main (void) { return 0; }
16332 libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
16333 -shared -shared-libgcc -o conftest.so \
16334 conftest.c -v 2>&1 >/dev/null \
16335 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
16336 rm -f conftest.c conftest.so
16337 if test x${libgomp_libgcc_s_suffix+set} = xset; then
16338 CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
16339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16340 /* end confdefs.h. */
16343 main ()
16345 return 0;
16347 return 0;
16349 _ACEOF
16350 if ac_fn_c_try_link "$LINENO"; then :
16351 libgomp_shared_libgcc=yes
16353 rm -f core conftest.err conftest.$ac_objext \
16354 conftest$ac_exeext conftest.$ac_ext
16355 CFLAGS="$ac_save_CFLAGS"
16358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_shared_libgcc" >&5
16359 $as_echo "$libgomp_shared_libgcc" >&6; }
16362 # For GNU ld, we need at least this version. The format is described in
16363 # LIBGOMP_CHECK_LINKER_FEATURES above.
16364 libgomp_min_gnu_ld_version=21400
16365 # XXXXXXXXXXX libgomp_gnu_ld_version=21390
16367 # Check to see if unspecified "yes" value can win, given results above.
16368 # Change "yes" into either "no" or a style name.
16369 if test $enable_symvers != no && test $libgomp_shared_libgcc = yes; then
16370 if test $with_gnu_ld = yes; then
16371 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
16372 enable_symvers=gnu
16373 elif test $libgomp_ld_is_gold = yes ; then
16374 enable_symvers=gnu
16375 else
16376 # The right tools, the right setup, but too old. Fallbacks?
16377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
16378 $as_echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
16379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
16380 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
16381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
16382 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
16383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
16384 $as_echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
16385 if test $libgomp_gnu_ld_version -ge 21200 ; then
16386 # Globbing fix is present, proper block support is not.
16387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16388 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16389 enable_symvers=no
16390 else
16391 # 2.11 or older.
16392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16393 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16394 enable_symvers=no
16397 elif test $enable_symvers = sun; then
16398 : All interesting versions of Sun ld support sun style symbol versioning.
16399 else
16400 # just fail for now
16401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
16402 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
16403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
16404 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
16405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
16406 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
16407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16408 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16409 enable_symvers=no
16413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports .symver directive" >&5
16414 $as_echo_n "checking whether the target supports .symver directive... " >&6; }
16415 if test "${libgomp_cv_have_as_symver_directive+set}" = set; then :
16416 $as_echo_n "(cached) " >&6
16417 else
16419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16420 /* end confdefs.h. */
16421 void foo (void); __asm (".symver foo, bar@SYMVER");
16423 main ()
16427 return 0;
16429 _ACEOF
16430 if ac_fn_c_try_compile "$LINENO"; then :
16431 libgomp_cv_have_as_symver_directive=yes
16432 else
16433 libgomp_cv_have_as_symver_directive=no
16435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_as_symver_directive" >&5
16438 $as_echo "$libgomp_cv_have_as_symver_directive" >&6; }
16439 if test $libgomp_cv_have_as_symver_directive = yes; then
16441 $as_echo "#define HAVE_AS_SYMVER_DIRECTIVE 1" >>confdefs.h
16445 if test $enable_symvers != no; then
16446 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
16447 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
16448 else
16449 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
16450 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
16453 if test $enable_symvers = gnu; then
16454 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE=
16455 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
16456 else
16457 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
16458 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE=
16461 if test $enable_symvers = sun; then
16462 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE=
16463 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
16464 else
16465 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
16466 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE=
16469 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
16470 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
16472 if test $enable_symvers != no ; then
16473 case ${target_os} in
16474 # The Solaris 2 runtime linker doesn't support the GNU extension of
16475 # binding the same symbol to different versions
16476 solaris2*)
16478 # Other platforms with GNU symbol versioning (GNU/Linux, more?) do.
16481 $as_echo "#define HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT 1" >>confdefs.h
16484 esac
16488 if test $enable_symvers = gnu; then
16490 $as_echo "#define LIBGOMP_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
16494 # Get target configury.
16495 . ${srcdir}/configure.tgt
16496 CFLAGS="$save_CFLAGS $XCFLAGS"
16498 # Check for __sync_val_compare_and_swap, but only after the target has
16499 # had a chance to set XCFLAGS.
16501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
16502 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
16503 if test "${libgomp_cv_have_sync_builtins+set}" = set; then :
16504 $as_echo_n "(cached) " >&6
16505 else
16507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16508 /* end confdefs.h. */
16511 main ()
16513 int foo; __sync_val_compare_and_swap(&foo, 0, 1);
16515 return 0;
16517 _ACEOF
16518 if ac_fn_c_try_link "$LINENO"; then :
16519 libgomp_cv_have_sync_builtins=yes
16520 else
16521 libgomp_cv_have_sync_builtins=no
16523 rm -f core conftest.err conftest.$ac_objext \
16524 conftest$ac_exeext conftest.$ac_ext
16526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_sync_builtins" >&5
16527 $as_echo "$libgomp_cv_have_sync_builtins" >&6; }
16528 if test $libgomp_cv_have_sync_builtins = yes; then
16530 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
16534 XCFLAGS="$XCFLAGS$XPCFLAGS"
16540 # Cleanup and exit.
16541 CFLAGS="$save_CFLAGS"
16542 cat >confcache <<\_ACEOF
16543 # This file is a shell script that caches the results of configure
16544 # tests run on this system so they can be shared between configure
16545 # scripts and configure runs, see configure's option --config-cache.
16546 # It is not useful on other systems. If it contains results you don't
16547 # want to keep, you may remove or edit it.
16549 # config.status only pays attention to the cache file if you give it
16550 # the --recheck option to rerun configure.
16552 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16553 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16554 # following values.
16556 _ACEOF
16558 # The following way of writing the cache mishandles newlines in values,
16559 # but we know of no workaround that is simple, portable, and efficient.
16560 # So, we kill variables containing newlines.
16561 # Ultrix sh set writes to stderr and can't be redirected directly,
16562 # and sets the high bit in the cache file unless we assign to the vars.
16564 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16565 eval ac_val=\$$ac_var
16566 case $ac_val in #(
16567 *${as_nl}*)
16568 case $ac_var in #(
16569 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16570 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16571 esac
16572 case $ac_var in #(
16573 _ | IFS | as_nl) ;; #(
16574 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16575 *) { eval $ac_var=; unset $ac_var;} ;;
16576 esac ;;
16577 esac
16578 done
16580 (set) 2>&1 |
16581 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16582 *${as_nl}ac_space=\ *)
16583 # `set' does not quote correctly, so add quotes: double-quote
16584 # substitution turns \\\\ into \\, and sed turns \\ into \.
16585 sed -n \
16586 "s/'/'\\\\''/g;
16587 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16588 ;; #(
16590 # `set' quotes correctly as required by POSIX, so do not add quotes.
16591 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16593 esac |
16594 sort
16596 sed '
16597 /^ac_cv_env_/b end
16598 t clear
16599 :clear
16600 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16601 t end
16602 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16603 :end' >>confcache
16604 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16605 if test -w "$cache_file"; then
16606 test "x$cache_file" != "x/dev/null" &&
16607 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16608 $as_echo "$as_me: updating cache $cache_file" >&6;}
16609 cat confcache >$cache_file
16610 else
16611 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16612 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16615 rm -f confcache
16617 if test ${multilib} = yes; then
16618 multilib_arg="--enable-multilib"
16619 else
16620 multilib_arg=
16623 # Set up the set of libraries that we need to link against for libgomp.
16624 # Note that the GOMP_SELF_SPEC in gcc.c may force -pthread,
16625 # which will force linkage against -lpthread (or equivalent for the system).
16626 # That's not 100% ideal, but about the best we can do easily.
16627 if test $enable_shared = yes; then
16628 link_gomp="-lgomp %{static: $LIBS}"
16629 else
16630 link_gomp="-lgomp $LIBS"
16634 if test "$ac_cv_fc_compiler_gnu" = yes; then
16635 USE_FORTRAN_TRUE=
16636 USE_FORTRAN_FALSE='#'
16637 else
16638 USE_FORTRAN_TRUE='#'
16639 USE_FORTRAN_FALSE=
16643 # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
16644 # and export AC_COMPUTE_INT. If that happens, then we'll need to remove
16645 # the underscore here and update the PREREQ. If it doesn't, then we'll
16646 # need to copy this macro to our acinclude.m4.
16647 save_CFLAGS="$CFLAGS"
16648 for i in $config_path; do
16649 if test -f $srcdir/config/$i/omp-lock.h; then
16650 CFLAGS="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h"
16651 break
16653 done
16655 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_t)" "OMP_LOCK_SIZE" ""; then :
16657 else
16658 as_fn_error "unsupported system, cannot find sizeof (omp_lock_t)" "$LINENO" 5
16662 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_t)" "OMP_LOCK_ALIGN" ""; then :
16667 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_t)" "OMP_NEST_LOCK_SIZE" ""; then :
16672 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_t)" "OMP_NEST_LOCK_ALIGN" ""; then :
16677 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_25_t)" "OMP_LOCK_25_SIZE" ""; then :
16679 else
16680 as_fn_error "unsupported system, cannot find sizeof (omp_lock_25_t)" "$LINENO" 5
16684 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_25_t)" "OMP_LOCK_25_ALIGN" ""; then :
16689 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_SIZE" ""; then :
16694 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_ALIGN" ""; then :
16700 # If the lock fits in an integer, then arrange for Fortran to use that
16701 # integer. If it doesn't, then arrange for Fortran to use a pointer.
16702 # Except that we don't have a way at present to multi-lib the installed
16703 # Fortran modules, so we assume 8 bytes for pointers, regardless of the
16704 # actual target.
16705 OMP_LOCK_KIND=$OMP_LOCK_SIZE
16706 OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
16707 if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
16708 OMP_LOCK_KIND=8
16710 if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
16711 OMP_NEST_LOCK_KIND=8
16713 OMP_LOCK_25_KIND=$OMP_LOCK_25_SIZE
16714 OMP_NEST_LOCK_25_KIND=$OMP_NEST_LOCK_25_SIZE
16715 if test $OMP_LOCK_25_SIZE -gt 8 || test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then
16716 OMP_LOCK_25_KIND=8
16718 if test $OMP_NEST_LOCK_25_SIZE -gt 8 || test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then
16719 OMP_NEST_LOCK_25_KIND=8
16734 CFLAGS="$save_CFLAGS"
16736 ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
16738 ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
16740 ac_config_files="$ac_config_files testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in"
16742 cat >confcache <<\_ACEOF
16743 # This file is a shell script that caches the results of configure
16744 # tests run on this system so they can be shared between configure
16745 # scripts and configure runs, see configure's option --config-cache.
16746 # It is not useful on other systems. If it contains results you don't
16747 # want to keep, you may remove or edit it.
16749 # config.status only pays attention to the cache file if you give it
16750 # the --recheck option to rerun configure.
16752 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16753 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16754 # following values.
16756 _ACEOF
16758 # The following way of writing the cache mishandles newlines in values,
16759 # but we know of no workaround that is simple, portable, and efficient.
16760 # So, we kill variables containing newlines.
16761 # Ultrix sh set writes to stderr and can't be redirected directly,
16762 # and sets the high bit in the cache file unless we assign to the vars.
16764 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16765 eval ac_val=\$$ac_var
16766 case $ac_val in #(
16767 *${as_nl}*)
16768 case $ac_var in #(
16769 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16770 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16771 esac
16772 case $ac_var in #(
16773 _ | IFS | as_nl) ;; #(
16774 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16775 *) { eval $ac_var=; unset $ac_var;} ;;
16776 esac ;;
16777 esac
16778 done
16780 (set) 2>&1 |
16781 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16782 *${as_nl}ac_space=\ *)
16783 # `set' does not quote correctly, so add quotes: double-quote
16784 # substitution turns \\\\ into \\, and sed turns \\ into \.
16785 sed -n \
16786 "s/'/'\\\\''/g;
16787 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16788 ;; #(
16790 # `set' quotes correctly as required by POSIX, so do not add quotes.
16791 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16793 esac |
16794 sort
16796 sed '
16797 /^ac_cv_env_/b end
16798 t clear
16799 :clear
16800 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16801 t end
16802 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16803 :end' >>confcache
16804 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16805 if test -w "$cache_file"; then
16806 test "x$cache_file" != "x/dev/null" &&
16807 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16808 $as_echo "$as_me: updating cache $cache_file" >&6;}
16809 cat confcache >$cache_file
16810 else
16811 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16812 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16815 rm -f confcache
16817 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16818 # Let make expand exec_prefix.
16819 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16821 DEFS=-DHAVE_CONFIG_H
16823 ac_libobjs=
16824 ac_ltlibobjs=
16825 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16826 # 1. Remove the extension, and $U if already installed.
16827 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16828 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16829 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16830 # will be set to the directory where LIBOBJS objects are built.
16831 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16832 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16833 done
16834 LIBOBJS=$ac_libobjs
16836 LTLIBOBJS=$ac_ltlibobjs
16839 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
16840 as_fn_error "conditional \"GENINSRC\" was never defined.
16841 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16843 if test -n "$EXEEXT"; then
16844 am__EXEEXT_TRUE=
16845 am__EXEEXT_FALSE='#'
16846 else
16847 am__EXEEXT_TRUE='#'
16848 am__EXEEXT_FALSE=
16851 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16852 as_fn_error "conditional \"AMDEP\" was never defined.
16853 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16855 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16856 as_fn_error "conditional \"am__fastdepCC\" was never defined.
16857 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16859 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
16860 as_fn_error "conditional \"BUILD_INFO\" was never defined.
16861 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16863 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16864 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
16865 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16867 if test -z "${PLUGIN_NVPTX_TRUE}" && test -z "${PLUGIN_NVPTX_FALSE}"; then
16868 as_fn_error "conditional \"PLUGIN_NVPTX\" was never defined.
16869 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16871 if test -z "${PLUGIN_HSA_TRUE}" && test -z "${PLUGIN_HSA_FALSE}"; then
16872 as_fn_error "conditional \"PLUGIN_HSA\" was never defined.
16873 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16875 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
16876 as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
16877 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16879 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
16880 as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
16881 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16883 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
16884 as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
16885 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16887 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
16888 as_fn_error "conditional \"USE_FORTRAN\" was never defined.
16889 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16892 : ${CONFIG_STATUS=./config.status}
16893 ac_write_fail=0
16894 ac_clean_files_save=$ac_clean_files
16895 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16896 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16897 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16898 as_write_fail=0
16899 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16900 #! $SHELL
16901 # Generated by $as_me.
16902 # Run this file to recreate the current configuration.
16903 # Compiler output produced by configure, useful for debugging
16904 # configure, is in config.log if it exists.
16906 debug=false
16907 ac_cs_recheck=false
16908 ac_cs_silent=false
16910 SHELL=\${CONFIG_SHELL-$SHELL}
16911 export SHELL
16912 _ASEOF
16913 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16914 ## -------------------- ##
16915 ## M4sh Initialization. ##
16916 ## -------------------- ##
16918 # Be more Bourne compatible
16919 DUALCASE=1; export DUALCASE # for MKS sh
16920 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16921 emulate sh
16922 NULLCMD=:
16923 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16924 # is contrary to our usage. Disable this feature.
16925 alias -g '${1+"$@"}'='"$@"'
16926 setopt NO_GLOB_SUBST
16927 else
16928 case `(set -o) 2>/dev/null` in #(
16929 *posix*) :
16930 set -o posix ;; #(
16931 *) :
16933 esac
16937 as_nl='
16939 export as_nl
16940 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16941 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16942 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16943 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16944 # Prefer a ksh shell builtin over an external printf program on Solaris,
16945 # but without wasting forks for bash or zsh.
16946 if test -z "$BASH_VERSION$ZSH_VERSION" \
16947 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16948 as_echo='print -r --'
16949 as_echo_n='print -rn --'
16950 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16951 as_echo='printf %s\n'
16952 as_echo_n='printf %s'
16953 else
16954 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16955 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16956 as_echo_n='/usr/ucb/echo -n'
16957 else
16958 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16959 as_echo_n_body='eval
16960 arg=$1;
16961 case $arg in #(
16962 *"$as_nl"*)
16963 expr "X$arg" : "X\\(.*\\)$as_nl";
16964 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16965 esac;
16966 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16968 export as_echo_n_body
16969 as_echo_n='sh -c $as_echo_n_body as_echo'
16971 export as_echo_body
16972 as_echo='sh -c $as_echo_body as_echo'
16975 # The user is always right.
16976 if test "${PATH_SEPARATOR+set}" != set; then
16977 PATH_SEPARATOR=:
16978 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16979 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16980 PATH_SEPARATOR=';'
16985 # IFS
16986 # We need space, tab and new line, in precisely that order. Quoting is
16987 # there to prevent editors from complaining about space-tab.
16988 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16989 # splitting by setting IFS to empty value.)
16990 IFS=" "" $as_nl"
16992 # Find who we are. Look in the path if we contain no directory separator.
16993 case $0 in #((
16994 *[\\/]* ) as_myself=$0 ;;
16995 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16996 for as_dir in $PATH
16998 IFS=$as_save_IFS
16999 test -z "$as_dir" && as_dir=.
17000 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17001 done
17002 IFS=$as_save_IFS
17005 esac
17006 # We did not find ourselves, most probably we were run as `sh COMMAND'
17007 # in which case we are not to be found in the path.
17008 if test "x$as_myself" = x; then
17009 as_myself=$0
17011 if test ! -f "$as_myself"; then
17012 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17013 exit 1
17016 # Unset variables that we do not need and which cause bugs (e.g. in
17017 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17018 # suppresses any "Segmentation fault" message there. '((' could
17019 # trigger a bug in pdksh 5.2.14.
17020 for as_var in BASH_ENV ENV MAIL MAILPATH
17021 do eval test x\${$as_var+set} = xset \
17022 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17023 done
17024 PS1='$ '
17025 PS2='> '
17026 PS4='+ '
17028 # NLS nuisances.
17029 LC_ALL=C
17030 export LC_ALL
17031 LANGUAGE=C
17032 export LANGUAGE
17034 # CDPATH.
17035 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17038 # as_fn_error ERROR [LINENO LOG_FD]
17039 # ---------------------------------
17040 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17041 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17042 # script with status $?, using 1 if that was 0.
17043 as_fn_error ()
17045 as_status=$?; test $as_status -eq 0 && as_status=1
17046 if test "$3"; then
17047 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17048 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
17050 $as_echo "$as_me: error: $1" >&2
17051 as_fn_exit $as_status
17052 } # as_fn_error
17055 # as_fn_set_status STATUS
17056 # -----------------------
17057 # Set $? to STATUS, without forking.
17058 as_fn_set_status ()
17060 return $1
17061 } # as_fn_set_status
17063 # as_fn_exit STATUS
17064 # -----------------
17065 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17066 as_fn_exit ()
17068 set +e
17069 as_fn_set_status $1
17070 exit $1
17071 } # as_fn_exit
17073 # as_fn_unset VAR
17074 # ---------------
17075 # Portably unset VAR.
17076 as_fn_unset ()
17078 { eval $1=; unset $1;}
17080 as_unset=as_fn_unset
17081 # as_fn_append VAR VALUE
17082 # ----------------------
17083 # Append the text in VALUE to the end of the definition contained in VAR. Take
17084 # advantage of any shell optimizations that allow amortized linear growth over
17085 # repeated appends, instead of the typical quadratic growth present in naive
17086 # implementations.
17087 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17088 eval 'as_fn_append ()
17090 eval $1+=\$2
17092 else
17093 as_fn_append ()
17095 eval $1=\$$1\$2
17097 fi # as_fn_append
17099 # as_fn_arith ARG...
17100 # ------------------
17101 # Perform arithmetic evaluation on the ARGs, and store the result in the
17102 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17103 # must be portable across $(()) and expr.
17104 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17105 eval 'as_fn_arith ()
17107 as_val=$(( $* ))
17109 else
17110 as_fn_arith ()
17112 as_val=`expr "$@" || test $? -eq 1`
17114 fi # as_fn_arith
17117 if expr a : '\(a\)' >/dev/null 2>&1 &&
17118 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17119 as_expr=expr
17120 else
17121 as_expr=false
17124 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17125 as_basename=basename
17126 else
17127 as_basename=false
17130 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17131 as_dirname=dirname
17132 else
17133 as_dirname=false
17136 as_me=`$as_basename -- "$0" ||
17137 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17138 X"$0" : 'X\(//\)$' \| \
17139 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17140 $as_echo X/"$0" |
17141 sed '/^.*\/\([^/][^/]*\)\/*$/{
17142 s//\1/
17145 /^X\/\(\/\/\)$/{
17146 s//\1/
17149 /^X\/\(\/\).*/{
17150 s//\1/
17153 s/.*/./; q'`
17155 # Avoid depending upon Character Ranges.
17156 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17157 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17158 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17159 as_cr_digits='0123456789'
17160 as_cr_alnum=$as_cr_Letters$as_cr_digits
17162 ECHO_C= ECHO_N= ECHO_T=
17163 case `echo -n x` in #(((((
17164 -n*)
17165 case `echo 'xy\c'` in
17166 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17167 xy) ECHO_C='\c';;
17168 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17169 ECHO_T=' ';;
17170 esac;;
17172 ECHO_N='-n';;
17173 esac
17175 rm -f conf$$ conf$$.exe conf$$.file
17176 if test -d conf$$.dir; then
17177 rm -f conf$$.dir/conf$$.file
17178 else
17179 rm -f conf$$.dir
17180 mkdir conf$$.dir 2>/dev/null
17182 if (echo >conf$$.file) 2>/dev/null; then
17183 if ln -s conf$$.file conf$$ 2>/dev/null; then
17184 as_ln_s='ln -s'
17185 # ... but there are two gotchas:
17186 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17187 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17188 # In both cases, we have to default to `cp -p'.
17189 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17190 as_ln_s='cp -p'
17191 elif ln conf$$.file conf$$ 2>/dev/null; then
17192 as_ln_s=ln
17193 else
17194 as_ln_s='cp -p'
17196 else
17197 as_ln_s='cp -p'
17199 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17200 rmdir conf$$.dir 2>/dev/null
17203 # as_fn_mkdir_p
17204 # -------------
17205 # Create "$as_dir" as a directory, including parents if necessary.
17206 as_fn_mkdir_p ()
17209 case $as_dir in #(
17210 -*) as_dir=./$as_dir;;
17211 esac
17212 test -d "$as_dir" || eval $as_mkdir_p || {
17213 as_dirs=
17214 while :; do
17215 case $as_dir in #(
17216 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17217 *) as_qdir=$as_dir;;
17218 esac
17219 as_dirs="'$as_qdir' $as_dirs"
17220 as_dir=`$as_dirname -- "$as_dir" ||
17221 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17222 X"$as_dir" : 'X\(//\)[^/]' \| \
17223 X"$as_dir" : 'X\(//\)$' \| \
17224 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17225 $as_echo X"$as_dir" |
17226 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17227 s//\1/
17230 /^X\(\/\/\)[^/].*/{
17231 s//\1/
17234 /^X\(\/\/\)$/{
17235 s//\1/
17238 /^X\(\/\).*/{
17239 s//\1/
17242 s/.*/./; q'`
17243 test -d "$as_dir" && break
17244 done
17245 test -z "$as_dirs" || eval "mkdir $as_dirs"
17246 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
17249 } # as_fn_mkdir_p
17250 if mkdir -p . 2>/dev/null; then
17251 as_mkdir_p='mkdir -p "$as_dir"'
17252 else
17253 test -d ./-p && rmdir ./-p
17254 as_mkdir_p=false
17257 if test -x / >/dev/null 2>&1; then
17258 as_test_x='test -x'
17259 else
17260 if ls -dL / >/dev/null 2>&1; then
17261 as_ls_L_option=L
17262 else
17263 as_ls_L_option=
17265 as_test_x='
17266 eval sh -c '\''
17267 if test -d "$1"; then
17268 test -d "$1/.";
17269 else
17270 case $1 in #(
17271 -*)set "./$1";;
17272 esac;
17273 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17274 ???[sx]*):;;*)false;;esac;fi
17275 '\'' sh
17278 as_executable_p=$as_test_x
17280 # Sed expression to map a string onto a valid CPP name.
17281 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17283 # Sed expression to map a string onto a valid variable name.
17284 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17287 exec 6>&1
17288 ## ----------------------------------- ##
17289 ## Main body of $CONFIG_STATUS script. ##
17290 ## ----------------------------------- ##
17291 _ASEOF
17292 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17294 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17295 # Save the log message, to keep $0 and so on meaningful, and to
17296 # report actual input values of CONFIG_FILES etc. instead of their
17297 # values after options handling.
17298 ac_log="
17299 This file was extended by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
17300 generated by GNU Autoconf 2.64. Invocation command line was
17302 CONFIG_FILES = $CONFIG_FILES
17303 CONFIG_HEADERS = $CONFIG_HEADERS
17304 CONFIG_LINKS = $CONFIG_LINKS
17305 CONFIG_COMMANDS = $CONFIG_COMMANDS
17306 $ $0 $@
17308 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17311 _ACEOF
17313 case $ac_config_files in *"
17314 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17315 esac
17317 case $ac_config_headers in *"
17318 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17319 esac
17322 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17323 # Files that config.status was made for.
17324 config_files="$ac_config_files"
17325 config_headers="$ac_config_headers"
17326 config_commands="$ac_config_commands"
17328 _ACEOF
17330 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17331 ac_cs_usage="\
17332 \`$as_me' instantiates files and other configuration actions
17333 from templates according to the current configuration. Unless the files
17334 and actions are specified as TAGs, all are instantiated by default.
17336 Usage: $0 [OPTION]... [TAG]...
17338 -h, --help print this help, then exit
17339 -V, --version print version number and configuration settings, then exit
17340 -q, --quiet, --silent
17341 do not print progress messages
17342 -d, --debug don't remove temporary files
17343 --recheck update $as_me by reconfiguring in the same conditions
17344 --file=FILE[:TEMPLATE]
17345 instantiate the configuration file FILE
17346 --header=FILE[:TEMPLATE]
17347 instantiate the configuration header FILE
17349 Configuration files:
17350 $config_files
17352 Configuration headers:
17353 $config_headers
17355 Configuration commands:
17356 $config_commands
17358 Report bugs to the package provider.
17359 GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
17360 General help using GNU software: <http://www.gnu.org/gethelp/>."
17362 _ACEOF
17363 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17364 ac_cs_version="\\
17365 GNU Offloading and Multi Processing Runtime Library config.status 1.0
17366 configured by $0, generated by GNU Autoconf 2.64,
17367 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17369 Copyright (C) 2009 Free Software Foundation, Inc.
17370 This config.status script is free software; the Free Software Foundation
17371 gives unlimited permission to copy, distribute and modify it."
17373 ac_pwd='$ac_pwd'
17374 srcdir='$srcdir'
17375 INSTALL='$INSTALL'
17376 MKDIR_P='$MKDIR_P'
17377 AWK='$AWK'
17378 test -n "\$AWK" || AWK=awk
17379 _ACEOF
17381 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17382 # The default lists apply if the user does not specify any file.
17383 ac_need_defaults=:
17384 while test $# != 0
17386 case $1 in
17387 --*=*)
17388 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17389 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17390 ac_shift=:
17393 ac_option=$1
17394 ac_optarg=$2
17395 ac_shift=shift
17397 esac
17399 case $ac_option in
17400 # Handling of the options.
17401 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17402 ac_cs_recheck=: ;;
17403 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17404 $as_echo "$ac_cs_version"; exit ;;
17405 --debug | --debu | --deb | --de | --d | -d )
17406 debug=: ;;
17407 --file | --fil | --fi | --f )
17408 $ac_shift
17409 case $ac_optarg in
17410 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17411 esac
17412 as_fn_append CONFIG_FILES " '$ac_optarg'"
17413 ac_need_defaults=false;;
17414 --header | --heade | --head | --hea )
17415 $ac_shift
17416 case $ac_optarg in
17417 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17418 esac
17419 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17420 ac_need_defaults=false;;
17421 --he | --h)
17422 # Conflict between --help and --header
17423 as_fn_error "ambiguous option: \`$1'
17424 Try \`$0 --help' for more information.";;
17425 --help | --hel | -h )
17426 $as_echo "$ac_cs_usage"; exit ;;
17427 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17428 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17429 ac_cs_silent=: ;;
17431 # This is an error.
17432 -*) as_fn_error "unrecognized option: \`$1'
17433 Try \`$0 --help' for more information." ;;
17435 *) as_fn_append ac_config_targets " $1"
17436 ac_need_defaults=false ;;
17438 esac
17439 shift
17440 done
17442 ac_configure_extra_args=
17444 if $ac_cs_silent; then
17445 exec 6>/dev/null
17446 ac_configure_extra_args="$ac_configure_extra_args --silent"
17449 _ACEOF
17450 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17451 if \$ac_cs_recheck; then
17452 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17453 shift
17454 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17455 CONFIG_SHELL='$SHELL'
17456 export CONFIG_SHELL
17457 exec "\$@"
17460 _ACEOF
17461 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17462 exec 5>>config.log
17464 echo
17465 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17466 ## Running $as_me. ##
17467 _ASBOX
17468 $as_echo "$ac_log"
17469 } >&5
17471 _ACEOF
17472 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17474 # INIT-COMMANDS
17477 srcdir="$srcdir"
17478 host="$host"
17479 target="$target"
17480 with_multisubdir="$with_multisubdir"
17481 with_multisrctop="$with_multisrctop"
17482 with_target_subdir="$with_target_subdir"
17483 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17484 multi_basedir="$multi_basedir"
17485 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17486 CC="$CC"
17487 CXX="$CXX"
17488 GFORTRAN="$GFORTRAN"
17489 GCJ="$GCJ"
17490 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17493 # The HP-UX ksh and POSIX shell print the target directory to stdout
17494 # if CDPATH is set.
17495 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17497 sed_quote_subst='$sed_quote_subst'
17498 double_quote_subst='$double_quote_subst'
17499 delay_variable_subst='$delay_variable_subst'
17500 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17501 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17502 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17503 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17504 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17505 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17506 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17507 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17508 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17509 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17510 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17511 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17512 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17513 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17514 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17515 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17516 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17517 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17518 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17519 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17520 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17521 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17522 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17523 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17524 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17525 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17526 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17527 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17528 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17529 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17530 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17531 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17532 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17533 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17534 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17535 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17536 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17537 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17538 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17539 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17540 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17541 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17542 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17543 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17544 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17545 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17546 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17547 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17548 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"`'
17549 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17550 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17551 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17552 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17553 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17554 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17555 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17556 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17557 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17558 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17559 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17560 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17561 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17562 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17563 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17564 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17565 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17566 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17567 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17568 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17569 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17570 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17571 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17572 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17573 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17574 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17575 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17576 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17577 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17578 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17579 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17580 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17581 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17582 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17583 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17584 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17585 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17586 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17587 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17588 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17589 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17590 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17591 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17592 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17593 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17594 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17595 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17596 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17597 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17598 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17599 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17600 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17601 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17602 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17603 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17604 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17605 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17606 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17607 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17608 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17609 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17610 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17611 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17612 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17613 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17614 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17615 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17616 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17617 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17618 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17619 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17620 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17621 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17622 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17623 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17624 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17625 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17626 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
17627 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
17628 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
17629 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17630 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
17631 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
17632 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
17633 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
17634 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
17635 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
17636 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
17637 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
17638 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
17639 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17640 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17641 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
17642 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
17643 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
17644 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17645 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17646 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
17647 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17648 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
17649 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17650 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17651 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17652 hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
17653 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
17654 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
17655 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
17656 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
17657 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
17658 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
17659 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
17660 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
17661 fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
17662 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
17663 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
17664 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17665 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17666 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
17667 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
17668 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
17669 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
17670 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
17671 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
17672 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
17673 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
17674 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
17676 LTCC='$LTCC'
17677 LTCFLAGS='$LTCFLAGS'
17678 compiler='$compiler_DEFAULT'
17680 # A function that is used when there is no print builtin or printf.
17681 func_fallback_echo ()
17683 eval 'cat <<_LTECHO_EOF
17685 _LTECHO_EOF'
17688 # Quote evaled strings.
17689 for var in SHELL \
17690 ECHO \
17691 SED \
17692 GREP \
17693 EGREP \
17694 FGREP \
17695 LD \
17696 NM \
17697 LN_S \
17698 lt_SP2NL \
17699 lt_NL2SP \
17700 reload_flag \
17701 OBJDUMP \
17702 deplibs_check_method \
17703 file_magic_cmd \
17704 AR \
17705 AR_FLAGS \
17706 STRIP \
17707 RANLIB \
17708 CC \
17709 CFLAGS \
17710 compiler \
17711 lt_cv_sys_global_symbol_pipe \
17712 lt_cv_sys_global_symbol_to_cdecl \
17713 lt_cv_sys_global_symbol_to_c_name_address \
17714 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17715 lt_prog_compiler_no_builtin_flag \
17716 lt_prog_compiler_wl \
17717 lt_prog_compiler_pic \
17718 lt_prog_compiler_static \
17719 lt_cv_prog_compiler_c_o \
17720 need_locks \
17721 DSYMUTIL \
17722 NMEDIT \
17723 LIPO \
17724 OTOOL \
17725 OTOOL64 \
17726 shrext_cmds \
17727 export_dynamic_flag_spec \
17728 whole_archive_flag_spec \
17729 compiler_needs_object \
17730 with_gnu_ld \
17731 allow_undefined_flag \
17732 no_undefined_flag \
17733 hardcode_libdir_flag_spec \
17734 hardcode_libdir_flag_spec_ld \
17735 hardcode_libdir_separator \
17736 fix_srcfile_path \
17737 exclude_expsyms \
17738 include_expsyms \
17739 file_list_spec \
17740 variables_saved_for_relink \
17741 libname_spec \
17742 library_names_spec \
17743 soname_spec \
17744 install_override_mode \
17745 finish_eval \
17746 old_striplib \
17747 striplib \
17748 compiler_lib_search_dirs \
17749 predep_objects \
17750 postdep_objects \
17751 predeps \
17752 postdeps \
17753 compiler_lib_search_path \
17754 LD_FC \
17755 reload_flag_FC \
17756 compiler_FC \
17757 lt_prog_compiler_no_builtin_flag_FC \
17758 lt_prog_compiler_wl_FC \
17759 lt_prog_compiler_pic_FC \
17760 lt_prog_compiler_static_FC \
17761 lt_cv_prog_compiler_c_o_FC \
17762 export_dynamic_flag_spec_FC \
17763 whole_archive_flag_spec_FC \
17764 compiler_needs_object_FC \
17765 with_gnu_ld_FC \
17766 allow_undefined_flag_FC \
17767 no_undefined_flag_FC \
17768 hardcode_libdir_flag_spec_FC \
17769 hardcode_libdir_flag_spec_ld_FC \
17770 hardcode_libdir_separator_FC \
17771 fix_srcfile_path_FC \
17772 exclude_expsyms_FC \
17773 include_expsyms_FC \
17774 file_list_spec_FC \
17775 compiler_lib_search_dirs_FC \
17776 predep_objects_FC \
17777 postdep_objects_FC \
17778 predeps_FC \
17779 postdeps_FC \
17780 compiler_lib_search_path_FC; do
17781 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17782 *[\\\\\\\`\\"\\\$]*)
17783 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17786 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17788 esac
17789 done
17791 # Double-quote double-evaled strings.
17792 for var in reload_cmds \
17793 old_postinstall_cmds \
17794 old_postuninstall_cmds \
17795 old_archive_cmds \
17796 extract_expsyms_cmds \
17797 old_archive_from_new_cmds \
17798 old_archive_from_expsyms_cmds \
17799 archive_cmds \
17800 archive_expsym_cmds \
17801 module_cmds \
17802 module_expsym_cmds \
17803 export_symbols_cmds \
17804 prelink_cmds \
17805 postinstall_cmds \
17806 postuninstall_cmds \
17807 finish_cmds \
17808 sys_lib_search_path_spec \
17809 sys_lib_dlsearch_path_spec \
17810 reload_cmds_FC \
17811 old_archive_cmds_FC \
17812 old_archive_from_new_cmds_FC \
17813 old_archive_from_expsyms_cmds_FC \
17814 archive_cmds_FC \
17815 archive_expsym_cmds_FC \
17816 module_cmds_FC \
17817 module_expsym_cmds_FC \
17818 export_symbols_cmds_FC \
17819 prelink_cmds_FC; do
17820 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17821 *[\\\\\\\`\\"\\\$]*)
17822 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17825 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17827 esac
17828 done
17830 ac_aux_dir='$ac_aux_dir'
17831 xsi_shell='$xsi_shell'
17832 lt_shell_append='$lt_shell_append'
17834 # See if we are running on zsh, and set the options which allow our
17835 # commands through without removal of \ escapes INIT.
17836 if test -n "\${ZSH_VERSION+set}" ; then
17837 setopt NO_GLOB_SUBST
17841 PACKAGE='$PACKAGE'
17842 VERSION='$VERSION'
17843 TIMESTAMP='$TIMESTAMP'
17844 RM='$RM'
17845 ofile='$ofile'
17852 GCC="$GCC"
17853 CC="$CC"
17854 acx_cv_header_stdint="$acx_cv_header_stdint"
17855 acx_cv_type_int8_t="$acx_cv_type_int8_t"
17856 acx_cv_type_int16_t="$acx_cv_type_int16_t"
17857 acx_cv_type_int32_t="$acx_cv_type_int32_t"
17858 acx_cv_type_int64_t="$acx_cv_type_int64_t"
17859 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
17860 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
17861 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
17862 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
17863 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
17864 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
17865 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
17866 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
17867 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
17870 _ACEOF
17872 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17874 # Handling of arguments.
17875 for ac_config_target in $ac_config_targets
17877 case $ac_config_target in
17878 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17879 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17880 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17881 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17882 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
17883 "omp.h") CONFIG_FILES="$CONFIG_FILES omp.h" ;;
17884 "omp_lib.h") CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
17885 "omp_lib.f90") CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
17886 "libgomp_f.h") CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
17887 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17888 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17889 "libgomp.spec") CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
17890 "testsuite/libgomp-test-support.pt.exp") CONFIG_FILES="$CONFIG_FILES testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in" ;;
17892 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17893 esac
17894 done
17897 # If the user did not use the arguments to specify the items to instantiate,
17898 # then the envvar interface is used. Set only those that are not.
17899 # We use the long form for the default assignment because of an extremely
17900 # bizarre bug on SunOS 4.1.3.
17901 if $ac_need_defaults; then
17902 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17903 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17904 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17907 # Have a temporary directory for convenience. Make it in the build tree
17908 # simply because there is no reason against having it here, and in addition,
17909 # creating and moving files from /tmp can sometimes cause problems.
17910 # Hook for its removal unless debugging.
17911 # Note that there is a small window in which the directory will not be cleaned:
17912 # after its creation but before its name has been assigned to `$tmp'.
17913 $debug ||
17915 tmp=
17916 trap 'exit_status=$?
17917 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17919 trap 'as_fn_exit 1' 1 2 13 15
17921 # Create a (secure) tmp directory for tmp files.
17924 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17925 test -n "$tmp" && test -d "$tmp"
17926 } ||
17928 tmp=./conf$$-$RANDOM
17929 (umask 077 && mkdir "$tmp")
17930 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17932 # Set up the scripts for CONFIG_FILES section.
17933 # No need to generate them if there are no CONFIG_FILES.
17934 # This happens for instance with `./config.status config.h'.
17935 if test -n "$CONFIG_FILES"; then
17938 ac_cr=`echo X | tr X '\015'`
17939 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17940 # But we know of no other shell where ac_cr would be empty at this
17941 # point, so we can use a bashism as a fallback.
17942 if test "x$ac_cr" = x; then
17943 eval ac_cr=\$\'\\r\'
17945 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17946 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17947 ac_cs_awk_cr='\r'
17948 else
17949 ac_cs_awk_cr=$ac_cr
17952 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17953 _ACEOF
17957 echo "cat >conf$$subs.awk <<_ACEOF" &&
17958 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17959 echo "_ACEOF"
17960 } >conf$$subs.sh ||
17961 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17962 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17963 ac_delim='%!_!# '
17964 for ac_last_try in false false false false false :; do
17965 . ./conf$$subs.sh ||
17966 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17968 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17969 if test $ac_delim_n = $ac_delim_num; then
17970 break
17971 elif $ac_last_try; then
17972 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17973 else
17974 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17976 done
17977 rm -f conf$$subs.sh
17979 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17980 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17981 _ACEOF
17982 sed -n '
17984 s/^/S["/; s/!.*/"]=/
17987 s/^[^!]*!//
17988 :repl
17989 t repl
17990 s/'"$ac_delim"'$//
17991 t delim
17994 s/\(.\{148\}\).*/\1/
17995 t more1
17996 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17999 b repl
18000 :more1
18001 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18004 s/.\{148\}//
18005 t nl
18006 :delim
18008 s/\(.\{148\}\).*/\1/
18009 t more2
18010 s/["\\]/\\&/g; s/^/"/; s/$/"/
18013 :more2
18014 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18017 s/.\{148\}//
18018 t delim
18019 ' <conf$$subs.awk | sed '
18020 /^[^""]/{
18022 s/\n//
18024 ' >>$CONFIG_STATUS || ac_write_fail=1
18025 rm -f conf$$subs.awk
18026 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18027 _ACAWK
18028 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18029 for (key in S) S_is_set[key] = 1
18030 FS = "\a"
18034 line = $ 0
18035 nfields = split(line, field, "@")
18036 substed = 0
18037 len = length(field[1])
18038 for (i = 2; i < nfields; i++) {
18039 key = field[i]
18040 keylen = length(key)
18041 if (S_is_set[key]) {
18042 value = S[key]
18043 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18044 len += length(value) + length(field[++i])
18045 substed = 1
18046 } else
18047 len += 1 + keylen
18050 print line
18053 _ACAWK
18054 _ACEOF
18055 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18056 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18057 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18058 else
18060 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18061 || as_fn_error "could not setup config files machinery" "$LINENO" 5
18062 _ACEOF
18064 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18065 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18066 # trailing colons and then remove the whole line if VPATH becomes empty
18067 # (actually we leave an empty line to preserve line numbers).
18068 if test "x$srcdir" = x.; then
18069 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18070 s/:*\$(srcdir):*/:/
18071 s/:*\${srcdir}:*/:/
18072 s/:*@srcdir@:*/:/
18073 s/^\([^=]*=[ ]*\):*/\1/
18074 s/:*$//
18075 s/^[^=]*=[ ]*$//
18079 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18080 fi # test -n "$CONFIG_FILES"
18082 # Set up the scripts for CONFIG_HEADERS section.
18083 # No need to generate them if there are no CONFIG_HEADERS.
18084 # This happens for instance with `./config.status Makefile'.
18085 if test -n "$CONFIG_HEADERS"; then
18086 cat >"$tmp/defines.awk" <<\_ACAWK ||
18087 BEGIN {
18088 _ACEOF
18090 # Transform confdefs.h into an awk script `defines.awk', embedded as
18091 # here-document in config.status, that substitutes the proper values into
18092 # config.h.in to produce config.h.
18094 # Create a delimiter string that does not exist in confdefs.h, to ease
18095 # handling of long lines.
18096 ac_delim='%!_!# '
18097 for ac_last_try in false false :; do
18098 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18099 if test -z "$ac_t"; then
18100 break
18101 elif $ac_last_try; then
18102 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
18103 else
18104 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18106 done
18108 # For the awk script, D is an array of macro values keyed by name,
18109 # likewise P contains macro parameters if any. Preserve backslash
18110 # newline sequences.
18112 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18113 sed -n '
18114 s/.\{148\}/&'"$ac_delim"'/g
18115 t rset
18116 :rset
18117 s/^[ ]*#[ ]*define[ ][ ]*/ /
18118 t def
18120 :def
18121 s/\\$//
18122 t bsnl
18123 s/["\\]/\\&/g
18124 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18125 D["\1"]=" \3"/p
18126 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18128 :bsnl
18129 s/["\\]/\\&/g
18130 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18131 D["\1"]=" \3\\\\\\n"\\/p
18132 t cont
18133 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18134 t cont
18136 :cont
18138 s/.\{148\}/&'"$ac_delim"'/g
18139 t clear
18140 :clear
18141 s/\\$//
18142 t bsnlc
18143 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18145 :bsnlc
18146 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18147 b cont
18148 ' <confdefs.h | sed '
18149 s/'"$ac_delim"'/"\\\
18150 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18152 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18153 for (key in D) D_is_set[key] = 1
18154 FS = "\a"
18156 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18157 line = \$ 0
18158 split(line, arg, " ")
18159 if (arg[1] == "#") {
18160 defundef = arg[2]
18161 mac1 = arg[3]
18162 } else {
18163 defundef = substr(arg[1], 2)
18164 mac1 = arg[2]
18166 split(mac1, mac2, "(") #)
18167 macro = mac2[1]
18168 prefix = substr(line, 1, index(line, defundef) - 1)
18169 if (D_is_set[macro]) {
18170 # Preserve the white space surrounding the "#".
18171 print prefix "define", macro P[macro] D[macro]
18172 next
18173 } else {
18174 # Replace #undef with comments. This is necessary, for example,
18175 # in the case of _POSIX_SOURCE, which is predefined and required
18176 # on some systems where configure will not decide to define it.
18177 if (defundef == "undef") {
18178 print "/*", prefix defundef, macro, "*/"
18179 next
18183 { print }
18184 _ACAWK
18185 _ACEOF
18186 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18187 as_fn_error "could not setup config headers machinery" "$LINENO" 5
18188 fi # test -n "$CONFIG_HEADERS"
18191 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18192 shift
18193 for ac_tag
18195 case $ac_tag in
18196 :[FHLC]) ac_mode=$ac_tag; continue;;
18197 esac
18198 case $ac_mode$ac_tag in
18199 :[FHL]*:*);;
18200 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
18201 :[FH]-) ac_tag=-:-;;
18202 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18203 esac
18204 ac_save_IFS=$IFS
18205 IFS=:
18206 set x $ac_tag
18207 IFS=$ac_save_IFS
18208 shift
18209 ac_file=$1
18210 shift
18212 case $ac_mode in
18213 :L) ac_source=$1;;
18214 :[FH])
18215 ac_file_inputs=
18216 for ac_f
18218 case $ac_f in
18219 -) ac_f="$tmp/stdin";;
18220 *) # Look for the file first in the build tree, then in the source tree
18221 # (if the path is not absolute). The absolute path cannot be DOS-style,
18222 # because $ac_f cannot contain `:'.
18223 test -f "$ac_f" ||
18224 case $ac_f in
18225 [\\/$]*) false;;
18226 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18227 esac ||
18228 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18229 esac
18230 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18231 as_fn_append ac_file_inputs " '$ac_f'"
18232 done
18234 # Let's still pretend it is `configure' which instantiates (i.e., don't
18235 # use $as_me), people would be surprised to read:
18236 # /* config.h. Generated by config.status. */
18237 configure_input='Generated from '`
18238 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18239 `' by configure.'
18240 if test x"$ac_file" != x-; then
18241 configure_input="$ac_file. $configure_input"
18242 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18243 $as_echo "$as_me: creating $ac_file" >&6;}
18245 # Neutralize special characters interpreted by sed in replacement strings.
18246 case $configure_input in #(
18247 *\&* | *\|* | *\\* )
18248 ac_sed_conf_input=`$as_echo "$configure_input" |
18249 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18250 *) ac_sed_conf_input=$configure_input;;
18251 esac
18253 case $ac_tag in
18254 *:-:* | *:-) cat >"$tmp/stdin" \
18255 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
18256 esac
18258 esac
18260 ac_dir=`$as_dirname -- "$ac_file" ||
18261 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18262 X"$ac_file" : 'X\(//\)[^/]' \| \
18263 X"$ac_file" : 'X\(//\)$' \| \
18264 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18265 $as_echo X"$ac_file" |
18266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18267 s//\1/
18270 /^X\(\/\/\)[^/].*/{
18271 s//\1/
18274 /^X\(\/\/\)$/{
18275 s//\1/
18278 /^X\(\/\).*/{
18279 s//\1/
18282 s/.*/./; q'`
18283 as_dir="$ac_dir"; as_fn_mkdir_p
18284 ac_builddir=.
18286 case "$ac_dir" in
18287 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18289 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18290 # A ".." for each directory in $ac_dir_suffix.
18291 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18292 case $ac_top_builddir_sub in
18293 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18294 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18295 esac ;;
18296 esac
18297 ac_abs_top_builddir=$ac_pwd
18298 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18299 # for backward compatibility:
18300 ac_top_builddir=$ac_top_build_prefix
18302 case $srcdir in
18303 .) # We are building in place.
18304 ac_srcdir=.
18305 ac_top_srcdir=$ac_top_builddir_sub
18306 ac_abs_top_srcdir=$ac_pwd ;;
18307 [\\/]* | ?:[\\/]* ) # Absolute name.
18308 ac_srcdir=$srcdir$ac_dir_suffix;
18309 ac_top_srcdir=$srcdir
18310 ac_abs_top_srcdir=$srcdir ;;
18311 *) # Relative name.
18312 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18313 ac_top_srcdir=$ac_top_build_prefix$srcdir
18314 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18315 esac
18316 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18319 case $ac_mode in
18322 # CONFIG_FILE
18325 case $INSTALL in
18326 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18327 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18328 esac
18329 ac_MKDIR_P=$MKDIR_P
18330 case $MKDIR_P in
18331 [\\/$]* | ?:[\\/]* ) ;;
18332 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18333 esac
18334 _ACEOF
18336 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18337 # If the template does not know about datarootdir, expand it.
18338 # FIXME: This hack should be removed a few years after 2.60.
18339 ac_datarootdir_hack=; ac_datarootdir_seen=
18340 ac_sed_dataroot='
18341 /datarootdir/ {
18345 /@datadir@/p
18346 /@docdir@/p
18347 /@infodir@/p
18348 /@localedir@/p
18349 /@mandir@/p'
18350 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18351 *datarootdir*) ac_datarootdir_seen=yes;;
18352 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18354 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18355 _ACEOF
18356 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18357 ac_datarootdir_hack='
18358 s&@datadir@&$datadir&g
18359 s&@docdir@&$docdir&g
18360 s&@infodir@&$infodir&g
18361 s&@localedir@&$localedir&g
18362 s&@mandir@&$mandir&g
18363 s&\\\${datarootdir}&$datarootdir&g' ;;
18364 esac
18365 _ACEOF
18367 # Neutralize VPATH when `$srcdir' = `.'.
18368 # Shell code in configure.ac might set extrasub.
18369 # FIXME: do we really want to maintain this feature?
18370 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18371 ac_sed_extra="$ac_vpsub
18372 $extrasub
18373 _ACEOF
18374 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18376 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18377 s|@configure_input@|$ac_sed_conf_input|;t t
18378 s&@top_builddir@&$ac_top_builddir_sub&;t t
18379 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18380 s&@srcdir@&$ac_srcdir&;t t
18381 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18382 s&@top_srcdir@&$ac_top_srcdir&;t t
18383 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18384 s&@builddir@&$ac_builddir&;t t
18385 s&@abs_builddir@&$ac_abs_builddir&;t t
18386 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18387 s&@INSTALL@&$ac_INSTALL&;t t
18388 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18389 $ac_datarootdir_hack
18391 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18392 || as_fn_error "could not create $ac_file" "$LINENO" 5
18394 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18395 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18396 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18398 which seems to be undefined. Please make sure it is defined." >&5
18399 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18400 which seems to be undefined. Please make sure it is defined." >&2;}
18402 rm -f "$tmp/stdin"
18403 case $ac_file in
18404 -) cat "$tmp/out" && rm -f "$tmp/out";;
18405 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18406 esac \
18407 || as_fn_error "could not create $ac_file" "$LINENO" 5
18411 # CONFIG_HEADER
18413 if test x"$ac_file" != x-; then
18415 $as_echo "/* $configure_input */" \
18416 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18417 } >"$tmp/config.h" \
18418 || as_fn_error "could not create $ac_file" "$LINENO" 5
18419 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18420 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18421 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18422 else
18423 rm -f "$ac_file"
18424 mv "$tmp/config.h" "$ac_file" \
18425 || as_fn_error "could not create $ac_file" "$LINENO" 5
18427 else
18428 $as_echo "/* $configure_input */" \
18429 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18430 || as_fn_error "could not create -" "$LINENO" 5
18432 # Compute "$ac_file"'s index in $config_headers.
18433 _am_arg="$ac_file"
18434 _am_stamp_count=1
18435 for _am_header in $config_headers :; do
18436 case $_am_header in
18437 $_am_arg | $_am_arg:* )
18438 break ;;
18440 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18441 esac
18442 done
18443 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18444 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18445 X"$_am_arg" : 'X\(//\)[^/]' \| \
18446 X"$_am_arg" : 'X\(//\)$' \| \
18447 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18448 $as_echo X"$_am_arg" |
18449 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18450 s//\1/
18453 /^X\(\/\/\)[^/].*/{
18454 s//\1/
18457 /^X\(\/\/\)$/{
18458 s//\1/
18461 /^X\(\/\).*/{
18462 s//\1/
18465 s/.*/./; q'`/stamp-h$_am_stamp_count
18468 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18469 $as_echo "$as_me: executing $ac_file commands" >&6;}
18471 esac
18474 case $ac_file$ac_mode in
18475 "default-1":C)
18476 # Only add multilib support code if we just rebuilt the top-level
18477 # Makefile.
18478 case " $CONFIG_FILES " in
18479 *" Makefile "*)
18480 ac_file=Makefile . ${multi_basedir}/config-ml.in
18482 esac ;;
18483 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18484 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18485 # are listed without --file. Let's play safe and only enable the eval
18486 # if we detect the quoting.
18487 case $CONFIG_FILES in
18488 *\'*) eval set x "$CONFIG_FILES" ;;
18489 *) set x $CONFIG_FILES ;;
18490 esac
18491 shift
18492 for mf
18494 # Strip MF so we end up with the name of the file.
18495 mf=`echo "$mf" | sed -e 's/:.*$//'`
18496 # Check whether this is an Automake generated Makefile or not.
18497 # We used to match only the files named `Makefile.in', but
18498 # some people rename them; so instead we look at the file content.
18499 # Grep'ing the first line is not enough: some people post-process
18500 # each Makefile.in and add a new line on top of each file to say so.
18501 # Grep'ing the whole file is not good either: AIX grep has a line
18502 # limit of 2048, but all sed's we know have understand at least 4000.
18503 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18504 dirpart=`$as_dirname -- "$mf" ||
18505 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18506 X"$mf" : 'X\(//\)[^/]' \| \
18507 X"$mf" : 'X\(//\)$' \| \
18508 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18509 $as_echo X"$mf" |
18510 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18511 s//\1/
18514 /^X\(\/\/\)[^/].*/{
18515 s//\1/
18518 /^X\(\/\/\)$/{
18519 s//\1/
18522 /^X\(\/\).*/{
18523 s//\1/
18526 s/.*/./; q'`
18527 else
18528 continue
18530 # Extract the definition of DEPDIR, am__include, and am__quote
18531 # from the Makefile without running `make'.
18532 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18533 test -z "$DEPDIR" && continue
18534 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18535 test -z "am__include" && continue
18536 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18537 # When using ansi2knr, U may be empty or an underscore; expand it
18538 U=`sed -n 's/^U = //p' < "$mf"`
18539 # Find all dependency output files, they are included files with
18540 # $(DEPDIR) in their names. We invoke sed twice because it is the
18541 # simplest approach to changing $(DEPDIR) to its actual value in the
18542 # expansion.
18543 for file in `sed -n "
18544 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18545 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18546 # Make sure the directory exists.
18547 test -f "$dirpart/$file" && continue
18548 fdir=`$as_dirname -- "$file" ||
18549 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18550 X"$file" : 'X\(//\)[^/]' \| \
18551 X"$file" : 'X\(//\)$' \| \
18552 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18553 $as_echo X"$file" |
18554 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18555 s//\1/
18558 /^X\(\/\/\)[^/].*/{
18559 s//\1/
18562 /^X\(\/\/\)$/{
18563 s//\1/
18566 /^X\(\/\).*/{
18567 s//\1/
18570 s/.*/./; q'`
18571 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18572 # echo "creating $dirpart/$file"
18573 echo '# dummy' > "$dirpart/$file"
18574 done
18575 done
18578 "libtool":C)
18580 # See if we are running on zsh, and set the options which allow our
18581 # commands through without removal of \ escapes.
18582 if test -n "${ZSH_VERSION+set}" ; then
18583 setopt NO_GLOB_SUBST
18586 cfgfile="${ofile}T"
18587 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18588 $RM "$cfgfile"
18590 cat <<_LT_EOF >> "$cfgfile"
18591 #! $SHELL
18593 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18594 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18595 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18596 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18598 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18599 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18600 # Written by Gordon Matzigkeit, 1996
18602 # This file is part of GNU Libtool.
18604 # GNU Libtool is free software; you can redistribute it and/or
18605 # modify it under the terms of the GNU General Public License as
18606 # published by the Free Software Foundation; either version 2 of
18607 # the License, or (at your option) any later version.
18609 # As a special exception to the GNU General Public License,
18610 # if you distribute this file as part of a program or library that
18611 # is built using GNU Libtool, you may include this file under the
18612 # same distribution terms that you use for the rest of that program.
18614 # GNU Libtool is distributed in the hope that it will be useful,
18615 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18616 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18617 # GNU General Public License for more details.
18619 # You should have received a copy of the GNU General Public License
18620 # along with GNU Libtool; see the file COPYING. If not, a copy
18621 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18622 # obtained by writing to the Free Software Foundation, Inc.,
18623 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18626 # The names of the tagged configurations supported by this script.
18627 available_tags="FC "
18629 # ### BEGIN LIBTOOL CONFIG
18631 # Which release of libtool.m4 was used?
18632 macro_version=$macro_version
18633 macro_revision=$macro_revision
18635 # Whether or not to build shared libraries.
18636 build_libtool_libs=$enable_shared
18638 # Whether or not to build static libraries.
18639 build_old_libs=$enable_static
18641 # What type of objects to build.
18642 pic_mode=$pic_mode
18644 # Whether or not to optimize for fast installation.
18645 fast_install=$enable_fast_install
18647 # Shell to use when invoking shell scripts.
18648 SHELL=$lt_SHELL
18650 # An echo program that protects backslashes.
18651 ECHO=$lt_ECHO
18653 # The host system.
18654 host_alias=$host_alias
18655 host=$host
18656 host_os=$host_os
18658 # The build system.
18659 build_alias=$build_alias
18660 build=$build
18661 build_os=$build_os
18663 # A sed program that does not truncate output.
18664 SED=$lt_SED
18666 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18667 Xsed="\$SED -e 1s/^X//"
18669 # A grep program that handles long lines.
18670 GREP=$lt_GREP
18672 # An ERE matcher.
18673 EGREP=$lt_EGREP
18675 # A literal string matcher.
18676 FGREP=$lt_FGREP
18678 # A BSD- or MS-compatible name lister.
18679 NM=$lt_NM
18681 # Whether we need soft or hard links.
18682 LN_S=$lt_LN_S
18684 # What is the maximum length of a command?
18685 max_cmd_len=$max_cmd_len
18687 # Object file suffix (normally "o").
18688 objext=$ac_objext
18690 # Executable file suffix (normally "").
18691 exeext=$exeext
18693 # whether the shell understands "unset".
18694 lt_unset=$lt_unset
18696 # turn spaces into newlines.
18697 SP2NL=$lt_lt_SP2NL
18699 # turn newlines into spaces.
18700 NL2SP=$lt_lt_NL2SP
18702 # An object symbol dumper.
18703 OBJDUMP=$lt_OBJDUMP
18705 # Method to check whether dependent libraries are shared objects.
18706 deplibs_check_method=$lt_deplibs_check_method
18708 # Command to use when deplibs_check_method == "file_magic".
18709 file_magic_cmd=$lt_file_magic_cmd
18711 # The archiver.
18712 AR=$lt_AR
18713 AR_FLAGS=$lt_AR_FLAGS
18715 # A symbol stripping program.
18716 STRIP=$lt_STRIP
18718 # Commands used to install an old-style archive.
18719 RANLIB=$lt_RANLIB
18720 old_postinstall_cmds=$lt_old_postinstall_cmds
18721 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18723 # Whether to use a lock for old archive extraction.
18724 lock_old_archive_extraction=$lock_old_archive_extraction
18726 # A C compiler.
18727 LTCC=$lt_CC
18729 # LTCC compiler flags.
18730 LTCFLAGS=$lt_CFLAGS
18732 # Take the output of nm and produce a listing of raw symbols and C names.
18733 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18735 # Transform the output of nm in a proper C declaration.
18736 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18738 # Transform the output of nm in a C name address pair.
18739 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18741 # Transform the output of nm in a C name address pair when lib prefix is needed.
18742 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18744 # The name of the directory that contains temporary libtool files.
18745 objdir=$objdir
18747 # Used to examine libraries when file_magic_cmd begins with "file".
18748 MAGIC_CMD=$MAGIC_CMD
18750 # Must we lock files when doing compilation?
18751 need_locks=$lt_need_locks
18753 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18754 DSYMUTIL=$lt_DSYMUTIL
18756 # Tool to change global to local symbols on Mac OS X.
18757 NMEDIT=$lt_NMEDIT
18759 # Tool to manipulate fat objects and archives on Mac OS X.
18760 LIPO=$lt_LIPO
18762 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18763 OTOOL=$lt_OTOOL
18765 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18766 OTOOL64=$lt_OTOOL64
18768 # Old archive suffix (normally "a").
18769 libext=$libext
18771 # Shared library suffix (normally ".so").
18772 shrext_cmds=$lt_shrext_cmds
18774 # The commands to extract the exported symbol list from a shared archive.
18775 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18777 # Variables whose values should be saved in libtool wrapper scripts and
18778 # restored at link time.
18779 variables_saved_for_relink=$lt_variables_saved_for_relink
18781 # Do we need the "lib" prefix for modules?
18782 need_lib_prefix=$need_lib_prefix
18784 # Do we need a version for libraries?
18785 need_version=$need_version
18787 # Library versioning type.
18788 version_type=$version_type
18790 # Shared library runtime path variable.
18791 runpath_var=$runpath_var
18793 # Shared library path variable.
18794 shlibpath_var=$shlibpath_var
18796 # Is shlibpath searched before the hard-coded library search path?
18797 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18799 # Format of library name prefix.
18800 libname_spec=$lt_libname_spec
18802 # List of archive names. First name is the real one, the rest are links.
18803 # The last name is the one that the linker finds with -lNAME
18804 library_names_spec=$lt_library_names_spec
18806 # The coded name of the library, if different from the real name.
18807 soname_spec=$lt_soname_spec
18809 # Permission mode override for installation of shared libraries.
18810 install_override_mode=$lt_install_override_mode
18812 # Command to use after installation of a shared archive.
18813 postinstall_cmds=$lt_postinstall_cmds
18815 # Command to use after uninstallation of a shared archive.
18816 postuninstall_cmds=$lt_postuninstall_cmds
18818 # Commands used to finish a libtool library installation in a directory.
18819 finish_cmds=$lt_finish_cmds
18821 # As "finish_cmds", except a single script fragment to be evaled but
18822 # not shown.
18823 finish_eval=$lt_finish_eval
18825 # Whether we should hardcode library paths into libraries.
18826 hardcode_into_libs=$hardcode_into_libs
18828 # Compile-time system search path for libraries.
18829 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18831 # Run-time system search path for libraries.
18832 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18834 # Whether dlopen is supported.
18835 dlopen_support=$enable_dlopen
18837 # Whether dlopen of programs is supported.
18838 dlopen_self=$enable_dlopen_self
18840 # Whether dlopen of statically linked programs is supported.
18841 dlopen_self_static=$enable_dlopen_self_static
18843 # Commands to strip libraries.
18844 old_striplib=$lt_old_striplib
18845 striplib=$lt_striplib
18848 # The linker used to build libraries.
18849 LD=$lt_LD
18851 # How to create reloadable object files.
18852 reload_flag=$lt_reload_flag
18853 reload_cmds=$lt_reload_cmds
18855 # Commands used to build an old-style archive.
18856 old_archive_cmds=$lt_old_archive_cmds
18858 # A language specific compiler.
18859 CC=$lt_compiler
18861 # Is the compiler the GNU compiler?
18862 with_gcc=$GCC
18864 # Compiler flag to turn off builtin functions.
18865 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18867 # How to pass a linker flag through the compiler.
18868 wl=$lt_lt_prog_compiler_wl
18870 # Additional compiler flags for building library objects.
18871 pic_flag=$lt_lt_prog_compiler_pic
18873 # Compiler flag to prevent dynamic linking.
18874 link_static_flag=$lt_lt_prog_compiler_static
18876 # Does compiler simultaneously support -c and -o options?
18877 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18879 # Whether or not to add -lc for building shared libraries.
18880 build_libtool_need_lc=$archive_cmds_need_lc
18882 # Whether or not to disallow shared libs when runtime libs are static.
18883 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18885 # Compiler flag to allow reflexive dlopens.
18886 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18888 # Compiler flag to generate shared objects directly from archives.
18889 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18891 # Whether the compiler copes with passing no objects directly.
18892 compiler_needs_object=$lt_compiler_needs_object
18894 # Create an old-style archive from a shared archive.
18895 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18897 # Create a temporary old-style archive to link instead of a shared archive.
18898 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18900 # Commands used to build a shared archive.
18901 archive_cmds=$lt_archive_cmds
18902 archive_expsym_cmds=$lt_archive_expsym_cmds
18904 # Commands used to build a loadable module if different from building
18905 # a shared archive.
18906 module_cmds=$lt_module_cmds
18907 module_expsym_cmds=$lt_module_expsym_cmds
18909 # Whether we are building with GNU ld or not.
18910 with_gnu_ld=$lt_with_gnu_ld
18912 # Flag that allows shared libraries with undefined symbols to be built.
18913 allow_undefined_flag=$lt_allow_undefined_flag
18915 # Flag that enforces no undefined symbols.
18916 no_undefined_flag=$lt_no_undefined_flag
18918 # Flag to hardcode \$libdir into a binary during linking.
18919 # This must work even if \$libdir does not exist
18920 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18922 # If ld is used when linking, flag to hardcode \$libdir into a binary
18923 # during linking. This must work even if \$libdir does not exist.
18924 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18926 # Whether we need a single "-rpath" flag with a separated argument.
18927 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18929 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18930 # DIR into the resulting binary.
18931 hardcode_direct=$hardcode_direct
18933 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18934 # DIR into the resulting binary and the resulting library dependency is
18935 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18936 # library is relocated.
18937 hardcode_direct_absolute=$hardcode_direct_absolute
18939 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18940 # into the resulting binary.
18941 hardcode_minus_L=$hardcode_minus_L
18943 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18944 # into the resulting binary.
18945 hardcode_shlibpath_var=$hardcode_shlibpath_var
18947 # Set to "yes" if building a shared library automatically hardcodes DIR
18948 # into the library and all subsequent libraries and executables linked
18949 # against it.
18950 hardcode_automatic=$hardcode_automatic
18952 # Set to yes if linker adds runtime paths of dependent libraries
18953 # to runtime path list.
18954 inherit_rpath=$inherit_rpath
18956 # Whether libtool must link a program against all its dependency libraries.
18957 link_all_deplibs=$link_all_deplibs
18959 # Fix the shell variable \$srcfile for the compiler.
18960 fix_srcfile_path=$lt_fix_srcfile_path
18962 # Set to "yes" if exported symbols are required.
18963 always_export_symbols=$always_export_symbols
18965 # The commands to list exported symbols.
18966 export_symbols_cmds=$lt_export_symbols_cmds
18968 # Symbols that should not be listed in the preloaded symbols.
18969 exclude_expsyms=$lt_exclude_expsyms
18971 # Symbols that must always be exported.
18972 include_expsyms=$lt_include_expsyms
18974 # Commands necessary for linking programs (against libraries) with templates.
18975 prelink_cmds=$lt_prelink_cmds
18977 # Specify filename containing input files.
18978 file_list_spec=$lt_file_list_spec
18980 # How to hardcode a shared library path into an executable.
18981 hardcode_action=$hardcode_action
18983 # The directories searched by this compiler when creating a shared library.
18984 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18986 # Dependencies to place before and after the objects being linked to
18987 # create a shared library.
18988 predep_objects=$lt_predep_objects
18989 postdep_objects=$lt_postdep_objects
18990 predeps=$lt_predeps
18991 postdeps=$lt_postdeps
18993 # The library search path used internally by the compiler when linking
18994 # a shared library.
18995 compiler_lib_search_path=$lt_compiler_lib_search_path
18997 # ### END LIBTOOL CONFIG
18999 _LT_EOF
19001 case $host_os in
19002 aix3*)
19003 cat <<\_LT_EOF >> "$cfgfile"
19004 # AIX sometimes has problems with the GCC collect2 program. For some
19005 # reason, if we set the COLLECT_NAMES environment variable, the problems
19006 # vanish in a puff of smoke.
19007 if test "X${COLLECT_NAMES+set}" != Xset; then
19008 COLLECT_NAMES=
19009 export COLLECT_NAMES
19011 _LT_EOF
19013 esac
19016 ltmain="$ac_aux_dir/ltmain.sh"
19019 # We use sed instead of cat because bash on DJGPP gets confused if
19020 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19021 # text mode, it properly converts lines to CR/LF. This bash problem
19022 # is reportedly fixed, but why not run on old versions too?
19023 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19024 || (rm -f "$cfgfile"; exit 1)
19026 case $xsi_shell in
19027 yes)
19028 cat << \_LT_EOF >> "$cfgfile"
19030 # func_dirname file append nondir_replacement
19031 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19032 # otherwise set result to NONDIR_REPLACEMENT.
19033 func_dirname ()
19035 case ${1} in
19036 */*) func_dirname_result="${1%/*}${2}" ;;
19037 * ) func_dirname_result="${3}" ;;
19038 esac
19041 # func_basename file
19042 func_basename ()
19044 func_basename_result="${1##*/}"
19047 # func_dirname_and_basename file append nondir_replacement
19048 # perform func_basename and func_dirname in a single function
19049 # call:
19050 # dirname: Compute the dirname of FILE. If nonempty,
19051 # add APPEND to the result, otherwise set result
19052 # to NONDIR_REPLACEMENT.
19053 # value returned in "$func_dirname_result"
19054 # basename: Compute filename of FILE.
19055 # value retuned in "$func_basename_result"
19056 # Implementation must be kept synchronized with func_dirname
19057 # and func_basename. For efficiency, we do not delegate to
19058 # those functions but instead duplicate the functionality here.
19059 func_dirname_and_basename ()
19061 case ${1} in
19062 */*) func_dirname_result="${1%/*}${2}" ;;
19063 * ) func_dirname_result="${3}" ;;
19064 esac
19065 func_basename_result="${1##*/}"
19068 # func_stripname prefix suffix name
19069 # strip PREFIX and SUFFIX off of NAME.
19070 # PREFIX and SUFFIX must not contain globbing or regex special
19071 # characters, hashes, percent signs, but SUFFIX may contain a leading
19072 # dot (in which case that matches only a dot).
19073 func_stripname ()
19075 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19076 # positional parameters, so assign one to ordinary parameter first.
19077 func_stripname_result=${3}
19078 func_stripname_result=${func_stripname_result#"${1}"}
19079 func_stripname_result=${func_stripname_result%"${2}"}
19082 # func_opt_split
19083 func_opt_split ()
19085 func_opt_split_opt=${1%%=*}
19086 func_opt_split_arg=${1#*=}
19089 # func_lo2o object
19090 func_lo2o ()
19092 case ${1} in
19093 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19094 *) func_lo2o_result=${1} ;;
19095 esac
19098 # func_xform libobj-or-source
19099 func_xform ()
19101 func_xform_result=${1%.*}.lo
19104 # func_arith arithmetic-term...
19105 func_arith ()
19107 func_arith_result=$(( $* ))
19110 # func_len string
19111 # STRING may not start with a hyphen.
19112 func_len ()
19114 func_len_result=${#1}
19117 _LT_EOF
19119 *) # Bourne compatible functions.
19120 cat << \_LT_EOF >> "$cfgfile"
19122 # func_dirname file append nondir_replacement
19123 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19124 # otherwise set result to NONDIR_REPLACEMENT.
19125 func_dirname ()
19127 # Extract subdirectory from the argument.
19128 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19129 if test "X$func_dirname_result" = "X${1}"; then
19130 func_dirname_result="${3}"
19131 else
19132 func_dirname_result="$func_dirname_result${2}"
19136 # func_basename file
19137 func_basename ()
19139 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19143 # func_stripname prefix suffix name
19144 # strip PREFIX and SUFFIX off of NAME.
19145 # PREFIX and SUFFIX must not contain globbing or regex special
19146 # characters, hashes, percent signs, but SUFFIX may contain a leading
19147 # dot (in which case that matches only a dot).
19148 # func_strip_suffix prefix name
19149 func_stripname ()
19151 case ${2} in
19152 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19153 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19154 esac
19157 # sed scripts:
19158 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19159 my_sed_long_arg='1s/^-[^=]*=//'
19161 # func_opt_split
19162 func_opt_split ()
19164 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19165 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19168 # func_lo2o object
19169 func_lo2o ()
19171 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19174 # func_xform libobj-or-source
19175 func_xform ()
19177 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19180 # func_arith arithmetic-term...
19181 func_arith ()
19183 func_arith_result=`expr "$@"`
19186 # func_len string
19187 # STRING may not start with a hyphen.
19188 func_len ()
19190 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19193 _LT_EOF
19194 esac
19196 case $lt_shell_append in
19197 yes)
19198 cat << \_LT_EOF >> "$cfgfile"
19200 # func_append var value
19201 # Append VALUE to the end of shell variable VAR.
19202 func_append ()
19204 eval "$1+=\$2"
19206 _LT_EOF
19209 cat << \_LT_EOF >> "$cfgfile"
19211 # func_append var value
19212 # Append VALUE to the end of shell variable VAR.
19213 func_append ()
19215 eval "$1=\$$1\$2"
19218 _LT_EOF
19220 esac
19223 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19224 || (rm -f "$cfgfile"; exit 1)
19226 mv -f "$cfgfile" "$ofile" ||
19227 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19228 chmod +x "$ofile"
19231 cat <<_LT_EOF >> "$ofile"
19233 # ### BEGIN LIBTOOL TAG CONFIG: FC
19235 # The linker used to build libraries.
19236 LD=$lt_LD_FC
19238 # How to create reloadable object files.
19239 reload_flag=$lt_reload_flag_FC
19240 reload_cmds=$lt_reload_cmds_FC
19242 # Commands used to build an old-style archive.
19243 old_archive_cmds=$lt_old_archive_cmds_FC
19245 # A language specific compiler.
19246 CC=$lt_compiler_FC
19248 # Is the compiler the GNU compiler?
19249 with_gcc=$GCC_FC
19251 # Compiler flag to turn off builtin functions.
19252 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
19254 # How to pass a linker flag through the compiler.
19255 wl=$lt_lt_prog_compiler_wl_FC
19257 # Additional compiler flags for building library objects.
19258 pic_flag=$lt_lt_prog_compiler_pic_FC
19260 # Compiler flag to prevent dynamic linking.
19261 link_static_flag=$lt_lt_prog_compiler_static_FC
19263 # Does compiler simultaneously support -c and -o options?
19264 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
19266 # Whether or not to add -lc for building shared libraries.
19267 build_libtool_need_lc=$archive_cmds_need_lc_FC
19269 # Whether or not to disallow shared libs when runtime libs are static.
19270 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
19272 # Compiler flag to allow reflexive dlopens.
19273 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
19275 # Compiler flag to generate shared objects directly from archives.
19276 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
19278 # Whether the compiler copes with passing no objects directly.
19279 compiler_needs_object=$lt_compiler_needs_object_FC
19281 # Create an old-style archive from a shared archive.
19282 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
19284 # Create a temporary old-style archive to link instead of a shared archive.
19285 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
19287 # Commands used to build a shared archive.
19288 archive_cmds=$lt_archive_cmds_FC
19289 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
19291 # Commands used to build a loadable module if different from building
19292 # a shared archive.
19293 module_cmds=$lt_module_cmds_FC
19294 module_expsym_cmds=$lt_module_expsym_cmds_FC
19296 # Whether we are building with GNU ld or not.
19297 with_gnu_ld=$lt_with_gnu_ld_FC
19299 # Flag that allows shared libraries with undefined symbols to be built.
19300 allow_undefined_flag=$lt_allow_undefined_flag_FC
19302 # Flag that enforces no undefined symbols.
19303 no_undefined_flag=$lt_no_undefined_flag_FC
19305 # Flag to hardcode \$libdir into a binary during linking.
19306 # This must work even if \$libdir does not exist
19307 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
19309 # If ld is used when linking, flag to hardcode \$libdir into a binary
19310 # during linking. This must work even if \$libdir does not exist.
19311 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
19313 # Whether we need a single "-rpath" flag with a separated argument.
19314 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
19316 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19317 # DIR into the resulting binary.
19318 hardcode_direct=$hardcode_direct_FC
19320 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19321 # DIR into the resulting binary and the resulting library dependency is
19322 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19323 # library is relocated.
19324 hardcode_direct_absolute=$hardcode_direct_absolute_FC
19326 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19327 # into the resulting binary.
19328 hardcode_minus_L=$hardcode_minus_L_FC
19330 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19331 # into the resulting binary.
19332 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
19334 # Set to "yes" if building a shared library automatically hardcodes DIR
19335 # into the library and all subsequent libraries and executables linked
19336 # against it.
19337 hardcode_automatic=$hardcode_automatic_FC
19339 # Set to yes if linker adds runtime paths of dependent libraries
19340 # to runtime path list.
19341 inherit_rpath=$inherit_rpath_FC
19343 # Whether libtool must link a program against all its dependency libraries.
19344 link_all_deplibs=$link_all_deplibs_FC
19346 # Fix the shell variable \$srcfile for the compiler.
19347 fix_srcfile_path=$lt_fix_srcfile_path_FC
19349 # Set to "yes" if exported symbols are required.
19350 always_export_symbols=$always_export_symbols_FC
19352 # The commands to list exported symbols.
19353 export_symbols_cmds=$lt_export_symbols_cmds_FC
19355 # Symbols that should not be listed in the preloaded symbols.
19356 exclude_expsyms=$lt_exclude_expsyms_FC
19358 # Symbols that must always be exported.
19359 include_expsyms=$lt_include_expsyms_FC
19361 # Commands necessary for linking programs (against libraries) with templates.
19362 prelink_cmds=$lt_prelink_cmds_FC
19364 # Specify filename containing input files.
19365 file_list_spec=$lt_file_list_spec_FC
19367 # How to hardcode a shared library path into an executable.
19368 hardcode_action=$hardcode_action_FC
19370 # The directories searched by this compiler when creating a shared library.
19371 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
19373 # Dependencies to place before and after the objects being linked to
19374 # create a shared library.
19375 predep_objects=$lt_predep_objects_FC
19376 postdep_objects=$lt_postdep_objects_FC
19377 predeps=$lt_predeps_FC
19378 postdeps=$lt_postdeps_FC
19380 # The library search path used internally by the compiler when linking
19381 # a shared library.
19382 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
19384 # ### END LIBTOOL TAG CONFIG: FC
19385 _LT_EOF
19388 "gstdint.h":C)
19389 if test "$GCC" = yes; then
19390 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
19391 else
19392 echo "/* generated for $CC */" > tmp-stdint.h
19395 sed 's/^ *//' >> tmp-stdint.h <<EOF
19397 #ifndef GCC_GENERATED_STDINT_H
19398 #define GCC_GENERATED_STDINT_H 1
19400 #include <sys/types.h>
19403 if test "$acx_cv_header_stdint" != stdint.h; then
19404 echo "#include <stddef.h>" >> tmp-stdint.h
19406 if test "$acx_cv_header_stdint" != stddef.h; then
19407 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
19410 sed 's/^ *//' >> tmp-stdint.h <<EOF
19411 /* glibc uses these symbols as guards to prevent redefinitions. */
19412 #ifdef __int8_t_defined
19413 #define _INT8_T
19414 #define _INT16_T
19415 #define _INT32_T
19416 #endif
19417 #ifdef __uint32_t_defined
19418 #define _UINT32_T
19419 #endif
19423 # ----------------- done header, emit basic int types -------------
19424 if test "$acx_cv_header_stdint" = stddef.h; then
19425 sed 's/^ *//' >> tmp-stdint.h <<EOF
19427 #ifndef _UINT8_T
19428 #define _UINT8_T
19429 #ifndef __uint8_t_defined
19430 #define __uint8_t_defined
19431 #ifndef uint8_t
19432 typedef unsigned $acx_cv_type_int8_t uint8_t;
19433 #endif
19434 #endif
19435 #endif
19437 #ifndef _UINT16_T
19438 #define _UINT16_T
19439 #ifndef __uint16_t_defined
19440 #define __uint16_t_defined
19441 #ifndef uint16_t
19442 typedef unsigned $acx_cv_type_int16_t uint16_t;
19443 #endif
19444 #endif
19445 #endif
19447 #ifndef _UINT32_T
19448 #define _UINT32_T
19449 #ifndef __uint32_t_defined
19450 #define __uint32_t_defined
19451 #ifndef uint32_t
19452 typedef unsigned $acx_cv_type_int32_t uint32_t;
19453 #endif
19454 #endif
19455 #endif
19457 #ifndef _INT8_T
19458 #define _INT8_T
19459 #ifndef __int8_t_defined
19460 #define __int8_t_defined
19461 #ifndef int8_t
19462 typedef $acx_cv_type_int8_t int8_t;
19463 #endif
19464 #endif
19465 #endif
19467 #ifndef _INT16_T
19468 #define _INT16_T
19469 #ifndef __int16_t_defined
19470 #define __int16_t_defined
19471 #ifndef int16_t
19472 typedef $acx_cv_type_int16_t int16_t;
19473 #endif
19474 #endif
19475 #endif
19477 #ifndef _INT32_T
19478 #define _INT32_T
19479 #ifndef __int32_t_defined
19480 #define __int32_t_defined
19481 #ifndef int32_t
19482 typedef $acx_cv_type_int32_t int32_t;
19483 #endif
19484 #endif
19485 #endif
19487 elif test "$ac_cv_type_u_int32_t" = yes; then
19488 sed 's/^ *//' >> tmp-stdint.h <<EOF
19490 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
19491 #ifndef _INT8_T
19492 #define _INT8_T
19493 #endif
19494 #ifndef _INT16_T
19495 #define _INT16_T
19496 #endif
19497 #ifndef _INT32_T
19498 #define _INT32_T
19499 #endif
19501 #ifndef _UINT8_T
19502 #define _UINT8_T
19503 #ifndef __uint8_t_defined
19504 #define __uint8_t_defined
19505 #ifndef uint8_t
19506 typedef u_int8_t uint8_t;
19507 #endif
19508 #endif
19509 #endif
19511 #ifndef _UINT16_T
19512 #define _UINT16_T
19513 #ifndef __uint16_t_defined
19514 #define __uint16_t_defined
19515 #ifndef uint16_t
19516 typedef u_int16_t uint16_t;
19517 #endif
19518 #endif
19519 #endif
19521 #ifndef _UINT32_T
19522 #define _UINT32_T
19523 #ifndef __uint32_t_defined
19524 #define __uint32_t_defined
19525 #ifndef uint32_t
19526 typedef u_int32_t uint32_t;
19527 #endif
19528 #endif
19529 #endif
19531 else
19532 sed 's/^ *//' >> tmp-stdint.h <<EOF
19534 /* Some systems have guard macros to prevent redefinitions, define them. */
19535 #ifndef _INT8_T
19536 #define _INT8_T
19537 #endif
19538 #ifndef _INT16_T
19539 #define _INT16_T
19540 #endif
19541 #ifndef _INT32_T
19542 #define _INT32_T
19543 #endif
19544 #ifndef _UINT8_T
19545 #define _UINT8_T
19546 #endif
19547 #ifndef _UINT16_T
19548 #define _UINT16_T
19549 #endif
19550 #ifndef _UINT32_T
19551 #define _UINT32_T
19552 #endif
19556 # ------------- done basic int types, emit int64_t types ------------
19557 if test "$ac_cv_type_uint64_t" = yes; then
19558 sed 's/^ *//' >> tmp-stdint.h <<EOF
19560 /* system headers have good uint64_t and int64_t */
19561 #ifndef _INT64_T
19562 #define _INT64_T
19563 #endif
19564 #ifndef _UINT64_T
19565 #define _UINT64_T
19566 #endif
19568 elif test "$ac_cv_type_u_int64_t" = yes; then
19569 sed 's/^ *//' >> tmp-stdint.h <<EOF
19571 /* system headers have an u_int64_t (and int64_t) */
19572 #ifndef _INT64_T
19573 #define _INT64_T
19574 #endif
19575 #ifndef _UINT64_T
19576 #define _UINT64_T
19577 #ifndef __uint64_t_defined
19578 #define __uint64_t_defined
19579 #ifndef uint64_t
19580 typedef u_int64_t uint64_t;
19581 #endif
19582 #endif
19583 #endif
19585 elif test -n "$acx_cv_type_int64_t"; then
19586 sed 's/^ *//' >> tmp-stdint.h <<EOF
19588 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
19589 #ifndef _INT64_T
19590 #define _INT64_T
19591 #ifndef int64_t
19592 typedef $acx_cv_type_int64_t int64_t;
19593 #endif
19594 #endif
19595 #ifndef _UINT64_T
19596 #define _UINT64_T
19597 #ifndef __uint64_t_defined
19598 #define __uint64_t_defined
19599 #ifndef uint64_t
19600 typedef unsigned $acx_cv_type_int64_t uint64_t;
19601 #endif
19602 #endif
19603 #endif
19605 else
19606 sed 's/^ *//' >> tmp-stdint.h <<EOF
19608 /* some common heuristics for int64_t, using compiler-specific tests */
19609 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
19610 #ifndef _INT64_T
19611 #define _INT64_T
19612 #ifndef __int64_t_defined
19613 #ifndef int64_t
19614 typedef long long int64_t;
19615 #endif
19616 #endif
19617 #endif
19618 #ifndef _UINT64_T
19619 #define _UINT64_T
19620 #ifndef uint64_t
19621 typedef unsigned long long uint64_t;
19622 #endif
19623 #endif
19625 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
19626 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
19627 does not implement __extension__. But that compiler doesn't define
19628 __GNUC_MINOR__. */
19629 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
19630 # define __extension__
19631 # endif
19633 # ifndef _INT64_T
19634 # define _INT64_T
19635 # ifndef int64_t
19636 __extension__ typedef long long int64_t;
19637 # endif
19638 # endif
19639 # ifndef _UINT64_T
19640 # define _UINT64_T
19641 # ifndef uint64_t
19642 __extension__ typedef unsigned long long uint64_t;
19643 # endif
19644 # endif
19646 #elif !defined __STRICT_ANSI__
19647 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
19649 # ifndef _INT64_T
19650 # define _INT64_T
19651 # ifndef int64_t
19652 typedef __int64 int64_t;
19653 # endif
19654 # endif
19655 # ifndef _UINT64_T
19656 # define _UINT64_T
19657 # ifndef uint64_t
19658 typedef unsigned __int64 uint64_t;
19659 # endif
19660 # endif
19661 # endif /* compiler */
19663 #endif /* ANSI version */
19667 # ------------- done int64_t types, emit intptr types ------------
19668 if test "$ac_cv_type_uintptr_t" != yes; then
19669 sed 's/^ *//' >> tmp-stdint.h <<EOF
19671 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
19672 #ifndef __uintptr_t_defined
19673 #ifndef uintptr_t
19674 typedef u$acx_cv_type_intptr_t uintptr_t;
19675 #endif
19676 #endif
19677 #ifndef __intptr_t_defined
19678 #ifndef intptr_t
19679 typedef $acx_cv_type_intptr_t intptr_t;
19680 #endif
19681 #endif
19685 # ------------- done intptr types, emit int_least types ------------
19686 if test "$ac_cv_type_int_least32_t" != yes; then
19687 sed 's/^ *//' >> tmp-stdint.h <<EOF
19689 /* Define int_least types */
19690 typedef int8_t int_least8_t;
19691 typedef int16_t int_least16_t;
19692 typedef int32_t int_least32_t;
19693 #ifdef _INT64_T
19694 typedef int64_t int_least64_t;
19695 #endif
19697 typedef uint8_t uint_least8_t;
19698 typedef uint16_t uint_least16_t;
19699 typedef uint32_t uint_least32_t;
19700 #ifdef _UINT64_T
19701 typedef uint64_t uint_least64_t;
19702 #endif
19706 # ------------- done intptr types, emit int_fast types ------------
19707 if test "$ac_cv_type_int_fast32_t" != yes; then
19708 sed 's/^ *//' >> tmp-stdint.h <<EOF
19710 /* Define int_fast types. short is often slow */
19711 typedef int8_t int_fast8_t;
19712 typedef int int_fast16_t;
19713 typedef int32_t int_fast32_t;
19714 #ifdef _INT64_T
19715 typedef int64_t int_fast64_t;
19716 #endif
19718 typedef uint8_t uint_fast8_t;
19719 typedef unsigned int uint_fast16_t;
19720 typedef uint32_t uint_fast32_t;
19721 #ifdef _UINT64_T
19722 typedef uint64_t uint_fast64_t;
19723 #endif
19727 if test "$ac_cv_type_uintmax_t" != yes; then
19728 sed 's/^ *//' >> tmp-stdint.h <<EOF
19730 /* Define intmax based on what we found */
19731 #ifndef intmax_t
19732 #ifdef _INT64_T
19733 typedef int64_t intmax_t;
19734 #else
19735 typedef long intmax_t;
19736 #endif
19737 #endif
19738 #ifndef uintmax_t
19739 #ifdef _UINT64_T
19740 typedef uint64_t uintmax_t;
19741 #else
19742 typedef unsigned long uintmax_t;
19743 #endif
19744 #endif
19748 sed 's/^ *//' >> tmp-stdint.h <<EOF
19750 #endif /* GCC_GENERATED_STDINT_H */
19753 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
19754 rm -f tmp-stdint.h
19755 else
19756 mv -f tmp-stdint.h gstdint.h
19761 esac
19762 done # for ac_tag
19765 as_fn_exit 0
19766 _ACEOF
19767 ac_clean_files=$ac_clean_files_save
19769 test $ac_write_fail = 0 ||
19770 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19773 # configure is writing to config.log, and then calls config.status.
19774 # config.status does its own redirection, appending to config.log.
19775 # Unfortunately, on DOS this fails, as config.log is still kept open
19776 # by configure, so config.status won't be able to write to it; its
19777 # output is simply discarded. So we exec the FD to /dev/null,
19778 # effectively closing config.log, so it can be properly (re)opened and
19779 # appended to by config.status. When coming back to configure, we
19780 # need to make the FD available again.
19781 if test "$no_create" != yes; then
19782 ac_cs_success=:
19783 ac_config_status_args=
19784 test "$silent" = yes &&
19785 ac_config_status_args="$ac_config_status_args --quiet"
19786 exec 5>/dev/null
19787 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19788 exec 5>>config.log
19789 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19790 # would make configure fail if this is the last instruction.
19791 $ac_cs_success || as_fn_exit $?
19793 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19795 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}