svn merge -r 217500:218679 svn+ssh://gcc.gnu.org/svn/gcc/trunk
[official-gcc.git] / libgomp / configure
blobcb9746dc326b92354a17aded47cc281c193c9c44
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for GNU OpenMP 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 OpenMP Runtime Library'
558 PACKAGE_TARNAME='libgomp'
559 PACKAGE_VERSION='1.0'
560 PACKAGE_STRING='GNU OpenMP 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 enable_option_checking=no
601 ac_subst_vars='am__EXEEXT_FALSE
602 am__EXEEXT_TRUE
603 LTLIBOBJS
604 LIBOBJS
605 OMP_NEST_LOCK_25_KIND
606 OMP_LOCK_25_KIND
607 OMP_NEST_LOCK_25_ALIGN
608 OMP_NEST_LOCK_25_SIZE
609 OMP_LOCK_25_ALIGN
610 OMP_LOCK_25_SIZE
611 OMP_NEST_LOCK_KIND
612 OMP_LOCK_KIND
613 OMP_NEST_LOCK_ALIGN
614 OMP_NEST_LOCK_SIZE
615 OMP_LOCK_ALIGN
616 OMP_LOCK_SIZE
617 USE_FORTRAN_FALSE
618 USE_FORTRAN_TRUE
619 link_gomp
620 offload_additional_lib_paths
621 offload_additional_options
622 offload_targets
623 XLDFLAGS
624 XCFLAGS
625 config_path
626 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
627 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
628 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
629 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
630 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
631 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
632 OPT_LDFLAGS
633 SECTION_LDFLAGS
634 subdirs
635 libtool_VERSION
636 ac_ct_FC
637 FCFLAGS
639 MAINT
640 MAINTAINER_MODE_FALSE
641 MAINTAINER_MODE_TRUE
642 enable_static
643 enable_shared
644 lt_host_flags
646 OTOOL64
647 OTOOL
648 LIPO
649 NMEDIT
650 DSYMUTIL
651 OBJDUMP
652 LN_S
654 ac_ct_DUMPBIN
655 DUMPBIN
657 FGREP
658 EGREP
659 GREP
661 LIBTOOL
662 BUILD_INFO_FALSE
663 BUILD_INFO_TRUE
664 PERL
665 RANLIB
667 am__fastdepCC_FALSE
668 am__fastdepCC_TRUE
669 CCDEPMODE
670 AMDEPBACKSLASH
671 AMDEP_FALSE
672 AMDEP_TRUE
673 am__quote
674 am__include
675 DEPDIR
676 OBJEXT
677 EXEEXT
678 ac_ct_CC
679 CPPFLAGS
680 LDFLAGS
681 CFLAGS
683 toolexeclibdir
684 toolexecdir
685 multi_basedir
686 am__untar
687 am__tar
688 AMTAR
689 am__leading_dot
690 SET_MAKE
692 mkdir_p
693 MKDIR_P
694 INSTALL_STRIP_PROGRAM
695 STRIP
696 install_sh
697 MAKEINFO
698 AUTOHEADER
699 AUTOMAKE
700 AUTOCONF
701 ACLOCAL
702 VERSION
703 PACKAGE
704 CYGPATH_W
705 am__isrc
706 INSTALL_DATA
707 INSTALL_SCRIPT
708 INSTALL_PROGRAM
709 target_os
710 target_vendor
711 target_cpu
712 target
713 host_os
714 host_vendor
715 host_cpu
716 host
717 build_os
718 build_vendor
719 build_cpu
720 build
721 GENINSRC_FALSE
722 GENINSRC_TRUE
723 target_alias
724 host_alias
725 build_alias
726 LIBS
727 ECHO_T
728 ECHO_N
729 ECHO_C
730 DEFS
731 mandir
732 localedir
733 libdir
734 psdir
735 pdfdir
736 dvidir
737 htmldir
738 infodir
739 docdir
740 oldincludedir
741 includedir
742 localstatedir
743 sharedstatedir
744 sysconfdir
745 datadir
746 datarootdir
747 libexecdir
748 sbindir
749 bindir
750 program_transform_name
751 prefix
752 exec_prefix
753 PACKAGE_URL
754 PACKAGE_BUGREPORT
755 PACKAGE_STRING
756 PACKAGE_VERSION
757 PACKAGE_TARNAME
758 PACKAGE_NAME
759 PATH_SEPARATOR
760 SHELL'
761 ac_subst_files=''
762 ac_user_opts='
763 enable_option_checking
764 enable_version_specific_runtime_libs
765 enable_generated_files_in_srcdir
766 enable_multilib
767 enable_dependency_tracking
768 enable_shared
769 enable_static
770 with_pic
771 enable_fast_install
772 with_gnu_ld
773 enable_libtool_lock
774 enable_maintainer_mode
775 enable_linux_futex
776 enable_tls
777 enable_symvers
779 ac_precious_vars='build_alias
780 host_alias
781 target_alias
783 CPPFLAGS
785 FCFLAGS
786 LDFLAGS
787 LIBS'
788 ac_subdirs_all='plugin'
790 # Initialize some variables set by options.
791 ac_init_help=
792 ac_init_version=false
793 ac_unrecognized_opts=
794 ac_unrecognized_sep=
795 # The variables have the same names as the options, with
796 # dashes changed to underlines.
797 cache_file=/dev/null
798 exec_prefix=NONE
799 no_create=
800 no_recursion=
801 prefix=NONE
802 program_prefix=NONE
803 program_suffix=NONE
804 program_transform_name=s,x,x,
805 silent=
806 site=
807 srcdir=
808 verbose=
809 x_includes=NONE
810 x_libraries=NONE
812 # Installation directory options.
813 # These are left unexpanded so users can "make install exec_prefix=/foo"
814 # and all the variables that are supposed to be based on exec_prefix
815 # by default will actually change.
816 # Use braces instead of parens because sh, perl, etc. also accept them.
817 # (The list follows the same order as the GNU Coding Standards.)
818 bindir='${exec_prefix}/bin'
819 sbindir='${exec_prefix}/sbin'
820 libexecdir='${exec_prefix}/libexec'
821 datarootdir='${prefix}/share'
822 datadir='${datarootdir}'
823 sysconfdir='${prefix}/etc'
824 sharedstatedir='${prefix}/com'
825 localstatedir='${prefix}/var'
826 includedir='${prefix}/include'
827 oldincludedir='/usr/include'
828 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
829 infodir='${datarootdir}/info'
830 htmldir='${docdir}'
831 dvidir='${docdir}'
832 pdfdir='${docdir}'
833 psdir='${docdir}'
834 libdir='${exec_prefix}/lib'
835 localedir='${datarootdir}/locale'
836 mandir='${datarootdir}/man'
838 ac_prev=
839 ac_dashdash=
840 for ac_option
842 # If the previous option needs an argument, assign it.
843 if test -n "$ac_prev"; then
844 eval $ac_prev=\$ac_option
845 ac_prev=
846 continue
849 case $ac_option in
850 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
851 *) ac_optarg=yes ;;
852 esac
854 # Accept the important Cygnus configure options, so we can diagnose typos.
856 case $ac_dashdash$ac_option in
858 ac_dashdash=yes ;;
860 -bindir | --bindir | --bindi | --bind | --bin | --bi)
861 ac_prev=bindir ;;
862 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
863 bindir=$ac_optarg ;;
865 -build | --build | --buil | --bui | --bu)
866 ac_prev=build_alias ;;
867 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
868 build_alias=$ac_optarg ;;
870 -cache-file | --cache-file | --cache-fil | --cache-fi \
871 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
872 ac_prev=cache_file ;;
873 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
874 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
875 cache_file=$ac_optarg ;;
877 --config-cache | -C)
878 cache_file=config.cache ;;
880 -datadir | --datadir | --datadi | --datad)
881 ac_prev=datadir ;;
882 -datadir=* | --datadir=* | --datadi=* | --datad=*)
883 datadir=$ac_optarg ;;
885 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
886 | --dataroo | --dataro | --datar)
887 ac_prev=datarootdir ;;
888 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
889 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
890 datarootdir=$ac_optarg ;;
892 -disable-* | --disable-*)
893 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
894 # Reject names that are not valid shell variable names.
895 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
896 as_fn_error "invalid feature name: $ac_useropt"
897 ac_useropt_orig=$ac_useropt
898 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
899 case $ac_user_opts in
901 "enable_$ac_useropt"
902 "*) ;;
903 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
904 ac_unrecognized_sep=', ';;
905 esac
906 eval enable_$ac_useropt=no ;;
908 -docdir | --docdir | --docdi | --doc | --do)
909 ac_prev=docdir ;;
910 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
911 docdir=$ac_optarg ;;
913 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
914 ac_prev=dvidir ;;
915 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
916 dvidir=$ac_optarg ;;
918 -enable-* | --enable-*)
919 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
920 # Reject names that are not valid shell variable names.
921 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
922 as_fn_error "invalid feature name: $ac_useropt"
923 ac_useropt_orig=$ac_useropt
924 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
925 case $ac_user_opts in
927 "enable_$ac_useropt"
928 "*) ;;
929 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
930 ac_unrecognized_sep=', ';;
931 esac
932 eval enable_$ac_useropt=\$ac_optarg ;;
934 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
935 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
936 | --exec | --exe | --ex)
937 ac_prev=exec_prefix ;;
938 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
939 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
940 | --exec=* | --exe=* | --ex=*)
941 exec_prefix=$ac_optarg ;;
943 -gas | --gas | --ga | --g)
944 # Obsolete; use --with-gas.
945 with_gas=yes ;;
947 -help | --help | --hel | --he | -h)
948 ac_init_help=long ;;
949 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
950 ac_init_help=recursive ;;
951 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
952 ac_init_help=short ;;
954 -host | --host | --hos | --ho)
955 ac_prev=host_alias ;;
956 -host=* | --host=* | --hos=* | --ho=*)
957 host_alias=$ac_optarg ;;
959 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
960 ac_prev=htmldir ;;
961 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
962 | --ht=*)
963 htmldir=$ac_optarg ;;
965 -includedir | --includedir | --includedi | --included | --include \
966 | --includ | --inclu | --incl | --inc)
967 ac_prev=includedir ;;
968 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
969 | --includ=* | --inclu=* | --incl=* | --inc=*)
970 includedir=$ac_optarg ;;
972 -infodir | --infodir | --infodi | --infod | --info | --inf)
973 ac_prev=infodir ;;
974 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
975 infodir=$ac_optarg ;;
977 -libdir | --libdir | --libdi | --libd)
978 ac_prev=libdir ;;
979 -libdir=* | --libdir=* | --libdi=* | --libd=*)
980 libdir=$ac_optarg ;;
982 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
983 | --libexe | --libex | --libe)
984 ac_prev=libexecdir ;;
985 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
986 | --libexe=* | --libex=* | --libe=*)
987 libexecdir=$ac_optarg ;;
989 -localedir | --localedir | --localedi | --localed | --locale)
990 ac_prev=localedir ;;
991 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
992 localedir=$ac_optarg ;;
994 -localstatedir | --localstatedir | --localstatedi | --localstated \
995 | --localstate | --localstat | --localsta | --localst | --locals)
996 ac_prev=localstatedir ;;
997 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
998 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
999 localstatedir=$ac_optarg ;;
1001 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1002 ac_prev=mandir ;;
1003 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1004 mandir=$ac_optarg ;;
1006 -nfp | --nfp | --nf)
1007 # Obsolete; use --without-fp.
1008 with_fp=no ;;
1010 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1011 | --no-cr | --no-c | -n)
1012 no_create=yes ;;
1014 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1015 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1016 no_recursion=yes ;;
1018 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1019 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1020 | --oldin | --oldi | --old | --ol | --o)
1021 ac_prev=oldincludedir ;;
1022 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1023 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1024 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1025 oldincludedir=$ac_optarg ;;
1027 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1028 ac_prev=prefix ;;
1029 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1030 prefix=$ac_optarg ;;
1032 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1033 | --program-pre | --program-pr | --program-p)
1034 ac_prev=program_prefix ;;
1035 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1036 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1037 program_prefix=$ac_optarg ;;
1039 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1040 | --program-suf | --program-su | --program-s)
1041 ac_prev=program_suffix ;;
1042 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1043 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1044 program_suffix=$ac_optarg ;;
1046 -program-transform-name | --program-transform-name \
1047 | --program-transform-nam | --program-transform-na \
1048 | --program-transform-n | --program-transform- \
1049 | --program-transform | --program-transfor \
1050 | --program-transfo | --program-transf \
1051 | --program-trans | --program-tran \
1052 | --progr-tra | --program-tr | --program-t)
1053 ac_prev=program_transform_name ;;
1054 -program-transform-name=* | --program-transform-name=* \
1055 | --program-transform-nam=* | --program-transform-na=* \
1056 | --program-transform-n=* | --program-transform-=* \
1057 | --program-transform=* | --program-transfor=* \
1058 | --program-transfo=* | --program-transf=* \
1059 | --program-trans=* | --program-tran=* \
1060 | --progr-tra=* | --program-tr=* | --program-t=*)
1061 program_transform_name=$ac_optarg ;;
1063 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1064 ac_prev=pdfdir ;;
1065 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1066 pdfdir=$ac_optarg ;;
1068 -psdir | --psdir | --psdi | --psd | --ps)
1069 ac_prev=psdir ;;
1070 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1071 psdir=$ac_optarg ;;
1073 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1074 | -silent | --silent | --silen | --sile | --sil)
1075 silent=yes ;;
1077 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1078 ac_prev=sbindir ;;
1079 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1080 | --sbi=* | --sb=*)
1081 sbindir=$ac_optarg ;;
1083 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1084 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1085 | --sharedst | --shareds | --shared | --share | --shar \
1086 | --sha | --sh)
1087 ac_prev=sharedstatedir ;;
1088 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1089 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1090 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1091 | --sha=* | --sh=*)
1092 sharedstatedir=$ac_optarg ;;
1094 -site | --site | --sit)
1095 ac_prev=site ;;
1096 -site=* | --site=* | --sit=*)
1097 site=$ac_optarg ;;
1099 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1100 ac_prev=srcdir ;;
1101 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1102 srcdir=$ac_optarg ;;
1104 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1105 | --syscon | --sysco | --sysc | --sys | --sy)
1106 ac_prev=sysconfdir ;;
1107 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1108 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1109 sysconfdir=$ac_optarg ;;
1111 -target | --target | --targe | --targ | --tar | --ta | --t)
1112 ac_prev=target_alias ;;
1113 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1114 target_alias=$ac_optarg ;;
1116 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1117 verbose=yes ;;
1119 -version | --version | --versio | --versi | --vers | -V)
1120 ac_init_version=: ;;
1122 -with-* | --with-*)
1123 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1124 # Reject names that are not valid shell variable names.
1125 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1126 as_fn_error "invalid package name: $ac_useropt"
1127 ac_useropt_orig=$ac_useropt
1128 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129 case $ac_user_opts in
1131 "with_$ac_useropt"
1132 "*) ;;
1133 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1134 ac_unrecognized_sep=', ';;
1135 esac
1136 eval with_$ac_useropt=\$ac_optarg ;;
1138 -without-* | --without-*)
1139 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1140 # Reject names that are not valid shell variable names.
1141 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1142 as_fn_error "invalid package name: $ac_useropt"
1143 ac_useropt_orig=$ac_useropt
1144 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145 case $ac_user_opts in
1147 "with_$ac_useropt"
1148 "*) ;;
1149 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1150 ac_unrecognized_sep=', ';;
1151 esac
1152 eval with_$ac_useropt=no ;;
1154 --x)
1155 # Obsolete; use --with-x.
1156 with_x=yes ;;
1158 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1159 | --x-incl | --x-inc | --x-in | --x-i)
1160 ac_prev=x_includes ;;
1161 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1162 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1163 x_includes=$ac_optarg ;;
1165 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1166 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1167 ac_prev=x_libraries ;;
1168 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1169 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1170 x_libraries=$ac_optarg ;;
1172 -*) as_fn_error "unrecognized option: \`$ac_option'
1173 Try \`$0 --help' for more information."
1176 *=*)
1177 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1178 # Reject names that are not valid shell variable names.
1179 case $ac_envvar in #(
1180 '' | [0-9]* | *[!_$as_cr_alnum]* )
1181 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1182 esac
1183 eval $ac_envvar=\$ac_optarg
1184 export $ac_envvar ;;
1187 # FIXME: should be removed in autoconf 3.0.
1188 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1189 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1190 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1191 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1194 esac
1195 done
1197 if test -n "$ac_prev"; then
1198 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1199 as_fn_error "missing argument to $ac_option"
1202 if test -n "$ac_unrecognized_opts"; then
1203 case $enable_option_checking in
1204 no) ;;
1205 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1206 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1207 esac
1210 # Check all directory arguments for consistency.
1211 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1212 datadir sysconfdir sharedstatedir localstatedir includedir \
1213 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1214 libdir localedir mandir
1216 eval ac_val=\$$ac_var
1217 # Remove trailing slashes.
1218 case $ac_val in
1219 */ )
1220 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1221 eval $ac_var=\$ac_val;;
1222 esac
1223 # Be sure to have absolute directory names.
1224 case $ac_val in
1225 [\\/$]* | ?:[\\/]* ) continue;;
1226 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1227 esac
1228 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1229 done
1231 # There might be people who depend on the old broken behavior: `$host'
1232 # used to hold the argument of --host etc.
1233 # FIXME: To remove some day.
1234 build=$build_alias
1235 host=$host_alias
1236 target=$target_alias
1238 # FIXME: To remove some day.
1239 if test "x$host_alias" != x; then
1240 if test "x$build_alias" = x; then
1241 cross_compiling=maybe
1242 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1243 If a cross compiler is detected then cross compile mode will be used." >&2
1244 elif test "x$build_alias" != "x$host_alias"; then
1245 cross_compiling=yes
1249 ac_tool_prefix=
1250 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1252 test "$silent" = yes && exec 6>/dev/null
1255 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1256 ac_ls_di=`ls -di .` &&
1257 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1258 as_fn_error "working directory cannot be determined"
1259 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1260 as_fn_error "pwd does not report name of working directory"
1263 # Find the source files, if location was not specified.
1264 if test -z "$srcdir"; then
1265 ac_srcdir_defaulted=yes
1266 # Try the directory containing this script, then the parent directory.
1267 ac_confdir=`$as_dirname -- "$as_myself" ||
1268 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1269 X"$as_myself" : 'X\(//\)[^/]' \| \
1270 X"$as_myself" : 'X\(//\)$' \| \
1271 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1272 $as_echo X"$as_myself" |
1273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1274 s//\1/
1277 /^X\(\/\/\)[^/].*/{
1278 s//\1/
1281 /^X\(\/\/\)$/{
1282 s//\1/
1285 /^X\(\/\).*/{
1286 s//\1/
1289 s/.*/./; q'`
1290 srcdir=$ac_confdir
1291 if test ! -r "$srcdir/$ac_unique_file"; then
1292 srcdir=..
1294 else
1295 ac_srcdir_defaulted=no
1297 if test ! -r "$srcdir/$ac_unique_file"; then
1298 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1299 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1301 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1302 ac_abs_confdir=`(
1303 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1304 pwd)`
1305 # When building in place, set srcdir=.
1306 if test "$ac_abs_confdir" = "$ac_pwd"; then
1307 srcdir=.
1309 # Remove unnecessary trailing slashes from srcdir.
1310 # Double slashes in file names in object file debugging info
1311 # mess up M-x gdb in Emacs.
1312 case $srcdir in
1313 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1314 esac
1315 for ac_var in $ac_precious_vars; do
1316 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1317 eval ac_env_${ac_var}_value=\$${ac_var}
1318 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1319 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1320 done
1323 # Report the --help message.
1325 if test "$ac_init_help" = "long"; then
1326 # Omit some internal or obsolete options to make the list less imposing.
1327 # This message is too long to be a string in the A/UX 3.1 sh.
1328 cat <<_ACEOF
1329 \`configure' configures GNU OpenMP Runtime Library 1.0 to adapt to many kinds of systems.
1331 Usage: $0 [OPTION]... [VAR=VALUE]...
1333 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1334 VAR=VALUE. See below for descriptions of some of the useful variables.
1336 Defaults for the options are specified in brackets.
1338 Configuration:
1339 -h, --help display this help and exit
1340 --help=short display options specific to this package
1341 --help=recursive display the short help of all the included packages
1342 -V, --version display version information and exit
1343 -q, --quiet, --silent do not print \`checking...' messages
1344 --cache-file=FILE cache test results in FILE [disabled]
1345 -C, --config-cache alias for \`--cache-file=config.cache'
1346 -n, --no-create do not create output files
1347 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1349 Installation directories:
1350 --prefix=PREFIX install architecture-independent files in PREFIX
1351 [$ac_default_prefix]
1352 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1353 [PREFIX]
1355 By default, \`make install' will install all the files in
1356 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1357 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1358 for instance \`--prefix=\$HOME'.
1360 For better control, use the options below.
1362 Fine tuning of the installation directories:
1363 --bindir=DIR user executables [EPREFIX/bin]
1364 --sbindir=DIR system admin executables [EPREFIX/sbin]
1365 --libexecdir=DIR program executables [EPREFIX/libexec]
1366 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1367 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1368 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1369 --libdir=DIR object code libraries [EPREFIX/lib]
1370 --includedir=DIR C header files [PREFIX/include]
1371 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1372 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1373 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1374 --infodir=DIR info documentation [DATAROOTDIR/info]
1375 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1376 --mandir=DIR man documentation [DATAROOTDIR/man]
1377 --docdir=DIR documentation root [DATAROOTDIR/doc/libgomp]
1378 --htmldir=DIR html documentation [DOCDIR]
1379 --dvidir=DIR dvi documentation [DOCDIR]
1380 --pdfdir=DIR pdf documentation [DOCDIR]
1381 --psdir=DIR ps documentation [DOCDIR]
1382 _ACEOF
1384 cat <<\_ACEOF
1386 Program names:
1387 --program-prefix=PREFIX prepend PREFIX to installed program names
1388 --program-suffix=SUFFIX append SUFFIX to installed program names
1389 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1391 System types:
1392 --build=BUILD configure for building on BUILD [guessed]
1393 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1394 --target=TARGET configure for building compilers for TARGET [HOST]
1395 _ACEOF
1398 if test -n "$ac_init_help"; then
1399 case $ac_init_help in
1400 short | recursive ) echo "Configuration of GNU OpenMP Runtime Library 1.0:";;
1401 esac
1402 cat <<\_ACEOF
1404 Optional Features:
1405 --disable-option-checking ignore unrecognized --enable/--with options
1406 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1407 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1408 --enable-version-specific-runtime-libs
1409 Specify that runtime libraries should be installed
1410 in a compiler-specific directory [default=no]
1411 --enable-generated-files-in-srcdir
1412 put copies of generated files in source dir intended
1413 for creating source tarballs for users without
1414 texinfo bison or flex. [default=no]
1415 --enable-multilib build many library versions (default)
1416 --disable-dependency-tracking speeds up one-time build
1417 --enable-dependency-tracking do not reject slow dependency extractors
1418 --enable-shared[=PKGS] build shared libraries [default=yes]
1419 --enable-static[=PKGS] build static libraries [default=yes]
1420 --enable-fast-install[=PKGS]
1421 optimize for fast installation [default=yes]
1422 --disable-libtool-lock avoid locking (might break parallel builds)
1423 --enable-maintainer-mode enable make rules and dependencies not useful
1424 (and sometimes confusing) to the casual installer
1425 --enable-linux-futex use the Linux futex system call [default=default]
1426 --enable-tls Use thread-local storage [default=yes]
1427 --enable-symvers=STYLE enables symbol versioning of the shared library
1428 [default=yes]
1430 Optional Packages:
1431 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1432 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1433 --with-pic try to use only PIC/non-PIC objects [default=use
1434 both]
1435 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1437 Some influential environment variables:
1438 CC C compiler command
1439 CFLAGS C compiler flags
1440 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1441 nonstandard directory <lib dir>
1442 LIBS libraries to pass to the linker, e.g. -l<library>
1443 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1444 you have headers in a nonstandard directory <include dir>
1445 CPP C preprocessor
1446 FC Fortran compiler command
1447 FCFLAGS Fortran compiler flags
1449 Use these variables to override the choices made by `configure' or to help
1450 it to find libraries and programs with nonstandard names/locations.
1452 Report bugs to the package provider.
1453 GNU OpenMP Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
1454 General help using GNU software: <http://www.gnu.org/gethelp/>.
1455 _ACEOF
1456 ac_status=$?
1459 if test "$ac_init_help" = "recursive"; then
1460 # If there are subdirs, report their specific --help.
1461 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1462 test -d "$ac_dir" ||
1463 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1464 continue
1465 ac_builddir=.
1467 case "$ac_dir" in
1468 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1470 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1471 # A ".." for each directory in $ac_dir_suffix.
1472 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1473 case $ac_top_builddir_sub in
1474 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1475 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1476 esac ;;
1477 esac
1478 ac_abs_top_builddir=$ac_pwd
1479 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1480 # for backward compatibility:
1481 ac_top_builddir=$ac_top_build_prefix
1483 case $srcdir in
1484 .) # We are building in place.
1485 ac_srcdir=.
1486 ac_top_srcdir=$ac_top_builddir_sub
1487 ac_abs_top_srcdir=$ac_pwd ;;
1488 [\\/]* | ?:[\\/]* ) # Absolute name.
1489 ac_srcdir=$srcdir$ac_dir_suffix;
1490 ac_top_srcdir=$srcdir
1491 ac_abs_top_srcdir=$srcdir ;;
1492 *) # Relative name.
1493 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1494 ac_top_srcdir=$ac_top_build_prefix$srcdir
1495 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1496 esac
1497 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1499 cd "$ac_dir" || { ac_status=$?; continue; }
1500 # Check for guested configure.
1501 if test -f "$ac_srcdir/configure.gnu"; then
1502 echo &&
1503 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1504 elif test -f "$ac_srcdir/configure"; then
1505 echo &&
1506 $SHELL "$ac_srcdir/configure" --help=recursive
1507 else
1508 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1509 fi || ac_status=$?
1510 cd "$ac_pwd" || { ac_status=$?; break; }
1511 done
1514 test -n "$ac_init_help" && exit $ac_status
1515 if $ac_init_version; then
1516 cat <<\_ACEOF
1517 GNU OpenMP Runtime Library configure 1.0
1518 generated by GNU Autoconf 2.64
1520 Copyright (C) 2009 Free Software Foundation, Inc.
1521 This configure script is free software; the Free Software Foundation
1522 gives unlimited permission to copy, distribute and modify it.
1523 _ACEOF
1524 exit
1527 ## ------------------------ ##
1528 ## Autoconf initialization. ##
1529 ## ------------------------ ##
1531 # ac_fn_c_try_compile LINENO
1532 # --------------------------
1533 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1534 ac_fn_c_try_compile ()
1536 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1537 rm -f conftest.$ac_objext
1538 if { { ac_try="$ac_compile"
1539 case "(($ac_try" in
1540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1541 *) ac_try_echo=$ac_try;;
1542 esac
1543 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1544 $as_echo "$ac_try_echo"; } >&5
1545 (eval "$ac_compile") 2>conftest.err
1546 ac_status=$?
1547 if test -s conftest.err; then
1548 grep -v '^ *+' conftest.err >conftest.er1
1549 cat conftest.er1 >&5
1550 mv -f conftest.er1 conftest.err
1552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1553 test $ac_status = 0; } && {
1554 test -z "$ac_c_werror_flag" ||
1555 test ! -s conftest.err
1556 } && test -s conftest.$ac_objext; then :
1557 ac_retval=0
1558 else
1559 $as_echo "$as_me: failed program was:" >&5
1560 sed 's/^/| /' conftest.$ac_ext >&5
1562 ac_retval=1
1564 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1565 return $ac_retval
1567 } # ac_fn_c_try_compile
1569 # ac_fn_c_try_link LINENO
1570 # -----------------------
1571 # Try to link conftest.$ac_ext, and return whether this succeeded.
1572 ac_fn_c_try_link ()
1574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575 rm -f conftest.$ac_objext conftest$ac_exeext
1576 if { { ac_try="$ac_link"
1577 case "(($ac_try" in
1578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1579 *) ac_try_echo=$ac_try;;
1580 esac
1581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1582 $as_echo "$ac_try_echo"; } >&5
1583 (eval "$ac_link") 2>conftest.err
1584 ac_status=$?
1585 if test -s conftest.err; then
1586 grep -v '^ *+' conftest.err >conftest.er1
1587 cat conftest.er1 >&5
1588 mv -f conftest.er1 conftest.err
1590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1591 test $ac_status = 0; } && {
1592 test -z "$ac_c_werror_flag" ||
1593 test ! -s conftest.err
1594 } && test -s conftest$ac_exeext && {
1595 test "$cross_compiling" = yes ||
1596 $as_test_x conftest$ac_exeext
1597 }; then :
1598 ac_retval=0
1599 else
1600 $as_echo "$as_me: failed program was:" >&5
1601 sed 's/^/| /' conftest.$ac_ext >&5
1603 ac_retval=1
1605 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1606 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1607 # interfere with the next link command; also delete a directory that is
1608 # left behind by Apple's compiler. We do this before executing the actions.
1609 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1610 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1611 return $ac_retval
1613 } # ac_fn_c_try_link
1615 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1616 # -------------------------------------------------------
1617 # Tests whether HEADER exists and can be compiled using the include files in
1618 # INCLUDES, setting the cache variable VAR accordingly.
1619 ac_fn_c_check_header_compile ()
1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1623 $as_echo_n "checking for $2... " >&6; }
1624 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1625 $as_echo_n "(cached) " >&6
1626 else
1627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1628 /* end confdefs.h. */
1630 #include <$2>
1631 _ACEOF
1632 if ac_fn_c_try_compile "$LINENO"; then :
1633 eval "$3=yes"
1634 else
1635 eval "$3=no"
1637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1639 eval ac_res=\$$3
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1641 $as_echo "$ac_res" >&6; }
1642 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1644 } # ac_fn_c_check_header_compile
1646 # ac_fn_c_try_cpp LINENO
1647 # ----------------------
1648 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1649 ac_fn_c_try_cpp ()
1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652 if { { ac_try="$ac_cpp conftest.$ac_ext"
1653 case "(($ac_try" in
1654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1655 *) ac_try_echo=$ac_try;;
1656 esac
1657 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1658 $as_echo "$ac_try_echo"; } >&5
1659 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1660 ac_status=$?
1661 if test -s conftest.err; then
1662 grep -v '^ *+' conftest.err >conftest.er1
1663 cat conftest.er1 >&5
1664 mv -f conftest.er1 conftest.err
1666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1667 test $ac_status = 0; } >/dev/null && {
1668 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1669 test ! -s conftest.err
1670 }; then :
1671 ac_retval=0
1672 else
1673 $as_echo "$as_me: failed program was:" >&5
1674 sed 's/^/| /' conftest.$ac_ext >&5
1676 ac_retval=1
1678 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1679 return $ac_retval
1681 } # ac_fn_c_try_cpp
1683 # ac_fn_c_try_run LINENO
1684 # ----------------------
1685 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1686 # that executables *can* be run.
1687 ac_fn_c_try_run ()
1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690 if { { ac_try="$ac_link"
1691 case "(($ac_try" in
1692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693 *) ac_try_echo=$ac_try;;
1694 esac
1695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696 $as_echo "$ac_try_echo"; } >&5
1697 (eval "$ac_link") 2>&5
1698 ac_status=$?
1699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1701 { { case "(($ac_try" in
1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703 *) ac_try_echo=$ac_try;;
1704 esac
1705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706 $as_echo "$ac_try_echo"; } >&5
1707 (eval "$ac_try") 2>&5
1708 ac_status=$?
1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710 test $ac_status = 0; }; }; then :
1711 ac_retval=0
1712 else
1713 $as_echo "$as_me: program exited with status $ac_status" >&5
1714 $as_echo "$as_me: failed program was:" >&5
1715 sed 's/^/| /' conftest.$ac_ext >&5
1717 ac_retval=$ac_status
1719 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1720 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1721 return $ac_retval
1723 } # ac_fn_c_try_run
1725 # ac_fn_c_check_func LINENO FUNC VAR
1726 # ----------------------------------
1727 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1728 ac_fn_c_check_func ()
1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1732 $as_echo_n "checking for $2... " >&6; }
1733 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1734 $as_echo_n "(cached) " >&6
1735 else
1736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1737 /* end confdefs.h. */
1738 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1739 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1740 #define $2 innocuous_$2
1742 /* System header to define __stub macros and hopefully few prototypes,
1743 which can conflict with char $2 (); below.
1744 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1745 <limits.h> exists even on freestanding compilers. */
1747 #ifdef __STDC__
1748 # include <limits.h>
1749 #else
1750 # include <assert.h>
1751 #endif
1753 #undef $2
1755 /* Override any GCC internal prototype to avoid an error.
1756 Use char because int might match the return type of a GCC
1757 builtin and then its argument prototype would still apply. */
1758 #ifdef __cplusplus
1759 extern "C"
1760 #endif
1761 char $2 ();
1762 /* The GNU C library defines this for functions which it implements
1763 to always fail with ENOSYS. Some functions are actually named
1764 something starting with __ and the normal name is an alias. */
1765 #if defined __stub_$2 || defined __stub___$2
1766 choke me
1767 #endif
1770 main ()
1772 return $2 ();
1774 return 0;
1776 _ACEOF
1777 if ac_fn_c_try_link "$LINENO"; then :
1778 eval "$3=yes"
1779 else
1780 eval "$3=no"
1782 rm -f core conftest.err conftest.$ac_objext \
1783 conftest$ac_exeext conftest.$ac_ext
1785 eval ac_res=\$$3
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1787 $as_echo "$ac_res" >&6; }
1788 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1790 } # ac_fn_c_check_func
1792 # ac_fn_fc_try_compile LINENO
1793 # ---------------------------
1794 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1795 ac_fn_fc_try_compile ()
1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798 rm -f conftest.$ac_objext
1799 if { { ac_try="$ac_compile"
1800 case "(($ac_try" in
1801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802 *) ac_try_echo=$ac_try;;
1803 esac
1804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805 $as_echo "$ac_try_echo"; } >&5
1806 (eval "$ac_compile") 2>conftest.err
1807 ac_status=$?
1808 if test -s conftest.err; then
1809 grep -v '^ *+' conftest.err >conftest.er1
1810 cat conftest.er1 >&5
1811 mv -f conftest.er1 conftest.err
1813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1814 test $ac_status = 0; } && {
1815 test -z "$ac_fc_werror_flag" ||
1816 test ! -s conftest.err
1817 } && test -s conftest.$ac_objext; then :
1818 ac_retval=0
1819 else
1820 $as_echo "$as_me: failed program was:" >&5
1821 sed 's/^/| /' conftest.$ac_ext >&5
1823 ac_retval=1
1825 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1826 return $ac_retval
1828 } # ac_fn_fc_try_compile
1830 # ac_fn_fc_try_link LINENO
1831 # ------------------------
1832 # Try to link conftest.$ac_ext, and return whether this succeeded.
1833 ac_fn_fc_try_link ()
1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836 rm -f conftest.$ac_objext conftest$ac_exeext
1837 if { { ac_try="$ac_link"
1838 case "(($ac_try" in
1839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1840 *) ac_try_echo=$ac_try;;
1841 esac
1842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1843 $as_echo "$ac_try_echo"; } >&5
1844 (eval "$ac_link") 2>conftest.err
1845 ac_status=$?
1846 if test -s conftest.err; then
1847 grep -v '^ *+' conftest.err >conftest.er1
1848 cat conftest.er1 >&5
1849 mv -f conftest.er1 conftest.err
1851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1852 test $ac_status = 0; } && {
1853 test -z "$ac_fc_werror_flag" ||
1854 test ! -s conftest.err
1855 } && test -s conftest$ac_exeext && {
1856 test "$cross_compiling" = yes ||
1857 $as_test_x conftest$ac_exeext
1858 }; then :
1859 ac_retval=0
1860 else
1861 $as_echo "$as_me: failed program was:" >&5
1862 sed 's/^/| /' conftest.$ac_ext >&5
1864 ac_retval=1
1866 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1867 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1868 # interfere with the next link command; also delete a directory that is
1869 # left behind by Apple's compiler. We do this before executing the actions.
1870 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1871 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1872 return $ac_retval
1874 } # ac_fn_fc_try_link
1876 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1877 # -------------------------------------------------------
1878 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1879 # the include files in INCLUDES and setting the cache variable VAR
1880 # accordingly.
1881 ac_fn_c_check_header_mongrel ()
1883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1886 $as_echo_n "checking for $2... " >&6; }
1887 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1888 $as_echo_n "(cached) " >&6
1890 eval ac_res=\$$3
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1892 $as_echo "$ac_res" >&6; }
1893 else
1894 # Is the header compilable?
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1896 $as_echo_n "checking $2 usability... " >&6; }
1897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1898 /* end confdefs.h. */
1900 #include <$2>
1901 _ACEOF
1902 if ac_fn_c_try_compile "$LINENO"; then :
1903 ac_header_compiler=yes
1904 else
1905 ac_header_compiler=no
1907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1909 $as_echo "$ac_header_compiler" >&6; }
1911 # Is the header present?
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1913 $as_echo_n "checking $2 presence... " >&6; }
1914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1915 /* end confdefs.h. */
1916 #include <$2>
1917 _ACEOF
1918 if ac_fn_c_try_cpp "$LINENO"; then :
1919 ac_header_preproc=yes
1920 else
1921 ac_header_preproc=no
1923 rm -f conftest.err conftest.$ac_ext
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1925 $as_echo "$ac_header_preproc" >&6; }
1927 # So? What about this header?
1928 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1929 yes:no: )
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1931 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1933 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1935 no:yes:* )
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1937 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1939 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1941 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1943 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1945 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1947 esac
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1949 $as_echo_n "checking for $2... " >&6; }
1950 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1951 $as_echo_n "(cached) " >&6
1952 else
1953 eval "$3=\$ac_header_compiler"
1955 eval ac_res=\$$3
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1957 $as_echo "$ac_res" >&6; }
1959 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1961 } # ac_fn_c_check_header_mongrel
1963 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1964 # -------------------------------------------
1965 # Tests whether TYPE exists after having included INCLUDES, setting cache
1966 # variable VAR accordingly.
1967 ac_fn_c_check_type ()
1969 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1971 $as_echo_n "checking for $2... " >&6; }
1972 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1973 $as_echo_n "(cached) " >&6
1974 else
1975 eval "$3=no"
1976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1977 /* end confdefs.h. */
1980 main ()
1982 if (sizeof ($2))
1983 return 0;
1985 return 0;
1987 _ACEOF
1988 if ac_fn_c_try_compile "$LINENO"; then :
1989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1990 /* end confdefs.h. */
1993 main ()
1995 if (sizeof (($2)))
1996 return 0;
1998 return 0;
2000 _ACEOF
2001 if ac_fn_c_try_compile "$LINENO"; then :
2003 else
2004 eval "$3=yes"
2006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2010 eval ac_res=\$$3
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2012 $as_echo "$ac_res" >&6; }
2013 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2015 } # ac_fn_c_check_type
2017 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2018 # --------------------------------------------
2019 # Tries to find the compile-time value of EXPR in a program that includes
2020 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2021 # computed
2022 ac_fn_c_compute_int ()
2024 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2025 if test "$cross_compiling" = yes; then
2026 # Depending upon the size, compute the lo and hi bounds.
2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h. */
2031 main ()
2033 static int test_array [1 - 2 * !(($2) >= 0)];
2034 test_array [0] = 0
2037 return 0;
2039 _ACEOF
2040 if ac_fn_c_try_compile "$LINENO"; then :
2041 ac_lo=0 ac_mid=0
2042 while :; do
2043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2044 /* end confdefs.h. */
2047 main ()
2049 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2050 test_array [0] = 0
2053 return 0;
2055 _ACEOF
2056 if ac_fn_c_try_compile "$LINENO"; then :
2057 ac_hi=$ac_mid; break
2058 else
2059 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2060 if test $ac_lo -le $ac_mid; then
2061 ac_lo= ac_hi=
2062 break
2064 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2067 done
2068 else
2069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070 /* end confdefs.h. */
2073 main ()
2075 static int test_array [1 - 2 * !(($2) < 0)];
2076 test_array [0] = 0
2079 return 0;
2081 _ACEOF
2082 if ac_fn_c_try_compile "$LINENO"; then :
2083 ac_hi=-1 ac_mid=-1
2084 while :; do
2085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2086 /* end confdefs.h. */
2089 main ()
2091 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2092 test_array [0] = 0
2095 return 0;
2097 _ACEOF
2098 if ac_fn_c_try_compile "$LINENO"; then :
2099 ac_lo=$ac_mid; break
2100 else
2101 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2102 if test $ac_mid -le $ac_hi; then
2103 ac_lo= ac_hi=
2104 break
2106 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2109 done
2110 else
2111 ac_lo= ac_hi=
2113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2116 # Binary search between lo and hi bounds.
2117 while test "x$ac_lo" != "x$ac_hi"; do
2118 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2120 /* end confdefs.h. */
2123 main ()
2125 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2126 test_array [0] = 0
2129 return 0;
2131 _ACEOF
2132 if ac_fn_c_try_compile "$LINENO"; then :
2133 ac_hi=$ac_mid
2134 else
2135 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2138 done
2139 case $ac_lo in #((
2140 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2141 '') ac_retval=1 ;;
2142 esac
2143 else
2144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2145 /* end confdefs.h. */
2147 static long int longval () { return $2; }
2148 static unsigned long int ulongval () { return $2; }
2149 #include <stdio.h>
2150 #include <stdlib.h>
2152 main ()
2155 FILE *f = fopen ("conftest.val", "w");
2156 if (! f)
2157 return 1;
2158 if (($2) < 0)
2160 long int i = longval ();
2161 if (i != ($2))
2162 return 1;
2163 fprintf (f, "%ld", i);
2165 else
2167 unsigned long int i = ulongval ();
2168 if (i != ($2))
2169 return 1;
2170 fprintf (f, "%lu", i);
2172 /* Do not output a trailing newline, as this causes \r\n confusion
2173 on some platforms. */
2174 return ferror (f) || fclose (f) != 0;
2177 return 0;
2179 _ACEOF
2180 if ac_fn_c_try_run "$LINENO"; then :
2181 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2182 else
2183 ac_retval=1
2185 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2186 conftest.$ac_objext conftest.beam conftest.$ac_ext
2187 rm -f conftest.val
2190 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2191 return $ac_retval
2193 } # ac_fn_c_compute_int
2194 cat >config.log <<_ACEOF
2195 This file contains any messages produced by compilers while
2196 running configure, to aid debugging if configure makes a mistake.
2198 It was created by GNU OpenMP Runtime Library $as_me 1.0, which was
2199 generated by GNU Autoconf 2.64. Invocation command line was
2201 $ $0 $@
2203 _ACEOF
2204 exec 5>>config.log
2206 cat <<_ASUNAME
2207 ## --------- ##
2208 ## Platform. ##
2209 ## --------- ##
2211 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2212 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2213 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2214 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2215 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2217 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2218 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2220 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2221 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2222 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2223 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2224 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2225 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2226 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2228 _ASUNAME
2230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2231 for as_dir in $PATH
2233 IFS=$as_save_IFS
2234 test -z "$as_dir" && as_dir=.
2235 $as_echo "PATH: $as_dir"
2236 done
2237 IFS=$as_save_IFS
2239 } >&5
2241 cat >&5 <<_ACEOF
2244 ## ----------- ##
2245 ## Core tests. ##
2246 ## ----------- ##
2248 _ACEOF
2251 # Keep a trace of the command line.
2252 # Strip out --no-create and --no-recursion so they do not pile up.
2253 # Strip out --silent because we don't want to record it for future runs.
2254 # Also quote any args containing shell meta-characters.
2255 # Make two passes to allow for proper duplicate-argument suppression.
2256 ac_configure_args=
2257 ac_configure_args0=
2258 ac_configure_args1=
2259 ac_must_keep_next=false
2260 for ac_pass in 1 2
2262 for ac_arg
2264 case $ac_arg in
2265 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2266 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2267 | -silent | --silent | --silen | --sile | --sil)
2268 continue ;;
2269 *\'*)
2270 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2271 esac
2272 case $ac_pass in
2273 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2275 as_fn_append ac_configure_args1 " '$ac_arg'"
2276 if test $ac_must_keep_next = true; then
2277 ac_must_keep_next=false # Got value, back to normal.
2278 else
2279 case $ac_arg in
2280 *=* | --config-cache | -C | -disable-* | --disable-* \
2281 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2282 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2283 | -with-* | --with-* | -without-* | --without-* | --x)
2284 case "$ac_configure_args0 " in
2285 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2286 esac
2288 -* ) ac_must_keep_next=true ;;
2289 esac
2291 as_fn_append ac_configure_args " '$ac_arg'"
2293 esac
2294 done
2295 done
2296 { ac_configure_args0=; unset ac_configure_args0;}
2297 { ac_configure_args1=; unset ac_configure_args1;}
2299 # When interrupted or exit'd, cleanup temporary files, and complete
2300 # config.log. We remove comments because anyway the quotes in there
2301 # would cause problems or look ugly.
2302 # WARNING: Use '\'' to represent an apostrophe within the trap.
2303 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2304 trap 'exit_status=$?
2305 # Save into config.log some information that might help in debugging.
2307 echo
2309 cat <<\_ASBOX
2310 ## ---------------- ##
2311 ## Cache variables. ##
2312 ## ---------------- ##
2313 _ASBOX
2314 echo
2315 # The following way of writing the cache mishandles newlines in values,
2317 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2318 eval ac_val=\$$ac_var
2319 case $ac_val in #(
2320 *${as_nl}*)
2321 case $ac_var in #(
2322 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2323 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2324 esac
2325 case $ac_var in #(
2326 _ | IFS | as_nl) ;; #(
2327 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2328 *) { eval $ac_var=; unset $ac_var;} ;;
2329 esac ;;
2330 esac
2331 done
2332 (set) 2>&1 |
2333 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2334 *${as_nl}ac_space=\ *)
2335 sed -n \
2336 "s/'\''/'\''\\\\'\'''\''/g;
2337 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2338 ;; #(
2340 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2342 esac |
2343 sort
2345 echo
2347 cat <<\_ASBOX
2348 ## ----------------- ##
2349 ## Output variables. ##
2350 ## ----------------- ##
2351 _ASBOX
2352 echo
2353 for ac_var in $ac_subst_vars
2355 eval ac_val=\$$ac_var
2356 case $ac_val in
2357 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2358 esac
2359 $as_echo "$ac_var='\''$ac_val'\''"
2360 done | sort
2361 echo
2363 if test -n "$ac_subst_files"; then
2364 cat <<\_ASBOX
2365 ## ------------------- ##
2366 ## File substitutions. ##
2367 ## ------------------- ##
2368 _ASBOX
2369 echo
2370 for ac_var in $ac_subst_files
2372 eval ac_val=\$$ac_var
2373 case $ac_val in
2374 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2375 esac
2376 $as_echo "$ac_var='\''$ac_val'\''"
2377 done | sort
2378 echo
2381 if test -s confdefs.h; then
2382 cat <<\_ASBOX
2383 ## ----------- ##
2384 ## confdefs.h. ##
2385 ## ----------- ##
2386 _ASBOX
2387 echo
2388 cat confdefs.h
2389 echo
2391 test "$ac_signal" != 0 &&
2392 $as_echo "$as_me: caught signal $ac_signal"
2393 $as_echo "$as_me: exit $exit_status"
2394 } >&5
2395 rm -f core *.core core.conftest.* &&
2396 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2397 exit $exit_status
2399 for ac_signal in 1 2 13 15; do
2400 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2401 done
2402 ac_signal=0
2404 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2405 rm -f -r conftest* confdefs.h
2407 $as_echo "/* confdefs.h */" > confdefs.h
2409 # Predefined preprocessor variables.
2411 cat >>confdefs.h <<_ACEOF
2412 #define PACKAGE_NAME "$PACKAGE_NAME"
2413 _ACEOF
2415 cat >>confdefs.h <<_ACEOF
2416 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2417 _ACEOF
2419 cat >>confdefs.h <<_ACEOF
2420 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2421 _ACEOF
2423 cat >>confdefs.h <<_ACEOF
2424 #define PACKAGE_STRING "$PACKAGE_STRING"
2425 _ACEOF
2427 cat >>confdefs.h <<_ACEOF
2428 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2429 _ACEOF
2431 cat >>confdefs.h <<_ACEOF
2432 #define PACKAGE_URL "$PACKAGE_URL"
2433 _ACEOF
2436 # Let the site file select an alternate cache file if it wants to.
2437 # Prefer an explicitly selected file to automatically selected ones.
2438 ac_site_file1=NONE
2439 ac_site_file2=NONE
2440 if test -n "$CONFIG_SITE"; then
2441 ac_site_file1=$CONFIG_SITE
2442 elif test "x$prefix" != xNONE; then
2443 ac_site_file1=$prefix/share/config.site
2444 ac_site_file2=$prefix/etc/config.site
2445 else
2446 ac_site_file1=$ac_default_prefix/share/config.site
2447 ac_site_file2=$ac_default_prefix/etc/config.site
2449 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2451 test "x$ac_site_file" = xNONE && continue
2452 if test -r "$ac_site_file"; then
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2454 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2455 sed 's/^/| /' "$ac_site_file" >&5
2456 . "$ac_site_file"
2458 done
2460 if test -r "$cache_file"; then
2461 # Some versions of bash will fail to source /dev/null (special
2462 # files actually), so we avoid doing that.
2463 if test -f "$cache_file"; then
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2465 $as_echo "$as_me: loading cache $cache_file" >&6;}
2466 case $cache_file in
2467 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2468 *) . "./$cache_file";;
2469 esac
2471 else
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2473 $as_echo "$as_me: creating cache $cache_file" >&6;}
2474 >$cache_file
2477 # Check that the precious variables saved in the cache have kept the same
2478 # value.
2479 ac_cache_corrupted=false
2480 for ac_var in $ac_precious_vars; do
2481 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2482 eval ac_new_set=\$ac_env_${ac_var}_set
2483 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2484 eval ac_new_val=\$ac_env_${ac_var}_value
2485 case $ac_old_set,$ac_new_set in
2486 set,)
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2488 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2489 ac_cache_corrupted=: ;;
2490 ,set)
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2492 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2493 ac_cache_corrupted=: ;;
2494 ,);;
2496 if test "x$ac_old_val" != "x$ac_new_val"; then
2497 # differences in whitespace do not lead to failure.
2498 ac_old_val_w=`echo x $ac_old_val`
2499 ac_new_val_w=`echo x $ac_new_val`
2500 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2502 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2503 ac_cache_corrupted=:
2504 else
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2506 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2507 eval $ac_var=\$ac_old_val
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2510 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2512 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2513 fi;;
2514 esac
2515 # Pass precious variables to config.status.
2516 if test "$ac_new_set" = set; then
2517 case $ac_new_val in
2518 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2519 *) ac_arg=$ac_var=$ac_new_val ;;
2520 esac
2521 case " $ac_configure_args " in
2522 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2523 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2524 esac
2526 done
2527 if $ac_cache_corrupted; then
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2529 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2531 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2532 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2534 ## -------------------- ##
2535 ## Main body of script. ##
2536 ## -------------------- ##
2538 ac_ext=c
2539 ac_cpp='$CPP $CPPFLAGS'
2540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2548 ac_config_headers="$ac_config_headers config.h"
2551 # -------
2552 # Options
2553 # -------
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2556 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2557 # Check whether --enable-version-specific-runtime-libs was given.
2558 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2559 enableval=$enable_version_specific_runtime_libs;
2560 case "$enableval" in
2561 yes|no) ;;
2562 *) as_fn_error "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2563 esac
2565 else
2566 enable_version_specific_runtime_libs=no
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2571 $as_echo "$enable_version_specific_runtime_libs" >&6; }
2573 # We would like our source tree to be readonly. However when releases or
2574 # pre-releases are generated, the flex/bison generated files as well as the
2575 # various formats of manuals need to be included along with the rest of the
2576 # sources. Therefore we have --enable-generated-files-in-srcdir to do
2577 # just that.
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2579 $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2580 # Check whether --enable-generated-files-in-srcdir was given.
2581 if test "${enable_generated_files_in_srcdir+set}" = set; then :
2582 enableval=$enable_generated_files_in_srcdir;
2583 case "$enableval" in
2584 yes|no) ;;
2585 *) as_fn_error "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2586 esac
2588 else
2589 enable_generated_files_in_srcdir=no
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2594 $as_echo "$enable_generated_files_in_srcdir" >&6; }
2595 if test "$enable_generated_files_in_srcdir" = yes; then
2596 GENINSRC_TRUE=
2597 GENINSRC_FALSE='#'
2598 else
2599 GENINSRC_TRUE='#'
2600 GENINSRC_FALSE=
2605 # -------
2606 # -------
2608 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2610 # You will slowly go insane if you do not grok the following fact: when
2611 # building this library, the top-level /target/ becomes the library's /host/.
2613 # configure then causes --target to default to --host, exactly like any
2614 # other package using autoconf. Therefore, 'target' and 'host' will
2615 # always be the same. This makes sense both for native and cross compilers
2616 # just think about it for a little while. :-)
2618 # Also, if this library is being configured as part of a cross compiler, the
2619 # top-level configure script will pass the "real" host as $with_cross_host.
2621 # Do not delete or change the following two lines. For why, see
2622 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2623 ac_aux_dir=
2624 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2625 for ac_t in install-sh install.sh shtool; do
2626 if test -f "$ac_dir/$ac_t"; then
2627 ac_aux_dir=$ac_dir
2628 ac_install_sh="$ac_aux_dir/$ac_t -c"
2629 break 2
2631 done
2632 done
2633 if test -z "$ac_aux_dir"; then
2634 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2637 # These three variables are undocumented and unsupported,
2638 # and are intended to be withdrawn in a future Autoconf release.
2639 # They can cause serious problems if a builder's source tree is in a directory
2640 # whose full name contains unusual characters.
2641 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2642 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2643 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2646 # Make sure we can run config.sub.
2647 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2648 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2651 $as_echo_n "checking build system type... " >&6; }
2652 if test "${ac_cv_build+set}" = set; then :
2653 $as_echo_n "(cached) " >&6
2654 else
2655 ac_build_alias=$build_alias
2656 test "x$ac_build_alias" = x &&
2657 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2658 test "x$ac_build_alias" = x &&
2659 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2660 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2661 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2665 $as_echo "$ac_cv_build" >&6; }
2666 case $ac_cv_build in
2667 *-*-*) ;;
2668 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2669 esac
2670 build=$ac_cv_build
2671 ac_save_IFS=$IFS; IFS='-'
2672 set x $ac_cv_build
2673 shift
2674 build_cpu=$1
2675 build_vendor=$2
2676 shift; shift
2677 # Remember, the first character of IFS is used to create $*,
2678 # except with old shells:
2679 build_os=$*
2680 IFS=$ac_save_IFS
2681 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2685 $as_echo_n "checking host system type... " >&6; }
2686 if test "${ac_cv_host+set}" = set; then :
2687 $as_echo_n "(cached) " >&6
2688 else
2689 if test "x$host_alias" = x; then
2690 ac_cv_host=$ac_cv_build
2691 else
2692 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2693 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2698 $as_echo "$ac_cv_host" >&6; }
2699 case $ac_cv_host in
2700 *-*-*) ;;
2701 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2702 esac
2703 host=$ac_cv_host
2704 ac_save_IFS=$IFS; IFS='-'
2705 set x $ac_cv_host
2706 shift
2707 host_cpu=$1
2708 host_vendor=$2
2709 shift; shift
2710 # Remember, the first character of IFS is used to create $*,
2711 # except with old shells:
2712 host_os=$*
2713 IFS=$ac_save_IFS
2714 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2718 $as_echo_n "checking target system type... " >&6; }
2719 if test "${ac_cv_target+set}" = set; then :
2720 $as_echo_n "(cached) " >&6
2721 else
2722 if test "x$target_alias" = x; then
2723 ac_cv_target=$ac_cv_host
2724 else
2725 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2726 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2731 $as_echo "$ac_cv_target" >&6; }
2732 case $ac_cv_target in
2733 *-*-*) ;;
2734 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2735 esac
2736 target=$ac_cv_target
2737 ac_save_IFS=$IFS; IFS='-'
2738 set x $ac_cv_target
2739 shift
2740 target_cpu=$1
2741 target_vendor=$2
2742 shift; shift
2743 # Remember, the first character of IFS is used to create $*,
2744 # except with old shells:
2745 target_os=$*
2746 IFS=$ac_save_IFS
2747 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2750 # The aliases save the names the user supplied, while $host etc.
2751 # will get canonicalized.
2752 test -n "$target_alias" &&
2753 test "$program_prefix$program_suffix$program_transform_name" = \
2754 NONENONEs,x,x, &&
2755 program_prefix=${target_alias}-
2757 target_alias=${target_alias-$host_alias}
2759 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2760 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2761 # 1.9.0: minimum required version
2762 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2763 # of other PACKAGE_* variables will, however, and there's nothing
2764 # we can do about that; they come from AC_INIT).
2765 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2766 # file in the top srcdir, etc, etc), so stop complaining.
2767 # no-dist: we don't want 'dist' and related rules.
2768 # -Wall: turns on all automake warnings...
2769 # -Wno-portability: ...except this one, since GNU make is required.
2770 # -Wno-override: ... and this one, since we do want this in testsuite.
2771 am__api_version='1.11'
2773 # Find a good install program. We prefer a C program (faster),
2774 # so one script is as good as another. But avoid the broken or
2775 # incompatible versions:
2776 # SysV /etc/install, /usr/sbin/install
2777 # SunOS /usr/etc/install
2778 # IRIX /sbin/install
2779 # AIX /bin/install
2780 # AmigaOS /C/install, which installs bootblocks on floppy discs
2781 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2782 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2783 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2784 # OS/2's system install, which has a completely different semantic
2785 # ./install, which can be erroneously created by make from ./install.sh.
2786 # Reject install programs that cannot install multiple files.
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2788 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2789 if test -z "$INSTALL"; then
2790 if test "${ac_cv_path_install+set}" = set; then :
2791 $as_echo_n "(cached) " >&6
2792 else
2793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2794 for as_dir in $PATH
2796 IFS=$as_save_IFS
2797 test -z "$as_dir" && as_dir=.
2798 # Account for people who put trailing slashes in PATH elements.
2799 case $as_dir/ in #((
2800 ./ | .// | /[cC]/* | \
2801 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2802 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2803 /usr/ucb/* ) ;;
2805 # OSF1 and SCO ODT 3.0 have their own names for install.
2806 # Don't use installbsd from OSF since it installs stuff as root
2807 # by default.
2808 for ac_prog in ginstall scoinst install; do
2809 for ac_exec_ext in '' $ac_executable_extensions; do
2810 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2811 if test $ac_prog = install &&
2812 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2813 # AIX install. It has an incompatible calling convention.
2815 elif test $ac_prog = install &&
2816 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2817 # program-specific install script used by HP pwplus--don't use.
2819 else
2820 rm -rf conftest.one conftest.two conftest.dir
2821 echo one > conftest.one
2822 echo two > conftest.two
2823 mkdir conftest.dir
2824 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2825 test -s conftest.one && test -s conftest.two &&
2826 test -s conftest.dir/conftest.one &&
2827 test -s conftest.dir/conftest.two
2828 then
2829 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2830 break 3
2834 done
2835 done
2837 esac
2839 done
2840 IFS=$as_save_IFS
2842 rm -rf conftest.one conftest.two conftest.dir
2845 if test "${ac_cv_path_install+set}" = set; then
2846 INSTALL=$ac_cv_path_install
2847 else
2848 # As a last resort, use the slow shell script. Don't cache a
2849 # value for INSTALL within a source directory, because that will
2850 # break other packages using the cache if that directory is
2851 # removed, or if the value is a relative name.
2852 INSTALL=$ac_install_sh
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2856 $as_echo "$INSTALL" >&6; }
2858 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2859 # It thinks the first close brace ends the variable substitution.
2860 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2862 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2864 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2867 $as_echo_n "checking whether build environment is sane... " >&6; }
2868 # Just in case
2869 sleep 1
2870 echo timestamp > conftest.file
2871 # Reject unsafe characters in $srcdir or the absolute working directory
2872 # name. Accept space and tab only in the latter.
2873 am_lf='
2875 case `pwd` in
2876 *[\\\"\#\$\&\'\`$am_lf]*)
2877 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2878 esac
2879 case $srcdir in
2880 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2881 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2882 esac
2884 # Do `set' in a subshell so we don't clobber the current shell's
2885 # arguments. Must try -L first in case configure is actually a
2886 # symlink; some systems play weird games with the mod time of symlinks
2887 # (eg FreeBSD returns the mod time of the symlink's containing
2888 # directory).
2889 if (
2890 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2891 if test "$*" = "X"; then
2892 # -L didn't work.
2893 set X `ls -t "$srcdir/configure" conftest.file`
2895 rm -f conftest.file
2896 if test "$*" != "X $srcdir/configure conftest.file" \
2897 && test "$*" != "X conftest.file $srcdir/configure"; then
2899 # If neither matched, then we have a broken ls. This can happen
2900 # if, for instance, CONFIG_SHELL is bash and it inherits a
2901 # broken ls alias from the environment. This has actually
2902 # happened. Such a system could not be considered "sane".
2903 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2904 alias in your environment" "$LINENO" 5
2907 test "$2" = conftest.file
2909 then
2910 # Ok.
2912 else
2913 as_fn_error "newly created file is older than distributed files!
2914 Check your system clock" "$LINENO" 5
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2917 $as_echo "yes" >&6; }
2918 test "$program_prefix" != NONE &&
2919 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2920 # Use a double $ so make ignores it.
2921 test "$program_suffix" != NONE &&
2922 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2923 # Double any \ or $.
2924 # By default was `s,x,x', remove it if useless.
2925 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2926 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2928 # expand $ac_aux_dir to an absolute path
2929 am_aux_dir=`cd $ac_aux_dir && pwd`
2931 if test x"${MISSING+set}" != xset; then
2932 case $am_aux_dir in
2933 *\ * | *\ *)
2934 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2936 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2937 esac
2939 # Use eval to expand $SHELL
2940 if eval "$MISSING --run true"; then
2941 am_missing_run="$MISSING --run "
2942 else
2943 am_missing_run=
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2945 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2948 if test x"${install_sh}" != xset; then
2949 case $am_aux_dir in
2950 *\ * | *\ *)
2951 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2953 install_sh="\${SHELL} $am_aux_dir/install-sh"
2954 esac
2957 # Installed binaries are usually stripped using `strip' when the user
2958 # run `make install-strip'. However `strip' might not be the right
2959 # tool to use in cross-compilation environments, therefore Automake
2960 # will honor the `STRIP' environment variable to overrule this program.
2961 if test "$cross_compiling" != no; then
2962 if test -n "$ac_tool_prefix"; then
2963 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2964 set dummy ${ac_tool_prefix}strip; ac_word=$2
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2966 $as_echo_n "checking for $ac_word... " >&6; }
2967 if test "${ac_cv_prog_STRIP+set}" = set; then :
2968 $as_echo_n "(cached) " >&6
2969 else
2970 if test -n "$STRIP"; then
2971 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2972 else
2973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2974 for as_dir in $PATH
2976 IFS=$as_save_IFS
2977 test -z "$as_dir" && as_dir=.
2978 for ac_exec_ext in '' $ac_executable_extensions; do
2979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2980 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2982 break 2
2984 done
2985 done
2986 IFS=$as_save_IFS
2990 STRIP=$ac_cv_prog_STRIP
2991 if test -n "$STRIP"; then
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2993 $as_echo "$STRIP" >&6; }
2994 else
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2996 $as_echo "no" >&6; }
3001 if test -z "$ac_cv_prog_STRIP"; then
3002 ac_ct_STRIP=$STRIP
3003 # Extract the first word of "strip", so it can be a program name with args.
3004 set dummy strip; ac_word=$2
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3006 $as_echo_n "checking for $ac_word... " >&6; }
3007 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3008 $as_echo_n "(cached) " >&6
3009 else
3010 if test -n "$ac_ct_STRIP"; then
3011 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3012 else
3013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3014 for as_dir in $PATH
3016 IFS=$as_save_IFS
3017 test -z "$as_dir" && as_dir=.
3018 for ac_exec_ext in '' $ac_executable_extensions; do
3019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3020 ac_cv_prog_ac_ct_STRIP="strip"
3021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3022 break 2
3024 done
3025 done
3026 IFS=$as_save_IFS
3030 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3031 if test -n "$ac_ct_STRIP"; then
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3033 $as_echo "$ac_ct_STRIP" >&6; }
3034 else
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3036 $as_echo "no" >&6; }
3039 if test "x$ac_ct_STRIP" = x; then
3040 STRIP=":"
3041 else
3042 case $cross_compiling:$ac_tool_warned in
3043 yes:)
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3045 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3046 ac_tool_warned=yes ;;
3047 esac
3048 STRIP=$ac_ct_STRIP
3050 else
3051 STRIP="$ac_cv_prog_STRIP"
3055 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3058 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3059 if test -z "$MKDIR_P"; then
3060 if test "${ac_cv_path_mkdir+set}" = set; then :
3061 $as_echo_n "(cached) " >&6
3062 else
3063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3064 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3066 IFS=$as_save_IFS
3067 test -z "$as_dir" && as_dir=.
3068 for ac_prog in mkdir gmkdir; do
3069 for ac_exec_ext in '' $ac_executable_extensions; do
3070 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3071 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3072 'mkdir (GNU coreutils) '* | \
3073 'mkdir (coreutils) '* | \
3074 'mkdir (fileutils) '4.1*)
3075 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3076 break 3;;
3077 esac
3078 done
3079 done
3080 done
3081 IFS=$as_save_IFS
3085 if test "${ac_cv_path_mkdir+set}" = set; then
3086 MKDIR_P="$ac_cv_path_mkdir -p"
3087 else
3088 # As a last resort, use the slow shell script. Don't cache a
3089 # value for MKDIR_P within a source directory, because that will
3090 # break other packages using the cache if that directory is
3091 # removed, or if the value is a relative name.
3092 test -d ./--version && rmdir ./--version
3093 MKDIR_P="$ac_install_sh -d"
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3097 $as_echo "$MKDIR_P" >&6; }
3099 mkdir_p="$MKDIR_P"
3100 case $mkdir_p in
3101 [\\/$]* | ?:[\\/]*) ;;
3102 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3103 esac
3105 for ac_prog in gawk mawk nawk awk
3107 # Extract the first word of "$ac_prog", so it can be a program name with args.
3108 set dummy $ac_prog; ac_word=$2
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3110 $as_echo_n "checking for $ac_word... " >&6; }
3111 if test "${ac_cv_prog_AWK+set}" = set; then :
3112 $as_echo_n "(cached) " >&6
3113 else
3114 if test -n "$AWK"; then
3115 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3116 else
3117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3118 for as_dir in $PATH
3120 IFS=$as_save_IFS
3121 test -z "$as_dir" && as_dir=.
3122 for ac_exec_ext in '' $ac_executable_extensions; do
3123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3124 ac_cv_prog_AWK="$ac_prog"
3125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3126 break 2
3128 done
3129 done
3130 IFS=$as_save_IFS
3134 AWK=$ac_cv_prog_AWK
3135 if test -n "$AWK"; then
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3137 $as_echo "$AWK" >&6; }
3138 else
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3140 $as_echo "no" >&6; }
3144 test -n "$AWK" && break
3145 done
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3148 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3149 set x ${MAKE-make}
3150 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3151 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3152 $as_echo_n "(cached) " >&6
3153 else
3154 cat >conftest.make <<\_ACEOF
3155 SHELL = /bin/sh
3156 all:
3157 @echo '@@@%%%=$(MAKE)=@@@%%%'
3158 _ACEOF
3159 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3160 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3161 *@@@%%%=?*=@@@%%%*)
3162 eval ac_cv_prog_make_${ac_make}_set=yes;;
3164 eval ac_cv_prog_make_${ac_make}_set=no;;
3165 esac
3166 rm -f conftest.make
3168 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3170 $as_echo "yes" >&6; }
3171 SET_MAKE=
3172 else
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3174 $as_echo "no" >&6; }
3175 SET_MAKE="MAKE=${MAKE-make}"
3178 rm -rf .tst 2>/dev/null
3179 mkdir .tst 2>/dev/null
3180 if test -d .tst; then
3181 am__leading_dot=.
3182 else
3183 am__leading_dot=_
3185 rmdir .tst 2>/dev/null
3187 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3188 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3189 # is not polluted with repeated "-I."
3190 am__isrc=' -I$(srcdir)'
3191 # test to see if srcdir already configured
3192 if test -f $srcdir/config.status; then
3193 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3197 # test whether we have cygpath
3198 if test -z "$CYGPATH_W"; then
3199 if (cygpath --version) >/dev/null 2>/dev/null; then
3200 CYGPATH_W='cygpath -w'
3201 else
3202 CYGPATH_W=echo
3207 # Define the identity of the package.
3208 PACKAGE='libgomp'
3209 VERSION='1.0'
3212 cat >>confdefs.h <<_ACEOF
3213 #define PACKAGE "$PACKAGE"
3214 _ACEOF
3217 cat >>confdefs.h <<_ACEOF
3218 #define VERSION "$VERSION"
3219 _ACEOF
3221 # Some tools Automake needs.
3223 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3226 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3229 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3232 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3235 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3237 # We need awk for the "check" target. The system "awk" is bad on
3238 # some platforms.
3239 # Always define AMTAR for backward compatibility.
3241 AMTAR=${AMTAR-"${am_missing_run}tar"}
3243 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3249 # Default to --enable-multilib
3250 # Check whether --enable-multilib was given.
3251 if test "${enable_multilib+set}" = set; then :
3252 enableval=$enable_multilib; case "$enableval" in
3253 yes) multilib=yes ;;
3254 no) multilib=no ;;
3255 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3256 esac
3257 else
3258 multilib=yes
3262 # We may get other options which we leave undocumented:
3263 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3264 # See config-ml.in if you want the gory details.
3266 if test "$srcdir" = "."; then
3267 if test "$with_target_subdir" != "."; then
3268 multi_basedir="$srcdir/$with_multisrctop../.."
3269 else
3270 multi_basedir="$srcdir/$with_multisrctop.."
3272 else
3273 multi_basedir="$srcdir/.."
3277 # Even if the default multilib is not a cross compilation,
3278 # it may be that some of the other multilibs are.
3279 if test $cross_compiling = no && test $multilib = yes \
3280 && test "x${with_multisubdir}" != x ; then
3281 cross_compiling=maybe
3284 ac_config_commands="$ac_config_commands default-1"
3287 # Calculate toolexeclibdir
3288 # Also toolexecdir, though it's only used in toolexeclibdir
3289 case ${enable_version_specific_runtime_libs} in
3290 yes)
3291 # Need the gcc compiler version to know where to install libraries
3292 # and header files if --enable-version-specific-runtime-libs option
3293 # is selected.
3294 toolexecdir='$(libdir)/gcc/$(target_alias)'
3295 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3298 if test -n "$with_cross_host" &&
3299 test x"$with_cross_host" != x"no"; then
3300 # Install a library built with a cross compiler in tooldir, not libdir.
3301 toolexecdir='$(exec_prefix)/$(target_alias)'
3302 toolexeclibdir='$(toolexecdir)/lib'
3303 else
3304 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3305 toolexeclibdir='$(libdir)'
3307 multi_os_directory=`$CC -print-multi-os-directory`
3308 case $multi_os_directory in
3309 .) ;; # Avoid trailing /.
3310 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3311 esac
3313 esac
3317 # Check the compiler.
3318 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3319 # We must force CC to /not/ be precious variables; otherwise
3320 # the wrong, non-multilib-adjusted value will be used in multilibs.
3321 # As a side effect, we have to subst CFLAGS ourselves.
3325 ac_ext=c
3326 ac_cpp='$CPP $CPPFLAGS'
3327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3330 if test -n "$ac_tool_prefix"; then
3331 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3332 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3334 $as_echo_n "checking for $ac_word... " >&6; }
3335 if test "${ac_cv_prog_CC+set}" = set; then :
3336 $as_echo_n "(cached) " >&6
3337 else
3338 if test -n "$CC"; then
3339 ac_cv_prog_CC="$CC" # Let the user override the test.
3340 else
3341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3342 for as_dir in $PATH
3344 IFS=$as_save_IFS
3345 test -z "$as_dir" && as_dir=.
3346 for ac_exec_ext in '' $ac_executable_extensions; do
3347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3348 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3350 break 2
3352 done
3353 done
3354 IFS=$as_save_IFS
3358 CC=$ac_cv_prog_CC
3359 if test -n "$CC"; then
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3361 $as_echo "$CC" >&6; }
3362 else
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3364 $as_echo "no" >&6; }
3369 if test -z "$ac_cv_prog_CC"; then
3370 ac_ct_CC=$CC
3371 # Extract the first word of "gcc", so it can be a program name with args.
3372 set dummy gcc; ac_word=$2
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3374 $as_echo_n "checking for $ac_word... " >&6; }
3375 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3376 $as_echo_n "(cached) " >&6
3377 else
3378 if test -n "$ac_ct_CC"; then
3379 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3380 else
3381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3382 for as_dir in $PATH
3384 IFS=$as_save_IFS
3385 test -z "$as_dir" && as_dir=.
3386 for ac_exec_ext in '' $ac_executable_extensions; do
3387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3388 ac_cv_prog_ac_ct_CC="gcc"
3389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3390 break 2
3392 done
3393 done
3394 IFS=$as_save_IFS
3398 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3399 if test -n "$ac_ct_CC"; then
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3401 $as_echo "$ac_ct_CC" >&6; }
3402 else
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3404 $as_echo "no" >&6; }
3407 if test "x$ac_ct_CC" = x; then
3408 CC=""
3409 else
3410 case $cross_compiling:$ac_tool_warned in
3411 yes:)
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3413 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3414 ac_tool_warned=yes ;;
3415 esac
3416 CC=$ac_ct_CC
3418 else
3419 CC="$ac_cv_prog_CC"
3422 if test -z "$CC"; then
3423 if test -n "$ac_tool_prefix"; then
3424 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3425 set dummy ${ac_tool_prefix}cc; ac_word=$2
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3427 $as_echo_n "checking for $ac_word... " >&6; }
3428 if test "${ac_cv_prog_CC+set}" = set; then :
3429 $as_echo_n "(cached) " >&6
3430 else
3431 if test -n "$CC"; then
3432 ac_cv_prog_CC="$CC" # Let the user override the test.
3433 else
3434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3435 for as_dir in $PATH
3437 IFS=$as_save_IFS
3438 test -z "$as_dir" && as_dir=.
3439 for ac_exec_ext in '' $ac_executable_extensions; do
3440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3441 ac_cv_prog_CC="${ac_tool_prefix}cc"
3442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3443 break 2
3445 done
3446 done
3447 IFS=$as_save_IFS
3451 CC=$ac_cv_prog_CC
3452 if test -n "$CC"; then
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3454 $as_echo "$CC" >&6; }
3455 else
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3457 $as_echo "no" >&6; }
3463 if test -z "$CC"; then
3464 # Extract the first word of "cc", so it can be a program name with args.
3465 set dummy cc; ac_word=$2
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3467 $as_echo_n "checking for $ac_word... " >&6; }
3468 if test "${ac_cv_prog_CC+set}" = set; then :
3469 $as_echo_n "(cached) " >&6
3470 else
3471 if test -n "$CC"; then
3472 ac_cv_prog_CC="$CC" # Let the user override the test.
3473 else
3474 ac_prog_rejected=no
3475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3476 for as_dir in $PATH
3478 IFS=$as_save_IFS
3479 test -z "$as_dir" && as_dir=.
3480 for ac_exec_ext in '' $ac_executable_extensions; do
3481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3482 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3483 ac_prog_rejected=yes
3484 continue
3486 ac_cv_prog_CC="cc"
3487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3488 break 2
3490 done
3491 done
3492 IFS=$as_save_IFS
3494 if test $ac_prog_rejected = yes; then
3495 # We found a bogon in the path, so make sure we never use it.
3496 set dummy $ac_cv_prog_CC
3497 shift
3498 if test $# != 0; then
3499 # We chose a different compiler from the bogus one.
3500 # However, it has the same basename, so the bogon will be chosen
3501 # first if we set CC to just the basename; use the full file name.
3502 shift
3503 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3508 CC=$ac_cv_prog_CC
3509 if test -n "$CC"; then
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3511 $as_echo "$CC" >&6; }
3512 else
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3514 $as_echo "no" >&6; }
3519 if test -z "$CC"; then
3520 if test -n "$ac_tool_prefix"; then
3521 for ac_prog in cl.exe
3523 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3524 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3526 $as_echo_n "checking for $ac_word... " >&6; }
3527 if test "${ac_cv_prog_CC+set}" = set; then :
3528 $as_echo_n "(cached) " >&6
3529 else
3530 if test -n "$CC"; then
3531 ac_cv_prog_CC="$CC" # Let the user override the test.
3532 else
3533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3534 for as_dir in $PATH
3536 IFS=$as_save_IFS
3537 test -z "$as_dir" && as_dir=.
3538 for ac_exec_ext in '' $ac_executable_extensions; do
3539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3540 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3542 break 2
3544 done
3545 done
3546 IFS=$as_save_IFS
3550 CC=$ac_cv_prog_CC
3551 if test -n "$CC"; then
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3553 $as_echo "$CC" >&6; }
3554 else
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3556 $as_echo "no" >&6; }
3560 test -n "$CC" && break
3561 done
3563 if test -z "$CC"; then
3564 ac_ct_CC=$CC
3565 for ac_prog in cl.exe
3567 # Extract the first word of "$ac_prog", so it can be a program name with args.
3568 set dummy $ac_prog; ac_word=$2
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3570 $as_echo_n "checking for $ac_word... " >&6; }
3571 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3572 $as_echo_n "(cached) " >&6
3573 else
3574 if test -n "$ac_ct_CC"; then
3575 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3576 else
3577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3578 for as_dir in $PATH
3580 IFS=$as_save_IFS
3581 test -z "$as_dir" && as_dir=.
3582 for ac_exec_ext in '' $ac_executable_extensions; do
3583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3584 ac_cv_prog_ac_ct_CC="$ac_prog"
3585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3586 break 2
3588 done
3589 done
3590 IFS=$as_save_IFS
3594 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3595 if test -n "$ac_ct_CC"; then
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3597 $as_echo "$ac_ct_CC" >&6; }
3598 else
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3600 $as_echo "no" >&6; }
3604 test -n "$ac_ct_CC" && break
3605 done
3607 if test "x$ac_ct_CC" = x; then
3608 CC=""
3609 else
3610 case $cross_compiling:$ac_tool_warned in
3611 yes:)
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3613 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3614 ac_tool_warned=yes ;;
3615 esac
3616 CC=$ac_ct_CC
3623 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3624 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3625 as_fn_error "no acceptable C compiler found in \$PATH
3626 See \`config.log' for more details." "$LINENO" 5; }
3628 # Provide some information about the compiler.
3629 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3630 set X $ac_compile
3631 ac_compiler=$2
3632 for ac_option in --version -v -V -qversion; do
3633 { { ac_try="$ac_compiler $ac_option >&5"
3634 case "(($ac_try" in
3635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3636 *) ac_try_echo=$ac_try;;
3637 esac
3638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3639 $as_echo "$ac_try_echo"; } >&5
3640 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3641 ac_status=$?
3642 if test -s conftest.err; then
3643 sed '10a\
3644 ... rest of stderr output deleted ...
3645 10q' conftest.err >conftest.er1
3646 cat conftest.er1 >&5
3647 rm -f conftest.er1 conftest.err
3649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3650 test $ac_status = 0; }
3651 done
3653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3654 /* end confdefs.h. */
3657 main ()
3661 return 0;
3663 _ACEOF
3664 ac_clean_files_save=$ac_clean_files
3665 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3666 # Try to create an executable without -o first, disregard a.out.
3667 # It will help us diagnose broken compilers, and finding out an intuition
3668 # of exeext.
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3670 $as_echo_n "checking for C compiler default output file name... " >&6; }
3671 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3673 # The possible output files:
3674 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3676 ac_rmfiles=
3677 for ac_file in $ac_files
3679 case $ac_file in
3680 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3681 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3682 esac
3683 done
3684 rm -f $ac_rmfiles
3686 if { { ac_try="$ac_link_default"
3687 case "(($ac_try" in
3688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3689 *) ac_try_echo=$ac_try;;
3690 esac
3691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3692 $as_echo "$ac_try_echo"; } >&5
3693 (eval "$ac_link_default") 2>&5
3694 ac_status=$?
3695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3696 test $ac_status = 0; }; then :
3697 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3698 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3699 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3700 # so that the user can short-circuit this test for compilers unknown to
3701 # Autoconf.
3702 for ac_file in $ac_files ''
3704 test -f "$ac_file" || continue
3705 case $ac_file in
3706 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3708 [ab].out )
3709 # We found the default executable, but exeext='' is most
3710 # certainly right.
3711 break;;
3712 *.* )
3713 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3714 then :; else
3715 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3717 # We set ac_cv_exeext here because the later test for it is not
3718 # safe: cross compilers may not add the suffix if given an `-o'
3719 # argument, so we may need to know it at that point already.
3720 # Even if this section looks crufty: it has the advantage of
3721 # actually working.
3722 break;;
3724 break;;
3725 esac
3726 done
3727 test "$ac_cv_exeext" = no && ac_cv_exeext=
3729 else
3730 ac_file=''
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3733 $as_echo "$ac_file" >&6; }
3734 if test -z "$ac_file"; then :
3735 $as_echo "$as_me: failed program was:" >&5
3736 sed 's/^/| /' conftest.$ac_ext >&5
3738 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3739 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3740 { as_fn_set_status 77
3741 as_fn_error "C compiler cannot create executables
3742 See \`config.log' for more details." "$LINENO" 5; }; }
3744 ac_exeext=$ac_cv_exeext
3746 # Check that the compiler produces executables we can run. If not, either
3747 # the compiler is broken, or we cross compile.
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3749 $as_echo_n "checking whether the C compiler works... " >&6; }
3750 # If not cross compiling, check that we can run a simple program.
3751 if test "$cross_compiling" != yes; then
3752 if { ac_try='./$ac_file'
3753 { { case "(($ac_try" in
3754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3755 *) ac_try_echo=$ac_try;;
3756 esac
3757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3758 $as_echo "$ac_try_echo"; } >&5
3759 (eval "$ac_try") 2>&5
3760 ac_status=$?
3761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3762 test $ac_status = 0; }; }; then
3763 cross_compiling=no
3764 else
3765 if test "$cross_compiling" = maybe; then
3766 cross_compiling=yes
3767 else
3768 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3769 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3770 as_fn_error "cannot run C compiled programs.
3771 If you meant to cross compile, use \`--host'.
3772 See \`config.log' for more details." "$LINENO" 5; }
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3777 $as_echo "yes" >&6; }
3779 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3780 ac_clean_files=$ac_clean_files_save
3781 # Check that the compiler produces executables we can run. If not, either
3782 # the compiler is broken, or we cross compile.
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3784 $as_echo_n "checking whether we are cross compiling... " >&6; }
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3786 $as_echo "$cross_compiling" >&6; }
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3789 $as_echo_n "checking for suffix of executables... " >&6; }
3790 if { { ac_try="$ac_link"
3791 case "(($ac_try" in
3792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3793 *) ac_try_echo=$ac_try;;
3794 esac
3795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3796 $as_echo "$ac_try_echo"; } >&5
3797 (eval "$ac_link") 2>&5
3798 ac_status=$?
3799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3800 test $ac_status = 0; }; then :
3801 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3802 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3803 # work properly (i.e., refer to `conftest.exe'), while it won't with
3804 # `rm'.
3805 for ac_file in conftest.exe conftest conftest.*; do
3806 test -f "$ac_file" || continue
3807 case $ac_file in
3808 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3809 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3810 break;;
3811 * ) break;;
3812 esac
3813 done
3814 else
3815 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3816 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3817 as_fn_error "cannot compute suffix of executables: cannot compile and link
3818 See \`config.log' for more details." "$LINENO" 5; }
3820 rm -f conftest$ac_cv_exeext
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3822 $as_echo "$ac_cv_exeext" >&6; }
3824 rm -f conftest.$ac_ext
3825 EXEEXT=$ac_cv_exeext
3826 ac_exeext=$EXEEXT
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3828 $as_echo_n "checking for suffix of object files... " >&6; }
3829 if test "${ac_cv_objext+set}" = set; then :
3830 $as_echo_n "(cached) " >&6
3831 else
3832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3833 /* end confdefs.h. */
3836 main ()
3840 return 0;
3842 _ACEOF
3843 rm -f conftest.o conftest.obj
3844 if { { ac_try="$ac_compile"
3845 case "(($ac_try" in
3846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3847 *) ac_try_echo=$ac_try;;
3848 esac
3849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3850 $as_echo "$ac_try_echo"; } >&5
3851 (eval "$ac_compile") 2>&5
3852 ac_status=$?
3853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3854 test $ac_status = 0; }; then :
3855 for ac_file in conftest.o conftest.obj conftest.*; do
3856 test -f "$ac_file" || continue;
3857 case $ac_file in
3858 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3859 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3860 break;;
3861 esac
3862 done
3863 else
3864 $as_echo "$as_me: failed program was:" >&5
3865 sed 's/^/| /' conftest.$ac_ext >&5
3867 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3868 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3869 as_fn_error "cannot compute suffix of object files: cannot compile
3870 See \`config.log' for more details." "$LINENO" 5; }
3872 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3875 $as_echo "$ac_cv_objext" >&6; }
3876 OBJEXT=$ac_cv_objext
3877 ac_objext=$OBJEXT
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3879 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3880 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3881 $as_echo_n "(cached) " >&6
3882 else
3883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3884 /* end confdefs.h. */
3887 main ()
3889 #ifndef __GNUC__
3890 choke me
3891 #endif
3894 return 0;
3896 _ACEOF
3897 if ac_fn_c_try_compile "$LINENO"; then :
3898 ac_compiler_gnu=yes
3899 else
3900 ac_compiler_gnu=no
3902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3903 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3907 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3908 if test $ac_compiler_gnu = yes; then
3909 GCC=yes
3910 else
3911 GCC=
3913 ac_test_CFLAGS=${CFLAGS+set}
3914 ac_save_CFLAGS=$CFLAGS
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3916 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3917 if test "${ac_cv_prog_cc_g+set}" = set; then :
3918 $as_echo_n "(cached) " >&6
3919 else
3920 ac_save_c_werror_flag=$ac_c_werror_flag
3921 ac_c_werror_flag=yes
3922 ac_cv_prog_cc_g=no
3923 CFLAGS="-g"
3924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3925 /* end confdefs.h. */
3928 main ()
3932 return 0;
3934 _ACEOF
3935 if ac_fn_c_try_compile "$LINENO"; then :
3936 ac_cv_prog_cc_g=yes
3937 else
3938 CFLAGS=""
3939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3940 /* end confdefs.h. */
3943 main ()
3947 return 0;
3949 _ACEOF
3950 if ac_fn_c_try_compile "$LINENO"; then :
3952 else
3953 ac_c_werror_flag=$ac_save_c_werror_flag
3954 CFLAGS="-g"
3955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3956 /* end confdefs.h. */
3959 main ()
3963 return 0;
3965 _ACEOF
3966 if ac_fn_c_try_compile "$LINENO"; then :
3967 ac_cv_prog_cc_g=yes
3969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3974 ac_c_werror_flag=$ac_save_c_werror_flag
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3977 $as_echo "$ac_cv_prog_cc_g" >&6; }
3978 if test "$ac_test_CFLAGS" = set; then
3979 CFLAGS=$ac_save_CFLAGS
3980 elif test $ac_cv_prog_cc_g = yes; then
3981 if test "$GCC" = yes; then
3982 CFLAGS="-g -O2"
3983 else
3984 CFLAGS="-g"
3986 else
3987 if test "$GCC" = yes; then
3988 CFLAGS="-O2"
3989 else
3990 CFLAGS=
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3994 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3995 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3996 $as_echo_n "(cached) " >&6
3997 else
3998 ac_cv_prog_cc_c89=no
3999 ac_save_CC=$CC
4000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4001 /* end confdefs.h. */
4002 #include <stdarg.h>
4003 #include <stdio.h>
4004 #include <sys/types.h>
4005 #include <sys/stat.h>
4006 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4007 struct buf { int x; };
4008 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4009 static char *e (p, i)
4010 char **p;
4011 int i;
4013 return p[i];
4015 static char *f (char * (*g) (char **, int), char **p, ...)
4017 char *s;
4018 va_list v;
4019 va_start (v,p);
4020 s = g (p, va_arg (v,int));
4021 va_end (v);
4022 return s;
4025 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4026 function prototypes and stuff, but not '\xHH' hex character constants.
4027 These don't provoke an error unfortunately, instead are silently treated
4028 as 'x'. The following induces an error, until -std is added to get
4029 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4030 array size at least. It's necessary to write '\x00'==0 to get something
4031 that's true only with -std. */
4032 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4034 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4035 inside strings and character constants. */
4036 #define FOO(x) 'x'
4037 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4039 int test (int i, double x);
4040 struct s1 {int (*f) (int a);};
4041 struct s2 {int (*f) (double a);};
4042 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4043 int argc;
4044 char **argv;
4046 main ()
4048 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4050 return 0;
4052 _ACEOF
4053 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4054 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4056 CC="$ac_save_CC $ac_arg"
4057 if ac_fn_c_try_compile "$LINENO"; then :
4058 ac_cv_prog_cc_c89=$ac_arg
4060 rm -f core conftest.err conftest.$ac_objext
4061 test "x$ac_cv_prog_cc_c89" != "xno" && break
4062 done
4063 rm -f conftest.$ac_ext
4064 CC=$ac_save_CC
4067 # AC_CACHE_VAL
4068 case "x$ac_cv_prog_cc_c89" in
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4071 $as_echo "none needed" >&6; } ;;
4072 xno)
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4074 $as_echo "unsupported" >&6; } ;;
4076 CC="$CC $ac_cv_prog_cc_c89"
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4078 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4079 esac
4080 if test "x$ac_cv_prog_cc_c89" != xno; then :
4084 ac_ext=c
4085 ac_cpp='$CPP $CPPFLAGS'
4086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4089 DEPDIR="${am__leading_dot}deps"
4091 ac_config_commands="$ac_config_commands depfiles"
4094 am_make=${MAKE-make}
4095 cat > confinc << 'END'
4096 am__doit:
4097 @echo this is the am__doit target
4098 .PHONY: am__doit
4100 # If we don't find an include directive, just comment out the code.
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4102 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4103 am__include="#"
4104 am__quote=
4105 _am_result=none
4106 # First try GNU make style include.
4107 echo "include confinc" > confmf
4108 # Ignore all kinds of additional output from `make'.
4109 case `$am_make -s -f confmf 2> /dev/null` in #(
4110 *the\ am__doit\ target*)
4111 am__include=include
4112 am__quote=
4113 _am_result=GNU
4115 esac
4116 # Now try BSD make style include.
4117 if test "$am__include" = "#"; then
4118 echo '.include "confinc"' > confmf
4119 case `$am_make -s -f confmf 2> /dev/null` in #(
4120 *the\ am__doit\ target*)
4121 am__include=.include
4122 am__quote="\""
4123 _am_result=BSD
4125 esac
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4130 $as_echo "$_am_result" >&6; }
4131 rm -f confinc confmf
4133 # Check whether --enable-dependency-tracking was given.
4134 if test "${enable_dependency_tracking+set}" = set; then :
4135 enableval=$enable_dependency_tracking;
4138 if test "x$enable_dependency_tracking" != xno; then
4139 am_depcomp="$ac_aux_dir/depcomp"
4140 AMDEPBACKSLASH='\'
4142 if test "x$enable_dependency_tracking" != xno; then
4143 AMDEP_TRUE=
4144 AMDEP_FALSE='#'
4145 else
4146 AMDEP_TRUE='#'
4147 AMDEP_FALSE=
4152 depcc="$CC" am_compiler_list=
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4155 $as_echo_n "checking dependency style of $depcc... " >&6; }
4156 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4157 $as_echo_n "(cached) " >&6
4158 else
4159 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4160 # We make a subdir and do the tests there. Otherwise we can end up
4161 # making bogus files that we don't know about and never remove. For
4162 # instance it was reported that on HP-UX the gcc test will end up
4163 # making a dummy file named `D' -- because `-MD' means `put the output
4164 # in D'.
4165 mkdir conftest.dir
4166 # Copy depcomp to subdir because otherwise we won't find it if we're
4167 # using a relative directory.
4168 cp "$am_depcomp" conftest.dir
4169 cd conftest.dir
4170 # We will build objects and dependencies in a subdirectory because
4171 # it helps to detect inapplicable dependency modes. For instance
4172 # both Tru64's cc and ICC support -MD to output dependencies as a
4173 # side effect of compilation, but ICC will put the dependencies in
4174 # the current directory while Tru64 will put them in the object
4175 # directory.
4176 mkdir sub
4178 am_cv_CC_dependencies_compiler_type=none
4179 if test "$am_compiler_list" = ""; then
4180 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4182 am__universal=false
4183 case " $depcc " in #(
4184 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4185 esac
4187 for depmode in $am_compiler_list; do
4188 # Setup a source with many dependencies, because some compilers
4189 # like to wrap large dependency lists on column 80 (with \), and
4190 # we should not choose a depcomp mode which is confused by this.
4192 # We need to recreate these files for each test, as the compiler may
4193 # overwrite some of them when testing with obscure command lines.
4194 # This happens at least with the AIX C compiler.
4195 : > sub/conftest.c
4196 for i in 1 2 3 4 5 6; do
4197 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4198 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4199 # Solaris 8's {/usr,}/bin/sh.
4200 touch sub/conftst$i.h
4201 done
4202 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4204 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4205 # mode. It turns out that the SunPro C++ compiler does not properly
4206 # handle `-M -o', and we need to detect this. Also, some Intel
4207 # versions had trouble with output in subdirs
4208 am__obj=sub/conftest.${OBJEXT-o}
4209 am__minus_obj="-o $am__obj"
4210 case $depmode in
4211 gcc)
4212 # This depmode causes a compiler race in universal mode.
4213 test "$am__universal" = false || continue
4215 nosideeffect)
4216 # after this tag, mechanisms are not by side-effect, so they'll
4217 # only be used when explicitly requested
4218 if test "x$enable_dependency_tracking" = xyes; then
4219 continue
4220 else
4221 break
4224 msvisualcpp | msvcmsys)
4225 # This compiler won't grok `-c -o', but also, the minuso test has
4226 # not run yet. These depmodes are late enough in the game, and
4227 # so weak that their functioning should not be impacted.
4228 am__obj=conftest.${OBJEXT-o}
4229 am__minus_obj=
4231 none) break ;;
4232 esac
4233 if depmode=$depmode \
4234 source=sub/conftest.c object=$am__obj \
4235 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4236 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4237 >/dev/null 2>conftest.err &&
4238 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4239 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4240 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4241 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4242 # icc doesn't choke on unknown options, it will just issue warnings
4243 # or remarks (even with -Werror). So we grep stderr for any message
4244 # that says an option was ignored or not supported.
4245 # When given -MP, icc 7.0 and 7.1 complain thusly:
4246 # icc: Command line warning: ignoring option '-M'; no argument required
4247 # The diagnosis changed in icc 8.0:
4248 # icc: Command line remark: option '-MP' not supported
4249 if (grep 'ignoring option' conftest.err ||
4250 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4251 am_cv_CC_dependencies_compiler_type=$depmode
4252 break
4255 done
4257 cd ..
4258 rm -rf conftest.dir
4259 else
4260 am_cv_CC_dependencies_compiler_type=none
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4265 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4266 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4269 test "x$enable_dependency_tracking" != xno \
4270 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4271 am__fastdepCC_TRUE=
4272 am__fastdepCC_FALSE='#'
4273 else
4274 am__fastdepCC_TRUE='#'
4275 am__fastdepCC_FALSE=
4283 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
4284 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
4285 # in both places for now and restore CFLAGS at the end of config.
4286 save_CFLAGS="$CFLAGS"
4288 # Add -Wall -Werror if we are using GCC.
4289 if test "x$GCC" = "xyes"; then
4290 XCFLAGS="$XCFLAGS -Wall -Werror"
4293 # Find other programs we need.
4294 if test -n "$ac_tool_prefix"; then
4295 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4296 set dummy ${ac_tool_prefix}ar; ac_word=$2
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4298 $as_echo_n "checking for $ac_word... " >&6; }
4299 if test "${ac_cv_prog_AR+set}" = set; then :
4300 $as_echo_n "(cached) " >&6
4301 else
4302 if test -n "$AR"; then
4303 ac_cv_prog_AR="$AR" # Let the user override the test.
4304 else
4305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4306 for as_dir in $PATH
4308 IFS=$as_save_IFS
4309 test -z "$as_dir" && as_dir=.
4310 for ac_exec_ext in '' $ac_executable_extensions; do
4311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4312 ac_cv_prog_AR="${ac_tool_prefix}ar"
4313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4314 break 2
4316 done
4317 done
4318 IFS=$as_save_IFS
4322 AR=$ac_cv_prog_AR
4323 if test -n "$AR"; then
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4325 $as_echo "$AR" >&6; }
4326 else
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4328 $as_echo "no" >&6; }
4333 if test -z "$ac_cv_prog_AR"; then
4334 ac_ct_AR=$AR
4335 # Extract the first word of "ar", so it can be a program name with args.
4336 set dummy ar; ac_word=$2
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4338 $as_echo_n "checking for $ac_word... " >&6; }
4339 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4340 $as_echo_n "(cached) " >&6
4341 else
4342 if test -n "$ac_ct_AR"; then
4343 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4344 else
4345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4346 for as_dir in $PATH
4348 IFS=$as_save_IFS
4349 test -z "$as_dir" && as_dir=.
4350 for ac_exec_ext in '' $ac_executable_extensions; do
4351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4352 ac_cv_prog_ac_ct_AR="ar"
4353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4354 break 2
4356 done
4357 done
4358 IFS=$as_save_IFS
4362 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4363 if test -n "$ac_ct_AR"; then
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4365 $as_echo "$ac_ct_AR" >&6; }
4366 else
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4368 $as_echo "no" >&6; }
4371 if test "x$ac_ct_AR" = x; then
4372 AR=""
4373 else
4374 case $cross_compiling:$ac_tool_warned in
4375 yes:)
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4377 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4378 ac_tool_warned=yes ;;
4379 esac
4380 AR=$ac_ct_AR
4382 else
4383 AR="$ac_cv_prog_AR"
4386 if test -n "$ac_tool_prefix"; then
4387 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4388 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4390 $as_echo_n "checking for $ac_word... " >&6; }
4391 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4392 $as_echo_n "(cached) " >&6
4393 else
4394 if test -n "$RANLIB"; then
4395 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4396 else
4397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398 for as_dir in $PATH
4400 IFS=$as_save_IFS
4401 test -z "$as_dir" && as_dir=.
4402 for ac_exec_ext in '' $ac_executable_extensions; do
4403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4404 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4406 break 2
4408 done
4409 done
4410 IFS=$as_save_IFS
4414 RANLIB=$ac_cv_prog_RANLIB
4415 if test -n "$RANLIB"; then
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4417 $as_echo "$RANLIB" >&6; }
4418 else
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4420 $as_echo "no" >&6; }
4425 if test -z "$ac_cv_prog_RANLIB"; then
4426 ac_ct_RANLIB=$RANLIB
4427 # Extract the first word of "ranlib", so it can be a program name with args.
4428 set dummy ranlib; ac_word=$2
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4430 $as_echo_n "checking for $ac_word... " >&6; }
4431 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4432 $as_echo_n "(cached) " >&6
4433 else
4434 if test -n "$ac_ct_RANLIB"; then
4435 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4436 else
4437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4438 for as_dir in $PATH
4440 IFS=$as_save_IFS
4441 test -z "$as_dir" && as_dir=.
4442 for ac_exec_ext in '' $ac_executable_extensions; do
4443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4444 ac_cv_prog_ac_ct_RANLIB="ranlib"
4445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4446 break 2
4448 done
4449 done
4450 IFS=$as_save_IFS
4454 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4455 if test -n "$ac_ct_RANLIB"; then
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4457 $as_echo "$ac_ct_RANLIB" >&6; }
4458 else
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4460 $as_echo "no" >&6; }
4463 if test "x$ac_ct_RANLIB" = x; then
4464 RANLIB="ranlib-not-found-in-path-error"
4465 else
4466 case $cross_compiling:$ac_tool_warned in
4467 yes:)
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4469 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4470 ac_tool_warned=yes ;;
4471 esac
4472 RANLIB=$ac_ct_RANLIB
4474 else
4475 RANLIB="$ac_cv_prog_RANLIB"
4478 # Extract the first word of "perl", so it can be a program name with args.
4479 set dummy perl; ac_word=$2
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4481 $as_echo_n "checking for $ac_word... " >&6; }
4482 if test "${ac_cv_path_PERL+set}" = set; then :
4483 $as_echo_n "(cached) " >&6
4484 else
4485 case $PERL in
4486 [\\/]* | ?:[\\/]*)
4487 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4491 for as_dir in $PATH
4493 IFS=$as_save_IFS
4494 test -z "$as_dir" && as_dir=.
4495 for ac_exec_ext in '' $ac_executable_extensions; do
4496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4497 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4499 break 2
4501 done
4502 done
4503 IFS=$as_save_IFS
4505 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
4507 esac
4509 PERL=$ac_cv_path_PERL
4510 if test -n "$PERL"; then
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4512 $as_echo "$PERL" >&6; }
4513 else
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4515 $as_echo "no" >&6; }
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4520 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4521 set x ${MAKE-make}
4522 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4523 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4524 $as_echo_n "(cached) " >&6
4525 else
4526 cat >conftest.make <<\_ACEOF
4527 SHELL = /bin/sh
4528 all:
4529 @echo '@@@%%%=$(MAKE)=@@@%%%'
4530 _ACEOF
4531 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4532 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4533 *@@@%%%=?*=@@@%%%*)
4534 eval ac_cv_prog_make_${ac_make}_set=yes;;
4536 eval ac_cv_prog_make_${ac_make}_set=no;;
4537 esac
4538 rm -f conftest.make
4540 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4542 $as_echo "yes" >&6; }
4543 SET_MAKE=
4544 else
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4546 $as_echo "no" >&6; }
4547 SET_MAKE="MAKE=${MAKE-make}"
4552 # See if makeinfo has been installed and is modern enough
4553 # that we can use it.
4555 # Extract the first word of "makeinfo", so it can be a program name with args.
4556 set dummy makeinfo; ac_word=$2
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4558 $as_echo_n "checking for $ac_word... " >&6; }
4559 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
4560 $as_echo_n "(cached) " >&6
4561 else
4562 if test -n "$MAKEINFO"; then
4563 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4564 else
4565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4566 for as_dir in $PATH
4568 IFS=$as_save_IFS
4569 test -z "$as_dir" && as_dir=.
4570 for ac_exec_ext in '' $ac_executable_extensions; do
4571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4572 ac_cv_prog_MAKEINFO="makeinfo"
4573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4574 break 2
4576 done
4577 done
4578 IFS=$as_save_IFS
4582 MAKEINFO=$ac_cv_prog_MAKEINFO
4583 if test -n "$MAKEINFO"; then
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4585 $as_echo "$MAKEINFO" >&6; }
4586 else
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4588 $as_echo "no" >&6; }
4592 if test -n "$MAKEINFO"; then
4593 # Found it, now check the version.
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
4595 $as_echo_n "checking for modern makeinfo... " >&6; }
4596 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
4597 $as_echo_n "(cached) " >&6
4598 else
4599 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
4600 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4602 case $ac_prog_version in
4603 '') gcc_cv_prog_makeinfo_modern=no;;
4604 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
4605 *) gcc_cv_prog_makeinfo_modern=no;;
4606 esac
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
4610 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
4611 else
4612 gcc_cv_prog_makeinfo_modern=no
4614 if test $gcc_cv_prog_makeinfo_modern = no; then
4615 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
4618 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
4619 BUILD_INFO_TRUE=
4620 BUILD_INFO_FALSE='#'
4621 else
4622 BUILD_INFO_TRUE='#'
4623 BUILD_INFO_FALSE=
4628 # Configure libtool
4629 case `pwd` in
4630 *\ * | *\ *)
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4632 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4633 esac
4637 macro_version='2.2.7a'
4638 macro_revision='1.3134'
4652 ltmain="$ac_aux_dir/ltmain.sh"
4654 # Backslashify metacharacters that are still active within
4655 # double-quoted strings.
4656 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4658 # Same as above, but do not quote variable references.
4659 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4661 # Sed substitution to delay expansion of an escaped shell variable in a
4662 # double_quote_subst'ed string.
4663 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4665 # Sed substitution to delay expansion of an escaped single quote.
4666 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4668 # Sed substitution to avoid accidental globbing in evaled expressions
4669 no_glob_subst='s/\*/\\\*/g'
4671 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4672 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4673 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4676 $as_echo_n "checking how to print strings... " >&6; }
4677 # Test print first, because it will be a builtin if present.
4678 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4679 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4680 ECHO='print -r --'
4681 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4682 ECHO='printf %s\n'
4683 else
4684 # Use this function as a fallback that always works.
4685 func_fallback_echo ()
4687 eval 'cat <<_LTECHO_EOF
4689 _LTECHO_EOF'
4691 ECHO='func_fallback_echo'
4694 # func_echo_all arg...
4695 # Invoke $ECHO with all args, space-separated.
4696 func_echo_all ()
4698 $ECHO ""
4701 case "$ECHO" in
4702 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4703 $as_echo "printf" >&6; } ;;
4704 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4705 $as_echo "print -r" >&6; } ;;
4706 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4707 $as_echo "cat" >&6; } ;;
4708 esac
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4724 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4725 if test "${ac_cv_path_SED+set}" = set; then :
4726 $as_echo_n "(cached) " >&6
4727 else
4728 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4729 for ac_i in 1 2 3 4 5 6 7; do
4730 ac_script="$ac_script$as_nl$ac_script"
4731 done
4732 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4733 { ac_script=; unset ac_script;}
4734 if test -z "$SED"; then
4735 ac_path_SED_found=false
4736 # Loop through the user's path and test for each of PROGNAME-LIST
4737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4738 for as_dir in $PATH
4740 IFS=$as_save_IFS
4741 test -z "$as_dir" && as_dir=.
4742 for ac_prog in sed gsed; do
4743 for ac_exec_ext in '' $ac_executable_extensions; do
4744 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4745 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4746 # Check for GNU ac_path_SED and select it if it is found.
4747 # Check for GNU $ac_path_SED
4748 case `"$ac_path_SED" --version 2>&1` in
4749 *GNU*)
4750 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4752 ac_count=0
4753 $as_echo_n 0123456789 >"conftest.in"
4754 while :
4756 cat "conftest.in" "conftest.in" >"conftest.tmp"
4757 mv "conftest.tmp" "conftest.in"
4758 cp "conftest.in" "conftest.nl"
4759 $as_echo '' >> "conftest.nl"
4760 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4761 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4762 as_fn_arith $ac_count + 1 && ac_count=$as_val
4763 if test $ac_count -gt ${ac_path_SED_max-0}; then
4764 # Best one so far, save it but keep looking for a better one
4765 ac_cv_path_SED="$ac_path_SED"
4766 ac_path_SED_max=$ac_count
4768 # 10*(2^10) chars as input seems more than enough
4769 test $ac_count -gt 10 && break
4770 done
4771 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4772 esac
4774 $ac_path_SED_found && break 3
4775 done
4776 done
4777 done
4778 IFS=$as_save_IFS
4779 if test -z "$ac_cv_path_SED"; then
4780 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4782 else
4783 ac_cv_path_SED=$SED
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4788 $as_echo "$ac_cv_path_SED" >&6; }
4789 SED="$ac_cv_path_SED"
4790 rm -f conftest.sed
4792 test -z "$SED" && SED=sed
4793 Xsed="$SED -e 1s/^X//"
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4806 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4807 if test "${ac_cv_path_GREP+set}" = set; then :
4808 $as_echo_n "(cached) " >&6
4809 else
4810 if test -z "$GREP"; then
4811 ac_path_GREP_found=false
4812 # Loop through the user's path and test for each of PROGNAME-LIST
4813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4814 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4816 IFS=$as_save_IFS
4817 test -z "$as_dir" && as_dir=.
4818 for ac_prog in grep ggrep; do
4819 for ac_exec_ext in '' $ac_executable_extensions; do
4820 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4821 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4822 # Check for GNU ac_path_GREP and select it if it is found.
4823 # Check for GNU $ac_path_GREP
4824 case `"$ac_path_GREP" --version 2>&1` in
4825 *GNU*)
4826 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4828 ac_count=0
4829 $as_echo_n 0123456789 >"conftest.in"
4830 while :
4832 cat "conftest.in" "conftest.in" >"conftest.tmp"
4833 mv "conftest.tmp" "conftest.in"
4834 cp "conftest.in" "conftest.nl"
4835 $as_echo 'GREP' >> "conftest.nl"
4836 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4837 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4838 as_fn_arith $ac_count + 1 && ac_count=$as_val
4839 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4840 # Best one so far, save it but keep looking for a better one
4841 ac_cv_path_GREP="$ac_path_GREP"
4842 ac_path_GREP_max=$ac_count
4844 # 10*(2^10) chars as input seems more than enough
4845 test $ac_count -gt 10 && break
4846 done
4847 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4848 esac
4850 $ac_path_GREP_found && break 3
4851 done
4852 done
4853 done
4854 IFS=$as_save_IFS
4855 if test -z "$ac_cv_path_GREP"; then
4856 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4858 else
4859 ac_cv_path_GREP=$GREP
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4864 $as_echo "$ac_cv_path_GREP" >&6; }
4865 GREP="$ac_cv_path_GREP"
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4869 $as_echo_n "checking for egrep... " >&6; }
4870 if test "${ac_cv_path_EGREP+set}" = set; then :
4871 $as_echo_n "(cached) " >&6
4872 else
4873 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4874 then ac_cv_path_EGREP="$GREP -E"
4875 else
4876 if test -z "$EGREP"; then
4877 ac_path_EGREP_found=false
4878 # Loop through the user's path and test for each of PROGNAME-LIST
4879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4880 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4882 IFS=$as_save_IFS
4883 test -z "$as_dir" && as_dir=.
4884 for ac_prog in egrep; do
4885 for ac_exec_ext in '' $ac_executable_extensions; do
4886 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4887 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4888 # Check for GNU ac_path_EGREP and select it if it is found.
4889 # Check for GNU $ac_path_EGREP
4890 case `"$ac_path_EGREP" --version 2>&1` in
4891 *GNU*)
4892 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4894 ac_count=0
4895 $as_echo_n 0123456789 >"conftest.in"
4896 while :
4898 cat "conftest.in" "conftest.in" >"conftest.tmp"
4899 mv "conftest.tmp" "conftest.in"
4900 cp "conftest.in" "conftest.nl"
4901 $as_echo 'EGREP' >> "conftest.nl"
4902 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4903 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4904 as_fn_arith $ac_count + 1 && ac_count=$as_val
4905 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4906 # Best one so far, save it but keep looking for a better one
4907 ac_cv_path_EGREP="$ac_path_EGREP"
4908 ac_path_EGREP_max=$ac_count
4910 # 10*(2^10) chars as input seems more than enough
4911 test $ac_count -gt 10 && break
4912 done
4913 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4914 esac
4916 $ac_path_EGREP_found && break 3
4917 done
4918 done
4919 done
4920 IFS=$as_save_IFS
4921 if test -z "$ac_cv_path_EGREP"; then
4922 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4924 else
4925 ac_cv_path_EGREP=$EGREP
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4931 $as_echo "$ac_cv_path_EGREP" >&6; }
4932 EGREP="$ac_cv_path_EGREP"
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4936 $as_echo_n "checking for fgrep... " >&6; }
4937 if test "${ac_cv_path_FGREP+set}" = set; then :
4938 $as_echo_n "(cached) " >&6
4939 else
4940 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4941 then ac_cv_path_FGREP="$GREP -F"
4942 else
4943 if test -z "$FGREP"; then
4944 ac_path_FGREP_found=false
4945 # Loop through the user's path and test for each of PROGNAME-LIST
4946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4947 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4949 IFS=$as_save_IFS
4950 test -z "$as_dir" && as_dir=.
4951 for ac_prog in fgrep; do
4952 for ac_exec_ext in '' $ac_executable_extensions; do
4953 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4954 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4955 # Check for GNU ac_path_FGREP and select it if it is found.
4956 # Check for GNU $ac_path_FGREP
4957 case `"$ac_path_FGREP" --version 2>&1` in
4958 *GNU*)
4959 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4961 ac_count=0
4962 $as_echo_n 0123456789 >"conftest.in"
4963 while :
4965 cat "conftest.in" "conftest.in" >"conftest.tmp"
4966 mv "conftest.tmp" "conftest.in"
4967 cp "conftest.in" "conftest.nl"
4968 $as_echo 'FGREP' >> "conftest.nl"
4969 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4970 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4971 as_fn_arith $ac_count + 1 && ac_count=$as_val
4972 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4973 # Best one so far, save it but keep looking for a better one
4974 ac_cv_path_FGREP="$ac_path_FGREP"
4975 ac_path_FGREP_max=$ac_count
4977 # 10*(2^10) chars as input seems more than enough
4978 test $ac_count -gt 10 && break
4979 done
4980 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4981 esac
4983 $ac_path_FGREP_found && break 3
4984 done
4985 done
4986 done
4987 IFS=$as_save_IFS
4988 if test -z "$ac_cv_path_FGREP"; then
4989 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4991 else
4992 ac_cv_path_FGREP=$FGREP
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4998 $as_echo "$ac_cv_path_FGREP" >&6; }
4999 FGREP="$ac_cv_path_FGREP"
5002 test -z "$GREP" && GREP=grep
5022 # Check whether --with-gnu-ld was given.
5023 if test "${with_gnu_ld+set}" = set; then :
5024 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5025 else
5026 with_gnu_ld=no
5029 ac_prog=ld
5030 if test "$GCC" = yes; then
5031 # Check if gcc -print-prog-name=ld gives a path.
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5033 $as_echo_n "checking for ld used by $CC... " >&6; }
5034 case $host in
5035 *-*-mingw*)
5036 # gcc leaves a trailing carriage return which upsets mingw
5037 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5039 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5040 esac
5041 case $ac_prog in
5042 # Accept absolute paths.
5043 [\\/]* | ?:[\\/]*)
5044 re_direlt='/[^/][^/]*/\.\./'
5045 # Canonicalize the pathname of ld
5046 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5047 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5048 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5049 done
5050 test -z "$LD" && LD="$ac_prog"
5053 # If it fails, then pretend we aren't using GCC.
5054 ac_prog=ld
5057 # If it is relative, then search for the first ld in PATH.
5058 with_gnu_ld=unknown
5060 esac
5061 elif test "$with_gnu_ld" = yes; then
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5063 $as_echo_n "checking for GNU ld... " >&6; }
5064 else
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5066 $as_echo_n "checking for non-GNU ld... " >&6; }
5068 if test "${lt_cv_path_LD+set}" = set; then :
5069 $as_echo_n "(cached) " >&6
5070 else
5071 if test -z "$LD"; then
5072 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5073 for ac_dir in $PATH; do
5074 IFS="$lt_save_ifs"
5075 test -z "$ac_dir" && ac_dir=.
5076 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5077 lt_cv_path_LD="$ac_dir/$ac_prog"
5078 # Check to see if the program is GNU ld. I'd rather use --version,
5079 # but apparently some variants of GNU ld only accept -v.
5080 # Break only if it was the GNU/non-GNU ld that we prefer.
5081 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5082 *GNU* | *'with BFD'*)
5083 test "$with_gnu_ld" != no && break
5086 test "$with_gnu_ld" != yes && break
5088 esac
5090 done
5091 IFS="$lt_save_ifs"
5092 else
5093 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5097 LD="$lt_cv_path_LD"
5098 if test -n "$LD"; then
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5100 $as_echo "$LD" >&6; }
5101 else
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5103 $as_echo "no" >&6; }
5105 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5107 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5108 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5109 $as_echo_n "(cached) " >&6
5110 else
5111 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5112 case `$LD -v 2>&1 </dev/null` in
5113 *GNU* | *'with BFD'*)
5114 lt_cv_prog_gnu_ld=yes
5117 lt_cv_prog_gnu_ld=no
5119 esac
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5122 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5123 with_gnu_ld=$lt_cv_prog_gnu_ld
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5134 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5135 if test "${lt_cv_path_NM+set}" = set; then :
5136 $as_echo_n "(cached) " >&6
5137 else
5138 if test -n "$NM"; then
5139 # Let the user override the test.
5140 lt_cv_path_NM="$NM"
5141 else
5142 lt_nm_to_check="${ac_tool_prefix}nm"
5143 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5144 lt_nm_to_check="$lt_nm_to_check nm"
5146 for lt_tmp_nm in $lt_nm_to_check; do
5147 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5148 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5149 IFS="$lt_save_ifs"
5150 test -z "$ac_dir" && ac_dir=.
5151 tmp_nm="$ac_dir/$lt_tmp_nm"
5152 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5153 # Check to see if the nm accepts a BSD-compat flag.
5154 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5155 # nm: unknown option "B" ignored
5156 # Tru64's nm complains that /dev/null is an invalid object file
5157 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5158 */dev/null* | *'Invalid file or object type'*)
5159 lt_cv_path_NM="$tmp_nm -B"
5160 break
5163 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5164 */dev/null*)
5165 lt_cv_path_NM="$tmp_nm -p"
5166 break
5169 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5170 continue # so that we can try to find one that supports BSD flags
5172 esac
5174 esac
5176 done
5177 IFS="$lt_save_ifs"
5178 done
5179 : ${lt_cv_path_NM=no}
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5183 $as_echo "$lt_cv_path_NM" >&6; }
5184 if test "$lt_cv_path_NM" != "no"; then
5185 NM="$lt_cv_path_NM"
5186 else
5187 # Didn't find any BSD compatible name lister, look for dumpbin.
5188 if test -n "$DUMPBIN"; then :
5189 # Let the user override the test.
5190 else
5191 if test -n "$ac_tool_prefix"; then
5192 for ac_prog in dumpbin "link -dump"
5194 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5195 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5197 $as_echo_n "checking for $ac_word... " >&6; }
5198 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5199 $as_echo_n "(cached) " >&6
5200 else
5201 if test -n "$DUMPBIN"; then
5202 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5203 else
5204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5205 for as_dir in $PATH
5207 IFS=$as_save_IFS
5208 test -z "$as_dir" && as_dir=.
5209 for ac_exec_ext in '' $ac_executable_extensions; do
5210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5211 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5213 break 2
5215 done
5216 done
5217 IFS=$as_save_IFS
5221 DUMPBIN=$ac_cv_prog_DUMPBIN
5222 if test -n "$DUMPBIN"; then
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5224 $as_echo "$DUMPBIN" >&6; }
5225 else
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5227 $as_echo "no" >&6; }
5231 test -n "$DUMPBIN" && break
5232 done
5234 if test -z "$DUMPBIN"; then
5235 ac_ct_DUMPBIN=$DUMPBIN
5236 for ac_prog in dumpbin "link -dump"
5238 # Extract the first word of "$ac_prog", so it can be a program name with args.
5239 set dummy $ac_prog; ac_word=$2
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5241 $as_echo_n "checking for $ac_word... " >&6; }
5242 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5243 $as_echo_n "(cached) " >&6
5244 else
5245 if test -n "$ac_ct_DUMPBIN"; then
5246 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5247 else
5248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5249 for as_dir in $PATH
5251 IFS=$as_save_IFS
5252 test -z "$as_dir" && as_dir=.
5253 for ac_exec_ext in '' $ac_executable_extensions; do
5254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5255 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5257 break 2
5259 done
5260 done
5261 IFS=$as_save_IFS
5265 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5266 if test -n "$ac_ct_DUMPBIN"; then
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5268 $as_echo "$ac_ct_DUMPBIN" >&6; }
5269 else
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5271 $as_echo "no" >&6; }
5275 test -n "$ac_ct_DUMPBIN" && break
5276 done
5278 if test "x$ac_ct_DUMPBIN" = x; then
5279 DUMPBIN=":"
5280 else
5281 case $cross_compiling:$ac_tool_warned in
5282 yes:)
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5284 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5285 ac_tool_warned=yes ;;
5286 esac
5287 DUMPBIN=$ac_ct_DUMPBIN
5291 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5292 *COFF*)
5293 DUMPBIN="$DUMPBIN -symbols"
5296 DUMPBIN=:
5298 esac
5301 if test "$DUMPBIN" != ":"; then
5302 NM="$DUMPBIN"
5305 test -z "$NM" && NM=nm
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5313 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5314 if test "${lt_cv_nm_interface+set}" = set; then :
5315 $as_echo_n "(cached) " >&6
5316 else
5317 lt_cv_nm_interface="BSD nm"
5318 echo "int some_variable = 0;" > conftest.$ac_ext
5319 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5320 (eval "$ac_compile" 2>conftest.err)
5321 cat conftest.err >&5
5322 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5323 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5324 cat conftest.err >&5
5325 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5326 cat conftest.out >&5
5327 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5328 lt_cv_nm_interface="MS dumpbin"
5330 rm -f conftest*
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5333 $as_echo "$lt_cv_nm_interface" >&6; }
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5336 $as_echo_n "checking whether ln -s works... " >&6; }
5337 LN_S=$as_ln_s
5338 if test "$LN_S" = "ln -s"; then
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5340 $as_echo "yes" >&6; }
5341 else
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5343 $as_echo "no, using $LN_S" >&6; }
5346 # find the maximum length of command line arguments
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5348 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5349 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5350 $as_echo_n "(cached) " >&6
5351 else
5353 teststring="ABCD"
5355 case $build_os in
5356 msdosdjgpp*)
5357 # On DJGPP, this test can blow up pretty badly due to problems in libc
5358 # (any single argument exceeding 2000 bytes causes a buffer overrun
5359 # during glob expansion). Even if it were fixed, the result of this
5360 # check would be larger than it should be.
5361 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5364 gnu*)
5365 # Under GNU Hurd, this test is not required because there is
5366 # no limit to the length of command line arguments.
5367 # Libtool will interpret -1 as no limit whatsoever
5368 lt_cv_sys_max_cmd_len=-1;
5371 cygwin* | mingw* | cegcc*)
5372 # On Win9x/ME, this test blows up -- it succeeds, but takes
5373 # about 5 minutes as the teststring grows exponentially.
5374 # Worse, since 9x/ME are not pre-emptively multitasking,
5375 # you end up with a "frozen" computer, even though with patience
5376 # the test eventually succeeds (with a max line length of 256k).
5377 # Instead, let's just punt: use the minimum linelength reported by
5378 # all of the supported platforms: 8192 (on NT/2K/XP).
5379 lt_cv_sys_max_cmd_len=8192;
5382 mint*)
5383 # On MiNT this can take a long time and run out of memory.
5384 lt_cv_sys_max_cmd_len=8192;
5387 amigaos*)
5388 # On AmigaOS with pdksh, this test takes hours, literally.
5389 # So we just punt and use a minimum line length of 8192.
5390 lt_cv_sys_max_cmd_len=8192;
5393 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5394 # This has been around since 386BSD, at least. Likely further.
5395 if test -x /sbin/sysctl; then
5396 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5397 elif test -x /usr/sbin/sysctl; then
5398 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5399 else
5400 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5402 # And add a safety zone
5403 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5404 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5407 interix*)
5408 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5409 lt_cv_sys_max_cmd_len=196608
5412 osf*)
5413 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5414 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5415 # nice to cause kernel panics so lets avoid the loop below.
5416 # First set a reasonable default.
5417 lt_cv_sys_max_cmd_len=16384
5419 if test -x /sbin/sysconfig; then
5420 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5421 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5422 esac
5425 sco3.2v5*)
5426 lt_cv_sys_max_cmd_len=102400
5428 sysv5* | sco5v6* | sysv4.2uw2*)
5429 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5430 if test -n "$kargmax"; then
5431 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5432 else
5433 lt_cv_sys_max_cmd_len=32768
5437 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5438 if test -n "$lt_cv_sys_max_cmd_len"; then
5439 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5440 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5441 else
5442 # Make teststring a little bigger before we do anything with it.
5443 # a 1K string should be a reasonable start.
5444 for i in 1 2 3 4 5 6 7 8 ; do
5445 teststring=$teststring$teststring
5446 done
5447 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5448 # If test is not a shell built-in, we'll probably end up computing a
5449 # maximum length that is only half of the actual maximum length, but
5450 # we can't tell.
5451 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5452 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5453 test $i != 17 # 1/2 MB should be enough
5455 i=`expr $i + 1`
5456 teststring=$teststring$teststring
5457 done
5458 # Only check the string length outside the loop.
5459 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5460 teststring=
5461 # Add a significant safety factor because C++ compilers can tack on
5462 # massive amounts of additional arguments before passing them to the
5463 # linker. It appears as though 1/2 is a usable value.
5464 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5467 esac
5471 if test -n $lt_cv_sys_max_cmd_len ; then
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5473 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5474 else
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5476 $as_echo "none" >&6; }
5478 max_cmd_len=$lt_cv_sys_max_cmd_len
5485 : ${CP="cp -f"}
5486 : ${MV="mv -f"}
5487 : ${RM="rm -f"}
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5490 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5491 # Try some XSI features
5492 xsi_shell=no
5493 ( _lt_dummy="a/b/c"
5494 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5495 = c,a/b,, \
5496 && eval 'test $(( 1 + 1 )) -eq 2 \
5497 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5498 && xsi_shell=yes
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5500 $as_echo "$xsi_shell" >&6; }
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5504 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5505 lt_shell_append=no
5506 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5507 >/dev/null 2>&1 \
5508 && lt_shell_append=yes
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5510 $as_echo "$lt_shell_append" >&6; }
5513 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5514 lt_unset=unset
5515 else
5516 lt_unset=false
5523 # test EBCDIC or ASCII
5524 case `echo X|tr X '\101'` in
5525 A) # ASCII based system
5526 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5527 lt_SP2NL='tr \040 \012'
5528 lt_NL2SP='tr \015\012 \040\040'
5530 *) # EBCDIC based system
5531 lt_SP2NL='tr \100 \n'
5532 lt_NL2SP='tr \r\n \100\100'
5534 esac
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5545 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5546 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5547 $as_echo_n "(cached) " >&6
5548 else
5549 lt_cv_ld_reload_flag='-r'
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5552 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5553 reload_flag=$lt_cv_ld_reload_flag
5554 case $reload_flag in
5555 "" | " "*) ;;
5556 *) reload_flag=" $reload_flag" ;;
5557 esac
5558 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5559 case $host_os in
5560 darwin*)
5561 if test "$GCC" = yes; then
5562 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5563 else
5564 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5567 esac
5577 if test -n "$ac_tool_prefix"; then
5578 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5579 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5581 $as_echo_n "checking for $ac_word... " >&6; }
5582 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5583 $as_echo_n "(cached) " >&6
5584 else
5585 if test -n "$OBJDUMP"; then
5586 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5587 else
5588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5589 for as_dir in $PATH
5591 IFS=$as_save_IFS
5592 test -z "$as_dir" && as_dir=.
5593 for ac_exec_ext in '' $ac_executable_extensions; do
5594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5595 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5597 break 2
5599 done
5600 done
5601 IFS=$as_save_IFS
5605 OBJDUMP=$ac_cv_prog_OBJDUMP
5606 if test -n "$OBJDUMP"; then
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5608 $as_echo "$OBJDUMP" >&6; }
5609 else
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5611 $as_echo "no" >&6; }
5616 if test -z "$ac_cv_prog_OBJDUMP"; then
5617 ac_ct_OBJDUMP=$OBJDUMP
5618 # Extract the first word of "objdump", so it can be a program name with args.
5619 set dummy objdump; ac_word=$2
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5621 $as_echo_n "checking for $ac_word... " >&6; }
5622 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5623 $as_echo_n "(cached) " >&6
5624 else
5625 if test -n "$ac_ct_OBJDUMP"; then
5626 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5627 else
5628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5629 for as_dir in $PATH
5631 IFS=$as_save_IFS
5632 test -z "$as_dir" && as_dir=.
5633 for ac_exec_ext in '' $ac_executable_extensions; do
5634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5635 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5637 break 2
5639 done
5640 done
5641 IFS=$as_save_IFS
5645 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5646 if test -n "$ac_ct_OBJDUMP"; then
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5648 $as_echo "$ac_ct_OBJDUMP" >&6; }
5649 else
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5651 $as_echo "no" >&6; }
5654 if test "x$ac_ct_OBJDUMP" = x; then
5655 OBJDUMP="false"
5656 else
5657 case $cross_compiling:$ac_tool_warned in
5658 yes:)
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5660 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5661 ac_tool_warned=yes ;;
5662 esac
5663 OBJDUMP=$ac_ct_OBJDUMP
5665 else
5666 OBJDUMP="$ac_cv_prog_OBJDUMP"
5669 test -z "$OBJDUMP" && OBJDUMP=objdump
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5680 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5681 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5682 $as_echo_n "(cached) " >&6
5683 else
5684 lt_cv_file_magic_cmd='$MAGIC_CMD'
5685 lt_cv_file_magic_test_file=
5686 lt_cv_deplibs_check_method='unknown'
5687 # Need to set the preceding variable on all platforms that support
5688 # interlibrary dependencies.
5689 # 'none' -- dependencies not supported.
5690 # `unknown' -- same as none, but documents that we really don't know.
5691 # 'pass_all' -- all dependencies passed with no checks.
5692 # 'test_compile' -- check by making test program.
5693 # 'file_magic [[regex]]' -- check by looking for files in library path
5694 # which responds to the $file_magic_cmd with a given extended regex.
5695 # If you have `file' or equivalent on your system and you're not sure
5696 # whether `pass_all' will *always* work, you probably want this one.
5698 case $host_os in
5699 aix[4-9]*)
5700 lt_cv_deplibs_check_method=pass_all
5703 beos*)
5704 lt_cv_deplibs_check_method=pass_all
5707 bsdi[45]*)
5708 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5709 lt_cv_file_magic_cmd='/usr/bin/file -L'
5710 lt_cv_file_magic_test_file=/shlib/libc.so
5713 cygwin*)
5714 # func_win32_libid is a shell function defined in ltmain.sh
5715 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5716 lt_cv_file_magic_cmd='func_win32_libid'
5719 mingw* | pw32*)
5720 # Base MSYS/MinGW do not provide the 'file' command needed by
5721 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5722 # unless we find 'file', for example because we are cross-compiling.
5723 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5724 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5725 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5726 lt_cv_file_magic_cmd='func_win32_libid'
5727 else
5728 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5729 lt_cv_file_magic_cmd='$OBJDUMP -f'
5733 cegcc*)
5734 # use the weaker test based on 'objdump'. See mingw*.
5735 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5736 lt_cv_file_magic_cmd='$OBJDUMP -f'
5739 darwin* | rhapsody*)
5740 lt_cv_deplibs_check_method=pass_all
5743 freebsd* | dragonfly*)
5744 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5745 case $host_cpu in
5746 i*86 )
5747 # Not sure whether the presence of OpenBSD here was a mistake.
5748 # Let's accept both of them until this is cleared up.
5749 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5750 lt_cv_file_magic_cmd=/usr/bin/file
5751 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5753 esac
5754 else
5755 lt_cv_deplibs_check_method=pass_all
5759 gnu*)
5760 lt_cv_deplibs_check_method=pass_all
5763 haiku*)
5764 lt_cv_deplibs_check_method=pass_all
5767 hpux10.20* | hpux11*)
5768 lt_cv_file_magic_cmd=/usr/bin/file
5769 case $host_cpu in
5770 ia64*)
5771 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5772 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5774 hppa*64*)
5775 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]'
5776 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5779 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5780 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5782 esac
5785 interix[3-9]*)
5786 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5787 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5790 irix5* | irix6* | nonstopux*)
5791 case $LD in
5792 *-32|*"-32 ") libmagic=32-bit;;
5793 *-n32|*"-n32 ") libmagic=N32;;
5794 *-64|*"-64 ") libmagic=64-bit;;
5795 *) libmagic=never-match;;
5796 esac
5797 lt_cv_deplibs_check_method=pass_all
5800 # This must be Linux ELF.
5801 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5802 lt_cv_deplibs_check_method=pass_all
5805 netbsd*)
5806 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5807 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5808 else
5809 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5813 newos6*)
5814 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5815 lt_cv_file_magic_cmd=/usr/bin/file
5816 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5819 *nto* | *qnx*)
5820 lt_cv_deplibs_check_method=pass_all
5823 openbsd*)
5824 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5825 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5826 else
5827 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5831 osf3* | osf4* | osf5*)
5832 lt_cv_deplibs_check_method=pass_all
5835 rdos*)
5836 lt_cv_deplibs_check_method=pass_all
5839 solaris*)
5840 lt_cv_deplibs_check_method=pass_all
5843 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5844 lt_cv_deplibs_check_method=pass_all
5847 sysv4 | sysv4.3*)
5848 case $host_vendor in
5849 motorola)
5850 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]'
5851 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5853 ncr)
5854 lt_cv_deplibs_check_method=pass_all
5856 sequent)
5857 lt_cv_file_magic_cmd='/bin/file'
5858 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5860 sni)
5861 lt_cv_file_magic_cmd='/bin/file'
5862 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5863 lt_cv_file_magic_test_file=/lib/libc.so
5865 siemens)
5866 lt_cv_deplibs_check_method=pass_all
5869 lt_cv_deplibs_check_method=pass_all
5871 esac
5874 tpf*)
5875 lt_cv_deplibs_check_method=pass_all
5877 esac
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5881 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5882 file_magic_cmd=$lt_cv_file_magic_cmd
5883 deplibs_check_method=$lt_cv_deplibs_check_method
5884 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5897 if test -n "$ac_tool_prefix"; then
5898 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5899 set dummy ${ac_tool_prefix}ar; ac_word=$2
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5901 $as_echo_n "checking for $ac_word... " >&6; }
5902 if test "${ac_cv_prog_AR+set}" = set; then :
5903 $as_echo_n "(cached) " >&6
5904 else
5905 if test -n "$AR"; then
5906 ac_cv_prog_AR="$AR" # Let the user override the test.
5907 else
5908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5909 for as_dir in $PATH
5911 IFS=$as_save_IFS
5912 test -z "$as_dir" && as_dir=.
5913 for ac_exec_ext in '' $ac_executable_extensions; do
5914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5915 ac_cv_prog_AR="${ac_tool_prefix}ar"
5916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5917 break 2
5919 done
5920 done
5921 IFS=$as_save_IFS
5925 AR=$ac_cv_prog_AR
5926 if test -n "$AR"; then
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5928 $as_echo "$AR" >&6; }
5929 else
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5931 $as_echo "no" >&6; }
5936 if test -z "$ac_cv_prog_AR"; then
5937 ac_ct_AR=$AR
5938 # Extract the first word of "ar", so it can be a program name with args.
5939 set dummy ar; ac_word=$2
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5941 $as_echo_n "checking for $ac_word... " >&6; }
5942 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5943 $as_echo_n "(cached) " >&6
5944 else
5945 if test -n "$ac_ct_AR"; then
5946 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5947 else
5948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5949 for as_dir in $PATH
5951 IFS=$as_save_IFS
5952 test -z "$as_dir" && as_dir=.
5953 for ac_exec_ext in '' $ac_executable_extensions; do
5954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5955 ac_cv_prog_ac_ct_AR="ar"
5956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5957 break 2
5959 done
5960 done
5961 IFS=$as_save_IFS
5965 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5966 if test -n "$ac_ct_AR"; then
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5968 $as_echo "$ac_ct_AR" >&6; }
5969 else
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5971 $as_echo "no" >&6; }
5974 if test "x$ac_ct_AR" = x; then
5975 AR="false"
5976 else
5977 case $cross_compiling:$ac_tool_warned in
5978 yes:)
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5980 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5981 ac_tool_warned=yes ;;
5982 esac
5983 AR=$ac_ct_AR
5985 else
5986 AR="$ac_cv_prog_AR"
5989 test -z "$AR" && AR=ar
5990 test -z "$AR_FLAGS" && AR_FLAGS=cru
6002 if test -n "$ac_tool_prefix"; then
6003 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6004 set dummy ${ac_tool_prefix}strip; ac_word=$2
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6006 $as_echo_n "checking for $ac_word... " >&6; }
6007 if test "${ac_cv_prog_STRIP+set}" = set; then :
6008 $as_echo_n "(cached) " >&6
6009 else
6010 if test -n "$STRIP"; then
6011 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6012 else
6013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6014 for as_dir in $PATH
6016 IFS=$as_save_IFS
6017 test -z "$as_dir" && as_dir=.
6018 for ac_exec_ext in '' $ac_executable_extensions; do
6019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6020 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6022 break 2
6024 done
6025 done
6026 IFS=$as_save_IFS
6030 STRIP=$ac_cv_prog_STRIP
6031 if test -n "$STRIP"; then
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6033 $as_echo "$STRIP" >&6; }
6034 else
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6036 $as_echo "no" >&6; }
6041 if test -z "$ac_cv_prog_STRIP"; then
6042 ac_ct_STRIP=$STRIP
6043 # Extract the first word of "strip", so it can be a program name with args.
6044 set dummy strip; ac_word=$2
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6046 $as_echo_n "checking for $ac_word... " >&6; }
6047 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6048 $as_echo_n "(cached) " >&6
6049 else
6050 if test -n "$ac_ct_STRIP"; then
6051 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6052 else
6053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6054 for as_dir in $PATH
6056 IFS=$as_save_IFS
6057 test -z "$as_dir" && as_dir=.
6058 for ac_exec_ext in '' $ac_executable_extensions; do
6059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6060 ac_cv_prog_ac_ct_STRIP="strip"
6061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6062 break 2
6064 done
6065 done
6066 IFS=$as_save_IFS
6070 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6071 if test -n "$ac_ct_STRIP"; then
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6073 $as_echo "$ac_ct_STRIP" >&6; }
6074 else
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6076 $as_echo "no" >&6; }
6079 if test "x$ac_ct_STRIP" = x; then
6080 STRIP=":"
6081 else
6082 case $cross_compiling:$ac_tool_warned in
6083 yes:)
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6085 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6086 ac_tool_warned=yes ;;
6087 esac
6088 STRIP=$ac_ct_STRIP
6090 else
6091 STRIP="$ac_cv_prog_STRIP"
6094 test -z "$STRIP" && STRIP=:
6101 if test -n "$ac_tool_prefix"; then
6102 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6103 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6105 $as_echo_n "checking for $ac_word... " >&6; }
6106 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6107 $as_echo_n "(cached) " >&6
6108 else
6109 if test -n "$RANLIB"; then
6110 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6111 else
6112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6113 for as_dir in $PATH
6115 IFS=$as_save_IFS
6116 test -z "$as_dir" && as_dir=.
6117 for ac_exec_ext in '' $ac_executable_extensions; do
6118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6119 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6121 break 2
6123 done
6124 done
6125 IFS=$as_save_IFS
6129 RANLIB=$ac_cv_prog_RANLIB
6130 if test -n "$RANLIB"; then
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6132 $as_echo "$RANLIB" >&6; }
6133 else
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6135 $as_echo "no" >&6; }
6140 if test -z "$ac_cv_prog_RANLIB"; then
6141 ac_ct_RANLIB=$RANLIB
6142 # Extract the first word of "ranlib", so it can be a program name with args.
6143 set dummy ranlib; ac_word=$2
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6145 $as_echo_n "checking for $ac_word... " >&6; }
6146 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6147 $as_echo_n "(cached) " >&6
6148 else
6149 if test -n "$ac_ct_RANLIB"; then
6150 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6151 else
6152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6153 for as_dir in $PATH
6155 IFS=$as_save_IFS
6156 test -z "$as_dir" && as_dir=.
6157 for ac_exec_ext in '' $ac_executable_extensions; do
6158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6159 ac_cv_prog_ac_ct_RANLIB="ranlib"
6160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6161 break 2
6163 done
6164 done
6165 IFS=$as_save_IFS
6169 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6170 if test -n "$ac_ct_RANLIB"; then
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6172 $as_echo "$ac_ct_RANLIB" >&6; }
6173 else
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6175 $as_echo "no" >&6; }
6178 if test "x$ac_ct_RANLIB" = x; then
6179 RANLIB=":"
6180 else
6181 case $cross_compiling:$ac_tool_warned in
6182 yes:)
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6184 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6185 ac_tool_warned=yes ;;
6186 esac
6187 RANLIB=$ac_ct_RANLIB
6189 else
6190 RANLIB="$ac_cv_prog_RANLIB"
6193 test -z "$RANLIB" && RANLIB=:
6200 # Determine commands to create old-style static archives.
6201 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6202 old_postinstall_cmds='chmod 644 $oldlib'
6203 old_postuninstall_cmds=
6205 if test -n "$RANLIB"; then
6206 case $host_os in
6207 openbsd*)
6208 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6211 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6213 esac
6214 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6217 case $host_os in
6218 darwin*)
6219 lock_old_archive_extraction=yes ;;
6221 lock_old_archive_extraction=no ;;
6222 esac
6262 # If no C compiler was specified, use CC.
6263 LTCC=${LTCC-"$CC"}
6265 # If no C compiler flags were specified, use CFLAGS.
6266 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6268 # Allow CC to be a program name with arguments.
6269 compiler=$CC
6272 # Check for command to grab the raw symbol name followed by C symbol from nm.
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6274 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6275 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6276 $as_echo_n "(cached) " >&6
6277 else
6279 # These are sane defaults that work on at least a few old systems.
6280 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6282 # Character class describing NM global symbol codes.
6283 symcode='[BCDEGRST]'
6285 # Regexp to match symbols that can be accessed directly from C.
6286 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6288 # Define system-specific variables.
6289 case $host_os in
6290 aix*)
6291 symcode='[BCDT]'
6293 cygwin* | mingw* | pw32* | cegcc*)
6294 symcode='[ABCDGISTW]'
6296 hpux*)
6297 if test "$host_cpu" = ia64; then
6298 symcode='[ABCDEGRST]'
6301 irix* | nonstopux*)
6302 symcode='[BCDEGRST]'
6304 osf*)
6305 symcode='[BCDEGQRST]'
6307 solaris*)
6308 symcode='[BDRT]'
6310 sco3.2v5*)
6311 symcode='[DT]'
6313 sysv4.2uw2*)
6314 symcode='[DT]'
6316 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6317 symcode='[ABDT]'
6319 sysv4)
6320 symcode='[DFNSTU]'
6322 esac
6324 # If we're using GNU nm, then use its standard symbol codes.
6325 case `$NM -V 2>&1` in
6326 *GNU* | *'with BFD'*)
6327 symcode='[ABCDGIRSTW]' ;;
6328 esac
6330 # Transform an extracted symbol line into a proper C declaration.
6331 # Some systems (esp. on ia64) link data and code symbols differently,
6332 # so use this general approach.
6333 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6335 # Transform an extracted symbol line into symbol name and symbol address
6336 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6337 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'"
6339 # Handle CRLF in mingw tool chain
6340 opt_cr=
6341 case $build_os in
6342 mingw*)
6343 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6345 esac
6347 # Try without a prefix underscore, then with it.
6348 for ac_symprfx in "" "_"; do
6350 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6351 symxfrm="\\1 $ac_symprfx\\2 \\2"
6353 # Write the raw and C identifiers.
6354 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6355 # Fake it for dumpbin and say T for any non-static function
6356 # and D for any global variable.
6357 # Also find C++ and __fastcall symbols from MSVC++,
6358 # which start with @ or ?.
6359 lt_cv_sys_global_symbol_pipe="$AWK '"\
6360 " {last_section=section; section=\$ 3};"\
6361 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6362 " \$ 0!~/External *\|/{next};"\
6363 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6364 " {if(hide[section]) next};"\
6365 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6366 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6367 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6368 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6369 " ' prfx=^$ac_symprfx"
6370 else
6371 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6374 # Check to see that the pipe works correctly.
6375 pipe_works=no
6377 rm -f conftest*
6378 cat > conftest.$ac_ext <<_LT_EOF
6379 #ifdef __cplusplus
6380 extern "C" {
6381 #endif
6382 char nm_test_var;
6383 void nm_test_func(void);
6384 void nm_test_func(void){}
6385 #ifdef __cplusplus
6387 #endif
6388 int main(){nm_test_var='a';nm_test_func();return(0);}
6389 _LT_EOF
6391 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6392 (eval $ac_compile) 2>&5
6393 ac_status=$?
6394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6395 test $ac_status = 0; }; then
6396 # Now try to grab the symbols.
6397 nlist=conftest.nm
6398 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6399 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6400 ac_status=$?
6401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6402 test $ac_status = 0; } && test -s "$nlist"; then
6403 # Try sorting and uniquifying the output.
6404 if sort "$nlist" | uniq > "$nlist"T; then
6405 mv -f "$nlist"T "$nlist"
6406 else
6407 rm -f "$nlist"T
6410 # Make sure that we snagged all the symbols we need.
6411 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6412 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6413 cat <<_LT_EOF > conftest.$ac_ext
6414 #ifdef __cplusplus
6415 extern "C" {
6416 #endif
6418 _LT_EOF
6419 # Now generate the symbol file.
6420 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6422 cat <<_LT_EOF >> conftest.$ac_ext
6424 /* The mapping between symbol names and symbols. */
6425 const struct {
6426 const char *name;
6427 void *address;
6429 lt__PROGRAM__LTX_preloaded_symbols[] =
6431 { "@PROGRAM@", (void *) 0 },
6432 _LT_EOF
6433 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6434 cat <<\_LT_EOF >> conftest.$ac_ext
6435 {0, (void *) 0}
6438 /* This works around a problem in FreeBSD linker */
6439 #ifdef FREEBSD_WORKAROUND
6440 static const void *lt_preloaded_setup() {
6441 return lt__PROGRAM__LTX_preloaded_symbols;
6443 #endif
6445 #ifdef __cplusplus
6447 #endif
6448 _LT_EOF
6449 # Now try linking the two files.
6450 mv conftest.$ac_objext conftstm.$ac_objext
6451 lt_save_LIBS="$LIBS"
6452 lt_save_CFLAGS="$CFLAGS"
6453 LIBS="conftstm.$ac_objext"
6454 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6455 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6456 (eval $ac_link) 2>&5
6457 ac_status=$?
6458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6459 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6460 pipe_works=yes
6462 LIBS="$lt_save_LIBS"
6463 CFLAGS="$lt_save_CFLAGS"
6464 else
6465 echo "cannot find nm_test_func in $nlist" >&5
6467 else
6468 echo "cannot find nm_test_var in $nlist" >&5
6470 else
6471 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6473 else
6474 echo "$progname: failed program was:" >&5
6475 cat conftest.$ac_ext >&5
6477 rm -rf conftest* conftst*
6479 # Do not use the global_symbol_pipe unless it works.
6480 if test "$pipe_works" = yes; then
6481 break
6482 else
6483 lt_cv_sys_global_symbol_pipe=
6485 done
6489 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6490 lt_cv_sys_global_symbol_to_cdecl=
6492 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6494 $as_echo "failed" >&6; }
6495 else
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6497 $as_echo "ok" >&6; }
6522 # Check whether --enable-libtool-lock was given.
6523 if test "${enable_libtool_lock+set}" = set; then :
6524 enableval=$enable_libtool_lock;
6527 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6529 # Some flags need to be propagated to the compiler or linker for good
6530 # libtool support.
6531 case $host in
6532 ia64-*-hpux*)
6533 # Find out which ABI we are using.
6534 echo 'int i;' > conftest.$ac_ext
6535 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6536 (eval $ac_compile) 2>&5
6537 ac_status=$?
6538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6539 test $ac_status = 0; }; then
6540 case `/usr/bin/file conftest.$ac_objext` in
6541 *ELF-32*)
6542 HPUX_IA64_MODE="32"
6544 *ELF-64*)
6545 HPUX_IA64_MODE="64"
6547 esac
6549 rm -rf conftest*
6551 *-*-irix6*)
6552 # Find out which ABI we are using.
6553 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6554 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6555 (eval $ac_compile) 2>&5
6556 ac_status=$?
6557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6558 test $ac_status = 0; }; then
6559 if test "$lt_cv_prog_gnu_ld" = yes; then
6560 case `/usr/bin/file conftest.$ac_objext` in
6561 *32-bit*)
6562 LD="${LD-ld} -melf32bsmip"
6564 *N32*)
6565 LD="${LD-ld} -melf32bmipn32"
6567 *64-bit*)
6568 LD="${LD-ld} -melf64bmip"
6570 esac
6571 else
6572 case `/usr/bin/file conftest.$ac_objext` in
6573 *32-bit*)
6574 LD="${LD-ld} -32"
6576 *N32*)
6577 LD="${LD-ld} -n32"
6579 *64-bit*)
6580 LD="${LD-ld} -64"
6582 esac
6585 rm -rf conftest*
6588 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6589 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6590 # Find out which ABI we are using.
6591 echo 'int i;' > conftest.$ac_ext
6592 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6593 (eval $ac_compile) 2>&5
6594 ac_status=$?
6595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6596 test $ac_status = 0; }; then
6597 case `/usr/bin/file conftest.o` in
6598 *32-bit*)
6599 case $host in
6600 x86_64-*kfreebsd*-gnu)
6601 LD="${LD-ld} -m elf_i386_fbsd"
6603 x86_64-*linux*)
6604 case `/usr/bin/file conftest.o` in
6605 *x86-64*)
6606 LD="${LD-ld} -m elf32_x86_64"
6609 LD="${LD-ld} -m elf_i386"
6611 esac
6613 powerpc64le-*linux*)
6614 LD="${LD-ld} -m elf32lppclinux"
6616 powerpc64-*linux*)
6617 LD="${LD-ld} -m elf32ppclinux"
6619 s390x-*linux*)
6620 LD="${LD-ld} -m elf_s390"
6622 sparc64-*linux*)
6623 LD="${LD-ld} -m elf32_sparc"
6625 esac
6627 *64-bit*)
6628 case $host in
6629 x86_64-*kfreebsd*-gnu)
6630 LD="${LD-ld} -m elf_x86_64_fbsd"
6632 x86_64-*linux*)
6633 LD="${LD-ld} -m elf_x86_64"
6635 powerpcle-*linux*)
6636 LD="${LD-ld} -m elf64lppc"
6638 powerpc-*linux*)
6639 LD="${LD-ld} -m elf64ppc"
6641 s390*-*linux*|s390*-*tpf*)
6642 LD="${LD-ld} -m elf64_s390"
6644 sparc*-*linux*)
6645 LD="${LD-ld} -m elf64_sparc"
6647 esac
6649 esac
6651 rm -rf conftest*
6654 *-*-sco3.2v5*)
6655 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6656 SAVE_CFLAGS="$CFLAGS"
6657 CFLAGS="$CFLAGS -belf"
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6659 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6660 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6661 $as_echo_n "(cached) " >&6
6662 else
6663 ac_ext=c
6664 ac_cpp='$CPP $CPPFLAGS'
6665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6670 /* end confdefs.h. */
6673 main ()
6677 return 0;
6679 _ACEOF
6680 if ac_fn_c_try_link "$LINENO"; then :
6681 lt_cv_cc_needs_belf=yes
6682 else
6683 lt_cv_cc_needs_belf=no
6685 rm -f core conftest.err conftest.$ac_objext \
6686 conftest$ac_exeext conftest.$ac_ext
6687 ac_ext=c
6688 ac_cpp='$CPP $CPPFLAGS'
6689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6695 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6696 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6697 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6698 CFLAGS="$SAVE_CFLAGS"
6701 sparc*-*solaris*)
6702 # Find out which ABI we are using.
6703 echo 'int i;' > conftest.$ac_ext
6704 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6705 (eval $ac_compile) 2>&5
6706 ac_status=$?
6707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6708 test $ac_status = 0; }; then
6709 case `/usr/bin/file conftest.o` in
6710 *64-bit*)
6711 case $lt_cv_prog_gnu_ld in
6712 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6714 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6715 LD="${LD-ld} -64"
6718 esac
6720 esac
6722 rm -rf conftest*
6724 esac
6726 need_locks="$enable_libtool_lock"
6729 case $host_os in
6730 rhapsody* | darwin*)
6731 if test -n "$ac_tool_prefix"; then
6732 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6733 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6735 $as_echo_n "checking for $ac_word... " >&6; }
6736 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6737 $as_echo_n "(cached) " >&6
6738 else
6739 if test -n "$DSYMUTIL"; then
6740 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6741 else
6742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743 for as_dir in $PATH
6745 IFS=$as_save_IFS
6746 test -z "$as_dir" && as_dir=.
6747 for ac_exec_ext in '' $ac_executable_extensions; do
6748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6749 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6751 break 2
6753 done
6754 done
6755 IFS=$as_save_IFS
6759 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6760 if test -n "$DSYMUTIL"; then
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6762 $as_echo "$DSYMUTIL" >&6; }
6763 else
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6765 $as_echo "no" >&6; }
6770 if test -z "$ac_cv_prog_DSYMUTIL"; then
6771 ac_ct_DSYMUTIL=$DSYMUTIL
6772 # Extract the first word of "dsymutil", so it can be a program name with args.
6773 set dummy dsymutil; ac_word=$2
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6775 $as_echo_n "checking for $ac_word... " >&6; }
6776 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6777 $as_echo_n "(cached) " >&6
6778 else
6779 if test -n "$ac_ct_DSYMUTIL"; then
6780 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6781 else
6782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6783 for as_dir in $PATH
6785 IFS=$as_save_IFS
6786 test -z "$as_dir" && as_dir=.
6787 for ac_exec_ext in '' $ac_executable_extensions; do
6788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6789 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6791 break 2
6793 done
6794 done
6795 IFS=$as_save_IFS
6799 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6800 if test -n "$ac_ct_DSYMUTIL"; then
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6802 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6803 else
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6805 $as_echo "no" >&6; }
6808 if test "x$ac_ct_DSYMUTIL" = x; then
6809 DSYMUTIL=":"
6810 else
6811 case $cross_compiling:$ac_tool_warned in
6812 yes:)
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6814 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6815 ac_tool_warned=yes ;;
6816 esac
6817 DSYMUTIL=$ac_ct_DSYMUTIL
6819 else
6820 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6823 if test -n "$ac_tool_prefix"; then
6824 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6825 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6827 $as_echo_n "checking for $ac_word... " >&6; }
6828 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6829 $as_echo_n "(cached) " >&6
6830 else
6831 if test -n "$NMEDIT"; then
6832 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6833 else
6834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6835 for as_dir in $PATH
6837 IFS=$as_save_IFS
6838 test -z "$as_dir" && as_dir=.
6839 for ac_exec_ext in '' $ac_executable_extensions; do
6840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6841 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6843 break 2
6845 done
6846 done
6847 IFS=$as_save_IFS
6851 NMEDIT=$ac_cv_prog_NMEDIT
6852 if test -n "$NMEDIT"; then
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6854 $as_echo "$NMEDIT" >&6; }
6855 else
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6857 $as_echo "no" >&6; }
6862 if test -z "$ac_cv_prog_NMEDIT"; then
6863 ac_ct_NMEDIT=$NMEDIT
6864 # Extract the first word of "nmedit", so it can be a program name with args.
6865 set dummy nmedit; ac_word=$2
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6867 $as_echo_n "checking for $ac_word... " >&6; }
6868 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6869 $as_echo_n "(cached) " >&6
6870 else
6871 if test -n "$ac_ct_NMEDIT"; then
6872 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6873 else
6874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6875 for as_dir in $PATH
6877 IFS=$as_save_IFS
6878 test -z "$as_dir" && as_dir=.
6879 for ac_exec_ext in '' $ac_executable_extensions; do
6880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6881 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6883 break 2
6885 done
6886 done
6887 IFS=$as_save_IFS
6891 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6892 if test -n "$ac_ct_NMEDIT"; then
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6894 $as_echo "$ac_ct_NMEDIT" >&6; }
6895 else
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6897 $as_echo "no" >&6; }
6900 if test "x$ac_ct_NMEDIT" = x; then
6901 NMEDIT=":"
6902 else
6903 case $cross_compiling:$ac_tool_warned in
6904 yes:)
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6906 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6907 ac_tool_warned=yes ;;
6908 esac
6909 NMEDIT=$ac_ct_NMEDIT
6911 else
6912 NMEDIT="$ac_cv_prog_NMEDIT"
6915 if test -n "$ac_tool_prefix"; then
6916 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6917 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6919 $as_echo_n "checking for $ac_word... " >&6; }
6920 if test "${ac_cv_prog_LIPO+set}" = set; then :
6921 $as_echo_n "(cached) " >&6
6922 else
6923 if test -n "$LIPO"; then
6924 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6925 else
6926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6927 for as_dir in $PATH
6929 IFS=$as_save_IFS
6930 test -z "$as_dir" && as_dir=.
6931 for ac_exec_ext in '' $ac_executable_extensions; do
6932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6933 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6935 break 2
6937 done
6938 done
6939 IFS=$as_save_IFS
6943 LIPO=$ac_cv_prog_LIPO
6944 if test -n "$LIPO"; then
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6946 $as_echo "$LIPO" >&6; }
6947 else
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6949 $as_echo "no" >&6; }
6954 if test -z "$ac_cv_prog_LIPO"; then
6955 ac_ct_LIPO=$LIPO
6956 # Extract the first word of "lipo", so it can be a program name with args.
6957 set dummy lipo; ac_word=$2
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6959 $as_echo_n "checking for $ac_word... " >&6; }
6960 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6961 $as_echo_n "(cached) " >&6
6962 else
6963 if test -n "$ac_ct_LIPO"; then
6964 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6965 else
6966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6967 for as_dir in $PATH
6969 IFS=$as_save_IFS
6970 test -z "$as_dir" && as_dir=.
6971 for ac_exec_ext in '' $ac_executable_extensions; do
6972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6973 ac_cv_prog_ac_ct_LIPO="lipo"
6974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6975 break 2
6977 done
6978 done
6979 IFS=$as_save_IFS
6983 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6984 if test -n "$ac_ct_LIPO"; then
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6986 $as_echo "$ac_ct_LIPO" >&6; }
6987 else
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6989 $as_echo "no" >&6; }
6992 if test "x$ac_ct_LIPO" = x; then
6993 LIPO=":"
6994 else
6995 case $cross_compiling:$ac_tool_warned in
6996 yes:)
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6998 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6999 ac_tool_warned=yes ;;
7000 esac
7001 LIPO=$ac_ct_LIPO
7003 else
7004 LIPO="$ac_cv_prog_LIPO"
7007 if test -n "$ac_tool_prefix"; then
7008 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7009 set dummy ${ac_tool_prefix}otool; ac_word=$2
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7011 $as_echo_n "checking for $ac_word... " >&6; }
7012 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7013 $as_echo_n "(cached) " >&6
7014 else
7015 if test -n "$OTOOL"; then
7016 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7017 else
7018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7019 for as_dir in $PATH
7021 IFS=$as_save_IFS
7022 test -z "$as_dir" && as_dir=.
7023 for ac_exec_ext in '' $ac_executable_extensions; do
7024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7025 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7027 break 2
7029 done
7030 done
7031 IFS=$as_save_IFS
7035 OTOOL=$ac_cv_prog_OTOOL
7036 if test -n "$OTOOL"; then
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7038 $as_echo "$OTOOL" >&6; }
7039 else
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7041 $as_echo "no" >&6; }
7046 if test -z "$ac_cv_prog_OTOOL"; then
7047 ac_ct_OTOOL=$OTOOL
7048 # Extract the first word of "otool", so it can be a program name with args.
7049 set dummy otool; ac_word=$2
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7051 $as_echo_n "checking for $ac_word... " >&6; }
7052 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7053 $as_echo_n "(cached) " >&6
7054 else
7055 if test -n "$ac_ct_OTOOL"; then
7056 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7057 else
7058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7059 for as_dir in $PATH
7061 IFS=$as_save_IFS
7062 test -z "$as_dir" && as_dir=.
7063 for ac_exec_ext in '' $ac_executable_extensions; do
7064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7065 ac_cv_prog_ac_ct_OTOOL="otool"
7066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7067 break 2
7069 done
7070 done
7071 IFS=$as_save_IFS
7075 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7076 if test -n "$ac_ct_OTOOL"; then
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7078 $as_echo "$ac_ct_OTOOL" >&6; }
7079 else
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7081 $as_echo "no" >&6; }
7084 if test "x$ac_ct_OTOOL" = x; then
7085 OTOOL=":"
7086 else
7087 case $cross_compiling:$ac_tool_warned in
7088 yes:)
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7090 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7091 ac_tool_warned=yes ;;
7092 esac
7093 OTOOL=$ac_ct_OTOOL
7095 else
7096 OTOOL="$ac_cv_prog_OTOOL"
7099 if test -n "$ac_tool_prefix"; then
7100 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7101 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7103 $as_echo_n "checking for $ac_word... " >&6; }
7104 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7105 $as_echo_n "(cached) " >&6
7106 else
7107 if test -n "$OTOOL64"; then
7108 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7109 else
7110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7111 for as_dir in $PATH
7113 IFS=$as_save_IFS
7114 test -z "$as_dir" && as_dir=.
7115 for ac_exec_ext in '' $ac_executable_extensions; do
7116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7117 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7119 break 2
7121 done
7122 done
7123 IFS=$as_save_IFS
7127 OTOOL64=$ac_cv_prog_OTOOL64
7128 if test -n "$OTOOL64"; then
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7130 $as_echo "$OTOOL64" >&6; }
7131 else
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7133 $as_echo "no" >&6; }
7138 if test -z "$ac_cv_prog_OTOOL64"; then
7139 ac_ct_OTOOL64=$OTOOL64
7140 # Extract the first word of "otool64", so it can be a program name with args.
7141 set dummy otool64; ac_word=$2
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7143 $as_echo_n "checking for $ac_word... " >&6; }
7144 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7145 $as_echo_n "(cached) " >&6
7146 else
7147 if test -n "$ac_ct_OTOOL64"; then
7148 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7149 else
7150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7151 for as_dir in $PATH
7153 IFS=$as_save_IFS
7154 test -z "$as_dir" && as_dir=.
7155 for ac_exec_ext in '' $ac_executable_extensions; do
7156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7157 ac_cv_prog_ac_ct_OTOOL64="otool64"
7158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7159 break 2
7161 done
7162 done
7163 IFS=$as_save_IFS
7167 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7168 if test -n "$ac_ct_OTOOL64"; then
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7170 $as_echo "$ac_ct_OTOOL64" >&6; }
7171 else
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7173 $as_echo "no" >&6; }
7176 if test "x$ac_ct_OTOOL64" = x; then
7177 OTOOL64=":"
7178 else
7179 case $cross_compiling:$ac_tool_warned in
7180 yes:)
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7182 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7183 ac_tool_warned=yes ;;
7184 esac
7185 OTOOL64=$ac_ct_OTOOL64
7187 else
7188 OTOOL64="$ac_cv_prog_OTOOL64"
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7218 $as_echo_n "checking for -single_module linker flag... " >&6; }
7219 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7220 $as_echo_n "(cached) " >&6
7221 else
7222 lt_cv_apple_cc_single_mod=no
7223 if test -z "${LT_MULTI_MODULE}"; then
7224 # By default we will add the -single_module flag. You can override
7225 # by either setting the environment variable LT_MULTI_MODULE
7226 # non-empty at configure time, or by adding -multi_module to the
7227 # link flags.
7228 rm -rf libconftest.dylib*
7229 echo "int foo(void){return 1;}" > conftest.c
7230 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7231 -dynamiclib -Wl,-single_module conftest.c" >&5
7232 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7233 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7234 _lt_result=$?
7235 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7236 lt_cv_apple_cc_single_mod=yes
7237 else
7238 cat conftest.err >&5
7240 rm -rf libconftest.dylib*
7241 rm -f conftest.*
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7245 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7247 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7248 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7249 $as_echo_n "(cached) " >&6
7250 else
7251 lt_cv_ld_exported_symbols_list=no
7252 save_LDFLAGS=$LDFLAGS
7253 echo "_main" > conftest.sym
7254 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7256 /* end confdefs.h. */
7259 main ()
7263 return 0;
7265 _ACEOF
7266 if ac_fn_c_try_link "$LINENO"; then :
7267 lt_cv_ld_exported_symbols_list=yes
7268 else
7269 lt_cv_ld_exported_symbols_list=no
7271 rm -f core conftest.err conftest.$ac_objext \
7272 conftest$ac_exeext conftest.$ac_ext
7273 LDFLAGS="$save_LDFLAGS"
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7277 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7279 $as_echo_n "checking for -force_load linker flag... " >&6; }
7280 if test "${lt_cv_ld_force_load+set}" = set; then :
7281 $as_echo_n "(cached) " >&6
7282 else
7283 lt_cv_ld_force_load=no
7284 cat > conftest.c << _LT_EOF
7285 int forced_loaded() { return 2;}
7286 _LT_EOF
7287 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7288 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7289 echo "$AR cru libconftest.a conftest.o" >&5
7290 $AR cru libconftest.a conftest.o 2>&5
7291 cat > conftest.c << _LT_EOF
7292 int main() { return 0;}
7293 _LT_EOF
7294 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7295 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7296 _lt_result=$?
7297 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7298 lt_cv_ld_force_load=yes
7299 else
7300 cat conftest.err >&5
7302 rm -f conftest.err libconftest.a conftest conftest.c
7303 rm -rf conftest.dSYM
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7307 $as_echo "$lt_cv_ld_force_load" >&6; }
7308 case $host_os in
7309 rhapsody* | darwin1.[012])
7310 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7311 darwin1.*)
7312 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7313 darwin*) # darwin 5.x on
7314 # if running on 10.5 or later, the deployment target defaults
7315 # to the OS version, if on x86, and 10.4, the deployment
7316 # target defaults to 10.4. Don't you love it?
7317 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7318 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7319 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7320 10.[012][,.]*)
7321 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7322 10.*)
7323 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7324 esac
7326 esac
7327 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7328 _lt_dar_single_mod='$single_module'
7330 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7331 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7332 else
7333 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7335 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7336 _lt_dsymutil='~$DSYMUTIL $lib || :'
7337 else
7338 _lt_dsymutil=
7341 esac
7343 ac_ext=c
7344 ac_cpp='$CPP $CPPFLAGS'
7345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7349 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7350 # On Suns, sometimes $CPP names a directory.
7351 if test -n "$CPP" && test -d "$CPP"; then
7352 CPP=
7354 if test -z "$CPP"; then
7355 if test "${ac_cv_prog_CPP+set}" = set; then :
7356 $as_echo_n "(cached) " >&6
7357 else
7358 # Double quotes because CPP needs to be expanded
7359 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7361 ac_preproc_ok=false
7362 for ac_c_preproc_warn_flag in '' yes
7364 # Use a header file that comes with gcc, so configuring glibc
7365 # with a fresh cross-compiler works.
7366 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7367 # <limits.h> exists even on freestanding compilers.
7368 # On the NeXT, cc -E runs the code through the compiler's parser,
7369 # not just through cpp. "Syntax error" is here to catch this case.
7370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7371 /* end confdefs.h. */
7372 #ifdef __STDC__
7373 # include <limits.h>
7374 #else
7375 # include <assert.h>
7376 #endif
7377 Syntax error
7378 _ACEOF
7379 if ac_fn_c_try_cpp "$LINENO"; then :
7381 else
7382 # Broken: fails on valid input.
7383 continue
7385 rm -f conftest.err conftest.$ac_ext
7387 # OK, works on sane cases. Now check whether nonexistent headers
7388 # can be detected and how.
7389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7390 /* end confdefs.h. */
7391 #include <ac_nonexistent.h>
7392 _ACEOF
7393 if ac_fn_c_try_cpp "$LINENO"; then :
7394 # Broken: success on invalid input.
7395 continue
7396 else
7397 # Passes both tests.
7398 ac_preproc_ok=:
7399 break
7401 rm -f conftest.err conftest.$ac_ext
7403 done
7404 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7405 rm -f conftest.err conftest.$ac_ext
7406 if $ac_preproc_ok; then :
7407 break
7410 done
7411 ac_cv_prog_CPP=$CPP
7414 CPP=$ac_cv_prog_CPP
7415 else
7416 ac_cv_prog_CPP=$CPP
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7419 $as_echo "$CPP" >&6; }
7420 ac_preproc_ok=false
7421 for ac_c_preproc_warn_flag in '' yes
7423 # Use a header file that comes with gcc, so configuring glibc
7424 # with a fresh cross-compiler works.
7425 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7426 # <limits.h> exists even on freestanding compilers.
7427 # On the NeXT, cc -E runs the code through the compiler's parser,
7428 # not just through cpp. "Syntax error" is here to catch this case.
7429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7430 /* end confdefs.h. */
7431 #ifdef __STDC__
7432 # include <limits.h>
7433 #else
7434 # include <assert.h>
7435 #endif
7436 Syntax error
7437 _ACEOF
7438 if ac_fn_c_try_cpp "$LINENO"; then :
7440 else
7441 # Broken: fails on valid input.
7442 continue
7444 rm -f conftest.err conftest.$ac_ext
7446 # OK, works on sane cases. Now check whether nonexistent headers
7447 # can be detected and how.
7448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7449 /* end confdefs.h. */
7450 #include <ac_nonexistent.h>
7451 _ACEOF
7452 if ac_fn_c_try_cpp "$LINENO"; then :
7453 # Broken: success on invalid input.
7454 continue
7455 else
7456 # Passes both tests.
7457 ac_preproc_ok=:
7458 break
7460 rm -f conftest.err conftest.$ac_ext
7462 done
7463 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7464 rm -f conftest.err conftest.$ac_ext
7465 if $ac_preproc_ok; then :
7467 else
7468 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7469 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7470 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7471 See \`config.log' for more details." "$LINENO" 5; }
7474 ac_ext=c
7475 ac_cpp='$CPP $CPPFLAGS'
7476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7482 $as_echo_n "checking for ANSI C header files... " >&6; }
7483 if test "${ac_cv_header_stdc+set}" = set; then :
7484 $as_echo_n "(cached) " >&6
7485 else
7486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7487 /* end confdefs.h. */
7488 #include <stdlib.h>
7489 #include <stdarg.h>
7490 #include <string.h>
7491 #include <float.h>
7494 main ()
7498 return 0;
7500 _ACEOF
7501 if ac_fn_c_try_compile "$LINENO"; then :
7502 ac_cv_header_stdc=yes
7503 else
7504 ac_cv_header_stdc=no
7506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7508 if test $ac_cv_header_stdc = yes; then
7509 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7511 /* end confdefs.h. */
7512 #include <string.h>
7514 _ACEOF
7515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7516 $EGREP "memchr" >/dev/null 2>&1; then :
7518 else
7519 ac_cv_header_stdc=no
7521 rm -f conftest*
7525 if test $ac_cv_header_stdc = yes; then
7526 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7528 /* end confdefs.h. */
7529 #include <stdlib.h>
7531 _ACEOF
7532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7533 $EGREP "free" >/dev/null 2>&1; then :
7535 else
7536 ac_cv_header_stdc=no
7538 rm -f conftest*
7542 if test $ac_cv_header_stdc = yes; then
7543 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7544 if test "$cross_compiling" = yes; then :
7546 else
7547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7548 /* end confdefs.h. */
7549 #include <ctype.h>
7550 #include <stdlib.h>
7551 #if ((' ' & 0x0FF) == 0x020)
7552 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7553 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7554 #else
7555 # define ISLOWER(c) \
7556 (('a' <= (c) && (c) <= 'i') \
7557 || ('j' <= (c) && (c) <= 'r') \
7558 || ('s' <= (c) && (c) <= 'z'))
7559 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7560 #endif
7562 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7564 main ()
7566 int i;
7567 for (i = 0; i < 256; i++)
7568 if (XOR (islower (i), ISLOWER (i))
7569 || toupper (i) != TOUPPER (i))
7570 return 2;
7571 return 0;
7573 _ACEOF
7574 if ac_fn_c_try_run "$LINENO"; then :
7576 else
7577 ac_cv_header_stdc=no
7579 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7580 conftest.$ac_objext conftest.beam conftest.$ac_ext
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7586 $as_echo "$ac_cv_header_stdc" >&6; }
7587 if test $ac_cv_header_stdc = yes; then
7589 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7593 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7594 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7595 inttypes.h stdint.h unistd.h
7596 do :
7597 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7598 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7600 eval as_val=\$$as_ac_Header
7601 if test "x$as_val" = x""yes; then :
7602 cat >>confdefs.h <<_ACEOF
7603 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7604 _ACEOF
7608 done
7611 for ac_header in dlfcn.h
7612 do :
7613 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7615 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7616 cat >>confdefs.h <<_ACEOF
7617 #define HAVE_DLFCN_H 1
7618 _ACEOF
7622 done
7628 # Set options
7632 enable_dlopen=no
7635 enable_win32_dll=no
7638 # Check whether --enable-shared was given.
7639 if test "${enable_shared+set}" = set; then :
7640 enableval=$enable_shared; p=${PACKAGE-default}
7641 case $enableval in
7642 yes) enable_shared=yes ;;
7643 no) enable_shared=no ;;
7645 enable_shared=no
7646 # Look at the argument we got. We use all the common list separators.
7647 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7648 for pkg in $enableval; do
7649 IFS="$lt_save_ifs"
7650 if test "X$pkg" = "X$p"; then
7651 enable_shared=yes
7653 done
7654 IFS="$lt_save_ifs"
7656 esac
7657 else
7658 enable_shared=yes
7669 # Check whether --enable-static was given.
7670 if test "${enable_static+set}" = set; then :
7671 enableval=$enable_static; p=${PACKAGE-default}
7672 case $enableval in
7673 yes) enable_static=yes ;;
7674 no) enable_static=no ;;
7676 enable_static=no
7677 # Look at the argument we got. We use all the common list separators.
7678 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7679 for pkg in $enableval; do
7680 IFS="$lt_save_ifs"
7681 if test "X$pkg" = "X$p"; then
7682 enable_static=yes
7684 done
7685 IFS="$lt_save_ifs"
7687 esac
7688 else
7689 enable_static=yes
7701 # Check whether --with-pic was given.
7702 if test "${with_pic+set}" = set; then :
7703 withval=$with_pic; pic_mode="$withval"
7704 else
7705 pic_mode=default
7709 test -z "$pic_mode" && pic_mode=default
7717 # Check whether --enable-fast-install was given.
7718 if test "${enable_fast_install+set}" = set; then :
7719 enableval=$enable_fast_install; p=${PACKAGE-default}
7720 case $enableval in
7721 yes) enable_fast_install=yes ;;
7722 no) enable_fast_install=no ;;
7724 enable_fast_install=no
7725 # Look at the argument we got. We use all the common list separators.
7726 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7727 for pkg in $enableval; do
7728 IFS="$lt_save_ifs"
7729 if test "X$pkg" = "X$p"; then
7730 enable_fast_install=yes
7732 done
7733 IFS="$lt_save_ifs"
7735 esac
7736 else
7737 enable_fast_install=yes
7750 # This can be used to rebuild libtool when needed
7751 LIBTOOL_DEPS="$ltmain"
7753 # Always use our own libtool.
7754 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7781 test -z "$LN_S" && LN_S="ln -s"
7796 if test -n "${ZSH_VERSION+set}" ; then
7797 setopt NO_GLOB_SUBST
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7801 $as_echo_n "checking for objdir... " >&6; }
7802 if test "${lt_cv_objdir+set}" = set; then :
7803 $as_echo_n "(cached) " >&6
7804 else
7805 rm -f .libs 2>/dev/null
7806 mkdir .libs 2>/dev/null
7807 if test -d .libs; then
7808 lt_cv_objdir=.libs
7809 else
7810 # MS-DOS does not allow filenames that begin with a dot.
7811 lt_cv_objdir=_libs
7813 rmdir .libs 2>/dev/null
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7816 $as_echo "$lt_cv_objdir" >&6; }
7817 objdir=$lt_cv_objdir
7823 cat >>confdefs.h <<_ACEOF
7824 #define LT_OBJDIR "$lt_cv_objdir/"
7825 _ACEOF
7830 case $host_os in
7831 aix3*)
7832 # AIX sometimes has problems with the GCC collect2 program. For some
7833 # reason, if we set the COLLECT_NAMES environment variable, the problems
7834 # vanish in a puff of smoke.
7835 if test "X${COLLECT_NAMES+set}" != Xset; then
7836 COLLECT_NAMES=
7837 export COLLECT_NAMES
7840 esac
7842 # Global variables:
7843 ofile=libtool
7844 can_build_shared=yes
7846 # All known linkers require a `.a' archive for static linking (except MSVC,
7847 # which needs '.lib').
7848 libext=a
7850 with_gnu_ld="$lt_cv_prog_gnu_ld"
7852 old_CC="$CC"
7853 old_CFLAGS="$CFLAGS"
7855 # Set sane defaults for various variables
7856 test -z "$CC" && CC=cc
7857 test -z "$LTCC" && LTCC=$CC
7858 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7859 test -z "$LD" && LD=ld
7860 test -z "$ac_objext" && ac_objext=o
7862 for cc_temp in $compiler""; do
7863 case $cc_temp in
7864 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7865 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7866 \-*) ;;
7867 *) break;;
7868 esac
7869 done
7870 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7873 # Only perform the check for file, if the check method requires it
7874 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7875 case $deplibs_check_method in
7876 file_magic*)
7877 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7879 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7880 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7881 $as_echo_n "(cached) " >&6
7882 else
7883 case $MAGIC_CMD in
7884 [\\/*] | ?:[\\/]*)
7885 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7888 lt_save_MAGIC_CMD="$MAGIC_CMD"
7889 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7890 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7891 for ac_dir in $ac_dummy; do
7892 IFS="$lt_save_ifs"
7893 test -z "$ac_dir" && ac_dir=.
7894 if test -f $ac_dir/${ac_tool_prefix}file; then
7895 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7896 if test -n "$file_magic_test_file"; then
7897 case $deplibs_check_method in
7898 "file_magic "*)
7899 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7900 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7901 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7902 $EGREP "$file_magic_regex" > /dev/null; then
7904 else
7905 cat <<_LT_EOF 1>&2
7907 *** Warning: the command libtool uses to detect shared libraries,
7908 *** $file_magic_cmd, produces output that libtool cannot recognize.
7909 *** The result is that libtool may fail to recognize shared libraries
7910 *** as such. This will affect the creation of libtool libraries that
7911 *** depend on shared libraries, but programs linked with such libtool
7912 *** libraries will work regardless of this problem. Nevertheless, you
7913 *** may want to report the problem to your system manager and/or to
7914 *** bug-libtool@gnu.org
7916 _LT_EOF
7917 fi ;;
7918 esac
7920 break
7922 done
7923 IFS="$lt_save_ifs"
7924 MAGIC_CMD="$lt_save_MAGIC_CMD"
7926 esac
7929 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7930 if test -n "$MAGIC_CMD"; then
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7932 $as_echo "$MAGIC_CMD" >&6; }
7933 else
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7935 $as_echo "no" >&6; }
7942 if test -z "$lt_cv_path_MAGIC_CMD"; then
7943 if test -n "$ac_tool_prefix"; then
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7945 $as_echo_n "checking for file... " >&6; }
7946 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7947 $as_echo_n "(cached) " >&6
7948 else
7949 case $MAGIC_CMD in
7950 [\\/*] | ?:[\\/]*)
7951 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7954 lt_save_MAGIC_CMD="$MAGIC_CMD"
7955 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7956 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7957 for ac_dir in $ac_dummy; do
7958 IFS="$lt_save_ifs"
7959 test -z "$ac_dir" && ac_dir=.
7960 if test -f $ac_dir/file; then
7961 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7962 if test -n "$file_magic_test_file"; then
7963 case $deplibs_check_method in
7964 "file_magic "*)
7965 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7966 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7967 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7968 $EGREP "$file_magic_regex" > /dev/null; then
7970 else
7971 cat <<_LT_EOF 1>&2
7973 *** Warning: the command libtool uses to detect shared libraries,
7974 *** $file_magic_cmd, produces output that libtool cannot recognize.
7975 *** The result is that libtool may fail to recognize shared libraries
7976 *** as such. This will affect the creation of libtool libraries that
7977 *** depend on shared libraries, but programs linked with such libtool
7978 *** libraries will work regardless of this problem. Nevertheless, you
7979 *** may want to report the problem to your system manager and/or to
7980 *** bug-libtool@gnu.org
7982 _LT_EOF
7983 fi ;;
7984 esac
7986 break
7988 done
7989 IFS="$lt_save_ifs"
7990 MAGIC_CMD="$lt_save_MAGIC_CMD"
7992 esac
7995 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7996 if test -n "$MAGIC_CMD"; then
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7998 $as_echo "$MAGIC_CMD" >&6; }
7999 else
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8001 $as_echo "no" >&6; }
8005 else
8006 MAGIC_CMD=:
8012 esac
8014 # Use C for the default configuration in the libtool script
8016 lt_save_CC="$CC"
8017 ac_ext=c
8018 ac_cpp='$CPP $CPPFLAGS'
8019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8024 # Source file extension for C test sources.
8025 ac_ext=c
8027 # Object file extension for compiled C test sources.
8028 objext=o
8029 objext=$objext
8031 # Code to be used in simple compile tests
8032 lt_simple_compile_test_code="int some_variable = 0;"
8034 # Code to be used in simple link tests
8035 lt_simple_link_test_code='int main(){return(0);}'
8043 # If no C compiler was specified, use CC.
8044 LTCC=${LTCC-"$CC"}
8046 # If no C compiler flags were specified, use CFLAGS.
8047 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8049 # Allow CC to be a program name with arguments.
8050 compiler=$CC
8052 # Save the default compiler, since it gets overwritten when the other
8053 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8054 compiler_DEFAULT=$CC
8056 # save warnings/boilerplate of simple test code
8057 ac_outfile=conftest.$ac_objext
8058 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8059 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8060 _lt_compiler_boilerplate=`cat conftest.err`
8061 $RM conftest*
8063 ac_outfile=conftest.$ac_objext
8064 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8065 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8066 _lt_linker_boilerplate=`cat conftest.err`
8067 $RM -r conftest*
8070 ## CAVEAT EMPTOR:
8071 ## There is no encapsulation within the following macros, do not change
8072 ## the running order or otherwise move them around unless you know exactly
8073 ## what you are doing...
8074 if test -n "$compiler"; then
8076 lt_prog_compiler_no_builtin_flag=
8078 if test "$GCC" = yes; then
8079 case $cc_basename in
8080 nvcc*)
8081 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8083 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8084 esac
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8087 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8088 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8089 $as_echo_n "(cached) " >&6
8090 else
8091 lt_cv_prog_compiler_rtti_exceptions=no
8092 ac_outfile=conftest.$ac_objext
8093 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8094 lt_compiler_flag="-fno-rtti -fno-exceptions"
8095 # Insert the option either (1) after the last *FLAGS variable, or
8096 # (2) before a word containing "conftest.", or (3) at the end.
8097 # Note that $ac_compile itself does not contain backslashes and begins
8098 # with a dollar sign (not a hyphen), so the echo should work correctly.
8099 # The option is referenced via a variable to avoid confusing sed.
8100 lt_compile=`echo "$ac_compile" | $SED \
8101 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8102 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8103 -e 's:$: $lt_compiler_flag:'`
8104 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8105 (eval "$lt_compile" 2>conftest.err)
8106 ac_status=$?
8107 cat conftest.err >&5
8108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8109 if (exit $ac_status) && test -s "$ac_outfile"; then
8110 # The compiler can only warn and ignore the option if not recognized
8111 # So say no if there are warnings other than the usual output.
8112 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8113 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8114 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8115 lt_cv_prog_compiler_rtti_exceptions=yes
8118 $RM conftest*
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8122 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8124 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8125 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8126 else
8137 lt_prog_compiler_wl=
8138 lt_prog_compiler_pic=
8139 lt_prog_compiler_static=
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8142 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8144 if test "$GCC" = yes; then
8145 lt_prog_compiler_wl='-Wl,'
8146 lt_prog_compiler_static='-static'
8148 case $host_os in
8149 aix*)
8150 # All AIX code is PIC.
8151 if test "$host_cpu" = ia64; then
8152 # AIX 5 now supports IA64 processor
8153 lt_prog_compiler_static='-Bstatic'
8155 lt_prog_compiler_pic='-fPIC'
8158 amigaos*)
8159 case $host_cpu in
8160 powerpc)
8161 # see comment about AmigaOS4 .so support
8162 lt_prog_compiler_pic='-fPIC'
8164 m68k)
8165 # FIXME: we need at least 68020 code to build shared libraries, but
8166 # adding the `-m68020' flag to GCC prevents building anything better,
8167 # like `-m68040'.
8168 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8170 esac
8173 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8174 # PIC is the default for these OSes.
8177 mingw* | cygwin* | pw32* | os2* | cegcc*)
8178 # This hack is so that the source file can tell whether it is being
8179 # built for inclusion in a dll (and should export symbols for example).
8180 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8181 # (--disable-auto-import) libraries
8182 lt_prog_compiler_pic='-DDLL_EXPORT'
8185 darwin* | rhapsody*)
8186 # PIC is the default on this platform
8187 # Common symbols not allowed in MH_DYLIB files
8188 lt_prog_compiler_pic='-fno-common'
8191 haiku*)
8192 # PIC is the default for Haiku.
8193 # The "-static" flag exists, but is broken.
8194 lt_prog_compiler_static=
8197 hpux*)
8198 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8199 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8200 # sets the default TLS model and affects inlining.
8201 case $host_cpu in
8202 hppa*64*)
8203 # +Z the default
8206 lt_prog_compiler_pic='-fPIC'
8208 esac
8211 interix[3-9]*)
8212 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8213 # Instead, we relocate shared libraries at runtime.
8216 msdosdjgpp*)
8217 # Just because we use GCC doesn't mean we suddenly get shared libraries
8218 # on systems that don't support them.
8219 lt_prog_compiler_can_build_shared=no
8220 enable_shared=no
8223 *nto* | *qnx*)
8224 # QNX uses GNU C++, but need to define -shared option too, otherwise
8225 # it will coredump.
8226 lt_prog_compiler_pic='-fPIC -shared'
8229 sysv4*MP*)
8230 if test -d /usr/nec; then
8231 lt_prog_compiler_pic=-Kconform_pic
8236 lt_prog_compiler_pic='-fPIC'
8238 esac
8240 case $cc_basename in
8241 nvcc*) # Cuda Compiler Driver 2.2
8242 lt_prog_compiler_wl='-Xlinker '
8243 lt_prog_compiler_pic='-Xcompiler -fPIC'
8245 esac
8246 else
8247 # PORTME Check for flag to pass linker flags through the system compiler.
8248 case $host_os in
8249 aix*)
8250 lt_prog_compiler_wl='-Wl,'
8251 if test "$host_cpu" = ia64; then
8252 # AIX 5 now supports IA64 processor
8253 lt_prog_compiler_static='-Bstatic'
8254 else
8255 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8259 mingw* | cygwin* | pw32* | os2* | cegcc*)
8260 # This hack is so that the source file can tell whether it is being
8261 # built for inclusion in a dll (and should export symbols for example).
8262 lt_prog_compiler_pic='-DDLL_EXPORT'
8265 hpux9* | hpux10* | hpux11*)
8266 lt_prog_compiler_wl='-Wl,'
8267 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8268 # not for PA HP-UX.
8269 case $host_cpu in
8270 hppa*64*|ia64*)
8271 # +Z the default
8274 lt_prog_compiler_pic='+Z'
8276 esac
8277 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8278 lt_prog_compiler_static='${wl}-a ${wl}archive'
8281 irix5* | irix6* | nonstopux*)
8282 lt_prog_compiler_wl='-Wl,'
8283 # PIC (with -KPIC) is the default.
8284 lt_prog_compiler_static='-non_shared'
8287 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8288 case $cc_basename in
8289 # old Intel for x86_64 which still supported -KPIC.
8290 ecc*)
8291 lt_prog_compiler_wl='-Wl,'
8292 lt_prog_compiler_pic='-KPIC'
8293 lt_prog_compiler_static='-static'
8295 # icc used to be incompatible with GCC.
8296 # ICC 10 doesn't accept -KPIC any more.
8297 icc* | ifort*)
8298 lt_prog_compiler_wl='-Wl,'
8299 lt_prog_compiler_pic='-fPIC'
8300 lt_prog_compiler_static='-static'
8302 # Lahey Fortran 8.1.
8303 lf95*)
8304 lt_prog_compiler_wl='-Wl,'
8305 lt_prog_compiler_pic='--shared'
8306 lt_prog_compiler_static='--static'
8308 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8309 # Portland Group compilers (*not* the Pentium gcc compiler,
8310 # which looks to be a dead project)
8311 lt_prog_compiler_wl='-Wl,'
8312 lt_prog_compiler_pic='-fpic'
8313 lt_prog_compiler_static='-Bstatic'
8315 ccc*)
8316 lt_prog_compiler_wl='-Wl,'
8317 # All Alpha code is PIC.
8318 lt_prog_compiler_static='-non_shared'
8320 xl* | bgxl* | bgf* | mpixl*)
8321 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8322 lt_prog_compiler_wl='-Wl,'
8323 lt_prog_compiler_pic='-qpic'
8324 lt_prog_compiler_static='-qstaticlink'
8327 case `$CC -V 2>&1 | sed 5q` in
8328 *Sun\ F* | *Sun*Fortran*)
8329 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8330 lt_prog_compiler_pic='-KPIC'
8331 lt_prog_compiler_static='-Bstatic'
8332 lt_prog_compiler_wl=''
8334 *Sun\ C*)
8335 # Sun C 5.9
8336 lt_prog_compiler_pic='-KPIC'
8337 lt_prog_compiler_static='-Bstatic'
8338 lt_prog_compiler_wl='-Wl,'
8340 esac
8342 esac
8345 newsos6)
8346 lt_prog_compiler_pic='-KPIC'
8347 lt_prog_compiler_static='-Bstatic'
8350 *nto* | *qnx*)
8351 # QNX uses GNU C++, but need to define -shared option too, otherwise
8352 # it will coredump.
8353 lt_prog_compiler_pic='-fPIC -shared'
8356 osf3* | osf4* | osf5*)
8357 lt_prog_compiler_wl='-Wl,'
8358 # All OSF/1 code is PIC.
8359 lt_prog_compiler_static='-non_shared'
8362 rdos*)
8363 lt_prog_compiler_static='-non_shared'
8366 solaris*)
8367 lt_prog_compiler_pic='-KPIC'
8368 lt_prog_compiler_static='-Bstatic'
8369 case $cc_basename in
8370 f77* | f90* | f95*)
8371 lt_prog_compiler_wl='-Qoption ld ';;
8373 lt_prog_compiler_wl='-Wl,';;
8374 esac
8377 sunos4*)
8378 lt_prog_compiler_wl='-Qoption ld '
8379 lt_prog_compiler_pic='-PIC'
8380 lt_prog_compiler_static='-Bstatic'
8383 sysv4 | sysv4.2uw2* | sysv4.3*)
8384 lt_prog_compiler_wl='-Wl,'
8385 lt_prog_compiler_pic='-KPIC'
8386 lt_prog_compiler_static='-Bstatic'
8389 sysv4*MP*)
8390 if test -d /usr/nec ;then
8391 lt_prog_compiler_pic='-Kconform_pic'
8392 lt_prog_compiler_static='-Bstatic'
8396 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8397 lt_prog_compiler_wl='-Wl,'
8398 lt_prog_compiler_pic='-KPIC'
8399 lt_prog_compiler_static='-Bstatic'
8402 unicos*)
8403 lt_prog_compiler_wl='-Wl,'
8404 lt_prog_compiler_can_build_shared=no
8407 uts4*)
8408 lt_prog_compiler_pic='-pic'
8409 lt_prog_compiler_static='-Bstatic'
8413 lt_prog_compiler_can_build_shared=no
8415 esac
8418 case $host_os in
8419 # For platforms which do not support PIC, -DPIC is meaningless:
8420 *djgpp*)
8421 lt_prog_compiler_pic=
8424 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8426 esac
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8428 $as_echo "$lt_prog_compiler_pic" >&6; }
8436 # Check to make sure the PIC flag actually works.
8438 if test -n "$lt_prog_compiler_pic"; then
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8440 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8441 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8442 $as_echo_n "(cached) " >&6
8443 else
8444 lt_cv_prog_compiler_pic_works=no
8445 ac_outfile=conftest.$ac_objext
8446 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8447 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8448 # Insert the option either (1) after the last *FLAGS variable, or
8449 # (2) before a word containing "conftest.", or (3) at the end.
8450 # Note that $ac_compile itself does not contain backslashes and begins
8451 # with a dollar sign (not a hyphen), so the echo should work correctly.
8452 # The option is referenced via a variable to avoid confusing sed.
8453 lt_compile=`echo "$ac_compile" | $SED \
8454 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8455 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8456 -e 's:$: $lt_compiler_flag:'`
8457 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8458 (eval "$lt_compile" 2>conftest.err)
8459 ac_status=$?
8460 cat conftest.err >&5
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 if (exit $ac_status) && test -s "$ac_outfile"; then
8463 # The compiler can only warn and ignore the option if not recognized
8464 # So say no if there are warnings other than the usual output.
8465 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8466 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8467 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8468 lt_cv_prog_compiler_pic_works=yes
8471 $RM conftest*
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8475 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8477 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8478 case $lt_prog_compiler_pic in
8479 "" | " "*) ;;
8480 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8481 esac
8482 else
8483 lt_prog_compiler_pic=
8484 lt_prog_compiler_can_build_shared=no
8495 # Check to make sure the static flag actually works.
8497 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8499 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8500 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8501 $as_echo_n "(cached) " >&6
8502 else
8503 lt_cv_prog_compiler_static_works=no
8504 save_LDFLAGS="$LDFLAGS"
8505 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8506 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8507 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8508 # The linker can only warn and ignore the option if not recognized
8509 # So say no if there are warnings
8510 if test -s conftest.err; then
8511 # Append any errors to the config.log.
8512 cat conftest.err 1>&5
8513 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8514 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8515 if diff conftest.exp conftest.er2 >/dev/null; then
8516 lt_cv_prog_compiler_static_works=yes
8518 else
8519 lt_cv_prog_compiler_static_works=yes
8522 $RM -r conftest*
8523 LDFLAGS="$save_LDFLAGS"
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8527 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8529 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8531 else
8532 lt_prog_compiler_static=
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8542 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8543 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8544 $as_echo_n "(cached) " >&6
8545 else
8546 lt_cv_prog_compiler_c_o=no
8547 $RM -r conftest 2>/dev/null
8548 mkdir conftest
8549 cd conftest
8550 mkdir out
8551 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8553 lt_compiler_flag="-o out/conftest2.$ac_objext"
8554 # Insert the option either (1) after the last *FLAGS variable, or
8555 # (2) before a word containing "conftest.", or (3) at the end.
8556 # Note that $ac_compile itself does not contain backslashes and begins
8557 # with a dollar sign (not a hyphen), so the echo should work correctly.
8558 lt_compile=`echo "$ac_compile" | $SED \
8559 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8560 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8561 -e 's:$: $lt_compiler_flag:'`
8562 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8563 (eval "$lt_compile" 2>out/conftest.err)
8564 ac_status=$?
8565 cat out/conftest.err >&5
8566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8568 then
8569 # The compiler can only warn and ignore the option if not recognized
8570 # So say no if there are warnings
8571 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8572 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8573 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8574 lt_cv_prog_compiler_c_o=yes
8577 chmod u+w . 2>&5
8578 $RM conftest*
8579 # SGI C++ compiler will create directory out/ii_files/ for
8580 # template instantiation
8581 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8582 $RM out/* && rmdir out
8583 cd ..
8584 $RM -r conftest
8585 $RM conftest*
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8589 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8597 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8598 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8599 $as_echo_n "(cached) " >&6
8600 else
8601 lt_cv_prog_compiler_c_o=no
8602 $RM -r conftest 2>/dev/null
8603 mkdir conftest
8604 cd conftest
8605 mkdir out
8606 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8608 lt_compiler_flag="-o out/conftest2.$ac_objext"
8609 # Insert the option either (1) after the last *FLAGS variable, or
8610 # (2) before a word containing "conftest.", or (3) at the end.
8611 # Note that $ac_compile itself does not contain backslashes and begins
8612 # with a dollar sign (not a hyphen), so the echo should work correctly.
8613 lt_compile=`echo "$ac_compile" | $SED \
8614 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8615 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8616 -e 's:$: $lt_compiler_flag:'`
8617 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8618 (eval "$lt_compile" 2>out/conftest.err)
8619 ac_status=$?
8620 cat out/conftest.err >&5
8621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8623 then
8624 # The compiler can only warn and ignore the option if not recognized
8625 # So say no if there are warnings
8626 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8627 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8628 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8629 lt_cv_prog_compiler_c_o=yes
8632 chmod u+w . 2>&5
8633 $RM conftest*
8634 # SGI C++ compiler will create directory out/ii_files/ for
8635 # template instantiation
8636 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8637 $RM out/* && rmdir out
8638 cd ..
8639 $RM -r conftest
8640 $RM conftest*
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8644 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8649 hard_links="nottested"
8650 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8651 # do not overwrite the value of need_locks provided by the user
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8653 $as_echo_n "checking if we can lock with hard links... " >&6; }
8654 hard_links=yes
8655 $RM conftest*
8656 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8657 touch conftest.a
8658 ln conftest.a conftest.b 2>&5 || hard_links=no
8659 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8661 $as_echo "$hard_links" >&6; }
8662 if test "$hard_links" = no; then
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8664 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8665 need_locks=warn
8667 else
8668 need_locks=no
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8677 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8679 runpath_var=
8680 allow_undefined_flag=
8681 always_export_symbols=no
8682 archive_cmds=
8683 archive_expsym_cmds=
8684 compiler_needs_object=no
8685 enable_shared_with_static_runtimes=no
8686 export_dynamic_flag_spec=
8687 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8688 hardcode_automatic=no
8689 hardcode_direct=no
8690 hardcode_direct_absolute=no
8691 hardcode_libdir_flag_spec=
8692 hardcode_libdir_flag_spec_ld=
8693 hardcode_libdir_separator=
8694 hardcode_minus_L=no
8695 hardcode_shlibpath_var=unsupported
8696 inherit_rpath=no
8697 link_all_deplibs=unknown
8698 module_cmds=
8699 module_expsym_cmds=
8700 old_archive_from_new_cmds=
8701 old_archive_from_expsyms_cmds=
8702 thread_safe_flag_spec=
8703 whole_archive_flag_spec=
8704 # include_expsyms should be a list of space-separated symbols to be *always*
8705 # included in the symbol list
8706 include_expsyms=
8707 # exclude_expsyms can be an extended regexp of symbols to exclude
8708 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8709 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8710 # as well as any symbol that contains `d'.
8711 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8712 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8713 # platforms (ab)use it in PIC code, but their linkers get confused if
8714 # the symbol is explicitly referenced. Since portable code cannot
8715 # rely on this symbol name, it's probably fine to never include it in
8716 # preloaded symbol tables.
8717 # Exclude shared library initialization/finalization symbols.
8718 extract_expsyms_cmds=
8720 case $host_os in
8721 cygwin* | mingw* | pw32* | cegcc*)
8722 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8723 # When not using gcc, we currently assume that we are using
8724 # Microsoft Visual C++.
8725 if test "$GCC" != yes; then
8726 with_gnu_ld=no
8729 interix*)
8730 # we just hope/assume this is gcc and not c89 (= MSVC++)
8731 with_gnu_ld=yes
8733 openbsd*)
8734 with_gnu_ld=no
8736 esac
8738 ld_shlibs=yes
8740 # On some targets, GNU ld is compatible enough with the native linker
8741 # that we're better off using the native interface for both.
8742 lt_use_gnu_ld_interface=no
8743 if test "$with_gnu_ld" = yes; then
8744 case $host_os in
8745 aix*)
8746 # The AIX port of GNU ld has always aspired to compatibility
8747 # with the native linker. However, as the warning in the GNU ld
8748 # block says, versions before 2.19.5* couldn't really create working
8749 # shared libraries, regardless of the interface used.
8750 case `$LD -v 2>&1` in
8751 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8752 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8753 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8755 lt_use_gnu_ld_interface=yes
8757 esac
8760 lt_use_gnu_ld_interface=yes
8762 esac
8765 if test "$lt_use_gnu_ld_interface" = yes; then
8766 # If archive_cmds runs LD, not CC, wlarc should be empty
8767 wlarc='${wl}'
8769 # Set some defaults for GNU ld with shared library support. These
8770 # are reset later if shared libraries are not supported. Putting them
8771 # here allows them to be overridden if necessary.
8772 runpath_var=LD_RUN_PATH
8773 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8774 export_dynamic_flag_spec='${wl}--export-dynamic'
8775 # ancient GNU ld didn't support --whole-archive et. al.
8776 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8777 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8778 else
8779 whole_archive_flag_spec=
8781 supports_anon_versioning=no
8782 case `$LD -v 2>&1` in
8783 *GNU\ gold*) supports_anon_versioning=yes ;;
8784 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8785 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8786 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8787 *\ 2.11.*) ;; # other 2.11 versions
8788 *) supports_anon_versioning=yes ;;
8789 esac
8791 # See if GNU ld supports shared libraries.
8792 case $host_os in
8793 aix[3-9]*)
8794 # On AIX/PPC, the GNU linker is very broken
8795 if test "$host_cpu" != ia64; then
8796 ld_shlibs=no
8797 cat <<_LT_EOF 1>&2
8799 *** Warning: the GNU linker, at least up to release 2.19, is reported
8800 *** to be unable to reliably create shared libraries on AIX.
8801 *** Therefore, libtool is disabling shared libraries support. If you
8802 *** really care for shared libraries, you may want to install binutils
8803 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8804 *** You will then need to restart the configuration process.
8806 _LT_EOF
8810 amigaos*)
8811 case $host_cpu in
8812 powerpc)
8813 # see comment about AmigaOS4 .so support
8814 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8815 archive_expsym_cmds=''
8817 m68k)
8818 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)'
8819 hardcode_libdir_flag_spec='-L$libdir'
8820 hardcode_minus_L=yes
8822 esac
8825 beos*)
8826 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8827 allow_undefined_flag=unsupported
8828 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8829 # support --undefined. This deserves some investigation. FIXME
8830 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8831 else
8832 ld_shlibs=no
8836 cygwin* | mingw* | pw32* | cegcc*)
8837 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8838 # as there is no search path for DLLs.
8839 hardcode_libdir_flag_spec='-L$libdir'
8840 export_dynamic_flag_spec='${wl}--export-all-symbols'
8841 allow_undefined_flag=unsupported
8842 always_export_symbols=no
8843 enable_shared_with_static_runtimes=yes
8844 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8846 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8847 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8848 # If the export-symbols file already is a .def file (1st line
8849 # is EXPORTS), use it as is; otherwise, prepend...
8850 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8851 cp $export_symbols $output_objdir/$soname.def;
8852 else
8853 echo EXPORTS > $output_objdir/$soname.def;
8854 cat $export_symbols >> $output_objdir/$soname.def;
8856 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8857 else
8858 ld_shlibs=no
8862 haiku*)
8863 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8864 link_all_deplibs=yes
8867 interix[3-9]*)
8868 hardcode_direct=no
8869 hardcode_shlibpath_var=no
8870 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8871 export_dynamic_flag_spec='${wl}-E'
8872 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8873 # Instead, shared libraries are loaded at an image base (0x10000000 by
8874 # default) and relocated if they conflict, which is a slow very memory
8875 # consuming and fragmenting process. To avoid this, we pick a random,
8876 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8877 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8878 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8879 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'
8882 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8883 tmp_diet=no
8884 if test "$host_os" = linux-dietlibc; then
8885 case $cc_basename in
8886 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8887 esac
8889 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8890 && test "$tmp_diet" = no
8891 then
8892 tmp_addflag=' $pic_flag'
8893 tmp_sharedflag='-shared'
8894 case $cc_basename,$host_cpu in
8895 pgcc*) # Portland Group C compiler
8896 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'
8897 tmp_addflag=' $pic_flag'
8899 pgf77* | pgf90* | pgf95* | pgfortran*)
8900 # Portland Group f77 and f90 compilers
8901 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'
8902 tmp_addflag=' $pic_flag -Mnomain' ;;
8903 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8904 tmp_addflag=' -i_dynamic' ;;
8905 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8906 tmp_addflag=' -i_dynamic -nofor_main' ;;
8907 ifc* | ifort*) # Intel Fortran compiler
8908 tmp_addflag=' -nofor_main' ;;
8909 lf95*) # Lahey Fortran 8.1
8910 whole_archive_flag_spec=
8911 tmp_sharedflag='--shared' ;;
8912 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8913 tmp_sharedflag='-qmkshrobj'
8914 tmp_addflag= ;;
8915 nvcc*) # Cuda Compiler Driver 2.2
8916 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'
8917 compiler_needs_object=yes
8919 esac
8920 case `$CC -V 2>&1 | sed 5q` in
8921 *Sun\ C*) # Sun C 5.9
8922 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'
8923 compiler_needs_object=yes
8924 tmp_sharedflag='-G' ;;
8925 *Sun\ F*) # Sun Fortran 8.3
8926 tmp_sharedflag='-G' ;;
8927 esac
8928 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8930 if test "x$supports_anon_versioning" = xyes; then
8931 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8932 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8933 echo "local: *; };" >> $output_objdir/$libname.ver~
8934 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8937 case $cc_basename in
8938 xlf* | bgf* | bgxlf* | mpixlf*)
8939 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8940 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8941 hardcode_libdir_flag_spec=
8942 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8943 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8944 if test "x$supports_anon_versioning" = xyes; then
8945 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8946 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8947 echo "local: *; };" >> $output_objdir/$libname.ver~
8948 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8951 esac
8952 else
8953 ld_shlibs=no
8957 netbsd*)
8958 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8959 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8960 wlarc=
8961 else
8962 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8963 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8967 solaris*)
8968 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8969 ld_shlibs=no
8970 cat <<_LT_EOF 1>&2
8972 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8973 *** create shared libraries on Solaris systems. Therefore, libtool
8974 *** is disabling shared libraries support. We urge you to upgrade GNU
8975 *** binutils to release 2.9.1 or newer. Another option is to modify
8976 *** your PATH or compiler configuration so that the native linker is
8977 *** used, and then restart.
8979 _LT_EOF
8980 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8981 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8982 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8983 else
8984 ld_shlibs=no
8988 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8989 case `$LD -v 2>&1` in
8990 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8991 ld_shlibs=no
8992 cat <<_LT_EOF 1>&2
8994 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8995 *** reliably create shared libraries on SCO systems. Therefore, libtool
8996 *** is disabling shared libraries support. We urge you to upgrade GNU
8997 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8998 *** your PATH or compiler configuration so that the native linker is
8999 *** used, and then restart.
9001 _LT_EOF
9004 # For security reasons, it is highly recommended that you always
9005 # use absolute paths for naming shared libraries, and exclude the
9006 # DT_RUNPATH tag from executables and libraries. But doing so
9007 # requires that you compile everything twice, which is a pain.
9008 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9009 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9010 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9011 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9012 else
9013 ld_shlibs=no
9016 esac
9019 sunos4*)
9020 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9021 wlarc=
9022 hardcode_direct=yes
9023 hardcode_shlibpath_var=no
9027 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9028 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9029 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9030 else
9031 ld_shlibs=no
9034 esac
9036 if test "$ld_shlibs" = no; then
9037 runpath_var=
9038 hardcode_libdir_flag_spec=
9039 export_dynamic_flag_spec=
9040 whole_archive_flag_spec=
9042 else
9043 # PORTME fill in a description of your system's linker (not GNU ld)
9044 case $host_os in
9045 aix3*)
9046 allow_undefined_flag=unsupported
9047 always_export_symbols=yes
9048 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'
9049 # Note: this linker hardcodes the directories in LIBPATH if there
9050 # are no directories specified by -L.
9051 hardcode_minus_L=yes
9052 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9053 # Neither direct hardcoding nor static linking is supported with a
9054 # broken collect2.
9055 hardcode_direct=unsupported
9059 aix[4-9]*)
9060 if test "$host_cpu" = ia64; then
9061 # On IA64, the linker does run time linking by default, so we don't
9062 # have to do anything special.
9063 aix_use_runtimelinking=no
9064 exp_sym_flag='-Bexport'
9065 no_entry_flag=""
9066 else
9067 # If we're using GNU nm, then we don't want the "-C" option.
9068 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9069 # Also, AIX nm treats weak defined symbols like other global
9070 # defined symbols, whereas GNU nm marks them as "W".
9071 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9072 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'
9073 else
9074 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9076 aix_use_runtimelinking=no
9078 # Test if we are trying to use run time linking or normal
9079 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9080 # need to do runtime linking.
9081 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9082 for ld_flag in $LDFLAGS; do
9083 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9084 aix_use_runtimelinking=yes
9085 break
9087 done
9089 esac
9091 exp_sym_flag='-bexport'
9092 no_entry_flag='-bnoentry'
9095 # When large executables or shared objects are built, AIX ld can
9096 # have problems creating the table of contents. If linking a library
9097 # or program results in "error TOC overflow" add -mminimal-toc to
9098 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9099 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9101 archive_cmds=''
9102 hardcode_direct=yes
9103 hardcode_direct_absolute=yes
9104 hardcode_libdir_separator=':'
9105 link_all_deplibs=yes
9106 file_list_spec='${wl}-f,'
9108 if test "$GCC" = yes; then
9109 case $host_os in aix4.[012]|aix4.[012].*)
9110 # We only want to do this on AIX 4.2 and lower, the check
9111 # below for broken collect2 doesn't work under 4.3+
9112 collect2name=`${CC} -print-prog-name=collect2`
9113 if test -f "$collect2name" &&
9114 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9115 then
9116 # We have reworked collect2
9118 else
9119 # We have old collect2
9120 hardcode_direct=unsupported
9121 # It fails to find uninstalled libraries when the uninstalled
9122 # path is not listed in the libpath. Setting hardcode_minus_L
9123 # to unsupported forces relinking
9124 hardcode_minus_L=yes
9125 hardcode_libdir_flag_spec='-L$libdir'
9126 hardcode_libdir_separator=
9129 esac
9130 shared_flag='-shared'
9131 if test "$aix_use_runtimelinking" = yes; then
9132 shared_flag="$shared_flag "'${wl}-G'
9134 else
9135 # not using gcc
9136 if test "$host_cpu" = ia64; then
9137 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9138 # chokes on -Wl,-G. The following line is correct:
9139 shared_flag='-G'
9140 else
9141 if test "$aix_use_runtimelinking" = yes; then
9142 shared_flag='${wl}-G'
9143 else
9144 shared_flag='${wl}-bM:SRE'
9149 export_dynamic_flag_spec='${wl}-bexpall'
9150 # It seems that -bexpall does not export symbols beginning with
9151 # underscore (_), so it is better to generate a list of symbols to export.
9152 always_export_symbols=yes
9153 if test "$aix_use_runtimelinking" = yes; then
9154 # Warning - without using the other runtime loading flags (-brtl),
9155 # -berok will link without error, but may produce a broken library.
9156 allow_undefined_flag='-berok'
9157 # Determine the default libpath from the value encoded in an
9158 # empty executable.
9159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9160 /* end confdefs.h. */
9163 main ()
9167 return 0;
9169 _ACEOF
9170 if ac_fn_c_try_link "$LINENO"; then :
9172 lt_aix_libpath_sed='
9173 /Import File Strings/,/^$/ {
9174 /^0/ {
9175 s/^0 *\(.*\)$/\1/
9179 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9180 # Check for a 64-bit object if we didn't find anything.
9181 if test -z "$aix_libpath"; then
9182 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9185 rm -f core conftest.err conftest.$ac_objext \
9186 conftest$ac_exeext conftest.$ac_ext
9187 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9189 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9190 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"
9191 else
9192 if test "$host_cpu" = ia64; then
9193 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9194 allow_undefined_flag="-z nodefs"
9195 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"
9196 else
9197 # Determine the default libpath from the value encoded in an
9198 # empty executable.
9199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9200 /* end confdefs.h. */
9203 main ()
9207 return 0;
9209 _ACEOF
9210 if ac_fn_c_try_link "$LINENO"; then :
9212 lt_aix_libpath_sed='
9213 /Import File Strings/,/^$/ {
9214 /^0/ {
9215 s/^0 *\(.*\)$/\1/
9219 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9220 # Check for a 64-bit object if we didn't find anything.
9221 if test -z "$aix_libpath"; then
9222 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9225 rm -f core conftest.err conftest.$ac_objext \
9226 conftest$ac_exeext conftest.$ac_ext
9227 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9229 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9230 # Warning - without using the other run time loading flags,
9231 # -berok will link without error, but may produce a broken library.
9232 no_undefined_flag=' ${wl}-bernotok'
9233 allow_undefined_flag=' ${wl}-berok'
9234 if test "$with_gnu_ld" = yes; then
9235 # We only use this code for GNU lds that support --whole-archive.
9236 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9237 else
9238 # Exported symbols can be pulled into shared objects from archives
9239 whole_archive_flag_spec='$convenience'
9241 archive_cmds_need_lc=yes
9242 # This is similar to how AIX traditionally builds its shared libraries.
9243 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'
9248 amigaos*)
9249 case $host_cpu in
9250 powerpc)
9251 # see comment about AmigaOS4 .so support
9252 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9253 archive_expsym_cmds=''
9255 m68k)
9256 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)'
9257 hardcode_libdir_flag_spec='-L$libdir'
9258 hardcode_minus_L=yes
9260 esac
9263 bsdi[45]*)
9264 export_dynamic_flag_spec=-rdynamic
9267 cygwin* | mingw* | pw32* | cegcc*)
9268 # When not using gcc, we currently assume that we are using
9269 # Microsoft Visual C++.
9270 # hardcode_libdir_flag_spec is actually meaningless, as there is
9271 # no search path for DLLs.
9272 hardcode_libdir_flag_spec=' '
9273 allow_undefined_flag=unsupported
9274 # Tell ltmain to make .lib files, not .a files.
9275 libext=lib
9276 # Tell ltmain to make .dll files, not .so files.
9277 shrext_cmds=".dll"
9278 # FIXME: Setting linknames here is a bad hack.
9279 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9280 # The linker will automatically build a .lib file if we build a DLL.
9281 old_archive_from_new_cmds='true'
9282 # FIXME: Should let the user specify the lib program.
9283 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9284 fix_srcfile_path='`cygpath -w "$srcfile"`'
9285 enable_shared_with_static_runtimes=yes
9288 darwin* | rhapsody*)
9291 archive_cmds_need_lc=no
9292 hardcode_direct=no
9293 hardcode_automatic=yes
9294 hardcode_shlibpath_var=unsupported
9295 if test "$lt_cv_ld_force_load" = "yes"; then
9296 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\"`'
9297 else
9298 whole_archive_flag_spec=''
9300 link_all_deplibs=yes
9301 allow_undefined_flag="$_lt_dar_allow_undefined"
9302 case $cc_basename in
9303 ifort*) _lt_dar_can_shared=yes ;;
9304 *) _lt_dar_can_shared=$GCC ;;
9305 esac
9306 if test "$_lt_dar_can_shared" = "yes"; then
9307 output_verbose_link_cmd=func_echo_all
9308 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9309 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9310 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}"
9311 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}"
9313 else
9314 ld_shlibs=no
9319 dgux*)
9320 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9321 hardcode_libdir_flag_spec='-L$libdir'
9322 hardcode_shlibpath_var=no
9325 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9326 # support. Future versions do this automatically, but an explicit c++rt0.o
9327 # does not break anything, and helps significantly (at the cost of a little
9328 # extra space).
9329 freebsd2.2*)
9330 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9331 hardcode_libdir_flag_spec='-R$libdir'
9332 hardcode_direct=yes
9333 hardcode_shlibpath_var=no
9336 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9337 freebsd2.*)
9338 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9339 hardcode_direct=yes
9340 hardcode_minus_L=yes
9341 hardcode_shlibpath_var=no
9344 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9345 freebsd* | dragonfly*)
9346 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9347 hardcode_libdir_flag_spec='-R$libdir'
9348 hardcode_direct=yes
9349 hardcode_shlibpath_var=no
9352 hpux9*)
9353 if test "$GCC" = yes; then
9354 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'
9355 else
9356 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'
9358 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9359 hardcode_libdir_separator=:
9360 hardcode_direct=yes
9362 # hardcode_minus_L: Not really in the search PATH,
9363 # but as the default location of the library.
9364 hardcode_minus_L=yes
9365 export_dynamic_flag_spec='${wl}-E'
9368 hpux10*)
9369 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9370 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9371 else
9372 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9374 if test "$with_gnu_ld" = no; then
9375 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9376 hardcode_libdir_flag_spec_ld='+b $libdir'
9377 hardcode_libdir_separator=:
9378 hardcode_direct=yes
9379 hardcode_direct_absolute=yes
9380 export_dynamic_flag_spec='${wl}-E'
9381 # hardcode_minus_L: Not really in the search PATH,
9382 # but as the default location of the library.
9383 hardcode_minus_L=yes
9387 hpux11*)
9388 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9389 case $host_cpu in
9390 hppa*64*)
9391 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9393 ia64*)
9394 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9397 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9399 esac
9400 else
9401 case $host_cpu in
9402 hppa*64*)
9403 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9405 ia64*)
9406 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9410 # Older versions of the 11.00 compiler do not understand -b yet
9411 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9413 $as_echo_n "checking if $CC understands -b... " >&6; }
9414 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9415 $as_echo_n "(cached) " >&6
9416 else
9417 lt_cv_prog_compiler__b=no
9418 save_LDFLAGS="$LDFLAGS"
9419 LDFLAGS="$LDFLAGS -b"
9420 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9421 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9422 # The linker can only warn and ignore the option if not recognized
9423 # So say no if there are warnings
9424 if test -s conftest.err; then
9425 # Append any errors to the config.log.
9426 cat conftest.err 1>&5
9427 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9428 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9429 if diff conftest.exp conftest.er2 >/dev/null; then
9430 lt_cv_prog_compiler__b=yes
9432 else
9433 lt_cv_prog_compiler__b=yes
9436 $RM -r conftest*
9437 LDFLAGS="$save_LDFLAGS"
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9441 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9443 if test x"$lt_cv_prog_compiler__b" = xyes; then
9444 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9445 else
9446 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9450 esac
9452 if test "$with_gnu_ld" = no; then
9453 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9454 hardcode_libdir_separator=:
9456 case $host_cpu in
9457 hppa*64*|ia64*)
9458 hardcode_direct=no
9459 hardcode_shlibpath_var=no
9462 hardcode_direct=yes
9463 hardcode_direct_absolute=yes
9464 export_dynamic_flag_spec='${wl}-E'
9466 # hardcode_minus_L: Not really in the search PATH,
9467 # but as the default location of the library.
9468 hardcode_minus_L=yes
9470 esac
9474 irix5* | irix6* | nonstopux*)
9475 if test "$GCC" = yes; then
9476 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'
9477 # Try to use the -exported_symbol ld option, if it does not
9478 # work, assume that -exports_file does not work either and
9479 # implicitly export all symbols.
9480 save_LDFLAGS="$LDFLAGS"
9481 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9483 /* end confdefs.h. */
9484 int foo(void) {}
9485 _ACEOF
9486 if ac_fn_c_try_link "$LINENO"; then :
9487 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'
9490 rm -f core conftest.err conftest.$ac_objext \
9491 conftest$ac_exeext conftest.$ac_ext
9492 LDFLAGS="$save_LDFLAGS"
9493 else
9494 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'
9495 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'
9497 archive_cmds_need_lc='no'
9498 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9499 hardcode_libdir_separator=:
9500 inherit_rpath=yes
9501 link_all_deplibs=yes
9504 netbsd*)
9505 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9506 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9507 else
9508 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9510 hardcode_libdir_flag_spec='-R$libdir'
9511 hardcode_direct=yes
9512 hardcode_shlibpath_var=no
9515 newsos6)
9516 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9517 hardcode_direct=yes
9518 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9519 hardcode_libdir_separator=:
9520 hardcode_shlibpath_var=no
9523 *nto* | *qnx*)
9526 openbsd*)
9527 if test -f /usr/libexec/ld.so; then
9528 hardcode_direct=yes
9529 hardcode_shlibpath_var=no
9530 hardcode_direct_absolute=yes
9531 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9532 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9533 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9534 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9535 export_dynamic_flag_spec='${wl}-E'
9536 else
9537 case $host_os in
9538 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9539 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9540 hardcode_libdir_flag_spec='-R$libdir'
9543 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9544 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9546 esac
9548 else
9549 ld_shlibs=no
9553 os2*)
9554 hardcode_libdir_flag_spec='-L$libdir'
9555 hardcode_minus_L=yes
9556 allow_undefined_flag=unsupported
9557 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'
9558 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9561 osf3*)
9562 if test "$GCC" = yes; then
9563 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9564 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'
9565 else
9566 allow_undefined_flag=' -expect_unresolved \*'
9567 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'
9569 archive_cmds_need_lc='no'
9570 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9571 hardcode_libdir_separator=:
9574 osf4* | osf5*) # as osf3* with the addition of -msym flag
9575 if test "$GCC" = yes; then
9576 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9577 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'
9578 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9579 else
9580 allow_undefined_flag=' -expect_unresolved \*'
9581 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'
9582 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~
9583 $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'
9585 # Both c and cxx compiler support -rpath directly
9586 hardcode_libdir_flag_spec='-rpath $libdir'
9588 archive_cmds_need_lc='no'
9589 hardcode_libdir_separator=:
9592 solaris*)
9593 no_undefined_flag=' -z defs'
9594 if test "$GCC" = yes; then
9595 wlarc='${wl}'
9596 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9597 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9598 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9599 else
9600 case `$CC -V 2>&1` in
9601 *"Compilers 5.0"*)
9602 wlarc=''
9603 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9604 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9605 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9608 wlarc='${wl}'
9609 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9610 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9611 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9613 esac
9615 hardcode_libdir_flag_spec='-R$libdir'
9616 hardcode_shlibpath_var=no
9617 case $host_os in
9618 solaris2.[0-5] | solaris2.[0-5].*) ;;
9620 # The compiler driver will combine and reorder linker options,
9621 # but understands `-z linker_flag'. GCC discards it without `$wl',
9622 # but is careful enough not to reorder.
9623 # Supported since Solaris 2.6 (maybe 2.5.1?)
9624 if test "$GCC" = yes; then
9625 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9626 else
9627 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9630 esac
9631 link_all_deplibs=yes
9634 sunos4*)
9635 if test "x$host_vendor" = xsequent; then
9636 # Use $CC to link under sequent, because it throws in some extra .o
9637 # files that make .init and .fini sections work.
9638 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9639 else
9640 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9642 hardcode_libdir_flag_spec='-L$libdir'
9643 hardcode_direct=yes
9644 hardcode_minus_L=yes
9645 hardcode_shlibpath_var=no
9648 sysv4)
9649 case $host_vendor in
9650 sni)
9651 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9652 hardcode_direct=yes # is this really true???
9654 siemens)
9655 ## LD is ld it makes a PLAMLIB
9656 ## CC just makes a GrossModule.
9657 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9658 reload_cmds='$CC -r -o $output$reload_objs'
9659 hardcode_direct=no
9661 motorola)
9662 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9663 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9665 esac
9666 runpath_var='LD_RUN_PATH'
9667 hardcode_shlibpath_var=no
9670 sysv4.3*)
9671 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9672 hardcode_shlibpath_var=no
9673 export_dynamic_flag_spec='-Bexport'
9676 sysv4*MP*)
9677 if test -d /usr/nec; then
9678 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9679 hardcode_shlibpath_var=no
9680 runpath_var=LD_RUN_PATH
9681 hardcode_runpath_var=yes
9682 ld_shlibs=yes
9686 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9687 no_undefined_flag='${wl}-z,text'
9688 archive_cmds_need_lc=no
9689 hardcode_shlibpath_var=no
9690 runpath_var='LD_RUN_PATH'
9692 if test "$GCC" = yes; then
9693 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9694 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9695 else
9696 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9697 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9701 sysv5* | sco3.2v5* | sco5v6*)
9702 # Note: We can NOT use -z defs as we might desire, because we do not
9703 # link with -lc, and that would cause any symbols used from libc to
9704 # always be unresolved, which means just about no library would
9705 # ever link correctly. If we're not using GNU ld we use -z text
9706 # though, which does catch some bad symbols but isn't as heavy-handed
9707 # as -z defs.
9708 no_undefined_flag='${wl}-z,text'
9709 allow_undefined_flag='${wl}-z,nodefs'
9710 archive_cmds_need_lc=no
9711 hardcode_shlibpath_var=no
9712 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9713 hardcode_libdir_separator=':'
9714 link_all_deplibs=yes
9715 export_dynamic_flag_spec='${wl}-Bexport'
9716 runpath_var='LD_RUN_PATH'
9718 if test "$GCC" = yes; then
9719 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9720 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9721 else
9722 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9723 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9727 uts4*)
9728 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9729 hardcode_libdir_flag_spec='-L$libdir'
9730 hardcode_shlibpath_var=no
9734 ld_shlibs=no
9736 esac
9738 if test x$host_vendor = xsni; then
9739 case $host in
9740 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9741 export_dynamic_flag_spec='${wl}-Blargedynsym'
9743 esac
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9748 $as_echo "$ld_shlibs" >&6; }
9749 test "$ld_shlibs" = no && can_build_shared=no
9751 with_gnu_ld=$with_gnu_ld
9768 # Do we need to explicitly link libc?
9770 case "x$archive_cmds_need_lc" in
9771 x|xyes)
9772 # Assume -lc should be added
9773 archive_cmds_need_lc=yes
9775 if test "$enable_shared" = yes && test "$GCC" = yes; then
9776 case $archive_cmds in
9777 *'~'*)
9778 # FIXME: we may have to deal with multi-command sequences.
9780 '$CC '*)
9781 # Test whether the compiler implicitly links with -lc since on some
9782 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9783 # to ld, don't add -lc before -lgcc.
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9785 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9786 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9787 $as_echo_n "(cached) " >&6
9788 else
9789 $RM conftest*
9790 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9792 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9793 (eval $ac_compile) 2>&5
9794 ac_status=$?
9795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9796 test $ac_status = 0; } 2>conftest.err; then
9797 soname=conftest
9798 lib=conftest
9799 libobjs=conftest.$ac_objext
9800 deplibs=
9801 wl=$lt_prog_compiler_wl
9802 pic_flag=$lt_prog_compiler_pic
9803 compiler_flags=-v
9804 linker_flags=-v
9805 verstring=
9806 output_objdir=.
9807 libname=conftest
9808 lt_save_allow_undefined_flag=$allow_undefined_flag
9809 allow_undefined_flag=
9810 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9811 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9812 ac_status=$?
9813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9814 test $ac_status = 0; }
9815 then
9816 lt_cv_archive_cmds_need_lc=no
9817 else
9818 lt_cv_archive_cmds_need_lc=yes
9820 allow_undefined_flag=$lt_save_allow_undefined_flag
9821 else
9822 cat conftest.err 1>&5
9824 $RM conftest*
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9828 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9829 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9831 esac
9834 esac
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9993 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9995 if test "$GCC" = yes; then
9996 case $host_os in
9997 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9998 *) lt_awk_arg="/^libraries:/" ;;
9999 esac
10000 case $host_os in
10001 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10002 *) lt_sed_strip_eq="s,=/,/,g" ;;
10003 esac
10004 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10005 case $lt_search_path_spec in
10006 *\;*)
10007 # if the path contains ";" then we assume it to be the separator
10008 # otherwise default to the standard path separator (i.e. ":") - it is
10009 # assumed that no part of a normal pathname contains ";" but that should
10010 # okay in the real world where ";" in dirpaths is itself problematic.
10011 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10014 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10016 esac
10017 # Ok, now we have the path, separated by spaces, we can step through it
10018 # and add multilib dir if necessary.
10019 lt_tmp_lt_search_path_spec=
10020 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10021 for lt_sys_path in $lt_search_path_spec; do
10022 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10023 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10024 else
10025 test -d "$lt_sys_path" && \
10026 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10028 done
10029 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10030 BEGIN {RS=" "; FS="/|\n";} {
10031 lt_foo="";
10032 lt_count=0;
10033 for (lt_i = NF; lt_i > 0; lt_i--) {
10034 if ($lt_i != "" && $lt_i != ".") {
10035 if ($lt_i == "..") {
10036 lt_count++;
10037 } else {
10038 if (lt_count == 0) {
10039 lt_foo="/" $lt_i lt_foo;
10040 } else {
10041 lt_count--;
10046 if (lt_foo != "") { lt_freq[lt_foo]++; }
10047 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10049 # AWK program above erroneously prepends '/' to C:/dos/paths
10050 # for these hosts.
10051 case $host_os in
10052 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10053 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10054 esac
10055 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10056 else
10057 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10059 library_names_spec=
10060 libname_spec='lib$name'
10061 soname_spec=
10062 shrext_cmds=".so"
10063 postinstall_cmds=
10064 postuninstall_cmds=
10065 finish_cmds=
10066 finish_eval=
10067 shlibpath_var=
10068 shlibpath_overrides_runpath=unknown
10069 version_type=none
10070 dynamic_linker="$host_os ld.so"
10071 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10072 need_lib_prefix=unknown
10073 hardcode_into_libs=no
10075 # when you set need_version to no, make sure it does not cause -set_version
10076 # flags to be left without arguments
10077 need_version=unknown
10079 case $host_os in
10080 aix3*)
10081 version_type=linux
10082 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10083 shlibpath_var=LIBPATH
10085 # AIX 3 has no versioning support, so we append a major version to the name.
10086 soname_spec='${libname}${release}${shared_ext}$major'
10089 aix[4-9]*)
10090 version_type=linux
10091 need_lib_prefix=no
10092 need_version=no
10093 hardcode_into_libs=yes
10094 if test "$host_cpu" = ia64; then
10095 # AIX 5 supports IA64
10096 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10097 shlibpath_var=LD_LIBRARY_PATH
10098 else
10099 # With GCC up to 2.95.x, collect2 would create an import file
10100 # for dependence libraries. The import file would start with
10101 # the line `#! .'. This would cause the generated library to
10102 # depend on `.', always an invalid library. This was fixed in
10103 # development snapshots of GCC prior to 3.0.
10104 case $host_os in
10105 aix4 | aix4.[01] | aix4.[01].*)
10106 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10107 echo ' yes '
10108 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10110 else
10111 can_build_shared=no
10114 esac
10115 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10116 # soname into executable. Probably we can add versioning support to
10117 # collect2, so additional links can be useful in future.
10118 if test "$aix_use_runtimelinking" = yes; then
10119 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10120 # instead of lib<name>.a to let people know that these are not
10121 # typical AIX shared libraries.
10122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10123 else
10124 # We preserve .a as extension for shared libraries through AIX4.2
10125 # and later when we are not doing run time linking.
10126 library_names_spec='${libname}${release}.a $libname.a'
10127 soname_spec='${libname}${release}${shared_ext}$major'
10129 shlibpath_var=LIBPATH
10133 amigaos*)
10134 case $host_cpu in
10135 powerpc)
10136 # Since July 2007 AmigaOS4 officially supports .so libraries.
10137 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10140 m68k)
10141 library_names_spec='$libname.ixlibrary $libname.a'
10142 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10143 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'
10145 esac
10148 beos*)
10149 library_names_spec='${libname}${shared_ext}'
10150 dynamic_linker="$host_os ld.so"
10151 shlibpath_var=LIBRARY_PATH
10154 bsdi[45]*)
10155 version_type=linux
10156 need_version=no
10157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10158 soname_spec='${libname}${release}${shared_ext}$major'
10159 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10160 shlibpath_var=LD_LIBRARY_PATH
10161 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10162 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10163 # the default ld.so.conf also contains /usr/contrib/lib and
10164 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10165 # libtool to hard-code these into programs
10168 cygwin* | mingw* | pw32* | cegcc*)
10169 version_type=windows
10170 shrext_cmds=".dll"
10171 need_version=no
10172 need_lib_prefix=no
10174 case $GCC,$host_os in
10175 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10176 library_names_spec='$libname.dll.a'
10177 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10178 postinstall_cmds='base_file=`basename \${file}`~
10179 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10180 dldir=$destdir/`dirname \$dlpath`~
10181 test -d \$dldir || mkdir -p \$dldir~
10182 $install_prog $dir/$dlname \$dldir/$dlname~
10183 chmod a+x \$dldir/$dlname~
10184 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10185 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10187 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10188 dlpath=$dir/\$dldll~
10189 $RM \$dlpath'
10190 shlibpath_overrides_runpath=yes
10192 case $host_os in
10193 cygwin*)
10194 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10195 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10197 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10199 mingw* | cegcc*)
10200 # MinGW DLLs use traditional 'lib' prefix
10201 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10203 pw32*)
10204 # pw32 DLLs use 'pw' prefix rather than 'lib'
10205 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10207 esac
10211 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10213 esac
10214 dynamic_linker='Win32 ld.exe'
10215 # FIXME: first we should search . and the directory the executable is in
10216 shlibpath_var=PATH
10219 darwin* | rhapsody*)
10220 dynamic_linker="$host_os dyld"
10221 version_type=darwin
10222 need_lib_prefix=no
10223 need_version=no
10224 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10225 soname_spec='${libname}${release}${major}$shared_ext'
10226 shlibpath_overrides_runpath=yes
10227 shlibpath_var=DYLD_LIBRARY_PATH
10228 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10230 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10231 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10234 dgux*)
10235 version_type=linux
10236 need_lib_prefix=no
10237 need_version=no
10238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10239 soname_spec='${libname}${release}${shared_ext}$major'
10240 shlibpath_var=LD_LIBRARY_PATH
10243 freebsd* | dragonfly*)
10244 # DragonFly does not have aout. When/if they implement a new
10245 # versioning mechanism, adjust this.
10246 if test -x /usr/bin/objformat; then
10247 objformat=`/usr/bin/objformat`
10248 else
10249 case $host_os in
10250 freebsd[23].*) objformat=aout ;;
10251 *) objformat=elf ;;
10252 esac
10254 version_type=freebsd-$objformat
10255 case $version_type in
10256 freebsd-elf*)
10257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10258 need_version=no
10259 need_lib_prefix=no
10261 freebsd-*)
10262 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10263 need_version=yes
10265 esac
10266 shlibpath_var=LD_LIBRARY_PATH
10267 case $host_os in
10268 freebsd2.*)
10269 shlibpath_overrides_runpath=yes
10271 freebsd3.[01]* | freebsdelf3.[01]*)
10272 shlibpath_overrides_runpath=yes
10273 hardcode_into_libs=yes
10275 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10276 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10277 shlibpath_overrides_runpath=no
10278 hardcode_into_libs=yes
10280 *) # from 4.6 on, and DragonFly
10281 shlibpath_overrides_runpath=yes
10282 hardcode_into_libs=yes
10284 esac
10287 gnu*)
10288 version_type=linux
10289 need_lib_prefix=no
10290 need_version=no
10291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10292 soname_spec='${libname}${release}${shared_ext}$major'
10293 shlibpath_var=LD_LIBRARY_PATH
10294 hardcode_into_libs=yes
10297 haiku*)
10298 version_type=linux
10299 need_lib_prefix=no
10300 need_version=no
10301 dynamic_linker="$host_os runtime_loader"
10302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10303 soname_spec='${libname}${release}${shared_ext}$major'
10304 shlibpath_var=LIBRARY_PATH
10305 shlibpath_overrides_runpath=yes
10306 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10307 hardcode_into_libs=yes
10310 hpux9* | hpux10* | hpux11*)
10311 # Give a soname corresponding to the major version so that dld.sl refuses to
10312 # link against other versions.
10313 version_type=sunos
10314 need_lib_prefix=no
10315 need_version=no
10316 case $host_cpu in
10317 ia64*)
10318 shrext_cmds='.so'
10319 hardcode_into_libs=yes
10320 dynamic_linker="$host_os dld.so"
10321 shlibpath_var=LD_LIBRARY_PATH
10322 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10324 soname_spec='${libname}${release}${shared_ext}$major'
10325 if test "X$HPUX_IA64_MODE" = X32; then
10326 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10327 else
10328 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10330 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10332 hppa*64*)
10333 shrext_cmds='.sl'
10334 hardcode_into_libs=yes
10335 dynamic_linker="$host_os dld.sl"
10336 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10337 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10339 soname_spec='${libname}${release}${shared_ext}$major'
10340 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10341 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10344 shrext_cmds='.sl'
10345 dynamic_linker="$host_os dld.sl"
10346 shlibpath_var=SHLIB_PATH
10347 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10349 soname_spec='${libname}${release}${shared_ext}$major'
10351 esac
10352 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10353 postinstall_cmds='chmod 555 $lib'
10354 # or fails outright, so override atomically:
10355 install_override_mode=555
10358 interix[3-9]*)
10359 version_type=linux
10360 need_lib_prefix=no
10361 need_version=no
10362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10363 soname_spec='${libname}${release}${shared_ext}$major'
10364 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10365 shlibpath_var=LD_LIBRARY_PATH
10366 shlibpath_overrides_runpath=no
10367 hardcode_into_libs=yes
10370 irix5* | irix6* | nonstopux*)
10371 case $host_os in
10372 nonstopux*) version_type=nonstopux ;;
10374 if test "$lt_cv_prog_gnu_ld" = yes; then
10375 version_type=linux
10376 else
10377 version_type=irix
10378 fi ;;
10379 esac
10380 need_lib_prefix=no
10381 need_version=no
10382 soname_spec='${libname}${release}${shared_ext}$major'
10383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10384 case $host_os in
10385 irix5* | nonstopux*)
10386 libsuff= shlibsuff=
10389 case $LD in # libtool.m4 will add one of these switches to LD
10390 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10391 libsuff= shlibsuff= libmagic=32-bit;;
10392 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10393 libsuff=32 shlibsuff=N32 libmagic=N32;;
10394 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10395 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10396 *) libsuff= shlibsuff= libmagic=never-match;;
10397 esac
10399 esac
10400 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10401 shlibpath_overrides_runpath=no
10402 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10403 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10404 hardcode_into_libs=yes
10407 # No shared lib support for Linux oldld, aout, or coff.
10408 linux*oldld* | linux*aout* | linux*coff*)
10409 dynamic_linker=no
10412 # This must be Linux ELF.
10413 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10414 version_type=linux
10415 need_lib_prefix=no
10416 need_version=no
10417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10418 soname_spec='${libname}${release}${shared_ext}$major'
10419 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10420 shlibpath_var=LD_LIBRARY_PATH
10421 shlibpath_overrides_runpath=no
10423 # Some binutils ld are patched to set DT_RUNPATH
10424 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10425 $as_echo_n "(cached) " >&6
10426 else
10427 lt_cv_shlibpath_overrides_runpath=no
10428 save_LDFLAGS=$LDFLAGS
10429 save_libdir=$libdir
10430 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10431 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10433 /* end confdefs.h. */
10436 main ()
10440 return 0;
10442 _ACEOF
10443 if ac_fn_c_try_link "$LINENO"; then :
10444 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10445 lt_cv_shlibpath_overrides_runpath=yes
10448 rm -f core conftest.err conftest.$ac_objext \
10449 conftest$ac_exeext conftest.$ac_ext
10450 LDFLAGS=$save_LDFLAGS
10451 libdir=$save_libdir
10455 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10457 # This implies no fast_install, which is unacceptable.
10458 # Some rework will be needed to allow for fast_install
10459 # before this can be enabled.
10460 hardcode_into_libs=yes
10462 # Append ld.so.conf contents to the search path
10463 if test -f /etc/ld.so.conf; then
10464 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' ' '`
10465 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10468 # We used to test for /lib/ld.so.1 and disable shared libraries on
10469 # powerpc, because MkLinux only supported shared libraries with the
10470 # GNU dynamic linker. Since this was broken with cross compilers,
10471 # most powerpc-linux boxes support dynamic linking these days and
10472 # people can always --disable-shared, the test was removed, and we
10473 # assume the GNU/Linux dynamic linker is in use.
10474 dynamic_linker='GNU/Linux ld.so'
10477 netbsd*)
10478 version_type=sunos
10479 need_lib_prefix=no
10480 need_version=no
10481 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10483 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10484 dynamic_linker='NetBSD (a.out) ld.so'
10485 else
10486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10487 soname_spec='${libname}${release}${shared_ext}$major'
10488 dynamic_linker='NetBSD ld.elf_so'
10490 shlibpath_var=LD_LIBRARY_PATH
10491 shlibpath_overrides_runpath=yes
10492 hardcode_into_libs=yes
10495 newsos6)
10496 version_type=linux
10497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10498 shlibpath_var=LD_LIBRARY_PATH
10499 shlibpath_overrides_runpath=yes
10502 *nto* | *qnx*)
10503 version_type=qnx
10504 need_lib_prefix=no
10505 need_version=no
10506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10507 soname_spec='${libname}${release}${shared_ext}$major'
10508 shlibpath_var=LD_LIBRARY_PATH
10509 shlibpath_overrides_runpath=no
10510 hardcode_into_libs=yes
10511 dynamic_linker='ldqnx.so'
10514 openbsd*)
10515 version_type=sunos
10516 sys_lib_dlsearch_path_spec="/usr/lib"
10517 need_lib_prefix=no
10518 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10519 case $host_os in
10520 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10521 *) need_version=no ;;
10522 esac
10523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10524 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10525 shlibpath_var=LD_LIBRARY_PATH
10526 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10527 case $host_os in
10528 openbsd2.[89] | openbsd2.[89].*)
10529 shlibpath_overrides_runpath=no
10532 shlibpath_overrides_runpath=yes
10534 esac
10535 else
10536 shlibpath_overrides_runpath=yes
10540 os2*)
10541 libname_spec='$name'
10542 shrext_cmds=".dll"
10543 need_lib_prefix=no
10544 library_names_spec='$libname${shared_ext} $libname.a'
10545 dynamic_linker='OS/2 ld.exe'
10546 shlibpath_var=LIBPATH
10549 osf3* | osf4* | osf5*)
10550 version_type=osf
10551 need_lib_prefix=no
10552 need_version=no
10553 soname_spec='${libname}${release}${shared_ext}$major'
10554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10555 shlibpath_var=LD_LIBRARY_PATH
10556 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10557 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10560 rdos*)
10561 dynamic_linker=no
10564 solaris*)
10565 version_type=linux
10566 need_lib_prefix=no
10567 need_version=no
10568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10569 soname_spec='${libname}${release}${shared_ext}$major'
10570 shlibpath_var=LD_LIBRARY_PATH
10571 shlibpath_overrides_runpath=yes
10572 hardcode_into_libs=yes
10573 # ldd complains unless libraries are executable
10574 postinstall_cmds='chmod +x $lib'
10577 sunos4*)
10578 version_type=sunos
10579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10580 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10581 shlibpath_var=LD_LIBRARY_PATH
10582 shlibpath_overrides_runpath=yes
10583 if test "$with_gnu_ld" = yes; then
10584 need_lib_prefix=no
10586 need_version=yes
10589 sysv4 | sysv4.3*)
10590 version_type=linux
10591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10592 soname_spec='${libname}${release}${shared_ext}$major'
10593 shlibpath_var=LD_LIBRARY_PATH
10594 case $host_vendor in
10595 sni)
10596 shlibpath_overrides_runpath=no
10597 need_lib_prefix=no
10598 runpath_var=LD_RUN_PATH
10600 siemens)
10601 need_lib_prefix=no
10603 motorola)
10604 need_lib_prefix=no
10605 need_version=no
10606 shlibpath_overrides_runpath=no
10607 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10609 esac
10612 sysv4*MP*)
10613 if test -d /usr/nec ;then
10614 version_type=linux
10615 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10616 soname_spec='$libname${shared_ext}.$major'
10617 shlibpath_var=LD_LIBRARY_PATH
10621 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10622 version_type=freebsd-elf
10623 need_lib_prefix=no
10624 need_version=no
10625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10626 soname_spec='${libname}${release}${shared_ext}$major'
10627 shlibpath_var=LD_LIBRARY_PATH
10628 shlibpath_overrides_runpath=yes
10629 hardcode_into_libs=yes
10630 if test "$with_gnu_ld" = yes; then
10631 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10632 else
10633 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10634 case $host_os in
10635 sco3.2v5*)
10636 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10638 esac
10640 sys_lib_dlsearch_path_spec='/usr/lib'
10643 tpf*)
10644 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10645 version_type=linux
10646 need_lib_prefix=no
10647 need_version=no
10648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10649 shlibpath_var=LD_LIBRARY_PATH
10650 shlibpath_overrides_runpath=no
10651 hardcode_into_libs=yes
10654 uts4*)
10655 version_type=linux
10656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10657 soname_spec='${libname}${release}${shared_ext}$major'
10658 shlibpath_var=LD_LIBRARY_PATH
10662 dynamic_linker=no
10664 esac
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10666 $as_echo "$dynamic_linker" >&6; }
10667 test "$dynamic_linker" = no && can_build_shared=no
10669 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10670 if test "$GCC" = yes; then
10671 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10674 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10675 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10677 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10678 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10773 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10774 hardcode_action=
10775 if test -n "$hardcode_libdir_flag_spec" ||
10776 test -n "$runpath_var" ||
10777 test "X$hardcode_automatic" = "Xyes" ; then
10779 # We can hardcode non-existent directories.
10780 if test "$hardcode_direct" != no &&
10781 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10782 # have to relink, otherwise we might link with an installed library
10783 # when we should be linking with a yet-to-be-installed one
10784 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10785 test "$hardcode_minus_L" != no; then
10786 # Linking always hardcodes the temporary library directory.
10787 hardcode_action=relink
10788 else
10789 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10790 hardcode_action=immediate
10792 else
10793 # We cannot hardcode anything, or else we can only hardcode existing
10794 # directories.
10795 hardcode_action=unsupported
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10798 $as_echo "$hardcode_action" >&6; }
10800 if test "$hardcode_action" = relink ||
10801 test "$inherit_rpath" = yes; then
10802 # Fast installation is not supported
10803 enable_fast_install=no
10804 elif test "$shlibpath_overrides_runpath" = yes ||
10805 test "$enable_shared" = no; then
10806 # Fast installation is not necessary
10807 enable_fast_install=needless
10815 if test "x$enable_dlopen" != xyes; then
10816 enable_dlopen=unknown
10817 enable_dlopen_self=unknown
10818 enable_dlopen_self_static=unknown
10819 else
10820 lt_cv_dlopen=no
10821 lt_cv_dlopen_libs=
10823 case $host_os in
10824 beos*)
10825 lt_cv_dlopen="load_add_on"
10826 lt_cv_dlopen_libs=
10827 lt_cv_dlopen_self=yes
10830 mingw* | pw32* | cegcc*)
10831 lt_cv_dlopen="LoadLibrary"
10832 lt_cv_dlopen_libs=
10835 cygwin*)
10836 lt_cv_dlopen="dlopen"
10837 lt_cv_dlopen_libs=
10840 darwin*)
10841 # if libdl is installed we need to link against it
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10843 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10844 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10845 $as_echo_n "(cached) " >&6
10846 else
10847 ac_check_lib_save_LIBS=$LIBS
10848 LIBS="-ldl $LIBS"
10849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10850 /* end confdefs.h. */
10852 /* Override any GCC internal prototype to avoid an error.
10853 Use char because int might match the return type of a GCC
10854 builtin and then its argument prototype would still apply. */
10855 #ifdef __cplusplus
10856 extern "C"
10857 #endif
10858 char dlopen ();
10860 main ()
10862 return dlopen ();
10864 return 0;
10866 _ACEOF
10867 if ac_fn_c_try_link "$LINENO"; then :
10868 ac_cv_lib_dl_dlopen=yes
10869 else
10870 ac_cv_lib_dl_dlopen=no
10872 rm -f core conftest.err conftest.$ac_objext \
10873 conftest$ac_exeext conftest.$ac_ext
10874 LIBS=$ac_check_lib_save_LIBS
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10877 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10878 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10879 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10880 else
10882 lt_cv_dlopen="dyld"
10883 lt_cv_dlopen_libs=
10884 lt_cv_dlopen_self=yes
10891 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10892 if test "x$ac_cv_func_shl_load" = x""yes; then :
10893 lt_cv_dlopen="shl_load"
10894 else
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10896 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10897 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10898 $as_echo_n "(cached) " >&6
10899 else
10900 ac_check_lib_save_LIBS=$LIBS
10901 LIBS="-ldld $LIBS"
10902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10903 /* end confdefs.h. */
10905 /* Override any GCC internal prototype to avoid an error.
10906 Use char because int might match the return type of a GCC
10907 builtin and then its argument prototype would still apply. */
10908 #ifdef __cplusplus
10909 extern "C"
10910 #endif
10911 char shl_load ();
10913 main ()
10915 return shl_load ();
10917 return 0;
10919 _ACEOF
10920 if ac_fn_c_try_link "$LINENO"; then :
10921 ac_cv_lib_dld_shl_load=yes
10922 else
10923 ac_cv_lib_dld_shl_load=no
10925 rm -f core conftest.err conftest.$ac_objext \
10926 conftest$ac_exeext conftest.$ac_ext
10927 LIBS=$ac_check_lib_save_LIBS
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10930 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10931 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10932 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10933 else
10934 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10935 if test "x$ac_cv_func_dlopen" = x""yes; then :
10936 lt_cv_dlopen="dlopen"
10937 else
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10939 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10940 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10941 $as_echo_n "(cached) " >&6
10942 else
10943 ac_check_lib_save_LIBS=$LIBS
10944 LIBS="-ldl $LIBS"
10945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10946 /* end confdefs.h. */
10948 /* Override any GCC internal prototype to avoid an error.
10949 Use char because int might match the return type of a GCC
10950 builtin and then its argument prototype would still apply. */
10951 #ifdef __cplusplus
10952 extern "C"
10953 #endif
10954 char dlopen ();
10956 main ()
10958 return dlopen ();
10960 return 0;
10962 _ACEOF
10963 if ac_fn_c_try_link "$LINENO"; then :
10964 ac_cv_lib_dl_dlopen=yes
10965 else
10966 ac_cv_lib_dl_dlopen=no
10968 rm -f core conftest.err conftest.$ac_objext \
10969 conftest$ac_exeext conftest.$ac_ext
10970 LIBS=$ac_check_lib_save_LIBS
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10973 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10974 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10975 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10976 else
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10978 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10979 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10980 $as_echo_n "(cached) " >&6
10981 else
10982 ac_check_lib_save_LIBS=$LIBS
10983 LIBS="-lsvld $LIBS"
10984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10985 /* end confdefs.h. */
10987 /* Override any GCC internal prototype to avoid an error.
10988 Use char because int might match the return type of a GCC
10989 builtin and then its argument prototype would still apply. */
10990 #ifdef __cplusplus
10991 extern "C"
10992 #endif
10993 char dlopen ();
10995 main ()
10997 return dlopen ();
10999 return 0;
11001 _ACEOF
11002 if ac_fn_c_try_link "$LINENO"; then :
11003 ac_cv_lib_svld_dlopen=yes
11004 else
11005 ac_cv_lib_svld_dlopen=no
11007 rm -f core conftest.err conftest.$ac_objext \
11008 conftest$ac_exeext conftest.$ac_ext
11009 LIBS=$ac_check_lib_save_LIBS
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11012 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11013 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11014 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11015 else
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11017 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11018 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11019 $as_echo_n "(cached) " >&6
11020 else
11021 ac_check_lib_save_LIBS=$LIBS
11022 LIBS="-ldld $LIBS"
11023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11024 /* end confdefs.h. */
11026 /* Override any GCC internal prototype to avoid an error.
11027 Use char because int might match the return type of a GCC
11028 builtin and then its argument prototype would still apply. */
11029 #ifdef __cplusplus
11030 extern "C"
11031 #endif
11032 char dld_link ();
11034 main ()
11036 return dld_link ();
11038 return 0;
11040 _ACEOF
11041 if ac_fn_c_try_link "$LINENO"; then :
11042 ac_cv_lib_dld_dld_link=yes
11043 else
11044 ac_cv_lib_dld_dld_link=no
11046 rm -f core conftest.err conftest.$ac_objext \
11047 conftest$ac_exeext conftest.$ac_ext
11048 LIBS=$ac_check_lib_save_LIBS
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11051 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11052 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11053 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11072 esac
11074 if test "x$lt_cv_dlopen" != xno; then
11075 enable_dlopen=yes
11076 else
11077 enable_dlopen=no
11080 case $lt_cv_dlopen in
11081 dlopen)
11082 save_CPPFLAGS="$CPPFLAGS"
11083 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11085 save_LDFLAGS="$LDFLAGS"
11086 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11088 save_LIBS="$LIBS"
11089 LIBS="$lt_cv_dlopen_libs $LIBS"
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11092 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11093 if test "${lt_cv_dlopen_self+set}" = set; then :
11094 $as_echo_n "(cached) " >&6
11095 else
11096 if test "$cross_compiling" = yes; then :
11097 lt_cv_dlopen_self=cross
11098 else
11099 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11100 lt_status=$lt_dlunknown
11101 cat > conftest.$ac_ext <<_LT_EOF
11102 #line 11102 "configure"
11103 #include "confdefs.h"
11105 #if HAVE_DLFCN_H
11106 #include <dlfcn.h>
11107 #endif
11109 #include <stdio.h>
11111 #ifdef RTLD_GLOBAL
11112 # define LT_DLGLOBAL RTLD_GLOBAL
11113 #else
11114 # ifdef DL_GLOBAL
11115 # define LT_DLGLOBAL DL_GLOBAL
11116 # else
11117 # define LT_DLGLOBAL 0
11118 # endif
11119 #endif
11121 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11122 find out it does not work in some platform. */
11123 #ifndef LT_DLLAZY_OR_NOW
11124 # ifdef RTLD_LAZY
11125 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11126 # else
11127 # ifdef DL_LAZY
11128 # define LT_DLLAZY_OR_NOW DL_LAZY
11129 # else
11130 # ifdef RTLD_NOW
11131 # define LT_DLLAZY_OR_NOW RTLD_NOW
11132 # else
11133 # ifdef DL_NOW
11134 # define LT_DLLAZY_OR_NOW DL_NOW
11135 # else
11136 # define LT_DLLAZY_OR_NOW 0
11137 # endif
11138 # endif
11139 # endif
11140 # endif
11141 #endif
11143 /* When -fvisbility=hidden is used, assume the code has been annotated
11144 correspondingly for the symbols needed. */
11145 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11146 void fnord () __attribute__((visibility("default")));
11147 #endif
11149 void fnord () { int i=42; }
11150 int main ()
11152 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11153 int status = $lt_dlunknown;
11155 if (self)
11157 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11158 else
11160 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11161 else puts (dlerror ());
11163 /* dlclose (self); */
11165 else
11166 puts (dlerror ());
11168 return status;
11170 _LT_EOF
11171 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11172 (eval $ac_link) 2>&5
11173 ac_status=$?
11174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11175 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11176 (./conftest; exit; ) >&5 2>/dev/null
11177 lt_status=$?
11178 case x$lt_status in
11179 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11180 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11181 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11182 esac
11183 else :
11184 # compilation failed
11185 lt_cv_dlopen_self=no
11188 rm -fr conftest*
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11193 $as_echo "$lt_cv_dlopen_self" >&6; }
11195 if test "x$lt_cv_dlopen_self" = xyes; then
11196 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11198 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11199 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11200 $as_echo_n "(cached) " >&6
11201 else
11202 if test "$cross_compiling" = yes; then :
11203 lt_cv_dlopen_self_static=cross
11204 else
11205 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11206 lt_status=$lt_dlunknown
11207 cat > conftest.$ac_ext <<_LT_EOF
11208 #line 11208 "configure"
11209 #include "confdefs.h"
11211 #if HAVE_DLFCN_H
11212 #include <dlfcn.h>
11213 #endif
11215 #include <stdio.h>
11217 #ifdef RTLD_GLOBAL
11218 # define LT_DLGLOBAL RTLD_GLOBAL
11219 #else
11220 # ifdef DL_GLOBAL
11221 # define LT_DLGLOBAL DL_GLOBAL
11222 # else
11223 # define LT_DLGLOBAL 0
11224 # endif
11225 #endif
11227 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11228 find out it does not work in some platform. */
11229 #ifndef LT_DLLAZY_OR_NOW
11230 # ifdef RTLD_LAZY
11231 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11232 # else
11233 # ifdef DL_LAZY
11234 # define LT_DLLAZY_OR_NOW DL_LAZY
11235 # else
11236 # ifdef RTLD_NOW
11237 # define LT_DLLAZY_OR_NOW RTLD_NOW
11238 # else
11239 # ifdef DL_NOW
11240 # define LT_DLLAZY_OR_NOW DL_NOW
11241 # else
11242 # define LT_DLLAZY_OR_NOW 0
11243 # endif
11244 # endif
11245 # endif
11246 # endif
11247 #endif
11249 /* When -fvisbility=hidden is used, assume the code has been annotated
11250 correspondingly for the symbols needed. */
11251 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11252 void fnord () __attribute__((visibility("default")));
11253 #endif
11255 void fnord () { int i=42; }
11256 int main ()
11258 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11259 int status = $lt_dlunknown;
11261 if (self)
11263 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11264 else
11266 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11267 else puts (dlerror ());
11269 /* dlclose (self); */
11271 else
11272 puts (dlerror ());
11274 return status;
11276 _LT_EOF
11277 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11278 (eval $ac_link) 2>&5
11279 ac_status=$?
11280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11281 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11282 (./conftest; exit; ) >&5 2>/dev/null
11283 lt_status=$?
11284 case x$lt_status in
11285 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11286 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11287 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11288 esac
11289 else :
11290 # compilation failed
11291 lt_cv_dlopen_self_static=no
11294 rm -fr conftest*
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11299 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11302 CPPFLAGS="$save_CPPFLAGS"
11303 LDFLAGS="$save_LDFLAGS"
11304 LIBS="$save_LIBS"
11306 esac
11308 case $lt_cv_dlopen_self in
11309 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11310 *) enable_dlopen_self=unknown ;;
11311 esac
11313 case $lt_cv_dlopen_self_static in
11314 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11315 *) enable_dlopen_self_static=unknown ;;
11316 esac
11335 striplib=
11336 old_striplib=
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11338 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11339 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11340 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11341 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11343 $as_echo "yes" >&6; }
11344 else
11345 # FIXME - insert some real tests, host_os isn't really good enough
11346 case $host_os in
11347 darwin*)
11348 if test -n "$STRIP" ; then
11349 striplib="$STRIP -x"
11350 old_striplib="$STRIP -S"
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11352 $as_echo "yes" >&6; }
11353 else
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11355 $as_echo "no" >&6; }
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11360 $as_echo "no" >&6; }
11362 esac
11376 # Report which library types will actually be built
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11378 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11380 $as_echo "$can_build_shared" >&6; }
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11383 $as_echo_n "checking whether to build shared libraries... " >&6; }
11384 test "$can_build_shared" = "no" && enable_shared=no
11386 # On AIX, shared libraries and static libraries use the same namespace, and
11387 # are all built from PIC.
11388 case $host_os in
11389 aix3*)
11390 test "$enable_shared" = yes && enable_static=no
11391 if test -n "$RANLIB"; then
11392 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11393 postinstall_cmds='$RANLIB $lib'
11397 aix[4-9]*)
11398 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11399 test "$enable_shared" = yes && enable_static=no
11402 esac
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11404 $as_echo "$enable_shared" >&6; }
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11407 $as_echo_n "checking whether to build static libraries... " >&6; }
11408 # Make sure either enable_shared or enable_static is yes.
11409 test "$enable_shared" = yes || enable_static=yes
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11411 $as_echo "$enable_static" >&6; }
11417 ac_ext=c
11418 ac_cpp='$CPP $CPPFLAGS'
11419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11423 CC="$lt_save_CC"
11437 ac_config_commands="$ac_config_commands libtool"
11442 # Only expand once:
11448 case $host in
11449 *-cygwin* | *-mingw*)
11450 # 'host' will be top-level target in the case of a target lib,
11451 # we must compare to with_cross_host to decide if this is a native
11452 # or cross-compiler and select where to install dlls appropriately.
11453 if test -n "$with_cross_host" &&
11454 test x"$with_cross_host" != x"no"; then
11455 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
11456 else
11457 lt_host_flags='-no-undefined -bindir "$(bindir)"';
11461 lt_host_flags=
11463 esac
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11472 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11473 # Check whether --enable-maintainer-mode was given.
11474 if test "${enable_maintainer_mode+set}" = set; then :
11475 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11476 else
11477 USE_MAINTAINER_MODE=no
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11481 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11482 if test $USE_MAINTAINER_MODE = yes; then
11483 MAINTAINER_MODE_TRUE=
11484 MAINTAINER_MODE_FALSE='#'
11485 else
11486 MAINTAINER_MODE_TRUE='#'
11487 MAINTAINER_MODE_FALSE=
11490 MAINT=$MAINTAINER_MODE_TRUE
11494 # Create a spec file, so that compile/link tests don't fail
11495 test -f libgfortran.spec || touch libgfortran.spec
11496 FCFLAGS="$FCFLAGS -L."
11498 # We need gfortran to compile parts of the library
11499 # We can't use AC_PROG_FC because it expects a fully working gfortran.
11500 #AC_PROG_FC(gfortran)
11501 case `echo $GFORTRAN` in
11502 -* | no* )
11503 FC=no ;;
11505 set dummy $GFORTRAN; ac_word=$2
11506 if test -x "$ac_word"; then
11507 FC="$GFORTRAN"
11508 else
11509 FC=no
11510 fi ;;
11511 esac
11512 ac_ext=${ac_fc_srcext-f}
11513 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11514 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11515 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11516 if test -n "$ac_tool_prefix"; then
11517 for ac_prog in gfortran
11519 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11520 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11522 $as_echo_n "checking for $ac_word... " >&6; }
11523 if test "${ac_cv_prog_FC+set}" = set; then :
11524 $as_echo_n "(cached) " >&6
11525 else
11526 if test -n "$FC"; then
11527 ac_cv_prog_FC="$FC" # Let the user override the test.
11528 else
11529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11530 for as_dir in $PATH
11532 IFS=$as_save_IFS
11533 test -z "$as_dir" && as_dir=.
11534 for ac_exec_ext in '' $ac_executable_extensions; do
11535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11536 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
11537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11538 break 2
11540 done
11541 done
11542 IFS=$as_save_IFS
11546 FC=$ac_cv_prog_FC
11547 if test -n "$FC"; then
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
11549 $as_echo "$FC" >&6; }
11550 else
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11552 $as_echo "no" >&6; }
11556 test -n "$FC" && break
11557 done
11559 if test -z "$FC"; then
11560 ac_ct_FC=$FC
11561 for ac_prog in gfortran
11563 # Extract the first word of "$ac_prog", so it can be a program name with args.
11564 set dummy $ac_prog; ac_word=$2
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11566 $as_echo_n "checking for $ac_word... " >&6; }
11567 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
11568 $as_echo_n "(cached) " >&6
11569 else
11570 if test -n "$ac_ct_FC"; then
11571 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
11572 else
11573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11574 for as_dir in $PATH
11576 IFS=$as_save_IFS
11577 test -z "$as_dir" && as_dir=.
11578 for ac_exec_ext in '' $ac_executable_extensions; do
11579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11580 ac_cv_prog_ac_ct_FC="$ac_prog"
11581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11582 break 2
11584 done
11585 done
11586 IFS=$as_save_IFS
11590 ac_ct_FC=$ac_cv_prog_ac_ct_FC
11591 if test -n "$ac_ct_FC"; then
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
11593 $as_echo "$ac_ct_FC" >&6; }
11594 else
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11596 $as_echo "no" >&6; }
11600 test -n "$ac_ct_FC" && break
11601 done
11603 if test "x$ac_ct_FC" = x; then
11604 FC=""
11605 else
11606 case $cross_compiling:$ac_tool_warned in
11607 yes:)
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11609 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11610 ac_tool_warned=yes ;;
11611 esac
11612 FC=$ac_ct_FC
11617 # Provide some information about the compiler.
11618 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
11619 set X $ac_compile
11620 ac_compiler=$2
11621 for ac_option in --version -v -V -qversion; do
11622 { { ac_try="$ac_compiler $ac_option >&5"
11623 case "(($ac_try" in
11624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11625 *) ac_try_echo=$ac_try;;
11626 esac
11627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11628 $as_echo "$ac_try_echo"; } >&5
11629 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11630 ac_status=$?
11631 if test -s conftest.err; then
11632 sed '10a\
11633 ... rest of stderr output deleted ...
11634 10q' conftest.err >conftest.er1
11635 cat conftest.er1 >&5
11636 rm -f conftest.er1 conftest.err
11638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11639 test $ac_status = 0; }
11640 done
11641 rm -f a.out
11643 # If we don't use `.F' as extension, the preprocessor is not run on the
11644 # input file. (Note that this only needs to work for GNU compilers.)
11645 ac_save_ext=$ac_ext
11646 ac_ext=F
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
11648 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
11649 if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
11650 $as_echo_n "(cached) " >&6
11651 else
11652 cat > conftest.$ac_ext <<_ACEOF
11653 program main
11654 #ifndef __GNUC__
11655 choke me
11656 #endif
11659 _ACEOF
11660 if ac_fn_fc_try_compile "$LINENO"; then :
11661 ac_compiler_gnu=yes
11662 else
11663 ac_compiler_gnu=no
11665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11666 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
11670 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
11671 ac_ext=$ac_save_ext
11672 ac_test_FCFLAGS=${FCFLAGS+set}
11673 ac_save_FCFLAGS=$FCFLAGS
11674 FCFLAGS=
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
11676 $as_echo_n "checking whether $FC accepts -g... " >&6; }
11677 if test "${ac_cv_prog_fc_g+set}" = set; then :
11678 $as_echo_n "(cached) " >&6
11679 else
11680 FCFLAGS=-g
11681 cat > conftest.$ac_ext <<_ACEOF
11682 program main
11685 _ACEOF
11686 if ac_fn_fc_try_compile "$LINENO"; then :
11687 ac_cv_prog_fc_g=yes
11688 else
11689 ac_cv_prog_fc_g=no
11691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
11695 $as_echo "$ac_cv_prog_fc_g" >&6; }
11696 if test "$ac_test_FCFLAGS" = set; then
11697 FCFLAGS=$ac_save_FCFLAGS
11698 elif test $ac_cv_prog_fc_g = yes; then
11699 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11700 FCFLAGS="-g -O2"
11701 else
11702 FCFLAGS="-g"
11704 else
11705 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11706 FCFLAGS="-O2"
11707 else
11708 FCFLAGS=
11712 ac_ext=c
11713 ac_cpp='$CPP $CPPFLAGS'
11714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11718 ac_ext=${ac_fc_srcext-f}
11719 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11720 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11721 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11724 if test -z "$FC" || test "X$FC" = "Xno"; then
11725 _lt_disable_FC=yes
11728 archive_cmds_need_lc_FC=no
11729 allow_undefined_flag_FC=
11730 always_export_symbols_FC=no
11731 archive_expsym_cmds_FC=
11732 export_dynamic_flag_spec_FC=
11733 hardcode_direct_FC=no
11734 hardcode_direct_absolute_FC=no
11735 hardcode_libdir_flag_spec_FC=
11736 hardcode_libdir_flag_spec_ld_FC=
11737 hardcode_libdir_separator_FC=
11738 hardcode_minus_L_FC=no
11739 hardcode_automatic_FC=no
11740 inherit_rpath_FC=no
11741 module_cmds_FC=
11742 module_expsym_cmds_FC=
11743 link_all_deplibs_FC=unknown
11744 old_archive_cmds_FC=$old_archive_cmds
11745 reload_flag_FC=$reload_flag
11746 reload_cmds_FC=$reload_cmds
11747 no_undefined_flag_FC=
11748 whole_archive_flag_spec_FC=
11749 enable_shared_with_static_runtimes_FC=no
11751 # Source file extension for fc test sources.
11752 ac_ext=${ac_fc_srcext-f}
11754 # Object file extension for compiled fc test sources.
11755 objext=o
11756 objext_FC=$objext
11758 # No sense in running all these tests if we already determined that
11759 # the FC compiler isn't working. Some variables (like enable_shared)
11760 # are currently assumed to apply to all compilers on this platform,
11761 # and will be corrupted by setting them based on a non-working compiler.
11762 if test "$_lt_disable_FC" != yes; then
11763 # Code to be used in simple compile tests
11764 lt_simple_compile_test_code="\
11765 subroutine t
11766 return
11770 # Code to be used in simple link tests
11771 lt_simple_link_test_code="\
11772 program t
11776 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11783 # If no C compiler was specified, use CC.
11784 LTCC=${LTCC-"$CC"}
11786 # If no C compiler flags were specified, use CFLAGS.
11787 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11789 # Allow CC to be a program name with arguments.
11790 compiler=$CC
11793 # save warnings/boilerplate of simple test code
11794 ac_outfile=conftest.$ac_objext
11795 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11796 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11797 _lt_compiler_boilerplate=`cat conftest.err`
11798 $RM conftest*
11800 ac_outfile=conftest.$ac_objext
11801 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11802 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11803 _lt_linker_boilerplate=`cat conftest.err`
11804 $RM -r conftest*
11807 # Allow CC to be a program name with arguments.
11808 lt_save_CC="$CC"
11809 lt_save_GCC=$GCC
11810 CC=${FC-"f95"}
11811 compiler=$CC
11812 GCC=$ac_cv_fc_compiler_gnu
11814 compiler_FC=$CC
11815 for cc_temp in $compiler""; do
11816 case $cc_temp in
11817 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11818 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11819 \-*) ;;
11820 *) break;;
11821 esac
11822 done
11823 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11826 if test -n "$compiler"; then
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11828 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11830 $as_echo "$can_build_shared" >&6; }
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11833 $as_echo_n "checking whether to build shared libraries... " >&6; }
11834 test "$can_build_shared" = "no" && enable_shared=no
11836 # On AIX, shared libraries and static libraries use the same namespace, and
11837 # are all built from PIC.
11838 case $host_os in
11839 aix3*)
11840 test "$enable_shared" = yes && enable_static=no
11841 if test -n "$RANLIB"; then
11842 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11843 postinstall_cmds='$RANLIB $lib'
11846 aix[4-9]*)
11847 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11848 test "$enable_shared" = yes && enable_static=no
11851 esac
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11853 $as_echo "$enable_shared" >&6; }
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11856 $as_echo_n "checking whether to build static libraries... " >&6; }
11857 # Make sure either enable_shared or enable_static is yes.
11858 test "$enable_shared" = yes || enable_static=yes
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11860 $as_echo "$enable_static" >&6; }
11862 GCC_FC="$ac_cv_fc_compiler_gnu"
11863 LD_FC="$LD"
11865 ## CAVEAT EMPTOR:
11866 ## There is no encapsulation within the following macros, do not change
11867 ## the running order or otherwise move them around unless you know exactly
11868 ## what you are doing...
11869 # Dependencies to place before and after the object being linked:
11870 predep_objects_FC=
11871 postdep_objects_FC=
11872 predeps_FC=
11873 postdeps_FC=
11874 compiler_lib_search_path_FC=
11876 cat > conftest.$ac_ext <<_LT_EOF
11877 subroutine foo
11878 implicit none
11879 integer a
11881 return
11883 _LT_EOF
11885 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11886 (eval $ac_compile) 2>&5
11887 ac_status=$?
11888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11889 test $ac_status = 0; }; then
11890 # Parse the compiler output and extract the necessary
11891 # objects, libraries and library flags.
11893 # Sentinel used to keep track of whether or not we are before
11894 # the conftest object file.
11895 pre_test_object_deps_done=no
11897 for p in `eval "$output_verbose_link_cmd"`; do
11898 case $p in
11900 -L* | -R* | -l*)
11901 # Some compilers place space between "-{L,R}" and the path.
11902 # Remove the space.
11903 if test $p = "-L" ||
11904 test $p = "-R"; then
11905 prev=$p
11906 continue
11907 else
11908 prev=
11911 if test "$pre_test_object_deps_done" = no; then
11912 case $p in
11913 -L* | -R*)
11914 # Internal compiler library paths should come after those
11915 # provided the user. The postdeps already come after the
11916 # user supplied libs so there is no need to process them.
11917 if test -z "$compiler_lib_search_path_FC"; then
11918 compiler_lib_search_path_FC="${prev}${p}"
11919 else
11920 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
11923 # The "-l" case would never come before the object being
11924 # linked, so don't bother handling this case.
11925 esac
11926 else
11927 if test -z "$postdeps_FC"; then
11928 postdeps_FC="${prev}${p}"
11929 else
11930 postdeps_FC="${postdeps_FC} ${prev}${p}"
11935 *.$objext)
11936 # This assumes that the test object file only shows up
11937 # once in the compiler output.
11938 if test "$p" = "conftest.$objext"; then
11939 pre_test_object_deps_done=yes
11940 continue
11943 if test "$pre_test_object_deps_done" = no; then
11944 if test -z "$predep_objects_FC"; then
11945 predep_objects_FC="$p"
11946 else
11947 predep_objects_FC="$predep_objects_FC $p"
11949 else
11950 if test -z "$postdep_objects_FC"; then
11951 postdep_objects_FC="$p"
11952 else
11953 postdep_objects_FC="$postdep_objects_FC $p"
11958 *) ;; # Ignore the rest.
11960 esac
11961 done
11963 # Clean up.
11964 rm -f a.out a.exe
11965 else
11966 echo "libtool.m4: error: problem compiling FC test program"
11969 $RM -f confest.$objext
11971 # PORTME: override above test on systems where it is broken
11974 case " $postdeps_FC " in
11975 *" -lc "*) archive_cmds_need_lc_FC=no ;;
11976 esac
11977 compiler_lib_search_dirs_FC=
11978 if test -n "${compiler_lib_search_path_FC}"; then
11979 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12012 lt_prog_compiler_wl_FC=
12013 lt_prog_compiler_pic_FC=
12014 lt_prog_compiler_static_FC=
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12017 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12019 if test "$GCC" = yes; then
12020 lt_prog_compiler_wl_FC='-Wl,'
12021 lt_prog_compiler_static_FC='-static'
12023 case $host_os in
12024 aix*)
12025 # All AIX code is PIC.
12026 if test "$host_cpu" = ia64; then
12027 # AIX 5 now supports IA64 processor
12028 lt_prog_compiler_static_FC='-Bstatic'
12030 lt_prog_compiler_pic_FC='-fPIC'
12033 amigaos*)
12034 case $host_cpu in
12035 powerpc)
12036 # see comment about AmigaOS4 .so support
12037 lt_prog_compiler_pic_FC='-fPIC'
12039 m68k)
12040 # FIXME: we need at least 68020 code to build shared libraries, but
12041 # adding the `-m68020' flag to GCC prevents building anything better,
12042 # like `-m68040'.
12043 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
12045 esac
12048 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12049 # PIC is the default for these OSes.
12052 mingw* | cygwin* | pw32* | os2* | cegcc*)
12053 # This hack is so that the source file can tell whether it is being
12054 # built for inclusion in a dll (and should export symbols for example).
12055 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12056 # (--disable-auto-import) libraries
12057 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12060 darwin* | rhapsody*)
12061 # PIC is the default on this platform
12062 # Common symbols not allowed in MH_DYLIB files
12063 lt_prog_compiler_pic_FC='-fno-common'
12066 haiku*)
12067 # PIC is the default for Haiku.
12068 # The "-static" flag exists, but is broken.
12069 lt_prog_compiler_static_FC=
12072 hpux*)
12073 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12074 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12075 # sets the default TLS model and affects inlining.
12076 case $host_cpu in
12077 hppa*64*)
12078 # +Z the default
12081 lt_prog_compiler_pic_FC='-fPIC'
12083 esac
12086 interix[3-9]*)
12087 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12088 # Instead, we relocate shared libraries at runtime.
12091 msdosdjgpp*)
12092 # Just because we use GCC doesn't mean we suddenly get shared libraries
12093 # on systems that don't support them.
12094 lt_prog_compiler_can_build_shared_FC=no
12095 enable_shared=no
12098 *nto* | *qnx*)
12099 # QNX uses GNU C++, but need to define -shared option too, otherwise
12100 # it will coredump.
12101 lt_prog_compiler_pic_FC='-fPIC -shared'
12104 sysv4*MP*)
12105 if test -d /usr/nec; then
12106 lt_prog_compiler_pic_FC=-Kconform_pic
12111 lt_prog_compiler_pic_FC='-fPIC'
12113 esac
12115 case $cc_basename in
12116 nvcc*) # Cuda Compiler Driver 2.2
12117 lt_prog_compiler_wl_FC='-Xlinker '
12118 lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
12120 esac
12121 else
12122 # PORTME Check for flag to pass linker flags through the system compiler.
12123 case $host_os in
12124 aix*)
12125 lt_prog_compiler_wl_FC='-Wl,'
12126 if test "$host_cpu" = ia64; then
12127 # AIX 5 now supports IA64 processor
12128 lt_prog_compiler_static_FC='-Bstatic'
12129 else
12130 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
12134 mingw* | cygwin* | pw32* | os2* | cegcc*)
12135 # This hack is so that the source file can tell whether it is being
12136 # built for inclusion in a dll (and should export symbols for example).
12137 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12140 hpux9* | hpux10* | hpux11*)
12141 lt_prog_compiler_wl_FC='-Wl,'
12142 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12143 # not for PA HP-UX.
12144 case $host_cpu in
12145 hppa*64*|ia64*)
12146 # +Z the default
12149 lt_prog_compiler_pic_FC='+Z'
12151 esac
12152 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12153 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
12156 irix5* | irix6* | nonstopux*)
12157 lt_prog_compiler_wl_FC='-Wl,'
12158 # PIC (with -KPIC) is the default.
12159 lt_prog_compiler_static_FC='-non_shared'
12162 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12163 case $cc_basename in
12164 # old Intel for x86_64 which still supported -KPIC.
12165 ecc*)
12166 lt_prog_compiler_wl_FC='-Wl,'
12167 lt_prog_compiler_pic_FC='-KPIC'
12168 lt_prog_compiler_static_FC='-static'
12170 # icc used to be incompatible with GCC.
12171 # ICC 10 doesn't accept -KPIC any more.
12172 icc* | ifort*)
12173 lt_prog_compiler_wl_FC='-Wl,'
12174 lt_prog_compiler_pic_FC='-fPIC'
12175 lt_prog_compiler_static_FC='-static'
12177 # Lahey Fortran 8.1.
12178 lf95*)
12179 lt_prog_compiler_wl_FC='-Wl,'
12180 lt_prog_compiler_pic_FC='--shared'
12181 lt_prog_compiler_static_FC='--static'
12183 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12184 # Portland Group compilers (*not* the Pentium gcc compiler,
12185 # which looks to be a dead project)
12186 lt_prog_compiler_wl_FC='-Wl,'
12187 lt_prog_compiler_pic_FC='-fpic'
12188 lt_prog_compiler_static_FC='-Bstatic'
12190 ccc*)
12191 lt_prog_compiler_wl_FC='-Wl,'
12192 # All Alpha code is PIC.
12193 lt_prog_compiler_static_FC='-non_shared'
12195 xl* | bgxl* | bgf* | mpixl*)
12196 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12197 lt_prog_compiler_wl_FC='-Wl,'
12198 lt_prog_compiler_pic_FC='-qpic'
12199 lt_prog_compiler_static_FC='-qstaticlink'
12202 case `$CC -V 2>&1 | sed 5q` in
12203 *Sun\ F* | *Sun*Fortran*)
12204 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12205 lt_prog_compiler_pic_FC='-KPIC'
12206 lt_prog_compiler_static_FC='-Bstatic'
12207 lt_prog_compiler_wl_FC=''
12209 *Sun\ C*)
12210 # Sun C 5.9
12211 lt_prog_compiler_pic_FC='-KPIC'
12212 lt_prog_compiler_static_FC='-Bstatic'
12213 lt_prog_compiler_wl_FC='-Wl,'
12215 esac
12217 esac
12220 newsos6)
12221 lt_prog_compiler_pic_FC='-KPIC'
12222 lt_prog_compiler_static_FC='-Bstatic'
12225 *nto* | *qnx*)
12226 # QNX uses GNU C++, but need to define -shared option too, otherwise
12227 # it will coredump.
12228 lt_prog_compiler_pic_FC='-fPIC -shared'
12231 osf3* | osf4* | osf5*)
12232 lt_prog_compiler_wl_FC='-Wl,'
12233 # All OSF/1 code is PIC.
12234 lt_prog_compiler_static_FC='-non_shared'
12237 rdos*)
12238 lt_prog_compiler_static_FC='-non_shared'
12241 solaris*)
12242 lt_prog_compiler_pic_FC='-KPIC'
12243 lt_prog_compiler_static_FC='-Bstatic'
12244 case $cc_basename in
12245 f77* | f90* | f95*)
12246 lt_prog_compiler_wl_FC='-Qoption ld ';;
12248 lt_prog_compiler_wl_FC='-Wl,';;
12249 esac
12252 sunos4*)
12253 lt_prog_compiler_wl_FC='-Qoption ld '
12254 lt_prog_compiler_pic_FC='-PIC'
12255 lt_prog_compiler_static_FC='-Bstatic'
12258 sysv4 | sysv4.2uw2* | sysv4.3*)
12259 lt_prog_compiler_wl_FC='-Wl,'
12260 lt_prog_compiler_pic_FC='-KPIC'
12261 lt_prog_compiler_static_FC='-Bstatic'
12264 sysv4*MP*)
12265 if test -d /usr/nec ;then
12266 lt_prog_compiler_pic_FC='-Kconform_pic'
12267 lt_prog_compiler_static_FC='-Bstatic'
12271 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12272 lt_prog_compiler_wl_FC='-Wl,'
12273 lt_prog_compiler_pic_FC='-KPIC'
12274 lt_prog_compiler_static_FC='-Bstatic'
12277 unicos*)
12278 lt_prog_compiler_wl_FC='-Wl,'
12279 lt_prog_compiler_can_build_shared_FC=no
12282 uts4*)
12283 lt_prog_compiler_pic_FC='-pic'
12284 lt_prog_compiler_static_FC='-Bstatic'
12288 lt_prog_compiler_can_build_shared_FC=no
12290 esac
12293 case $host_os in
12294 # For platforms which do not support PIC, -DPIC is meaningless:
12295 *djgpp*)
12296 lt_prog_compiler_pic_FC=
12299 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
12301 esac
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
12303 $as_echo "$lt_prog_compiler_pic_FC" >&6; }
12308 # Check to make sure the PIC flag actually works.
12310 if test -n "$lt_prog_compiler_pic_FC"; then
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
12312 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
12313 if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then :
12314 $as_echo_n "(cached) " >&6
12315 else
12316 lt_cv_prog_compiler_pic_works_FC=no
12317 ac_outfile=conftest.$ac_objext
12318 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12319 lt_compiler_flag="$lt_prog_compiler_pic_FC"
12320 # Insert the option either (1) after the last *FLAGS variable, or
12321 # (2) before a word containing "conftest.", or (3) at the end.
12322 # Note that $ac_compile itself does not contain backslashes and begins
12323 # with a dollar sign (not a hyphen), so the echo should work correctly.
12324 # The option is referenced via a variable to avoid confusing sed.
12325 lt_compile=`echo "$ac_compile" | $SED \
12326 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12327 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12328 -e 's:$: $lt_compiler_flag:'`
12329 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12330 (eval "$lt_compile" 2>conftest.err)
12331 ac_status=$?
12332 cat conftest.err >&5
12333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334 if (exit $ac_status) && test -s "$ac_outfile"; then
12335 # The compiler can only warn and ignore the option if not recognized
12336 # So say no if there are warnings other than the usual output.
12337 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12338 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12339 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12340 lt_cv_prog_compiler_pic_works_FC=yes
12343 $RM conftest*
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
12347 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
12349 if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
12350 case $lt_prog_compiler_pic_FC in
12351 "" | " "*) ;;
12352 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
12353 esac
12354 else
12355 lt_prog_compiler_pic_FC=
12356 lt_prog_compiler_can_build_shared_FC=no
12364 # Check to make sure the static flag actually works.
12366 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12368 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12369 if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then :
12370 $as_echo_n "(cached) " >&6
12371 else
12372 lt_cv_prog_compiler_static_works_FC=no
12373 save_LDFLAGS="$LDFLAGS"
12374 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12375 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12376 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12377 # The linker can only warn and ignore the option if not recognized
12378 # So say no if there are warnings
12379 if test -s conftest.err; then
12380 # Append any errors to the config.log.
12381 cat conftest.err 1>&5
12382 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12383 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12384 if diff conftest.exp conftest.er2 >/dev/null; then
12385 lt_cv_prog_compiler_static_works_FC=yes
12387 else
12388 lt_cv_prog_compiler_static_works_FC=yes
12391 $RM -r conftest*
12392 LDFLAGS="$save_LDFLAGS"
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
12396 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
12398 if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
12400 else
12401 lt_prog_compiler_static_FC=
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12408 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12409 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
12410 $as_echo_n "(cached) " >&6
12411 else
12412 lt_cv_prog_compiler_c_o_FC=no
12413 $RM -r conftest 2>/dev/null
12414 mkdir conftest
12415 cd conftest
12416 mkdir out
12417 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12419 lt_compiler_flag="-o out/conftest2.$ac_objext"
12420 # Insert the option either (1) after the last *FLAGS variable, or
12421 # (2) before a word containing "conftest.", or (3) at the end.
12422 # Note that $ac_compile itself does not contain backslashes and begins
12423 # with a dollar sign (not a hyphen), so the echo should work correctly.
12424 lt_compile=`echo "$ac_compile" | $SED \
12425 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12426 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12427 -e 's:$: $lt_compiler_flag:'`
12428 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12429 (eval "$lt_compile" 2>out/conftest.err)
12430 ac_status=$?
12431 cat out/conftest.err >&5
12432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12434 then
12435 # The compiler can only warn and ignore the option if not recognized
12436 # So say no if there are warnings
12437 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12438 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12439 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12440 lt_cv_prog_compiler_c_o_FC=yes
12443 chmod u+w . 2>&5
12444 $RM conftest*
12445 # SGI C++ compiler will create directory out/ii_files/ for
12446 # template instantiation
12447 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12448 $RM out/* && rmdir out
12449 cd ..
12450 $RM -r conftest
12451 $RM conftest*
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12455 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12460 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12461 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
12462 $as_echo_n "(cached) " >&6
12463 else
12464 lt_cv_prog_compiler_c_o_FC=no
12465 $RM -r conftest 2>/dev/null
12466 mkdir conftest
12467 cd conftest
12468 mkdir out
12469 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12471 lt_compiler_flag="-o out/conftest2.$ac_objext"
12472 # Insert the option either (1) after the last *FLAGS variable, or
12473 # (2) before a word containing "conftest.", or (3) at the end.
12474 # Note that $ac_compile itself does not contain backslashes and begins
12475 # with a dollar sign (not a hyphen), so the echo should work correctly.
12476 lt_compile=`echo "$ac_compile" | $SED \
12477 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12478 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12479 -e 's:$: $lt_compiler_flag:'`
12480 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12481 (eval "$lt_compile" 2>out/conftest.err)
12482 ac_status=$?
12483 cat out/conftest.err >&5
12484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12486 then
12487 # The compiler can only warn and ignore the option if not recognized
12488 # So say no if there are warnings
12489 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12490 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12491 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12492 lt_cv_prog_compiler_c_o_FC=yes
12495 chmod u+w . 2>&5
12496 $RM conftest*
12497 # SGI C++ compiler will create directory out/ii_files/ for
12498 # template instantiation
12499 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12500 $RM out/* && rmdir out
12501 cd ..
12502 $RM -r conftest
12503 $RM conftest*
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12507 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12512 hard_links="nottested"
12513 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
12514 # do not overwrite the value of need_locks provided by the user
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12516 $as_echo_n "checking if we can lock with hard links... " >&6; }
12517 hard_links=yes
12518 $RM conftest*
12519 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12520 touch conftest.a
12521 ln conftest.a conftest.b 2>&5 || hard_links=no
12522 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12524 $as_echo "$hard_links" >&6; }
12525 if test "$hard_links" = no; then
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12527 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12528 need_locks=warn
12530 else
12531 need_locks=no
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12537 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12539 runpath_var=
12540 allow_undefined_flag_FC=
12541 always_export_symbols_FC=no
12542 archive_cmds_FC=
12543 archive_expsym_cmds_FC=
12544 compiler_needs_object_FC=no
12545 enable_shared_with_static_runtimes_FC=no
12546 export_dynamic_flag_spec_FC=
12547 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12548 hardcode_automatic_FC=no
12549 hardcode_direct_FC=no
12550 hardcode_direct_absolute_FC=no
12551 hardcode_libdir_flag_spec_FC=
12552 hardcode_libdir_flag_spec_ld_FC=
12553 hardcode_libdir_separator_FC=
12554 hardcode_minus_L_FC=no
12555 hardcode_shlibpath_var_FC=unsupported
12556 inherit_rpath_FC=no
12557 link_all_deplibs_FC=unknown
12558 module_cmds_FC=
12559 module_expsym_cmds_FC=
12560 old_archive_from_new_cmds_FC=
12561 old_archive_from_expsyms_cmds_FC=
12562 thread_safe_flag_spec_FC=
12563 whole_archive_flag_spec_FC=
12564 # include_expsyms should be a list of space-separated symbols to be *always*
12565 # included in the symbol list
12566 include_expsyms_FC=
12567 # exclude_expsyms can be an extended regexp of symbols to exclude
12568 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12569 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12570 # as well as any symbol that contains `d'.
12571 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12572 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12573 # platforms (ab)use it in PIC code, but their linkers get confused if
12574 # the symbol is explicitly referenced. Since portable code cannot
12575 # rely on this symbol name, it's probably fine to never include it in
12576 # preloaded symbol tables.
12577 # Exclude shared library initialization/finalization symbols.
12578 extract_expsyms_cmds=
12580 case $host_os in
12581 cygwin* | mingw* | pw32* | cegcc*)
12582 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12583 # When not using gcc, we currently assume that we are using
12584 # Microsoft Visual C++.
12585 if test "$GCC" != yes; then
12586 with_gnu_ld=no
12589 interix*)
12590 # we just hope/assume this is gcc and not c89 (= MSVC++)
12591 with_gnu_ld=yes
12593 openbsd*)
12594 with_gnu_ld=no
12596 esac
12598 ld_shlibs_FC=yes
12600 # On some targets, GNU ld is compatible enough with the native linker
12601 # that we're better off using the native interface for both.
12602 lt_use_gnu_ld_interface=no
12603 if test "$with_gnu_ld" = yes; then
12604 case $host_os in
12605 aix*)
12606 # The AIX port of GNU ld has always aspired to compatibility
12607 # with the native linker. However, as the warning in the GNU ld
12608 # block says, versions before 2.19.5* couldn't really create working
12609 # shared libraries, regardless of the interface used.
12610 case `$LD -v 2>&1` in
12611 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12612 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12613 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12615 lt_use_gnu_ld_interface=yes
12617 esac
12620 lt_use_gnu_ld_interface=yes
12622 esac
12625 if test "$lt_use_gnu_ld_interface" = yes; then
12626 # If archive_cmds runs LD, not CC, wlarc should be empty
12627 wlarc='${wl}'
12629 # Set some defaults for GNU ld with shared library support. These
12630 # are reset later if shared libraries are not supported. Putting them
12631 # here allows them to be overridden if necessary.
12632 runpath_var=LD_RUN_PATH
12633 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12634 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
12635 # ancient GNU ld didn't support --whole-archive et. al.
12636 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12637 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12638 else
12639 whole_archive_flag_spec_FC=
12641 supports_anon_versioning=no
12642 case `$LD -v 2>&1` in
12643 *GNU\ gold*) supports_anon_versioning=yes ;;
12644 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12645 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12646 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12647 *\ 2.11.*) ;; # other 2.11 versions
12648 *) supports_anon_versioning=yes ;;
12649 esac
12651 # See if GNU ld supports shared libraries.
12652 case $host_os in
12653 aix[3-9]*)
12654 # On AIX/PPC, the GNU linker is very broken
12655 if test "$host_cpu" != ia64; then
12656 ld_shlibs_FC=no
12657 cat <<_LT_EOF 1>&2
12659 *** Warning: the GNU linker, at least up to release 2.19, is reported
12660 *** to be unable to reliably create shared libraries on AIX.
12661 *** Therefore, libtool is disabling shared libraries support. If you
12662 *** really care for shared libraries, you may want to install binutils
12663 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12664 *** You will then need to restart the configuration process.
12666 _LT_EOF
12670 amigaos*)
12671 case $host_cpu in
12672 powerpc)
12673 # see comment about AmigaOS4 .so support
12674 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12675 archive_expsym_cmds_FC=''
12677 m68k)
12678 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)'
12679 hardcode_libdir_flag_spec_FC='-L$libdir'
12680 hardcode_minus_L_FC=yes
12682 esac
12685 beos*)
12686 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12687 allow_undefined_flag_FC=unsupported
12688 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12689 # support --undefined. This deserves some investigation. FIXME
12690 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12691 else
12692 ld_shlibs_FC=no
12696 cygwin* | mingw* | pw32* | cegcc*)
12697 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
12698 # as there is no search path for DLLs.
12699 hardcode_libdir_flag_spec_FC='-L$libdir'
12700 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
12701 allow_undefined_flag_FC=unsupported
12702 always_export_symbols_FC=no
12703 enable_shared_with_static_runtimes_FC=yes
12704 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12706 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12707 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12708 # If the export-symbols file already is a .def file (1st line
12709 # is EXPORTS), use it as is; otherwise, prepend...
12710 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12711 cp $export_symbols $output_objdir/$soname.def;
12712 else
12713 echo EXPORTS > $output_objdir/$soname.def;
12714 cat $export_symbols >> $output_objdir/$soname.def;
12716 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12717 else
12718 ld_shlibs_FC=no
12722 haiku*)
12723 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12724 link_all_deplibs_FC=yes
12727 interix[3-9]*)
12728 hardcode_direct_FC=no
12729 hardcode_shlibpath_var_FC=no
12730 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
12731 export_dynamic_flag_spec_FC='${wl}-E'
12732 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12733 # Instead, shared libraries are loaded at an image base (0x10000000 by
12734 # default) and relocated if they conflict, which is a slow very memory
12735 # consuming and fragmenting process. To avoid this, we pick a random,
12736 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12737 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12738 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'
12739 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'
12742 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12743 tmp_diet=no
12744 if test "$host_os" = linux-dietlibc; then
12745 case $cc_basename in
12746 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12747 esac
12749 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12750 && test "$tmp_diet" = no
12751 then
12752 tmp_addflag=' $pic_flag'
12753 tmp_sharedflag='-shared'
12754 case $cc_basename,$host_cpu in
12755 pgcc*) # Portland Group C compiler
12756 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'
12757 tmp_addflag=' $pic_flag'
12759 pgf77* | pgf90* | pgf95* | pgfortran*)
12760 # Portland Group f77 and f90 compilers
12761 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'
12762 tmp_addflag=' $pic_flag -Mnomain' ;;
12763 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12764 tmp_addflag=' -i_dynamic' ;;
12765 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12766 tmp_addflag=' -i_dynamic -nofor_main' ;;
12767 ifc* | ifort*) # Intel Fortran compiler
12768 tmp_addflag=' -nofor_main' ;;
12769 lf95*) # Lahey Fortran 8.1
12770 whole_archive_flag_spec_FC=
12771 tmp_sharedflag='--shared' ;;
12772 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12773 tmp_sharedflag='-qmkshrobj'
12774 tmp_addflag= ;;
12775 nvcc*) # Cuda Compiler Driver 2.2
12776 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'
12777 compiler_needs_object_FC=yes
12779 esac
12780 case `$CC -V 2>&1 | sed 5q` in
12781 *Sun\ C*) # Sun C 5.9
12782 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'
12783 compiler_needs_object_FC=yes
12784 tmp_sharedflag='-G' ;;
12785 *Sun\ F*) # Sun Fortran 8.3
12786 tmp_sharedflag='-G' ;;
12787 esac
12788 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12790 if test "x$supports_anon_versioning" = xyes; then
12791 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
12792 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12793 echo "local: *; };" >> $output_objdir/$libname.ver~
12794 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12797 case $cc_basename in
12798 xlf* | bgf* | bgxlf* | mpixlf*)
12799 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12800 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
12801 hardcode_libdir_flag_spec_FC=
12802 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
12803 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12804 if test "x$supports_anon_versioning" = xyes; then
12805 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
12806 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12807 echo "local: *; };" >> $output_objdir/$libname.ver~
12808 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12811 esac
12812 else
12813 ld_shlibs_FC=no
12817 netbsd*)
12818 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12819 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12820 wlarc=
12821 else
12822 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12823 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12827 solaris*)
12828 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12829 ld_shlibs_FC=no
12830 cat <<_LT_EOF 1>&2
12832 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12833 *** create shared libraries on Solaris systems. Therefore, libtool
12834 *** is disabling shared libraries support. We urge you to upgrade GNU
12835 *** binutils to release 2.9.1 or newer. Another option is to modify
12836 *** your PATH or compiler configuration so that the native linker is
12837 *** used, and then restart.
12839 _LT_EOF
12840 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12841 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12842 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12843 else
12844 ld_shlibs_FC=no
12848 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12849 case `$LD -v 2>&1` in
12850 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12851 ld_shlibs_FC=no
12852 cat <<_LT_EOF 1>&2
12854 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12855 *** reliably create shared libraries on SCO systems. Therefore, libtool
12856 *** is disabling shared libraries support. We urge you to upgrade GNU
12857 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12858 *** your PATH or compiler configuration so that the native linker is
12859 *** used, and then restart.
12861 _LT_EOF
12864 # For security reasons, it is highly recommended that you always
12865 # use absolute paths for naming shared libraries, and exclude the
12866 # DT_RUNPATH tag from executables and libraries. But doing so
12867 # requires that you compile everything twice, which is a pain.
12868 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12869 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12870 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12871 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12872 else
12873 ld_shlibs_FC=no
12876 esac
12879 sunos4*)
12880 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12881 wlarc=
12882 hardcode_direct_FC=yes
12883 hardcode_shlibpath_var_FC=no
12887 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12888 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12889 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12890 else
12891 ld_shlibs_FC=no
12894 esac
12896 if test "$ld_shlibs_FC" = no; then
12897 runpath_var=
12898 hardcode_libdir_flag_spec_FC=
12899 export_dynamic_flag_spec_FC=
12900 whole_archive_flag_spec_FC=
12902 else
12903 # PORTME fill in a description of your system's linker (not GNU ld)
12904 case $host_os in
12905 aix3*)
12906 allow_undefined_flag_FC=unsupported
12907 always_export_symbols_FC=yes
12908 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'
12909 # Note: this linker hardcodes the directories in LIBPATH if there
12910 # are no directories specified by -L.
12911 hardcode_minus_L_FC=yes
12912 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12913 # Neither direct hardcoding nor static linking is supported with a
12914 # broken collect2.
12915 hardcode_direct_FC=unsupported
12919 aix[4-9]*)
12920 if test "$host_cpu" = ia64; then
12921 # On IA64, the linker does run time linking by default, so we don't
12922 # have to do anything special.
12923 aix_use_runtimelinking=no
12924 exp_sym_flag='-Bexport'
12925 no_entry_flag=""
12926 else
12927 # If we're using GNU nm, then we don't want the "-C" option.
12928 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12929 # Also, AIX nm treats weak defined symbols like other global
12930 # defined symbols, whereas GNU nm marks them as "W".
12931 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12932 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'
12933 else
12934 export_symbols_cmds_FC='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12936 aix_use_runtimelinking=no
12938 # Test if we are trying to use run time linking or normal
12939 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12940 # need to do runtime linking.
12941 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12942 for ld_flag in $LDFLAGS; do
12943 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12944 aix_use_runtimelinking=yes
12945 break
12947 done
12949 esac
12951 exp_sym_flag='-bexport'
12952 no_entry_flag='-bnoentry'
12955 # When large executables or shared objects are built, AIX ld can
12956 # have problems creating the table of contents. If linking a library
12957 # or program results in "error TOC overflow" add -mminimal-toc to
12958 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12959 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12961 archive_cmds_FC=''
12962 hardcode_direct_FC=yes
12963 hardcode_direct_absolute_FC=yes
12964 hardcode_libdir_separator_FC=':'
12965 link_all_deplibs_FC=yes
12966 file_list_spec_FC='${wl}-f,'
12968 if test "$GCC" = yes; then
12969 case $host_os in aix4.[012]|aix4.[012].*)
12970 # We only want to do this on AIX 4.2 and lower, the check
12971 # below for broken collect2 doesn't work under 4.3+
12972 collect2name=`${CC} -print-prog-name=collect2`
12973 if test -f "$collect2name" &&
12974 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12975 then
12976 # We have reworked collect2
12978 else
12979 # We have old collect2
12980 hardcode_direct_FC=unsupported
12981 # It fails to find uninstalled libraries when the uninstalled
12982 # path is not listed in the libpath. Setting hardcode_minus_L
12983 # to unsupported forces relinking
12984 hardcode_minus_L_FC=yes
12985 hardcode_libdir_flag_spec_FC='-L$libdir'
12986 hardcode_libdir_separator_FC=
12989 esac
12990 shared_flag='-shared'
12991 if test "$aix_use_runtimelinking" = yes; then
12992 shared_flag="$shared_flag "'${wl}-G'
12994 else
12995 # not using gcc
12996 if test "$host_cpu" = ia64; then
12997 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12998 # chokes on -Wl,-G. The following line is correct:
12999 shared_flag='-G'
13000 else
13001 if test "$aix_use_runtimelinking" = yes; then
13002 shared_flag='${wl}-G'
13003 else
13004 shared_flag='${wl}-bM:SRE'
13009 export_dynamic_flag_spec_FC='${wl}-bexpall'
13010 # It seems that -bexpall does not export symbols beginning with
13011 # underscore (_), so it is better to generate a list of symbols to export.
13012 always_export_symbols_FC=yes
13013 if test "$aix_use_runtimelinking" = yes; then
13014 # Warning - without using the other runtime loading flags (-brtl),
13015 # -berok will link without error, but may produce a broken library.
13016 allow_undefined_flag_FC='-berok'
13017 # Determine the default libpath from the value encoded in an
13018 # empty executable.
13019 cat > conftest.$ac_ext <<_ACEOF
13020 program main
13023 _ACEOF
13024 if ac_fn_fc_try_link "$LINENO"; then :
13026 lt_aix_libpath_sed='
13027 /Import File Strings/,/^$/ {
13028 /^0/ {
13029 s/^0 *\(.*\)$/\1/
13033 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13034 # Check for a 64-bit object if we didn't find anything.
13035 if test -z "$aix_libpath"; then
13036 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13039 rm -f core conftest.err conftest.$ac_objext \
13040 conftest$ac_exeext conftest.$ac_ext
13041 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13043 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13044 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"
13045 else
13046 if test "$host_cpu" = ia64; then
13047 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
13048 allow_undefined_flag_FC="-z nodefs"
13049 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"
13050 else
13051 # Determine the default libpath from the value encoded in an
13052 # empty executable.
13053 cat > conftest.$ac_ext <<_ACEOF
13054 program main
13057 _ACEOF
13058 if ac_fn_fc_try_link "$LINENO"; then :
13060 lt_aix_libpath_sed='
13061 /Import File Strings/,/^$/ {
13062 /^0/ {
13063 s/^0 *\(.*\)$/\1/
13067 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13068 # Check for a 64-bit object if we didn't find anything.
13069 if test -z "$aix_libpath"; then
13070 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13073 rm -f core conftest.err conftest.$ac_objext \
13074 conftest$ac_exeext conftest.$ac_ext
13075 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13077 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13078 # Warning - without using the other run time loading flags,
13079 # -berok will link without error, but may produce a broken library.
13080 no_undefined_flag_FC=' ${wl}-bernotok'
13081 allow_undefined_flag_FC=' ${wl}-berok'
13082 if test "$with_gnu_ld" = yes; then
13083 # We only use this code for GNU lds that support --whole-archive.
13084 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13085 else
13086 # Exported symbols can be pulled into shared objects from archives
13087 whole_archive_flag_spec_FC='$convenience'
13089 archive_cmds_need_lc_FC=yes
13090 # This is similar to how AIX traditionally builds its shared libraries.
13091 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'
13096 amigaos*)
13097 case $host_cpu in
13098 powerpc)
13099 # see comment about AmigaOS4 .so support
13100 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13101 archive_expsym_cmds_FC=''
13103 m68k)
13104 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)'
13105 hardcode_libdir_flag_spec_FC='-L$libdir'
13106 hardcode_minus_L_FC=yes
13108 esac
13111 bsdi[45]*)
13112 export_dynamic_flag_spec_FC=-rdynamic
13115 cygwin* | mingw* | pw32* | cegcc*)
13116 # When not using gcc, we currently assume that we are using
13117 # Microsoft Visual C++.
13118 # hardcode_libdir_flag_spec is actually meaningless, as there is
13119 # no search path for DLLs.
13120 hardcode_libdir_flag_spec_FC=' '
13121 allow_undefined_flag_FC=unsupported
13122 # Tell ltmain to make .lib files, not .a files.
13123 libext=lib
13124 # Tell ltmain to make .dll files, not .so files.
13125 shrext_cmds=".dll"
13126 # FIXME: Setting linknames here is a bad hack.
13127 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13128 # The linker will automatically build a .lib file if we build a DLL.
13129 old_archive_from_new_cmds_FC='true'
13130 # FIXME: Should let the user specify the lib program.
13131 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
13132 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
13133 enable_shared_with_static_runtimes_FC=yes
13136 darwin* | rhapsody*)
13139 archive_cmds_need_lc_FC=no
13140 hardcode_direct_FC=no
13141 hardcode_automatic_FC=yes
13142 hardcode_shlibpath_var_FC=unsupported
13143 if test "$lt_cv_ld_force_load" = "yes"; then
13144 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\"`'
13145 else
13146 whole_archive_flag_spec_FC=''
13148 link_all_deplibs_FC=yes
13149 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
13150 case $cc_basename in
13151 ifort*) _lt_dar_can_shared=yes ;;
13152 *) _lt_dar_can_shared=$GCC ;;
13153 esac
13154 if test "$_lt_dar_can_shared" = "yes"; then
13155 output_verbose_link_cmd=func_echo_all
13156 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}"
13157 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13158 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}"
13159 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}"
13161 else
13162 ld_shlibs_FC=no
13167 dgux*)
13168 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13169 hardcode_libdir_flag_spec_FC='-L$libdir'
13170 hardcode_shlibpath_var_FC=no
13173 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13174 # support. Future versions do this automatically, but an explicit c++rt0.o
13175 # does not break anything, and helps significantly (at the cost of a little
13176 # extra space).
13177 freebsd2.2*)
13178 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13179 hardcode_libdir_flag_spec_FC='-R$libdir'
13180 hardcode_direct_FC=yes
13181 hardcode_shlibpath_var_FC=no
13184 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13185 freebsd2.*)
13186 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13187 hardcode_direct_FC=yes
13188 hardcode_minus_L_FC=yes
13189 hardcode_shlibpath_var_FC=no
13192 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13193 freebsd* | dragonfly*)
13194 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13195 hardcode_libdir_flag_spec_FC='-R$libdir'
13196 hardcode_direct_FC=yes
13197 hardcode_shlibpath_var_FC=no
13200 hpux9*)
13201 if test "$GCC" = yes; then
13202 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'
13203 else
13204 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'
13206 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13207 hardcode_libdir_separator_FC=:
13208 hardcode_direct_FC=yes
13210 # hardcode_minus_L: Not really in the search PATH,
13211 # but as the default location of the library.
13212 hardcode_minus_L_FC=yes
13213 export_dynamic_flag_spec_FC='${wl}-E'
13216 hpux10*)
13217 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13218 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13219 else
13220 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13222 if test "$with_gnu_ld" = no; then
13223 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13224 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
13225 hardcode_libdir_separator_FC=:
13226 hardcode_direct_FC=yes
13227 hardcode_direct_absolute_FC=yes
13228 export_dynamic_flag_spec_FC='${wl}-E'
13229 # hardcode_minus_L: Not really in the search PATH,
13230 # but as the default location of the library.
13231 hardcode_minus_L_FC=yes
13235 hpux11*)
13236 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13237 case $host_cpu in
13238 hppa*64*)
13239 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13241 ia64*)
13242 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13245 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13247 esac
13248 else
13249 case $host_cpu in
13250 hppa*64*)
13251 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13253 ia64*)
13254 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13257 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13259 esac
13261 if test "$with_gnu_ld" = no; then
13262 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13263 hardcode_libdir_separator_FC=:
13265 case $host_cpu in
13266 hppa*64*|ia64*)
13267 hardcode_direct_FC=no
13268 hardcode_shlibpath_var_FC=no
13271 hardcode_direct_FC=yes
13272 hardcode_direct_absolute_FC=yes
13273 export_dynamic_flag_spec_FC='${wl}-E'
13275 # hardcode_minus_L: Not really in the search PATH,
13276 # but as the default location of the library.
13277 hardcode_minus_L_FC=yes
13279 esac
13283 irix5* | irix6* | nonstopux*)
13284 if test "$GCC" = yes; then
13285 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'
13286 # Try to use the -exported_symbol ld option, if it does not
13287 # work, assume that -exports_file does not work either and
13288 # implicitly export all symbols.
13289 save_LDFLAGS="$LDFLAGS"
13290 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13291 cat > conftest.$ac_ext <<_ACEOF
13292 int foo(void) {}
13293 _ACEOF
13294 if ac_fn_fc_try_link "$LINENO"; then :
13295 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'
13298 rm -f core conftest.err conftest.$ac_objext \
13299 conftest$ac_exeext conftest.$ac_ext
13300 LDFLAGS="$save_LDFLAGS"
13301 else
13302 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'
13303 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'
13305 archive_cmds_need_lc_FC='no'
13306 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13307 hardcode_libdir_separator_FC=:
13308 inherit_rpath_FC=yes
13309 link_all_deplibs_FC=yes
13312 netbsd*)
13313 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13314 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13315 else
13316 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13318 hardcode_libdir_flag_spec_FC='-R$libdir'
13319 hardcode_direct_FC=yes
13320 hardcode_shlibpath_var_FC=no
13323 newsos6)
13324 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13325 hardcode_direct_FC=yes
13326 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13327 hardcode_libdir_separator_FC=:
13328 hardcode_shlibpath_var_FC=no
13331 *nto* | *qnx*)
13334 openbsd*)
13335 if test -f /usr/libexec/ld.so; then
13336 hardcode_direct_FC=yes
13337 hardcode_shlibpath_var_FC=no
13338 hardcode_direct_absolute_FC=yes
13339 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13340 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13341 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13342 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13343 export_dynamic_flag_spec_FC='${wl}-E'
13344 else
13345 case $host_os in
13346 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13347 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13348 hardcode_libdir_flag_spec_FC='-R$libdir'
13351 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13352 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13354 esac
13356 else
13357 ld_shlibs_FC=no
13361 os2*)
13362 hardcode_libdir_flag_spec_FC='-L$libdir'
13363 hardcode_minus_L_FC=yes
13364 allow_undefined_flag_FC=unsupported
13365 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'
13366 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13369 osf3*)
13370 if test "$GCC" = yes; then
13371 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13372 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'
13373 else
13374 allow_undefined_flag_FC=' -expect_unresolved \*'
13375 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'
13377 archive_cmds_need_lc_FC='no'
13378 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13379 hardcode_libdir_separator_FC=:
13382 osf4* | osf5*) # as osf3* with the addition of -msym flag
13383 if test "$GCC" = yes; then
13384 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13385 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'
13386 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13387 else
13388 allow_undefined_flag_FC=' -expect_unresolved \*'
13389 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'
13390 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~
13391 $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'
13393 # Both c and cxx compiler support -rpath directly
13394 hardcode_libdir_flag_spec_FC='-rpath $libdir'
13396 archive_cmds_need_lc_FC='no'
13397 hardcode_libdir_separator_FC=:
13400 solaris*)
13401 no_undefined_flag_FC=' -z defs'
13402 if test "$GCC" = yes; then
13403 wlarc='${wl}'
13404 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13405 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13406 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13407 else
13408 case `$CC -V 2>&1` in
13409 *"Compilers 5.0"*)
13410 wlarc=''
13411 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13412 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13413 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13416 wlarc='${wl}'
13417 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13418 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13419 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13421 esac
13423 hardcode_libdir_flag_spec_FC='-R$libdir'
13424 hardcode_shlibpath_var_FC=no
13425 case $host_os in
13426 solaris2.[0-5] | solaris2.[0-5].*) ;;
13428 # The compiler driver will combine and reorder linker options,
13429 # but understands `-z linker_flag'. GCC discards it without `$wl',
13430 # but is careful enough not to reorder.
13431 # Supported since Solaris 2.6 (maybe 2.5.1?)
13432 if test "$GCC" = yes; then
13433 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13434 else
13435 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
13438 esac
13439 link_all_deplibs_FC=yes
13442 sunos4*)
13443 if test "x$host_vendor" = xsequent; then
13444 # Use $CC to link under sequent, because it throws in some extra .o
13445 # files that make .init and .fini sections work.
13446 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13447 else
13448 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13450 hardcode_libdir_flag_spec_FC='-L$libdir'
13451 hardcode_direct_FC=yes
13452 hardcode_minus_L_FC=yes
13453 hardcode_shlibpath_var_FC=no
13456 sysv4)
13457 case $host_vendor in
13458 sni)
13459 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13460 hardcode_direct_FC=yes # is this really true???
13462 siemens)
13463 ## LD is ld it makes a PLAMLIB
13464 ## CC just makes a GrossModule.
13465 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13466 reload_cmds_FC='$CC -r -o $output$reload_objs'
13467 hardcode_direct_FC=no
13469 motorola)
13470 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13471 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
13473 esac
13474 runpath_var='LD_RUN_PATH'
13475 hardcode_shlibpath_var_FC=no
13478 sysv4.3*)
13479 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13480 hardcode_shlibpath_var_FC=no
13481 export_dynamic_flag_spec_FC='-Bexport'
13484 sysv4*MP*)
13485 if test -d /usr/nec; then
13486 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13487 hardcode_shlibpath_var_FC=no
13488 runpath_var=LD_RUN_PATH
13489 hardcode_runpath_var=yes
13490 ld_shlibs_FC=yes
13494 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13495 no_undefined_flag_FC='${wl}-z,text'
13496 archive_cmds_need_lc_FC=no
13497 hardcode_shlibpath_var_FC=no
13498 runpath_var='LD_RUN_PATH'
13500 if test "$GCC" = yes; then
13501 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13502 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13503 else
13504 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13505 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13509 sysv5* | sco3.2v5* | sco5v6*)
13510 # Note: We can NOT use -z defs as we might desire, because we do not
13511 # link with -lc, and that would cause any symbols used from libc to
13512 # always be unresolved, which means just about no library would
13513 # ever link correctly. If we're not using GNU ld we use -z text
13514 # though, which does catch some bad symbols but isn't as heavy-handed
13515 # as -z defs.
13516 no_undefined_flag_FC='${wl}-z,text'
13517 allow_undefined_flag_FC='${wl}-z,nodefs'
13518 archive_cmds_need_lc_FC=no
13519 hardcode_shlibpath_var_FC=no
13520 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
13521 hardcode_libdir_separator_FC=':'
13522 link_all_deplibs_FC=yes
13523 export_dynamic_flag_spec_FC='${wl}-Bexport'
13524 runpath_var='LD_RUN_PATH'
13526 if test "$GCC" = yes; then
13527 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13528 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13529 else
13530 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13531 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13535 uts4*)
13536 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13537 hardcode_libdir_flag_spec_FC='-L$libdir'
13538 hardcode_shlibpath_var_FC=no
13542 ld_shlibs_FC=no
13544 esac
13546 if test x$host_vendor = xsni; then
13547 case $host in
13548 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13549 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
13551 esac
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
13556 $as_echo "$ld_shlibs_FC" >&6; }
13557 test "$ld_shlibs_FC" = no && can_build_shared=no
13559 with_gnu_ld_FC=$with_gnu_ld
13567 # Do we need to explicitly link libc?
13569 case "x$archive_cmds_need_lc_FC" in
13570 x|xyes)
13571 # Assume -lc should be added
13572 archive_cmds_need_lc_FC=yes
13574 if test "$enable_shared" = yes && test "$GCC" = yes; then
13575 case $archive_cmds_FC in
13576 *'~'*)
13577 # FIXME: we may have to deal with multi-command sequences.
13579 '$CC '*)
13580 # Test whether the compiler implicitly links with -lc since on some
13581 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13582 # to ld, don't add -lc before -lgcc.
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13584 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13585 if test "${lt_cv_archive_cmds_need_lc_FC+set}" = set; then :
13586 $as_echo_n "(cached) " >&6
13587 else
13588 $RM conftest*
13589 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13591 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13592 (eval $ac_compile) 2>&5
13593 ac_status=$?
13594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13595 test $ac_status = 0; } 2>conftest.err; then
13596 soname=conftest
13597 lib=conftest
13598 libobjs=conftest.$ac_objext
13599 deplibs=
13600 wl=$lt_prog_compiler_wl_FC
13601 pic_flag=$lt_prog_compiler_pic_FC
13602 compiler_flags=-v
13603 linker_flags=-v
13604 verstring=
13605 output_objdir=.
13606 libname=conftest
13607 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
13608 allow_undefined_flag_FC=
13609 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13610 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13611 ac_status=$?
13612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13613 test $ac_status = 0; }
13614 then
13615 lt_cv_archive_cmds_need_lc_FC=no
13616 else
13617 lt_cv_archive_cmds_need_lc_FC=yes
13619 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
13620 else
13621 cat conftest.err 1>&5
13623 $RM conftest*
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
13627 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
13628 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
13630 esac
13633 esac
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13699 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13701 library_names_spec=
13702 libname_spec='lib$name'
13703 soname_spec=
13704 shrext_cmds=".so"
13705 postinstall_cmds=
13706 postuninstall_cmds=
13707 finish_cmds=
13708 finish_eval=
13709 shlibpath_var=
13710 shlibpath_overrides_runpath=unknown
13711 version_type=none
13712 dynamic_linker="$host_os ld.so"
13713 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13714 need_lib_prefix=unknown
13715 hardcode_into_libs=no
13717 # when you set need_version to no, make sure it does not cause -set_version
13718 # flags to be left without arguments
13719 need_version=unknown
13721 case $host_os in
13722 aix3*)
13723 version_type=linux
13724 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13725 shlibpath_var=LIBPATH
13727 # AIX 3 has no versioning support, so we append a major version to the name.
13728 soname_spec='${libname}${release}${shared_ext}$major'
13731 aix[4-9]*)
13732 version_type=linux
13733 need_lib_prefix=no
13734 need_version=no
13735 hardcode_into_libs=yes
13736 if test "$host_cpu" = ia64; then
13737 # AIX 5 supports IA64
13738 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13739 shlibpath_var=LD_LIBRARY_PATH
13740 else
13741 # With GCC up to 2.95.x, collect2 would create an import file
13742 # for dependence libraries. The import file would start with
13743 # the line `#! .'. This would cause the generated library to
13744 # depend on `.', always an invalid library. This was fixed in
13745 # development snapshots of GCC prior to 3.0.
13746 case $host_os in
13747 aix4 | aix4.[01] | aix4.[01].*)
13748 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13749 echo ' yes '
13750 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13752 else
13753 can_build_shared=no
13756 esac
13757 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13758 # soname into executable. Probably we can add versioning support to
13759 # collect2, so additional links can be useful in future.
13760 if test "$aix_use_runtimelinking" = yes; then
13761 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13762 # instead of lib<name>.a to let people know that these are not
13763 # typical AIX shared libraries.
13764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13765 else
13766 # We preserve .a as extension for shared libraries through AIX4.2
13767 # and later when we are not doing run time linking.
13768 library_names_spec='${libname}${release}.a $libname.a'
13769 soname_spec='${libname}${release}${shared_ext}$major'
13771 shlibpath_var=LIBPATH
13775 amigaos*)
13776 case $host_cpu in
13777 powerpc)
13778 # Since July 2007 AmigaOS4 officially supports .so libraries.
13779 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13782 m68k)
13783 library_names_spec='$libname.ixlibrary $libname.a'
13784 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13785 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'
13787 esac
13790 beos*)
13791 library_names_spec='${libname}${shared_ext}'
13792 dynamic_linker="$host_os ld.so"
13793 shlibpath_var=LIBRARY_PATH
13796 bsdi[45]*)
13797 version_type=linux
13798 need_version=no
13799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13800 soname_spec='${libname}${release}${shared_ext}$major'
13801 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13802 shlibpath_var=LD_LIBRARY_PATH
13803 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13804 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13805 # the default ld.so.conf also contains /usr/contrib/lib and
13806 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13807 # libtool to hard-code these into programs
13810 cygwin* | mingw* | pw32* | cegcc*)
13811 version_type=windows
13812 shrext_cmds=".dll"
13813 need_version=no
13814 need_lib_prefix=no
13816 case $GCC,$host_os in
13817 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13818 library_names_spec='$libname.dll.a'
13819 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13820 postinstall_cmds='base_file=`basename \${file}`~
13821 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13822 dldir=$destdir/`dirname \$dlpath`~
13823 test -d \$dldir || mkdir -p \$dldir~
13824 $install_prog $dir/$dlname \$dldir/$dlname~
13825 chmod a+x \$dldir/$dlname~
13826 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13827 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13829 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13830 dlpath=$dir/\$dldll~
13831 $RM \$dlpath'
13832 shlibpath_overrides_runpath=yes
13834 case $host_os in
13835 cygwin*)
13836 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13837 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13840 mingw* | cegcc*)
13841 # MinGW DLLs use traditional 'lib' prefix
13842 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13844 pw32*)
13845 # pw32 DLLs use 'pw' prefix rather than 'lib'
13846 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13848 esac
13852 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13854 esac
13855 dynamic_linker='Win32 ld.exe'
13856 # FIXME: first we should search . and the directory the executable is in
13857 shlibpath_var=PATH
13860 darwin* | rhapsody*)
13861 dynamic_linker="$host_os dyld"
13862 version_type=darwin
13863 need_lib_prefix=no
13864 need_version=no
13865 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13866 soname_spec='${libname}${release}${major}$shared_ext'
13867 shlibpath_overrides_runpath=yes
13868 shlibpath_var=DYLD_LIBRARY_PATH
13869 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13871 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13874 dgux*)
13875 version_type=linux
13876 need_lib_prefix=no
13877 need_version=no
13878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13879 soname_spec='${libname}${release}${shared_ext}$major'
13880 shlibpath_var=LD_LIBRARY_PATH
13883 freebsd* | dragonfly*)
13884 # DragonFly does not have aout. When/if they implement a new
13885 # versioning mechanism, adjust this.
13886 if test -x /usr/bin/objformat; then
13887 objformat=`/usr/bin/objformat`
13888 else
13889 case $host_os in
13890 freebsd[23].*) objformat=aout ;;
13891 *) objformat=elf ;;
13892 esac
13894 version_type=freebsd-$objformat
13895 case $version_type in
13896 freebsd-elf*)
13897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13898 need_version=no
13899 need_lib_prefix=no
13901 freebsd-*)
13902 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13903 need_version=yes
13905 esac
13906 shlibpath_var=LD_LIBRARY_PATH
13907 case $host_os in
13908 freebsd2.*)
13909 shlibpath_overrides_runpath=yes
13911 freebsd3.[01]* | freebsdelf3.[01]*)
13912 shlibpath_overrides_runpath=yes
13913 hardcode_into_libs=yes
13915 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13916 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13917 shlibpath_overrides_runpath=no
13918 hardcode_into_libs=yes
13920 *) # from 4.6 on, and DragonFly
13921 shlibpath_overrides_runpath=yes
13922 hardcode_into_libs=yes
13924 esac
13927 gnu*)
13928 version_type=linux
13929 need_lib_prefix=no
13930 need_version=no
13931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13932 soname_spec='${libname}${release}${shared_ext}$major'
13933 shlibpath_var=LD_LIBRARY_PATH
13934 hardcode_into_libs=yes
13937 haiku*)
13938 version_type=linux
13939 need_lib_prefix=no
13940 need_version=no
13941 dynamic_linker="$host_os runtime_loader"
13942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13943 soname_spec='${libname}${release}${shared_ext}$major'
13944 shlibpath_var=LIBRARY_PATH
13945 shlibpath_overrides_runpath=yes
13946 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
13947 hardcode_into_libs=yes
13950 hpux9* | hpux10* | hpux11*)
13951 # Give a soname corresponding to the major version so that dld.sl refuses to
13952 # link against other versions.
13953 version_type=sunos
13954 need_lib_prefix=no
13955 need_version=no
13956 case $host_cpu in
13957 ia64*)
13958 shrext_cmds='.so'
13959 hardcode_into_libs=yes
13960 dynamic_linker="$host_os dld.so"
13961 shlibpath_var=LD_LIBRARY_PATH
13962 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13964 soname_spec='${libname}${release}${shared_ext}$major'
13965 if test "X$HPUX_IA64_MODE" = X32; then
13966 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13967 else
13968 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13970 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13972 hppa*64*)
13973 shrext_cmds='.sl'
13974 hardcode_into_libs=yes
13975 dynamic_linker="$host_os dld.sl"
13976 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13977 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13979 soname_spec='${libname}${release}${shared_ext}$major'
13980 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13981 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13984 shrext_cmds='.sl'
13985 dynamic_linker="$host_os dld.sl"
13986 shlibpath_var=SHLIB_PATH
13987 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13989 soname_spec='${libname}${release}${shared_ext}$major'
13991 esac
13992 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13993 postinstall_cmds='chmod 555 $lib'
13994 # or fails outright, so override atomically:
13995 install_override_mode=555
13998 interix[3-9]*)
13999 version_type=linux
14000 need_lib_prefix=no
14001 need_version=no
14002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14003 soname_spec='${libname}${release}${shared_ext}$major'
14004 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14005 shlibpath_var=LD_LIBRARY_PATH
14006 shlibpath_overrides_runpath=no
14007 hardcode_into_libs=yes
14010 irix5* | irix6* | nonstopux*)
14011 case $host_os in
14012 nonstopux*) version_type=nonstopux ;;
14014 if test "$lt_cv_prog_gnu_ld" = yes; then
14015 version_type=linux
14016 else
14017 version_type=irix
14018 fi ;;
14019 esac
14020 need_lib_prefix=no
14021 need_version=no
14022 soname_spec='${libname}${release}${shared_ext}$major'
14023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14024 case $host_os in
14025 irix5* | nonstopux*)
14026 libsuff= shlibsuff=
14029 case $LD in # libtool.m4 will add one of these switches to LD
14030 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14031 libsuff= shlibsuff= libmagic=32-bit;;
14032 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14033 libsuff=32 shlibsuff=N32 libmagic=N32;;
14034 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14035 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14036 *) libsuff= shlibsuff= libmagic=never-match;;
14037 esac
14039 esac
14040 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14041 shlibpath_overrides_runpath=no
14042 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14043 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14044 hardcode_into_libs=yes
14047 # No shared lib support for Linux oldld, aout, or coff.
14048 linux*oldld* | linux*aout* | linux*coff*)
14049 dynamic_linker=no
14052 # This must be Linux ELF.
14053 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14054 version_type=linux
14055 need_lib_prefix=no
14056 need_version=no
14057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14058 soname_spec='${libname}${release}${shared_ext}$major'
14059 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14060 shlibpath_var=LD_LIBRARY_PATH
14061 shlibpath_overrides_runpath=no
14063 # Some binutils ld are patched to set DT_RUNPATH
14064 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14065 $as_echo_n "(cached) " >&6
14066 else
14067 lt_cv_shlibpath_overrides_runpath=no
14068 save_LDFLAGS=$LDFLAGS
14069 save_libdir=$libdir
14070 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
14071 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
14072 cat > conftest.$ac_ext <<_ACEOF
14073 program main
14076 _ACEOF
14077 if ac_fn_fc_try_link "$LINENO"; then :
14078 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14079 lt_cv_shlibpath_overrides_runpath=yes
14082 rm -f core conftest.err conftest.$ac_objext \
14083 conftest$ac_exeext conftest.$ac_ext
14084 LDFLAGS=$save_LDFLAGS
14085 libdir=$save_libdir
14089 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14091 # This implies no fast_install, which is unacceptable.
14092 # Some rework will be needed to allow for fast_install
14093 # before this can be enabled.
14094 hardcode_into_libs=yes
14096 # Append ld.so.conf contents to the search path
14097 if test -f /etc/ld.so.conf; then
14098 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' ' '`
14099 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14102 # We used to test for /lib/ld.so.1 and disable shared libraries on
14103 # powerpc, because MkLinux only supported shared libraries with the
14104 # GNU dynamic linker. Since this was broken with cross compilers,
14105 # most powerpc-linux boxes support dynamic linking these days and
14106 # people can always --disable-shared, the test was removed, and we
14107 # assume the GNU/Linux dynamic linker is in use.
14108 dynamic_linker='GNU/Linux ld.so'
14111 netbsd*)
14112 version_type=sunos
14113 need_lib_prefix=no
14114 need_version=no
14115 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14117 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14118 dynamic_linker='NetBSD (a.out) ld.so'
14119 else
14120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14121 soname_spec='${libname}${release}${shared_ext}$major'
14122 dynamic_linker='NetBSD ld.elf_so'
14124 shlibpath_var=LD_LIBRARY_PATH
14125 shlibpath_overrides_runpath=yes
14126 hardcode_into_libs=yes
14129 newsos6)
14130 version_type=linux
14131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14132 shlibpath_var=LD_LIBRARY_PATH
14133 shlibpath_overrides_runpath=yes
14136 *nto* | *qnx*)
14137 version_type=qnx
14138 need_lib_prefix=no
14139 need_version=no
14140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14141 soname_spec='${libname}${release}${shared_ext}$major'
14142 shlibpath_var=LD_LIBRARY_PATH
14143 shlibpath_overrides_runpath=no
14144 hardcode_into_libs=yes
14145 dynamic_linker='ldqnx.so'
14148 openbsd*)
14149 version_type=sunos
14150 sys_lib_dlsearch_path_spec="/usr/lib"
14151 need_lib_prefix=no
14152 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14153 case $host_os in
14154 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14155 *) need_version=no ;;
14156 esac
14157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14158 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14159 shlibpath_var=LD_LIBRARY_PATH
14160 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14161 case $host_os in
14162 openbsd2.[89] | openbsd2.[89].*)
14163 shlibpath_overrides_runpath=no
14166 shlibpath_overrides_runpath=yes
14168 esac
14169 else
14170 shlibpath_overrides_runpath=yes
14174 os2*)
14175 libname_spec='$name'
14176 shrext_cmds=".dll"
14177 need_lib_prefix=no
14178 library_names_spec='$libname${shared_ext} $libname.a'
14179 dynamic_linker='OS/2 ld.exe'
14180 shlibpath_var=LIBPATH
14183 osf3* | osf4* | osf5*)
14184 version_type=osf
14185 need_lib_prefix=no
14186 need_version=no
14187 soname_spec='${libname}${release}${shared_ext}$major'
14188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14189 shlibpath_var=LD_LIBRARY_PATH
14190 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14191 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14194 rdos*)
14195 dynamic_linker=no
14198 solaris*)
14199 version_type=linux
14200 need_lib_prefix=no
14201 need_version=no
14202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14203 soname_spec='${libname}${release}${shared_ext}$major'
14204 shlibpath_var=LD_LIBRARY_PATH
14205 shlibpath_overrides_runpath=yes
14206 hardcode_into_libs=yes
14207 # ldd complains unless libraries are executable
14208 postinstall_cmds='chmod +x $lib'
14211 sunos4*)
14212 version_type=sunos
14213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14214 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14215 shlibpath_var=LD_LIBRARY_PATH
14216 shlibpath_overrides_runpath=yes
14217 if test "$with_gnu_ld" = yes; then
14218 need_lib_prefix=no
14220 need_version=yes
14223 sysv4 | sysv4.3*)
14224 version_type=linux
14225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14226 soname_spec='${libname}${release}${shared_ext}$major'
14227 shlibpath_var=LD_LIBRARY_PATH
14228 case $host_vendor in
14229 sni)
14230 shlibpath_overrides_runpath=no
14231 need_lib_prefix=no
14232 runpath_var=LD_RUN_PATH
14234 siemens)
14235 need_lib_prefix=no
14237 motorola)
14238 need_lib_prefix=no
14239 need_version=no
14240 shlibpath_overrides_runpath=no
14241 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14243 esac
14246 sysv4*MP*)
14247 if test -d /usr/nec ;then
14248 version_type=linux
14249 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14250 soname_spec='$libname${shared_ext}.$major'
14251 shlibpath_var=LD_LIBRARY_PATH
14255 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14256 version_type=freebsd-elf
14257 need_lib_prefix=no
14258 need_version=no
14259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14260 soname_spec='${libname}${release}${shared_ext}$major'
14261 shlibpath_var=LD_LIBRARY_PATH
14262 shlibpath_overrides_runpath=yes
14263 hardcode_into_libs=yes
14264 if test "$with_gnu_ld" = yes; then
14265 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14266 else
14267 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14268 case $host_os in
14269 sco3.2v5*)
14270 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14272 esac
14274 sys_lib_dlsearch_path_spec='/usr/lib'
14277 tpf*)
14278 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14279 version_type=linux
14280 need_lib_prefix=no
14281 need_version=no
14282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14283 shlibpath_var=LD_LIBRARY_PATH
14284 shlibpath_overrides_runpath=no
14285 hardcode_into_libs=yes
14288 uts4*)
14289 version_type=linux
14290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14291 soname_spec='${libname}${release}${shared_ext}$major'
14292 shlibpath_var=LD_LIBRARY_PATH
14296 dynamic_linker=no
14298 esac
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14300 $as_echo "$dynamic_linker" >&6; }
14301 test "$dynamic_linker" = no && can_build_shared=no
14303 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14304 if test "$GCC" = yes; then
14305 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14308 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14309 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14311 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14312 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14353 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14354 hardcode_action_FC=
14355 if test -n "$hardcode_libdir_flag_spec_FC" ||
14356 test -n "$runpath_var_FC" ||
14357 test "X$hardcode_automatic_FC" = "Xyes" ; then
14359 # We can hardcode non-existent directories.
14360 if test "$hardcode_direct_FC" != no &&
14361 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14362 # have to relink, otherwise we might link with an installed library
14363 # when we should be linking with a yet-to-be-installed one
14364 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
14365 test "$hardcode_minus_L_FC" != no; then
14366 # Linking always hardcodes the temporary library directory.
14367 hardcode_action_FC=relink
14368 else
14369 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14370 hardcode_action_FC=immediate
14372 else
14373 # We cannot hardcode anything, or else we can only hardcode existing
14374 # directories.
14375 hardcode_action_FC=unsupported
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
14378 $as_echo "$hardcode_action_FC" >&6; }
14380 if test "$hardcode_action_FC" = relink ||
14381 test "$inherit_rpath_FC" = yes; then
14382 # Fast installation is not supported
14383 enable_fast_install=no
14384 elif test "$shlibpath_overrides_runpath" = yes ||
14385 test "$enable_shared" = no; then
14386 # Fast installation is not necessary
14387 enable_fast_install=needless
14396 fi # test -n "$compiler"
14398 GCC=$lt_save_GCC
14399 CC="$lt_save_CC"
14400 fi # test "$_lt_disable_FC" != yes
14402 ac_ext=c
14403 ac_cpp='$CPP $CPPFLAGS'
14404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14409 FCFLAGS="$FCFLAGS -Wall -L../libgfortran"
14411 # For libtool versioning info, format is CURRENT:REVISION:AGE
14412 libtool_VERSION=1:0:0
14415 # Check header files.
14416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14417 $as_echo_n "checking for ANSI C header files... " >&6; }
14418 if test "${ac_cv_header_stdc+set}" = set; then :
14419 $as_echo_n "(cached) " >&6
14420 else
14421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14422 /* end confdefs.h. */
14423 #include <stdlib.h>
14424 #include <stdarg.h>
14425 #include <string.h>
14426 #include <float.h>
14429 main ()
14433 return 0;
14435 _ACEOF
14436 if ac_fn_c_try_compile "$LINENO"; then :
14437 ac_cv_header_stdc=yes
14438 else
14439 ac_cv_header_stdc=no
14441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14443 if test $ac_cv_header_stdc = yes; then
14444 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14446 /* end confdefs.h. */
14447 #include <string.h>
14449 _ACEOF
14450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14451 $EGREP "memchr" >/dev/null 2>&1; then :
14453 else
14454 ac_cv_header_stdc=no
14456 rm -f conftest*
14460 if test $ac_cv_header_stdc = yes; then
14461 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14463 /* end confdefs.h. */
14464 #include <stdlib.h>
14466 _ACEOF
14467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14468 $EGREP "free" >/dev/null 2>&1; then :
14470 else
14471 ac_cv_header_stdc=no
14473 rm -f conftest*
14477 if test $ac_cv_header_stdc = yes; then
14478 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14479 if test "$cross_compiling" = yes; then :
14481 else
14482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14483 /* end confdefs.h. */
14484 #include <ctype.h>
14485 #include <stdlib.h>
14486 #if ((' ' & 0x0FF) == 0x020)
14487 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14488 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14489 #else
14490 # define ISLOWER(c) \
14491 (('a' <= (c) && (c) <= 'i') \
14492 || ('j' <= (c) && (c) <= 'r') \
14493 || ('s' <= (c) && (c) <= 'z'))
14494 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14495 #endif
14497 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14499 main ()
14501 int i;
14502 for (i = 0; i < 256; i++)
14503 if (XOR (islower (i), ISLOWER (i))
14504 || toupper (i) != TOUPPER (i))
14505 return 2;
14506 return 0;
14508 _ACEOF
14509 if ac_fn_c_try_run "$LINENO"; then :
14511 else
14512 ac_cv_header_stdc=no
14514 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14515 conftest.$ac_objext conftest.beam conftest.$ac_ext
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14521 $as_echo "$ac_cv_header_stdc" >&6; }
14522 if test $ac_cv_header_stdc = yes; then
14524 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14529 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14530 if test "${ac_cv_header_time+set}" = set; then :
14531 $as_echo_n "(cached) " >&6
14532 else
14533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14534 /* end confdefs.h. */
14535 #include <sys/types.h>
14536 #include <sys/time.h>
14537 #include <time.h>
14540 main ()
14542 if ((struct tm *) 0)
14543 return 0;
14545 return 0;
14547 _ACEOF
14548 if ac_fn_c_try_compile "$LINENO"; then :
14549 ac_cv_header_time=yes
14550 else
14551 ac_cv_header_time=no
14553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14556 $as_echo "$ac_cv_header_time" >&6; }
14557 if test $ac_cv_header_time = yes; then
14559 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
14564 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
14565 if test "${gcc_cv_header_string+set}" = set; then :
14566 $as_echo_n "(cached) " >&6
14567 else
14568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14569 /* end confdefs.h. */
14570 #include <string.h>
14571 #include <strings.h>
14573 main ()
14577 return 0;
14579 _ACEOF
14580 if ac_fn_c_try_compile "$LINENO"; then :
14581 gcc_cv_header_string=yes
14582 else
14583 gcc_cv_header_string=no
14585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
14588 $as_echo "$gcc_cv_header_string" >&6; }
14589 if test $gcc_cv_header_string = yes; then
14591 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
14595 for ac_header in unistd.h semaphore.h sys/loadavg.h sys/time.h sys/time.h
14596 do :
14597 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14598 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14599 eval as_val=\$$as_ac_Header
14600 if test "x$as_val" = x""yes; then :
14601 cat >>confdefs.h <<_ACEOF
14602 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14603 _ACEOF
14607 done
14612 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
14614 acx_cv_header_stdint=stddef.h
14615 acx_cv_header_stdint_kind="(already complete)"
14616 for i in stdint.h $inttype_headers; do
14617 unset ac_cv_type_uintptr_t
14618 unset ac_cv_type_uintmax_t
14619 unset ac_cv_type_int_least32_t
14620 unset ac_cv_type_int_fast32_t
14621 unset ac_cv_type_uint64_t
14622 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
14623 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
14624 #include <$i>
14626 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
14627 acx_cv_header_stdint=$i
14628 else
14629 continue
14632 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
14633 #include <$i>
14635 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
14637 else
14638 acx_cv_header_stdint_kind="(mostly complete)"
14641 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
14642 #include <$i>
14644 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
14646 else
14647 acx_cv_header_stdint_kind="(mostly complete)"
14650 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
14651 #include <$i>
14653 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
14655 else
14656 acx_cv_header_stdint_kind="(mostly complete)"
14659 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
14660 #include <$i>
14662 if test "x$ac_cv_type_uint64_t" = x""yes; then :
14664 else
14665 acx_cv_header_stdint_kind="(lacks uint64_t)"
14668 break
14669 done
14670 if test "$acx_cv_header_stdint" = stddef.h; then
14671 acx_cv_header_stdint_kind="(lacks uintmax_t)"
14672 for i in stdint.h $inttype_headers; do
14673 unset ac_cv_type_uintptr_t
14674 unset ac_cv_type_uint32_t
14675 unset ac_cv_type_uint64_t
14676 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
14677 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
14678 #include <$i>
14680 if test "x$ac_cv_type_uint32_t" = x""yes; then :
14681 acx_cv_header_stdint=$i
14682 else
14683 continue
14686 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
14687 #include <$i>
14689 if test "x$ac_cv_type_uint64_t" = x""yes; then :
14693 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
14694 #include <$i>
14696 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
14700 break
14701 done
14703 if test "$acx_cv_header_stdint" = stddef.h; then
14704 acx_cv_header_stdint_kind="(u_intXX_t style)"
14705 for i in sys/types.h $inttype_headers; do
14706 unset ac_cv_type_u_int32_t
14707 unset ac_cv_type_u_int64_t
14708 $as_echo_n "looking for u_intXX_t types in $i, " >&6
14709 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
14710 #include <$i>
14712 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
14713 acx_cv_header_stdint=$i
14714 else
14715 continue
14718 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
14719 #include <$i>
14721 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
14725 break
14726 done
14728 if test "$acx_cv_header_stdint" = stddef.h; then
14729 acx_cv_header_stdint_kind="(using manual detection)"
14732 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
14733 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
14734 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
14735 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
14736 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
14738 # ----------------- Summarize what we found so far
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
14741 $as_echo_n "checking what to include in gstdint.h... " >&6; }
14743 case `$as_basename -- gstdint.h ||
14744 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
14745 Xgstdint.h : 'X\(//\)$' \| \
14746 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
14747 $as_echo X/gstdint.h |
14748 sed '/^.*\/\([^/][^/]*\)\/*$/{
14749 s//\1/
14752 /^X\/\(\/\/\)$/{
14753 s//\1/
14756 /^X\/\(\/\).*/{
14757 s//\1/
14760 s/.*/./; q'` in
14761 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
14762 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14763 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
14764 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14765 *) ;;
14766 esac
14768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
14769 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
14771 # ----------------- done included file, check C basic types --------
14773 # Lacking an uintptr_t? Test size of void *
14774 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
14775 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
14776 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14777 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14778 # This bug is HP SR number 8606223364.
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
14780 $as_echo_n "checking size of void *... " >&6; }
14781 if test "${ac_cv_sizeof_void_p+set}" = set; then :
14782 $as_echo_n "(cached) " >&6
14783 else
14784 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
14786 else
14787 if test "$ac_cv_type_void_p" = yes; then
14788 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14789 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14790 { as_fn_set_status 77
14791 as_fn_error "cannot compute sizeof (void *)
14792 See \`config.log' for more details." "$LINENO" 5; }; }
14793 else
14794 ac_cv_sizeof_void_p=0
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
14800 $as_echo "$ac_cv_sizeof_void_p" >&6; }
14804 cat >>confdefs.h <<_ACEOF
14805 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14806 _ACEOF
14809 esac
14811 # Lacking an uint64_t? Test size of long
14812 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
14813 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
14814 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14815 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14816 # This bug is HP SR number 8606223364.
14817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
14818 $as_echo_n "checking size of long... " >&6; }
14819 if test "${ac_cv_sizeof_long+set}" = set; then :
14820 $as_echo_n "(cached) " >&6
14821 else
14822 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
14824 else
14825 if test "$ac_cv_type_long" = yes; then
14826 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14827 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14828 { as_fn_set_status 77
14829 as_fn_error "cannot compute sizeof (long)
14830 See \`config.log' for more details." "$LINENO" 5; }; }
14831 else
14832 ac_cv_sizeof_long=0
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
14838 $as_echo "$ac_cv_sizeof_long" >&6; }
14842 cat >>confdefs.h <<_ACEOF
14843 #define SIZEOF_LONG $ac_cv_sizeof_long
14844 _ACEOF
14847 esac
14849 if test $acx_cv_header_stdint = stddef.h; then
14850 # Lacking a good header? Test size of everything and deduce all types.
14851 # The cast to long int works around a bug in the HP C Compiler
14852 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14853 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14854 # This bug is HP SR number 8606223364.
14855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
14856 $as_echo_n "checking size of int... " >&6; }
14857 if test "${ac_cv_sizeof_int+set}" = set; then :
14858 $as_echo_n "(cached) " >&6
14859 else
14860 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
14862 else
14863 if test "$ac_cv_type_int" = yes; then
14864 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14865 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14866 { as_fn_set_status 77
14867 as_fn_error "cannot compute sizeof (int)
14868 See \`config.log' for more details." "$LINENO" 5; }; }
14869 else
14870 ac_cv_sizeof_int=0
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
14876 $as_echo "$ac_cv_sizeof_int" >&6; }
14880 cat >>confdefs.h <<_ACEOF
14881 #define SIZEOF_INT $ac_cv_sizeof_int
14882 _ACEOF
14885 # The cast to long int works around a bug in the HP C Compiler
14886 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14887 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14888 # This bug is HP SR number 8606223364.
14889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
14890 $as_echo_n "checking size of short... " >&6; }
14891 if test "${ac_cv_sizeof_short+set}" = set; then :
14892 $as_echo_n "(cached) " >&6
14893 else
14894 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
14896 else
14897 if test "$ac_cv_type_short" = yes; then
14898 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14899 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14900 { as_fn_set_status 77
14901 as_fn_error "cannot compute sizeof (short)
14902 See \`config.log' for more details." "$LINENO" 5; }; }
14903 else
14904 ac_cv_sizeof_short=0
14909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
14910 $as_echo "$ac_cv_sizeof_short" >&6; }
14914 cat >>confdefs.h <<_ACEOF
14915 #define SIZEOF_SHORT $ac_cv_sizeof_short
14916 _ACEOF
14919 # The cast to long int works around a bug in the HP C Compiler
14920 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14921 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14922 # This bug is HP SR number 8606223364.
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
14924 $as_echo_n "checking size of char... " >&6; }
14925 if test "${ac_cv_sizeof_char+set}" = set; then :
14926 $as_echo_n "(cached) " >&6
14927 else
14928 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
14930 else
14931 if test "$ac_cv_type_char" = yes; then
14932 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14933 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14934 { as_fn_set_status 77
14935 as_fn_error "cannot compute sizeof (char)
14936 See \`config.log' for more details." "$LINENO" 5; }; }
14937 else
14938 ac_cv_sizeof_char=0
14943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
14944 $as_echo "$ac_cv_sizeof_char" >&6; }
14948 cat >>confdefs.h <<_ACEOF
14949 #define SIZEOF_CHAR $ac_cv_sizeof_char
14950 _ACEOF
14954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
14955 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
14956 case "$ac_cv_sizeof_char" in
14957 1) acx_cv_type_int8_t=char ;;
14958 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
14959 esac
14960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
14961 $as_echo "$acx_cv_type_int8_t" >&6; }
14963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
14964 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
14965 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
14966 2:*) acx_cv_type_int16_t=int ;;
14967 *:2) acx_cv_type_int16_t=short ;;
14968 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
14969 esac
14970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
14971 $as_echo "$acx_cv_type_int16_t" >&6; }
14973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
14974 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
14975 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
14976 4:*) acx_cv_type_int32_t=int ;;
14977 *:4) acx_cv_type_int32_t=long ;;
14978 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
14979 esac
14980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
14981 $as_echo "$acx_cv_type_int32_t" >&6; }
14984 # These tests are here to make the output prettier
14986 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
14987 case "$ac_cv_sizeof_long" in
14988 8) acx_cv_type_int64_t=long ;;
14989 esac
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
14991 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
14993 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
14996 # Now we can use the above types
14998 if test "$ac_cv_type_uintptr_t" != yes; then
14999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
15000 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
15001 case $ac_cv_sizeof_void_p in
15002 2) acx_cv_type_intptr_t=int16_t ;;
15003 4) acx_cv_type_intptr_t=int32_t ;;
15004 8) acx_cv_type_intptr_t=int64_t ;;
15005 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
15006 esac
15007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
15008 $as_echo "$acx_cv_type_intptr_t" >&6; }
15011 # ----------------- done all checks, emit header -------------
15012 ac_config_commands="$ac_config_commands gstdint.h"
15017 # Check to see if -pthread or -lpthread is needed. Prefer the former.
15018 # In case the pthread.h system header is not found, this test will fail.
15019 XPCFLAGS=""
15020 CFLAGS="$CFLAGS -pthread"
15021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15022 /* end confdefs.h. */
15023 #include <pthread.h>
15024 void *g(void *d) { return NULL; }
15026 main ()
15028 pthread_t t; pthread_create(&t,NULL,g,NULL);
15030 return 0;
15032 _ACEOF
15033 if ac_fn_c_try_link "$LINENO"; then :
15034 XPCFLAGS=" -Wc,-pthread"
15035 else
15036 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
15037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15038 /* end confdefs.h. */
15039 #include <pthread.h>
15040 void *g(void *d) { return NULL; }
15042 main ()
15044 pthread_t t; pthread_create(&t,NULL,g,NULL);
15046 return 0;
15048 _ACEOF
15049 if ac_fn_c_try_link "$LINENO"; then :
15051 else
15052 as_fn_error "Pthreads are required to build libgomp" "$LINENO" 5
15054 rm -f core conftest.err conftest.$ac_objext \
15055 conftest$ac_exeext conftest.$ac_ext
15057 rm -f core conftest.err conftest.$ac_objext \
15058 conftest$ac_exeext conftest.$ac_ext
15060 plugin_support=yes
15061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
15062 $as_echo_n "checking for dlsym in -ldl... " >&6; }
15063 if test "${ac_cv_lib_dl_dlsym+set}" = set; then :
15064 $as_echo_n "(cached) " >&6
15065 else
15066 ac_check_lib_save_LIBS=$LIBS
15067 LIBS="-ldl $LIBS"
15068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15069 /* end confdefs.h. */
15071 /* Override any GCC internal prototype to avoid an error.
15072 Use char because int might match the return type of a GCC
15073 builtin and then its argument prototype would still apply. */
15074 #ifdef __cplusplus
15075 extern "C"
15076 #endif
15077 char dlsym ();
15079 main ()
15081 return dlsym ();
15083 return 0;
15085 _ACEOF
15086 if ac_fn_c_try_link "$LINENO"; then :
15087 ac_cv_lib_dl_dlsym=yes
15088 else
15089 ac_cv_lib_dl_dlsym=no
15091 rm -f core conftest.err conftest.$ac_objext \
15092 conftest$ac_exeext conftest.$ac_ext
15093 LIBS=$ac_check_lib_save_LIBS
15095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
15096 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
15097 if test "x$ac_cv_lib_dl_dlsym" = x""yes; then :
15098 cat >>confdefs.h <<_ACEOF
15099 #define HAVE_LIBDL 1
15100 _ACEOF
15102 LIBS="-ldl $LIBS"
15104 else
15105 plugin_support=no
15108 if test x"$plugin_support" = xyes; then
15110 $as_echo "#define PLUGIN_SUPPORT 1" >>confdefs.h
15112 elif test "x${enable_offload_targets-no}" != xno; then
15113 as_fn_error "Can't support offloading without support for plugins" "$LINENO" 5
15118 subdirs="$subdirs plugin"
15121 # Check for functions needed.
15122 for ac_func in getloadavg clock_gettime strtoull
15123 do :
15124 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15125 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15126 eval as_val=\$$as_ac_var
15127 if test "x$as_val" = x""yes; then :
15128 cat >>confdefs.h <<_ACEOF
15129 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15130 _ACEOF
15133 done
15136 # Check for broken semaphore implementation on darwin.
15137 # sem_init returns: sem_init error: Function not implemented.
15138 case "$host" in
15139 *-darwin*)
15141 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
15144 esac
15146 # Check whether --enable-linux-futex was given.
15147 if test "${enable_linux_futex+set}" = set; then :
15148 enableval=$enable_linux_futex;
15149 case "$enableval" in
15150 yes|no|default) ;;
15151 *) as_fn_error "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
15152 esac
15154 else
15155 enable_linux_futex=default
15159 case "$target" in
15160 *-linux*)
15161 case "$enable_linux_futex" in
15162 default)
15163 # If headers don't have gettid/futex syscalls definition, then
15164 # default to no, otherwise there will be compile time failures.
15165 # Otherwise, default to yes. If we don't detect we are
15166 # compiled/linked against NPTL and not cross-compiling, check
15167 # if programs are run by default against NPTL and if not, issue
15168 # a warning.
15169 enable_linux_futex=no
15170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15171 /* end confdefs.h. */
15172 #include <sys/syscall.h>
15173 int lk;
15175 main ()
15177 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15179 return 0;
15181 _ACEOF
15182 if ac_fn_c_try_link "$LINENO"; then :
15183 save_LIBS="$LIBS"
15184 LIBS="-lpthread $LIBS"
15185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15186 /* end confdefs.h. */
15187 #ifndef _GNU_SOURCE
15188 #define _GNU_SOURCE 1
15189 #endif
15190 #include <pthread.h>
15191 pthread_t th; void *status;
15193 main ()
15195 pthread_tryjoin_np (th, &status);
15197 return 0;
15199 _ACEOF
15200 if ac_fn_c_try_link "$LINENO"; then :
15201 enable_linux_futex=yes
15202 else
15203 if test x$cross_compiling = xno; then
15204 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
15205 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
15206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
15207 If so, please configure with --disable-linux-futex" >&5
15208 $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
15209 If so, please configure with --disable-linux-futex" >&2;}
15212 enable_linux_futex=yes
15214 rm -f core conftest.err conftest.$ac_objext \
15215 conftest$ac_exeext conftest.$ac_ext
15216 LIBS="$save_LIBS"
15218 rm -f core conftest.err conftest.$ac_objext \
15219 conftest$ac_exeext conftest.$ac_ext
15221 yes)
15222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15223 /* end confdefs.h. */
15224 #include <sys/syscall.h>
15225 int lk;
15227 main ()
15229 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15231 return 0;
15233 _ACEOF
15234 if ac_fn_c_try_link "$LINENO"; then :
15236 else
15237 as_fn_error "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
15239 rm -f core conftest.err conftest.$ac_objext \
15240 conftest$ac_exeext conftest.$ac_ext
15242 esac
15245 enable_linux_futex=no
15247 esac
15248 if test x$enable_linux_futex = xyes; then
15253 # Check for pthread_{,attr_}[sg]etaffinity_np.
15254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15255 /* end confdefs.h. */
15256 #define _GNU_SOURCE
15257 #include <pthread.h>
15259 main ()
15261 cpu_set_t cpuset;
15262 pthread_attr_t attr;
15263 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15264 if (CPU_ISSET (0, &cpuset))
15265 CPU_SET (1, &cpuset);
15266 else
15267 CPU_ZERO (&cpuset);
15268 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15269 pthread_attr_init (&attr);
15270 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15271 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15273 return 0;
15275 _ACEOF
15276 if ac_fn_c_try_link "$LINENO"; then :
15278 $as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h
15281 rm -f core conftest.err conftest.$ac_objext \
15282 conftest$ac_exeext conftest.$ac_ext
15284 # At least for glibc, clock_gettime is in librt. But don't pull that
15285 # in if it still doesn't give us the function we want.
15286 if test $ac_cv_func_clock_gettime = no; then
15287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
15288 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
15289 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
15290 $as_echo_n "(cached) " >&6
15291 else
15292 ac_check_lib_save_LIBS=$LIBS
15293 LIBS="-lrt $LIBS"
15294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15295 /* end confdefs.h. */
15297 /* Override any GCC internal prototype to avoid an error.
15298 Use char because int might match the return type of a GCC
15299 builtin and then its argument prototype would still apply. */
15300 #ifdef __cplusplus
15301 extern "C"
15302 #endif
15303 char clock_gettime ();
15305 main ()
15307 return clock_gettime ();
15309 return 0;
15311 _ACEOF
15312 if ac_fn_c_try_link "$LINENO"; then :
15313 ac_cv_lib_rt_clock_gettime=yes
15314 else
15315 ac_cv_lib_rt_clock_gettime=no
15317 rm -f core conftest.err conftest.$ac_objext \
15318 conftest$ac_exeext conftest.$ac_ext
15319 LIBS=$ac_check_lib_save_LIBS
15321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
15322 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15323 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
15324 LIBS="-lrt $LIBS"
15326 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
15332 # See if we support thread-local storage.
15335 # Check whether --enable-tls was given.
15336 if test "${enable_tls+set}" = set; then :
15337 enableval=$enable_tls;
15338 case "$enableval" in
15339 yes|no) ;;
15340 *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
15341 esac
15343 else
15344 enable_tls=yes
15348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
15349 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
15350 if test "${gcc_cv_have_tls+set}" = set; then :
15351 $as_echo_n "(cached) " >&6
15352 else
15354 if test "$cross_compiling" = yes; then :
15355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15356 /* end confdefs.h. */
15357 __thread int a; int b; int main() { return a = b; }
15358 _ACEOF
15359 if ac_fn_c_try_link "$LINENO"; then :
15360 chktls_save_LDFLAGS="$LDFLAGS"
15361 case $host in
15362 *-*-linux*)
15363 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
15365 esac
15366 chktls_save_CFLAGS="$CFLAGS"
15367 CFLAGS="-fPIC $CFLAGS"
15368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15369 /* end confdefs.h. */
15370 int f() { return 0; }
15371 _ACEOF
15372 if ac_fn_c_try_link "$LINENO"; then :
15373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15374 /* end confdefs.h. */
15375 __thread int a; int b; int f() { return a = b; }
15376 _ACEOF
15377 if ac_fn_c_try_link "$LINENO"; then :
15378 gcc_cv_have_tls=yes
15379 else
15380 gcc_cv_have_tls=no
15382 rm -f core conftest.err conftest.$ac_objext \
15383 conftest$ac_exeext conftest.$ac_ext
15384 else
15385 gcc_cv_have_tls=yes
15387 rm -f core conftest.err conftest.$ac_objext \
15388 conftest$ac_exeext conftest.$ac_ext
15389 CFLAGS="$chktls_save_CFLAGS"
15390 LDFLAGS="$chktls_save_LDFLAGS"
15391 else
15392 gcc_cv_have_tls=no
15394 rm -f core conftest.err conftest.$ac_objext \
15395 conftest$ac_exeext conftest.$ac_ext
15398 else
15399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15400 /* end confdefs.h. */
15401 __thread int a; int b; int main() { return a = b; }
15402 _ACEOF
15403 if ac_fn_c_try_run "$LINENO"; then :
15404 chktls_save_LDFLAGS="$LDFLAGS"
15405 LDFLAGS="-static $LDFLAGS"
15406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15407 /* end confdefs.h. */
15408 int main() { return 0; }
15409 _ACEOF
15410 if ac_fn_c_try_link "$LINENO"; then :
15411 if test "$cross_compiling" = yes; then :
15412 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15413 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15414 as_fn_error "cannot run test program while cross compiling
15415 See \`config.log' for more details." "$LINENO" 5; }
15416 else
15417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15418 /* end confdefs.h. */
15419 __thread int a; int b; int main() { return a = b; }
15420 _ACEOF
15421 if ac_fn_c_try_run "$LINENO"; then :
15422 gcc_cv_have_tls=yes
15423 else
15424 gcc_cv_have_tls=no
15426 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15427 conftest.$ac_objext conftest.beam conftest.$ac_ext
15430 else
15431 gcc_cv_have_tls=yes
15433 rm -f core conftest.err conftest.$ac_objext \
15434 conftest$ac_exeext conftest.$ac_ext
15435 LDFLAGS="$chktls_save_LDFLAGS"
15436 if test $gcc_cv_have_tls = yes; then
15437 chktls_save_CFLAGS="$CFLAGS"
15438 thread_CFLAGS=failed
15439 for flag in '' '-pthread' '-lpthread'; do
15440 CFLAGS="$flag $chktls_save_CFLAGS"
15441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15442 /* end confdefs.h. */
15443 #include <pthread.h>
15444 void *g(void *d) { return NULL; }
15446 main ()
15448 pthread_t t; pthread_create(&t,NULL,g,NULL);
15450 return 0;
15452 _ACEOF
15453 if ac_fn_c_try_link "$LINENO"; then :
15454 thread_CFLAGS="$flag"
15456 rm -f core conftest.err conftest.$ac_objext \
15457 conftest$ac_exeext conftest.$ac_ext
15458 if test "X$thread_CFLAGS" != Xfailed; then
15459 break
15461 done
15462 CFLAGS="$chktls_save_CFLAGS"
15463 if test "X$thread_CFLAGS" != Xfailed; then
15464 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
15465 if test "$cross_compiling" = yes; then :
15466 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15467 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15468 as_fn_error "cannot run test program while cross compiling
15469 See \`config.log' for more details." "$LINENO" 5; }
15470 else
15471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15472 /* end confdefs.h. */
15473 #include <pthread.h>
15474 __thread int a;
15475 static int *volatile a_in_other_thread;
15476 static void *
15477 thread_func (void *arg)
15479 a_in_other_thread = &a;
15480 return (void *)0;
15483 main ()
15485 pthread_t thread;
15486 void *thread_retval;
15487 int *volatile a_in_main_thread;
15488 a_in_main_thread = &a;
15489 if (pthread_create (&thread, (pthread_attr_t *)0,
15490 thread_func, (void *)0))
15491 return 0;
15492 if (pthread_join (thread, &thread_retval))
15493 return 0;
15494 return (a_in_other_thread == a_in_main_thread);
15496 return 0;
15498 _ACEOF
15499 if ac_fn_c_try_run "$LINENO"; then :
15500 gcc_cv_have_tls=yes
15501 else
15502 gcc_cv_have_tls=no
15504 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15505 conftest.$ac_objext conftest.beam conftest.$ac_ext
15508 CFLAGS="$chktls_save_CFLAGS"
15511 else
15512 gcc_cv_have_tls=no
15514 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15515 conftest.$ac_objext conftest.beam conftest.$ac_ext
15519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
15520 $as_echo "$gcc_cv_have_tls" >&6; }
15521 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
15523 $as_echo "#define HAVE_TLS 1" >>confdefs.h
15527 # See if we have emulated thread-local storage.
15529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the thread-local storage support is from emutls" >&5
15530 $as_echo_n "checking whether the thread-local storage support is from emutls... " >&6; }
15531 if test "${gcc_cv_use_emutls+set}" = set; then :
15532 $as_echo_n "(cached) " >&6
15533 else
15535 gcc_cv_use_emutls=no
15536 echo '__thread int a; int b; int main() { return a = b; }' > conftest.c
15537 if { ac_try='${CC-cc} -Werror -S -o conftest.s conftest.c 1>&5'
15538 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15539 (eval $ac_try) 2>&5
15540 ac_status=$?
15541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15542 test $ac_status = 0; }; }; then
15543 if grep __emutls_get_address conftest.s > /dev/null; then
15544 gcc_cv_use_emutls=yes
15547 rm -f conftest.*
15550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_use_emutls" >&5
15551 $as_echo "$gcc_cv_use_emutls" >&6; }
15552 if test "$gcc_cv_use_emutls" = "yes" ; then
15554 $as_echo "#define USE_EMUTLS 1" >>confdefs.h
15558 # See what sort of export controls are available.
15560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
15561 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
15562 if test "${libgomp_cv_have_attribute_visibility+set}" = set; then :
15563 $as_echo_n "(cached) " >&6
15564 else
15566 save_CFLAGS="$CFLAGS"
15567 CFLAGS="$CFLAGS -Werror"
15568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15569 /* end confdefs.h. */
15570 void __attribute__((visibility("hidden"))) foo(void) { }
15572 main ()
15576 return 0;
15578 _ACEOF
15579 if ac_fn_c_try_compile "$LINENO"; then :
15580 libgomp_cv_have_attribute_visibility=yes
15581 else
15582 libgomp_cv_have_attribute_visibility=no
15584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15585 CFLAGS="$save_CFLAGS"
15587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_visibility" >&5
15588 $as_echo "$libgomp_cv_have_attribute_visibility" >&6; }
15589 if test $libgomp_cv_have_attribute_visibility = yes; then
15591 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
15595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
15596 $as_echo_n "checking whether the target supports dllexport... " >&6; }
15597 if test "${libgomp_cv_have_attribute_dllexport+set}" = set; then :
15598 $as_echo_n "(cached) " >&6
15599 else
15601 save_CFLAGS="$CFLAGS"
15602 CFLAGS="$CFLAGS -Werror"
15603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15604 /* end confdefs.h. */
15605 void __attribute__((dllexport)) foo(void) { }
15607 main ()
15611 return 0;
15613 _ACEOF
15614 if ac_fn_c_try_compile "$LINENO"; then :
15615 libgomp_cv_have_attribute_dllexport=yes
15616 else
15617 libgomp_cv_have_attribute_dllexport=no
15619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15620 CFLAGS="$save_CFLAGS"
15622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_dllexport" >&5
15623 $as_echo "$libgomp_cv_have_attribute_dllexport" >&6; }
15624 if test $libgomp_cv_have_attribute_dllexport = yes; then
15626 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
15630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
15631 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
15632 if test "${libgomp_cv_have_attribute_alias+set}" = set; then :
15633 $as_echo_n "(cached) " >&6
15634 else
15636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15637 /* end confdefs.h. */
15639 void foo(void) { }
15640 extern void bar(void) __attribute__((alias("foo")));
15642 main ()
15644 bar();
15646 return 0;
15648 _ACEOF
15649 if ac_fn_c_try_link "$LINENO"; then :
15650 libgomp_cv_have_attribute_alias=yes
15651 else
15652 libgomp_cv_have_attribute_alias=no
15654 rm -f core conftest.err conftest.$ac_objext \
15655 conftest$ac_exeext conftest.$ac_ext
15657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_alias" >&5
15658 $as_echo "$libgomp_cv_have_attribute_alias" >&6; }
15659 if test $libgomp_cv_have_attribute_alias = yes; then
15661 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
15666 # Check whether --with-gnu-ld was given.
15667 if test "${with_gnu_ld+set}" = set; then :
15668 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15669 else
15670 with_gnu_ld=no
15673 ac_prog=ld
15674 if test "$GCC" = yes; then
15675 # Check if gcc -print-prog-name=ld gives a path.
15676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15677 $as_echo_n "checking for ld used by $CC... " >&6; }
15678 case $host in
15679 *-*-mingw*)
15680 # gcc leaves a trailing carriage return which upsets mingw
15681 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15683 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15684 esac
15685 case $ac_prog in
15686 # Accept absolute paths.
15687 [\\/]* | ?:[\\/]*)
15688 re_direlt='/[^/][^/]*/\.\./'
15689 # Canonicalize the pathname of ld
15690 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15691 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15692 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15693 done
15694 test -z "$LD" && LD="$ac_prog"
15697 # If it fails, then pretend we aren't using GCC.
15698 ac_prog=ld
15701 # If it is relative, then search for the first ld in PATH.
15702 with_gnu_ld=unknown
15704 esac
15705 elif test "$with_gnu_ld" = yes; then
15706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15707 $as_echo_n "checking for GNU ld... " >&6; }
15708 else
15709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15710 $as_echo_n "checking for non-GNU ld... " >&6; }
15712 if test "${lt_cv_path_LD+set}" = set; then :
15713 $as_echo_n "(cached) " >&6
15714 else
15715 if test -z "$LD"; then
15716 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15717 for ac_dir in $PATH; do
15718 IFS="$lt_save_ifs"
15719 test -z "$ac_dir" && ac_dir=.
15720 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15721 lt_cv_path_LD="$ac_dir/$ac_prog"
15722 # Check to see if the program is GNU ld. I'd rather use --version,
15723 # but apparently some variants of GNU ld only accept -v.
15724 # Break only if it was the GNU/non-GNU ld that we prefer.
15725 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15726 *GNU* | *'with BFD'*)
15727 test "$with_gnu_ld" != no && break
15730 test "$with_gnu_ld" != yes && break
15732 esac
15734 done
15735 IFS="$lt_save_ifs"
15736 else
15737 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15741 LD="$lt_cv_path_LD"
15742 if test -n "$LD"; then
15743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15744 $as_echo "$LD" >&6; }
15745 else
15746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15747 $as_echo "no" >&6; }
15749 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
15750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15751 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15752 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
15753 $as_echo_n "(cached) " >&6
15754 else
15755 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15756 case `$LD -v 2>&1 </dev/null` in
15757 *GNU* | *'with BFD'*)
15758 lt_cv_prog_gnu_ld=yes
15761 lt_cv_prog_gnu_ld=no
15763 esac
15765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15766 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15767 with_gnu_ld=$lt_cv_prog_gnu_ld
15775 # If we're not using GNU ld, then there's no point in even trying these
15776 # tests. Check for that first. We should have already tested for gld
15777 # by now (in libtool), but require it now just to be safe...
15778 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
15779 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
15783 # The name set by libtool depends on the version of libtool. Shame on us
15784 # for depending on an impl detail, but c'est la vie. Older versions used
15785 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
15786 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
15787 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
15788 # set (hence we're using an older libtool), then set it.
15789 if test x${with_gnu_ld+set} != xset; then
15790 if test x${ac_cv_prog_gnu_ld+set} != xset; then
15791 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
15792 with_gnu_ld=no
15793 else
15794 with_gnu_ld=$ac_cv_prog_gnu_ld
15798 # Start by getting the version number. I think the libtool test already
15799 # does some of this, but throws away the result.
15800 libgomp_ld_is_gold=no
15801 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
15802 libgomp_ld_is_gold=yes
15805 ldver=`$LD --version 2>/dev/null |
15806 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'`
15808 libgomp_gnu_ld_version=`echo $ldver | \
15809 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
15811 # Set --gc-sections.
15812 if test "$with_gnu_ld" = "notbroken"; then
15813 # GNU ld it is! Joy and bunny rabbits!
15815 # All these tests are for C++; save the language and the compiler flags.
15816 # Need to do this so that g++ won't try to link in libstdc++
15817 ac_test_CFLAGS="${CFLAGS+set}"
15818 ac_save_CFLAGS="$CFLAGS"
15819 CFLAGS='-x c++ -Wl,--gc-sections'
15821 # Check for -Wl,--gc-sections
15822 # XXX This test is broken at the moment, as symbols required for linking
15823 # are now in libsupc++ (not built yet). In addition, this test has
15824 # cored on solaris in the past. In addition, --gc-sections doesn't
15825 # really work at the moment (keeps on discarding used sections, first
15826 # .eh_frame and now some of the glibc sections for iconv).
15827 # Bzzzzt. Thanks for playing, maybe next time.
15828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
15829 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
15830 if test "$cross_compiling" = yes; then :
15831 ac_sectionLDflags=yes
15832 else
15833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15834 /* end confdefs.h. */
15836 int main(void)
15838 try { throw 1; }
15839 catch (...) { };
15840 return 0;
15843 _ACEOF
15844 if ac_fn_c_try_run "$LINENO"; then :
15845 ac_sectionLDflags=yes
15846 else
15847 ac_sectionLDflags=no
15849 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15850 conftest.$ac_objext conftest.beam conftest.$ac_ext
15853 if test "$ac_test_CFLAGS" = set; then
15854 CFLAGS="$ac_save_CFLAGS"
15855 else
15856 # this is the suspicious part
15857 CFLAGS=''
15859 if test "$ac_sectionLDflags" = "yes"; then
15860 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
15862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
15863 $as_echo "$ac_sectionLDflags" >&6; }
15866 # Set linker optimization flags.
15867 if test x"$with_gnu_ld" = x"yes"; then
15868 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
15876 # Check whether --enable-symvers was given.
15877 if test "${enable_symvers+set}" = set; then :
15878 enableval=$enable_symvers;
15879 case "$enableval" in
15880 yes|no|gnu*|sun) ;;
15881 *) as_fn_error "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
15882 esac
15884 else
15885 enable_symvers=yes
15890 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
15891 # don't know enough about $LD to do tricks...
15894 # Turn a 'yes' into a suitable default.
15895 if test x$enable_symvers = xyes ; then
15896 # FIXME The following test is too strict, in theory.
15897 if test $enable_shared = no || test "x$LD" = x; then
15898 enable_symvers=no
15899 else
15900 if test $with_gnu_ld = yes ; then
15901 enable_symvers=gnu
15902 else
15903 case ${target_os} in
15904 # Sun symbol versioning exists since Solaris 2.5.
15905 solaris2.[5-9]* | solaris2.1[0-9]*)
15906 enable_symvers=sun ;;
15908 enable_symvers=no ;;
15909 esac
15914 # Check if 'sun' was requested on non-Solaris 2 platforms.
15915 if test x$enable_symvers = xsun ; then
15916 case ${target_os} in
15917 solaris2*)
15918 # All fine.
15921 # Unlikely to work.
15922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
15923 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
15924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
15925 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
15926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15927 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15928 enable_symvers=no
15930 esac
15933 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
15934 if test $enable_symvers != no; then
15935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
15936 $as_echo_n "checking for shared libgcc... " >&6; }
15937 ac_save_CFLAGS="$CFLAGS"
15938 CFLAGS=' -lgcc_s'
15939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15940 /* end confdefs.h. */
15943 main ()
15945 return 0;
15947 return 0;
15949 _ACEOF
15950 if ac_fn_c_try_link "$LINENO"; then :
15951 libgomp_shared_libgcc=yes
15952 else
15953 libgomp_shared_libgcc=no
15955 rm -f core conftest.err conftest.$ac_objext \
15956 conftest$ac_exeext conftest.$ac_ext
15957 CFLAGS="$ac_save_CFLAGS"
15958 if test $libgomp_shared_libgcc = no; then
15959 cat > conftest.c <<EOF
15960 int main (void) { return 0; }
15962 libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
15963 -shared -shared-libgcc -o conftest.so \
15964 conftest.c -v 2>&1 >/dev/null \
15965 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
15966 rm -f conftest.c conftest.so
15967 if test x${libgomp_libgcc_s_suffix+set} = xset; then
15968 CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
15969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15970 /* end confdefs.h. */
15973 main ()
15975 return 0;
15977 return 0;
15979 _ACEOF
15980 if ac_fn_c_try_link "$LINENO"; then :
15981 libgomp_shared_libgcc=yes
15983 rm -f core conftest.err conftest.$ac_objext \
15984 conftest$ac_exeext conftest.$ac_ext
15985 CFLAGS="$ac_save_CFLAGS"
15988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_shared_libgcc" >&5
15989 $as_echo "$libgomp_shared_libgcc" >&6; }
15992 # For GNU ld, we need at least this version. The format is described in
15993 # LIBGOMP_CHECK_LINKER_FEATURES above.
15994 libgomp_min_gnu_ld_version=21400
15995 # XXXXXXXXXXX libgomp_gnu_ld_version=21390
15997 # Check to see if unspecified "yes" value can win, given results above.
15998 # Change "yes" into either "no" or a style name.
15999 if test $enable_symvers != no && test $libgomp_shared_libgcc = yes; then
16000 if test $with_gnu_ld = yes; then
16001 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
16002 enable_symvers=gnu
16003 elif test $libgomp_ld_is_gold = yes ; then
16004 enable_symvers=gnu
16005 else
16006 # The right tools, the right setup, but too old. Fallbacks?
16007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
16008 $as_echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
16009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
16010 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
16011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
16012 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
16013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
16014 $as_echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
16015 if test $libgomp_gnu_ld_version -ge 21200 ; then
16016 # Globbing fix is present, proper block support is not.
16017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16018 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16019 enable_symvers=no
16020 else
16021 # 2.11 or older.
16022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16023 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16024 enable_symvers=no
16027 elif test $enable_symvers = sun; then
16028 : All interesting versions of Sun ld support sun style symbol versioning.
16029 else
16030 # just fail for now
16031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
16032 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
16033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
16034 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
16035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
16036 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
16037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16038 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16039 enable_symvers=no
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports .symver directive" >&5
16044 $as_echo_n "checking whether the target supports .symver directive... " >&6; }
16045 if test "${libgomp_cv_have_as_symver_directive+set}" = set; then :
16046 $as_echo_n "(cached) " >&6
16047 else
16049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16050 /* end confdefs.h. */
16051 void foo (void); __asm (".symver foo, bar@SYMVER");
16053 main ()
16057 return 0;
16059 _ACEOF
16060 if ac_fn_c_try_compile "$LINENO"; then :
16061 libgomp_cv_have_as_symver_directive=yes
16062 else
16063 libgomp_cv_have_as_symver_directive=no
16065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_as_symver_directive" >&5
16068 $as_echo "$libgomp_cv_have_as_symver_directive" >&6; }
16069 if test $libgomp_cv_have_as_symver_directive = yes; then
16071 $as_echo "#define HAVE_AS_SYMVER_DIRECTIVE 1" >>confdefs.h
16075 if test $enable_symvers != no; then
16076 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
16077 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
16078 else
16079 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
16080 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
16083 if test $enable_symvers = gnu; then
16084 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE=
16085 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
16086 else
16087 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
16088 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE=
16091 if test $enable_symvers = sun; then
16092 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE=
16093 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
16094 else
16095 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
16096 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE=
16099 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
16100 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
16102 if test $enable_symvers != no ; then
16103 case ${target_os} in
16104 # The Solaris 2 runtime linker doesn't support the GNU extension of
16105 # binding the same symbol to different versions
16106 solaris2*)
16108 # Other platforms with GNU symbol versioning (GNU/Linux, more?) do.
16111 $as_echo "#define HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT 1" >>confdefs.h
16114 esac
16118 if test $enable_symvers = gnu; then
16120 $as_echo "#define LIBGOMP_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
16124 # Get target configury.
16125 . ${srcdir}/configure.tgt
16126 CFLAGS="$save_CFLAGS $XCFLAGS"
16128 # Check for __sync_val_compare_and_swap, but only after the target has
16129 # had a chance to set XCFLAGS.
16131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
16132 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
16133 if test "${libgomp_cv_have_sync_builtins+set}" = set; then :
16134 $as_echo_n "(cached) " >&6
16135 else
16137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16138 /* end confdefs.h. */
16141 main ()
16143 int foo; __sync_val_compare_and_swap(&foo, 0, 1);
16145 return 0;
16147 _ACEOF
16148 if ac_fn_c_try_link "$LINENO"; then :
16149 libgomp_cv_have_sync_builtins=yes
16150 else
16151 libgomp_cv_have_sync_builtins=no
16153 rm -f core conftest.err conftest.$ac_objext \
16154 conftest$ac_exeext conftest.$ac_ext
16156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_sync_builtins" >&5
16157 $as_echo "$libgomp_cv_have_sync_builtins" >&6; }
16158 if test $libgomp_cv_have_sync_builtins = yes; then
16160 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
16164 XCFLAGS="$XCFLAGS$XPCFLAGS"
16170 # Cleanup and exit.
16171 CFLAGS="$save_CFLAGS"
16172 cat >confcache <<\_ACEOF
16173 # This file is a shell script that caches the results of configure
16174 # tests run on this system so they can be shared between configure
16175 # scripts and configure runs, see configure's option --config-cache.
16176 # It is not useful on other systems. If it contains results you don't
16177 # want to keep, you may remove or edit it.
16179 # config.status only pays attention to the cache file if you give it
16180 # the --recheck option to rerun configure.
16182 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16183 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16184 # following values.
16186 _ACEOF
16188 # The following way of writing the cache mishandles newlines in values,
16189 # but we know of no workaround that is simple, portable, and efficient.
16190 # So, we kill variables containing newlines.
16191 # Ultrix sh set writes to stderr and can't be redirected directly,
16192 # and sets the high bit in the cache file unless we assign to the vars.
16194 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16195 eval ac_val=\$$ac_var
16196 case $ac_val in #(
16197 *${as_nl}*)
16198 case $ac_var in #(
16199 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16200 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16201 esac
16202 case $ac_var in #(
16203 _ | IFS | as_nl) ;; #(
16204 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16205 *) { eval $ac_var=; unset $ac_var;} ;;
16206 esac ;;
16207 esac
16208 done
16210 (set) 2>&1 |
16211 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16212 *${as_nl}ac_space=\ *)
16213 # `set' does not quote correctly, so add quotes: double-quote
16214 # substitution turns \\\\ into \\, and sed turns \\ into \.
16215 sed -n \
16216 "s/'/'\\\\''/g;
16217 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16218 ;; #(
16220 # `set' quotes correctly as required by POSIX, so do not add quotes.
16221 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16223 esac |
16224 sort
16226 sed '
16227 /^ac_cv_env_/b end
16228 t clear
16229 :clear
16230 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16231 t end
16232 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16233 :end' >>confcache
16234 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16235 if test -w "$cache_file"; then
16236 test "x$cache_file" != "x/dev/null" &&
16237 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16238 $as_echo "$as_me: updating cache $cache_file" >&6;}
16239 cat confcache >$cache_file
16240 else
16241 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16242 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16245 rm -f confcache
16247 if test ${multilib} = yes; then
16248 multilib_arg="--enable-multilib"
16249 else
16250 multilib_arg=
16253 # Get accel target and path to install tree of accel compiler
16254 offload_additional_options=
16255 offload_additional_lib_paths=
16256 offload_targets=host_nonshm
16257 if test x"$enable_offload_targets" != x; then
16258 for tgt in `echo $enable_offload_targets | sed -e 's#,# #g'`; do
16259 tgt_dir=`echo $tgt | grep '=' | sed 's/.*=//'`
16260 tgt=`echo $tgt | sed 's/=.*//'`
16261 case $tgt in
16262 *-intelmic-* | *-intelmicemul-*)
16263 tgt_name="intelmic" ;;
16265 as_fn_error "unknown offload target specified" "$LINENO" 5 ;;
16266 esac
16267 if test x"$offload_targets" = x; then
16268 offload_targets=$tgt_name
16269 else
16270 offload_targets=$offload_targets,$tgt_name
16272 if test x"$tgt_dir" != x; then
16273 offload_additional_options="$offload_additional_options -B$tgt_dir/libexec/gcc/\$(target_alias)/\$(gcc_version) -B$tgt_dir/bin"
16274 offload_additional_lib_paths="$offload_additional_lib_paths:$tgt_dir/lib64:$tgt_dir/lib"
16275 else
16276 offload_additional_options="$offload_additional_options -B\$(libexecdir)/gcc/\$(target_alias)/\$(gcc_version) -B\$(bindir)"
16277 offload_additional_lib_paths="$offload_additional_lib_paths:$toolexeclibdir"
16279 done
16282 cat >>confdefs.h <<_ACEOF
16283 #define OFFLOAD_TARGETS "$offload_targets"
16284 _ACEOF
16290 # Set up the set of libraries that we need to link against for libgomp.
16291 # Note that the GOMP_SELF_SPEC in gcc.c may force -pthread,
16292 # which will force linkage against -lpthread (or equivalent for the system).
16293 # That's not 100% ideal, but about the best we can do easily.
16294 if test $enable_shared = yes; then
16295 link_gomp="-lgomp %{static: $LIBS}"
16296 else
16297 link_gomp="-lgomp $LIBS"
16301 if test "$ac_cv_fc_compiler_gnu" = yes; then
16302 USE_FORTRAN_TRUE=
16303 USE_FORTRAN_FALSE='#'
16304 else
16305 USE_FORTRAN_TRUE='#'
16306 USE_FORTRAN_FALSE=
16310 # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
16311 # and export AC_COMPUTE_INT. If that happens, then we'll need to remove
16312 # the underscore here and update the PREREQ. If it doesn't, then we'll
16313 # need to copy this macro to our acinclude.m4.
16314 save_CFLAGS="$CFLAGS"
16315 for i in $config_path; do
16316 if test -f $srcdir/config/$i/omp-lock.h; then
16317 CFLAGS="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h"
16318 break
16320 done
16322 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_t)" "OMP_LOCK_SIZE" ""; then :
16324 else
16325 as_fn_error "unsupported system, cannot find sizeof (omp_lock_t)" "$LINENO" 5
16329 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_t)" "OMP_LOCK_ALIGN" ""; then :
16334 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_t)" "OMP_NEST_LOCK_SIZE" ""; then :
16339 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_t)" "OMP_NEST_LOCK_ALIGN" ""; then :
16344 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_25_t)" "OMP_LOCK_25_SIZE" ""; then :
16346 else
16347 as_fn_error "unsupported system, cannot find sizeof (omp_lock_25_t)" "$LINENO" 5
16351 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_25_t)" "OMP_LOCK_25_ALIGN" ""; then :
16356 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_SIZE" ""; then :
16361 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_ALIGN" ""; then :
16367 # If the lock fits in an integer, then arrange for Fortran to use that
16368 # integer. If it doesn't, then arrange for Fortran to use a pointer.
16369 # Except that we don't have a way at present to multi-lib the installed
16370 # Fortran modules, so we assume 8 bytes for pointers, regardless of the
16371 # actual target.
16372 OMP_LOCK_KIND=$OMP_LOCK_SIZE
16373 OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
16374 if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
16375 OMP_LOCK_KIND=8
16377 if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
16378 OMP_NEST_LOCK_KIND=8
16380 OMP_LOCK_25_KIND=$OMP_LOCK_25_SIZE
16381 OMP_NEST_LOCK_25_KIND=$OMP_NEST_LOCK_25_SIZE
16382 if test $OMP_LOCK_25_SIZE -gt 8 || test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then
16383 OMP_LOCK_25_KIND=8
16385 if test $OMP_NEST_LOCK_25_SIZE -gt 8 || test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then
16386 OMP_NEST_LOCK_25_KIND=8
16401 CFLAGS="$save_CFLAGS"
16403 ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
16405 ac_config_files="$ac_config_files Makefile testsuite/Makefile"
16407 ac_config_files="$ac_config_files libgomp.spec"
16409 cat >confcache <<\_ACEOF
16410 # This file is a shell script that caches the results of configure
16411 # tests run on this system so they can be shared between configure
16412 # scripts and configure runs, see configure's option --config-cache.
16413 # It is not useful on other systems. If it contains results you don't
16414 # want to keep, you may remove or edit it.
16416 # config.status only pays attention to the cache file if you give it
16417 # the --recheck option to rerun configure.
16419 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16420 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16421 # following values.
16423 _ACEOF
16425 # The following way of writing the cache mishandles newlines in values,
16426 # but we know of no workaround that is simple, portable, and efficient.
16427 # So, we kill variables containing newlines.
16428 # Ultrix sh set writes to stderr and can't be redirected directly,
16429 # and sets the high bit in the cache file unless we assign to the vars.
16431 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16432 eval ac_val=\$$ac_var
16433 case $ac_val in #(
16434 *${as_nl}*)
16435 case $ac_var in #(
16436 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16437 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16438 esac
16439 case $ac_var in #(
16440 _ | IFS | as_nl) ;; #(
16441 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16442 *) { eval $ac_var=; unset $ac_var;} ;;
16443 esac ;;
16444 esac
16445 done
16447 (set) 2>&1 |
16448 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16449 *${as_nl}ac_space=\ *)
16450 # `set' does not quote correctly, so add quotes: double-quote
16451 # substitution turns \\\\ into \\, and sed turns \\ into \.
16452 sed -n \
16453 "s/'/'\\\\''/g;
16454 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16455 ;; #(
16457 # `set' quotes correctly as required by POSIX, so do not add quotes.
16458 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16460 esac |
16461 sort
16463 sed '
16464 /^ac_cv_env_/b end
16465 t clear
16466 :clear
16467 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16468 t end
16469 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16470 :end' >>confcache
16471 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16472 if test -w "$cache_file"; then
16473 test "x$cache_file" != "x/dev/null" &&
16474 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16475 $as_echo "$as_me: updating cache $cache_file" >&6;}
16476 cat confcache >$cache_file
16477 else
16478 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16479 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16482 rm -f confcache
16484 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16485 # Let make expand exec_prefix.
16486 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16488 DEFS=-DHAVE_CONFIG_H
16490 ac_libobjs=
16491 ac_ltlibobjs=
16492 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16493 # 1. Remove the extension, and $U if already installed.
16494 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16495 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16496 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16497 # will be set to the directory where LIBOBJS objects are built.
16498 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16499 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16500 done
16501 LIBOBJS=$ac_libobjs
16503 LTLIBOBJS=$ac_ltlibobjs
16506 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
16507 as_fn_error "conditional \"GENINSRC\" was never defined.
16508 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16510 if test -n "$EXEEXT"; then
16511 am__EXEEXT_TRUE=
16512 am__EXEEXT_FALSE='#'
16513 else
16514 am__EXEEXT_TRUE='#'
16515 am__EXEEXT_FALSE=
16518 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16519 as_fn_error "conditional \"AMDEP\" was never defined.
16520 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16522 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16523 as_fn_error "conditional \"am__fastdepCC\" was never defined.
16524 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16526 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
16527 as_fn_error "conditional \"BUILD_INFO\" was never defined.
16528 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16530 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16531 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
16532 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16534 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
16535 as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
16536 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16538 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
16539 as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
16540 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16542 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
16543 as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
16544 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16546 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
16547 as_fn_error "conditional \"USE_FORTRAN\" was never defined.
16548 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16551 : ${CONFIG_STATUS=./config.status}
16552 ac_write_fail=0
16553 ac_clean_files_save=$ac_clean_files
16554 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16555 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16556 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16557 as_write_fail=0
16558 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16559 #! $SHELL
16560 # Generated by $as_me.
16561 # Run this file to recreate the current configuration.
16562 # Compiler output produced by configure, useful for debugging
16563 # configure, is in config.log if it exists.
16565 debug=false
16566 ac_cs_recheck=false
16567 ac_cs_silent=false
16569 SHELL=\${CONFIG_SHELL-$SHELL}
16570 export SHELL
16571 _ASEOF
16572 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16573 ## -------------------- ##
16574 ## M4sh Initialization. ##
16575 ## -------------------- ##
16577 # Be more Bourne compatible
16578 DUALCASE=1; export DUALCASE # for MKS sh
16579 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16580 emulate sh
16581 NULLCMD=:
16582 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16583 # is contrary to our usage. Disable this feature.
16584 alias -g '${1+"$@"}'='"$@"'
16585 setopt NO_GLOB_SUBST
16586 else
16587 case `(set -o) 2>/dev/null` in #(
16588 *posix*) :
16589 set -o posix ;; #(
16590 *) :
16592 esac
16596 as_nl='
16598 export as_nl
16599 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16600 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16601 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16602 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16603 # Prefer a ksh shell builtin over an external printf program on Solaris,
16604 # but without wasting forks for bash or zsh.
16605 if test -z "$BASH_VERSION$ZSH_VERSION" \
16606 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16607 as_echo='print -r --'
16608 as_echo_n='print -rn --'
16609 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16610 as_echo='printf %s\n'
16611 as_echo_n='printf %s'
16612 else
16613 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16614 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16615 as_echo_n='/usr/ucb/echo -n'
16616 else
16617 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16618 as_echo_n_body='eval
16619 arg=$1;
16620 case $arg in #(
16621 *"$as_nl"*)
16622 expr "X$arg" : "X\\(.*\\)$as_nl";
16623 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16624 esac;
16625 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16627 export as_echo_n_body
16628 as_echo_n='sh -c $as_echo_n_body as_echo'
16630 export as_echo_body
16631 as_echo='sh -c $as_echo_body as_echo'
16634 # The user is always right.
16635 if test "${PATH_SEPARATOR+set}" != set; then
16636 PATH_SEPARATOR=:
16637 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16638 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16639 PATH_SEPARATOR=';'
16644 # IFS
16645 # We need space, tab and new line, in precisely that order. Quoting is
16646 # there to prevent editors from complaining about space-tab.
16647 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16648 # splitting by setting IFS to empty value.)
16649 IFS=" "" $as_nl"
16651 # Find who we are. Look in the path if we contain no directory separator.
16652 case $0 in #((
16653 *[\\/]* ) as_myself=$0 ;;
16654 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16655 for as_dir in $PATH
16657 IFS=$as_save_IFS
16658 test -z "$as_dir" && as_dir=.
16659 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16660 done
16661 IFS=$as_save_IFS
16664 esac
16665 # We did not find ourselves, most probably we were run as `sh COMMAND'
16666 # in which case we are not to be found in the path.
16667 if test "x$as_myself" = x; then
16668 as_myself=$0
16670 if test ! -f "$as_myself"; then
16671 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16672 exit 1
16675 # Unset variables that we do not need and which cause bugs (e.g. in
16676 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16677 # suppresses any "Segmentation fault" message there. '((' could
16678 # trigger a bug in pdksh 5.2.14.
16679 for as_var in BASH_ENV ENV MAIL MAILPATH
16680 do eval test x\${$as_var+set} = xset \
16681 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16682 done
16683 PS1='$ '
16684 PS2='> '
16685 PS4='+ '
16687 # NLS nuisances.
16688 LC_ALL=C
16689 export LC_ALL
16690 LANGUAGE=C
16691 export LANGUAGE
16693 # CDPATH.
16694 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16697 # as_fn_error ERROR [LINENO LOG_FD]
16698 # ---------------------------------
16699 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16700 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16701 # script with status $?, using 1 if that was 0.
16702 as_fn_error ()
16704 as_status=$?; test $as_status -eq 0 && as_status=1
16705 if test "$3"; then
16706 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16707 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16709 $as_echo "$as_me: error: $1" >&2
16710 as_fn_exit $as_status
16711 } # as_fn_error
16714 # as_fn_set_status STATUS
16715 # -----------------------
16716 # Set $? to STATUS, without forking.
16717 as_fn_set_status ()
16719 return $1
16720 } # as_fn_set_status
16722 # as_fn_exit STATUS
16723 # -----------------
16724 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16725 as_fn_exit ()
16727 set +e
16728 as_fn_set_status $1
16729 exit $1
16730 } # as_fn_exit
16732 # as_fn_unset VAR
16733 # ---------------
16734 # Portably unset VAR.
16735 as_fn_unset ()
16737 { eval $1=; unset $1;}
16739 as_unset=as_fn_unset
16740 # as_fn_append VAR VALUE
16741 # ----------------------
16742 # Append the text in VALUE to the end of the definition contained in VAR. Take
16743 # advantage of any shell optimizations that allow amortized linear growth over
16744 # repeated appends, instead of the typical quadratic growth present in naive
16745 # implementations.
16746 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16747 eval 'as_fn_append ()
16749 eval $1+=\$2
16751 else
16752 as_fn_append ()
16754 eval $1=\$$1\$2
16756 fi # as_fn_append
16758 # as_fn_arith ARG...
16759 # ------------------
16760 # Perform arithmetic evaluation on the ARGs, and store the result in the
16761 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16762 # must be portable across $(()) and expr.
16763 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16764 eval 'as_fn_arith ()
16766 as_val=$(( $* ))
16768 else
16769 as_fn_arith ()
16771 as_val=`expr "$@" || test $? -eq 1`
16773 fi # as_fn_arith
16776 if expr a : '\(a\)' >/dev/null 2>&1 &&
16777 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16778 as_expr=expr
16779 else
16780 as_expr=false
16783 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16784 as_basename=basename
16785 else
16786 as_basename=false
16789 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16790 as_dirname=dirname
16791 else
16792 as_dirname=false
16795 as_me=`$as_basename -- "$0" ||
16796 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16797 X"$0" : 'X\(//\)$' \| \
16798 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16799 $as_echo X/"$0" |
16800 sed '/^.*\/\([^/][^/]*\)\/*$/{
16801 s//\1/
16804 /^X\/\(\/\/\)$/{
16805 s//\1/
16808 /^X\/\(\/\).*/{
16809 s//\1/
16812 s/.*/./; q'`
16814 # Avoid depending upon Character Ranges.
16815 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16816 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16817 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16818 as_cr_digits='0123456789'
16819 as_cr_alnum=$as_cr_Letters$as_cr_digits
16821 ECHO_C= ECHO_N= ECHO_T=
16822 case `echo -n x` in #(((((
16823 -n*)
16824 case `echo 'xy\c'` in
16825 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16826 xy) ECHO_C='\c';;
16827 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16828 ECHO_T=' ';;
16829 esac;;
16831 ECHO_N='-n';;
16832 esac
16834 rm -f conf$$ conf$$.exe conf$$.file
16835 if test -d conf$$.dir; then
16836 rm -f conf$$.dir/conf$$.file
16837 else
16838 rm -f conf$$.dir
16839 mkdir conf$$.dir 2>/dev/null
16841 if (echo >conf$$.file) 2>/dev/null; then
16842 if ln -s conf$$.file conf$$ 2>/dev/null; then
16843 as_ln_s='ln -s'
16844 # ... but there are two gotchas:
16845 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16846 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16847 # In both cases, we have to default to `cp -p'.
16848 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16849 as_ln_s='cp -p'
16850 elif ln conf$$.file conf$$ 2>/dev/null; then
16851 as_ln_s=ln
16852 else
16853 as_ln_s='cp -p'
16855 else
16856 as_ln_s='cp -p'
16858 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16859 rmdir conf$$.dir 2>/dev/null
16862 # as_fn_mkdir_p
16863 # -------------
16864 # Create "$as_dir" as a directory, including parents if necessary.
16865 as_fn_mkdir_p ()
16868 case $as_dir in #(
16869 -*) as_dir=./$as_dir;;
16870 esac
16871 test -d "$as_dir" || eval $as_mkdir_p || {
16872 as_dirs=
16873 while :; do
16874 case $as_dir in #(
16875 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16876 *) as_qdir=$as_dir;;
16877 esac
16878 as_dirs="'$as_qdir' $as_dirs"
16879 as_dir=`$as_dirname -- "$as_dir" ||
16880 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16881 X"$as_dir" : 'X\(//\)[^/]' \| \
16882 X"$as_dir" : 'X\(//\)$' \| \
16883 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16884 $as_echo X"$as_dir" |
16885 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16886 s//\1/
16889 /^X\(\/\/\)[^/].*/{
16890 s//\1/
16893 /^X\(\/\/\)$/{
16894 s//\1/
16897 /^X\(\/\).*/{
16898 s//\1/
16901 s/.*/./; q'`
16902 test -d "$as_dir" && break
16903 done
16904 test -z "$as_dirs" || eval "mkdir $as_dirs"
16905 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16908 } # as_fn_mkdir_p
16909 if mkdir -p . 2>/dev/null; then
16910 as_mkdir_p='mkdir -p "$as_dir"'
16911 else
16912 test -d ./-p && rmdir ./-p
16913 as_mkdir_p=false
16916 if test -x / >/dev/null 2>&1; then
16917 as_test_x='test -x'
16918 else
16919 if ls -dL / >/dev/null 2>&1; then
16920 as_ls_L_option=L
16921 else
16922 as_ls_L_option=
16924 as_test_x='
16925 eval sh -c '\''
16926 if test -d "$1"; then
16927 test -d "$1/.";
16928 else
16929 case $1 in #(
16930 -*)set "./$1";;
16931 esac;
16932 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16933 ???[sx]*):;;*)false;;esac;fi
16934 '\'' sh
16937 as_executable_p=$as_test_x
16939 # Sed expression to map a string onto a valid CPP name.
16940 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16942 # Sed expression to map a string onto a valid variable name.
16943 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16946 exec 6>&1
16947 ## ----------------------------------- ##
16948 ## Main body of $CONFIG_STATUS script. ##
16949 ## ----------------------------------- ##
16950 _ASEOF
16951 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16953 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16954 # Save the log message, to keep $0 and so on meaningful, and to
16955 # report actual input values of CONFIG_FILES etc. instead of their
16956 # values after options handling.
16957 ac_log="
16958 This file was extended by GNU OpenMP Runtime Library $as_me 1.0, which was
16959 generated by GNU Autoconf 2.64. Invocation command line was
16961 CONFIG_FILES = $CONFIG_FILES
16962 CONFIG_HEADERS = $CONFIG_HEADERS
16963 CONFIG_LINKS = $CONFIG_LINKS
16964 CONFIG_COMMANDS = $CONFIG_COMMANDS
16965 $ $0 $@
16967 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16970 _ACEOF
16972 case $ac_config_files in *"
16973 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16974 esac
16976 case $ac_config_headers in *"
16977 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16978 esac
16981 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16982 # Files that config.status was made for.
16983 config_files="$ac_config_files"
16984 config_headers="$ac_config_headers"
16985 config_commands="$ac_config_commands"
16987 _ACEOF
16989 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16990 ac_cs_usage="\
16991 \`$as_me' instantiates files and other configuration actions
16992 from templates according to the current configuration. Unless the files
16993 and actions are specified as TAGs, all are instantiated by default.
16995 Usage: $0 [OPTION]... [TAG]...
16997 -h, --help print this help, then exit
16998 -V, --version print version number and configuration settings, then exit
16999 -q, --quiet, --silent
17000 do not print progress messages
17001 -d, --debug don't remove temporary files
17002 --recheck update $as_me by reconfiguring in the same conditions
17003 --file=FILE[:TEMPLATE]
17004 instantiate the configuration file FILE
17005 --header=FILE[:TEMPLATE]
17006 instantiate the configuration header FILE
17008 Configuration files:
17009 $config_files
17011 Configuration headers:
17012 $config_headers
17014 Configuration commands:
17015 $config_commands
17017 Report bugs to the package provider.
17018 GNU OpenMP Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
17019 General help using GNU software: <http://www.gnu.org/gethelp/>."
17021 _ACEOF
17022 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17023 ac_cs_version="\\
17024 GNU OpenMP Runtime Library config.status 1.0
17025 configured by $0, generated by GNU Autoconf 2.64,
17026 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17028 Copyright (C) 2009 Free Software Foundation, Inc.
17029 This config.status script is free software; the Free Software Foundation
17030 gives unlimited permission to copy, distribute and modify it."
17032 ac_pwd='$ac_pwd'
17033 srcdir='$srcdir'
17034 INSTALL='$INSTALL'
17035 MKDIR_P='$MKDIR_P'
17036 AWK='$AWK'
17037 test -n "\$AWK" || AWK=awk
17038 _ACEOF
17040 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17041 # The default lists apply if the user does not specify any file.
17042 ac_need_defaults=:
17043 while test $# != 0
17045 case $1 in
17046 --*=*)
17047 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17048 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17049 ac_shift=:
17052 ac_option=$1
17053 ac_optarg=$2
17054 ac_shift=shift
17056 esac
17058 case $ac_option in
17059 # Handling of the options.
17060 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17061 ac_cs_recheck=: ;;
17062 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17063 $as_echo "$ac_cs_version"; exit ;;
17064 --debug | --debu | --deb | --de | --d | -d )
17065 debug=: ;;
17066 --file | --fil | --fi | --f )
17067 $ac_shift
17068 case $ac_optarg in
17069 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17070 esac
17071 as_fn_append CONFIG_FILES " '$ac_optarg'"
17072 ac_need_defaults=false;;
17073 --header | --heade | --head | --hea )
17074 $ac_shift
17075 case $ac_optarg in
17076 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17077 esac
17078 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17079 ac_need_defaults=false;;
17080 --he | --h)
17081 # Conflict between --help and --header
17082 as_fn_error "ambiguous option: \`$1'
17083 Try \`$0 --help' for more information.";;
17084 --help | --hel | -h )
17085 $as_echo "$ac_cs_usage"; exit ;;
17086 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17087 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17088 ac_cs_silent=: ;;
17090 # This is an error.
17091 -*) as_fn_error "unrecognized option: \`$1'
17092 Try \`$0 --help' for more information." ;;
17094 *) as_fn_append ac_config_targets " $1"
17095 ac_need_defaults=false ;;
17097 esac
17098 shift
17099 done
17101 ac_configure_extra_args=
17103 if $ac_cs_silent; then
17104 exec 6>/dev/null
17105 ac_configure_extra_args="$ac_configure_extra_args --silent"
17108 _ACEOF
17109 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17110 if \$ac_cs_recheck; then
17111 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17112 shift
17113 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17114 CONFIG_SHELL='$SHELL'
17115 export CONFIG_SHELL
17116 exec "\$@"
17119 _ACEOF
17120 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17121 exec 5>>config.log
17123 echo
17124 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17125 ## Running $as_me. ##
17126 _ASBOX
17127 $as_echo "$ac_log"
17128 } >&5
17130 _ACEOF
17131 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17133 # INIT-COMMANDS
17136 srcdir="$srcdir"
17137 host="$host"
17138 target="$target"
17139 with_multisubdir="$with_multisubdir"
17140 with_multisrctop="$with_multisrctop"
17141 with_target_subdir="$with_target_subdir"
17142 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17143 multi_basedir="$multi_basedir"
17144 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17145 CC="$CC"
17146 CXX="$CXX"
17147 GFORTRAN="$GFORTRAN"
17148 GCJ="$GCJ"
17149 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17152 # The HP-UX ksh and POSIX shell print the target directory to stdout
17153 # if CDPATH is set.
17154 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17156 sed_quote_subst='$sed_quote_subst'
17157 double_quote_subst='$double_quote_subst'
17158 delay_variable_subst='$delay_variable_subst'
17159 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17160 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17161 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17162 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17163 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17164 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17165 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17166 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17167 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17168 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17169 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17170 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17171 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17172 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17173 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17174 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17175 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17176 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17177 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17178 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17179 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17180 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17181 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17182 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17183 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17184 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17185 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17186 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17187 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17188 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17189 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17190 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17191 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17192 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17193 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17194 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17195 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17196 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17197 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17198 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17199 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17200 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17201 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17202 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17203 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17204 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17205 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17206 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17207 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"`'
17208 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17209 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17210 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17211 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17212 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17213 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17214 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17215 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17216 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17217 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17218 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17219 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17220 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17221 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17222 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17223 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17224 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17225 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17226 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17227 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17228 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17229 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17230 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17231 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17232 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17233 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17234 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17235 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17236 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17237 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17238 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17239 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17240 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17241 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17242 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17243 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17244 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17245 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17246 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17247 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17248 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17249 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17250 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17251 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17252 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17253 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17254 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17255 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17256 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17257 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17258 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17259 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17260 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17261 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17262 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17263 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17264 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17265 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17266 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17267 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17268 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17269 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17270 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17271 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17272 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17273 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17274 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17275 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17276 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17277 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17278 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17279 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17280 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17281 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17282 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17283 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17284 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17285 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
17286 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
17287 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
17288 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17289 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
17290 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
17291 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
17292 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
17293 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
17294 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
17295 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
17296 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
17297 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
17298 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17299 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17300 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
17301 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
17302 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
17303 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17304 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17305 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
17306 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17307 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
17308 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17309 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17310 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17311 hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
17312 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
17313 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
17314 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
17315 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
17316 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
17317 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
17318 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
17319 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
17320 fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
17321 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
17322 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
17323 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17324 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17325 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
17326 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
17327 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
17328 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
17329 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
17330 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
17331 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
17332 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
17333 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
17335 LTCC='$LTCC'
17336 LTCFLAGS='$LTCFLAGS'
17337 compiler='$compiler_DEFAULT'
17339 # A function that is used when there is no print builtin or printf.
17340 func_fallback_echo ()
17342 eval 'cat <<_LTECHO_EOF
17344 _LTECHO_EOF'
17347 # Quote evaled strings.
17348 for var in SHELL \
17349 ECHO \
17350 SED \
17351 GREP \
17352 EGREP \
17353 FGREP \
17354 LD \
17355 NM \
17356 LN_S \
17357 lt_SP2NL \
17358 lt_NL2SP \
17359 reload_flag \
17360 OBJDUMP \
17361 deplibs_check_method \
17362 file_magic_cmd \
17363 AR \
17364 AR_FLAGS \
17365 STRIP \
17366 RANLIB \
17367 CC \
17368 CFLAGS \
17369 compiler \
17370 lt_cv_sys_global_symbol_pipe \
17371 lt_cv_sys_global_symbol_to_cdecl \
17372 lt_cv_sys_global_symbol_to_c_name_address \
17373 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17374 lt_prog_compiler_no_builtin_flag \
17375 lt_prog_compiler_wl \
17376 lt_prog_compiler_pic \
17377 lt_prog_compiler_static \
17378 lt_cv_prog_compiler_c_o \
17379 need_locks \
17380 DSYMUTIL \
17381 NMEDIT \
17382 LIPO \
17383 OTOOL \
17384 OTOOL64 \
17385 shrext_cmds \
17386 export_dynamic_flag_spec \
17387 whole_archive_flag_spec \
17388 compiler_needs_object \
17389 with_gnu_ld \
17390 allow_undefined_flag \
17391 no_undefined_flag \
17392 hardcode_libdir_flag_spec \
17393 hardcode_libdir_flag_spec_ld \
17394 hardcode_libdir_separator \
17395 fix_srcfile_path \
17396 exclude_expsyms \
17397 include_expsyms \
17398 file_list_spec \
17399 variables_saved_for_relink \
17400 libname_spec \
17401 library_names_spec \
17402 soname_spec \
17403 install_override_mode \
17404 finish_eval \
17405 old_striplib \
17406 striplib \
17407 compiler_lib_search_dirs \
17408 predep_objects \
17409 postdep_objects \
17410 predeps \
17411 postdeps \
17412 compiler_lib_search_path \
17413 LD_FC \
17414 reload_flag_FC \
17415 compiler_FC \
17416 lt_prog_compiler_no_builtin_flag_FC \
17417 lt_prog_compiler_wl_FC \
17418 lt_prog_compiler_pic_FC \
17419 lt_prog_compiler_static_FC \
17420 lt_cv_prog_compiler_c_o_FC \
17421 export_dynamic_flag_spec_FC \
17422 whole_archive_flag_spec_FC \
17423 compiler_needs_object_FC \
17424 with_gnu_ld_FC \
17425 allow_undefined_flag_FC \
17426 no_undefined_flag_FC \
17427 hardcode_libdir_flag_spec_FC \
17428 hardcode_libdir_flag_spec_ld_FC \
17429 hardcode_libdir_separator_FC \
17430 fix_srcfile_path_FC \
17431 exclude_expsyms_FC \
17432 include_expsyms_FC \
17433 file_list_spec_FC \
17434 compiler_lib_search_dirs_FC \
17435 predep_objects_FC \
17436 postdep_objects_FC \
17437 predeps_FC \
17438 postdeps_FC \
17439 compiler_lib_search_path_FC; do
17440 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17441 *[\\\\\\\`\\"\\\$]*)
17442 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17445 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17447 esac
17448 done
17450 # Double-quote double-evaled strings.
17451 for var in reload_cmds \
17452 old_postinstall_cmds \
17453 old_postuninstall_cmds \
17454 old_archive_cmds \
17455 extract_expsyms_cmds \
17456 old_archive_from_new_cmds \
17457 old_archive_from_expsyms_cmds \
17458 archive_cmds \
17459 archive_expsym_cmds \
17460 module_cmds \
17461 module_expsym_cmds \
17462 export_symbols_cmds \
17463 prelink_cmds \
17464 postinstall_cmds \
17465 postuninstall_cmds \
17466 finish_cmds \
17467 sys_lib_search_path_spec \
17468 sys_lib_dlsearch_path_spec \
17469 reload_cmds_FC \
17470 old_archive_cmds_FC \
17471 old_archive_from_new_cmds_FC \
17472 old_archive_from_expsyms_cmds_FC \
17473 archive_cmds_FC \
17474 archive_expsym_cmds_FC \
17475 module_cmds_FC \
17476 module_expsym_cmds_FC \
17477 export_symbols_cmds_FC \
17478 prelink_cmds_FC; do
17479 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17480 *[\\\\\\\`\\"\\\$]*)
17481 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17484 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17486 esac
17487 done
17489 ac_aux_dir='$ac_aux_dir'
17490 xsi_shell='$xsi_shell'
17491 lt_shell_append='$lt_shell_append'
17493 # See if we are running on zsh, and set the options which allow our
17494 # commands through without removal of \ escapes INIT.
17495 if test -n "\${ZSH_VERSION+set}" ; then
17496 setopt NO_GLOB_SUBST
17500 PACKAGE='$PACKAGE'
17501 VERSION='$VERSION'
17502 TIMESTAMP='$TIMESTAMP'
17503 RM='$RM'
17504 ofile='$ofile'
17511 GCC="$GCC"
17512 CC="$CC"
17513 acx_cv_header_stdint="$acx_cv_header_stdint"
17514 acx_cv_type_int8_t="$acx_cv_type_int8_t"
17515 acx_cv_type_int16_t="$acx_cv_type_int16_t"
17516 acx_cv_type_int32_t="$acx_cv_type_int32_t"
17517 acx_cv_type_int64_t="$acx_cv_type_int64_t"
17518 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
17519 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
17520 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
17521 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
17522 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
17523 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
17524 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
17525 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
17526 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
17529 _ACEOF
17531 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17533 # Handling of arguments.
17534 for ac_config_target in $ac_config_targets
17536 case $ac_config_target in
17537 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17538 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17539 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17540 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17541 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
17542 "omp.h") CONFIG_FILES="$CONFIG_FILES omp.h" ;;
17543 "omp_lib.h") CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
17544 "omp_lib.f90") CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
17545 "libgomp_f.h") CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
17546 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17547 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17548 "libgomp.spec") CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
17550 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17551 esac
17552 done
17555 # If the user did not use the arguments to specify the items to instantiate,
17556 # then the envvar interface is used. Set only those that are not.
17557 # We use the long form for the default assignment because of an extremely
17558 # bizarre bug on SunOS 4.1.3.
17559 if $ac_need_defaults; then
17560 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17561 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17562 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17565 # Have a temporary directory for convenience. Make it in the build tree
17566 # simply because there is no reason against having it here, and in addition,
17567 # creating and moving files from /tmp can sometimes cause problems.
17568 # Hook for its removal unless debugging.
17569 # Note that there is a small window in which the directory will not be cleaned:
17570 # after its creation but before its name has been assigned to `$tmp'.
17571 $debug ||
17573 tmp=
17574 trap 'exit_status=$?
17575 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17577 trap 'as_fn_exit 1' 1 2 13 15
17579 # Create a (secure) tmp directory for tmp files.
17582 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17583 test -n "$tmp" && test -d "$tmp"
17584 } ||
17586 tmp=./conf$$-$RANDOM
17587 (umask 077 && mkdir "$tmp")
17588 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17590 # Set up the scripts for CONFIG_FILES section.
17591 # No need to generate them if there are no CONFIG_FILES.
17592 # This happens for instance with `./config.status config.h'.
17593 if test -n "$CONFIG_FILES"; then
17596 ac_cr=`echo X | tr X '\015'`
17597 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17598 # But we know of no other shell where ac_cr would be empty at this
17599 # point, so we can use a bashism as a fallback.
17600 if test "x$ac_cr" = x; then
17601 eval ac_cr=\$\'\\r\'
17603 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17604 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17605 ac_cs_awk_cr='\r'
17606 else
17607 ac_cs_awk_cr=$ac_cr
17610 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17611 _ACEOF
17615 echo "cat >conf$$subs.awk <<_ACEOF" &&
17616 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17617 echo "_ACEOF"
17618 } >conf$$subs.sh ||
17619 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17620 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17621 ac_delim='%!_!# '
17622 for ac_last_try in false false false false false :; do
17623 . ./conf$$subs.sh ||
17624 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17626 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17627 if test $ac_delim_n = $ac_delim_num; then
17628 break
17629 elif $ac_last_try; then
17630 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17631 else
17632 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17634 done
17635 rm -f conf$$subs.sh
17637 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17638 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17639 _ACEOF
17640 sed -n '
17642 s/^/S["/; s/!.*/"]=/
17645 s/^[^!]*!//
17646 :repl
17647 t repl
17648 s/'"$ac_delim"'$//
17649 t delim
17652 s/\(.\{148\}\).*/\1/
17653 t more1
17654 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17657 b repl
17658 :more1
17659 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17662 s/.\{148\}//
17663 t nl
17664 :delim
17666 s/\(.\{148\}\).*/\1/
17667 t more2
17668 s/["\\]/\\&/g; s/^/"/; s/$/"/
17671 :more2
17672 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17675 s/.\{148\}//
17676 t delim
17677 ' <conf$$subs.awk | sed '
17678 /^[^""]/{
17680 s/\n//
17682 ' >>$CONFIG_STATUS || ac_write_fail=1
17683 rm -f conf$$subs.awk
17684 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17685 _ACAWK
17686 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17687 for (key in S) S_is_set[key] = 1
17688 FS = "\a"
17692 line = $ 0
17693 nfields = split(line, field, "@")
17694 substed = 0
17695 len = length(field[1])
17696 for (i = 2; i < nfields; i++) {
17697 key = field[i]
17698 keylen = length(key)
17699 if (S_is_set[key]) {
17700 value = S[key]
17701 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17702 len += length(value) + length(field[++i])
17703 substed = 1
17704 } else
17705 len += 1 + keylen
17708 print line
17711 _ACAWK
17712 _ACEOF
17713 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17714 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17715 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17716 else
17718 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17719 || as_fn_error "could not setup config files machinery" "$LINENO" 5
17720 _ACEOF
17722 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17723 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17724 # trailing colons and then remove the whole line if VPATH becomes empty
17725 # (actually we leave an empty line to preserve line numbers).
17726 if test "x$srcdir" = x.; then
17727 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17728 s/:*\$(srcdir):*/:/
17729 s/:*\${srcdir}:*/:/
17730 s/:*@srcdir@:*/:/
17731 s/^\([^=]*=[ ]*\):*/\1/
17732 s/:*$//
17733 s/^[^=]*=[ ]*$//
17737 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17738 fi # test -n "$CONFIG_FILES"
17740 # Set up the scripts for CONFIG_HEADERS section.
17741 # No need to generate them if there are no CONFIG_HEADERS.
17742 # This happens for instance with `./config.status Makefile'.
17743 if test -n "$CONFIG_HEADERS"; then
17744 cat >"$tmp/defines.awk" <<\_ACAWK ||
17745 BEGIN {
17746 _ACEOF
17748 # Transform confdefs.h into an awk script `defines.awk', embedded as
17749 # here-document in config.status, that substitutes the proper values into
17750 # config.h.in to produce config.h.
17752 # Create a delimiter string that does not exist in confdefs.h, to ease
17753 # handling of long lines.
17754 ac_delim='%!_!# '
17755 for ac_last_try in false false :; do
17756 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17757 if test -z "$ac_t"; then
17758 break
17759 elif $ac_last_try; then
17760 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17761 else
17762 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17764 done
17766 # For the awk script, D is an array of macro values keyed by name,
17767 # likewise P contains macro parameters if any. Preserve backslash
17768 # newline sequences.
17770 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17771 sed -n '
17772 s/.\{148\}/&'"$ac_delim"'/g
17773 t rset
17774 :rset
17775 s/^[ ]*#[ ]*define[ ][ ]*/ /
17776 t def
17778 :def
17779 s/\\$//
17780 t bsnl
17781 s/["\\]/\\&/g
17782 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17783 D["\1"]=" \3"/p
17784 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17786 :bsnl
17787 s/["\\]/\\&/g
17788 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17789 D["\1"]=" \3\\\\\\n"\\/p
17790 t cont
17791 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17792 t cont
17794 :cont
17796 s/.\{148\}/&'"$ac_delim"'/g
17797 t clear
17798 :clear
17799 s/\\$//
17800 t bsnlc
17801 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17803 :bsnlc
17804 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17805 b cont
17806 ' <confdefs.h | sed '
17807 s/'"$ac_delim"'/"\\\
17808 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17810 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17811 for (key in D) D_is_set[key] = 1
17812 FS = "\a"
17814 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17815 line = \$ 0
17816 split(line, arg, " ")
17817 if (arg[1] == "#") {
17818 defundef = arg[2]
17819 mac1 = arg[3]
17820 } else {
17821 defundef = substr(arg[1], 2)
17822 mac1 = arg[2]
17824 split(mac1, mac2, "(") #)
17825 macro = mac2[1]
17826 prefix = substr(line, 1, index(line, defundef) - 1)
17827 if (D_is_set[macro]) {
17828 # Preserve the white space surrounding the "#".
17829 print prefix "define", macro P[macro] D[macro]
17830 next
17831 } else {
17832 # Replace #undef with comments. This is necessary, for example,
17833 # in the case of _POSIX_SOURCE, which is predefined and required
17834 # on some systems where configure will not decide to define it.
17835 if (defundef == "undef") {
17836 print "/*", prefix defundef, macro, "*/"
17837 next
17841 { print }
17842 _ACAWK
17843 _ACEOF
17844 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17845 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17846 fi # test -n "$CONFIG_HEADERS"
17849 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17850 shift
17851 for ac_tag
17853 case $ac_tag in
17854 :[FHLC]) ac_mode=$ac_tag; continue;;
17855 esac
17856 case $ac_mode$ac_tag in
17857 :[FHL]*:*);;
17858 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17859 :[FH]-) ac_tag=-:-;;
17860 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17861 esac
17862 ac_save_IFS=$IFS
17863 IFS=:
17864 set x $ac_tag
17865 IFS=$ac_save_IFS
17866 shift
17867 ac_file=$1
17868 shift
17870 case $ac_mode in
17871 :L) ac_source=$1;;
17872 :[FH])
17873 ac_file_inputs=
17874 for ac_f
17876 case $ac_f in
17877 -) ac_f="$tmp/stdin";;
17878 *) # Look for the file first in the build tree, then in the source tree
17879 # (if the path is not absolute). The absolute path cannot be DOS-style,
17880 # because $ac_f cannot contain `:'.
17881 test -f "$ac_f" ||
17882 case $ac_f in
17883 [\\/$]*) false;;
17884 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17885 esac ||
17886 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17887 esac
17888 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17889 as_fn_append ac_file_inputs " '$ac_f'"
17890 done
17892 # Let's still pretend it is `configure' which instantiates (i.e., don't
17893 # use $as_me), people would be surprised to read:
17894 # /* config.h. Generated by config.status. */
17895 configure_input='Generated from '`
17896 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17897 `' by configure.'
17898 if test x"$ac_file" != x-; then
17899 configure_input="$ac_file. $configure_input"
17900 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17901 $as_echo "$as_me: creating $ac_file" >&6;}
17903 # Neutralize special characters interpreted by sed in replacement strings.
17904 case $configure_input in #(
17905 *\&* | *\|* | *\\* )
17906 ac_sed_conf_input=`$as_echo "$configure_input" |
17907 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17908 *) ac_sed_conf_input=$configure_input;;
17909 esac
17911 case $ac_tag in
17912 *:-:* | *:-) cat >"$tmp/stdin" \
17913 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17914 esac
17916 esac
17918 ac_dir=`$as_dirname -- "$ac_file" ||
17919 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17920 X"$ac_file" : 'X\(//\)[^/]' \| \
17921 X"$ac_file" : 'X\(//\)$' \| \
17922 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17923 $as_echo X"$ac_file" |
17924 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17925 s//\1/
17928 /^X\(\/\/\)[^/].*/{
17929 s//\1/
17932 /^X\(\/\/\)$/{
17933 s//\1/
17936 /^X\(\/\).*/{
17937 s//\1/
17940 s/.*/./; q'`
17941 as_dir="$ac_dir"; as_fn_mkdir_p
17942 ac_builddir=.
17944 case "$ac_dir" in
17945 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17947 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17948 # A ".." for each directory in $ac_dir_suffix.
17949 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17950 case $ac_top_builddir_sub in
17951 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17952 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17953 esac ;;
17954 esac
17955 ac_abs_top_builddir=$ac_pwd
17956 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17957 # for backward compatibility:
17958 ac_top_builddir=$ac_top_build_prefix
17960 case $srcdir in
17961 .) # We are building in place.
17962 ac_srcdir=.
17963 ac_top_srcdir=$ac_top_builddir_sub
17964 ac_abs_top_srcdir=$ac_pwd ;;
17965 [\\/]* | ?:[\\/]* ) # Absolute name.
17966 ac_srcdir=$srcdir$ac_dir_suffix;
17967 ac_top_srcdir=$srcdir
17968 ac_abs_top_srcdir=$srcdir ;;
17969 *) # Relative name.
17970 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17971 ac_top_srcdir=$ac_top_build_prefix$srcdir
17972 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17973 esac
17974 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17977 case $ac_mode in
17980 # CONFIG_FILE
17983 case $INSTALL in
17984 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17985 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17986 esac
17987 ac_MKDIR_P=$MKDIR_P
17988 case $MKDIR_P in
17989 [\\/$]* | ?:[\\/]* ) ;;
17990 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17991 esac
17992 _ACEOF
17994 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17995 # If the template does not know about datarootdir, expand it.
17996 # FIXME: This hack should be removed a few years after 2.60.
17997 ac_datarootdir_hack=; ac_datarootdir_seen=
17998 ac_sed_dataroot='
17999 /datarootdir/ {
18003 /@datadir@/p
18004 /@docdir@/p
18005 /@infodir@/p
18006 /@localedir@/p
18007 /@mandir@/p'
18008 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18009 *datarootdir*) ac_datarootdir_seen=yes;;
18010 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18012 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18013 _ACEOF
18014 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18015 ac_datarootdir_hack='
18016 s&@datadir@&$datadir&g
18017 s&@docdir@&$docdir&g
18018 s&@infodir@&$infodir&g
18019 s&@localedir@&$localedir&g
18020 s&@mandir@&$mandir&g
18021 s&\\\${datarootdir}&$datarootdir&g' ;;
18022 esac
18023 _ACEOF
18025 # Neutralize VPATH when `$srcdir' = `.'.
18026 # Shell code in configure.ac might set extrasub.
18027 # FIXME: do we really want to maintain this feature?
18028 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18029 ac_sed_extra="$ac_vpsub
18030 $extrasub
18031 _ACEOF
18032 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18034 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18035 s|@configure_input@|$ac_sed_conf_input|;t t
18036 s&@top_builddir@&$ac_top_builddir_sub&;t t
18037 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18038 s&@srcdir@&$ac_srcdir&;t t
18039 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18040 s&@top_srcdir@&$ac_top_srcdir&;t t
18041 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18042 s&@builddir@&$ac_builddir&;t t
18043 s&@abs_builddir@&$ac_abs_builddir&;t t
18044 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18045 s&@INSTALL@&$ac_INSTALL&;t t
18046 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18047 $ac_datarootdir_hack
18049 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18050 || as_fn_error "could not create $ac_file" "$LINENO" 5
18052 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18053 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18054 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18056 which seems to be undefined. Please make sure it is defined." >&5
18057 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18058 which seems to be undefined. Please make sure it is defined." >&2;}
18060 rm -f "$tmp/stdin"
18061 case $ac_file in
18062 -) cat "$tmp/out" && rm -f "$tmp/out";;
18063 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18064 esac \
18065 || as_fn_error "could not create $ac_file" "$LINENO" 5
18069 # CONFIG_HEADER
18071 if test x"$ac_file" != x-; then
18073 $as_echo "/* $configure_input */" \
18074 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18075 } >"$tmp/config.h" \
18076 || as_fn_error "could not create $ac_file" "$LINENO" 5
18077 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18078 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18079 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18080 else
18081 rm -f "$ac_file"
18082 mv "$tmp/config.h" "$ac_file" \
18083 || as_fn_error "could not create $ac_file" "$LINENO" 5
18085 else
18086 $as_echo "/* $configure_input */" \
18087 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18088 || as_fn_error "could not create -" "$LINENO" 5
18090 # Compute "$ac_file"'s index in $config_headers.
18091 _am_arg="$ac_file"
18092 _am_stamp_count=1
18093 for _am_header in $config_headers :; do
18094 case $_am_header in
18095 $_am_arg | $_am_arg:* )
18096 break ;;
18098 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18099 esac
18100 done
18101 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18102 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18103 X"$_am_arg" : 'X\(//\)[^/]' \| \
18104 X"$_am_arg" : 'X\(//\)$' \| \
18105 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18106 $as_echo X"$_am_arg" |
18107 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18108 s//\1/
18111 /^X\(\/\/\)[^/].*/{
18112 s//\1/
18115 /^X\(\/\/\)$/{
18116 s//\1/
18119 /^X\(\/\).*/{
18120 s//\1/
18123 s/.*/./; q'`/stamp-h$_am_stamp_count
18126 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18127 $as_echo "$as_me: executing $ac_file commands" >&6;}
18129 esac
18132 case $ac_file$ac_mode in
18133 "default-1":C)
18134 # Only add multilib support code if we just rebuilt the top-level
18135 # Makefile.
18136 case " $CONFIG_FILES " in
18137 *" Makefile "*)
18138 ac_file=Makefile . ${multi_basedir}/config-ml.in
18140 esac ;;
18141 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18142 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18143 # are listed without --file. Let's play safe and only enable the eval
18144 # if we detect the quoting.
18145 case $CONFIG_FILES in
18146 *\'*) eval set x "$CONFIG_FILES" ;;
18147 *) set x $CONFIG_FILES ;;
18148 esac
18149 shift
18150 for mf
18152 # Strip MF so we end up with the name of the file.
18153 mf=`echo "$mf" | sed -e 's/:.*$//'`
18154 # Check whether this is an Automake generated Makefile or not.
18155 # We used to match only the files named `Makefile.in', but
18156 # some people rename them; so instead we look at the file content.
18157 # Grep'ing the first line is not enough: some people post-process
18158 # each Makefile.in and add a new line on top of each file to say so.
18159 # Grep'ing the whole file is not good either: AIX grep has a line
18160 # limit of 2048, but all sed's we know have understand at least 4000.
18161 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18162 dirpart=`$as_dirname -- "$mf" ||
18163 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18164 X"$mf" : 'X\(//\)[^/]' \| \
18165 X"$mf" : 'X\(//\)$' \| \
18166 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18167 $as_echo X"$mf" |
18168 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18169 s//\1/
18172 /^X\(\/\/\)[^/].*/{
18173 s//\1/
18176 /^X\(\/\/\)$/{
18177 s//\1/
18180 /^X\(\/\).*/{
18181 s//\1/
18184 s/.*/./; q'`
18185 else
18186 continue
18188 # Extract the definition of DEPDIR, am__include, and am__quote
18189 # from the Makefile without running `make'.
18190 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18191 test -z "$DEPDIR" && continue
18192 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18193 test -z "am__include" && continue
18194 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18195 # When using ansi2knr, U may be empty or an underscore; expand it
18196 U=`sed -n 's/^U = //p' < "$mf"`
18197 # Find all dependency output files, they are included files with
18198 # $(DEPDIR) in their names. We invoke sed twice because it is the
18199 # simplest approach to changing $(DEPDIR) to its actual value in the
18200 # expansion.
18201 for file in `sed -n "
18202 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18203 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18204 # Make sure the directory exists.
18205 test -f "$dirpart/$file" && continue
18206 fdir=`$as_dirname -- "$file" ||
18207 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18208 X"$file" : 'X\(//\)[^/]' \| \
18209 X"$file" : 'X\(//\)$' \| \
18210 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18211 $as_echo X"$file" |
18212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18213 s//\1/
18216 /^X\(\/\/\)[^/].*/{
18217 s//\1/
18220 /^X\(\/\/\)$/{
18221 s//\1/
18224 /^X\(\/\).*/{
18225 s//\1/
18228 s/.*/./; q'`
18229 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18230 # echo "creating $dirpart/$file"
18231 echo '# dummy' > "$dirpart/$file"
18232 done
18233 done
18236 "libtool":C)
18238 # See if we are running on zsh, and set the options which allow our
18239 # commands through without removal of \ escapes.
18240 if test -n "${ZSH_VERSION+set}" ; then
18241 setopt NO_GLOB_SUBST
18244 cfgfile="${ofile}T"
18245 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18246 $RM "$cfgfile"
18248 cat <<_LT_EOF >> "$cfgfile"
18249 #! $SHELL
18251 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18252 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18253 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18254 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18256 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18257 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18258 # Written by Gordon Matzigkeit, 1996
18260 # This file is part of GNU Libtool.
18262 # GNU Libtool is free software; you can redistribute it and/or
18263 # modify it under the terms of the GNU General Public License as
18264 # published by the Free Software Foundation; either version 2 of
18265 # the License, or (at your option) any later version.
18267 # As a special exception to the GNU General Public License,
18268 # if you distribute this file as part of a program or library that
18269 # is built using GNU Libtool, you may include this file under the
18270 # same distribution terms that you use for the rest of that program.
18272 # GNU Libtool is distributed in the hope that it will be useful,
18273 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18274 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18275 # GNU General Public License for more details.
18277 # You should have received a copy of the GNU General Public License
18278 # along with GNU Libtool; see the file COPYING. If not, a copy
18279 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18280 # obtained by writing to the Free Software Foundation, Inc.,
18281 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18284 # The names of the tagged configurations supported by this script.
18285 available_tags="FC "
18287 # ### BEGIN LIBTOOL CONFIG
18289 # Which release of libtool.m4 was used?
18290 macro_version=$macro_version
18291 macro_revision=$macro_revision
18293 # Whether or not to build shared libraries.
18294 build_libtool_libs=$enable_shared
18296 # Whether or not to build static libraries.
18297 build_old_libs=$enable_static
18299 # What type of objects to build.
18300 pic_mode=$pic_mode
18302 # Whether or not to optimize for fast installation.
18303 fast_install=$enable_fast_install
18305 # Shell to use when invoking shell scripts.
18306 SHELL=$lt_SHELL
18308 # An echo program that protects backslashes.
18309 ECHO=$lt_ECHO
18311 # The host system.
18312 host_alias=$host_alias
18313 host=$host
18314 host_os=$host_os
18316 # The build system.
18317 build_alias=$build_alias
18318 build=$build
18319 build_os=$build_os
18321 # A sed program that does not truncate output.
18322 SED=$lt_SED
18324 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18325 Xsed="\$SED -e 1s/^X//"
18327 # A grep program that handles long lines.
18328 GREP=$lt_GREP
18330 # An ERE matcher.
18331 EGREP=$lt_EGREP
18333 # A literal string matcher.
18334 FGREP=$lt_FGREP
18336 # A BSD- or MS-compatible name lister.
18337 NM=$lt_NM
18339 # Whether we need soft or hard links.
18340 LN_S=$lt_LN_S
18342 # What is the maximum length of a command?
18343 max_cmd_len=$max_cmd_len
18345 # Object file suffix (normally "o").
18346 objext=$ac_objext
18348 # Executable file suffix (normally "").
18349 exeext=$exeext
18351 # whether the shell understands "unset".
18352 lt_unset=$lt_unset
18354 # turn spaces into newlines.
18355 SP2NL=$lt_lt_SP2NL
18357 # turn newlines into spaces.
18358 NL2SP=$lt_lt_NL2SP
18360 # An object symbol dumper.
18361 OBJDUMP=$lt_OBJDUMP
18363 # Method to check whether dependent libraries are shared objects.
18364 deplibs_check_method=$lt_deplibs_check_method
18366 # Command to use when deplibs_check_method == "file_magic".
18367 file_magic_cmd=$lt_file_magic_cmd
18369 # The archiver.
18370 AR=$lt_AR
18371 AR_FLAGS=$lt_AR_FLAGS
18373 # A symbol stripping program.
18374 STRIP=$lt_STRIP
18376 # Commands used to install an old-style archive.
18377 RANLIB=$lt_RANLIB
18378 old_postinstall_cmds=$lt_old_postinstall_cmds
18379 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18381 # Whether to use a lock for old archive extraction.
18382 lock_old_archive_extraction=$lock_old_archive_extraction
18384 # A C compiler.
18385 LTCC=$lt_CC
18387 # LTCC compiler flags.
18388 LTCFLAGS=$lt_CFLAGS
18390 # Take the output of nm and produce a listing of raw symbols and C names.
18391 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18393 # Transform the output of nm in a proper C declaration.
18394 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18396 # Transform the output of nm in a C name address pair.
18397 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18399 # Transform the output of nm in a C name address pair when lib prefix is needed.
18400 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18402 # The name of the directory that contains temporary libtool files.
18403 objdir=$objdir
18405 # Used to examine libraries when file_magic_cmd begins with "file".
18406 MAGIC_CMD=$MAGIC_CMD
18408 # Must we lock files when doing compilation?
18409 need_locks=$lt_need_locks
18411 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18412 DSYMUTIL=$lt_DSYMUTIL
18414 # Tool to change global to local symbols on Mac OS X.
18415 NMEDIT=$lt_NMEDIT
18417 # Tool to manipulate fat objects and archives on Mac OS X.
18418 LIPO=$lt_LIPO
18420 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18421 OTOOL=$lt_OTOOL
18423 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18424 OTOOL64=$lt_OTOOL64
18426 # Old archive suffix (normally "a").
18427 libext=$libext
18429 # Shared library suffix (normally ".so").
18430 shrext_cmds=$lt_shrext_cmds
18432 # The commands to extract the exported symbol list from a shared archive.
18433 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18435 # Variables whose values should be saved in libtool wrapper scripts and
18436 # restored at link time.
18437 variables_saved_for_relink=$lt_variables_saved_for_relink
18439 # Do we need the "lib" prefix for modules?
18440 need_lib_prefix=$need_lib_prefix
18442 # Do we need a version for libraries?
18443 need_version=$need_version
18445 # Library versioning type.
18446 version_type=$version_type
18448 # Shared library runtime path variable.
18449 runpath_var=$runpath_var
18451 # Shared library path variable.
18452 shlibpath_var=$shlibpath_var
18454 # Is shlibpath searched before the hard-coded library search path?
18455 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18457 # Format of library name prefix.
18458 libname_spec=$lt_libname_spec
18460 # List of archive names. First name is the real one, the rest are links.
18461 # The last name is the one that the linker finds with -lNAME
18462 library_names_spec=$lt_library_names_spec
18464 # The coded name of the library, if different from the real name.
18465 soname_spec=$lt_soname_spec
18467 # Permission mode override for installation of shared libraries.
18468 install_override_mode=$lt_install_override_mode
18470 # Command to use after installation of a shared archive.
18471 postinstall_cmds=$lt_postinstall_cmds
18473 # Command to use after uninstallation of a shared archive.
18474 postuninstall_cmds=$lt_postuninstall_cmds
18476 # Commands used to finish a libtool library installation in a directory.
18477 finish_cmds=$lt_finish_cmds
18479 # As "finish_cmds", except a single script fragment to be evaled but
18480 # not shown.
18481 finish_eval=$lt_finish_eval
18483 # Whether we should hardcode library paths into libraries.
18484 hardcode_into_libs=$hardcode_into_libs
18486 # Compile-time system search path for libraries.
18487 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18489 # Run-time system search path for libraries.
18490 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18492 # Whether dlopen is supported.
18493 dlopen_support=$enable_dlopen
18495 # Whether dlopen of programs is supported.
18496 dlopen_self=$enable_dlopen_self
18498 # Whether dlopen of statically linked programs is supported.
18499 dlopen_self_static=$enable_dlopen_self_static
18501 # Commands to strip libraries.
18502 old_striplib=$lt_old_striplib
18503 striplib=$lt_striplib
18506 # The linker used to build libraries.
18507 LD=$lt_LD
18509 # How to create reloadable object files.
18510 reload_flag=$lt_reload_flag
18511 reload_cmds=$lt_reload_cmds
18513 # Commands used to build an old-style archive.
18514 old_archive_cmds=$lt_old_archive_cmds
18516 # A language specific compiler.
18517 CC=$lt_compiler
18519 # Is the compiler the GNU compiler?
18520 with_gcc=$GCC
18522 # Compiler flag to turn off builtin functions.
18523 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18525 # How to pass a linker flag through the compiler.
18526 wl=$lt_lt_prog_compiler_wl
18528 # Additional compiler flags for building library objects.
18529 pic_flag=$lt_lt_prog_compiler_pic
18531 # Compiler flag to prevent dynamic linking.
18532 link_static_flag=$lt_lt_prog_compiler_static
18534 # Does compiler simultaneously support -c and -o options?
18535 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18537 # Whether or not to add -lc for building shared libraries.
18538 build_libtool_need_lc=$archive_cmds_need_lc
18540 # Whether or not to disallow shared libs when runtime libs are static.
18541 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18543 # Compiler flag to allow reflexive dlopens.
18544 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18546 # Compiler flag to generate shared objects directly from archives.
18547 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18549 # Whether the compiler copes with passing no objects directly.
18550 compiler_needs_object=$lt_compiler_needs_object
18552 # Create an old-style archive from a shared archive.
18553 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18555 # Create a temporary old-style archive to link instead of a shared archive.
18556 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18558 # Commands used to build a shared archive.
18559 archive_cmds=$lt_archive_cmds
18560 archive_expsym_cmds=$lt_archive_expsym_cmds
18562 # Commands used to build a loadable module if different from building
18563 # a shared archive.
18564 module_cmds=$lt_module_cmds
18565 module_expsym_cmds=$lt_module_expsym_cmds
18567 # Whether we are building with GNU ld or not.
18568 with_gnu_ld=$lt_with_gnu_ld
18570 # Flag that allows shared libraries with undefined symbols to be built.
18571 allow_undefined_flag=$lt_allow_undefined_flag
18573 # Flag that enforces no undefined symbols.
18574 no_undefined_flag=$lt_no_undefined_flag
18576 # Flag to hardcode \$libdir into a binary during linking.
18577 # This must work even if \$libdir does not exist
18578 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18580 # If ld is used when linking, flag to hardcode \$libdir into a binary
18581 # during linking. This must work even if \$libdir does not exist.
18582 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18584 # Whether we need a single "-rpath" flag with a separated argument.
18585 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18587 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18588 # DIR into the resulting binary.
18589 hardcode_direct=$hardcode_direct
18591 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18592 # DIR into the resulting binary and the resulting library dependency is
18593 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18594 # library is relocated.
18595 hardcode_direct_absolute=$hardcode_direct_absolute
18597 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18598 # into the resulting binary.
18599 hardcode_minus_L=$hardcode_minus_L
18601 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18602 # into the resulting binary.
18603 hardcode_shlibpath_var=$hardcode_shlibpath_var
18605 # Set to "yes" if building a shared library automatically hardcodes DIR
18606 # into the library and all subsequent libraries and executables linked
18607 # against it.
18608 hardcode_automatic=$hardcode_automatic
18610 # Set to yes if linker adds runtime paths of dependent libraries
18611 # to runtime path list.
18612 inherit_rpath=$inherit_rpath
18614 # Whether libtool must link a program against all its dependency libraries.
18615 link_all_deplibs=$link_all_deplibs
18617 # Fix the shell variable \$srcfile for the compiler.
18618 fix_srcfile_path=$lt_fix_srcfile_path
18620 # Set to "yes" if exported symbols are required.
18621 always_export_symbols=$always_export_symbols
18623 # The commands to list exported symbols.
18624 export_symbols_cmds=$lt_export_symbols_cmds
18626 # Symbols that should not be listed in the preloaded symbols.
18627 exclude_expsyms=$lt_exclude_expsyms
18629 # Symbols that must always be exported.
18630 include_expsyms=$lt_include_expsyms
18632 # Commands necessary for linking programs (against libraries) with templates.
18633 prelink_cmds=$lt_prelink_cmds
18635 # Specify filename containing input files.
18636 file_list_spec=$lt_file_list_spec
18638 # How to hardcode a shared library path into an executable.
18639 hardcode_action=$hardcode_action
18641 # The directories searched by this compiler when creating a shared library.
18642 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18644 # Dependencies to place before and after the objects being linked to
18645 # create a shared library.
18646 predep_objects=$lt_predep_objects
18647 postdep_objects=$lt_postdep_objects
18648 predeps=$lt_predeps
18649 postdeps=$lt_postdeps
18651 # The library search path used internally by the compiler when linking
18652 # a shared library.
18653 compiler_lib_search_path=$lt_compiler_lib_search_path
18655 # ### END LIBTOOL CONFIG
18657 _LT_EOF
18659 case $host_os in
18660 aix3*)
18661 cat <<\_LT_EOF >> "$cfgfile"
18662 # AIX sometimes has problems with the GCC collect2 program. For some
18663 # reason, if we set the COLLECT_NAMES environment variable, the problems
18664 # vanish in a puff of smoke.
18665 if test "X${COLLECT_NAMES+set}" != Xset; then
18666 COLLECT_NAMES=
18667 export COLLECT_NAMES
18669 _LT_EOF
18671 esac
18674 ltmain="$ac_aux_dir/ltmain.sh"
18677 # We use sed instead of cat because bash on DJGPP gets confused if
18678 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18679 # text mode, it properly converts lines to CR/LF. This bash problem
18680 # is reportedly fixed, but why not run on old versions too?
18681 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18682 || (rm -f "$cfgfile"; exit 1)
18684 case $xsi_shell in
18685 yes)
18686 cat << \_LT_EOF >> "$cfgfile"
18688 # func_dirname file append nondir_replacement
18689 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18690 # otherwise set result to NONDIR_REPLACEMENT.
18691 func_dirname ()
18693 case ${1} in
18694 */*) func_dirname_result="${1%/*}${2}" ;;
18695 * ) func_dirname_result="${3}" ;;
18696 esac
18699 # func_basename file
18700 func_basename ()
18702 func_basename_result="${1##*/}"
18705 # func_dirname_and_basename file append nondir_replacement
18706 # perform func_basename and func_dirname in a single function
18707 # call:
18708 # dirname: Compute the dirname of FILE. If nonempty,
18709 # add APPEND to the result, otherwise set result
18710 # to NONDIR_REPLACEMENT.
18711 # value returned in "$func_dirname_result"
18712 # basename: Compute filename of FILE.
18713 # value retuned in "$func_basename_result"
18714 # Implementation must be kept synchronized with func_dirname
18715 # and func_basename. For efficiency, we do not delegate to
18716 # those functions but instead duplicate the functionality here.
18717 func_dirname_and_basename ()
18719 case ${1} in
18720 */*) func_dirname_result="${1%/*}${2}" ;;
18721 * ) func_dirname_result="${3}" ;;
18722 esac
18723 func_basename_result="${1##*/}"
18726 # func_stripname prefix suffix name
18727 # strip PREFIX and SUFFIX off of NAME.
18728 # PREFIX and SUFFIX must not contain globbing or regex special
18729 # characters, hashes, percent signs, but SUFFIX may contain a leading
18730 # dot (in which case that matches only a dot).
18731 func_stripname ()
18733 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18734 # positional parameters, so assign one to ordinary parameter first.
18735 func_stripname_result=${3}
18736 func_stripname_result=${func_stripname_result#"${1}"}
18737 func_stripname_result=${func_stripname_result%"${2}"}
18740 # func_opt_split
18741 func_opt_split ()
18743 func_opt_split_opt=${1%%=*}
18744 func_opt_split_arg=${1#*=}
18747 # func_lo2o object
18748 func_lo2o ()
18750 case ${1} in
18751 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18752 *) func_lo2o_result=${1} ;;
18753 esac
18756 # func_xform libobj-or-source
18757 func_xform ()
18759 func_xform_result=${1%.*}.lo
18762 # func_arith arithmetic-term...
18763 func_arith ()
18765 func_arith_result=$(( $* ))
18768 # func_len string
18769 # STRING may not start with a hyphen.
18770 func_len ()
18772 func_len_result=${#1}
18775 _LT_EOF
18777 *) # Bourne compatible functions.
18778 cat << \_LT_EOF >> "$cfgfile"
18780 # func_dirname file append nondir_replacement
18781 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18782 # otherwise set result to NONDIR_REPLACEMENT.
18783 func_dirname ()
18785 # Extract subdirectory from the argument.
18786 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18787 if test "X$func_dirname_result" = "X${1}"; then
18788 func_dirname_result="${3}"
18789 else
18790 func_dirname_result="$func_dirname_result${2}"
18794 # func_basename file
18795 func_basename ()
18797 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18801 # func_stripname prefix suffix name
18802 # strip PREFIX and SUFFIX off of NAME.
18803 # PREFIX and SUFFIX must not contain globbing or regex special
18804 # characters, hashes, percent signs, but SUFFIX may contain a leading
18805 # dot (in which case that matches only a dot).
18806 # func_strip_suffix prefix name
18807 func_stripname ()
18809 case ${2} in
18810 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18811 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18812 esac
18815 # sed scripts:
18816 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18817 my_sed_long_arg='1s/^-[^=]*=//'
18819 # func_opt_split
18820 func_opt_split ()
18822 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18823 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18826 # func_lo2o object
18827 func_lo2o ()
18829 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18832 # func_xform libobj-or-source
18833 func_xform ()
18835 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18838 # func_arith arithmetic-term...
18839 func_arith ()
18841 func_arith_result=`expr "$@"`
18844 # func_len string
18845 # STRING may not start with a hyphen.
18846 func_len ()
18848 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18851 _LT_EOF
18852 esac
18854 case $lt_shell_append in
18855 yes)
18856 cat << \_LT_EOF >> "$cfgfile"
18858 # func_append var value
18859 # Append VALUE to the end of shell variable VAR.
18860 func_append ()
18862 eval "$1+=\$2"
18864 _LT_EOF
18867 cat << \_LT_EOF >> "$cfgfile"
18869 # func_append var value
18870 # Append VALUE to the end of shell variable VAR.
18871 func_append ()
18873 eval "$1=\$$1\$2"
18876 _LT_EOF
18878 esac
18881 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18882 || (rm -f "$cfgfile"; exit 1)
18884 mv -f "$cfgfile" "$ofile" ||
18885 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18886 chmod +x "$ofile"
18889 cat <<_LT_EOF >> "$ofile"
18891 # ### BEGIN LIBTOOL TAG CONFIG: FC
18893 # The linker used to build libraries.
18894 LD=$lt_LD_FC
18896 # How to create reloadable object files.
18897 reload_flag=$lt_reload_flag_FC
18898 reload_cmds=$lt_reload_cmds_FC
18900 # Commands used to build an old-style archive.
18901 old_archive_cmds=$lt_old_archive_cmds_FC
18903 # A language specific compiler.
18904 CC=$lt_compiler_FC
18906 # Is the compiler the GNU compiler?
18907 with_gcc=$GCC_FC
18909 # Compiler flag to turn off builtin functions.
18910 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
18912 # How to pass a linker flag through the compiler.
18913 wl=$lt_lt_prog_compiler_wl_FC
18915 # Additional compiler flags for building library objects.
18916 pic_flag=$lt_lt_prog_compiler_pic_FC
18918 # Compiler flag to prevent dynamic linking.
18919 link_static_flag=$lt_lt_prog_compiler_static_FC
18921 # Does compiler simultaneously support -c and -o options?
18922 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
18924 # Whether or not to add -lc for building shared libraries.
18925 build_libtool_need_lc=$archive_cmds_need_lc_FC
18927 # Whether or not to disallow shared libs when runtime libs are static.
18928 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
18930 # Compiler flag to allow reflexive dlopens.
18931 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
18933 # Compiler flag to generate shared objects directly from archives.
18934 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
18936 # Whether the compiler copes with passing no objects directly.
18937 compiler_needs_object=$lt_compiler_needs_object_FC
18939 # Create an old-style archive from a shared archive.
18940 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
18942 # Create a temporary old-style archive to link instead of a shared archive.
18943 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
18945 # Commands used to build a shared archive.
18946 archive_cmds=$lt_archive_cmds_FC
18947 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
18949 # Commands used to build a loadable module if different from building
18950 # a shared archive.
18951 module_cmds=$lt_module_cmds_FC
18952 module_expsym_cmds=$lt_module_expsym_cmds_FC
18954 # Whether we are building with GNU ld or not.
18955 with_gnu_ld=$lt_with_gnu_ld_FC
18957 # Flag that allows shared libraries with undefined symbols to be built.
18958 allow_undefined_flag=$lt_allow_undefined_flag_FC
18960 # Flag that enforces no undefined symbols.
18961 no_undefined_flag=$lt_no_undefined_flag_FC
18963 # Flag to hardcode \$libdir into a binary during linking.
18964 # This must work even if \$libdir does not exist
18965 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
18967 # If ld is used when linking, flag to hardcode \$libdir into a binary
18968 # during linking. This must work even if \$libdir does not exist.
18969 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
18971 # Whether we need a single "-rpath" flag with a separated argument.
18972 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
18974 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18975 # DIR into the resulting binary.
18976 hardcode_direct=$hardcode_direct_FC
18978 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18979 # DIR into the resulting binary and the resulting library dependency is
18980 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18981 # library is relocated.
18982 hardcode_direct_absolute=$hardcode_direct_absolute_FC
18984 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18985 # into the resulting binary.
18986 hardcode_minus_L=$hardcode_minus_L_FC
18988 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18989 # into the resulting binary.
18990 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
18992 # Set to "yes" if building a shared library automatically hardcodes DIR
18993 # into the library and all subsequent libraries and executables linked
18994 # against it.
18995 hardcode_automatic=$hardcode_automatic_FC
18997 # Set to yes if linker adds runtime paths of dependent libraries
18998 # to runtime path list.
18999 inherit_rpath=$inherit_rpath_FC
19001 # Whether libtool must link a program against all its dependency libraries.
19002 link_all_deplibs=$link_all_deplibs_FC
19004 # Fix the shell variable \$srcfile for the compiler.
19005 fix_srcfile_path=$lt_fix_srcfile_path_FC
19007 # Set to "yes" if exported symbols are required.
19008 always_export_symbols=$always_export_symbols_FC
19010 # The commands to list exported symbols.
19011 export_symbols_cmds=$lt_export_symbols_cmds_FC
19013 # Symbols that should not be listed in the preloaded symbols.
19014 exclude_expsyms=$lt_exclude_expsyms_FC
19016 # Symbols that must always be exported.
19017 include_expsyms=$lt_include_expsyms_FC
19019 # Commands necessary for linking programs (against libraries) with templates.
19020 prelink_cmds=$lt_prelink_cmds_FC
19022 # Specify filename containing input files.
19023 file_list_spec=$lt_file_list_spec_FC
19025 # How to hardcode a shared library path into an executable.
19026 hardcode_action=$hardcode_action_FC
19028 # The directories searched by this compiler when creating a shared library.
19029 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
19031 # Dependencies to place before and after the objects being linked to
19032 # create a shared library.
19033 predep_objects=$lt_predep_objects_FC
19034 postdep_objects=$lt_postdep_objects_FC
19035 predeps=$lt_predeps_FC
19036 postdeps=$lt_postdeps_FC
19038 # The library search path used internally by the compiler when linking
19039 # a shared library.
19040 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
19042 # ### END LIBTOOL TAG CONFIG: FC
19043 _LT_EOF
19046 "gstdint.h":C)
19047 if test "$GCC" = yes; then
19048 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
19049 else
19050 echo "/* generated for $CC */" > tmp-stdint.h
19053 sed 's/^ *//' >> tmp-stdint.h <<EOF
19055 #ifndef GCC_GENERATED_STDINT_H
19056 #define GCC_GENERATED_STDINT_H 1
19058 #include <sys/types.h>
19061 if test "$acx_cv_header_stdint" != stdint.h; then
19062 echo "#include <stddef.h>" >> tmp-stdint.h
19064 if test "$acx_cv_header_stdint" != stddef.h; then
19065 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
19068 sed 's/^ *//' >> tmp-stdint.h <<EOF
19069 /* glibc uses these symbols as guards to prevent redefinitions. */
19070 #ifdef __int8_t_defined
19071 #define _INT8_T
19072 #define _INT16_T
19073 #define _INT32_T
19074 #endif
19075 #ifdef __uint32_t_defined
19076 #define _UINT32_T
19077 #endif
19081 # ----------------- done header, emit basic int types -------------
19082 if test "$acx_cv_header_stdint" = stddef.h; then
19083 sed 's/^ *//' >> tmp-stdint.h <<EOF
19085 #ifndef _UINT8_T
19086 #define _UINT8_T
19087 #ifndef __uint8_t_defined
19088 #define __uint8_t_defined
19089 #ifndef uint8_t
19090 typedef unsigned $acx_cv_type_int8_t uint8_t;
19091 #endif
19092 #endif
19093 #endif
19095 #ifndef _UINT16_T
19096 #define _UINT16_T
19097 #ifndef __uint16_t_defined
19098 #define __uint16_t_defined
19099 #ifndef uint16_t
19100 typedef unsigned $acx_cv_type_int16_t uint16_t;
19101 #endif
19102 #endif
19103 #endif
19105 #ifndef _UINT32_T
19106 #define _UINT32_T
19107 #ifndef __uint32_t_defined
19108 #define __uint32_t_defined
19109 #ifndef uint32_t
19110 typedef unsigned $acx_cv_type_int32_t uint32_t;
19111 #endif
19112 #endif
19113 #endif
19115 #ifndef _INT8_T
19116 #define _INT8_T
19117 #ifndef __int8_t_defined
19118 #define __int8_t_defined
19119 #ifndef int8_t
19120 typedef $acx_cv_type_int8_t int8_t;
19121 #endif
19122 #endif
19123 #endif
19125 #ifndef _INT16_T
19126 #define _INT16_T
19127 #ifndef __int16_t_defined
19128 #define __int16_t_defined
19129 #ifndef int16_t
19130 typedef $acx_cv_type_int16_t int16_t;
19131 #endif
19132 #endif
19133 #endif
19135 #ifndef _INT32_T
19136 #define _INT32_T
19137 #ifndef __int32_t_defined
19138 #define __int32_t_defined
19139 #ifndef int32_t
19140 typedef $acx_cv_type_int32_t int32_t;
19141 #endif
19142 #endif
19143 #endif
19145 elif test "$ac_cv_type_u_int32_t" = yes; then
19146 sed 's/^ *//' >> tmp-stdint.h <<EOF
19148 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
19149 #ifndef _INT8_T
19150 #define _INT8_T
19151 #endif
19152 #ifndef _INT16_T
19153 #define _INT16_T
19154 #endif
19155 #ifndef _INT32_T
19156 #define _INT32_T
19157 #endif
19159 #ifndef _UINT8_T
19160 #define _UINT8_T
19161 #ifndef __uint8_t_defined
19162 #define __uint8_t_defined
19163 #ifndef uint8_t
19164 typedef u_int8_t uint8_t;
19165 #endif
19166 #endif
19167 #endif
19169 #ifndef _UINT16_T
19170 #define _UINT16_T
19171 #ifndef __uint16_t_defined
19172 #define __uint16_t_defined
19173 #ifndef uint16_t
19174 typedef u_int16_t uint16_t;
19175 #endif
19176 #endif
19177 #endif
19179 #ifndef _UINT32_T
19180 #define _UINT32_T
19181 #ifndef __uint32_t_defined
19182 #define __uint32_t_defined
19183 #ifndef uint32_t
19184 typedef u_int32_t uint32_t;
19185 #endif
19186 #endif
19187 #endif
19189 else
19190 sed 's/^ *//' >> tmp-stdint.h <<EOF
19192 /* Some systems have guard macros to prevent redefinitions, define them. */
19193 #ifndef _INT8_T
19194 #define _INT8_T
19195 #endif
19196 #ifndef _INT16_T
19197 #define _INT16_T
19198 #endif
19199 #ifndef _INT32_T
19200 #define _INT32_T
19201 #endif
19202 #ifndef _UINT8_T
19203 #define _UINT8_T
19204 #endif
19205 #ifndef _UINT16_T
19206 #define _UINT16_T
19207 #endif
19208 #ifndef _UINT32_T
19209 #define _UINT32_T
19210 #endif
19214 # ------------- done basic int types, emit int64_t types ------------
19215 if test "$ac_cv_type_uint64_t" = yes; then
19216 sed 's/^ *//' >> tmp-stdint.h <<EOF
19218 /* system headers have good uint64_t and int64_t */
19219 #ifndef _INT64_T
19220 #define _INT64_T
19221 #endif
19222 #ifndef _UINT64_T
19223 #define _UINT64_T
19224 #endif
19226 elif test "$ac_cv_type_u_int64_t" = yes; then
19227 sed 's/^ *//' >> tmp-stdint.h <<EOF
19229 /* system headers have an u_int64_t (and int64_t) */
19230 #ifndef _INT64_T
19231 #define _INT64_T
19232 #endif
19233 #ifndef _UINT64_T
19234 #define _UINT64_T
19235 #ifndef __uint64_t_defined
19236 #define __uint64_t_defined
19237 #ifndef uint64_t
19238 typedef u_int64_t uint64_t;
19239 #endif
19240 #endif
19241 #endif
19243 elif test -n "$acx_cv_type_int64_t"; then
19244 sed 's/^ *//' >> tmp-stdint.h <<EOF
19246 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
19247 #ifndef _INT64_T
19248 #define _INT64_T
19249 #ifndef int64_t
19250 typedef $acx_cv_type_int64_t int64_t;
19251 #endif
19252 #endif
19253 #ifndef _UINT64_T
19254 #define _UINT64_T
19255 #ifndef __uint64_t_defined
19256 #define __uint64_t_defined
19257 #ifndef uint64_t
19258 typedef unsigned $acx_cv_type_int64_t uint64_t;
19259 #endif
19260 #endif
19261 #endif
19263 else
19264 sed 's/^ *//' >> tmp-stdint.h <<EOF
19266 /* some common heuristics for int64_t, using compiler-specific tests */
19267 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
19268 #ifndef _INT64_T
19269 #define _INT64_T
19270 #ifndef __int64_t_defined
19271 #ifndef int64_t
19272 typedef long long int64_t;
19273 #endif
19274 #endif
19275 #endif
19276 #ifndef _UINT64_T
19277 #define _UINT64_T
19278 #ifndef uint64_t
19279 typedef unsigned long long uint64_t;
19280 #endif
19281 #endif
19283 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
19284 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
19285 does not implement __extension__. But that compiler doesn't define
19286 __GNUC_MINOR__. */
19287 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
19288 # define __extension__
19289 # endif
19291 # ifndef _INT64_T
19292 # define _INT64_T
19293 # ifndef int64_t
19294 __extension__ typedef long long int64_t;
19295 # endif
19296 # endif
19297 # ifndef _UINT64_T
19298 # define _UINT64_T
19299 # ifndef uint64_t
19300 __extension__ typedef unsigned long long uint64_t;
19301 # endif
19302 # endif
19304 #elif !defined __STRICT_ANSI__
19305 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
19307 # ifndef _INT64_T
19308 # define _INT64_T
19309 # ifndef int64_t
19310 typedef __int64 int64_t;
19311 # endif
19312 # endif
19313 # ifndef _UINT64_T
19314 # define _UINT64_T
19315 # ifndef uint64_t
19316 typedef unsigned __int64 uint64_t;
19317 # endif
19318 # endif
19319 # endif /* compiler */
19321 #endif /* ANSI version */
19325 # ------------- done int64_t types, emit intptr types ------------
19326 if test "$ac_cv_type_uintptr_t" != yes; then
19327 sed 's/^ *//' >> tmp-stdint.h <<EOF
19329 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
19330 #ifndef __uintptr_t_defined
19331 #ifndef uintptr_t
19332 typedef u$acx_cv_type_intptr_t uintptr_t;
19333 #endif
19334 #endif
19335 #ifndef __intptr_t_defined
19336 #ifndef intptr_t
19337 typedef $acx_cv_type_intptr_t intptr_t;
19338 #endif
19339 #endif
19343 # ------------- done intptr types, emit int_least types ------------
19344 if test "$ac_cv_type_int_least32_t" != yes; then
19345 sed 's/^ *//' >> tmp-stdint.h <<EOF
19347 /* Define int_least types */
19348 typedef int8_t int_least8_t;
19349 typedef int16_t int_least16_t;
19350 typedef int32_t int_least32_t;
19351 #ifdef _INT64_T
19352 typedef int64_t int_least64_t;
19353 #endif
19355 typedef uint8_t uint_least8_t;
19356 typedef uint16_t uint_least16_t;
19357 typedef uint32_t uint_least32_t;
19358 #ifdef _UINT64_T
19359 typedef uint64_t uint_least64_t;
19360 #endif
19364 # ------------- done intptr types, emit int_fast types ------------
19365 if test "$ac_cv_type_int_fast32_t" != yes; then
19366 sed 's/^ *//' >> tmp-stdint.h <<EOF
19368 /* Define int_fast types. short is often slow */
19369 typedef int8_t int_fast8_t;
19370 typedef int int_fast16_t;
19371 typedef int32_t int_fast32_t;
19372 #ifdef _INT64_T
19373 typedef int64_t int_fast64_t;
19374 #endif
19376 typedef uint8_t uint_fast8_t;
19377 typedef unsigned int uint_fast16_t;
19378 typedef uint32_t uint_fast32_t;
19379 #ifdef _UINT64_T
19380 typedef uint64_t uint_fast64_t;
19381 #endif
19385 if test "$ac_cv_type_uintmax_t" != yes; then
19386 sed 's/^ *//' >> tmp-stdint.h <<EOF
19388 /* Define intmax based on what we found */
19389 #ifndef intmax_t
19390 #ifdef _INT64_T
19391 typedef int64_t intmax_t;
19392 #else
19393 typedef long intmax_t;
19394 #endif
19395 #endif
19396 #ifndef uintmax_t
19397 #ifdef _UINT64_T
19398 typedef uint64_t uintmax_t;
19399 #else
19400 typedef unsigned long uintmax_t;
19401 #endif
19402 #endif
19406 sed 's/^ *//' >> tmp-stdint.h <<EOF
19408 #endif /* GCC_GENERATED_STDINT_H */
19411 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
19412 rm -f tmp-stdint.h
19413 else
19414 mv -f tmp-stdint.h gstdint.h
19419 esac
19420 done # for ac_tag
19423 as_fn_exit 0
19424 _ACEOF
19425 ac_clean_files=$ac_clean_files_save
19427 test $ac_write_fail = 0 ||
19428 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19431 # configure is writing to config.log, and then calls config.status.
19432 # config.status does its own redirection, appending to config.log.
19433 # Unfortunately, on DOS this fails, as config.log is still kept open
19434 # by configure, so config.status won't be able to write to it; its
19435 # output is simply discarded. So we exec the FD to /dev/null,
19436 # effectively closing config.log, so it can be properly (re)opened and
19437 # appended to by config.status. When coming back to configure, we
19438 # need to make the FD available again.
19439 if test "$no_create" != yes; then
19440 ac_cs_success=:
19441 ac_config_status_args=
19442 test "$silent" = yes &&
19443 ac_config_status_args="$ac_config_status_args --quiet"
19444 exec 5>/dev/null
19445 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19446 exec 5>>config.log
19447 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19448 # would make configure fail if this is the last instruction.
19449 $ac_cs_success || as_fn_exit $?
19453 # CONFIG_SUBDIRS section.
19455 if test "$no_recursion" != yes; then
19457 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
19458 # so they do not pile up.
19459 ac_sub_configure_args=
19460 ac_prev=
19461 eval "set x $ac_configure_args"
19462 shift
19463 for ac_arg
19465 if test -n "$ac_prev"; then
19466 ac_prev=
19467 continue
19469 case $ac_arg in
19470 -cache-file | --cache-file | --cache-fil | --cache-fi \
19471 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19472 ac_prev=cache_file ;;
19473 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19474 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19475 | --c=*)
19477 --config-cache | -C)
19479 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19480 ac_prev=srcdir ;;
19481 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19483 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19484 ac_prev=prefix ;;
19485 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19487 --disable-option-checking)
19490 case $ac_arg in
19491 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19492 esac
19493 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
19494 esac
19495 done
19497 # Always prepend --prefix to ensure using the same prefix
19498 # in subdir configurations.
19499 ac_arg="--prefix=$prefix"
19500 case $ac_arg in
19501 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19502 esac
19503 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
19505 # Pass --silent
19506 if test "$silent" = yes; then
19507 ac_sub_configure_args="--silent $ac_sub_configure_args"
19510 # Always prepend --disable-option-checking to silence warnings, since
19511 # different subdirs can have different --enable and --with options.
19512 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
19514 ac_popdir=`pwd`
19515 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19517 # Do not complain, so a configure script can configure whichever
19518 # parts of a large source tree are present.
19519 test -d "$srcdir/$ac_dir" || continue
19521 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19522 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
19523 $as_echo "$ac_msg" >&6
19524 as_dir="$ac_dir"; as_fn_mkdir_p
19525 ac_builddir=.
19527 case "$ac_dir" in
19528 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19530 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19531 # A ".." for each directory in $ac_dir_suffix.
19532 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19533 case $ac_top_builddir_sub in
19534 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19535 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19536 esac ;;
19537 esac
19538 ac_abs_top_builddir=$ac_pwd
19539 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19540 # for backward compatibility:
19541 ac_top_builddir=$ac_top_build_prefix
19543 case $srcdir in
19544 .) # We are building in place.
19545 ac_srcdir=.
19546 ac_top_srcdir=$ac_top_builddir_sub
19547 ac_abs_top_srcdir=$ac_pwd ;;
19548 [\\/]* | ?:[\\/]* ) # Absolute name.
19549 ac_srcdir=$srcdir$ac_dir_suffix;
19550 ac_top_srcdir=$srcdir
19551 ac_abs_top_srcdir=$srcdir ;;
19552 *) # Relative name.
19553 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19554 ac_top_srcdir=$ac_top_build_prefix$srcdir
19555 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19556 esac
19557 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19560 cd "$ac_dir"
19562 # Check for guested configure; otherwise get Cygnus style configure.
19563 if test -f "$ac_srcdir/configure.gnu"; then
19564 ac_sub_configure=$ac_srcdir/configure.gnu
19565 elif test -f "$ac_srcdir/configure"; then
19566 ac_sub_configure=$ac_srcdir/configure
19567 elif test -f "$ac_srcdir/configure.in"; then
19568 # This should be Cygnus configure.
19569 ac_sub_configure=$ac_aux_dir/configure
19570 else
19571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
19572 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19573 ac_sub_configure=
19576 # The recursion is here.
19577 if test -n "$ac_sub_configure"; then
19578 # Make the cache file name correct relative to the subdirectory.
19579 case $cache_file in
19580 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19581 *) # Relative name.
19582 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
19583 esac
19585 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
19586 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19587 # The eval makes quoting arguments work.
19588 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19589 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19590 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
19593 cd "$ac_popdir"
19594 done
19596 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19598 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}