* config.gcc (sh64*) <tm_file>: Add newlib-stdint.h for
[official-gcc.git] / libgomp / configure
blob9dd832380bc00af7f7386364e696ae65c4ae7a74
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 ac_subst_vars='am__EXEEXT_FALSE
601 am__EXEEXT_TRUE
602 LTLIBOBJS
603 LIBOBJS
604 OMP_NEST_LOCK_25_KIND
605 OMP_LOCK_25_KIND
606 OMP_NEST_LOCK_25_ALIGN
607 OMP_NEST_LOCK_25_SIZE
608 OMP_LOCK_25_ALIGN
609 OMP_LOCK_25_SIZE
610 OMP_NEST_LOCK_KIND
611 OMP_LOCK_KIND
612 OMP_NEST_LOCK_ALIGN
613 OMP_NEST_LOCK_SIZE
614 OMP_LOCK_ALIGN
615 OMP_LOCK_SIZE
616 USE_FORTRAN_FALSE
617 USE_FORTRAN_TRUE
618 link_gomp
619 XLDFLAGS
620 XCFLAGS
621 config_path
622 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2_FALSE
623 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2_TRUE
624 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
625 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
626 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
627 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
628 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
629 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
630 OPT_LDFLAGS
631 SECTION_LDFLAGS
632 libtool_VERSION
633 ac_ct_FC
634 FCFLAGS
636 MAINT
637 MAINTAINER_MODE_FALSE
638 MAINTAINER_MODE_TRUE
639 enable_static
640 enable_shared
642 OTOOL64
643 OTOOL
644 LIPO
645 NMEDIT
646 DSYMUTIL
647 OBJDUMP
648 LN_S
650 ac_ct_DUMPBIN
651 DUMPBIN
653 FGREP
654 EGREP
655 GREP
657 LIBTOOL
658 BUILD_INFO_FALSE
659 BUILD_INFO_TRUE
660 PERL
661 RANLIB
663 am__fastdepCC_FALSE
664 am__fastdepCC_TRUE
665 CCDEPMODE
666 AMDEPBACKSLASH
667 AMDEP_FALSE
668 AMDEP_TRUE
669 am__quote
670 am__include
671 DEPDIR
672 OBJEXT
673 EXEEXT
674 ac_ct_CC
675 CPPFLAGS
676 LDFLAGS
677 CFLAGS
679 toolexeclibdir
680 toolexecdir
681 multi_basedir
682 am__untar
683 am__tar
684 AMTAR
685 am__leading_dot
686 SET_MAKE
688 mkdir_p
689 MKDIR_P
690 INSTALL_STRIP_PROGRAM
691 STRIP
692 install_sh
693 MAKEINFO
694 AUTOHEADER
695 AUTOMAKE
696 AUTOCONF
697 ACLOCAL
698 VERSION
699 PACKAGE
700 CYGPATH_W
701 am__isrc
702 INSTALL_DATA
703 INSTALL_SCRIPT
704 INSTALL_PROGRAM
705 target_os
706 target_vendor
707 target_cpu
708 target
709 host_os
710 host_vendor
711 host_cpu
712 host
713 build_os
714 build_vendor
715 build_cpu
716 build
717 GENINSRC_FALSE
718 GENINSRC_TRUE
719 target_alias
720 host_alias
721 build_alias
722 LIBS
723 ECHO_T
724 ECHO_N
725 ECHO_C
726 DEFS
727 mandir
728 localedir
729 libdir
730 psdir
731 pdfdir
732 dvidir
733 htmldir
734 infodir
735 docdir
736 oldincludedir
737 includedir
738 localstatedir
739 sharedstatedir
740 sysconfdir
741 datadir
742 datarootdir
743 libexecdir
744 sbindir
745 bindir
746 program_transform_name
747 prefix
748 exec_prefix
749 PACKAGE_URL
750 PACKAGE_BUGREPORT
751 PACKAGE_STRING
752 PACKAGE_VERSION
753 PACKAGE_TARNAME
754 PACKAGE_NAME
755 PATH_SEPARATOR
756 SHELL'
757 ac_subst_files=''
758 ac_user_opts='
759 enable_option_checking
760 enable_version_specific_runtime_libs
761 enable_generated_files_in_srcdir
762 enable_multilib
763 enable_dependency_tracking
764 enable_shared
765 enable_static
766 with_pic
767 enable_fast_install
768 with_gnu_ld
769 enable_libtool_lock
770 enable_maintainer_mode
771 enable_linux_futex
772 enable_tls
773 enable_symvers
775 ac_precious_vars='build_alias
776 host_alias
777 target_alias
779 CPPFLAGS
781 FCFLAGS
782 LDFLAGS
783 LIBS'
786 # Initialize some variables set by options.
787 ac_init_help=
788 ac_init_version=false
789 ac_unrecognized_opts=
790 ac_unrecognized_sep=
791 # The variables have the same names as the options, with
792 # dashes changed to underlines.
793 cache_file=/dev/null
794 exec_prefix=NONE
795 no_create=
796 no_recursion=
797 prefix=NONE
798 program_prefix=NONE
799 program_suffix=NONE
800 program_transform_name=s,x,x,
801 silent=
802 site=
803 srcdir=
804 verbose=
805 x_includes=NONE
806 x_libraries=NONE
808 # Installation directory options.
809 # These are left unexpanded so users can "make install exec_prefix=/foo"
810 # and all the variables that are supposed to be based on exec_prefix
811 # by default will actually change.
812 # Use braces instead of parens because sh, perl, etc. also accept them.
813 # (The list follows the same order as the GNU Coding Standards.)
814 bindir='${exec_prefix}/bin'
815 sbindir='${exec_prefix}/sbin'
816 libexecdir='${exec_prefix}/libexec'
817 datarootdir='${prefix}/share'
818 datadir='${datarootdir}'
819 sysconfdir='${prefix}/etc'
820 sharedstatedir='${prefix}/com'
821 localstatedir='${prefix}/var'
822 includedir='${prefix}/include'
823 oldincludedir='/usr/include'
824 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
825 infodir='${datarootdir}/info'
826 htmldir='${docdir}'
827 dvidir='${docdir}'
828 pdfdir='${docdir}'
829 psdir='${docdir}'
830 libdir='${exec_prefix}/lib'
831 localedir='${datarootdir}/locale'
832 mandir='${datarootdir}/man'
834 ac_prev=
835 ac_dashdash=
836 for ac_option
838 # If the previous option needs an argument, assign it.
839 if test -n "$ac_prev"; then
840 eval $ac_prev=\$ac_option
841 ac_prev=
842 continue
845 case $ac_option in
846 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
847 *) ac_optarg=yes ;;
848 esac
850 # Accept the important Cygnus configure options, so we can diagnose typos.
852 case $ac_dashdash$ac_option in
854 ac_dashdash=yes ;;
856 -bindir | --bindir | --bindi | --bind | --bin | --bi)
857 ac_prev=bindir ;;
858 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
859 bindir=$ac_optarg ;;
861 -build | --build | --buil | --bui | --bu)
862 ac_prev=build_alias ;;
863 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
864 build_alias=$ac_optarg ;;
866 -cache-file | --cache-file | --cache-fil | --cache-fi \
867 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
868 ac_prev=cache_file ;;
869 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
870 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
871 cache_file=$ac_optarg ;;
873 --config-cache | -C)
874 cache_file=config.cache ;;
876 -datadir | --datadir | --datadi | --datad)
877 ac_prev=datadir ;;
878 -datadir=* | --datadir=* | --datadi=* | --datad=*)
879 datadir=$ac_optarg ;;
881 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
882 | --dataroo | --dataro | --datar)
883 ac_prev=datarootdir ;;
884 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
885 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
886 datarootdir=$ac_optarg ;;
888 -disable-* | --disable-*)
889 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
890 # Reject names that are not valid shell variable names.
891 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
892 as_fn_error "invalid feature name: $ac_useropt"
893 ac_useropt_orig=$ac_useropt
894 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
895 case $ac_user_opts in
897 "enable_$ac_useropt"
898 "*) ;;
899 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
900 ac_unrecognized_sep=', ';;
901 esac
902 eval enable_$ac_useropt=no ;;
904 -docdir | --docdir | --docdi | --doc | --do)
905 ac_prev=docdir ;;
906 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
907 docdir=$ac_optarg ;;
909 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
910 ac_prev=dvidir ;;
911 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
912 dvidir=$ac_optarg ;;
914 -enable-* | --enable-*)
915 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
916 # Reject names that are not valid shell variable names.
917 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
918 as_fn_error "invalid feature name: $ac_useropt"
919 ac_useropt_orig=$ac_useropt
920 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
921 case $ac_user_opts in
923 "enable_$ac_useropt"
924 "*) ;;
925 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
926 ac_unrecognized_sep=', ';;
927 esac
928 eval enable_$ac_useropt=\$ac_optarg ;;
930 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
931 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
932 | --exec | --exe | --ex)
933 ac_prev=exec_prefix ;;
934 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
935 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
936 | --exec=* | --exe=* | --ex=*)
937 exec_prefix=$ac_optarg ;;
939 -gas | --gas | --ga | --g)
940 # Obsolete; use --with-gas.
941 with_gas=yes ;;
943 -help | --help | --hel | --he | -h)
944 ac_init_help=long ;;
945 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
946 ac_init_help=recursive ;;
947 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
948 ac_init_help=short ;;
950 -host | --host | --hos | --ho)
951 ac_prev=host_alias ;;
952 -host=* | --host=* | --hos=* | --ho=*)
953 host_alias=$ac_optarg ;;
955 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
956 ac_prev=htmldir ;;
957 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
958 | --ht=*)
959 htmldir=$ac_optarg ;;
961 -includedir | --includedir | --includedi | --included | --include \
962 | --includ | --inclu | --incl | --inc)
963 ac_prev=includedir ;;
964 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
965 | --includ=* | --inclu=* | --incl=* | --inc=*)
966 includedir=$ac_optarg ;;
968 -infodir | --infodir | --infodi | --infod | --info | --inf)
969 ac_prev=infodir ;;
970 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
971 infodir=$ac_optarg ;;
973 -libdir | --libdir | --libdi | --libd)
974 ac_prev=libdir ;;
975 -libdir=* | --libdir=* | --libdi=* | --libd=*)
976 libdir=$ac_optarg ;;
978 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
979 | --libexe | --libex | --libe)
980 ac_prev=libexecdir ;;
981 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
982 | --libexe=* | --libex=* | --libe=*)
983 libexecdir=$ac_optarg ;;
985 -localedir | --localedir | --localedi | --localed | --locale)
986 ac_prev=localedir ;;
987 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
988 localedir=$ac_optarg ;;
990 -localstatedir | --localstatedir | --localstatedi | --localstated \
991 | --localstate | --localstat | --localsta | --localst | --locals)
992 ac_prev=localstatedir ;;
993 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
994 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
995 localstatedir=$ac_optarg ;;
997 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
998 ac_prev=mandir ;;
999 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1000 mandir=$ac_optarg ;;
1002 -nfp | --nfp | --nf)
1003 # Obsolete; use --without-fp.
1004 with_fp=no ;;
1006 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1007 | --no-cr | --no-c | -n)
1008 no_create=yes ;;
1010 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1011 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1012 no_recursion=yes ;;
1014 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1015 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1016 | --oldin | --oldi | --old | --ol | --o)
1017 ac_prev=oldincludedir ;;
1018 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1019 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1020 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1021 oldincludedir=$ac_optarg ;;
1023 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1024 ac_prev=prefix ;;
1025 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1026 prefix=$ac_optarg ;;
1028 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1029 | --program-pre | --program-pr | --program-p)
1030 ac_prev=program_prefix ;;
1031 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1032 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1033 program_prefix=$ac_optarg ;;
1035 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1036 | --program-suf | --program-su | --program-s)
1037 ac_prev=program_suffix ;;
1038 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1039 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1040 program_suffix=$ac_optarg ;;
1042 -program-transform-name | --program-transform-name \
1043 | --program-transform-nam | --program-transform-na \
1044 | --program-transform-n | --program-transform- \
1045 | --program-transform | --program-transfor \
1046 | --program-transfo | --program-transf \
1047 | --program-trans | --program-tran \
1048 | --progr-tra | --program-tr | --program-t)
1049 ac_prev=program_transform_name ;;
1050 -program-transform-name=* | --program-transform-name=* \
1051 | --program-transform-nam=* | --program-transform-na=* \
1052 | --program-transform-n=* | --program-transform-=* \
1053 | --program-transform=* | --program-transfor=* \
1054 | --program-transfo=* | --program-transf=* \
1055 | --program-trans=* | --program-tran=* \
1056 | --progr-tra=* | --program-tr=* | --program-t=*)
1057 program_transform_name=$ac_optarg ;;
1059 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1060 ac_prev=pdfdir ;;
1061 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1062 pdfdir=$ac_optarg ;;
1064 -psdir | --psdir | --psdi | --psd | --ps)
1065 ac_prev=psdir ;;
1066 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1067 psdir=$ac_optarg ;;
1069 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1070 | -silent | --silent | --silen | --sile | --sil)
1071 silent=yes ;;
1073 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1074 ac_prev=sbindir ;;
1075 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1076 | --sbi=* | --sb=*)
1077 sbindir=$ac_optarg ;;
1079 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1080 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1081 | --sharedst | --shareds | --shared | --share | --shar \
1082 | --sha | --sh)
1083 ac_prev=sharedstatedir ;;
1084 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1085 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1086 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1087 | --sha=* | --sh=*)
1088 sharedstatedir=$ac_optarg ;;
1090 -site | --site | --sit)
1091 ac_prev=site ;;
1092 -site=* | --site=* | --sit=*)
1093 site=$ac_optarg ;;
1095 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1096 ac_prev=srcdir ;;
1097 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1098 srcdir=$ac_optarg ;;
1100 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1101 | --syscon | --sysco | --sysc | --sys | --sy)
1102 ac_prev=sysconfdir ;;
1103 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1104 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1105 sysconfdir=$ac_optarg ;;
1107 -target | --target | --targe | --targ | --tar | --ta | --t)
1108 ac_prev=target_alias ;;
1109 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1110 target_alias=$ac_optarg ;;
1112 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1113 verbose=yes ;;
1115 -version | --version | --versio | --versi | --vers | -V)
1116 ac_init_version=: ;;
1118 -with-* | --with-*)
1119 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1120 # Reject names that are not valid shell variable names.
1121 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1122 as_fn_error "invalid package name: $ac_useropt"
1123 ac_useropt_orig=$ac_useropt
1124 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1125 case $ac_user_opts in
1127 "with_$ac_useropt"
1128 "*) ;;
1129 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1130 ac_unrecognized_sep=', ';;
1131 esac
1132 eval with_$ac_useropt=\$ac_optarg ;;
1134 -without-* | --without-*)
1135 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1136 # Reject names that are not valid shell variable names.
1137 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1138 as_fn_error "invalid package name: $ac_useropt"
1139 ac_useropt_orig=$ac_useropt
1140 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1141 case $ac_user_opts in
1143 "with_$ac_useropt"
1144 "*) ;;
1145 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1146 ac_unrecognized_sep=', ';;
1147 esac
1148 eval with_$ac_useropt=no ;;
1150 --x)
1151 # Obsolete; use --with-x.
1152 with_x=yes ;;
1154 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1155 | --x-incl | --x-inc | --x-in | --x-i)
1156 ac_prev=x_includes ;;
1157 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1158 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1159 x_includes=$ac_optarg ;;
1161 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1162 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1163 ac_prev=x_libraries ;;
1164 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1165 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1166 x_libraries=$ac_optarg ;;
1168 -*) as_fn_error "unrecognized option: \`$ac_option'
1169 Try \`$0 --help' for more information."
1172 *=*)
1173 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1174 # Reject names that are not valid shell variable names.
1175 case $ac_envvar in #(
1176 '' | [0-9]* | *[!_$as_cr_alnum]* )
1177 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1178 esac
1179 eval $ac_envvar=\$ac_optarg
1180 export $ac_envvar ;;
1183 # FIXME: should be removed in autoconf 3.0.
1184 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1185 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1186 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1187 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1190 esac
1191 done
1193 if test -n "$ac_prev"; then
1194 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1195 as_fn_error "missing argument to $ac_option"
1198 if test -n "$ac_unrecognized_opts"; then
1199 case $enable_option_checking in
1200 no) ;;
1201 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1202 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1203 esac
1206 # Check all directory arguments for consistency.
1207 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1208 datadir sysconfdir sharedstatedir localstatedir includedir \
1209 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1210 libdir localedir mandir
1212 eval ac_val=\$$ac_var
1213 # Remove trailing slashes.
1214 case $ac_val in
1215 */ )
1216 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1217 eval $ac_var=\$ac_val;;
1218 esac
1219 # Be sure to have absolute directory names.
1220 case $ac_val in
1221 [\\/$]* | ?:[\\/]* ) continue;;
1222 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1223 esac
1224 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1225 done
1227 # There might be people who depend on the old broken behavior: `$host'
1228 # used to hold the argument of --host etc.
1229 # FIXME: To remove some day.
1230 build=$build_alias
1231 host=$host_alias
1232 target=$target_alias
1234 # FIXME: To remove some day.
1235 if test "x$host_alias" != x; then
1236 if test "x$build_alias" = x; then
1237 cross_compiling=maybe
1238 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1239 If a cross compiler is detected then cross compile mode will be used." >&2
1240 elif test "x$build_alias" != "x$host_alias"; then
1241 cross_compiling=yes
1245 ac_tool_prefix=
1246 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1248 test "$silent" = yes && exec 6>/dev/null
1251 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1252 ac_ls_di=`ls -di .` &&
1253 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1254 as_fn_error "working directory cannot be determined"
1255 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1256 as_fn_error "pwd does not report name of working directory"
1259 # Find the source files, if location was not specified.
1260 if test -z "$srcdir"; then
1261 ac_srcdir_defaulted=yes
1262 # Try the directory containing this script, then the parent directory.
1263 ac_confdir=`$as_dirname -- "$as_myself" ||
1264 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1265 X"$as_myself" : 'X\(//\)[^/]' \| \
1266 X"$as_myself" : 'X\(//\)$' \| \
1267 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1268 $as_echo X"$as_myself" |
1269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1270 s//\1/
1273 /^X\(\/\/\)[^/].*/{
1274 s//\1/
1277 /^X\(\/\/\)$/{
1278 s//\1/
1281 /^X\(\/\).*/{
1282 s//\1/
1285 s/.*/./; q'`
1286 srcdir=$ac_confdir
1287 if test ! -r "$srcdir/$ac_unique_file"; then
1288 srcdir=..
1290 else
1291 ac_srcdir_defaulted=no
1293 if test ! -r "$srcdir/$ac_unique_file"; then
1294 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1295 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1297 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1298 ac_abs_confdir=`(
1299 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1300 pwd)`
1301 # When building in place, set srcdir=.
1302 if test "$ac_abs_confdir" = "$ac_pwd"; then
1303 srcdir=.
1305 # Remove unnecessary trailing slashes from srcdir.
1306 # Double slashes in file names in object file debugging info
1307 # mess up M-x gdb in Emacs.
1308 case $srcdir in
1309 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1310 esac
1311 for ac_var in $ac_precious_vars; do
1312 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1313 eval ac_env_${ac_var}_value=\$${ac_var}
1314 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1315 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1316 done
1319 # Report the --help message.
1321 if test "$ac_init_help" = "long"; then
1322 # Omit some internal or obsolete options to make the list less imposing.
1323 # This message is too long to be a string in the A/UX 3.1 sh.
1324 cat <<_ACEOF
1325 \`configure' configures GNU OpenMP Runtime Library 1.0 to adapt to many kinds of systems.
1327 Usage: $0 [OPTION]... [VAR=VALUE]...
1329 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1330 VAR=VALUE. See below for descriptions of some of the useful variables.
1332 Defaults for the options are specified in brackets.
1334 Configuration:
1335 -h, --help display this help and exit
1336 --help=short display options specific to this package
1337 --help=recursive display the short help of all the included packages
1338 -V, --version display version information and exit
1339 -q, --quiet, --silent do not print \`checking...' messages
1340 --cache-file=FILE cache test results in FILE [disabled]
1341 -C, --config-cache alias for \`--cache-file=config.cache'
1342 -n, --no-create do not create output files
1343 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1345 Installation directories:
1346 --prefix=PREFIX install architecture-independent files in PREFIX
1347 [$ac_default_prefix]
1348 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1349 [PREFIX]
1351 By default, \`make install' will install all the files in
1352 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1353 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1354 for instance \`--prefix=\$HOME'.
1356 For better control, use the options below.
1358 Fine tuning of the installation directories:
1359 --bindir=DIR user executables [EPREFIX/bin]
1360 --sbindir=DIR system admin executables [EPREFIX/sbin]
1361 --libexecdir=DIR program executables [EPREFIX/libexec]
1362 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1363 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1364 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1365 --libdir=DIR object code libraries [EPREFIX/lib]
1366 --includedir=DIR C header files [PREFIX/include]
1367 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1368 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1369 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1370 --infodir=DIR info documentation [DATAROOTDIR/info]
1371 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1372 --mandir=DIR man documentation [DATAROOTDIR/man]
1373 --docdir=DIR documentation root [DATAROOTDIR/doc/libgomp]
1374 --htmldir=DIR html documentation [DOCDIR]
1375 --dvidir=DIR dvi documentation [DOCDIR]
1376 --pdfdir=DIR pdf documentation [DOCDIR]
1377 --psdir=DIR ps documentation [DOCDIR]
1378 _ACEOF
1380 cat <<\_ACEOF
1382 Program names:
1383 --program-prefix=PREFIX prepend PREFIX to installed program names
1384 --program-suffix=SUFFIX append SUFFIX to installed program names
1385 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1387 System types:
1388 --build=BUILD configure for building on BUILD [guessed]
1389 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1390 --target=TARGET configure for building compilers for TARGET [HOST]
1391 _ACEOF
1394 if test -n "$ac_init_help"; then
1395 case $ac_init_help in
1396 short | recursive ) echo "Configuration of GNU OpenMP Runtime Library 1.0:";;
1397 esac
1398 cat <<\_ACEOF
1400 Optional Features:
1401 --disable-option-checking ignore unrecognized --enable/--with options
1402 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1403 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1404 --enable-version-specific-runtime-libs
1405 Specify that runtime libraries should be installed
1406 in a compiler-specific directory [default=no]
1407 --enable-generated-files-in-srcdir
1408 put copies of generated files in source dir intended
1409 for creating source tarballs for users without
1410 texinfo bison or flex. [default=no]
1411 --enable-multilib build many library versions (default)
1412 --disable-dependency-tracking speeds up one-time build
1413 --enable-dependency-tracking do not reject slow dependency extractors
1414 --enable-shared[=PKGS] build shared libraries [default=yes]
1415 --enable-static[=PKGS] build static libraries [default=yes]
1416 --enable-fast-install[=PKGS]
1417 optimize for fast installation [default=yes]
1418 --disable-libtool-lock avoid locking (might break parallel builds)
1419 --enable-maintainer-mode enable make rules and dependencies not useful
1420 (and sometimes confusing) to the casual installer
1421 --enable-linux-futex use the Linux futex system call [default=default]
1422 --enable-tls Use thread-local storage [default=yes]
1423 --enable-symvers=STYLE enables symbol versioning of the shared library
1424 [default=yes]
1426 Optional Packages:
1427 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1428 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1429 --with-pic try to use only PIC/non-PIC objects [default=use
1430 both]
1431 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1433 Some influential environment variables:
1434 CC C compiler command
1435 CFLAGS C compiler flags
1436 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1437 nonstandard directory <lib dir>
1438 LIBS libraries to pass to the linker, e.g. -l<library>
1439 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1440 you have headers in a nonstandard directory <include dir>
1441 CPP C preprocessor
1442 FC Fortran compiler command
1443 FCFLAGS Fortran compiler flags
1445 Use these variables to override the choices made by `configure' or to help
1446 it to find libraries and programs with nonstandard names/locations.
1448 Report bugs to the package provider.
1449 GNU OpenMP Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
1450 General help using GNU software: <http://www.gnu.org/gethelp/>.
1451 _ACEOF
1452 ac_status=$?
1455 if test "$ac_init_help" = "recursive"; then
1456 # If there are subdirs, report their specific --help.
1457 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1458 test -d "$ac_dir" ||
1459 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1460 continue
1461 ac_builddir=.
1463 case "$ac_dir" in
1464 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1466 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1467 # A ".." for each directory in $ac_dir_suffix.
1468 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1469 case $ac_top_builddir_sub in
1470 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1471 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1472 esac ;;
1473 esac
1474 ac_abs_top_builddir=$ac_pwd
1475 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1476 # for backward compatibility:
1477 ac_top_builddir=$ac_top_build_prefix
1479 case $srcdir in
1480 .) # We are building in place.
1481 ac_srcdir=.
1482 ac_top_srcdir=$ac_top_builddir_sub
1483 ac_abs_top_srcdir=$ac_pwd ;;
1484 [\\/]* | ?:[\\/]* ) # Absolute name.
1485 ac_srcdir=$srcdir$ac_dir_suffix;
1486 ac_top_srcdir=$srcdir
1487 ac_abs_top_srcdir=$srcdir ;;
1488 *) # Relative name.
1489 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1490 ac_top_srcdir=$ac_top_build_prefix$srcdir
1491 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1492 esac
1493 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1495 cd "$ac_dir" || { ac_status=$?; continue; }
1496 # Check for guested configure.
1497 if test -f "$ac_srcdir/configure.gnu"; then
1498 echo &&
1499 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1500 elif test -f "$ac_srcdir/configure"; then
1501 echo &&
1502 $SHELL "$ac_srcdir/configure" --help=recursive
1503 else
1504 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1505 fi || ac_status=$?
1506 cd "$ac_pwd" || { ac_status=$?; break; }
1507 done
1510 test -n "$ac_init_help" && exit $ac_status
1511 if $ac_init_version; then
1512 cat <<\_ACEOF
1513 GNU OpenMP Runtime Library configure 1.0
1514 generated by GNU Autoconf 2.64
1516 Copyright (C) 2009 Free Software Foundation, Inc.
1517 This configure script is free software; the Free Software Foundation
1518 gives unlimited permission to copy, distribute and modify it.
1519 _ACEOF
1520 exit
1523 ## ------------------------ ##
1524 ## Autoconf initialization. ##
1525 ## ------------------------ ##
1527 # ac_fn_c_try_compile LINENO
1528 # --------------------------
1529 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1530 ac_fn_c_try_compile ()
1532 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1533 rm -f conftest.$ac_objext
1534 if { { ac_try="$ac_compile"
1535 case "(($ac_try" in
1536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1537 *) ac_try_echo=$ac_try;;
1538 esac
1539 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1540 $as_echo "$ac_try_echo"; } >&5
1541 (eval "$ac_compile") 2>conftest.err
1542 ac_status=$?
1543 if test -s conftest.err; then
1544 grep -v '^ *+' conftest.err >conftest.er1
1545 cat conftest.er1 >&5
1546 mv -f conftest.er1 conftest.err
1548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1549 test $ac_status = 0; } && {
1550 test -z "$ac_c_werror_flag" ||
1551 test ! -s conftest.err
1552 } && test -s conftest.$ac_objext; then :
1553 ac_retval=0
1554 else
1555 $as_echo "$as_me: failed program was:" >&5
1556 sed 's/^/| /' conftest.$ac_ext >&5
1558 ac_retval=1
1560 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1561 return $ac_retval
1563 } # ac_fn_c_try_compile
1565 # ac_fn_c_try_link LINENO
1566 # -----------------------
1567 # Try to link conftest.$ac_ext, and return whether this succeeded.
1568 ac_fn_c_try_link ()
1570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1571 rm -f conftest.$ac_objext conftest$ac_exeext
1572 if { { ac_try="$ac_link"
1573 case "(($ac_try" in
1574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1575 *) ac_try_echo=$ac_try;;
1576 esac
1577 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1578 $as_echo "$ac_try_echo"; } >&5
1579 (eval "$ac_link") 2>conftest.err
1580 ac_status=$?
1581 if test -s conftest.err; then
1582 grep -v '^ *+' conftest.err >conftest.er1
1583 cat conftest.er1 >&5
1584 mv -f conftest.er1 conftest.err
1586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1587 test $ac_status = 0; } && {
1588 test -z "$ac_c_werror_flag" ||
1589 test ! -s conftest.err
1590 } && test -s conftest$ac_exeext && {
1591 test "$cross_compiling" = yes ||
1592 $as_test_x conftest$ac_exeext
1593 }; then :
1594 ac_retval=0
1595 else
1596 $as_echo "$as_me: failed program was:" >&5
1597 sed 's/^/| /' conftest.$ac_ext >&5
1599 ac_retval=1
1601 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1602 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1603 # interfere with the next link command; also delete a directory that is
1604 # left behind by Apple's compiler. We do this before executing the actions.
1605 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1606 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1607 return $ac_retval
1609 } # ac_fn_c_try_link
1611 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1612 # -------------------------------------------------------
1613 # Tests whether HEADER exists and can be compiled using the include files in
1614 # INCLUDES, setting the cache variable VAR accordingly.
1615 ac_fn_c_check_header_compile ()
1617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1619 $as_echo_n "checking for $2... " >&6; }
1620 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1621 $as_echo_n "(cached) " >&6
1622 else
1623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1624 /* end confdefs.h. */
1626 #include <$2>
1627 _ACEOF
1628 if ac_fn_c_try_compile "$LINENO"; then :
1629 eval "$3=yes"
1630 else
1631 eval "$3=no"
1633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1635 eval ac_res=\$$3
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1637 $as_echo "$ac_res" >&6; }
1638 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1640 } # ac_fn_c_check_header_compile
1642 # ac_fn_c_try_cpp LINENO
1643 # ----------------------
1644 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1645 ac_fn_c_try_cpp ()
1647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648 if { { ac_try="$ac_cpp conftest.$ac_ext"
1649 case "(($ac_try" in
1650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1651 *) ac_try_echo=$ac_try;;
1652 esac
1653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1654 $as_echo "$ac_try_echo"; } >&5
1655 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1656 ac_status=$?
1657 if test -s conftest.err; then
1658 grep -v '^ *+' conftest.err >conftest.er1
1659 cat conftest.er1 >&5
1660 mv -f conftest.er1 conftest.err
1662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1663 test $ac_status = 0; } >/dev/null && {
1664 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1665 test ! -s conftest.err
1666 }; then :
1667 ac_retval=0
1668 else
1669 $as_echo "$as_me: failed program was:" >&5
1670 sed 's/^/| /' conftest.$ac_ext >&5
1672 ac_retval=1
1674 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1675 return $ac_retval
1677 } # ac_fn_c_try_cpp
1679 # ac_fn_c_try_run LINENO
1680 # ----------------------
1681 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1682 # that executables *can* be run.
1683 ac_fn_c_try_run ()
1685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686 if { { ac_try="$ac_link"
1687 case "(($ac_try" in
1688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689 *) ac_try_echo=$ac_try;;
1690 esac
1691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692 $as_echo "$ac_try_echo"; } >&5
1693 (eval "$ac_link") 2>&5
1694 ac_status=$?
1695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1697 { { case "(($ac_try" in
1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699 *) ac_try_echo=$ac_try;;
1700 esac
1701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702 $as_echo "$ac_try_echo"; } >&5
1703 (eval "$ac_try") 2>&5
1704 ac_status=$?
1705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706 test $ac_status = 0; }; }; then :
1707 ac_retval=0
1708 else
1709 $as_echo "$as_me: program exited with status $ac_status" >&5
1710 $as_echo "$as_me: failed program was:" >&5
1711 sed 's/^/| /' conftest.$ac_ext >&5
1713 ac_retval=$ac_status
1715 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1716 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1717 return $ac_retval
1719 } # ac_fn_c_try_run
1721 # ac_fn_c_check_func LINENO FUNC VAR
1722 # ----------------------------------
1723 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1724 ac_fn_c_check_func ()
1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1728 $as_echo_n "checking for $2... " >&6; }
1729 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1730 $as_echo_n "(cached) " >&6
1731 else
1732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1733 /* end confdefs.h. */
1734 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1735 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1736 #define $2 innocuous_$2
1738 /* System header to define __stub macros and hopefully few prototypes,
1739 which can conflict with char $2 (); below.
1740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1741 <limits.h> exists even on freestanding compilers. */
1743 #ifdef __STDC__
1744 # include <limits.h>
1745 #else
1746 # include <assert.h>
1747 #endif
1749 #undef $2
1751 /* Override any GCC internal prototype to avoid an error.
1752 Use char because int might match the return type of a GCC
1753 builtin and then its argument prototype would still apply. */
1754 #ifdef __cplusplus
1755 extern "C"
1756 #endif
1757 char $2 ();
1758 /* The GNU C library defines this for functions which it implements
1759 to always fail with ENOSYS. Some functions are actually named
1760 something starting with __ and the normal name is an alias. */
1761 #if defined __stub_$2 || defined __stub___$2
1762 choke me
1763 #endif
1766 main ()
1768 return $2 ();
1770 return 0;
1772 _ACEOF
1773 if ac_fn_c_try_link "$LINENO"; then :
1774 eval "$3=yes"
1775 else
1776 eval "$3=no"
1778 rm -f core conftest.err conftest.$ac_objext \
1779 conftest$ac_exeext conftest.$ac_ext
1781 eval ac_res=\$$3
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1783 $as_echo "$ac_res" >&6; }
1784 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1786 } # ac_fn_c_check_func
1788 # ac_fn_fc_try_compile LINENO
1789 # ---------------------------
1790 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1791 ac_fn_fc_try_compile ()
1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794 rm -f conftest.$ac_objext
1795 if { { ac_try="$ac_compile"
1796 case "(($ac_try" in
1797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1798 *) ac_try_echo=$ac_try;;
1799 esac
1800 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1801 $as_echo "$ac_try_echo"; } >&5
1802 (eval "$ac_compile") 2>conftest.err
1803 ac_status=$?
1804 if test -s conftest.err; then
1805 grep -v '^ *+' conftest.err >conftest.er1
1806 cat conftest.er1 >&5
1807 mv -f conftest.er1 conftest.err
1809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1810 test $ac_status = 0; } && {
1811 test -z "$ac_fc_werror_flag" ||
1812 test ! -s conftest.err
1813 } && test -s conftest.$ac_objext; then :
1814 ac_retval=0
1815 else
1816 $as_echo "$as_me: failed program was:" >&5
1817 sed 's/^/| /' conftest.$ac_ext >&5
1819 ac_retval=1
1821 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1822 return $ac_retval
1824 } # ac_fn_fc_try_compile
1826 # ac_fn_fc_try_link LINENO
1827 # ------------------------
1828 # Try to link conftest.$ac_ext, and return whether this succeeded.
1829 ac_fn_fc_try_link ()
1831 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832 rm -f conftest.$ac_objext conftest$ac_exeext
1833 if { { ac_try="$ac_link"
1834 case "(($ac_try" in
1835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1836 *) ac_try_echo=$ac_try;;
1837 esac
1838 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1839 $as_echo "$ac_try_echo"; } >&5
1840 (eval "$ac_link") 2>conftest.err
1841 ac_status=$?
1842 if test -s conftest.err; then
1843 grep -v '^ *+' conftest.err >conftest.er1
1844 cat conftest.er1 >&5
1845 mv -f conftest.er1 conftest.err
1847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1848 test $ac_status = 0; } && {
1849 test -z "$ac_fc_werror_flag" ||
1850 test ! -s conftest.err
1851 } && test -s conftest$ac_exeext && {
1852 test "$cross_compiling" = yes ||
1853 $as_test_x conftest$ac_exeext
1854 }; then :
1855 ac_retval=0
1856 else
1857 $as_echo "$as_me: failed program was:" >&5
1858 sed 's/^/| /' conftest.$ac_ext >&5
1860 ac_retval=1
1862 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1863 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1864 # interfere with the next link command; also delete a directory that is
1865 # left behind by Apple's compiler. We do this before executing the actions.
1866 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1867 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1868 return $ac_retval
1870 } # ac_fn_fc_try_link
1872 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1873 # -------------------------------------------------------
1874 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1875 # the include files in INCLUDES and setting the cache variable VAR
1876 # accordingly.
1877 ac_fn_c_check_header_mongrel ()
1879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1882 $as_echo_n "checking for $2... " >&6; }
1883 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1884 $as_echo_n "(cached) " >&6
1886 eval ac_res=\$$3
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1888 $as_echo "$ac_res" >&6; }
1889 else
1890 # Is the header compilable?
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1892 $as_echo_n "checking $2 usability... " >&6; }
1893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1894 /* end confdefs.h. */
1896 #include <$2>
1897 _ACEOF
1898 if ac_fn_c_try_compile "$LINENO"; then :
1899 ac_header_compiler=yes
1900 else
1901 ac_header_compiler=no
1903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1905 $as_echo "$ac_header_compiler" >&6; }
1907 # Is the header present?
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1909 $as_echo_n "checking $2 presence... " >&6; }
1910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1911 /* end confdefs.h. */
1912 #include <$2>
1913 _ACEOF
1914 if ac_fn_c_try_cpp "$LINENO"; then :
1915 ac_header_preproc=yes
1916 else
1917 ac_header_preproc=no
1919 rm -f conftest.err conftest.$ac_ext
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1921 $as_echo "$ac_header_preproc" >&6; }
1923 # So? What about this header?
1924 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1925 yes:no: )
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1927 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1929 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1931 no:yes:* )
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1933 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1935 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1937 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1939 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1941 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1943 esac
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1945 $as_echo_n "checking for $2... " >&6; }
1946 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1947 $as_echo_n "(cached) " >&6
1948 else
1949 eval "$3=\$ac_header_compiler"
1951 eval ac_res=\$$3
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1953 $as_echo "$ac_res" >&6; }
1955 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1957 } # ac_fn_c_check_header_mongrel
1959 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1960 # -------------------------------------------
1961 # Tests whether TYPE exists after having included INCLUDES, setting cache
1962 # variable VAR accordingly.
1963 ac_fn_c_check_type ()
1965 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1967 $as_echo_n "checking for $2... " >&6; }
1968 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1969 $as_echo_n "(cached) " >&6
1970 else
1971 eval "$3=no"
1972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1973 /* end confdefs.h. */
1976 main ()
1978 if (sizeof ($2))
1979 return 0;
1981 return 0;
1983 _ACEOF
1984 if ac_fn_c_try_compile "$LINENO"; then :
1985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1986 /* end confdefs.h. */
1989 main ()
1991 if (sizeof (($2)))
1992 return 0;
1994 return 0;
1996 _ACEOF
1997 if ac_fn_c_try_compile "$LINENO"; then :
1999 else
2000 eval "$3=yes"
2002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2006 eval ac_res=\$$3
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2008 $as_echo "$ac_res" >&6; }
2009 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2011 } # ac_fn_c_check_type
2013 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2014 # --------------------------------------------
2015 # Tries to find the compile-time value of EXPR in a program that includes
2016 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2017 # computed
2018 ac_fn_c_compute_int ()
2020 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2021 if test "$cross_compiling" = yes; then
2022 # Depending upon the size, compute the lo and hi bounds.
2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024 /* end confdefs.h. */
2027 main ()
2029 static int test_array [1 - 2 * !(($2) >= 0)];
2030 test_array [0] = 0
2033 return 0;
2035 _ACEOF
2036 if ac_fn_c_try_compile "$LINENO"; then :
2037 ac_lo=0 ac_mid=0
2038 while :; do
2039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2040 /* end confdefs.h. */
2043 main ()
2045 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2046 test_array [0] = 0
2049 return 0;
2051 _ACEOF
2052 if ac_fn_c_try_compile "$LINENO"; then :
2053 ac_hi=$ac_mid; break
2054 else
2055 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2056 if test $ac_lo -le $ac_mid; then
2057 ac_lo= ac_hi=
2058 break
2060 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2063 done
2064 else
2065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066 /* end confdefs.h. */
2069 main ()
2071 static int test_array [1 - 2 * !(($2) < 0)];
2072 test_array [0] = 0
2075 return 0;
2077 _ACEOF
2078 if ac_fn_c_try_compile "$LINENO"; then :
2079 ac_hi=-1 ac_mid=-1
2080 while :; do
2081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2082 /* end confdefs.h. */
2085 main ()
2087 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2088 test_array [0] = 0
2091 return 0;
2093 _ACEOF
2094 if ac_fn_c_try_compile "$LINENO"; then :
2095 ac_lo=$ac_mid; break
2096 else
2097 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2098 if test $ac_mid -le $ac_hi; then
2099 ac_lo= ac_hi=
2100 break
2102 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2105 done
2106 else
2107 ac_lo= ac_hi=
2109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2112 # Binary search between lo and hi bounds.
2113 while test "x$ac_lo" != "x$ac_hi"; do
2114 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2116 /* end confdefs.h. */
2119 main ()
2121 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2122 test_array [0] = 0
2125 return 0;
2127 _ACEOF
2128 if ac_fn_c_try_compile "$LINENO"; then :
2129 ac_hi=$ac_mid
2130 else
2131 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2134 done
2135 case $ac_lo in #((
2136 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2137 '') ac_retval=1 ;;
2138 esac
2139 else
2140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2141 /* end confdefs.h. */
2143 static long int longval () { return $2; }
2144 static unsigned long int ulongval () { return $2; }
2145 #include <stdio.h>
2146 #include <stdlib.h>
2148 main ()
2151 FILE *f = fopen ("conftest.val", "w");
2152 if (! f)
2153 return 1;
2154 if (($2) < 0)
2156 long int i = longval ();
2157 if (i != ($2))
2158 return 1;
2159 fprintf (f, "%ld", i);
2161 else
2163 unsigned long int i = ulongval ();
2164 if (i != ($2))
2165 return 1;
2166 fprintf (f, "%lu", i);
2168 /* Do not output a trailing newline, as this causes \r\n confusion
2169 on some platforms. */
2170 return ferror (f) || fclose (f) != 0;
2173 return 0;
2175 _ACEOF
2176 if ac_fn_c_try_run "$LINENO"; then :
2177 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2178 else
2179 ac_retval=1
2181 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2182 conftest.$ac_objext conftest.beam conftest.$ac_ext
2183 rm -f conftest.val
2186 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2187 return $ac_retval
2189 } # ac_fn_c_compute_int
2190 cat >config.log <<_ACEOF
2191 This file contains any messages produced by compilers while
2192 running configure, to aid debugging if configure makes a mistake.
2194 It was created by GNU OpenMP Runtime Library $as_me 1.0, which was
2195 generated by GNU Autoconf 2.64. Invocation command line was
2197 $ $0 $@
2199 _ACEOF
2200 exec 5>>config.log
2202 cat <<_ASUNAME
2203 ## --------- ##
2204 ## Platform. ##
2205 ## --------- ##
2207 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2208 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2209 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2210 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2211 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2213 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2214 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2216 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2217 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2218 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2219 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2220 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2221 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2222 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2224 _ASUNAME
2226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2227 for as_dir in $PATH
2229 IFS=$as_save_IFS
2230 test -z "$as_dir" && as_dir=.
2231 $as_echo "PATH: $as_dir"
2232 done
2233 IFS=$as_save_IFS
2235 } >&5
2237 cat >&5 <<_ACEOF
2240 ## ----------- ##
2241 ## Core tests. ##
2242 ## ----------- ##
2244 _ACEOF
2247 # Keep a trace of the command line.
2248 # Strip out --no-create and --no-recursion so they do not pile up.
2249 # Strip out --silent because we don't want to record it for future runs.
2250 # Also quote any args containing shell meta-characters.
2251 # Make two passes to allow for proper duplicate-argument suppression.
2252 ac_configure_args=
2253 ac_configure_args0=
2254 ac_configure_args1=
2255 ac_must_keep_next=false
2256 for ac_pass in 1 2
2258 for ac_arg
2260 case $ac_arg in
2261 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2262 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2263 | -silent | --silent | --silen | --sile | --sil)
2264 continue ;;
2265 *\'*)
2266 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2267 esac
2268 case $ac_pass in
2269 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2271 as_fn_append ac_configure_args1 " '$ac_arg'"
2272 if test $ac_must_keep_next = true; then
2273 ac_must_keep_next=false # Got value, back to normal.
2274 else
2275 case $ac_arg in
2276 *=* | --config-cache | -C | -disable-* | --disable-* \
2277 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2278 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2279 | -with-* | --with-* | -without-* | --without-* | --x)
2280 case "$ac_configure_args0 " in
2281 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2282 esac
2284 -* ) ac_must_keep_next=true ;;
2285 esac
2287 as_fn_append ac_configure_args " '$ac_arg'"
2289 esac
2290 done
2291 done
2292 { ac_configure_args0=; unset ac_configure_args0;}
2293 { ac_configure_args1=; unset ac_configure_args1;}
2295 # When interrupted or exit'd, cleanup temporary files, and complete
2296 # config.log. We remove comments because anyway the quotes in there
2297 # would cause problems or look ugly.
2298 # WARNING: Use '\'' to represent an apostrophe within the trap.
2299 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2300 trap 'exit_status=$?
2301 # Save into config.log some information that might help in debugging.
2303 echo
2305 cat <<\_ASBOX
2306 ## ---------------- ##
2307 ## Cache variables. ##
2308 ## ---------------- ##
2309 _ASBOX
2310 echo
2311 # The following way of writing the cache mishandles newlines in values,
2313 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2314 eval ac_val=\$$ac_var
2315 case $ac_val in #(
2316 *${as_nl}*)
2317 case $ac_var in #(
2318 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2319 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2320 esac
2321 case $ac_var in #(
2322 _ | IFS | as_nl) ;; #(
2323 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2324 *) { eval $ac_var=; unset $ac_var;} ;;
2325 esac ;;
2326 esac
2327 done
2328 (set) 2>&1 |
2329 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2330 *${as_nl}ac_space=\ *)
2331 sed -n \
2332 "s/'\''/'\''\\\\'\'''\''/g;
2333 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2334 ;; #(
2336 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2338 esac |
2339 sort
2341 echo
2343 cat <<\_ASBOX
2344 ## ----------------- ##
2345 ## Output variables. ##
2346 ## ----------------- ##
2347 _ASBOX
2348 echo
2349 for ac_var in $ac_subst_vars
2351 eval ac_val=\$$ac_var
2352 case $ac_val in
2353 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2354 esac
2355 $as_echo "$ac_var='\''$ac_val'\''"
2356 done | sort
2357 echo
2359 if test -n "$ac_subst_files"; then
2360 cat <<\_ASBOX
2361 ## ------------------- ##
2362 ## File substitutions. ##
2363 ## ------------------- ##
2364 _ASBOX
2365 echo
2366 for ac_var in $ac_subst_files
2368 eval ac_val=\$$ac_var
2369 case $ac_val in
2370 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2371 esac
2372 $as_echo "$ac_var='\''$ac_val'\''"
2373 done | sort
2374 echo
2377 if test -s confdefs.h; then
2378 cat <<\_ASBOX
2379 ## ----------- ##
2380 ## confdefs.h. ##
2381 ## ----------- ##
2382 _ASBOX
2383 echo
2384 cat confdefs.h
2385 echo
2387 test "$ac_signal" != 0 &&
2388 $as_echo "$as_me: caught signal $ac_signal"
2389 $as_echo "$as_me: exit $exit_status"
2390 } >&5
2391 rm -f core *.core core.conftest.* &&
2392 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2393 exit $exit_status
2395 for ac_signal in 1 2 13 15; do
2396 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2397 done
2398 ac_signal=0
2400 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2401 rm -f -r conftest* confdefs.h
2403 $as_echo "/* confdefs.h */" > confdefs.h
2405 # Predefined preprocessor variables.
2407 cat >>confdefs.h <<_ACEOF
2408 #define PACKAGE_NAME "$PACKAGE_NAME"
2409 _ACEOF
2411 cat >>confdefs.h <<_ACEOF
2412 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2413 _ACEOF
2415 cat >>confdefs.h <<_ACEOF
2416 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2417 _ACEOF
2419 cat >>confdefs.h <<_ACEOF
2420 #define PACKAGE_STRING "$PACKAGE_STRING"
2421 _ACEOF
2423 cat >>confdefs.h <<_ACEOF
2424 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2425 _ACEOF
2427 cat >>confdefs.h <<_ACEOF
2428 #define PACKAGE_URL "$PACKAGE_URL"
2429 _ACEOF
2432 # Let the site file select an alternate cache file if it wants to.
2433 # Prefer an explicitly selected file to automatically selected ones.
2434 ac_site_file1=NONE
2435 ac_site_file2=NONE
2436 if test -n "$CONFIG_SITE"; then
2437 ac_site_file1=$CONFIG_SITE
2438 elif test "x$prefix" != xNONE; then
2439 ac_site_file1=$prefix/share/config.site
2440 ac_site_file2=$prefix/etc/config.site
2441 else
2442 ac_site_file1=$ac_default_prefix/share/config.site
2443 ac_site_file2=$ac_default_prefix/etc/config.site
2445 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2447 test "x$ac_site_file" = xNONE && continue
2448 if test -r "$ac_site_file"; then
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2450 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2451 sed 's/^/| /' "$ac_site_file" >&5
2452 . "$ac_site_file"
2454 done
2456 if test -r "$cache_file"; then
2457 # Some versions of bash will fail to source /dev/null (special
2458 # files actually), so we avoid doing that.
2459 if test -f "$cache_file"; then
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2461 $as_echo "$as_me: loading cache $cache_file" >&6;}
2462 case $cache_file in
2463 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2464 *) . "./$cache_file";;
2465 esac
2467 else
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2469 $as_echo "$as_me: creating cache $cache_file" >&6;}
2470 >$cache_file
2473 # Check that the precious variables saved in the cache have kept the same
2474 # value.
2475 ac_cache_corrupted=false
2476 for ac_var in $ac_precious_vars; do
2477 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2478 eval ac_new_set=\$ac_env_${ac_var}_set
2479 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2480 eval ac_new_val=\$ac_env_${ac_var}_value
2481 case $ac_old_set,$ac_new_set in
2482 set,)
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2484 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2485 ac_cache_corrupted=: ;;
2486 ,set)
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2488 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2489 ac_cache_corrupted=: ;;
2490 ,);;
2492 if test "x$ac_old_val" != "x$ac_new_val"; then
2493 # differences in whitespace do not lead to failure.
2494 ac_old_val_w=`echo x $ac_old_val`
2495 ac_new_val_w=`echo x $ac_new_val`
2496 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2498 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2499 ac_cache_corrupted=:
2500 else
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2502 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2503 eval $ac_var=\$ac_old_val
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2506 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2508 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2509 fi;;
2510 esac
2511 # Pass precious variables to config.status.
2512 if test "$ac_new_set" = set; then
2513 case $ac_new_val in
2514 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2515 *) ac_arg=$ac_var=$ac_new_val ;;
2516 esac
2517 case " $ac_configure_args " in
2518 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2519 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2520 esac
2522 done
2523 if $ac_cache_corrupted; then
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2527 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2528 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2530 ## -------------------- ##
2531 ## Main body of script. ##
2532 ## -------------------- ##
2534 ac_ext=c
2535 ac_cpp='$CPP $CPPFLAGS'
2536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2544 ac_config_headers="$ac_config_headers config.h"
2547 # -------
2548 # Options
2549 # -------
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2552 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2553 # Check whether --enable-version-specific-runtime-libs was given.
2554 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2555 enableval=$enable_version_specific_runtime_libs;
2556 case "$enableval" in
2557 yes|no) ;;
2558 *) as_fn_error "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2559 esac
2561 else
2562 enable_version_specific_runtime_libs=no
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2567 $as_echo "$enable_version_specific_runtime_libs" >&6; }
2569 # We would like our source tree to be readonly. However when releases or
2570 # pre-releases are generated, the flex/bison generated files as well as the
2571 # various formats of manuals need to be included along with the rest of the
2572 # sources. Therefore we have --enable-generated-files-in-srcdir to do
2573 # just that.
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2575 $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2576 # Check whether --enable-generated-files-in-srcdir was given.
2577 if test "${enable_generated_files_in_srcdir+set}" = set; then :
2578 enableval=$enable_generated_files_in_srcdir;
2579 case "$enableval" in
2580 yes|no) ;;
2581 *) as_fn_error "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2582 esac
2584 else
2585 enable_generated_files_in_srcdir=no
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2590 $as_echo "$enable_generated_files_in_srcdir" >&6; }
2591 if test "$enable_generated_files_in_srcdir" = yes; then
2592 GENINSRC_TRUE=
2593 GENINSRC_FALSE='#'
2594 else
2595 GENINSRC_TRUE='#'
2596 GENINSRC_FALSE=
2601 # -------
2602 # -------
2604 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2606 # You will slowly go insane if you do not grok the following fact: when
2607 # building this library, the top-level /target/ becomes the library's /host/.
2609 # configure then causes --target to default to --host, exactly like any
2610 # other package using autoconf. Therefore, 'target' and 'host' will
2611 # always be the same. This makes sense both for native and cross compilers
2612 # just think about it for a little while. :-)
2614 # Also, if this library is being configured as part of a cross compiler, the
2615 # top-level configure script will pass the "real" host as $with_cross_host.
2617 # Do not delete or change the following two lines. For why, see
2618 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2619 ac_aux_dir=
2620 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2621 for ac_t in install-sh install.sh shtool; do
2622 if test -f "$ac_dir/$ac_t"; then
2623 ac_aux_dir=$ac_dir
2624 ac_install_sh="$ac_aux_dir/$ac_t -c"
2625 break 2
2627 done
2628 done
2629 if test -z "$ac_aux_dir"; then
2630 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2633 # These three variables are undocumented and unsupported,
2634 # and are intended to be withdrawn in a future Autoconf release.
2635 # They can cause serious problems if a builder's source tree is in a directory
2636 # whose full name contains unusual characters.
2637 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2638 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2639 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2642 # Make sure we can run config.sub.
2643 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2644 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2647 $as_echo_n "checking build system type... " >&6; }
2648 if test "${ac_cv_build+set}" = set; then :
2649 $as_echo_n "(cached) " >&6
2650 else
2651 ac_build_alias=$build_alias
2652 test "x$ac_build_alias" = x &&
2653 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2654 test "x$ac_build_alias" = x &&
2655 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2656 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2657 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2661 $as_echo "$ac_cv_build" >&6; }
2662 case $ac_cv_build in
2663 *-*-*) ;;
2664 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2665 esac
2666 build=$ac_cv_build
2667 ac_save_IFS=$IFS; IFS='-'
2668 set x $ac_cv_build
2669 shift
2670 build_cpu=$1
2671 build_vendor=$2
2672 shift; shift
2673 # Remember, the first character of IFS is used to create $*,
2674 # except with old shells:
2675 build_os=$*
2676 IFS=$ac_save_IFS
2677 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2681 $as_echo_n "checking host system type... " >&6; }
2682 if test "${ac_cv_host+set}" = set; then :
2683 $as_echo_n "(cached) " >&6
2684 else
2685 if test "x$host_alias" = x; then
2686 ac_cv_host=$ac_cv_build
2687 else
2688 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2689 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2694 $as_echo "$ac_cv_host" >&6; }
2695 case $ac_cv_host in
2696 *-*-*) ;;
2697 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2698 esac
2699 host=$ac_cv_host
2700 ac_save_IFS=$IFS; IFS='-'
2701 set x $ac_cv_host
2702 shift
2703 host_cpu=$1
2704 host_vendor=$2
2705 shift; shift
2706 # Remember, the first character of IFS is used to create $*,
2707 # except with old shells:
2708 host_os=$*
2709 IFS=$ac_save_IFS
2710 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2714 $as_echo_n "checking target system type... " >&6; }
2715 if test "${ac_cv_target+set}" = set; then :
2716 $as_echo_n "(cached) " >&6
2717 else
2718 if test "x$target_alias" = x; then
2719 ac_cv_target=$ac_cv_host
2720 else
2721 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2722 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2727 $as_echo "$ac_cv_target" >&6; }
2728 case $ac_cv_target in
2729 *-*-*) ;;
2730 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2731 esac
2732 target=$ac_cv_target
2733 ac_save_IFS=$IFS; IFS='-'
2734 set x $ac_cv_target
2735 shift
2736 target_cpu=$1
2737 target_vendor=$2
2738 shift; shift
2739 # Remember, the first character of IFS is used to create $*,
2740 # except with old shells:
2741 target_os=$*
2742 IFS=$ac_save_IFS
2743 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2746 # The aliases save the names the user supplied, while $host etc.
2747 # will get canonicalized.
2748 test -n "$target_alias" &&
2749 test "$program_prefix$program_suffix$program_transform_name" = \
2750 NONENONEs,x,x, &&
2751 program_prefix=${target_alias}-
2753 target_alias=${target_alias-$host_alias}
2755 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2756 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2757 # 1.9.0: minimum required version
2758 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2759 # of other PACKAGE_* variables will, however, and there's nothing
2760 # we can do about that; they come from AC_INIT).
2761 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2762 # file in the top srcdir, etc, etc), so stop complaining.
2763 # no-dist: we don't want 'dist' and related rules.
2764 # -Wall: turns on all automake warnings...
2765 # -Wno-portability: ...except this one, since GNU make is required.
2766 # -Wno-override: ... and this one, since we do want this in testsuite.
2767 am__api_version='1.11'
2769 # Find a good install program. We prefer a C program (faster),
2770 # so one script is as good as another. But avoid the broken or
2771 # incompatible versions:
2772 # SysV /etc/install, /usr/sbin/install
2773 # SunOS /usr/etc/install
2774 # IRIX /sbin/install
2775 # AIX /bin/install
2776 # AmigaOS /C/install, which installs bootblocks on floppy discs
2777 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2778 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2779 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2780 # OS/2's system install, which has a completely different semantic
2781 # ./install, which can be erroneously created by make from ./install.sh.
2782 # Reject install programs that cannot install multiple files.
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2784 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2785 if test -z "$INSTALL"; then
2786 if test "${ac_cv_path_install+set}" = set; then :
2787 $as_echo_n "(cached) " >&6
2788 else
2789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2790 for as_dir in $PATH
2792 IFS=$as_save_IFS
2793 test -z "$as_dir" && as_dir=.
2794 # Account for people who put trailing slashes in PATH elements.
2795 case $as_dir/ in #((
2796 ./ | .// | /[cC]/* | \
2797 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2798 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2799 /usr/ucb/* ) ;;
2801 # OSF1 and SCO ODT 3.0 have their own names for install.
2802 # Don't use installbsd from OSF since it installs stuff as root
2803 # by default.
2804 for ac_prog in ginstall scoinst install; do
2805 for ac_exec_ext in '' $ac_executable_extensions; do
2806 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2807 if test $ac_prog = install &&
2808 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2809 # AIX install. It has an incompatible calling convention.
2811 elif test $ac_prog = install &&
2812 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2813 # program-specific install script used by HP pwplus--don't use.
2815 else
2816 rm -rf conftest.one conftest.two conftest.dir
2817 echo one > conftest.one
2818 echo two > conftest.two
2819 mkdir conftest.dir
2820 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2821 test -s conftest.one && test -s conftest.two &&
2822 test -s conftest.dir/conftest.one &&
2823 test -s conftest.dir/conftest.two
2824 then
2825 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2826 break 3
2830 done
2831 done
2833 esac
2835 done
2836 IFS=$as_save_IFS
2838 rm -rf conftest.one conftest.two conftest.dir
2841 if test "${ac_cv_path_install+set}" = set; then
2842 INSTALL=$ac_cv_path_install
2843 else
2844 # As a last resort, use the slow shell script. Don't cache a
2845 # value for INSTALL within a source directory, because that will
2846 # break other packages using the cache if that directory is
2847 # removed, or if the value is a relative name.
2848 INSTALL=$ac_install_sh
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2852 $as_echo "$INSTALL" >&6; }
2854 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2855 # It thinks the first close brace ends the variable substitution.
2856 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2858 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2860 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2863 $as_echo_n "checking whether build environment is sane... " >&6; }
2864 # Just in case
2865 sleep 1
2866 echo timestamp > conftest.file
2867 # Reject unsafe characters in $srcdir or the absolute working directory
2868 # name. Accept space and tab only in the latter.
2869 am_lf='
2871 case `pwd` in
2872 *[\\\"\#\$\&\'\`$am_lf]*)
2873 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2874 esac
2875 case $srcdir in
2876 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2877 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2878 esac
2880 # Do `set' in a subshell so we don't clobber the current shell's
2881 # arguments. Must try -L first in case configure is actually a
2882 # symlink; some systems play weird games with the mod time of symlinks
2883 # (eg FreeBSD returns the mod time of the symlink's containing
2884 # directory).
2885 if (
2886 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2887 if test "$*" = "X"; then
2888 # -L didn't work.
2889 set X `ls -t "$srcdir/configure" conftest.file`
2891 rm -f conftest.file
2892 if test "$*" != "X $srcdir/configure conftest.file" \
2893 && test "$*" != "X conftest.file $srcdir/configure"; then
2895 # If neither matched, then we have a broken ls. This can happen
2896 # if, for instance, CONFIG_SHELL is bash and it inherits a
2897 # broken ls alias from the environment. This has actually
2898 # happened. Such a system could not be considered "sane".
2899 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2900 alias in your environment" "$LINENO" 5
2903 test "$2" = conftest.file
2905 then
2906 # Ok.
2908 else
2909 as_fn_error "newly created file is older than distributed files!
2910 Check your system clock" "$LINENO" 5
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2913 $as_echo "yes" >&6; }
2914 test "$program_prefix" != NONE &&
2915 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2916 # Use a double $ so make ignores it.
2917 test "$program_suffix" != NONE &&
2918 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2919 # Double any \ or $.
2920 # By default was `s,x,x', remove it if useless.
2921 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2922 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2924 # expand $ac_aux_dir to an absolute path
2925 am_aux_dir=`cd $ac_aux_dir && pwd`
2927 if test x"${MISSING+set}" != xset; then
2928 case $am_aux_dir in
2929 *\ * | *\ *)
2930 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2932 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2933 esac
2935 # Use eval to expand $SHELL
2936 if eval "$MISSING --run true"; then
2937 am_missing_run="$MISSING --run "
2938 else
2939 am_missing_run=
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2941 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2944 if test x"${install_sh}" != xset; then
2945 case $am_aux_dir in
2946 *\ * | *\ *)
2947 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2949 install_sh="\${SHELL} $am_aux_dir/install-sh"
2950 esac
2953 # Installed binaries are usually stripped using `strip' when the user
2954 # run `make install-strip'. However `strip' might not be the right
2955 # tool to use in cross-compilation environments, therefore Automake
2956 # will honor the `STRIP' environment variable to overrule this program.
2957 if test "$cross_compiling" != no; then
2958 if test -n "$ac_tool_prefix"; then
2959 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2960 set dummy ${ac_tool_prefix}strip; ac_word=$2
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2962 $as_echo_n "checking for $ac_word... " >&6; }
2963 if test "${ac_cv_prog_STRIP+set}" = set; then :
2964 $as_echo_n "(cached) " >&6
2965 else
2966 if test -n "$STRIP"; then
2967 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2968 else
2969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2970 for as_dir in $PATH
2972 IFS=$as_save_IFS
2973 test -z "$as_dir" && as_dir=.
2974 for ac_exec_ext in '' $ac_executable_extensions; do
2975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2976 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2978 break 2
2980 done
2981 done
2982 IFS=$as_save_IFS
2986 STRIP=$ac_cv_prog_STRIP
2987 if test -n "$STRIP"; then
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2989 $as_echo "$STRIP" >&6; }
2990 else
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2992 $as_echo "no" >&6; }
2997 if test -z "$ac_cv_prog_STRIP"; then
2998 ac_ct_STRIP=$STRIP
2999 # Extract the first word of "strip", so it can be a program name with args.
3000 set dummy strip; ac_word=$2
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3002 $as_echo_n "checking for $ac_word... " >&6; }
3003 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3004 $as_echo_n "(cached) " >&6
3005 else
3006 if test -n "$ac_ct_STRIP"; then
3007 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3008 else
3009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3010 for as_dir in $PATH
3012 IFS=$as_save_IFS
3013 test -z "$as_dir" && as_dir=.
3014 for ac_exec_ext in '' $ac_executable_extensions; do
3015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3016 ac_cv_prog_ac_ct_STRIP="strip"
3017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3018 break 2
3020 done
3021 done
3022 IFS=$as_save_IFS
3026 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3027 if test -n "$ac_ct_STRIP"; then
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3029 $as_echo "$ac_ct_STRIP" >&6; }
3030 else
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3032 $as_echo "no" >&6; }
3035 if test "x$ac_ct_STRIP" = x; then
3036 STRIP=":"
3037 else
3038 case $cross_compiling:$ac_tool_warned in
3039 yes:)
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3041 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3042 ac_tool_warned=yes ;;
3043 esac
3044 STRIP=$ac_ct_STRIP
3046 else
3047 STRIP="$ac_cv_prog_STRIP"
3051 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3054 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3055 if test -z "$MKDIR_P"; then
3056 if test "${ac_cv_path_mkdir+set}" = set; then :
3057 $as_echo_n "(cached) " >&6
3058 else
3059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3060 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3062 IFS=$as_save_IFS
3063 test -z "$as_dir" && as_dir=.
3064 for ac_prog in mkdir gmkdir; do
3065 for ac_exec_ext in '' $ac_executable_extensions; do
3066 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3067 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3068 'mkdir (GNU coreutils) '* | \
3069 'mkdir (coreutils) '* | \
3070 'mkdir (fileutils) '4.1*)
3071 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3072 break 3;;
3073 esac
3074 done
3075 done
3076 done
3077 IFS=$as_save_IFS
3081 if test "${ac_cv_path_mkdir+set}" = set; then
3082 MKDIR_P="$ac_cv_path_mkdir -p"
3083 else
3084 # As a last resort, use the slow shell script. Don't cache a
3085 # value for MKDIR_P within a source directory, because that will
3086 # break other packages using the cache if that directory is
3087 # removed, or if the value is a relative name.
3088 test -d ./--version && rmdir ./--version
3089 MKDIR_P="$ac_install_sh -d"
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3093 $as_echo "$MKDIR_P" >&6; }
3095 mkdir_p="$MKDIR_P"
3096 case $mkdir_p in
3097 [\\/$]* | ?:[\\/]*) ;;
3098 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3099 esac
3101 for ac_prog in gawk mawk nawk awk
3103 # Extract the first word of "$ac_prog", so it can be a program name with args.
3104 set dummy $ac_prog; ac_word=$2
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3106 $as_echo_n "checking for $ac_word... " >&6; }
3107 if test "${ac_cv_prog_AWK+set}" = set; then :
3108 $as_echo_n "(cached) " >&6
3109 else
3110 if test -n "$AWK"; then
3111 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3112 else
3113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3114 for as_dir in $PATH
3116 IFS=$as_save_IFS
3117 test -z "$as_dir" && as_dir=.
3118 for ac_exec_ext in '' $ac_executable_extensions; do
3119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3120 ac_cv_prog_AWK="$ac_prog"
3121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3122 break 2
3124 done
3125 done
3126 IFS=$as_save_IFS
3130 AWK=$ac_cv_prog_AWK
3131 if test -n "$AWK"; then
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3133 $as_echo "$AWK" >&6; }
3134 else
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3136 $as_echo "no" >&6; }
3140 test -n "$AWK" && break
3141 done
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3144 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3145 set x ${MAKE-make}
3146 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3147 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3148 $as_echo_n "(cached) " >&6
3149 else
3150 cat >conftest.make <<\_ACEOF
3151 SHELL = /bin/sh
3152 all:
3153 @echo '@@@%%%=$(MAKE)=@@@%%%'
3154 _ACEOF
3155 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3156 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3157 *@@@%%%=?*=@@@%%%*)
3158 eval ac_cv_prog_make_${ac_make}_set=yes;;
3160 eval ac_cv_prog_make_${ac_make}_set=no;;
3161 esac
3162 rm -f conftest.make
3164 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3166 $as_echo "yes" >&6; }
3167 SET_MAKE=
3168 else
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3170 $as_echo "no" >&6; }
3171 SET_MAKE="MAKE=${MAKE-make}"
3174 rm -rf .tst 2>/dev/null
3175 mkdir .tst 2>/dev/null
3176 if test -d .tst; then
3177 am__leading_dot=.
3178 else
3179 am__leading_dot=_
3181 rmdir .tst 2>/dev/null
3183 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3184 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3185 # is not polluted with repeated "-I."
3186 am__isrc=' -I$(srcdir)'
3187 # test to see if srcdir already configured
3188 if test -f $srcdir/config.status; then
3189 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3193 # test whether we have cygpath
3194 if test -z "$CYGPATH_W"; then
3195 if (cygpath --version) >/dev/null 2>/dev/null; then
3196 CYGPATH_W='cygpath -w'
3197 else
3198 CYGPATH_W=echo
3203 # Define the identity of the package.
3204 PACKAGE='libgomp'
3205 VERSION='1.0'
3208 cat >>confdefs.h <<_ACEOF
3209 #define PACKAGE "$PACKAGE"
3210 _ACEOF
3213 cat >>confdefs.h <<_ACEOF
3214 #define VERSION "$VERSION"
3215 _ACEOF
3217 # Some tools Automake needs.
3219 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3222 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3225 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3228 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3231 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3233 # We need awk for the "check" target. The system "awk" is bad on
3234 # some platforms.
3235 # Always define AMTAR for backward compatibility.
3237 AMTAR=${AMTAR-"${am_missing_run}tar"}
3239 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3245 # Default to --enable-multilib
3246 # Check whether --enable-multilib was given.
3247 if test "${enable_multilib+set}" = set; then :
3248 enableval=$enable_multilib; case "$enableval" in
3249 yes) multilib=yes ;;
3250 no) multilib=no ;;
3251 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3252 esac
3253 else
3254 multilib=yes
3258 # We may get other options which we leave undocumented:
3259 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3260 # See config-ml.in if you want the gory details.
3262 if test "$srcdir" = "."; then
3263 if test "$with_target_subdir" != "."; then
3264 multi_basedir="$srcdir/$with_multisrctop../.."
3265 else
3266 multi_basedir="$srcdir/$with_multisrctop.."
3268 else
3269 multi_basedir="$srcdir/.."
3273 # Even if the default multilib is not a cross compilation,
3274 # it may be that some of the other multilibs are.
3275 if test $cross_compiling = no && test $multilib = yes \
3276 && test "x${with_multisubdir}" != x ; then
3277 cross_compiling=maybe
3280 ac_config_commands="$ac_config_commands default-1"
3283 # Calculate toolexeclibdir
3284 # Also toolexecdir, though it's only used in toolexeclibdir
3285 case ${enable_version_specific_runtime_libs} in
3286 yes)
3287 # Need the gcc compiler version to know where to install libraries
3288 # and header files if --enable-version-specific-runtime-libs option
3289 # is selected.
3290 toolexecdir='$(libdir)/gcc/$(target_alias)'
3291 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3294 if test -n "$with_cross_host" &&
3295 test x"$with_cross_host" != x"no"; then
3296 # Install a library built with a cross compiler in tooldir, not libdir.
3297 toolexecdir='$(exec_prefix)/$(target_alias)'
3298 toolexeclibdir='$(toolexecdir)/lib'
3299 else
3300 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3301 toolexeclibdir='$(libdir)'
3303 multi_os_directory=`$CC -print-multi-os-directory`
3304 case $multi_os_directory in
3305 .) ;; # Avoid trailing /.
3306 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3307 esac
3309 esac
3313 # Check the compiler.
3314 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3315 # We must force CC to /not/ be precious variables; otherwise
3316 # the wrong, non-multilib-adjusted value will be used in multilibs.
3317 # As a side effect, we have to subst CFLAGS ourselves.
3321 ac_ext=c
3322 ac_cpp='$CPP $CPPFLAGS'
3323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3326 if test -n "$ac_tool_prefix"; then
3327 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3328 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3330 $as_echo_n "checking for $ac_word... " >&6; }
3331 if test "${ac_cv_prog_CC+set}" = set; then :
3332 $as_echo_n "(cached) " >&6
3333 else
3334 if test -n "$CC"; then
3335 ac_cv_prog_CC="$CC" # Let the user override the test.
3336 else
3337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3338 for as_dir in $PATH
3340 IFS=$as_save_IFS
3341 test -z "$as_dir" && as_dir=.
3342 for ac_exec_ext in '' $ac_executable_extensions; do
3343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3344 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3346 break 2
3348 done
3349 done
3350 IFS=$as_save_IFS
3354 CC=$ac_cv_prog_CC
3355 if test -n "$CC"; then
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3357 $as_echo "$CC" >&6; }
3358 else
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3360 $as_echo "no" >&6; }
3365 if test -z "$ac_cv_prog_CC"; then
3366 ac_ct_CC=$CC
3367 # Extract the first word of "gcc", so it can be a program name with args.
3368 set dummy gcc; ac_word=$2
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3370 $as_echo_n "checking for $ac_word... " >&6; }
3371 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3372 $as_echo_n "(cached) " >&6
3373 else
3374 if test -n "$ac_ct_CC"; then
3375 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3376 else
3377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3378 for as_dir in $PATH
3380 IFS=$as_save_IFS
3381 test -z "$as_dir" && as_dir=.
3382 for ac_exec_ext in '' $ac_executable_extensions; do
3383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3384 ac_cv_prog_ac_ct_CC="gcc"
3385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3386 break 2
3388 done
3389 done
3390 IFS=$as_save_IFS
3394 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3395 if test -n "$ac_ct_CC"; then
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3397 $as_echo "$ac_ct_CC" >&6; }
3398 else
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3400 $as_echo "no" >&6; }
3403 if test "x$ac_ct_CC" = x; then
3404 CC=""
3405 else
3406 case $cross_compiling:$ac_tool_warned in
3407 yes:)
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3409 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3410 ac_tool_warned=yes ;;
3411 esac
3412 CC=$ac_ct_CC
3414 else
3415 CC="$ac_cv_prog_CC"
3418 if test -z "$CC"; then
3419 if test -n "$ac_tool_prefix"; then
3420 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3421 set dummy ${ac_tool_prefix}cc; ac_word=$2
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3423 $as_echo_n "checking for $ac_word... " >&6; }
3424 if test "${ac_cv_prog_CC+set}" = set; then :
3425 $as_echo_n "(cached) " >&6
3426 else
3427 if test -n "$CC"; then
3428 ac_cv_prog_CC="$CC" # Let the user override the test.
3429 else
3430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3431 for as_dir in $PATH
3433 IFS=$as_save_IFS
3434 test -z "$as_dir" && as_dir=.
3435 for ac_exec_ext in '' $ac_executable_extensions; do
3436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3437 ac_cv_prog_CC="${ac_tool_prefix}cc"
3438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3439 break 2
3441 done
3442 done
3443 IFS=$as_save_IFS
3447 CC=$ac_cv_prog_CC
3448 if test -n "$CC"; then
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3450 $as_echo "$CC" >&6; }
3451 else
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3453 $as_echo "no" >&6; }
3459 if test -z "$CC"; then
3460 # Extract the first word of "cc", so it can be a program name with args.
3461 set dummy cc; ac_word=$2
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3463 $as_echo_n "checking for $ac_word... " >&6; }
3464 if test "${ac_cv_prog_CC+set}" = set; then :
3465 $as_echo_n "(cached) " >&6
3466 else
3467 if test -n "$CC"; then
3468 ac_cv_prog_CC="$CC" # Let the user override the test.
3469 else
3470 ac_prog_rejected=no
3471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3472 for as_dir in $PATH
3474 IFS=$as_save_IFS
3475 test -z "$as_dir" && as_dir=.
3476 for ac_exec_ext in '' $ac_executable_extensions; do
3477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3478 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3479 ac_prog_rejected=yes
3480 continue
3482 ac_cv_prog_CC="cc"
3483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3484 break 2
3486 done
3487 done
3488 IFS=$as_save_IFS
3490 if test $ac_prog_rejected = yes; then
3491 # We found a bogon in the path, so make sure we never use it.
3492 set dummy $ac_cv_prog_CC
3493 shift
3494 if test $# != 0; then
3495 # We chose a different compiler from the bogus one.
3496 # However, it has the same basename, so the bogon will be chosen
3497 # first if we set CC to just the basename; use the full file name.
3498 shift
3499 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3504 CC=$ac_cv_prog_CC
3505 if test -n "$CC"; then
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3507 $as_echo "$CC" >&6; }
3508 else
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3510 $as_echo "no" >&6; }
3515 if test -z "$CC"; then
3516 if test -n "$ac_tool_prefix"; then
3517 for ac_prog in cl.exe
3519 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3520 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3522 $as_echo_n "checking for $ac_word... " >&6; }
3523 if test "${ac_cv_prog_CC+set}" = set; then :
3524 $as_echo_n "(cached) " >&6
3525 else
3526 if test -n "$CC"; then
3527 ac_cv_prog_CC="$CC" # Let the user override the test.
3528 else
3529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3530 for as_dir in $PATH
3532 IFS=$as_save_IFS
3533 test -z "$as_dir" && as_dir=.
3534 for ac_exec_ext in '' $ac_executable_extensions; do
3535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3536 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3538 break 2
3540 done
3541 done
3542 IFS=$as_save_IFS
3546 CC=$ac_cv_prog_CC
3547 if test -n "$CC"; then
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3549 $as_echo "$CC" >&6; }
3550 else
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3552 $as_echo "no" >&6; }
3556 test -n "$CC" && break
3557 done
3559 if test -z "$CC"; then
3560 ac_ct_CC=$CC
3561 for ac_prog in cl.exe
3563 # Extract the first word of "$ac_prog", so it can be a program name with args.
3564 set dummy $ac_prog; ac_word=$2
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3566 $as_echo_n "checking for $ac_word... " >&6; }
3567 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3568 $as_echo_n "(cached) " >&6
3569 else
3570 if test -n "$ac_ct_CC"; then
3571 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3572 else
3573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3574 for as_dir in $PATH
3576 IFS=$as_save_IFS
3577 test -z "$as_dir" && as_dir=.
3578 for ac_exec_ext in '' $ac_executable_extensions; do
3579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3580 ac_cv_prog_ac_ct_CC="$ac_prog"
3581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3582 break 2
3584 done
3585 done
3586 IFS=$as_save_IFS
3590 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3591 if test -n "$ac_ct_CC"; then
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3593 $as_echo "$ac_ct_CC" >&6; }
3594 else
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3596 $as_echo "no" >&6; }
3600 test -n "$ac_ct_CC" && break
3601 done
3603 if test "x$ac_ct_CC" = x; then
3604 CC=""
3605 else
3606 case $cross_compiling:$ac_tool_warned in
3607 yes:)
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3609 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3610 ac_tool_warned=yes ;;
3611 esac
3612 CC=$ac_ct_CC
3619 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3620 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3621 as_fn_error "no acceptable C compiler found in \$PATH
3622 See \`config.log' for more details." "$LINENO" 5; }
3624 # Provide some information about the compiler.
3625 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3626 set X $ac_compile
3627 ac_compiler=$2
3628 for ac_option in --version -v -V -qversion; do
3629 { { ac_try="$ac_compiler $ac_option >&5"
3630 case "(($ac_try" in
3631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3632 *) ac_try_echo=$ac_try;;
3633 esac
3634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3635 $as_echo "$ac_try_echo"; } >&5
3636 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3637 ac_status=$?
3638 if test -s conftest.err; then
3639 sed '10a\
3640 ... rest of stderr output deleted ...
3641 10q' conftest.err >conftest.er1
3642 cat conftest.er1 >&5
3643 rm -f conftest.er1 conftest.err
3645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3646 test $ac_status = 0; }
3647 done
3649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3650 /* end confdefs.h. */
3653 main ()
3657 return 0;
3659 _ACEOF
3660 ac_clean_files_save=$ac_clean_files
3661 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3662 # Try to create an executable without -o first, disregard a.out.
3663 # It will help us diagnose broken compilers, and finding out an intuition
3664 # of exeext.
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3666 $as_echo_n "checking for C compiler default output file name... " >&6; }
3667 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3669 # The possible output files:
3670 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3672 ac_rmfiles=
3673 for ac_file in $ac_files
3675 case $ac_file in
3676 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3677 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3678 esac
3679 done
3680 rm -f $ac_rmfiles
3682 if { { ac_try="$ac_link_default"
3683 case "(($ac_try" in
3684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3685 *) ac_try_echo=$ac_try;;
3686 esac
3687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3688 $as_echo "$ac_try_echo"; } >&5
3689 (eval "$ac_link_default") 2>&5
3690 ac_status=$?
3691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3692 test $ac_status = 0; }; then :
3693 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3694 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3695 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3696 # so that the user can short-circuit this test for compilers unknown to
3697 # Autoconf.
3698 for ac_file in $ac_files ''
3700 test -f "$ac_file" || continue
3701 case $ac_file in
3702 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3704 [ab].out )
3705 # We found the default executable, but exeext='' is most
3706 # certainly right.
3707 break;;
3708 *.* )
3709 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3710 then :; else
3711 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3713 # We set ac_cv_exeext here because the later test for it is not
3714 # safe: cross compilers may not add the suffix if given an `-o'
3715 # argument, so we may need to know it at that point already.
3716 # Even if this section looks crufty: it has the advantage of
3717 # actually working.
3718 break;;
3720 break;;
3721 esac
3722 done
3723 test "$ac_cv_exeext" = no && ac_cv_exeext=
3725 else
3726 ac_file=''
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3729 $as_echo "$ac_file" >&6; }
3730 if test -z "$ac_file"; then :
3731 $as_echo "$as_me: failed program was:" >&5
3732 sed 's/^/| /' conftest.$ac_ext >&5
3734 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3735 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3736 { as_fn_set_status 77
3737 as_fn_error "C compiler cannot create executables
3738 See \`config.log' for more details." "$LINENO" 5; }; }
3740 ac_exeext=$ac_cv_exeext
3742 # Check that the compiler produces executables we can run. If not, either
3743 # the compiler is broken, or we cross compile.
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3745 $as_echo_n "checking whether the C compiler works... " >&6; }
3746 # If not cross compiling, check that we can run a simple program.
3747 if test "$cross_compiling" != yes; then
3748 if { ac_try='./$ac_file'
3749 { { case "(($ac_try" in
3750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3751 *) ac_try_echo=$ac_try;;
3752 esac
3753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3754 $as_echo "$ac_try_echo"; } >&5
3755 (eval "$ac_try") 2>&5
3756 ac_status=$?
3757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3758 test $ac_status = 0; }; }; then
3759 cross_compiling=no
3760 else
3761 if test "$cross_compiling" = maybe; then
3762 cross_compiling=yes
3763 else
3764 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3765 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3766 as_fn_error "cannot run C compiled programs.
3767 If you meant to cross compile, use \`--host'.
3768 See \`config.log' for more details." "$LINENO" 5; }
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3773 $as_echo "yes" >&6; }
3775 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3776 ac_clean_files=$ac_clean_files_save
3777 # Check that the compiler produces executables we can run. If not, either
3778 # the compiler is broken, or we cross compile.
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3780 $as_echo_n "checking whether we are cross compiling... " >&6; }
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3782 $as_echo "$cross_compiling" >&6; }
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3785 $as_echo_n "checking for suffix of executables... " >&6; }
3786 if { { ac_try="$ac_link"
3787 case "(($ac_try" in
3788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3789 *) ac_try_echo=$ac_try;;
3790 esac
3791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3792 $as_echo "$ac_try_echo"; } >&5
3793 (eval "$ac_link") 2>&5
3794 ac_status=$?
3795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3796 test $ac_status = 0; }; then :
3797 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3798 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3799 # work properly (i.e., refer to `conftest.exe'), while it won't with
3800 # `rm'.
3801 for ac_file in conftest.exe conftest conftest.*; do
3802 test -f "$ac_file" || continue
3803 case $ac_file in
3804 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3805 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3806 break;;
3807 * ) break;;
3808 esac
3809 done
3810 else
3811 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3812 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3813 as_fn_error "cannot compute suffix of executables: cannot compile and link
3814 See \`config.log' for more details." "$LINENO" 5; }
3816 rm -f conftest$ac_cv_exeext
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3818 $as_echo "$ac_cv_exeext" >&6; }
3820 rm -f conftest.$ac_ext
3821 EXEEXT=$ac_cv_exeext
3822 ac_exeext=$EXEEXT
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3824 $as_echo_n "checking for suffix of object files... " >&6; }
3825 if test "${ac_cv_objext+set}" = set; then :
3826 $as_echo_n "(cached) " >&6
3827 else
3828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3829 /* end confdefs.h. */
3832 main ()
3836 return 0;
3838 _ACEOF
3839 rm -f conftest.o conftest.obj
3840 if { { ac_try="$ac_compile"
3841 case "(($ac_try" in
3842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3843 *) ac_try_echo=$ac_try;;
3844 esac
3845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3846 $as_echo "$ac_try_echo"; } >&5
3847 (eval "$ac_compile") 2>&5
3848 ac_status=$?
3849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3850 test $ac_status = 0; }; then :
3851 for ac_file in conftest.o conftest.obj conftest.*; do
3852 test -f "$ac_file" || continue;
3853 case $ac_file in
3854 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3855 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3856 break;;
3857 esac
3858 done
3859 else
3860 $as_echo "$as_me: failed program was:" >&5
3861 sed 's/^/| /' conftest.$ac_ext >&5
3863 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3864 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3865 as_fn_error "cannot compute suffix of object files: cannot compile
3866 See \`config.log' for more details." "$LINENO" 5; }
3868 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3871 $as_echo "$ac_cv_objext" >&6; }
3872 OBJEXT=$ac_cv_objext
3873 ac_objext=$OBJEXT
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3875 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3876 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3877 $as_echo_n "(cached) " >&6
3878 else
3879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3880 /* end confdefs.h. */
3883 main ()
3885 #ifndef __GNUC__
3886 choke me
3887 #endif
3890 return 0;
3892 _ACEOF
3893 if ac_fn_c_try_compile "$LINENO"; then :
3894 ac_compiler_gnu=yes
3895 else
3896 ac_compiler_gnu=no
3898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3899 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3903 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3904 if test $ac_compiler_gnu = yes; then
3905 GCC=yes
3906 else
3907 GCC=
3909 ac_test_CFLAGS=${CFLAGS+set}
3910 ac_save_CFLAGS=$CFLAGS
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3912 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3913 if test "${ac_cv_prog_cc_g+set}" = set; then :
3914 $as_echo_n "(cached) " >&6
3915 else
3916 ac_save_c_werror_flag=$ac_c_werror_flag
3917 ac_c_werror_flag=yes
3918 ac_cv_prog_cc_g=no
3919 CFLAGS="-g"
3920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3921 /* end confdefs.h. */
3924 main ()
3928 return 0;
3930 _ACEOF
3931 if ac_fn_c_try_compile "$LINENO"; then :
3932 ac_cv_prog_cc_g=yes
3933 else
3934 CFLAGS=""
3935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3936 /* end confdefs.h. */
3939 main ()
3943 return 0;
3945 _ACEOF
3946 if ac_fn_c_try_compile "$LINENO"; then :
3948 else
3949 ac_c_werror_flag=$ac_save_c_werror_flag
3950 CFLAGS="-g"
3951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3952 /* end confdefs.h. */
3955 main ()
3959 return 0;
3961 _ACEOF
3962 if ac_fn_c_try_compile "$LINENO"; then :
3963 ac_cv_prog_cc_g=yes
3965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3970 ac_c_werror_flag=$ac_save_c_werror_flag
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3973 $as_echo "$ac_cv_prog_cc_g" >&6; }
3974 if test "$ac_test_CFLAGS" = set; then
3975 CFLAGS=$ac_save_CFLAGS
3976 elif test $ac_cv_prog_cc_g = yes; then
3977 if test "$GCC" = yes; then
3978 CFLAGS="-g -O2"
3979 else
3980 CFLAGS="-g"
3982 else
3983 if test "$GCC" = yes; then
3984 CFLAGS="-O2"
3985 else
3986 CFLAGS=
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3990 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3991 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3992 $as_echo_n "(cached) " >&6
3993 else
3994 ac_cv_prog_cc_c89=no
3995 ac_save_CC=$CC
3996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3997 /* end confdefs.h. */
3998 #include <stdarg.h>
3999 #include <stdio.h>
4000 #include <sys/types.h>
4001 #include <sys/stat.h>
4002 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4003 struct buf { int x; };
4004 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4005 static char *e (p, i)
4006 char **p;
4007 int i;
4009 return p[i];
4011 static char *f (char * (*g) (char **, int), char **p, ...)
4013 char *s;
4014 va_list v;
4015 va_start (v,p);
4016 s = g (p, va_arg (v,int));
4017 va_end (v);
4018 return s;
4021 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4022 function prototypes and stuff, but not '\xHH' hex character constants.
4023 These don't provoke an error unfortunately, instead are silently treated
4024 as 'x'. The following induces an error, until -std is added to get
4025 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4026 array size at least. It's necessary to write '\x00'==0 to get something
4027 that's true only with -std. */
4028 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4030 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4031 inside strings and character constants. */
4032 #define FOO(x) 'x'
4033 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4035 int test (int i, double x);
4036 struct s1 {int (*f) (int a);};
4037 struct s2 {int (*f) (double a);};
4038 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4039 int argc;
4040 char **argv;
4042 main ()
4044 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4046 return 0;
4048 _ACEOF
4049 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4050 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4052 CC="$ac_save_CC $ac_arg"
4053 if ac_fn_c_try_compile "$LINENO"; then :
4054 ac_cv_prog_cc_c89=$ac_arg
4056 rm -f core conftest.err conftest.$ac_objext
4057 test "x$ac_cv_prog_cc_c89" != "xno" && break
4058 done
4059 rm -f conftest.$ac_ext
4060 CC=$ac_save_CC
4063 # AC_CACHE_VAL
4064 case "x$ac_cv_prog_cc_c89" in
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4067 $as_echo "none needed" >&6; } ;;
4068 xno)
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4070 $as_echo "unsupported" >&6; } ;;
4072 CC="$CC $ac_cv_prog_cc_c89"
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4074 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4075 esac
4076 if test "x$ac_cv_prog_cc_c89" != xno; then :
4080 ac_ext=c
4081 ac_cpp='$CPP $CPPFLAGS'
4082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4085 DEPDIR="${am__leading_dot}deps"
4087 ac_config_commands="$ac_config_commands depfiles"
4090 am_make=${MAKE-make}
4091 cat > confinc << 'END'
4092 am__doit:
4093 @echo this is the am__doit target
4094 .PHONY: am__doit
4096 # If we don't find an include directive, just comment out the code.
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4098 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4099 am__include="#"
4100 am__quote=
4101 _am_result=none
4102 # First try GNU make style include.
4103 echo "include confinc" > confmf
4104 # Ignore all kinds of additional output from `make'.
4105 case `$am_make -s -f confmf 2> /dev/null` in #(
4106 *the\ am__doit\ target*)
4107 am__include=include
4108 am__quote=
4109 _am_result=GNU
4111 esac
4112 # Now try BSD make style include.
4113 if test "$am__include" = "#"; then
4114 echo '.include "confinc"' > confmf
4115 case `$am_make -s -f confmf 2> /dev/null` in #(
4116 *the\ am__doit\ target*)
4117 am__include=.include
4118 am__quote="\""
4119 _am_result=BSD
4121 esac
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4126 $as_echo "$_am_result" >&6; }
4127 rm -f confinc confmf
4129 # Check whether --enable-dependency-tracking was given.
4130 if test "${enable_dependency_tracking+set}" = set; then :
4131 enableval=$enable_dependency_tracking;
4134 if test "x$enable_dependency_tracking" != xno; then
4135 am_depcomp="$ac_aux_dir/depcomp"
4136 AMDEPBACKSLASH='\'
4138 if test "x$enable_dependency_tracking" != xno; then
4139 AMDEP_TRUE=
4140 AMDEP_FALSE='#'
4141 else
4142 AMDEP_TRUE='#'
4143 AMDEP_FALSE=
4148 depcc="$CC" am_compiler_list=
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4151 $as_echo_n "checking dependency style of $depcc... " >&6; }
4152 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4153 $as_echo_n "(cached) " >&6
4154 else
4155 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4156 # We make a subdir and do the tests there. Otherwise we can end up
4157 # making bogus files that we don't know about and never remove. For
4158 # instance it was reported that on HP-UX the gcc test will end up
4159 # making a dummy file named `D' -- because `-MD' means `put the output
4160 # in D'.
4161 mkdir conftest.dir
4162 # Copy depcomp to subdir because otherwise we won't find it if we're
4163 # using a relative directory.
4164 cp "$am_depcomp" conftest.dir
4165 cd conftest.dir
4166 # We will build objects and dependencies in a subdirectory because
4167 # it helps to detect inapplicable dependency modes. For instance
4168 # both Tru64's cc and ICC support -MD to output dependencies as a
4169 # side effect of compilation, but ICC will put the dependencies in
4170 # the current directory while Tru64 will put them in the object
4171 # directory.
4172 mkdir sub
4174 am_cv_CC_dependencies_compiler_type=none
4175 if test "$am_compiler_list" = ""; then
4176 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4178 am__universal=false
4179 case " $depcc " in #(
4180 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4181 esac
4183 for depmode in $am_compiler_list; do
4184 # Setup a source with many dependencies, because some compilers
4185 # like to wrap large dependency lists on column 80 (with \), and
4186 # we should not choose a depcomp mode which is confused by this.
4188 # We need to recreate these files for each test, as the compiler may
4189 # overwrite some of them when testing with obscure command lines.
4190 # This happens at least with the AIX C compiler.
4191 : > sub/conftest.c
4192 for i in 1 2 3 4 5 6; do
4193 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4194 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4195 # Solaris 8's {/usr,}/bin/sh.
4196 touch sub/conftst$i.h
4197 done
4198 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4200 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4201 # mode. It turns out that the SunPro C++ compiler does not properly
4202 # handle `-M -o', and we need to detect this. Also, some Intel
4203 # versions had trouble with output in subdirs
4204 am__obj=sub/conftest.${OBJEXT-o}
4205 am__minus_obj="-o $am__obj"
4206 case $depmode in
4207 gcc)
4208 # This depmode causes a compiler race in universal mode.
4209 test "$am__universal" = false || continue
4211 nosideeffect)
4212 # after this tag, mechanisms are not by side-effect, so they'll
4213 # only be used when explicitly requested
4214 if test "x$enable_dependency_tracking" = xyes; then
4215 continue
4216 else
4217 break
4220 msvisualcpp | msvcmsys)
4221 # This compiler won't grok `-c -o', but also, the minuso test has
4222 # not run yet. These depmodes are late enough in the game, and
4223 # so weak that their functioning should not be impacted.
4224 am__obj=conftest.${OBJEXT-o}
4225 am__minus_obj=
4227 none) break ;;
4228 esac
4229 if depmode=$depmode \
4230 source=sub/conftest.c object=$am__obj \
4231 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4232 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4233 >/dev/null 2>conftest.err &&
4234 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4235 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4236 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4237 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4238 # icc doesn't choke on unknown options, it will just issue warnings
4239 # or remarks (even with -Werror). So we grep stderr for any message
4240 # that says an option was ignored or not supported.
4241 # When given -MP, icc 7.0 and 7.1 complain thusly:
4242 # icc: Command line warning: ignoring option '-M'; no argument required
4243 # The diagnosis changed in icc 8.0:
4244 # icc: Command line remark: option '-MP' not supported
4245 if (grep 'ignoring option' conftest.err ||
4246 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4247 am_cv_CC_dependencies_compiler_type=$depmode
4248 break
4251 done
4253 cd ..
4254 rm -rf conftest.dir
4255 else
4256 am_cv_CC_dependencies_compiler_type=none
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4261 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4262 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4265 test "x$enable_dependency_tracking" != xno \
4266 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4267 am__fastdepCC_TRUE=
4268 am__fastdepCC_FALSE='#'
4269 else
4270 am__fastdepCC_TRUE='#'
4271 am__fastdepCC_FALSE=
4279 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
4280 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
4281 # in both places for now and restore CFLAGS at the end of config.
4282 save_CFLAGS="$CFLAGS"
4284 # Add -Wall -Werror if we are using GCC.
4285 if test "x$GCC" = "xyes"; then
4286 XCFLAGS="$XCFLAGS -Wall -Werror"
4289 # Find other programs we need.
4290 if test -n "$ac_tool_prefix"; then
4291 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4292 set dummy ${ac_tool_prefix}ar; ac_word=$2
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4294 $as_echo_n "checking for $ac_word... " >&6; }
4295 if test "${ac_cv_prog_AR+set}" = set; then :
4296 $as_echo_n "(cached) " >&6
4297 else
4298 if test -n "$AR"; then
4299 ac_cv_prog_AR="$AR" # Let the user override the test.
4300 else
4301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4302 for as_dir in $PATH
4304 IFS=$as_save_IFS
4305 test -z "$as_dir" && as_dir=.
4306 for ac_exec_ext in '' $ac_executable_extensions; do
4307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4308 ac_cv_prog_AR="${ac_tool_prefix}ar"
4309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4310 break 2
4312 done
4313 done
4314 IFS=$as_save_IFS
4318 AR=$ac_cv_prog_AR
4319 if test -n "$AR"; then
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4321 $as_echo "$AR" >&6; }
4322 else
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4324 $as_echo "no" >&6; }
4329 if test -z "$ac_cv_prog_AR"; then
4330 ac_ct_AR=$AR
4331 # Extract the first word of "ar", so it can be a program name with args.
4332 set dummy ar; ac_word=$2
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4334 $as_echo_n "checking for $ac_word... " >&6; }
4335 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4336 $as_echo_n "(cached) " >&6
4337 else
4338 if test -n "$ac_ct_AR"; then
4339 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4340 else
4341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4342 for as_dir in $PATH
4344 IFS=$as_save_IFS
4345 test -z "$as_dir" && as_dir=.
4346 for ac_exec_ext in '' $ac_executable_extensions; do
4347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4348 ac_cv_prog_ac_ct_AR="ar"
4349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4350 break 2
4352 done
4353 done
4354 IFS=$as_save_IFS
4358 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4359 if test -n "$ac_ct_AR"; then
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4361 $as_echo "$ac_ct_AR" >&6; }
4362 else
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4364 $as_echo "no" >&6; }
4367 if test "x$ac_ct_AR" = x; then
4368 AR=""
4369 else
4370 case $cross_compiling:$ac_tool_warned in
4371 yes:)
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4373 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4374 ac_tool_warned=yes ;;
4375 esac
4376 AR=$ac_ct_AR
4378 else
4379 AR="$ac_cv_prog_AR"
4382 if test -n "$ac_tool_prefix"; then
4383 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4384 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4386 $as_echo_n "checking for $ac_word... " >&6; }
4387 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4388 $as_echo_n "(cached) " >&6
4389 else
4390 if test -n "$RANLIB"; then
4391 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4392 else
4393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4394 for as_dir in $PATH
4396 IFS=$as_save_IFS
4397 test -z "$as_dir" && as_dir=.
4398 for ac_exec_ext in '' $ac_executable_extensions; do
4399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4400 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4402 break 2
4404 done
4405 done
4406 IFS=$as_save_IFS
4410 RANLIB=$ac_cv_prog_RANLIB
4411 if test -n "$RANLIB"; then
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4413 $as_echo "$RANLIB" >&6; }
4414 else
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4416 $as_echo "no" >&6; }
4421 if test -z "$ac_cv_prog_RANLIB"; then
4422 ac_ct_RANLIB=$RANLIB
4423 # Extract the first word of "ranlib", so it can be a program name with args.
4424 set dummy ranlib; ac_word=$2
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4426 $as_echo_n "checking for $ac_word... " >&6; }
4427 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4428 $as_echo_n "(cached) " >&6
4429 else
4430 if test -n "$ac_ct_RANLIB"; then
4431 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4432 else
4433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434 for as_dir in $PATH
4436 IFS=$as_save_IFS
4437 test -z "$as_dir" && as_dir=.
4438 for ac_exec_ext in '' $ac_executable_extensions; do
4439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4440 ac_cv_prog_ac_ct_RANLIB="ranlib"
4441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4442 break 2
4444 done
4445 done
4446 IFS=$as_save_IFS
4450 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4451 if test -n "$ac_ct_RANLIB"; then
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4453 $as_echo "$ac_ct_RANLIB" >&6; }
4454 else
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4456 $as_echo "no" >&6; }
4459 if test "x$ac_ct_RANLIB" = x; then
4460 RANLIB="ranlib-not-found-in-path-error"
4461 else
4462 case $cross_compiling:$ac_tool_warned in
4463 yes:)
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4465 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4466 ac_tool_warned=yes ;;
4467 esac
4468 RANLIB=$ac_ct_RANLIB
4470 else
4471 RANLIB="$ac_cv_prog_RANLIB"
4474 # Extract the first word of "perl", so it can be a program name with args.
4475 set dummy perl; ac_word=$2
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4477 $as_echo_n "checking for $ac_word... " >&6; }
4478 if test "${ac_cv_path_PERL+set}" = set; then :
4479 $as_echo_n "(cached) " >&6
4480 else
4481 case $PERL in
4482 [\\/]* | ?:[\\/]*)
4483 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487 for as_dir in $PATH
4489 IFS=$as_save_IFS
4490 test -z "$as_dir" && as_dir=.
4491 for ac_exec_ext in '' $ac_executable_extensions; do
4492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4493 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4495 break 2
4497 done
4498 done
4499 IFS=$as_save_IFS
4501 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
4503 esac
4505 PERL=$ac_cv_path_PERL
4506 if test -n "$PERL"; then
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4508 $as_echo "$PERL" >&6; }
4509 else
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4511 $as_echo "no" >&6; }
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4516 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4517 set x ${MAKE-make}
4518 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4519 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4520 $as_echo_n "(cached) " >&6
4521 else
4522 cat >conftest.make <<\_ACEOF
4523 SHELL = /bin/sh
4524 all:
4525 @echo '@@@%%%=$(MAKE)=@@@%%%'
4526 _ACEOF
4527 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4528 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4529 *@@@%%%=?*=@@@%%%*)
4530 eval ac_cv_prog_make_${ac_make}_set=yes;;
4532 eval ac_cv_prog_make_${ac_make}_set=no;;
4533 esac
4534 rm -f conftest.make
4536 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4538 $as_echo "yes" >&6; }
4539 SET_MAKE=
4540 else
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4542 $as_echo "no" >&6; }
4543 SET_MAKE="MAKE=${MAKE-make}"
4548 # See if makeinfo has been installed and is modern enough
4549 # that we can use it.
4551 # Extract the first word of "makeinfo", so it can be a program name with args.
4552 set dummy makeinfo; ac_word=$2
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4554 $as_echo_n "checking for $ac_word... " >&6; }
4555 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
4556 $as_echo_n "(cached) " >&6
4557 else
4558 if test -n "$MAKEINFO"; then
4559 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4560 else
4561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562 for as_dir in $PATH
4564 IFS=$as_save_IFS
4565 test -z "$as_dir" && as_dir=.
4566 for ac_exec_ext in '' $ac_executable_extensions; do
4567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4568 ac_cv_prog_MAKEINFO="makeinfo"
4569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4570 break 2
4572 done
4573 done
4574 IFS=$as_save_IFS
4578 MAKEINFO=$ac_cv_prog_MAKEINFO
4579 if test -n "$MAKEINFO"; then
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4581 $as_echo "$MAKEINFO" >&6; }
4582 else
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4584 $as_echo "no" >&6; }
4588 if test -n "$MAKEINFO"; then
4589 # Found it, now check the version.
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
4591 $as_echo_n "checking for modern makeinfo... " >&6; }
4592 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
4593 $as_echo_n "(cached) " >&6
4594 else
4595 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
4596 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4598 case $ac_prog_version in
4599 '') gcc_cv_prog_makeinfo_modern=no;;
4600 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
4601 *) gcc_cv_prog_makeinfo_modern=no;;
4602 esac
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
4606 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
4607 else
4608 gcc_cv_prog_makeinfo_modern=no
4610 if test $gcc_cv_prog_makeinfo_modern = no; then
4611 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
4614 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
4615 BUILD_INFO_TRUE=
4616 BUILD_INFO_FALSE='#'
4617 else
4618 BUILD_INFO_TRUE='#'
4619 BUILD_INFO_FALSE=
4624 # Configure libtool
4625 case `pwd` in
4626 *\ * | *\ *)
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4628 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4629 esac
4633 macro_version='2.2.7a'
4634 macro_revision='1.3134'
4648 ltmain="$ac_aux_dir/ltmain.sh"
4650 # Backslashify metacharacters that are still active within
4651 # double-quoted strings.
4652 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4654 # Same as above, but do not quote variable references.
4655 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4657 # Sed substitution to delay expansion of an escaped shell variable in a
4658 # double_quote_subst'ed string.
4659 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4661 # Sed substitution to delay expansion of an escaped single quote.
4662 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4664 # Sed substitution to avoid accidental globbing in evaled expressions
4665 no_glob_subst='s/\*/\\\*/g'
4667 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4668 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4669 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4672 $as_echo_n "checking how to print strings... " >&6; }
4673 # Test print first, because it will be a builtin if present.
4674 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4675 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4676 ECHO='print -r --'
4677 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4678 ECHO='printf %s\n'
4679 else
4680 # Use this function as a fallback that always works.
4681 func_fallback_echo ()
4683 eval 'cat <<_LTECHO_EOF
4685 _LTECHO_EOF'
4687 ECHO='func_fallback_echo'
4690 # func_echo_all arg...
4691 # Invoke $ECHO with all args, space-separated.
4692 func_echo_all ()
4694 $ECHO ""
4697 case "$ECHO" in
4698 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4699 $as_echo "printf" >&6; } ;;
4700 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4701 $as_echo "print -r" >&6; } ;;
4702 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4703 $as_echo "cat" >&6; } ;;
4704 esac
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4720 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4721 if test "${ac_cv_path_SED+set}" = set; then :
4722 $as_echo_n "(cached) " >&6
4723 else
4724 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4725 for ac_i in 1 2 3 4 5 6 7; do
4726 ac_script="$ac_script$as_nl$ac_script"
4727 done
4728 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4729 { ac_script=; unset ac_script;}
4730 if test -z "$SED"; then
4731 ac_path_SED_found=false
4732 # Loop through the user's path and test for each of PROGNAME-LIST
4733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4734 for as_dir in $PATH
4736 IFS=$as_save_IFS
4737 test -z "$as_dir" && as_dir=.
4738 for ac_prog in sed gsed; do
4739 for ac_exec_ext in '' $ac_executable_extensions; do
4740 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4741 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4742 # Check for GNU ac_path_SED and select it if it is found.
4743 # Check for GNU $ac_path_SED
4744 case `"$ac_path_SED" --version 2>&1` in
4745 *GNU*)
4746 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4748 ac_count=0
4749 $as_echo_n 0123456789 >"conftest.in"
4750 while :
4752 cat "conftest.in" "conftest.in" >"conftest.tmp"
4753 mv "conftest.tmp" "conftest.in"
4754 cp "conftest.in" "conftest.nl"
4755 $as_echo '' >> "conftest.nl"
4756 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4757 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4758 as_fn_arith $ac_count + 1 && ac_count=$as_val
4759 if test $ac_count -gt ${ac_path_SED_max-0}; then
4760 # Best one so far, save it but keep looking for a better one
4761 ac_cv_path_SED="$ac_path_SED"
4762 ac_path_SED_max=$ac_count
4764 # 10*(2^10) chars as input seems more than enough
4765 test $ac_count -gt 10 && break
4766 done
4767 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4768 esac
4770 $ac_path_SED_found && break 3
4771 done
4772 done
4773 done
4774 IFS=$as_save_IFS
4775 if test -z "$ac_cv_path_SED"; then
4776 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4778 else
4779 ac_cv_path_SED=$SED
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4784 $as_echo "$ac_cv_path_SED" >&6; }
4785 SED="$ac_cv_path_SED"
4786 rm -f conftest.sed
4788 test -z "$SED" && SED=sed
4789 Xsed="$SED -e 1s/^X//"
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4802 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4803 if test "${ac_cv_path_GREP+set}" = set; then :
4804 $as_echo_n "(cached) " >&6
4805 else
4806 if test -z "$GREP"; then
4807 ac_path_GREP_found=false
4808 # Loop through the user's path and test for each of PROGNAME-LIST
4809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4810 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4812 IFS=$as_save_IFS
4813 test -z "$as_dir" && as_dir=.
4814 for ac_prog in grep ggrep; do
4815 for ac_exec_ext in '' $ac_executable_extensions; do
4816 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4817 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4818 # Check for GNU ac_path_GREP and select it if it is found.
4819 # Check for GNU $ac_path_GREP
4820 case `"$ac_path_GREP" --version 2>&1` in
4821 *GNU*)
4822 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4824 ac_count=0
4825 $as_echo_n 0123456789 >"conftest.in"
4826 while :
4828 cat "conftest.in" "conftest.in" >"conftest.tmp"
4829 mv "conftest.tmp" "conftest.in"
4830 cp "conftest.in" "conftest.nl"
4831 $as_echo 'GREP' >> "conftest.nl"
4832 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4833 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4834 as_fn_arith $ac_count + 1 && ac_count=$as_val
4835 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4836 # Best one so far, save it but keep looking for a better one
4837 ac_cv_path_GREP="$ac_path_GREP"
4838 ac_path_GREP_max=$ac_count
4840 # 10*(2^10) chars as input seems more than enough
4841 test $ac_count -gt 10 && break
4842 done
4843 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4844 esac
4846 $ac_path_GREP_found && break 3
4847 done
4848 done
4849 done
4850 IFS=$as_save_IFS
4851 if test -z "$ac_cv_path_GREP"; then
4852 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4854 else
4855 ac_cv_path_GREP=$GREP
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4860 $as_echo "$ac_cv_path_GREP" >&6; }
4861 GREP="$ac_cv_path_GREP"
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4865 $as_echo_n "checking for egrep... " >&6; }
4866 if test "${ac_cv_path_EGREP+set}" = set; then :
4867 $as_echo_n "(cached) " >&6
4868 else
4869 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4870 then ac_cv_path_EGREP="$GREP -E"
4871 else
4872 if test -z "$EGREP"; then
4873 ac_path_EGREP_found=false
4874 # Loop through the user's path and test for each of PROGNAME-LIST
4875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4876 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4878 IFS=$as_save_IFS
4879 test -z "$as_dir" && as_dir=.
4880 for ac_prog in egrep; do
4881 for ac_exec_ext in '' $ac_executable_extensions; do
4882 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4883 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4884 # Check for GNU ac_path_EGREP and select it if it is found.
4885 # Check for GNU $ac_path_EGREP
4886 case `"$ac_path_EGREP" --version 2>&1` in
4887 *GNU*)
4888 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4890 ac_count=0
4891 $as_echo_n 0123456789 >"conftest.in"
4892 while :
4894 cat "conftest.in" "conftest.in" >"conftest.tmp"
4895 mv "conftest.tmp" "conftest.in"
4896 cp "conftest.in" "conftest.nl"
4897 $as_echo 'EGREP' >> "conftest.nl"
4898 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4899 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4900 as_fn_arith $ac_count + 1 && ac_count=$as_val
4901 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4902 # Best one so far, save it but keep looking for a better one
4903 ac_cv_path_EGREP="$ac_path_EGREP"
4904 ac_path_EGREP_max=$ac_count
4906 # 10*(2^10) chars as input seems more than enough
4907 test $ac_count -gt 10 && break
4908 done
4909 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4910 esac
4912 $ac_path_EGREP_found && break 3
4913 done
4914 done
4915 done
4916 IFS=$as_save_IFS
4917 if test -z "$ac_cv_path_EGREP"; then
4918 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4920 else
4921 ac_cv_path_EGREP=$EGREP
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4927 $as_echo "$ac_cv_path_EGREP" >&6; }
4928 EGREP="$ac_cv_path_EGREP"
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4932 $as_echo_n "checking for fgrep... " >&6; }
4933 if test "${ac_cv_path_FGREP+set}" = set; then :
4934 $as_echo_n "(cached) " >&6
4935 else
4936 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4937 then ac_cv_path_FGREP="$GREP -F"
4938 else
4939 if test -z "$FGREP"; then
4940 ac_path_FGREP_found=false
4941 # Loop through the user's path and test for each of PROGNAME-LIST
4942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4943 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4945 IFS=$as_save_IFS
4946 test -z "$as_dir" && as_dir=.
4947 for ac_prog in fgrep; do
4948 for ac_exec_ext in '' $ac_executable_extensions; do
4949 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4950 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4951 # Check for GNU ac_path_FGREP and select it if it is found.
4952 # Check for GNU $ac_path_FGREP
4953 case `"$ac_path_FGREP" --version 2>&1` in
4954 *GNU*)
4955 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4957 ac_count=0
4958 $as_echo_n 0123456789 >"conftest.in"
4959 while :
4961 cat "conftest.in" "conftest.in" >"conftest.tmp"
4962 mv "conftest.tmp" "conftest.in"
4963 cp "conftest.in" "conftest.nl"
4964 $as_echo 'FGREP' >> "conftest.nl"
4965 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4966 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4967 as_fn_arith $ac_count + 1 && ac_count=$as_val
4968 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4969 # Best one so far, save it but keep looking for a better one
4970 ac_cv_path_FGREP="$ac_path_FGREP"
4971 ac_path_FGREP_max=$ac_count
4973 # 10*(2^10) chars as input seems more than enough
4974 test $ac_count -gt 10 && break
4975 done
4976 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4977 esac
4979 $ac_path_FGREP_found && break 3
4980 done
4981 done
4982 done
4983 IFS=$as_save_IFS
4984 if test -z "$ac_cv_path_FGREP"; then
4985 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4987 else
4988 ac_cv_path_FGREP=$FGREP
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4994 $as_echo "$ac_cv_path_FGREP" >&6; }
4995 FGREP="$ac_cv_path_FGREP"
4998 test -z "$GREP" && GREP=grep
5018 # Check whether --with-gnu-ld was given.
5019 if test "${with_gnu_ld+set}" = set; then :
5020 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5021 else
5022 with_gnu_ld=no
5025 ac_prog=ld
5026 if test "$GCC" = yes; then
5027 # Check if gcc -print-prog-name=ld gives a path.
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5029 $as_echo_n "checking for ld used by $CC... " >&6; }
5030 case $host in
5031 *-*-mingw*)
5032 # gcc leaves a trailing carriage return which upsets mingw
5033 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5035 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5036 esac
5037 case $ac_prog in
5038 # Accept absolute paths.
5039 [\\/]* | ?:[\\/]*)
5040 re_direlt='/[^/][^/]*/\.\./'
5041 # Canonicalize the pathname of ld
5042 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5043 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5044 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5045 done
5046 test -z "$LD" && LD="$ac_prog"
5049 # If it fails, then pretend we aren't using GCC.
5050 ac_prog=ld
5053 # If it is relative, then search for the first ld in PATH.
5054 with_gnu_ld=unknown
5056 esac
5057 elif test "$with_gnu_ld" = yes; then
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5059 $as_echo_n "checking for GNU ld... " >&6; }
5060 else
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5062 $as_echo_n "checking for non-GNU ld... " >&6; }
5064 if test "${lt_cv_path_LD+set}" = set; then :
5065 $as_echo_n "(cached) " >&6
5066 else
5067 if test -z "$LD"; then
5068 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5069 for ac_dir in $PATH; do
5070 IFS="$lt_save_ifs"
5071 test -z "$ac_dir" && ac_dir=.
5072 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5073 lt_cv_path_LD="$ac_dir/$ac_prog"
5074 # Check to see if the program is GNU ld. I'd rather use --version,
5075 # but apparently some variants of GNU ld only accept -v.
5076 # Break only if it was the GNU/non-GNU ld that we prefer.
5077 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5078 *GNU* | *'with BFD'*)
5079 test "$with_gnu_ld" != no && break
5082 test "$with_gnu_ld" != yes && break
5084 esac
5086 done
5087 IFS="$lt_save_ifs"
5088 else
5089 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5093 LD="$lt_cv_path_LD"
5094 if test -n "$LD"; then
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5096 $as_echo "$LD" >&6; }
5097 else
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5099 $as_echo "no" >&6; }
5101 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5103 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5104 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5105 $as_echo_n "(cached) " >&6
5106 else
5107 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5108 case `$LD -v 2>&1 </dev/null` in
5109 *GNU* | *'with BFD'*)
5110 lt_cv_prog_gnu_ld=yes
5113 lt_cv_prog_gnu_ld=no
5115 esac
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5118 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5119 with_gnu_ld=$lt_cv_prog_gnu_ld
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5130 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5131 if test "${lt_cv_path_NM+set}" = set; then :
5132 $as_echo_n "(cached) " >&6
5133 else
5134 if test -n "$NM"; then
5135 # Let the user override the test.
5136 lt_cv_path_NM="$NM"
5137 else
5138 lt_nm_to_check="${ac_tool_prefix}nm"
5139 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5140 lt_nm_to_check="$lt_nm_to_check nm"
5142 for lt_tmp_nm in $lt_nm_to_check; do
5143 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5144 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5145 IFS="$lt_save_ifs"
5146 test -z "$ac_dir" && ac_dir=.
5147 tmp_nm="$ac_dir/$lt_tmp_nm"
5148 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5149 # Check to see if the nm accepts a BSD-compat flag.
5150 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5151 # nm: unknown option "B" ignored
5152 # Tru64's nm complains that /dev/null is an invalid object file
5153 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5154 */dev/null* | *'Invalid file or object type'*)
5155 lt_cv_path_NM="$tmp_nm -B"
5156 break
5159 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5160 */dev/null*)
5161 lt_cv_path_NM="$tmp_nm -p"
5162 break
5165 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5166 continue # so that we can try to find one that supports BSD flags
5168 esac
5170 esac
5172 done
5173 IFS="$lt_save_ifs"
5174 done
5175 : ${lt_cv_path_NM=no}
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5179 $as_echo "$lt_cv_path_NM" >&6; }
5180 if test "$lt_cv_path_NM" != "no"; then
5181 NM="$lt_cv_path_NM"
5182 else
5183 # Didn't find any BSD compatible name lister, look for dumpbin.
5184 if test -n "$DUMPBIN"; then :
5185 # Let the user override the test.
5186 else
5187 if test -n "$ac_tool_prefix"; then
5188 for ac_prog in dumpbin "link -dump"
5190 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5191 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5193 $as_echo_n "checking for $ac_word... " >&6; }
5194 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5195 $as_echo_n "(cached) " >&6
5196 else
5197 if test -n "$DUMPBIN"; then
5198 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5199 else
5200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5201 for as_dir in $PATH
5203 IFS=$as_save_IFS
5204 test -z "$as_dir" && as_dir=.
5205 for ac_exec_ext in '' $ac_executable_extensions; do
5206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5207 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5209 break 2
5211 done
5212 done
5213 IFS=$as_save_IFS
5217 DUMPBIN=$ac_cv_prog_DUMPBIN
5218 if test -n "$DUMPBIN"; then
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5220 $as_echo "$DUMPBIN" >&6; }
5221 else
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5223 $as_echo "no" >&6; }
5227 test -n "$DUMPBIN" && break
5228 done
5230 if test -z "$DUMPBIN"; then
5231 ac_ct_DUMPBIN=$DUMPBIN
5232 for ac_prog in dumpbin "link -dump"
5234 # Extract the first word of "$ac_prog", so it can be a program name with args.
5235 set dummy $ac_prog; ac_word=$2
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5237 $as_echo_n "checking for $ac_word... " >&6; }
5238 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5239 $as_echo_n "(cached) " >&6
5240 else
5241 if test -n "$ac_ct_DUMPBIN"; then
5242 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5243 else
5244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5245 for as_dir in $PATH
5247 IFS=$as_save_IFS
5248 test -z "$as_dir" && as_dir=.
5249 for ac_exec_ext in '' $ac_executable_extensions; do
5250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5251 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5253 break 2
5255 done
5256 done
5257 IFS=$as_save_IFS
5261 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5262 if test -n "$ac_ct_DUMPBIN"; then
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5264 $as_echo "$ac_ct_DUMPBIN" >&6; }
5265 else
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5267 $as_echo "no" >&6; }
5271 test -n "$ac_ct_DUMPBIN" && break
5272 done
5274 if test "x$ac_ct_DUMPBIN" = x; then
5275 DUMPBIN=":"
5276 else
5277 case $cross_compiling:$ac_tool_warned in
5278 yes:)
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5280 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5281 ac_tool_warned=yes ;;
5282 esac
5283 DUMPBIN=$ac_ct_DUMPBIN
5287 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5288 *COFF*)
5289 DUMPBIN="$DUMPBIN -symbols"
5292 DUMPBIN=:
5294 esac
5297 if test "$DUMPBIN" != ":"; then
5298 NM="$DUMPBIN"
5301 test -z "$NM" && NM=nm
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5309 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5310 if test "${lt_cv_nm_interface+set}" = set; then :
5311 $as_echo_n "(cached) " >&6
5312 else
5313 lt_cv_nm_interface="BSD nm"
5314 echo "int some_variable = 0;" > conftest.$ac_ext
5315 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5316 (eval "$ac_compile" 2>conftest.err)
5317 cat conftest.err >&5
5318 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5319 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5320 cat conftest.err >&5
5321 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5322 cat conftest.out >&5
5323 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5324 lt_cv_nm_interface="MS dumpbin"
5326 rm -f conftest*
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5329 $as_echo "$lt_cv_nm_interface" >&6; }
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5332 $as_echo_n "checking whether ln -s works... " >&6; }
5333 LN_S=$as_ln_s
5334 if test "$LN_S" = "ln -s"; then
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5336 $as_echo "yes" >&6; }
5337 else
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5339 $as_echo "no, using $LN_S" >&6; }
5342 # find the maximum length of command line arguments
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5344 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5345 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5346 $as_echo_n "(cached) " >&6
5347 else
5349 teststring="ABCD"
5351 case $build_os in
5352 msdosdjgpp*)
5353 # On DJGPP, this test can blow up pretty badly due to problems in libc
5354 # (any single argument exceeding 2000 bytes causes a buffer overrun
5355 # during glob expansion). Even if it were fixed, the result of this
5356 # check would be larger than it should be.
5357 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5360 gnu*)
5361 # Under GNU Hurd, this test is not required because there is
5362 # no limit to the length of command line arguments.
5363 # Libtool will interpret -1 as no limit whatsoever
5364 lt_cv_sys_max_cmd_len=-1;
5367 cygwin* | mingw* | cegcc*)
5368 # On Win9x/ME, this test blows up -- it succeeds, but takes
5369 # about 5 minutes as the teststring grows exponentially.
5370 # Worse, since 9x/ME are not pre-emptively multitasking,
5371 # you end up with a "frozen" computer, even though with patience
5372 # the test eventually succeeds (with a max line length of 256k).
5373 # Instead, let's just punt: use the minimum linelength reported by
5374 # all of the supported platforms: 8192 (on NT/2K/XP).
5375 lt_cv_sys_max_cmd_len=8192;
5378 mint*)
5379 # On MiNT this can take a long time and run out of memory.
5380 lt_cv_sys_max_cmd_len=8192;
5383 amigaos*)
5384 # On AmigaOS with pdksh, this test takes hours, literally.
5385 # So we just punt and use a minimum line length of 8192.
5386 lt_cv_sys_max_cmd_len=8192;
5389 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5390 # This has been around since 386BSD, at least. Likely further.
5391 if test -x /sbin/sysctl; then
5392 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5393 elif test -x /usr/sbin/sysctl; then
5394 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5395 else
5396 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5398 # And add a safety zone
5399 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5400 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5403 interix*)
5404 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5405 lt_cv_sys_max_cmd_len=196608
5408 osf*)
5409 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5410 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5411 # nice to cause kernel panics so lets avoid the loop below.
5412 # First set a reasonable default.
5413 lt_cv_sys_max_cmd_len=16384
5415 if test -x /sbin/sysconfig; then
5416 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5417 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5418 esac
5421 sco3.2v5*)
5422 lt_cv_sys_max_cmd_len=102400
5424 sysv5* | sco5v6* | sysv4.2uw2*)
5425 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5426 if test -n "$kargmax"; then
5427 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5428 else
5429 lt_cv_sys_max_cmd_len=32768
5433 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5434 if test -n "$lt_cv_sys_max_cmd_len"; then
5435 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5436 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5437 else
5438 # Make teststring a little bigger before we do anything with it.
5439 # a 1K string should be a reasonable start.
5440 for i in 1 2 3 4 5 6 7 8 ; do
5441 teststring=$teststring$teststring
5442 done
5443 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5444 # If test is not a shell built-in, we'll probably end up computing a
5445 # maximum length that is only half of the actual maximum length, but
5446 # we can't tell.
5447 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5448 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5449 test $i != 17 # 1/2 MB should be enough
5451 i=`expr $i + 1`
5452 teststring=$teststring$teststring
5453 done
5454 # Only check the string length outside the loop.
5455 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5456 teststring=
5457 # Add a significant safety factor because C++ compilers can tack on
5458 # massive amounts of additional arguments before passing them to the
5459 # linker. It appears as though 1/2 is a usable value.
5460 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5463 esac
5467 if test -n $lt_cv_sys_max_cmd_len ; then
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5469 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5470 else
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5472 $as_echo "none" >&6; }
5474 max_cmd_len=$lt_cv_sys_max_cmd_len
5481 : ${CP="cp -f"}
5482 : ${MV="mv -f"}
5483 : ${RM="rm -f"}
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5486 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5487 # Try some XSI features
5488 xsi_shell=no
5489 ( _lt_dummy="a/b/c"
5490 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5491 = c,a/b,, \
5492 && eval 'test $(( 1 + 1 )) -eq 2 \
5493 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5494 && xsi_shell=yes
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5496 $as_echo "$xsi_shell" >&6; }
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5500 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5501 lt_shell_append=no
5502 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5503 >/dev/null 2>&1 \
5504 && lt_shell_append=yes
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5506 $as_echo "$lt_shell_append" >&6; }
5509 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5510 lt_unset=unset
5511 else
5512 lt_unset=false
5519 # test EBCDIC or ASCII
5520 case `echo X|tr X '\101'` in
5521 A) # ASCII based system
5522 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5523 lt_SP2NL='tr \040 \012'
5524 lt_NL2SP='tr \015\012 \040\040'
5526 *) # EBCDIC based system
5527 lt_SP2NL='tr \100 \n'
5528 lt_NL2SP='tr \r\n \100\100'
5530 esac
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5541 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5542 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5543 $as_echo_n "(cached) " >&6
5544 else
5545 lt_cv_ld_reload_flag='-r'
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5548 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5549 reload_flag=$lt_cv_ld_reload_flag
5550 case $reload_flag in
5551 "" | " "*) ;;
5552 *) reload_flag=" $reload_flag" ;;
5553 esac
5554 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5555 case $host_os in
5556 darwin*)
5557 if test "$GCC" = yes; then
5558 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5559 else
5560 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5563 esac
5573 if test -n "$ac_tool_prefix"; then
5574 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5575 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5577 $as_echo_n "checking for $ac_word... " >&6; }
5578 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5579 $as_echo_n "(cached) " >&6
5580 else
5581 if test -n "$OBJDUMP"; then
5582 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5583 else
5584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5585 for as_dir in $PATH
5587 IFS=$as_save_IFS
5588 test -z "$as_dir" && as_dir=.
5589 for ac_exec_ext in '' $ac_executable_extensions; do
5590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5591 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5593 break 2
5595 done
5596 done
5597 IFS=$as_save_IFS
5601 OBJDUMP=$ac_cv_prog_OBJDUMP
5602 if test -n "$OBJDUMP"; then
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5604 $as_echo "$OBJDUMP" >&6; }
5605 else
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5607 $as_echo "no" >&6; }
5612 if test -z "$ac_cv_prog_OBJDUMP"; then
5613 ac_ct_OBJDUMP=$OBJDUMP
5614 # Extract the first word of "objdump", so it can be a program name with args.
5615 set dummy objdump; ac_word=$2
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5617 $as_echo_n "checking for $ac_word... " >&6; }
5618 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5619 $as_echo_n "(cached) " >&6
5620 else
5621 if test -n "$ac_ct_OBJDUMP"; then
5622 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5623 else
5624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5625 for as_dir in $PATH
5627 IFS=$as_save_IFS
5628 test -z "$as_dir" && as_dir=.
5629 for ac_exec_ext in '' $ac_executable_extensions; do
5630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5631 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5633 break 2
5635 done
5636 done
5637 IFS=$as_save_IFS
5641 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5642 if test -n "$ac_ct_OBJDUMP"; then
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5644 $as_echo "$ac_ct_OBJDUMP" >&6; }
5645 else
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5647 $as_echo "no" >&6; }
5650 if test "x$ac_ct_OBJDUMP" = x; then
5651 OBJDUMP="false"
5652 else
5653 case $cross_compiling:$ac_tool_warned in
5654 yes:)
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5656 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5657 ac_tool_warned=yes ;;
5658 esac
5659 OBJDUMP=$ac_ct_OBJDUMP
5661 else
5662 OBJDUMP="$ac_cv_prog_OBJDUMP"
5665 test -z "$OBJDUMP" && OBJDUMP=objdump
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5676 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5677 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5678 $as_echo_n "(cached) " >&6
5679 else
5680 lt_cv_file_magic_cmd='$MAGIC_CMD'
5681 lt_cv_file_magic_test_file=
5682 lt_cv_deplibs_check_method='unknown'
5683 # Need to set the preceding variable on all platforms that support
5684 # interlibrary dependencies.
5685 # 'none' -- dependencies not supported.
5686 # `unknown' -- same as none, but documents that we really don't know.
5687 # 'pass_all' -- all dependencies passed with no checks.
5688 # 'test_compile' -- check by making test program.
5689 # 'file_magic [[regex]]' -- check by looking for files in library path
5690 # which responds to the $file_magic_cmd with a given extended regex.
5691 # If you have `file' or equivalent on your system and you're not sure
5692 # whether `pass_all' will *always* work, you probably want this one.
5694 case $host_os in
5695 aix[4-9]*)
5696 lt_cv_deplibs_check_method=pass_all
5699 beos*)
5700 lt_cv_deplibs_check_method=pass_all
5703 bsdi[45]*)
5704 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5705 lt_cv_file_magic_cmd='/usr/bin/file -L'
5706 lt_cv_file_magic_test_file=/shlib/libc.so
5709 cygwin*)
5710 # func_win32_libid is a shell function defined in ltmain.sh
5711 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5712 lt_cv_file_magic_cmd='func_win32_libid'
5715 mingw* | pw32*)
5716 # Base MSYS/MinGW do not provide the 'file' command needed by
5717 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5718 # unless we find 'file', for example because we are cross-compiling.
5719 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5720 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5721 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5722 lt_cv_file_magic_cmd='func_win32_libid'
5723 else
5724 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5725 lt_cv_file_magic_cmd='$OBJDUMP -f'
5729 cegcc*)
5730 # use the weaker test based on 'objdump'. See mingw*.
5731 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5732 lt_cv_file_magic_cmd='$OBJDUMP -f'
5735 darwin* | rhapsody*)
5736 lt_cv_deplibs_check_method=pass_all
5739 freebsd* | dragonfly*)
5740 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5741 case $host_cpu in
5742 i*86 )
5743 # Not sure whether the presence of OpenBSD here was a mistake.
5744 # Let's accept both of them until this is cleared up.
5745 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5746 lt_cv_file_magic_cmd=/usr/bin/file
5747 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5749 esac
5750 else
5751 lt_cv_deplibs_check_method=pass_all
5755 gnu*)
5756 lt_cv_deplibs_check_method=pass_all
5759 haiku*)
5760 lt_cv_deplibs_check_method=pass_all
5763 hpux10.20* | hpux11*)
5764 lt_cv_file_magic_cmd=/usr/bin/file
5765 case $host_cpu in
5766 ia64*)
5767 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5768 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5770 hppa*64*)
5771 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]'
5772 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5775 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5776 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5778 esac
5781 interix[3-9]*)
5782 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5783 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5786 irix5* | irix6* | nonstopux*)
5787 case $LD in
5788 *-32|*"-32 ") libmagic=32-bit;;
5789 *-n32|*"-n32 ") libmagic=N32;;
5790 *-64|*"-64 ") libmagic=64-bit;;
5791 *) libmagic=never-match;;
5792 esac
5793 lt_cv_deplibs_check_method=pass_all
5796 # This must be Linux ELF.
5797 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5798 lt_cv_deplibs_check_method=pass_all
5801 netbsd*)
5802 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5803 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5804 else
5805 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5809 newos6*)
5810 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5811 lt_cv_file_magic_cmd=/usr/bin/file
5812 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5815 *nto* | *qnx*)
5816 lt_cv_deplibs_check_method=pass_all
5819 openbsd*)
5820 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5821 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5822 else
5823 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5827 osf3* | osf4* | osf5*)
5828 lt_cv_deplibs_check_method=pass_all
5831 rdos*)
5832 lt_cv_deplibs_check_method=pass_all
5835 solaris*)
5836 lt_cv_deplibs_check_method=pass_all
5839 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5840 lt_cv_deplibs_check_method=pass_all
5843 sysv4 | sysv4.3*)
5844 case $host_vendor in
5845 motorola)
5846 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]'
5847 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5849 ncr)
5850 lt_cv_deplibs_check_method=pass_all
5852 sequent)
5853 lt_cv_file_magic_cmd='/bin/file'
5854 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5856 sni)
5857 lt_cv_file_magic_cmd='/bin/file'
5858 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5859 lt_cv_file_magic_test_file=/lib/libc.so
5861 siemens)
5862 lt_cv_deplibs_check_method=pass_all
5865 lt_cv_deplibs_check_method=pass_all
5867 esac
5870 tpf*)
5871 lt_cv_deplibs_check_method=pass_all
5873 esac
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5877 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5878 file_magic_cmd=$lt_cv_file_magic_cmd
5879 deplibs_check_method=$lt_cv_deplibs_check_method
5880 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5893 if test -n "$ac_tool_prefix"; then
5894 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5895 set dummy ${ac_tool_prefix}ar; ac_word=$2
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5897 $as_echo_n "checking for $ac_word... " >&6; }
5898 if test "${ac_cv_prog_AR+set}" = set; then :
5899 $as_echo_n "(cached) " >&6
5900 else
5901 if test -n "$AR"; then
5902 ac_cv_prog_AR="$AR" # Let the user override the test.
5903 else
5904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5905 for as_dir in $PATH
5907 IFS=$as_save_IFS
5908 test -z "$as_dir" && as_dir=.
5909 for ac_exec_ext in '' $ac_executable_extensions; do
5910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5911 ac_cv_prog_AR="${ac_tool_prefix}ar"
5912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5913 break 2
5915 done
5916 done
5917 IFS=$as_save_IFS
5921 AR=$ac_cv_prog_AR
5922 if test -n "$AR"; then
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5924 $as_echo "$AR" >&6; }
5925 else
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5927 $as_echo "no" >&6; }
5932 if test -z "$ac_cv_prog_AR"; then
5933 ac_ct_AR=$AR
5934 # Extract the first word of "ar", so it can be a program name with args.
5935 set dummy ar; ac_word=$2
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5937 $as_echo_n "checking for $ac_word... " >&6; }
5938 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5939 $as_echo_n "(cached) " >&6
5940 else
5941 if test -n "$ac_ct_AR"; then
5942 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5943 else
5944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5945 for as_dir in $PATH
5947 IFS=$as_save_IFS
5948 test -z "$as_dir" && as_dir=.
5949 for ac_exec_ext in '' $ac_executable_extensions; do
5950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5951 ac_cv_prog_ac_ct_AR="ar"
5952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5953 break 2
5955 done
5956 done
5957 IFS=$as_save_IFS
5961 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5962 if test -n "$ac_ct_AR"; then
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5964 $as_echo "$ac_ct_AR" >&6; }
5965 else
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5967 $as_echo "no" >&6; }
5970 if test "x$ac_ct_AR" = x; then
5971 AR="false"
5972 else
5973 case $cross_compiling:$ac_tool_warned in
5974 yes:)
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5976 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5977 ac_tool_warned=yes ;;
5978 esac
5979 AR=$ac_ct_AR
5981 else
5982 AR="$ac_cv_prog_AR"
5985 test -z "$AR" && AR=ar
5986 test -z "$AR_FLAGS" && AR_FLAGS=cru
5998 if test -n "$ac_tool_prefix"; then
5999 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6000 set dummy ${ac_tool_prefix}strip; ac_word=$2
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6002 $as_echo_n "checking for $ac_word... " >&6; }
6003 if test "${ac_cv_prog_STRIP+set}" = set; then :
6004 $as_echo_n "(cached) " >&6
6005 else
6006 if test -n "$STRIP"; then
6007 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6008 else
6009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010 for as_dir in $PATH
6012 IFS=$as_save_IFS
6013 test -z "$as_dir" && as_dir=.
6014 for ac_exec_ext in '' $ac_executable_extensions; do
6015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6016 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6018 break 2
6020 done
6021 done
6022 IFS=$as_save_IFS
6026 STRIP=$ac_cv_prog_STRIP
6027 if test -n "$STRIP"; then
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6029 $as_echo "$STRIP" >&6; }
6030 else
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6032 $as_echo "no" >&6; }
6037 if test -z "$ac_cv_prog_STRIP"; then
6038 ac_ct_STRIP=$STRIP
6039 # Extract the first word of "strip", so it can be a program name with args.
6040 set dummy strip; ac_word=$2
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6042 $as_echo_n "checking for $ac_word... " >&6; }
6043 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6044 $as_echo_n "(cached) " >&6
6045 else
6046 if test -n "$ac_ct_STRIP"; then
6047 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6048 else
6049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6050 for as_dir in $PATH
6052 IFS=$as_save_IFS
6053 test -z "$as_dir" && as_dir=.
6054 for ac_exec_ext in '' $ac_executable_extensions; do
6055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6056 ac_cv_prog_ac_ct_STRIP="strip"
6057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6058 break 2
6060 done
6061 done
6062 IFS=$as_save_IFS
6066 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6067 if test -n "$ac_ct_STRIP"; then
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6069 $as_echo "$ac_ct_STRIP" >&6; }
6070 else
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6072 $as_echo "no" >&6; }
6075 if test "x$ac_ct_STRIP" = x; then
6076 STRIP=":"
6077 else
6078 case $cross_compiling:$ac_tool_warned in
6079 yes:)
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6081 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6082 ac_tool_warned=yes ;;
6083 esac
6084 STRIP=$ac_ct_STRIP
6086 else
6087 STRIP="$ac_cv_prog_STRIP"
6090 test -z "$STRIP" && STRIP=:
6097 if test -n "$ac_tool_prefix"; then
6098 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6099 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6101 $as_echo_n "checking for $ac_word... " >&6; }
6102 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6103 $as_echo_n "(cached) " >&6
6104 else
6105 if test -n "$RANLIB"; then
6106 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6107 else
6108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6109 for as_dir in $PATH
6111 IFS=$as_save_IFS
6112 test -z "$as_dir" && as_dir=.
6113 for ac_exec_ext in '' $ac_executable_extensions; do
6114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6115 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6117 break 2
6119 done
6120 done
6121 IFS=$as_save_IFS
6125 RANLIB=$ac_cv_prog_RANLIB
6126 if test -n "$RANLIB"; then
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6128 $as_echo "$RANLIB" >&6; }
6129 else
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6131 $as_echo "no" >&6; }
6136 if test -z "$ac_cv_prog_RANLIB"; then
6137 ac_ct_RANLIB=$RANLIB
6138 # Extract the first word of "ranlib", so it can be a program name with args.
6139 set dummy ranlib; ac_word=$2
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6141 $as_echo_n "checking for $ac_word... " >&6; }
6142 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6143 $as_echo_n "(cached) " >&6
6144 else
6145 if test -n "$ac_ct_RANLIB"; then
6146 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6147 else
6148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6149 for as_dir in $PATH
6151 IFS=$as_save_IFS
6152 test -z "$as_dir" && as_dir=.
6153 for ac_exec_ext in '' $ac_executable_extensions; do
6154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6155 ac_cv_prog_ac_ct_RANLIB="ranlib"
6156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6157 break 2
6159 done
6160 done
6161 IFS=$as_save_IFS
6165 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6166 if test -n "$ac_ct_RANLIB"; then
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6168 $as_echo "$ac_ct_RANLIB" >&6; }
6169 else
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6171 $as_echo "no" >&6; }
6174 if test "x$ac_ct_RANLIB" = x; then
6175 RANLIB=":"
6176 else
6177 case $cross_compiling:$ac_tool_warned in
6178 yes:)
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6180 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6181 ac_tool_warned=yes ;;
6182 esac
6183 RANLIB=$ac_ct_RANLIB
6185 else
6186 RANLIB="$ac_cv_prog_RANLIB"
6189 test -z "$RANLIB" && RANLIB=:
6196 # Determine commands to create old-style static archives.
6197 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6198 old_postinstall_cmds='chmod 644 $oldlib'
6199 old_postuninstall_cmds=
6201 if test -n "$RANLIB"; then
6202 case $host_os in
6203 openbsd*)
6204 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6207 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6209 esac
6210 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6213 case $host_os in
6214 darwin*)
6215 lock_old_archive_extraction=yes ;;
6217 lock_old_archive_extraction=no ;;
6218 esac
6258 # If no C compiler was specified, use CC.
6259 LTCC=${LTCC-"$CC"}
6261 # If no C compiler flags were specified, use CFLAGS.
6262 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6264 # Allow CC to be a program name with arguments.
6265 compiler=$CC
6268 # Check for command to grab the raw symbol name followed by C symbol from nm.
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6270 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6271 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6272 $as_echo_n "(cached) " >&6
6273 else
6275 # These are sane defaults that work on at least a few old systems.
6276 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6278 # Character class describing NM global symbol codes.
6279 symcode='[BCDEGRST]'
6281 # Regexp to match symbols that can be accessed directly from C.
6282 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6284 # Define system-specific variables.
6285 case $host_os in
6286 aix*)
6287 symcode='[BCDT]'
6289 cygwin* | mingw* | pw32* | cegcc*)
6290 symcode='[ABCDGISTW]'
6292 hpux*)
6293 if test "$host_cpu" = ia64; then
6294 symcode='[ABCDEGRST]'
6297 irix* | nonstopux*)
6298 symcode='[BCDEGRST]'
6300 osf*)
6301 symcode='[BCDEGQRST]'
6303 solaris*)
6304 symcode='[BDRT]'
6306 sco3.2v5*)
6307 symcode='[DT]'
6309 sysv4.2uw2*)
6310 symcode='[DT]'
6312 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6313 symcode='[ABDT]'
6315 sysv4)
6316 symcode='[DFNSTU]'
6318 esac
6320 # If we're using GNU nm, then use its standard symbol codes.
6321 case `$NM -V 2>&1` in
6322 *GNU* | *'with BFD'*)
6323 symcode='[ABCDGIRSTW]' ;;
6324 esac
6326 # Transform an extracted symbol line into a proper C declaration.
6327 # Some systems (esp. on ia64) link data and code symbols differently,
6328 # so use this general approach.
6329 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6331 # Transform an extracted symbol line into symbol name and symbol address
6332 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6333 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'"
6335 # Handle CRLF in mingw tool chain
6336 opt_cr=
6337 case $build_os in
6338 mingw*)
6339 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6341 esac
6343 # Try without a prefix underscore, then with it.
6344 for ac_symprfx in "" "_"; do
6346 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6347 symxfrm="\\1 $ac_symprfx\\2 \\2"
6349 # Write the raw and C identifiers.
6350 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6351 # Fake it for dumpbin and say T for any non-static function
6352 # and D for any global variable.
6353 # Also find C++ and __fastcall symbols from MSVC++,
6354 # which start with @ or ?.
6355 lt_cv_sys_global_symbol_pipe="$AWK '"\
6356 " {last_section=section; section=\$ 3};"\
6357 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6358 " \$ 0!~/External *\|/{next};"\
6359 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6360 " {if(hide[section]) next};"\
6361 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6362 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6363 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6364 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6365 " ' prfx=^$ac_symprfx"
6366 else
6367 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6370 # Check to see that the pipe works correctly.
6371 pipe_works=no
6373 rm -f conftest*
6374 cat > conftest.$ac_ext <<_LT_EOF
6375 #ifdef __cplusplus
6376 extern "C" {
6377 #endif
6378 char nm_test_var;
6379 void nm_test_func(void);
6380 void nm_test_func(void){}
6381 #ifdef __cplusplus
6383 #endif
6384 int main(){nm_test_var='a';nm_test_func();return(0);}
6385 _LT_EOF
6387 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6388 (eval $ac_compile) 2>&5
6389 ac_status=$?
6390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6391 test $ac_status = 0; }; then
6392 # Now try to grab the symbols.
6393 nlist=conftest.nm
6394 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6395 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6396 ac_status=$?
6397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6398 test $ac_status = 0; } && test -s "$nlist"; then
6399 # Try sorting and uniquifying the output.
6400 if sort "$nlist" | uniq > "$nlist"T; then
6401 mv -f "$nlist"T "$nlist"
6402 else
6403 rm -f "$nlist"T
6406 # Make sure that we snagged all the symbols we need.
6407 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6408 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6409 cat <<_LT_EOF > conftest.$ac_ext
6410 #ifdef __cplusplus
6411 extern "C" {
6412 #endif
6414 _LT_EOF
6415 # Now generate the symbol file.
6416 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6418 cat <<_LT_EOF >> conftest.$ac_ext
6420 /* The mapping between symbol names and symbols. */
6421 const struct {
6422 const char *name;
6423 void *address;
6425 lt__PROGRAM__LTX_preloaded_symbols[] =
6427 { "@PROGRAM@", (void *) 0 },
6428 _LT_EOF
6429 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6430 cat <<\_LT_EOF >> conftest.$ac_ext
6431 {0, (void *) 0}
6434 /* This works around a problem in FreeBSD linker */
6435 #ifdef FREEBSD_WORKAROUND
6436 static const void *lt_preloaded_setup() {
6437 return lt__PROGRAM__LTX_preloaded_symbols;
6439 #endif
6441 #ifdef __cplusplus
6443 #endif
6444 _LT_EOF
6445 # Now try linking the two files.
6446 mv conftest.$ac_objext conftstm.$ac_objext
6447 lt_save_LIBS="$LIBS"
6448 lt_save_CFLAGS="$CFLAGS"
6449 LIBS="conftstm.$ac_objext"
6450 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6451 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6452 (eval $ac_link) 2>&5
6453 ac_status=$?
6454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6455 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6456 pipe_works=yes
6458 LIBS="$lt_save_LIBS"
6459 CFLAGS="$lt_save_CFLAGS"
6460 else
6461 echo "cannot find nm_test_func in $nlist" >&5
6463 else
6464 echo "cannot find nm_test_var in $nlist" >&5
6466 else
6467 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6469 else
6470 echo "$progname: failed program was:" >&5
6471 cat conftest.$ac_ext >&5
6473 rm -rf conftest* conftst*
6475 # Do not use the global_symbol_pipe unless it works.
6476 if test "$pipe_works" = yes; then
6477 break
6478 else
6479 lt_cv_sys_global_symbol_pipe=
6481 done
6485 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6486 lt_cv_sys_global_symbol_to_cdecl=
6488 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6490 $as_echo "failed" >&6; }
6491 else
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6493 $as_echo "ok" >&6; }
6518 # Check whether --enable-libtool-lock was given.
6519 if test "${enable_libtool_lock+set}" = set; then :
6520 enableval=$enable_libtool_lock;
6523 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6525 # Some flags need to be propagated to the compiler or linker for good
6526 # libtool support.
6527 case $host in
6528 ia64-*-hpux*)
6529 # Find out which ABI we are using.
6530 echo 'int i;' > conftest.$ac_ext
6531 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6532 (eval $ac_compile) 2>&5
6533 ac_status=$?
6534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6535 test $ac_status = 0; }; then
6536 case `/usr/bin/file conftest.$ac_objext` in
6537 *ELF-32*)
6538 HPUX_IA64_MODE="32"
6540 *ELF-64*)
6541 HPUX_IA64_MODE="64"
6543 esac
6545 rm -rf conftest*
6547 *-*-irix6*)
6548 # Find out which ABI we are using.
6549 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6551 (eval $ac_compile) 2>&5
6552 ac_status=$?
6553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6554 test $ac_status = 0; }; then
6555 if test "$lt_cv_prog_gnu_ld" = yes; then
6556 case `/usr/bin/file conftest.$ac_objext` in
6557 *32-bit*)
6558 LD="${LD-ld} -melf32bsmip"
6560 *N32*)
6561 LD="${LD-ld} -melf32bmipn32"
6563 *64-bit*)
6564 LD="${LD-ld} -melf64bmip"
6566 esac
6567 else
6568 case `/usr/bin/file conftest.$ac_objext` in
6569 *32-bit*)
6570 LD="${LD-ld} -32"
6572 *N32*)
6573 LD="${LD-ld} -n32"
6575 *64-bit*)
6576 LD="${LD-ld} -64"
6578 esac
6581 rm -rf conftest*
6584 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6585 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6586 # Find out which ABI we are using.
6587 echo 'int i;' > conftest.$ac_ext
6588 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6589 (eval $ac_compile) 2>&5
6590 ac_status=$?
6591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6592 test $ac_status = 0; }; then
6593 case `/usr/bin/file conftest.o` in
6594 *32-bit*)
6595 case $host in
6596 x86_64-*kfreebsd*-gnu)
6597 LD="${LD-ld} -m elf_i386_fbsd"
6599 x86_64-*linux*)
6600 LD="${LD-ld} -m elf_i386"
6602 ppc64-*linux*|powerpc64-*linux*)
6603 LD="${LD-ld} -m elf32ppclinux"
6605 s390x-*linux*)
6606 LD="${LD-ld} -m elf_s390"
6608 sparc64-*linux*)
6609 LD="${LD-ld} -m elf32_sparc"
6611 esac
6613 *64-bit*)
6614 case $host in
6615 x86_64-*kfreebsd*-gnu)
6616 LD="${LD-ld} -m elf_x86_64_fbsd"
6618 x86_64-*linux*)
6619 LD="${LD-ld} -m elf_x86_64"
6621 ppc*-*linux*|powerpc*-*linux*)
6622 LD="${LD-ld} -m elf64ppc"
6624 s390*-*linux*|s390*-*tpf*)
6625 LD="${LD-ld} -m elf64_s390"
6627 sparc*-*linux*)
6628 LD="${LD-ld} -m elf64_sparc"
6630 esac
6632 esac
6634 rm -rf conftest*
6637 *-*-sco3.2v5*)
6638 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6639 SAVE_CFLAGS="$CFLAGS"
6640 CFLAGS="$CFLAGS -belf"
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6642 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6643 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6644 $as_echo_n "(cached) " >&6
6645 else
6646 ac_ext=c
6647 ac_cpp='$CPP $CPPFLAGS'
6648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6653 /* end confdefs.h. */
6656 main ()
6660 return 0;
6662 _ACEOF
6663 if ac_fn_c_try_link "$LINENO"; then :
6664 lt_cv_cc_needs_belf=yes
6665 else
6666 lt_cv_cc_needs_belf=no
6668 rm -f core conftest.err conftest.$ac_objext \
6669 conftest$ac_exeext conftest.$ac_ext
6670 ac_ext=c
6671 ac_cpp='$CPP $CPPFLAGS'
6672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6678 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6679 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6680 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6681 CFLAGS="$SAVE_CFLAGS"
6684 sparc*-*solaris*)
6685 # Find out which ABI we are using.
6686 echo 'int i;' > conftest.$ac_ext
6687 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6688 (eval $ac_compile) 2>&5
6689 ac_status=$?
6690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6691 test $ac_status = 0; }; then
6692 case `/usr/bin/file conftest.o` in
6693 *64-bit*)
6694 case $lt_cv_prog_gnu_ld in
6695 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6697 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6698 LD="${LD-ld} -64"
6701 esac
6703 esac
6705 rm -rf conftest*
6707 esac
6709 need_locks="$enable_libtool_lock"
6712 case $host_os in
6713 rhapsody* | darwin*)
6714 if test -n "$ac_tool_prefix"; then
6715 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6716 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6718 $as_echo_n "checking for $ac_word... " >&6; }
6719 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6720 $as_echo_n "(cached) " >&6
6721 else
6722 if test -n "$DSYMUTIL"; then
6723 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6724 else
6725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6726 for as_dir in $PATH
6728 IFS=$as_save_IFS
6729 test -z "$as_dir" && as_dir=.
6730 for ac_exec_ext in '' $ac_executable_extensions; do
6731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6732 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6734 break 2
6736 done
6737 done
6738 IFS=$as_save_IFS
6742 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6743 if test -n "$DSYMUTIL"; then
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6745 $as_echo "$DSYMUTIL" >&6; }
6746 else
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6748 $as_echo "no" >&6; }
6753 if test -z "$ac_cv_prog_DSYMUTIL"; then
6754 ac_ct_DSYMUTIL=$DSYMUTIL
6755 # Extract the first word of "dsymutil", so it can be a program name with args.
6756 set dummy dsymutil; ac_word=$2
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6758 $as_echo_n "checking for $ac_word... " >&6; }
6759 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6760 $as_echo_n "(cached) " >&6
6761 else
6762 if test -n "$ac_ct_DSYMUTIL"; then
6763 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6764 else
6765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6766 for as_dir in $PATH
6768 IFS=$as_save_IFS
6769 test -z "$as_dir" && as_dir=.
6770 for ac_exec_ext in '' $ac_executable_extensions; do
6771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6772 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6774 break 2
6776 done
6777 done
6778 IFS=$as_save_IFS
6782 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6783 if test -n "$ac_ct_DSYMUTIL"; then
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6785 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6786 else
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6788 $as_echo "no" >&6; }
6791 if test "x$ac_ct_DSYMUTIL" = x; then
6792 DSYMUTIL=":"
6793 else
6794 case $cross_compiling:$ac_tool_warned in
6795 yes:)
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6797 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6798 ac_tool_warned=yes ;;
6799 esac
6800 DSYMUTIL=$ac_ct_DSYMUTIL
6802 else
6803 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6806 if test -n "$ac_tool_prefix"; then
6807 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6808 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6810 $as_echo_n "checking for $ac_word... " >&6; }
6811 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6812 $as_echo_n "(cached) " >&6
6813 else
6814 if test -n "$NMEDIT"; then
6815 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6816 else
6817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6818 for as_dir in $PATH
6820 IFS=$as_save_IFS
6821 test -z "$as_dir" && as_dir=.
6822 for ac_exec_ext in '' $ac_executable_extensions; do
6823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6824 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6826 break 2
6828 done
6829 done
6830 IFS=$as_save_IFS
6834 NMEDIT=$ac_cv_prog_NMEDIT
6835 if test -n "$NMEDIT"; then
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6837 $as_echo "$NMEDIT" >&6; }
6838 else
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6840 $as_echo "no" >&6; }
6845 if test -z "$ac_cv_prog_NMEDIT"; then
6846 ac_ct_NMEDIT=$NMEDIT
6847 # Extract the first word of "nmedit", so it can be a program name with args.
6848 set dummy nmedit; ac_word=$2
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6850 $as_echo_n "checking for $ac_word... " >&6; }
6851 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6852 $as_echo_n "(cached) " >&6
6853 else
6854 if test -n "$ac_ct_NMEDIT"; then
6855 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6856 else
6857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6858 for as_dir in $PATH
6860 IFS=$as_save_IFS
6861 test -z "$as_dir" && as_dir=.
6862 for ac_exec_ext in '' $ac_executable_extensions; do
6863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6864 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6866 break 2
6868 done
6869 done
6870 IFS=$as_save_IFS
6874 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6875 if test -n "$ac_ct_NMEDIT"; then
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6877 $as_echo "$ac_ct_NMEDIT" >&6; }
6878 else
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6880 $as_echo "no" >&6; }
6883 if test "x$ac_ct_NMEDIT" = x; then
6884 NMEDIT=":"
6885 else
6886 case $cross_compiling:$ac_tool_warned in
6887 yes:)
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6889 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6890 ac_tool_warned=yes ;;
6891 esac
6892 NMEDIT=$ac_ct_NMEDIT
6894 else
6895 NMEDIT="$ac_cv_prog_NMEDIT"
6898 if test -n "$ac_tool_prefix"; then
6899 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6900 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6902 $as_echo_n "checking for $ac_word... " >&6; }
6903 if test "${ac_cv_prog_LIPO+set}" = set; then :
6904 $as_echo_n "(cached) " >&6
6905 else
6906 if test -n "$LIPO"; then
6907 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6908 else
6909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6910 for as_dir in $PATH
6912 IFS=$as_save_IFS
6913 test -z "$as_dir" && as_dir=.
6914 for ac_exec_ext in '' $ac_executable_extensions; do
6915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6916 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6918 break 2
6920 done
6921 done
6922 IFS=$as_save_IFS
6926 LIPO=$ac_cv_prog_LIPO
6927 if test -n "$LIPO"; then
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6929 $as_echo "$LIPO" >&6; }
6930 else
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6932 $as_echo "no" >&6; }
6937 if test -z "$ac_cv_prog_LIPO"; then
6938 ac_ct_LIPO=$LIPO
6939 # Extract the first word of "lipo", so it can be a program name with args.
6940 set dummy lipo; ac_word=$2
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6942 $as_echo_n "checking for $ac_word... " >&6; }
6943 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6944 $as_echo_n "(cached) " >&6
6945 else
6946 if test -n "$ac_ct_LIPO"; then
6947 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6948 else
6949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6950 for as_dir in $PATH
6952 IFS=$as_save_IFS
6953 test -z "$as_dir" && as_dir=.
6954 for ac_exec_ext in '' $ac_executable_extensions; do
6955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6956 ac_cv_prog_ac_ct_LIPO="lipo"
6957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6958 break 2
6960 done
6961 done
6962 IFS=$as_save_IFS
6966 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6967 if test -n "$ac_ct_LIPO"; then
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6969 $as_echo "$ac_ct_LIPO" >&6; }
6970 else
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6972 $as_echo "no" >&6; }
6975 if test "x$ac_ct_LIPO" = x; then
6976 LIPO=":"
6977 else
6978 case $cross_compiling:$ac_tool_warned in
6979 yes:)
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6981 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6982 ac_tool_warned=yes ;;
6983 esac
6984 LIPO=$ac_ct_LIPO
6986 else
6987 LIPO="$ac_cv_prog_LIPO"
6990 if test -n "$ac_tool_prefix"; then
6991 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6992 set dummy ${ac_tool_prefix}otool; ac_word=$2
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6994 $as_echo_n "checking for $ac_word... " >&6; }
6995 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6996 $as_echo_n "(cached) " >&6
6997 else
6998 if test -n "$OTOOL"; then
6999 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7000 else
7001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7002 for as_dir in $PATH
7004 IFS=$as_save_IFS
7005 test -z "$as_dir" && as_dir=.
7006 for ac_exec_ext in '' $ac_executable_extensions; do
7007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7008 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7010 break 2
7012 done
7013 done
7014 IFS=$as_save_IFS
7018 OTOOL=$ac_cv_prog_OTOOL
7019 if test -n "$OTOOL"; then
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7021 $as_echo "$OTOOL" >&6; }
7022 else
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7024 $as_echo "no" >&6; }
7029 if test -z "$ac_cv_prog_OTOOL"; then
7030 ac_ct_OTOOL=$OTOOL
7031 # Extract the first word of "otool", so it can be a program name with args.
7032 set dummy otool; ac_word=$2
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7034 $as_echo_n "checking for $ac_word... " >&6; }
7035 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7036 $as_echo_n "(cached) " >&6
7037 else
7038 if test -n "$ac_ct_OTOOL"; then
7039 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7040 else
7041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7042 for as_dir in $PATH
7044 IFS=$as_save_IFS
7045 test -z "$as_dir" && as_dir=.
7046 for ac_exec_ext in '' $ac_executable_extensions; do
7047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7048 ac_cv_prog_ac_ct_OTOOL="otool"
7049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7050 break 2
7052 done
7053 done
7054 IFS=$as_save_IFS
7058 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7059 if test -n "$ac_ct_OTOOL"; then
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7061 $as_echo "$ac_ct_OTOOL" >&6; }
7062 else
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7064 $as_echo "no" >&6; }
7067 if test "x$ac_ct_OTOOL" = x; then
7068 OTOOL=":"
7069 else
7070 case $cross_compiling:$ac_tool_warned in
7071 yes:)
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7073 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7074 ac_tool_warned=yes ;;
7075 esac
7076 OTOOL=$ac_ct_OTOOL
7078 else
7079 OTOOL="$ac_cv_prog_OTOOL"
7082 if test -n "$ac_tool_prefix"; then
7083 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7084 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7086 $as_echo_n "checking for $ac_word... " >&6; }
7087 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7088 $as_echo_n "(cached) " >&6
7089 else
7090 if test -n "$OTOOL64"; then
7091 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7092 else
7093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7094 for as_dir in $PATH
7096 IFS=$as_save_IFS
7097 test -z "$as_dir" && as_dir=.
7098 for ac_exec_ext in '' $ac_executable_extensions; do
7099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7100 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7102 break 2
7104 done
7105 done
7106 IFS=$as_save_IFS
7110 OTOOL64=$ac_cv_prog_OTOOL64
7111 if test -n "$OTOOL64"; then
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7113 $as_echo "$OTOOL64" >&6; }
7114 else
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7116 $as_echo "no" >&6; }
7121 if test -z "$ac_cv_prog_OTOOL64"; then
7122 ac_ct_OTOOL64=$OTOOL64
7123 # Extract the first word of "otool64", so it can be a program name with args.
7124 set dummy otool64; ac_word=$2
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7126 $as_echo_n "checking for $ac_word... " >&6; }
7127 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7128 $as_echo_n "(cached) " >&6
7129 else
7130 if test -n "$ac_ct_OTOOL64"; then
7131 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7132 else
7133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7134 for as_dir in $PATH
7136 IFS=$as_save_IFS
7137 test -z "$as_dir" && as_dir=.
7138 for ac_exec_ext in '' $ac_executable_extensions; do
7139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7140 ac_cv_prog_ac_ct_OTOOL64="otool64"
7141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7142 break 2
7144 done
7145 done
7146 IFS=$as_save_IFS
7150 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7151 if test -n "$ac_ct_OTOOL64"; then
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7153 $as_echo "$ac_ct_OTOOL64" >&6; }
7154 else
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7156 $as_echo "no" >&6; }
7159 if test "x$ac_ct_OTOOL64" = x; then
7160 OTOOL64=":"
7161 else
7162 case $cross_compiling:$ac_tool_warned in
7163 yes:)
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7165 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7166 ac_tool_warned=yes ;;
7167 esac
7168 OTOOL64=$ac_ct_OTOOL64
7170 else
7171 OTOOL64="$ac_cv_prog_OTOOL64"
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7201 $as_echo_n "checking for -single_module linker flag... " >&6; }
7202 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7203 $as_echo_n "(cached) " >&6
7204 else
7205 lt_cv_apple_cc_single_mod=no
7206 if test -z "${LT_MULTI_MODULE}"; then
7207 # By default we will add the -single_module flag. You can override
7208 # by either setting the environment variable LT_MULTI_MODULE
7209 # non-empty at configure time, or by adding -multi_module to the
7210 # link flags.
7211 rm -rf libconftest.dylib*
7212 echo "int foo(void){return 1;}" > conftest.c
7213 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7214 -dynamiclib -Wl,-single_module conftest.c" >&5
7215 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7216 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7217 _lt_result=$?
7218 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7219 lt_cv_apple_cc_single_mod=yes
7220 else
7221 cat conftest.err >&5
7223 rm -rf libconftest.dylib*
7224 rm -f conftest.*
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7228 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7230 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7231 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7232 $as_echo_n "(cached) " >&6
7233 else
7234 lt_cv_ld_exported_symbols_list=no
7235 save_LDFLAGS=$LDFLAGS
7236 echo "_main" > conftest.sym
7237 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7239 /* end confdefs.h. */
7242 main ()
7246 return 0;
7248 _ACEOF
7249 if ac_fn_c_try_link "$LINENO"; then :
7250 lt_cv_ld_exported_symbols_list=yes
7251 else
7252 lt_cv_ld_exported_symbols_list=no
7254 rm -f core conftest.err conftest.$ac_objext \
7255 conftest$ac_exeext conftest.$ac_ext
7256 LDFLAGS="$save_LDFLAGS"
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7260 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7262 $as_echo_n "checking for -force_load linker flag... " >&6; }
7263 if test "${lt_cv_ld_force_load+set}" = set; then :
7264 $as_echo_n "(cached) " >&6
7265 else
7266 lt_cv_ld_force_load=no
7267 cat > conftest.c << _LT_EOF
7268 int forced_loaded() { return 2;}
7269 _LT_EOF
7270 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7271 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7272 echo "$AR cru libconftest.a conftest.o" >&5
7273 $AR cru libconftest.a conftest.o 2>&5
7274 cat > conftest.c << _LT_EOF
7275 int main() { return 0;}
7276 _LT_EOF
7277 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7278 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7279 _lt_result=$?
7280 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7281 lt_cv_ld_force_load=yes
7282 else
7283 cat conftest.err >&5
7285 rm -f conftest.err libconftest.a conftest conftest.c
7286 rm -rf conftest.dSYM
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7290 $as_echo "$lt_cv_ld_force_load" >&6; }
7291 case $host_os in
7292 rhapsody* | darwin1.[012])
7293 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7294 darwin1.*)
7295 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7296 darwin*) # darwin 5.x on
7297 # if running on 10.5 or later, the deployment target defaults
7298 # to the OS version, if on x86, and 10.4, the deployment
7299 # target defaults to 10.4. Don't you love it?
7300 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7301 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7302 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7303 10.[012]*)
7304 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7305 10.*)
7306 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7307 esac
7309 esac
7310 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7311 _lt_dar_single_mod='$single_module'
7313 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7314 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7315 else
7316 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7318 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7319 _lt_dsymutil='~$DSYMUTIL $lib || :'
7320 else
7321 _lt_dsymutil=
7324 esac
7326 ac_ext=c
7327 ac_cpp='$CPP $CPPFLAGS'
7328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7332 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7333 # On Suns, sometimes $CPP names a directory.
7334 if test -n "$CPP" && test -d "$CPP"; then
7335 CPP=
7337 if test -z "$CPP"; then
7338 if test "${ac_cv_prog_CPP+set}" = set; then :
7339 $as_echo_n "(cached) " >&6
7340 else
7341 # Double quotes because CPP needs to be expanded
7342 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7344 ac_preproc_ok=false
7345 for ac_c_preproc_warn_flag in '' yes
7347 # Use a header file that comes with gcc, so configuring glibc
7348 # with a fresh cross-compiler works.
7349 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7350 # <limits.h> exists even on freestanding compilers.
7351 # On the NeXT, cc -E runs the code through the compiler's parser,
7352 # not just through cpp. "Syntax error" is here to catch this case.
7353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7354 /* end confdefs.h. */
7355 #ifdef __STDC__
7356 # include <limits.h>
7357 #else
7358 # include <assert.h>
7359 #endif
7360 Syntax error
7361 _ACEOF
7362 if ac_fn_c_try_cpp "$LINENO"; then :
7364 else
7365 # Broken: fails on valid input.
7366 continue
7368 rm -f conftest.err conftest.$ac_ext
7370 # OK, works on sane cases. Now check whether nonexistent headers
7371 # can be detected and how.
7372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7373 /* end confdefs.h. */
7374 #include <ac_nonexistent.h>
7375 _ACEOF
7376 if ac_fn_c_try_cpp "$LINENO"; then :
7377 # Broken: success on invalid input.
7378 continue
7379 else
7380 # Passes both tests.
7381 ac_preproc_ok=:
7382 break
7384 rm -f conftest.err conftest.$ac_ext
7386 done
7387 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7388 rm -f conftest.err conftest.$ac_ext
7389 if $ac_preproc_ok; then :
7390 break
7393 done
7394 ac_cv_prog_CPP=$CPP
7397 CPP=$ac_cv_prog_CPP
7398 else
7399 ac_cv_prog_CPP=$CPP
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7402 $as_echo "$CPP" >&6; }
7403 ac_preproc_ok=false
7404 for ac_c_preproc_warn_flag in '' yes
7406 # Use a header file that comes with gcc, so configuring glibc
7407 # with a fresh cross-compiler works.
7408 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7409 # <limits.h> exists even on freestanding compilers.
7410 # On the NeXT, cc -E runs the code through the compiler's parser,
7411 # not just through cpp. "Syntax error" is here to catch this case.
7412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7413 /* end confdefs.h. */
7414 #ifdef __STDC__
7415 # include <limits.h>
7416 #else
7417 # include <assert.h>
7418 #endif
7419 Syntax error
7420 _ACEOF
7421 if ac_fn_c_try_cpp "$LINENO"; then :
7423 else
7424 # Broken: fails on valid input.
7425 continue
7427 rm -f conftest.err conftest.$ac_ext
7429 # OK, works on sane cases. Now check whether nonexistent headers
7430 # can be detected and how.
7431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7432 /* end confdefs.h. */
7433 #include <ac_nonexistent.h>
7434 _ACEOF
7435 if ac_fn_c_try_cpp "$LINENO"; then :
7436 # Broken: success on invalid input.
7437 continue
7438 else
7439 # Passes both tests.
7440 ac_preproc_ok=:
7441 break
7443 rm -f conftest.err conftest.$ac_ext
7445 done
7446 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7447 rm -f conftest.err conftest.$ac_ext
7448 if $ac_preproc_ok; then :
7450 else
7451 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7453 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7454 See \`config.log' for more details." "$LINENO" 5; }
7457 ac_ext=c
7458 ac_cpp='$CPP $CPPFLAGS'
7459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7465 $as_echo_n "checking for ANSI C header files... " >&6; }
7466 if test "${ac_cv_header_stdc+set}" = set; then :
7467 $as_echo_n "(cached) " >&6
7468 else
7469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7470 /* end confdefs.h. */
7471 #include <stdlib.h>
7472 #include <stdarg.h>
7473 #include <string.h>
7474 #include <float.h>
7477 main ()
7481 return 0;
7483 _ACEOF
7484 if ac_fn_c_try_compile "$LINENO"; then :
7485 ac_cv_header_stdc=yes
7486 else
7487 ac_cv_header_stdc=no
7489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7491 if test $ac_cv_header_stdc = yes; then
7492 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7494 /* end confdefs.h. */
7495 #include <string.h>
7497 _ACEOF
7498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7499 $EGREP "memchr" >/dev/null 2>&1; then :
7501 else
7502 ac_cv_header_stdc=no
7504 rm -f conftest*
7508 if test $ac_cv_header_stdc = yes; then
7509 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7511 /* end confdefs.h. */
7512 #include <stdlib.h>
7514 _ACEOF
7515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7516 $EGREP "free" >/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 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7527 if test "$cross_compiling" = yes; then :
7529 else
7530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7531 /* end confdefs.h. */
7532 #include <ctype.h>
7533 #include <stdlib.h>
7534 #if ((' ' & 0x0FF) == 0x020)
7535 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7536 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7537 #else
7538 # define ISLOWER(c) \
7539 (('a' <= (c) && (c) <= 'i') \
7540 || ('j' <= (c) && (c) <= 'r') \
7541 || ('s' <= (c) && (c) <= 'z'))
7542 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7543 #endif
7545 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7547 main ()
7549 int i;
7550 for (i = 0; i < 256; i++)
7551 if (XOR (islower (i), ISLOWER (i))
7552 || toupper (i) != TOUPPER (i))
7553 return 2;
7554 return 0;
7556 _ACEOF
7557 if ac_fn_c_try_run "$LINENO"; then :
7559 else
7560 ac_cv_header_stdc=no
7562 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7563 conftest.$ac_objext conftest.beam conftest.$ac_ext
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7569 $as_echo "$ac_cv_header_stdc" >&6; }
7570 if test $ac_cv_header_stdc = yes; then
7572 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7576 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7577 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7578 inttypes.h stdint.h unistd.h
7579 do :
7580 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7581 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7583 eval as_val=\$$as_ac_Header
7584 if test "x$as_val" = x""yes; then :
7585 cat >>confdefs.h <<_ACEOF
7586 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7587 _ACEOF
7591 done
7594 for ac_header in dlfcn.h
7595 do :
7596 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7598 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7599 cat >>confdefs.h <<_ACEOF
7600 #define HAVE_DLFCN_H 1
7601 _ACEOF
7605 done
7611 # Set options
7615 enable_dlopen=no
7618 enable_win32_dll=no
7621 # Check whether --enable-shared was given.
7622 if test "${enable_shared+set}" = set; then :
7623 enableval=$enable_shared; p=${PACKAGE-default}
7624 case $enableval in
7625 yes) enable_shared=yes ;;
7626 no) enable_shared=no ;;
7628 enable_shared=no
7629 # Look at the argument we got. We use all the common list separators.
7630 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7631 for pkg in $enableval; do
7632 IFS="$lt_save_ifs"
7633 if test "X$pkg" = "X$p"; then
7634 enable_shared=yes
7636 done
7637 IFS="$lt_save_ifs"
7639 esac
7640 else
7641 enable_shared=yes
7652 # Check whether --enable-static was given.
7653 if test "${enable_static+set}" = set; then :
7654 enableval=$enable_static; p=${PACKAGE-default}
7655 case $enableval in
7656 yes) enable_static=yes ;;
7657 no) enable_static=no ;;
7659 enable_static=no
7660 # Look at the argument we got. We use all the common list separators.
7661 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7662 for pkg in $enableval; do
7663 IFS="$lt_save_ifs"
7664 if test "X$pkg" = "X$p"; then
7665 enable_static=yes
7667 done
7668 IFS="$lt_save_ifs"
7670 esac
7671 else
7672 enable_static=yes
7684 # Check whether --with-pic was given.
7685 if test "${with_pic+set}" = set; then :
7686 withval=$with_pic; pic_mode="$withval"
7687 else
7688 pic_mode=default
7692 test -z "$pic_mode" && pic_mode=default
7700 # Check whether --enable-fast-install was given.
7701 if test "${enable_fast_install+set}" = set; then :
7702 enableval=$enable_fast_install; p=${PACKAGE-default}
7703 case $enableval in
7704 yes) enable_fast_install=yes ;;
7705 no) enable_fast_install=no ;;
7707 enable_fast_install=no
7708 # Look at the argument we got. We use all the common list separators.
7709 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7710 for pkg in $enableval; do
7711 IFS="$lt_save_ifs"
7712 if test "X$pkg" = "X$p"; then
7713 enable_fast_install=yes
7715 done
7716 IFS="$lt_save_ifs"
7718 esac
7719 else
7720 enable_fast_install=yes
7733 # This can be used to rebuild libtool when needed
7734 LIBTOOL_DEPS="$ltmain"
7736 # Always use our own libtool.
7737 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7764 test -z "$LN_S" && LN_S="ln -s"
7779 if test -n "${ZSH_VERSION+set}" ; then
7780 setopt NO_GLOB_SUBST
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7784 $as_echo_n "checking for objdir... " >&6; }
7785 if test "${lt_cv_objdir+set}" = set; then :
7786 $as_echo_n "(cached) " >&6
7787 else
7788 rm -f .libs 2>/dev/null
7789 mkdir .libs 2>/dev/null
7790 if test -d .libs; then
7791 lt_cv_objdir=.libs
7792 else
7793 # MS-DOS does not allow filenames that begin with a dot.
7794 lt_cv_objdir=_libs
7796 rmdir .libs 2>/dev/null
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7799 $as_echo "$lt_cv_objdir" >&6; }
7800 objdir=$lt_cv_objdir
7806 cat >>confdefs.h <<_ACEOF
7807 #define LT_OBJDIR "$lt_cv_objdir/"
7808 _ACEOF
7813 case $host_os in
7814 aix3*)
7815 # AIX sometimes has problems with the GCC collect2 program. For some
7816 # reason, if we set the COLLECT_NAMES environment variable, the problems
7817 # vanish in a puff of smoke.
7818 if test "X${COLLECT_NAMES+set}" != Xset; then
7819 COLLECT_NAMES=
7820 export COLLECT_NAMES
7823 esac
7825 # Global variables:
7826 ofile=libtool
7827 can_build_shared=yes
7829 # All known linkers require a `.a' archive for static linking (except MSVC,
7830 # which needs '.lib').
7831 libext=a
7833 with_gnu_ld="$lt_cv_prog_gnu_ld"
7835 old_CC="$CC"
7836 old_CFLAGS="$CFLAGS"
7838 # Set sane defaults for various variables
7839 test -z "$CC" && CC=cc
7840 test -z "$LTCC" && LTCC=$CC
7841 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7842 test -z "$LD" && LD=ld
7843 test -z "$ac_objext" && ac_objext=o
7845 for cc_temp in $compiler""; do
7846 case $cc_temp in
7847 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7848 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7849 \-*) ;;
7850 *) break;;
7851 esac
7852 done
7853 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7856 # Only perform the check for file, if the check method requires it
7857 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7858 case $deplibs_check_method in
7859 file_magic*)
7860 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7862 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7863 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7864 $as_echo_n "(cached) " >&6
7865 else
7866 case $MAGIC_CMD in
7867 [\\/*] | ?:[\\/]*)
7868 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7871 lt_save_MAGIC_CMD="$MAGIC_CMD"
7872 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7873 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7874 for ac_dir in $ac_dummy; do
7875 IFS="$lt_save_ifs"
7876 test -z "$ac_dir" && ac_dir=.
7877 if test -f $ac_dir/${ac_tool_prefix}file; then
7878 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7879 if test -n "$file_magic_test_file"; then
7880 case $deplibs_check_method in
7881 "file_magic "*)
7882 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7883 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7884 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7885 $EGREP "$file_magic_regex" > /dev/null; then
7887 else
7888 cat <<_LT_EOF 1>&2
7890 *** Warning: the command libtool uses to detect shared libraries,
7891 *** $file_magic_cmd, produces output that libtool cannot recognize.
7892 *** The result is that libtool may fail to recognize shared libraries
7893 *** as such. This will affect the creation of libtool libraries that
7894 *** depend on shared libraries, but programs linked with such libtool
7895 *** libraries will work regardless of this problem. Nevertheless, you
7896 *** may want to report the problem to your system manager and/or to
7897 *** bug-libtool@gnu.org
7899 _LT_EOF
7900 fi ;;
7901 esac
7903 break
7905 done
7906 IFS="$lt_save_ifs"
7907 MAGIC_CMD="$lt_save_MAGIC_CMD"
7909 esac
7912 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7913 if test -n "$MAGIC_CMD"; then
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7915 $as_echo "$MAGIC_CMD" >&6; }
7916 else
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7918 $as_echo "no" >&6; }
7925 if test -z "$lt_cv_path_MAGIC_CMD"; then
7926 if test -n "$ac_tool_prefix"; then
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7928 $as_echo_n "checking for file... " >&6; }
7929 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7930 $as_echo_n "(cached) " >&6
7931 else
7932 case $MAGIC_CMD in
7933 [\\/*] | ?:[\\/]*)
7934 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7937 lt_save_MAGIC_CMD="$MAGIC_CMD"
7938 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7939 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7940 for ac_dir in $ac_dummy; do
7941 IFS="$lt_save_ifs"
7942 test -z "$ac_dir" && ac_dir=.
7943 if test -f $ac_dir/file; then
7944 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7945 if test -n "$file_magic_test_file"; then
7946 case $deplibs_check_method in
7947 "file_magic "*)
7948 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7949 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7950 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7951 $EGREP "$file_magic_regex" > /dev/null; then
7953 else
7954 cat <<_LT_EOF 1>&2
7956 *** Warning: the command libtool uses to detect shared libraries,
7957 *** $file_magic_cmd, produces output that libtool cannot recognize.
7958 *** The result is that libtool may fail to recognize shared libraries
7959 *** as such. This will affect the creation of libtool libraries that
7960 *** depend on shared libraries, but programs linked with such libtool
7961 *** libraries will work regardless of this problem. Nevertheless, you
7962 *** may want to report the problem to your system manager and/or to
7963 *** bug-libtool@gnu.org
7965 _LT_EOF
7966 fi ;;
7967 esac
7969 break
7971 done
7972 IFS="$lt_save_ifs"
7973 MAGIC_CMD="$lt_save_MAGIC_CMD"
7975 esac
7978 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7979 if test -n "$MAGIC_CMD"; then
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7981 $as_echo "$MAGIC_CMD" >&6; }
7982 else
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7984 $as_echo "no" >&6; }
7988 else
7989 MAGIC_CMD=:
7995 esac
7997 # Use C for the default configuration in the libtool script
7999 lt_save_CC="$CC"
8000 ac_ext=c
8001 ac_cpp='$CPP $CPPFLAGS'
8002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8007 # Source file extension for C test sources.
8008 ac_ext=c
8010 # Object file extension for compiled C test sources.
8011 objext=o
8012 objext=$objext
8014 # Code to be used in simple compile tests
8015 lt_simple_compile_test_code="int some_variable = 0;"
8017 # Code to be used in simple link tests
8018 lt_simple_link_test_code='int main(){return(0);}'
8026 # If no C compiler was specified, use CC.
8027 LTCC=${LTCC-"$CC"}
8029 # If no C compiler flags were specified, use CFLAGS.
8030 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8032 # Allow CC to be a program name with arguments.
8033 compiler=$CC
8035 # Save the default compiler, since it gets overwritten when the other
8036 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8037 compiler_DEFAULT=$CC
8039 # save warnings/boilerplate of simple test code
8040 ac_outfile=conftest.$ac_objext
8041 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8042 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8043 _lt_compiler_boilerplate=`cat conftest.err`
8044 $RM conftest*
8046 ac_outfile=conftest.$ac_objext
8047 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8048 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8049 _lt_linker_boilerplate=`cat conftest.err`
8050 $RM -r conftest*
8053 ## CAVEAT EMPTOR:
8054 ## There is no encapsulation within the following macros, do not change
8055 ## the running order or otherwise move them around unless you know exactly
8056 ## what you are doing...
8057 if test -n "$compiler"; then
8059 lt_prog_compiler_no_builtin_flag=
8061 if test "$GCC" = yes; then
8062 case $cc_basename in
8063 nvcc*)
8064 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8066 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8067 esac
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8070 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8071 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8072 $as_echo_n "(cached) " >&6
8073 else
8074 lt_cv_prog_compiler_rtti_exceptions=no
8075 ac_outfile=conftest.$ac_objext
8076 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8077 lt_compiler_flag="-fno-rtti -fno-exceptions"
8078 # Insert the option either (1) after the last *FLAGS variable, or
8079 # (2) before a word containing "conftest.", or (3) at the end.
8080 # Note that $ac_compile itself does not contain backslashes and begins
8081 # with a dollar sign (not a hyphen), so the echo should work correctly.
8082 # The option is referenced via a variable to avoid confusing sed.
8083 lt_compile=`echo "$ac_compile" | $SED \
8084 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8085 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8086 -e 's:$: $lt_compiler_flag:'`
8087 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8088 (eval "$lt_compile" 2>conftest.err)
8089 ac_status=$?
8090 cat conftest.err >&5
8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092 if (exit $ac_status) && test -s "$ac_outfile"; then
8093 # The compiler can only warn and ignore the option if not recognized
8094 # So say no if there are warnings other than the usual output.
8095 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8096 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8097 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8098 lt_cv_prog_compiler_rtti_exceptions=yes
8101 $RM conftest*
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8105 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8107 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8108 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8109 else
8120 lt_prog_compiler_wl=
8121 lt_prog_compiler_pic=
8122 lt_prog_compiler_static=
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8125 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8127 if test "$GCC" = yes; then
8128 lt_prog_compiler_wl='-Wl,'
8129 lt_prog_compiler_static='-static'
8131 case $host_os in
8132 aix*)
8133 # All AIX code is PIC.
8134 if test "$host_cpu" = ia64; then
8135 # AIX 5 now supports IA64 processor
8136 lt_prog_compiler_static='-Bstatic'
8140 amigaos*)
8141 case $host_cpu in
8142 powerpc)
8143 # see comment about AmigaOS4 .so support
8144 lt_prog_compiler_pic='-fPIC'
8146 m68k)
8147 # FIXME: we need at least 68020 code to build shared libraries, but
8148 # adding the `-m68020' flag to GCC prevents building anything better,
8149 # like `-m68040'.
8150 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8152 esac
8155 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8156 # PIC is the default for these OSes.
8159 mingw* | cygwin* | pw32* | os2* | cegcc*)
8160 # This hack is so that the source file can tell whether it is being
8161 # built for inclusion in a dll (and should export symbols for example).
8162 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8163 # (--disable-auto-import) libraries
8164 lt_prog_compiler_pic='-DDLL_EXPORT'
8167 darwin* | rhapsody*)
8168 # PIC is the default on this platform
8169 # Common symbols not allowed in MH_DYLIB files
8170 lt_prog_compiler_pic='-fno-common'
8173 haiku*)
8174 # PIC is the default for Haiku.
8175 # The "-static" flag exists, but is broken.
8176 lt_prog_compiler_static=
8179 hpux*)
8180 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8181 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8182 # sets the default TLS model and affects inlining.
8183 case $host_cpu in
8184 hppa*64*)
8185 # +Z the default
8188 lt_prog_compiler_pic='-fPIC'
8190 esac
8193 interix[3-9]*)
8194 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8195 # Instead, we relocate shared libraries at runtime.
8198 msdosdjgpp*)
8199 # Just because we use GCC doesn't mean we suddenly get shared libraries
8200 # on systems that don't support them.
8201 lt_prog_compiler_can_build_shared=no
8202 enable_shared=no
8205 *nto* | *qnx*)
8206 # QNX uses GNU C++, but need to define -shared option too, otherwise
8207 # it will coredump.
8208 lt_prog_compiler_pic='-fPIC -shared'
8211 sysv4*MP*)
8212 if test -d /usr/nec; then
8213 lt_prog_compiler_pic=-Kconform_pic
8218 lt_prog_compiler_pic='-fPIC'
8220 esac
8222 case $cc_basename in
8223 nvcc*) # Cuda Compiler Driver 2.2
8224 lt_prog_compiler_wl='-Xlinker '
8225 lt_prog_compiler_pic='-Xcompiler -fPIC'
8227 esac
8228 else
8229 # PORTME Check for flag to pass linker flags through the system compiler.
8230 case $host_os in
8231 aix*)
8232 lt_prog_compiler_wl='-Wl,'
8233 if test "$host_cpu" = ia64; then
8234 # AIX 5 now supports IA64 processor
8235 lt_prog_compiler_static='-Bstatic'
8236 else
8237 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8241 mingw* | cygwin* | pw32* | os2* | cegcc*)
8242 # This hack is so that the source file can tell whether it is being
8243 # built for inclusion in a dll (and should export symbols for example).
8244 lt_prog_compiler_pic='-DDLL_EXPORT'
8247 hpux9* | hpux10* | hpux11*)
8248 lt_prog_compiler_wl='-Wl,'
8249 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8250 # not for PA HP-UX.
8251 case $host_cpu in
8252 hppa*64*|ia64*)
8253 # +Z the default
8256 lt_prog_compiler_pic='+Z'
8258 esac
8259 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8260 lt_prog_compiler_static='${wl}-a ${wl}archive'
8263 irix5* | irix6* | nonstopux*)
8264 lt_prog_compiler_wl='-Wl,'
8265 # PIC (with -KPIC) is the default.
8266 lt_prog_compiler_static='-non_shared'
8269 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8270 case $cc_basename in
8271 # old Intel for x86_64 which still supported -KPIC.
8272 ecc*)
8273 lt_prog_compiler_wl='-Wl,'
8274 lt_prog_compiler_pic='-KPIC'
8275 lt_prog_compiler_static='-static'
8277 # icc used to be incompatible with GCC.
8278 # ICC 10 doesn't accept -KPIC any more.
8279 icc* | ifort*)
8280 lt_prog_compiler_wl='-Wl,'
8281 lt_prog_compiler_pic='-fPIC'
8282 lt_prog_compiler_static='-static'
8284 # Lahey Fortran 8.1.
8285 lf95*)
8286 lt_prog_compiler_wl='-Wl,'
8287 lt_prog_compiler_pic='--shared'
8288 lt_prog_compiler_static='--static'
8290 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8291 # Portland Group compilers (*not* the Pentium gcc compiler,
8292 # which looks to be a dead project)
8293 lt_prog_compiler_wl='-Wl,'
8294 lt_prog_compiler_pic='-fpic'
8295 lt_prog_compiler_static='-Bstatic'
8297 ccc*)
8298 lt_prog_compiler_wl='-Wl,'
8299 # All Alpha code is PIC.
8300 lt_prog_compiler_static='-non_shared'
8302 xl* | bgxl* | bgf* | mpixl*)
8303 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8304 lt_prog_compiler_wl='-Wl,'
8305 lt_prog_compiler_pic='-qpic'
8306 lt_prog_compiler_static='-qstaticlink'
8309 case `$CC -V 2>&1 | sed 5q` in
8310 *Sun\ F* | *Sun*Fortran*)
8311 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8312 lt_prog_compiler_pic='-KPIC'
8313 lt_prog_compiler_static='-Bstatic'
8314 lt_prog_compiler_wl=''
8316 *Sun\ C*)
8317 # Sun C 5.9
8318 lt_prog_compiler_pic='-KPIC'
8319 lt_prog_compiler_static='-Bstatic'
8320 lt_prog_compiler_wl='-Wl,'
8322 esac
8324 esac
8327 newsos6)
8328 lt_prog_compiler_pic='-KPIC'
8329 lt_prog_compiler_static='-Bstatic'
8332 *nto* | *qnx*)
8333 # QNX uses GNU C++, but need to define -shared option too, otherwise
8334 # it will coredump.
8335 lt_prog_compiler_pic='-fPIC -shared'
8338 osf3* | osf4* | osf5*)
8339 lt_prog_compiler_wl='-Wl,'
8340 # All OSF/1 code is PIC.
8341 lt_prog_compiler_static='-non_shared'
8344 rdos*)
8345 lt_prog_compiler_static='-non_shared'
8348 solaris*)
8349 lt_prog_compiler_pic='-KPIC'
8350 lt_prog_compiler_static='-Bstatic'
8351 case $cc_basename in
8352 f77* | f90* | f95*)
8353 lt_prog_compiler_wl='-Qoption ld ';;
8355 lt_prog_compiler_wl='-Wl,';;
8356 esac
8359 sunos4*)
8360 lt_prog_compiler_wl='-Qoption ld '
8361 lt_prog_compiler_pic='-PIC'
8362 lt_prog_compiler_static='-Bstatic'
8365 sysv4 | sysv4.2uw2* | sysv4.3*)
8366 lt_prog_compiler_wl='-Wl,'
8367 lt_prog_compiler_pic='-KPIC'
8368 lt_prog_compiler_static='-Bstatic'
8371 sysv4*MP*)
8372 if test -d /usr/nec ;then
8373 lt_prog_compiler_pic='-Kconform_pic'
8374 lt_prog_compiler_static='-Bstatic'
8378 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8379 lt_prog_compiler_wl='-Wl,'
8380 lt_prog_compiler_pic='-KPIC'
8381 lt_prog_compiler_static='-Bstatic'
8384 unicos*)
8385 lt_prog_compiler_wl='-Wl,'
8386 lt_prog_compiler_can_build_shared=no
8389 uts4*)
8390 lt_prog_compiler_pic='-pic'
8391 lt_prog_compiler_static='-Bstatic'
8395 lt_prog_compiler_can_build_shared=no
8397 esac
8400 case $host_os in
8401 # For platforms which do not support PIC, -DPIC is meaningless:
8402 *djgpp*)
8403 lt_prog_compiler_pic=
8406 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8408 esac
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8410 $as_echo "$lt_prog_compiler_pic" >&6; }
8418 # Check to make sure the PIC flag actually works.
8420 if test -n "$lt_prog_compiler_pic"; then
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8422 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8423 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8424 $as_echo_n "(cached) " >&6
8425 else
8426 lt_cv_prog_compiler_pic_works=no
8427 ac_outfile=conftest.$ac_objext
8428 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8429 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8430 # Insert the option either (1) after the last *FLAGS variable, or
8431 # (2) before a word containing "conftest.", or (3) at the end.
8432 # Note that $ac_compile itself does not contain backslashes and begins
8433 # with a dollar sign (not a hyphen), so the echo should work correctly.
8434 # The option is referenced via a variable to avoid confusing sed.
8435 lt_compile=`echo "$ac_compile" | $SED \
8436 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8437 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8438 -e 's:$: $lt_compiler_flag:'`
8439 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8440 (eval "$lt_compile" 2>conftest.err)
8441 ac_status=$?
8442 cat conftest.err >&5
8443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444 if (exit $ac_status) && test -s "$ac_outfile"; then
8445 # The compiler can only warn and ignore the option if not recognized
8446 # So say no if there are warnings other than the usual output.
8447 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8448 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8449 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8450 lt_cv_prog_compiler_pic_works=yes
8453 $RM conftest*
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8457 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8459 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8460 case $lt_prog_compiler_pic in
8461 "" | " "*) ;;
8462 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8463 esac
8464 else
8465 lt_prog_compiler_pic=
8466 lt_prog_compiler_can_build_shared=no
8477 # Check to make sure the static flag actually works.
8479 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8481 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8482 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8483 $as_echo_n "(cached) " >&6
8484 else
8485 lt_cv_prog_compiler_static_works=no
8486 save_LDFLAGS="$LDFLAGS"
8487 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8488 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8489 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8490 # The linker can only warn and ignore the option if not recognized
8491 # So say no if there are warnings
8492 if test -s conftest.err; then
8493 # Append any errors to the config.log.
8494 cat conftest.err 1>&5
8495 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8496 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8497 if diff conftest.exp conftest.er2 >/dev/null; then
8498 lt_cv_prog_compiler_static_works=yes
8500 else
8501 lt_cv_prog_compiler_static_works=yes
8504 $RM -r conftest*
8505 LDFLAGS="$save_LDFLAGS"
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8509 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8511 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8513 else
8514 lt_prog_compiler_static=
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8524 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8525 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8526 $as_echo_n "(cached) " >&6
8527 else
8528 lt_cv_prog_compiler_c_o=no
8529 $RM -r conftest 2>/dev/null
8530 mkdir conftest
8531 cd conftest
8532 mkdir out
8533 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8535 lt_compiler_flag="-o out/conftest2.$ac_objext"
8536 # Insert the option either (1) after the last *FLAGS variable, or
8537 # (2) before a word containing "conftest.", or (3) at the end.
8538 # Note that $ac_compile itself does not contain backslashes and begins
8539 # with a dollar sign (not a hyphen), so the echo should work correctly.
8540 lt_compile=`echo "$ac_compile" | $SED \
8541 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8542 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8543 -e 's:$: $lt_compiler_flag:'`
8544 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8545 (eval "$lt_compile" 2>out/conftest.err)
8546 ac_status=$?
8547 cat out/conftest.err >&5
8548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8550 then
8551 # The compiler can only warn and ignore the option if not recognized
8552 # So say no if there are warnings
8553 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8554 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8555 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8556 lt_cv_prog_compiler_c_o=yes
8559 chmod u+w . 2>&5
8560 $RM conftest*
8561 # SGI C++ compiler will create directory out/ii_files/ for
8562 # template instantiation
8563 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8564 $RM out/* && rmdir out
8565 cd ..
8566 $RM -r conftest
8567 $RM conftest*
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8571 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8579 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8580 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8581 $as_echo_n "(cached) " >&6
8582 else
8583 lt_cv_prog_compiler_c_o=no
8584 $RM -r conftest 2>/dev/null
8585 mkdir conftest
8586 cd conftest
8587 mkdir out
8588 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8590 lt_compiler_flag="-o out/conftest2.$ac_objext"
8591 # Insert the option either (1) after the last *FLAGS variable, or
8592 # (2) before a word containing "conftest.", or (3) at the end.
8593 # Note that $ac_compile itself does not contain backslashes and begins
8594 # with a dollar sign (not a hyphen), so the echo should work correctly.
8595 lt_compile=`echo "$ac_compile" | $SED \
8596 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8597 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8598 -e 's:$: $lt_compiler_flag:'`
8599 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8600 (eval "$lt_compile" 2>out/conftest.err)
8601 ac_status=$?
8602 cat out/conftest.err >&5
8603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8605 then
8606 # The compiler can only warn and ignore the option if not recognized
8607 # So say no if there are warnings
8608 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8609 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8610 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8611 lt_cv_prog_compiler_c_o=yes
8614 chmod u+w . 2>&5
8615 $RM conftest*
8616 # SGI C++ compiler will create directory out/ii_files/ for
8617 # template instantiation
8618 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8619 $RM out/* && rmdir out
8620 cd ..
8621 $RM -r conftest
8622 $RM conftest*
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8626 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8631 hard_links="nottested"
8632 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8633 # do not overwrite the value of need_locks provided by the user
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8635 $as_echo_n "checking if we can lock with hard links... " >&6; }
8636 hard_links=yes
8637 $RM conftest*
8638 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8639 touch conftest.a
8640 ln conftest.a conftest.b 2>&5 || hard_links=no
8641 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8643 $as_echo "$hard_links" >&6; }
8644 if test "$hard_links" = no; then
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8646 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8647 need_locks=warn
8649 else
8650 need_locks=no
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8659 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8661 runpath_var=
8662 allow_undefined_flag=
8663 always_export_symbols=no
8664 archive_cmds=
8665 archive_expsym_cmds=
8666 compiler_needs_object=no
8667 enable_shared_with_static_runtimes=no
8668 export_dynamic_flag_spec=
8669 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8670 hardcode_automatic=no
8671 hardcode_direct=no
8672 hardcode_direct_absolute=no
8673 hardcode_libdir_flag_spec=
8674 hardcode_libdir_flag_spec_ld=
8675 hardcode_libdir_separator=
8676 hardcode_minus_L=no
8677 hardcode_shlibpath_var=unsupported
8678 inherit_rpath=no
8679 link_all_deplibs=unknown
8680 module_cmds=
8681 module_expsym_cmds=
8682 old_archive_from_new_cmds=
8683 old_archive_from_expsyms_cmds=
8684 thread_safe_flag_spec=
8685 whole_archive_flag_spec=
8686 # include_expsyms should be a list of space-separated symbols to be *always*
8687 # included in the symbol list
8688 include_expsyms=
8689 # exclude_expsyms can be an extended regexp of symbols to exclude
8690 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8691 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8692 # as well as any symbol that contains `d'.
8693 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8694 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8695 # platforms (ab)use it in PIC code, but their linkers get confused if
8696 # the symbol is explicitly referenced. Since portable code cannot
8697 # rely on this symbol name, it's probably fine to never include it in
8698 # preloaded symbol tables.
8699 # Exclude shared library initialization/finalization symbols.
8700 extract_expsyms_cmds=
8702 case $host_os in
8703 cygwin* | mingw* | pw32* | cegcc*)
8704 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8705 # When not using gcc, we currently assume that we are using
8706 # Microsoft Visual C++.
8707 if test "$GCC" != yes; then
8708 with_gnu_ld=no
8711 interix*)
8712 # we just hope/assume this is gcc and not c89 (= MSVC++)
8713 with_gnu_ld=yes
8715 openbsd*)
8716 with_gnu_ld=no
8718 esac
8720 ld_shlibs=yes
8722 # On some targets, GNU ld is compatible enough with the native linker
8723 # that we're better off using the native interface for both.
8724 lt_use_gnu_ld_interface=no
8725 if test "$with_gnu_ld" = yes; then
8726 case $host_os in
8727 aix*)
8728 # The AIX port of GNU ld has always aspired to compatibility
8729 # with the native linker. However, as the warning in the GNU ld
8730 # block says, versions before 2.19.5* couldn't really create working
8731 # shared libraries, regardless of the interface used.
8732 case `$LD -v 2>&1` in
8733 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8734 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8735 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8737 lt_use_gnu_ld_interface=yes
8739 esac
8742 lt_use_gnu_ld_interface=yes
8744 esac
8747 if test "$lt_use_gnu_ld_interface" = yes; then
8748 # If archive_cmds runs LD, not CC, wlarc should be empty
8749 wlarc='${wl}'
8751 # Set some defaults for GNU ld with shared library support. These
8752 # are reset later if shared libraries are not supported. Putting them
8753 # here allows them to be overridden if necessary.
8754 runpath_var=LD_RUN_PATH
8755 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8756 export_dynamic_flag_spec='${wl}--export-dynamic'
8757 # ancient GNU ld didn't support --whole-archive et. al.
8758 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8759 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8760 else
8761 whole_archive_flag_spec=
8763 supports_anon_versioning=no
8764 case `$LD -v 2>&1` in
8765 *GNU\ gold*) supports_anon_versioning=yes ;;
8766 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8767 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8768 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8769 *\ 2.11.*) ;; # other 2.11 versions
8770 *) supports_anon_versioning=yes ;;
8771 esac
8773 # See if GNU ld supports shared libraries.
8774 case $host_os in
8775 aix[3-9]*)
8776 # On AIX/PPC, the GNU linker is very broken
8777 if test "$host_cpu" != ia64; then
8778 ld_shlibs=no
8779 cat <<_LT_EOF 1>&2
8781 *** Warning: the GNU linker, at least up to release 2.19, is reported
8782 *** to be unable to reliably create shared libraries on AIX.
8783 *** Therefore, libtool is disabling shared libraries support. If you
8784 *** really care for shared libraries, you may want to install binutils
8785 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8786 *** You will then need to restart the configuration process.
8788 _LT_EOF
8792 amigaos*)
8793 case $host_cpu in
8794 powerpc)
8795 # see comment about AmigaOS4 .so support
8796 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8797 archive_expsym_cmds=''
8799 m68k)
8800 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)'
8801 hardcode_libdir_flag_spec='-L$libdir'
8802 hardcode_minus_L=yes
8804 esac
8807 beos*)
8808 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8809 allow_undefined_flag=unsupported
8810 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8811 # support --undefined. This deserves some investigation. FIXME
8812 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8813 else
8814 ld_shlibs=no
8818 cygwin* | mingw* | pw32* | cegcc*)
8819 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8820 # as there is no search path for DLLs.
8821 hardcode_libdir_flag_spec='-L$libdir'
8822 export_dynamic_flag_spec='${wl}--export-all-symbols'
8823 allow_undefined_flag=unsupported
8824 always_export_symbols=no
8825 enable_shared_with_static_runtimes=yes
8826 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8828 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8829 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8830 # If the export-symbols file already is a .def file (1st line
8831 # is EXPORTS), use it as is; otherwise, prepend...
8832 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8833 cp $export_symbols $output_objdir/$soname.def;
8834 else
8835 echo EXPORTS > $output_objdir/$soname.def;
8836 cat $export_symbols >> $output_objdir/$soname.def;
8838 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8839 else
8840 ld_shlibs=no
8844 haiku*)
8845 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8846 link_all_deplibs=yes
8849 interix[3-9]*)
8850 hardcode_direct=no
8851 hardcode_shlibpath_var=no
8852 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8853 export_dynamic_flag_spec='${wl}-E'
8854 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8855 # Instead, shared libraries are loaded at an image base (0x10000000 by
8856 # default) and relocated if they conflict, which is a slow very memory
8857 # consuming and fragmenting process. To avoid this, we pick a random,
8858 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8859 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8860 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8861 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'
8864 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8865 tmp_diet=no
8866 if test "$host_os" = linux-dietlibc; then
8867 case $cc_basename in
8868 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8869 esac
8871 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8872 && test "$tmp_diet" = no
8873 then
8874 tmp_addflag=
8875 tmp_sharedflag='-shared'
8876 case $cc_basename,$host_cpu in
8877 pgcc*) # Portland Group C compiler
8878 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'
8879 tmp_addflag=' $pic_flag'
8881 pgf77* | pgf90* | pgf95* | pgfortran*)
8882 # Portland Group f77 and f90 compilers
8883 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'
8884 tmp_addflag=' $pic_flag -Mnomain' ;;
8885 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8886 tmp_addflag=' -i_dynamic' ;;
8887 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8888 tmp_addflag=' -i_dynamic -nofor_main' ;;
8889 ifc* | ifort*) # Intel Fortran compiler
8890 tmp_addflag=' -nofor_main' ;;
8891 lf95*) # Lahey Fortran 8.1
8892 whole_archive_flag_spec=
8893 tmp_sharedflag='--shared' ;;
8894 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8895 tmp_sharedflag='-qmkshrobj'
8896 tmp_addflag= ;;
8897 nvcc*) # Cuda Compiler Driver 2.2
8898 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'
8899 compiler_needs_object=yes
8901 esac
8902 case `$CC -V 2>&1 | sed 5q` in
8903 *Sun\ C*) # Sun C 5.9
8904 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'
8905 compiler_needs_object=yes
8906 tmp_sharedflag='-G' ;;
8907 *Sun\ F*) # Sun Fortran 8.3
8908 tmp_sharedflag='-G' ;;
8909 esac
8910 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8912 if test "x$supports_anon_versioning" = xyes; then
8913 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8914 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8915 echo "local: *; };" >> $output_objdir/$libname.ver~
8916 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8919 case $cc_basename in
8920 xlf* | bgf* | bgxlf* | mpixlf*)
8921 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8922 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8923 hardcode_libdir_flag_spec=
8924 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8925 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8926 if test "x$supports_anon_versioning" = xyes; then
8927 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8928 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8929 echo "local: *; };" >> $output_objdir/$libname.ver~
8930 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8933 esac
8934 else
8935 ld_shlibs=no
8939 netbsd*)
8940 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8941 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8942 wlarc=
8943 else
8944 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8945 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8949 solaris*)
8950 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8951 ld_shlibs=no
8952 cat <<_LT_EOF 1>&2
8954 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8955 *** create shared libraries on Solaris systems. Therefore, libtool
8956 *** is disabling shared libraries support. We urge you to upgrade GNU
8957 *** binutils to release 2.9.1 or newer. Another option is to modify
8958 *** your PATH or compiler configuration so that the native linker is
8959 *** used, and then restart.
8961 _LT_EOF
8962 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8963 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8964 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8965 else
8966 ld_shlibs=no
8970 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8971 case `$LD -v 2>&1` in
8972 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8973 ld_shlibs=no
8974 cat <<_LT_EOF 1>&2
8976 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8977 *** reliably create shared libraries on SCO systems. Therefore, libtool
8978 *** is disabling shared libraries support. We urge you to upgrade GNU
8979 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8980 *** your PATH or compiler configuration so that the native linker is
8981 *** used, and then restart.
8983 _LT_EOF
8986 # For security reasons, it is highly recommended that you always
8987 # use absolute paths for naming shared libraries, and exclude the
8988 # DT_RUNPATH tag from executables and libraries. But doing so
8989 # requires that you compile everything twice, which is a pain.
8990 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8991 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8992 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8993 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8994 else
8995 ld_shlibs=no
8998 esac
9001 sunos4*)
9002 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9003 wlarc=
9004 hardcode_direct=yes
9005 hardcode_shlibpath_var=no
9009 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
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
9018 if test "$ld_shlibs" = no; then
9019 runpath_var=
9020 hardcode_libdir_flag_spec=
9021 export_dynamic_flag_spec=
9022 whole_archive_flag_spec=
9024 else
9025 # PORTME fill in a description of your system's linker (not GNU ld)
9026 case $host_os in
9027 aix3*)
9028 allow_undefined_flag=unsupported
9029 always_export_symbols=yes
9030 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'
9031 # Note: this linker hardcodes the directories in LIBPATH if there
9032 # are no directories specified by -L.
9033 hardcode_minus_L=yes
9034 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9035 # Neither direct hardcoding nor static linking is supported with a
9036 # broken collect2.
9037 hardcode_direct=unsupported
9041 aix[4-9]*)
9042 if test "$host_cpu" = ia64; then
9043 # On IA64, the linker does run time linking by default, so we don't
9044 # have to do anything special.
9045 aix_use_runtimelinking=no
9046 exp_sym_flag='-Bexport'
9047 no_entry_flag=""
9048 else
9049 # If we're using GNU nm, then we don't want the "-C" option.
9050 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9051 # Also, AIX nm treats weak defined symbols like other global
9052 # defined symbols, whereas GNU nm marks them as "W".
9053 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9054 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'
9055 else
9056 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'
9058 aix_use_runtimelinking=no
9060 # Test if we are trying to use run time linking or normal
9061 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9062 # need to do runtime linking.
9063 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9064 for ld_flag in $LDFLAGS; do
9065 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9066 aix_use_runtimelinking=yes
9067 break
9069 done
9071 esac
9073 exp_sym_flag='-bexport'
9074 no_entry_flag='-bnoentry'
9077 # When large executables or shared objects are built, AIX ld can
9078 # have problems creating the table of contents. If linking a library
9079 # or program results in "error TOC overflow" add -mminimal-toc to
9080 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9081 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9083 archive_cmds=''
9084 hardcode_direct=yes
9085 hardcode_direct_absolute=yes
9086 hardcode_libdir_separator=':'
9087 link_all_deplibs=yes
9088 file_list_spec='${wl}-f,'
9090 if test "$GCC" = yes; then
9091 case $host_os in aix4.[012]|aix4.[012].*)
9092 # We only want to do this on AIX 4.2 and lower, the check
9093 # below for broken collect2 doesn't work under 4.3+
9094 collect2name=`${CC} -print-prog-name=collect2`
9095 if test -f "$collect2name" &&
9096 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9097 then
9098 # We have reworked collect2
9100 else
9101 # We have old collect2
9102 hardcode_direct=unsupported
9103 # It fails to find uninstalled libraries when the uninstalled
9104 # path is not listed in the libpath. Setting hardcode_minus_L
9105 # to unsupported forces relinking
9106 hardcode_minus_L=yes
9107 hardcode_libdir_flag_spec='-L$libdir'
9108 hardcode_libdir_separator=
9111 esac
9112 shared_flag='-shared'
9113 if test "$aix_use_runtimelinking" = yes; then
9114 shared_flag="$shared_flag "'${wl}-G'
9116 else
9117 # not using gcc
9118 if test "$host_cpu" = ia64; then
9119 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9120 # chokes on -Wl,-G. The following line is correct:
9121 shared_flag='-G'
9122 else
9123 if test "$aix_use_runtimelinking" = yes; then
9124 shared_flag='${wl}-G'
9125 else
9126 shared_flag='${wl}-bM:SRE'
9131 export_dynamic_flag_spec='${wl}-bexpall'
9132 # It seems that -bexpall does not export symbols beginning with
9133 # underscore (_), so it is better to generate a list of symbols to export.
9134 always_export_symbols=yes
9135 if test "$aix_use_runtimelinking" = yes; then
9136 # Warning - without using the other runtime loading flags (-brtl),
9137 # -berok will link without error, but may produce a broken library.
9138 allow_undefined_flag='-berok'
9139 # Determine the default libpath from the value encoded in an
9140 # empty executable.
9141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9142 /* end confdefs.h. */
9145 main ()
9149 return 0;
9151 _ACEOF
9152 if ac_fn_c_try_link "$LINENO"; then :
9154 lt_aix_libpath_sed='
9155 /Import File Strings/,/^$/ {
9156 /^0/ {
9157 s/^0 *\(.*\)$/\1/
9161 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9162 # Check for a 64-bit object if we didn't find anything.
9163 if test -z "$aix_libpath"; then
9164 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9167 rm -f core conftest.err conftest.$ac_objext \
9168 conftest$ac_exeext conftest.$ac_ext
9169 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9171 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9172 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"
9173 else
9174 if test "$host_cpu" = ia64; then
9175 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9176 allow_undefined_flag="-z nodefs"
9177 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"
9178 else
9179 # Determine the default libpath from the value encoded in an
9180 # empty executable.
9181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9182 /* end confdefs.h. */
9185 main ()
9189 return 0;
9191 _ACEOF
9192 if ac_fn_c_try_link "$LINENO"; then :
9194 lt_aix_libpath_sed='
9195 /Import File Strings/,/^$/ {
9196 /^0/ {
9197 s/^0 *\(.*\)$/\1/
9201 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9202 # Check for a 64-bit object if we didn't find anything.
9203 if test -z "$aix_libpath"; then
9204 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9207 rm -f core conftest.err conftest.$ac_objext \
9208 conftest$ac_exeext conftest.$ac_ext
9209 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9211 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9212 # Warning - without using the other run time loading flags,
9213 # -berok will link without error, but may produce a broken library.
9214 no_undefined_flag=' ${wl}-bernotok'
9215 allow_undefined_flag=' ${wl}-berok'
9216 if test "$with_gnu_ld" = yes; then
9217 # We only use this code for GNU lds that support --whole-archive.
9218 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9219 else
9220 # Exported symbols can be pulled into shared objects from archives
9221 whole_archive_flag_spec='$convenience'
9223 archive_cmds_need_lc=yes
9224 # This is similar to how AIX traditionally builds its shared libraries.
9225 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'
9230 amigaos*)
9231 case $host_cpu in
9232 powerpc)
9233 # see comment about AmigaOS4 .so support
9234 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9235 archive_expsym_cmds=''
9237 m68k)
9238 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)'
9239 hardcode_libdir_flag_spec='-L$libdir'
9240 hardcode_minus_L=yes
9242 esac
9245 bsdi[45]*)
9246 export_dynamic_flag_spec=-rdynamic
9249 cygwin* | mingw* | pw32* | cegcc*)
9250 # When not using gcc, we currently assume that we are using
9251 # Microsoft Visual C++.
9252 # hardcode_libdir_flag_spec is actually meaningless, as there is
9253 # no search path for DLLs.
9254 hardcode_libdir_flag_spec=' '
9255 allow_undefined_flag=unsupported
9256 # Tell ltmain to make .lib files, not .a files.
9257 libext=lib
9258 # Tell ltmain to make .dll files, not .so files.
9259 shrext_cmds=".dll"
9260 # FIXME: Setting linknames here is a bad hack.
9261 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9262 # The linker will automatically build a .lib file if we build a DLL.
9263 old_archive_from_new_cmds='true'
9264 # FIXME: Should let the user specify the lib program.
9265 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9266 fix_srcfile_path='`cygpath -w "$srcfile"`'
9267 enable_shared_with_static_runtimes=yes
9270 darwin* | rhapsody*)
9273 archive_cmds_need_lc=no
9274 hardcode_direct=no
9275 hardcode_automatic=yes
9276 hardcode_shlibpath_var=unsupported
9277 if test "$lt_cv_ld_force_load" = "yes"; then
9278 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\"`'
9279 else
9280 whole_archive_flag_spec=''
9282 link_all_deplibs=yes
9283 allow_undefined_flag="$_lt_dar_allow_undefined"
9284 case $cc_basename in
9285 ifort*) _lt_dar_can_shared=yes ;;
9286 *) _lt_dar_can_shared=$GCC ;;
9287 esac
9288 if test "$_lt_dar_can_shared" = "yes"; then
9289 output_verbose_link_cmd=func_echo_all
9290 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9291 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9292 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}"
9293 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}"
9295 else
9296 ld_shlibs=no
9301 dgux*)
9302 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9303 hardcode_libdir_flag_spec='-L$libdir'
9304 hardcode_shlibpath_var=no
9307 freebsd1*)
9308 ld_shlibs=no
9311 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9312 # support. Future versions do this automatically, but an explicit c++rt0.o
9313 # does not break anything, and helps significantly (at the cost of a little
9314 # extra space).
9315 freebsd2.2*)
9316 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9317 hardcode_libdir_flag_spec='-R$libdir'
9318 hardcode_direct=yes
9319 hardcode_shlibpath_var=no
9322 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9323 freebsd2*)
9324 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9325 hardcode_direct=yes
9326 hardcode_minus_L=yes
9327 hardcode_shlibpath_var=no
9330 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9331 freebsd* | dragonfly*)
9332 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9333 hardcode_libdir_flag_spec='-R$libdir'
9334 hardcode_direct=yes
9335 hardcode_shlibpath_var=no
9338 hpux9*)
9339 if test "$GCC" = yes; then
9340 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'
9341 else
9342 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'
9344 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9345 hardcode_libdir_separator=:
9346 hardcode_direct=yes
9348 # hardcode_minus_L: Not really in the search PATH,
9349 # but as the default location of the library.
9350 hardcode_minus_L=yes
9351 export_dynamic_flag_spec='${wl}-E'
9354 hpux10*)
9355 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9356 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9357 else
9358 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9360 if test "$with_gnu_ld" = no; then
9361 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9362 hardcode_libdir_flag_spec_ld='+b $libdir'
9363 hardcode_libdir_separator=:
9364 hardcode_direct=yes
9365 hardcode_direct_absolute=yes
9366 export_dynamic_flag_spec='${wl}-E'
9367 # hardcode_minus_L: Not really in the search PATH,
9368 # but as the default location of the library.
9369 hardcode_minus_L=yes
9373 hpux11*)
9374 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9375 case $host_cpu in
9376 hppa*64*)
9377 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9379 ia64*)
9380 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9383 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9385 esac
9386 else
9387 case $host_cpu in
9388 hppa*64*)
9389 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9391 ia64*)
9392 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9396 # Older versions of the 11.00 compiler do not understand -b yet
9397 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9399 $as_echo_n "checking if $CC understands -b... " >&6; }
9400 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9401 $as_echo_n "(cached) " >&6
9402 else
9403 lt_cv_prog_compiler__b=no
9404 save_LDFLAGS="$LDFLAGS"
9405 LDFLAGS="$LDFLAGS -b"
9406 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9407 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9408 # The linker can only warn and ignore the option if not recognized
9409 # So say no if there are warnings
9410 if test -s conftest.err; then
9411 # Append any errors to the config.log.
9412 cat conftest.err 1>&5
9413 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9414 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9415 if diff conftest.exp conftest.er2 >/dev/null; then
9416 lt_cv_prog_compiler__b=yes
9418 else
9419 lt_cv_prog_compiler__b=yes
9422 $RM -r conftest*
9423 LDFLAGS="$save_LDFLAGS"
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9427 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9429 if test x"$lt_cv_prog_compiler__b" = xyes; then
9430 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9431 else
9432 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9436 esac
9438 if test "$with_gnu_ld" = no; then
9439 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9440 hardcode_libdir_separator=:
9442 case $host_cpu in
9443 hppa*64*|ia64*)
9444 hardcode_direct=no
9445 hardcode_shlibpath_var=no
9448 hardcode_direct=yes
9449 hardcode_direct_absolute=yes
9450 export_dynamic_flag_spec='${wl}-E'
9452 # hardcode_minus_L: Not really in the search PATH,
9453 # but as the default location of the library.
9454 hardcode_minus_L=yes
9456 esac
9460 irix5* | irix6* | nonstopux*)
9461 if test "$GCC" = yes; then
9462 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'
9463 # Try to use the -exported_symbol ld option, if it does not
9464 # work, assume that -exports_file does not work either and
9465 # implicitly export all symbols.
9466 save_LDFLAGS="$LDFLAGS"
9467 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9469 /* end confdefs.h. */
9470 int foo(void) {}
9471 _ACEOF
9472 if ac_fn_c_try_link "$LINENO"; then :
9473 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'
9476 rm -f core conftest.err conftest.$ac_objext \
9477 conftest$ac_exeext conftest.$ac_ext
9478 LDFLAGS="$save_LDFLAGS"
9479 else
9480 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'
9481 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'
9483 archive_cmds_need_lc='no'
9484 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9485 hardcode_libdir_separator=:
9486 inherit_rpath=yes
9487 link_all_deplibs=yes
9490 netbsd*)
9491 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9492 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9493 else
9494 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9496 hardcode_libdir_flag_spec='-R$libdir'
9497 hardcode_direct=yes
9498 hardcode_shlibpath_var=no
9501 newsos6)
9502 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9503 hardcode_direct=yes
9504 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9505 hardcode_libdir_separator=:
9506 hardcode_shlibpath_var=no
9509 *nto* | *qnx*)
9512 openbsd*)
9513 if test -f /usr/libexec/ld.so; then
9514 hardcode_direct=yes
9515 hardcode_shlibpath_var=no
9516 hardcode_direct_absolute=yes
9517 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9518 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9519 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9520 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9521 export_dynamic_flag_spec='${wl}-E'
9522 else
9523 case $host_os in
9524 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9525 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9526 hardcode_libdir_flag_spec='-R$libdir'
9529 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9530 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9532 esac
9534 else
9535 ld_shlibs=no
9539 os2*)
9540 hardcode_libdir_flag_spec='-L$libdir'
9541 hardcode_minus_L=yes
9542 allow_undefined_flag=unsupported
9543 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'
9544 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9547 osf3*)
9548 if test "$GCC" = yes; then
9549 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9550 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'
9551 else
9552 allow_undefined_flag=' -expect_unresolved \*'
9553 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'
9555 archive_cmds_need_lc='no'
9556 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9557 hardcode_libdir_separator=:
9560 osf4* | osf5*) # as osf3* with the addition of -msym flag
9561 if test "$GCC" = yes; then
9562 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9563 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'
9564 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9565 else
9566 allow_undefined_flag=' -expect_unresolved \*'
9567 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'
9568 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~
9569 $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'
9571 # Both c and cxx compiler support -rpath directly
9572 hardcode_libdir_flag_spec='-rpath $libdir'
9574 archive_cmds_need_lc='no'
9575 hardcode_libdir_separator=:
9578 solaris*)
9579 no_undefined_flag=' -z defs'
9580 if test "$GCC" = yes; then
9581 wlarc='${wl}'
9582 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9583 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9584 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9585 else
9586 case `$CC -V 2>&1` in
9587 *"Compilers 5.0"*)
9588 wlarc=''
9589 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9590 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9591 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9594 wlarc='${wl}'
9595 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9596 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9597 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9599 esac
9601 hardcode_libdir_flag_spec='-R$libdir'
9602 hardcode_shlibpath_var=no
9603 case $host_os in
9604 solaris2.[0-5] | solaris2.[0-5].*) ;;
9606 # The compiler driver will combine and reorder linker options,
9607 # but understands `-z linker_flag'. GCC discards it without `$wl',
9608 # but is careful enough not to reorder.
9609 # Supported since Solaris 2.6 (maybe 2.5.1?)
9610 if test "$GCC" = yes; then
9611 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9612 else
9613 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9616 esac
9617 link_all_deplibs=yes
9620 sunos4*)
9621 if test "x$host_vendor" = xsequent; then
9622 # Use $CC to link under sequent, because it throws in some extra .o
9623 # files that make .init and .fini sections work.
9624 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9625 else
9626 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9628 hardcode_libdir_flag_spec='-L$libdir'
9629 hardcode_direct=yes
9630 hardcode_minus_L=yes
9631 hardcode_shlibpath_var=no
9634 sysv4)
9635 case $host_vendor in
9636 sni)
9637 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9638 hardcode_direct=yes # is this really true???
9640 siemens)
9641 ## LD is ld it makes a PLAMLIB
9642 ## CC just makes a GrossModule.
9643 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9644 reload_cmds='$CC -r -o $output$reload_objs'
9645 hardcode_direct=no
9647 motorola)
9648 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9649 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9651 esac
9652 runpath_var='LD_RUN_PATH'
9653 hardcode_shlibpath_var=no
9656 sysv4.3*)
9657 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9658 hardcode_shlibpath_var=no
9659 export_dynamic_flag_spec='-Bexport'
9662 sysv4*MP*)
9663 if test -d /usr/nec; then
9664 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9665 hardcode_shlibpath_var=no
9666 runpath_var=LD_RUN_PATH
9667 hardcode_runpath_var=yes
9668 ld_shlibs=yes
9672 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9673 no_undefined_flag='${wl}-z,text'
9674 archive_cmds_need_lc=no
9675 hardcode_shlibpath_var=no
9676 runpath_var='LD_RUN_PATH'
9678 if test "$GCC" = yes; then
9679 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9680 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9681 else
9682 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9683 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9687 sysv5* | sco3.2v5* | sco5v6*)
9688 # Note: We can NOT use -z defs as we might desire, because we do not
9689 # link with -lc, and that would cause any symbols used from libc to
9690 # always be unresolved, which means just about no library would
9691 # ever link correctly. If we're not using GNU ld we use -z text
9692 # though, which does catch some bad symbols but isn't as heavy-handed
9693 # as -z defs.
9694 no_undefined_flag='${wl}-z,text'
9695 allow_undefined_flag='${wl}-z,nodefs'
9696 archive_cmds_need_lc=no
9697 hardcode_shlibpath_var=no
9698 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9699 hardcode_libdir_separator=':'
9700 link_all_deplibs=yes
9701 export_dynamic_flag_spec='${wl}-Bexport'
9702 runpath_var='LD_RUN_PATH'
9704 if test "$GCC" = yes; then
9705 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9706 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9707 else
9708 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9709 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9713 uts4*)
9714 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9715 hardcode_libdir_flag_spec='-L$libdir'
9716 hardcode_shlibpath_var=no
9720 ld_shlibs=no
9722 esac
9724 if test x$host_vendor = xsni; then
9725 case $host in
9726 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9727 export_dynamic_flag_spec='${wl}-Blargedynsym'
9729 esac
9733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9734 $as_echo "$ld_shlibs" >&6; }
9735 test "$ld_shlibs" = no && can_build_shared=no
9737 with_gnu_ld=$with_gnu_ld
9754 # Do we need to explicitly link libc?
9756 case "x$archive_cmds_need_lc" in
9757 x|xyes)
9758 # Assume -lc should be added
9759 archive_cmds_need_lc=yes
9761 if test "$enable_shared" = yes && test "$GCC" = yes; then
9762 case $archive_cmds in
9763 *'~'*)
9764 # FIXME: we may have to deal with multi-command sequences.
9766 '$CC '*)
9767 # Test whether the compiler implicitly links with -lc since on some
9768 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9769 # to ld, don't add -lc before -lgcc.
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9771 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9772 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9773 $as_echo_n "(cached) " >&6
9774 else
9775 $RM conftest*
9776 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9778 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9779 (eval $ac_compile) 2>&5
9780 ac_status=$?
9781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9782 test $ac_status = 0; } 2>conftest.err; then
9783 soname=conftest
9784 lib=conftest
9785 libobjs=conftest.$ac_objext
9786 deplibs=
9787 wl=$lt_prog_compiler_wl
9788 pic_flag=$lt_prog_compiler_pic
9789 compiler_flags=-v
9790 linker_flags=-v
9791 verstring=
9792 output_objdir=.
9793 libname=conftest
9794 lt_save_allow_undefined_flag=$allow_undefined_flag
9795 allow_undefined_flag=
9796 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9797 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9798 ac_status=$?
9799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9800 test $ac_status = 0; }
9801 then
9802 lt_cv_archive_cmds_need_lc=no
9803 else
9804 lt_cv_archive_cmds_need_lc=yes
9806 allow_undefined_flag=$lt_save_allow_undefined_flag
9807 else
9808 cat conftest.err 1>&5
9810 $RM conftest*
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9814 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9815 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9817 esac
9820 esac
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9979 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9981 if test "$GCC" = yes; then
9982 case $host_os in
9983 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9984 *) lt_awk_arg="/^libraries:/" ;;
9985 esac
9986 case $host_os in
9987 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9988 *) lt_sed_strip_eq="s,=/,/,g" ;;
9989 esac
9990 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9991 case $lt_search_path_spec in
9992 *\;*)
9993 # if the path contains ";" then we assume it to be the separator
9994 # otherwise default to the standard path separator (i.e. ":") - it is
9995 # assumed that no part of a normal pathname contains ";" but that should
9996 # okay in the real world where ";" in dirpaths is itself problematic.
9997 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10000 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10002 esac
10003 # Ok, now we have the path, separated by spaces, we can step through it
10004 # and add multilib dir if necessary.
10005 lt_tmp_lt_search_path_spec=
10006 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10007 for lt_sys_path in $lt_search_path_spec; do
10008 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10009 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10010 else
10011 test -d "$lt_sys_path" && \
10012 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10014 done
10015 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10016 BEGIN {RS=" "; FS="/|\n";} {
10017 lt_foo="";
10018 lt_count=0;
10019 for (lt_i = NF; lt_i > 0; lt_i--) {
10020 if ($lt_i != "" && $lt_i != ".") {
10021 if ($lt_i == "..") {
10022 lt_count++;
10023 } else {
10024 if (lt_count == 0) {
10025 lt_foo="/" $lt_i lt_foo;
10026 } else {
10027 lt_count--;
10032 if (lt_foo != "") { lt_freq[lt_foo]++; }
10033 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10035 # AWK program above erroneously prepends '/' to C:/dos/paths
10036 # for these hosts.
10037 case $host_os in
10038 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10039 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10040 esac
10041 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10042 else
10043 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10045 library_names_spec=
10046 libname_spec='lib$name'
10047 soname_spec=
10048 shrext_cmds=".so"
10049 postinstall_cmds=
10050 postuninstall_cmds=
10051 finish_cmds=
10052 finish_eval=
10053 shlibpath_var=
10054 shlibpath_overrides_runpath=unknown
10055 version_type=none
10056 dynamic_linker="$host_os ld.so"
10057 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10058 need_lib_prefix=unknown
10059 hardcode_into_libs=no
10061 # when you set need_version to no, make sure it does not cause -set_version
10062 # flags to be left without arguments
10063 need_version=unknown
10065 case $host_os in
10066 aix3*)
10067 version_type=linux
10068 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10069 shlibpath_var=LIBPATH
10071 # AIX 3 has no versioning support, so we append a major version to the name.
10072 soname_spec='${libname}${release}${shared_ext}$major'
10075 aix[4-9]*)
10076 version_type=linux
10077 need_lib_prefix=no
10078 need_version=no
10079 hardcode_into_libs=yes
10080 if test "$host_cpu" = ia64; then
10081 # AIX 5 supports IA64
10082 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10083 shlibpath_var=LD_LIBRARY_PATH
10084 else
10085 # With GCC up to 2.95.x, collect2 would create an import file
10086 # for dependence libraries. The import file would start with
10087 # the line `#! .'. This would cause the generated library to
10088 # depend on `.', always an invalid library. This was fixed in
10089 # development snapshots of GCC prior to 3.0.
10090 case $host_os in
10091 aix4 | aix4.[01] | aix4.[01].*)
10092 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10093 echo ' yes '
10094 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10096 else
10097 can_build_shared=no
10100 esac
10101 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10102 # soname into executable. Probably we can add versioning support to
10103 # collect2, so additional links can be useful in future.
10104 if test "$aix_use_runtimelinking" = yes; then
10105 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10106 # instead of lib<name>.a to let people know that these are not
10107 # typical AIX shared libraries.
10108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10109 else
10110 # We preserve .a as extension for shared libraries through AIX4.2
10111 # and later when we are not doing run time linking.
10112 library_names_spec='${libname}${release}.a $libname.a'
10113 soname_spec='${libname}${release}${shared_ext}$major'
10115 shlibpath_var=LIBPATH
10119 amigaos*)
10120 case $host_cpu in
10121 powerpc)
10122 # Since July 2007 AmigaOS4 officially supports .so libraries.
10123 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10126 m68k)
10127 library_names_spec='$libname.ixlibrary $libname.a'
10128 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10129 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'
10131 esac
10134 beos*)
10135 library_names_spec='${libname}${shared_ext}'
10136 dynamic_linker="$host_os ld.so"
10137 shlibpath_var=LIBRARY_PATH
10140 bsdi[45]*)
10141 version_type=linux
10142 need_version=no
10143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10144 soname_spec='${libname}${release}${shared_ext}$major'
10145 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10146 shlibpath_var=LD_LIBRARY_PATH
10147 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10148 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10149 # the default ld.so.conf also contains /usr/contrib/lib and
10150 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10151 # libtool to hard-code these into programs
10154 cygwin* | mingw* | pw32* | cegcc*)
10155 version_type=windows
10156 shrext_cmds=".dll"
10157 need_version=no
10158 need_lib_prefix=no
10160 case $GCC,$host_os in
10161 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10162 library_names_spec='$libname.dll.a'
10163 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10164 postinstall_cmds='base_file=`basename \${file}`~
10165 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10166 dldir=$destdir/`dirname \$dlpath`~
10167 test -d \$dldir || mkdir -p \$dldir~
10168 $install_prog $dir/$dlname \$dldir/$dlname~
10169 chmod a+x \$dldir/$dlname~
10170 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10171 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10173 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10174 dlpath=$dir/\$dldll~
10175 $RM \$dlpath'
10176 shlibpath_overrides_runpath=yes
10178 case $host_os in
10179 cygwin*)
10180 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10181 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10183 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10185 mingw* | cegcc*)
10186 # MinGW DLLs use traditional 'lib' prefix
10187 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10189 pw32*)
10190 # pw32 DLLs use 'pw' prefix rather than 'lib'
10191 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10193 esac
10197 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10199 esac
10200 dynamic_linker='Win32 ld.exe'
10201 # FIXME: first we should search . and the directory the executable is in
10202 shlibpath_var=PATH
10205 darwin* | rhapsody*)
10206 dynamic_linker="$host_os dyld"
10207 version_type=darwin
10208 need_lib_prefix=no
10209 need_version=no
10210 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10211 soname_spec='${libname}${release}${major}$shared_ext'
10212 shlibpath_overrides_runpath=yes
10213 shlibpath_var=DYLD_LIBRARY_PATH
10214 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10216 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10217 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10220 dgux*)
10221 version_type=linux
10222 need_lib_prefix=no
10223 need_version=no
10224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10225 soname_spec='${libname}${release}${shared_ext}$major'
10226 shlibpath_var=LD_LIBRARY_PATH
10229 freebsd1*)
10230 dynamic_linker=no
10233 freebsd* | dragonfly*)
10234 # DragonFly does not have aout. When/if they implement a new
10235 # versioning mechanism, adjust this.
10236 if test -x /usr/bin/objformat; then
10237 objformat=`/usr/bin/objformat`
10238 else
10239 case $host_os in
10240 freebsd[123]*) objformat=aout ;;
10241 *) objformat=elf ;;
10242 esac
10244 version_type=freebsd-$objformat
10245 case $version_type in
10246 freebsd-elf*)
10247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10248 need_version=no
10249 need_lib_prefix=no
10251 freebsd-*)
10252 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10253 need_version=yes
10255 esac
10256 shlibpath_var=LD_LIBRARY_PATH
10257 case $host_os in
10258 freebsd2*)
10259 shlibpath_overrides_runpath=yes
10261 freebsd3.[01]* | freebsdelf3.[01]*)
10262 shlibpath_overrides_runpath=yes
10263 hardcode_into_libs=yes
10265 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10266 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10267 shlibpath_overrides_runpath=no
10268 hardcode_into_libs=yes
10270 *) # from 4.6 on, and DragonFly
10271 shlibpath_overrides_runpath=yes
10272 hardcode_into_libs=yes
10274 esac
10277 gnu*)
10278 version_type=linux
10279 need_lib_prefix=no
10280 need_version=no
10281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10282 soname_spec='${libname}${release}${shared_ext}$major'
10283 shlibpath_var=LD_LIBRARY_PATH
10284 hardcode_into_libs=yes
10287 haiku*)
10288 version_type=linux
10289 need_lib_prefix=no
10290 need_version=no
10291 dynamic_linker="$host_os runtime_loader"
10292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10293 soname_spec='${libname}${release}${shared_ext}$major'
10294 shlibpath_var=LIBRARY_PATH
10295 shlibpath_overrides_runpath=yes
10296 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10297 hardcode_into_libs=yes
10300 hpux9* | hpux10* | hpux11*)
10301 # Give a soname corresponding to the major version so that dld.sl refuses to
10302 # link against other versions.
10303 version_type=sunos
10304 need_lib_prefix=no
10305 need_version=no
10306 case $host_cpu in
10307 ia64*)
10308 shrext_cmds='.so'
10309 hardcode_into_libs=yes
10310 dynamic_linker="$host_os dld.so"
10311 shlibpath_var=LD_LIBRARY_PATH
10312 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10314 soname_spec='${libname}${release}${shared_ext}$major'
10315 if test "X$HPUX_IA64_MODE" = X32; then
10316 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10317 else
10318 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10320 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10322 hppa*64*)
10323 shrext_cmds='.sl'
10324 hardcode_into_libs=yes
10325 dynamic_linker="$host_os dld.sl"
10326 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10327 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10329 soname_spec='${libname}${release}${shared_ext}$major'
10330 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10331 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10334 shrext_cmds='.sl'
10335 dynamic_linker="$host_os dld.sl"
10336 shlibpath_var=SHLIB_PATH
10337 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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'
10341 esac
10342 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10343 postinstall_cmds='chmod 555 $lib'
10344 # or fails outright, so override atomically:
10345 install_override_mode=555
10348 interix[3-9]*)
10349 version_type=linux
10350 need_lib_prefix=no
10351 need_version=no
10352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10353 soname_spec='${libname}${release}${shared_ext}$major'
10354 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10355 shlibpath_var=LD_LIBRARY_PATH
10356 shlibpath_overrides_runpath=no
10357 hardcode_into_libs=yes
10360 irix5* | irix6* | nonstopux*)
10361 case $host_os in
10362 nonstopux*) version_type=nonstopux ;;
10364 if test "$lt_cv_prog_gnu_ld" = yes; then
10365 version_type=linux
10366 else
10367 version_type=irix
10368 fi ;;
10369 esac
10370 need_lib_prefix=no
10371 need_version=no
10372 soname_spec='${libname}${release}${shared_ext}$major'
10373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10374 case $host_os in
10375 irix5* | nonstopux*)
10376 libsuff= shlibsuff=
10379 case $LD in # libtool.m4 will add one of these switches to LD
10380 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10381 libsuff= shlibsuff= libmagic=32-bit;;
10382 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10383 libsuff=32 shlibsuff=N32 libmagic=N32;;
10384 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10385 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10386 *) libsuff= shlibsuff= libmagic=never-match;;
10387 esac
10389 esac
10390 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10391 shlibpath_overrides_runpath=no
10392 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10393 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10394 hardcode_into_libs=yes
10397 # No shared lib support for Linux oldld, aout, or coff.
10398 linux*oldld* | linux*aout* | linux*coff*)
10399 dynamic_linker=no
10402 # This must be Linux ELF.
10403 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10404 version_type=linux
10405 need_lib_prefix=no
10406 need_version=no
10407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10408 soname_spec='${libname}${release}${shared_ext}$major'
10409 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10410 shlibpath_var=LD_LIBRARY_PATH
10411 shlibpath_overrides_runpath=no
10413 # Some binutils ld are patched to set DT_RUNPATH
10414 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10415 $as_echo_n "(cached) " >&6
10416 else
10417 lt_cv_shlibpath_overrides_runpath=no
10418 save_LDFLAGS=$LDFLAGS
10419 save_libdir=$libdir
10420 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10421 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10423 /* end confdefs.h. */
10426 main ()
10430 return 0;
10432 _ACEOF
10433 if ac_fn_c_try_link "$LINENO"; then :
10434 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10435 lt_cv_shlibpath_overrides_runpath=yes
10438 rm -f core conftest.err conftest.$ac_objext \
10439 conftest$ac_exeext conftest.$ac_ext
10440 LDFLAGS=$save_LDFLAGS
10441 libdir=$save_libdir
10445 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10447 # This implies no fast_install, which is unacceptable.
10448 # Some rework will be needed to allow for fast_install
10449 # before this can be enabled.
10450 hardcode_into_libs=yes
10452 # Append ld.so.conf contents to the search path
10453 if test -f /etc/ld.so.conf; then
10454 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' ' '`
10455 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10458 # We used to test for /lib/ld.so.1 and disable shared libraries on
10459 # powerpc, because MkLinux only supported shared libraries with the
10460 # GNU dynamic linker. Since this was broken with cross compilers,
10461 # most powerpc-linux boxes support dynamic linking these days and
10462 # people can always --disable-shared, the test was removed, and we
10463 # assume the GNU/Linux dynamic linker is in use.
10464 dynamic_linker='GNU/Linux ld.so'
10467 netbsd*)
10468 version_type=sunos
10469 need_lib_prefix=no
10470 need_version=no
10471 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10473 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10474 dynamic_linker='NetBSD (a.out) ld.so'
10475 else
10476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10477 soname_spec='${libname}${release}${shared_ext}$major'
10478 dynamic_linker='NetBSD ld.elf_so'
10480 shlibpath_var=LD_LIBRARY_PATH
10481 shlibpath_overrides_runpath=yes
10482 hardcode_into_libs=yes
10485 newsos6)
10486 version_type=linux
10487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10488 shlibpath_var=LD_LIBRARY_PATH
10489 shlibpath_overrides_runpath=yes
10492 *nto* | *qnx*)
10493 version_type=qnx
10494 need_lib_prefix=no
10495 need_version=no
10496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10497 soname_spec='${libname}${release}${shared_ext}$major'
10498 shlibpath_var=LD_LIBRARY_PATH
10499 shlibpath_overrides_runpath=no
10500 hardcode_into_libs=yes
10501 dynamic_linker='ldqnx.so'
10504 openbsd*)
10505 version_type=sunos
10506 sys_lib_dlsearch_path_spec="/usr/lib"
10507 need_lib_prefix=no
10508 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10509 case $host_os in
10510 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10511 *) need_version=no ;;
10512 esac
10513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10514 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10515 shlibpath_var=LD_LIBRARY_PATH
10516 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10517 case $host_os in
10518 openbsd2.[89] | openbsd2.[89].*)
10519 shlibpath_overrides_runpath=no
10522 shlibpath_overrides_runpath=yes
10524 esac
10525 else
10526 shlibpath_overrides_runpath=yes
10530 os2*)
10531 libname_spec='$name'
10532 shrext_cmds=".dll"
10533 need_lib_prefix=no
10534 library_names_spec='$libname${shared_ext} $libname.a'
10535 dynamic_linker='OS/2 ld.exe'
10536 shlibpath_var=LIBPATH
10539 osf3* | osf4* | osf5*)
10540 version_type=osf
10541 need_lib_prefix=no
10542 need_version=no
10543 soname_spec='${libname}${release}${shared_ext}$major'
10544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10545 shlibpath_var=LD_LIBRARY_PATH
10546 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10547 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10550 rdos*)
10551 dynamic_linker=no
10554 solaris*)
10555 version_type=linux
10556 need_lib_prefix=no
10557 need_version=no
10558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10559 soname_spec='${libname}${release}${shared_ext}$major'
10560 shlibpath_var=LD_LIBRARY_PATH
10561 shlibpath_overrides_runpath=yes
10562 hardcode_into_libs=yes
10563 # ldd complains unless libraries are executable
10564 postinstall_cmds='chmod +x $lib'
10567 sunos4*)
10568 version_type=sunos
10569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10570 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10571 shlibpath_var=LD_LIBRARY_PATH
10572 shlibpath_overrides_runpath=yes
10573 if test "$with_gnu_ld" = yes; then
10574 need_lib_prefix=no
10576 need_version=yes
10579 sysv4 | sysv4.3*)
10580 version_type=linux
10581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10582 soname_spec='${libname}${release}${shared_ext}$major'
10583 shlibpath_var=LD_LIBRARY_PATH
10584 case $host_vendor in
10585 sni)
10586 shlibpath_overrides_runpath=no
10587 need_lib_prefix=no
10588 runpath_var=LD_RUN_PATH
10590 siemens)
10591 need_lib_prefix=no
10593 motorola)
10594 need_lib_prefix=no
10595 need_version=no
10596 shlibpath_overrides_runpath=no
10597 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10599 esac
10602 sysv4*MP*)
10603 if test -d /usr/nec ;then
10604 version_type=linux
10605 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10606 soname_spec='$libname${shared_ext}.$major'
10607 shlibpath_var=LD_LIBRARY_PATH
10611 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10612 version_type=freebsd-elf
10613 need_lib_prefix=no
10614 need_version=no
10615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10616 soname_spec='${libname}${release}${shared_ext}$major'
10617 shlibpath_var=LD_LIBRARY_PATH
10618 shlibpath_overrides_runpath=yes
10619 hardcode_into_libs=yes
10620 if test "$with_gnu_ld" = yes; then
10621 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10622 else
10623 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10624 case $host_os in
10625 sco3.2v5*)
10626 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10628 esac
10630 sys_lib_dlsearch_path_spec='/usr/lib'
10633 tpf*)
10634 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10635 version_type=linux
10636 need_lib_prefix=no
10637 need_version=no
10638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10639 shlibpath_var=LD_LIBRARY_PATH
10640 shlibpath_overrides_runpath=no
10641 hardcode_into_libs=yes
10644 uts4*)
10645 version_type=linux
10646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10647 soname_spec='${libname}${release}${shared_ext}$major'
10648 shlibpath_var=LD_LIBRARY_PATH
10652 dynamic_linker=no
10654 esac
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10656 $as_echo "$dynamic_linker" >&6; }
10657 test "$dynamic_linker" = no && can_build_shared=no
10659 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10660 if test "$GCC" = yes; then
10661 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10664 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10665 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10667 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10668 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10763 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10764 hardcode_action=
10765 if test -n "$hardcode_libdir_flag_spec" ||
10766 test -n "$runpath_var" ||
10767 test "X$hardcode_automatic" = "Xyes" ; then
10769 # We can hardcode non-existent directories.
10770 if test "$hardcode_direct" != no &&
10771 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10772 # have to relink, otherwise we might link with an installed library
10773 # when we should be linking with a yet-to-be-installed one
10774 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10775 test "$hardcode_minus_L" != no; then
10776 # Linking always hardcodes the temporary library directory.
10777 hardcode_action=relink
10778 else
10779 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10780 hardcode_action=immediate
10782 else
10783 # We cannot hardcode anything, or else we can only hardcode existing
10784 # directories.
10785 hardcode_action=unsupported
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10788 $as_echo "$hardcode_action" >&6; }
10790 if test "$hardcode_action" = relink ||
10791 test "$inherit_rpath" = yes; then
10792 # Fast installation is not supported
10793 enable_fast_install=no
10794 elif test "$shlibpath_overrides_runpath" = yes ||
10795 test "$enable_shared" = no; then
10796 # Fast installation is not necessary
10797 enable_fast_install=needless
10805 if test "x$enable_dlopen" != xyes; then
10806 enable_dlopen=unknown
10807 enable_dlopen_self=unknown
10808 enable_dlopen_self_static=unknown
10809 else
10810 lt_cv_dlopen=no
10811 lt_cv_dlopen_libs=
10813 case $host_os in
10814 beos*)
10815 lt_cv_dlopen="load_add_on"
10816 lt_cv_dlopen_libs=
10817 lt_cv_dlopen_self=yes
10820 mingw* | pw32* | cegcc*)
10821 lt_cv_dlopen="LoadLibrary"
10822 lt_cv_dlopen_libs=
10825 cygwin*)
10826 lt_cv_dlopen="dlopen"
10827 lt_cv_dlopen_libs=
10830 darwin*)
10831 # if libdl is installed we need to link against it
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10833 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10834 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10835 $as_echo_n "(cached) " >&6
10836 else
10837 ac_check_lib_save_LIBS=$LIBS
10838 LIBS="-ldl $LIBS"
10839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10840 /* end confdefs.h. */
10842 /* Override any GCC internal prototype to avoid an error.
10843 Use char because int might match the return type of a GCC
10844 builtin and then its argument prototype would still apply. */
10845 #ifdef __cplusplus
10846 extern "C"
10847 #endif
10848 char dlopen ();
10850 main ()
10852 return dlopen ();
10854 return 0;
10856 _ACEOF
10857 if ac_fn_c_try_link "$LINENO"; then :
10858 ac_cv_lib_dl_dlopen=yes
10859 else
10860 ac_cv_lib_dl_dlopen=no
10862 rm -f core conftest.err conftest.$ac_objext \
10863 conftest$ac_exeext conftest.$ac_ext
10864 LIBS=$ac_check_lib_save_LIBS
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10867 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10868 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10869 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10870 else
10872 lt_cv_dlopen="dyld"
10873 lt_cv_dlopen_libs=
10874 lt_cv_dlopen_self=yes
10881 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10882 if test "x$ac_cv_func_shl_load" = x""yes; then :
10883 lt_cv_dlopen="shl_load"
10884 else
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10886 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10887 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10888 $as_echo_n "(cached) " >&6
10889 else
10890 ac_check_lib_save_LIBS=$LIBS
10891 LIBS="-ldld $LIBS"
10892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10893 /* end confdefs.h. */
10895 /* Override any GCC internal prototype to avoid an error.
10896 Use char because int might match the return type of a GCC
10897 builtin and then its argument prototype would still apply. */
10898 #ifdef __cplusplus
10899 extern "C"
10900 #endif
10901 char shl_load ();
10903 main ()
10905 return shl_load ();
10907 return 0;
10909 _ACEOF
10910 if ac_fn_c_try_link "$LINENO"; then :
10911 ac_cv_lib_dld_shl_load=yes
10912 else
10913 ac_cv_lib_dld_shl_load=no
10915 rm -f core conftest.err conftest.$ac_objext \
10916 conftest$ac_exeext conftest.$ac_ext
10917 LIBS=$ac_check_lib_save_LIBS
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10920 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10921 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10922 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10923 else
10924 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10925 if test "x$ac_cv_func_dlopen" = x""yes; then :
10926 lt_cv_dlopen="dlopen"
10927 else
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10929 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10930 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10931 $as_echo_n "(cached) " >&6
10932 else
10933 ac_check_lib_save_LIBS=$LIBS
10934 LIBS="-ldl $LIBS"
10935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10936 /* end confdefs.h. */
10938 /* Override any GCC internal prototype to avoid an error.
10939 Use char because int might match the return type of a GCC
10940 builtin and then its argument prototype would still apply. */
10941 #ifdef __cplusplus
10942 extern "C"
10943 #endif
10944 char dlopen ();
10946 main ()
10948 return dlopen ();
10950 return 0;
10952 _ACEOF
10953 if ac_fn_c_try_link "$LINENO"; then :
10954 ac_cv_lib_dl_dlopen=yes
10955 else
10956 ac_cv_lib_dl_dlopen=no
10958 rm -f core conftest.err conftest.$ac_objext \
10959 conftest$ac_exeext conftest.$ac_ext
10960 LIBS=$ac_check_lib_save_LIBS
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10963 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10964 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10965 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10966 else
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10968 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10969 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10970 $as_echo_n "(cached) " >&6
10971 else
10972 ac_check_lib_save_LIBS=$LIBS
10973 LIBS="-lsvld $LIBS"
10974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10975 /* end confdefs.h. */
10977 /* Override any GCC internal prototype to avoid an error.
10978 Use char because int might match the return type of a GCC
10979 builtin and then its argument prototype would still apply. */
10980 #ifdef __cplusplus
10981 extern "C"
10982 #endif
10983 char dlopen ();
10985 main ()
10987 return dlopen ();
10989 return 0;
10991 _ACEOF
10992 if ac_fn_c_try_link "$LINENO"; then :
10993 ac_cv_lib_svld_dlopen=yes
10994 else
10995 ac_cv_lib_svld_dlopen=no
10997 rm -f core conftest.err conftest.$ac_objext \
10998 conftest$ac_exeext conftest.$ac_ext
10999 LIBS=$ac_check_lib_save_LIBS
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11002 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11003 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11004 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11005 else
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11007 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11008 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11009 $as_echo_n "(cached) " >&6
11010 else
11011 ac_check_lib_save_LIBS=$LIBS
11012 LIBS="-ldld $LIBS"
11013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11014 /* end confdefs.h. */
11016 /* Override any GCC internal prototype to avoid an error.
11017 Use char because int might match the return type of a GCC
11018 builtin and then its argument prototype would still apply. */
11019 #ifdef __cplusplus
11020 extern "C"
11021 #endif
11022 char dld_link ();
11024 main ()
11026 return dld_link ();
11028 return 0;
11030 _ACEOF
11031 if ac_fn_c_try_link "$LINENO"; then :
11032 ac_cv_lib_dld_dld_link=yes
11033 else
11034 ac_cv_lib_dld_dld_link=no
11036 rm -f core conftest.err conftest.$ac_objext \
11037 conftest$ac_exeext conftest.$ac_ext
11038 LIBS=$ac_check_lib_save_LIBS
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11041 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11042 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11043 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11062 esac
11064 if test "x$lt_cv_dlopen" != xno; then
11065 enable_dlopen=yes
11066 else
11067 enable_dlopen=no
11070 case $lt_cv_dlopen in
11071 dlopen)
11072 save_CPPFLAGS="$CPPFLAGS"
11073 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11075 save_LDFLAGS="$LDFLAGS"
11076 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11078 save_LIBS="$LIBS"
11079 LIBS="$lt_cv_dlopen_libs $LIBS"
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11082 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11083 if test "${lt_cv_dlopen_self+set}" = set; then :
11084 $as_echo_n "(cached) " >&6
11085 else
11086 if test "$cross_compiling" = yes; then :
11087 lt_cv_dlopen_self=cross
11088 else
11089 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11090 lt_status=$lt_dlunknown
11091 cat > conftest.$ac_ext <<_LT_EOF
11092 #line 11092 "configure"
11093 #include "confdefs.h"
11095 #if HAVE_DLFCN_H
11096 #include <dlfcn.h>
11097 #endif
11099 #include <stdio.h>
11101 #ifdef RTLD_GLOBAL
11102 # define LT_DLGLOBAL RTLD_GLOBAL
11103 #else
11104 # ifdef DL_GLOBAL
11105 # define LT_DLGLOBAL DL_GLOBAL
11106 # else
11107 # define LT_DLGLOBAL 0
11108 # endif
11109 #endif
11111 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11112 find out it does not work in some platform. */
11113 #ifndef LT_DLLAZY_OR_NOW
11114 # ifdef RTLD_LAZY
11115 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11116 # else
11117 # ifdef DL_LAZY
11118 # define LT_DLLAZY_OR_NOW DL_LAZY
11119 # else
11120 # ifdef RTLD_NOW
11121 # define LT_DLLAZY_OR_NOW RTLD_NOW
11122 # else
11123 # ifdef DL_NOW
11124 # define LT_DLLAZY_OR_NOW DL_NOW
11125 # else
11126 # define LT_DLLAZY_OR_NOW 0
11127 # endif
11128 # endif
11129 # endif
11130 # endif
11131 #endif
11133 /* When -fvisbility=hidden is used, assume the code has been annotated
11134 correspondingly for the symbols needed. */
11135 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11136 void fnord () __attribute__((visibility("default")));
11137 #endif
11139 void fnord () { int i=42; }
11140 int main ()
11142 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11143 int status = $lt_dlunknown;
11145 if (self)
11147 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11148 else
11150 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11151 else puts (dlerror ());
11153 /* dlclose (self); */
11155 else
11156 puts (dlerror ());
11158 return status;
11160 _LT_EOF
11161 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11162 (eval $ac_link) 2>&5
11163 ac_status=$?
11164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11165 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11166 (./conftest; exit; ) >&5 2>/dev/null
11167 lt_status=$?
11168 case x$lt_status in
11169 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11170 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11171 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11172 esac
11173 else :
11174 # compilation failed
11175 lt_cv_dlopen_self=no
11178 rm -fr conftest*
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11183 $as_echo "$lt_cv_dlopen_self" >&6; }
11185 if test "x$lt_cv_dlopen_self" = xyes; then
11186 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11188 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11189 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11190 $as_echo_n "(cached) " >&6
11191 else
11192 if test "$cross_compiling" = yes; then :
11193 lt_cv_dlopen_self_static=cross
11194 else
11195 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11196 lt_status=$lt_dlunknown
11197 cat > conftest.$ac_ext <<_LT_EOF
11198 #line 11198 "configure"
11199 #include "confdefs.h"
11201 #if HAVE_DLFCN_H
11202 #include <dlfcn.h>
11203 #endif
11205 #include <stdio.h>
11207 #ifdef RTLD_GLOBAL
11208 # define LT_DLGLOBAL RTLD_GLOBAL
11209 #else
11210 # ifdef DL_GLOBAL
11211 # define LT_DLGLOBAL DL_GLOBAL
11212 # else
11213 # define LT_DLGLOBAL 0
11214 # endif
11215 #endif
11217 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11218 find out it does not work in some platform. */
11219 #ifndef LT_DLLAZY_OR_NOW
11220 # ifdef RTLD_LAZY
11221 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11222 # else
11223 # ifdef DL_LAZY
11224 # define LT_DLLAZY_OR_NOW DL_LAZY
11225 # else
11226 # ifdef RTLD_NOW
11227 # define LT_DLLAZY_OR_NOW RTLD_NOW
11228 # else
11229 # ifdef DL_NOW
11230 # define LT_DLLAZY_OR_NOW DL_NOW
11231 # else
11232 # define LT_DLLAZY_OR_NOW 0
11233 # endif
11234 # endif
11235 # endif
11236 # endif
11237 #endif
11239 /* When -fvisbility=hidden is used, assume the code has been annotated
11240 correspondingly for the symbols needed. */
11241 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11242 void fnord () __attribute__((visibility("default")));
11243 #endif
11245 void fnord () { int i=42; }
11246 int main ()
11248 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11249 int status = $lt_dlunknown;
11251 if (self)
11253 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11254 else
11256 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11257 else puts (dlerror ());
11259 /* dlclose (self); */
11261 else
11262 puts (dlerror ());
11264 return status;
11266 _LT_EOF
11267 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11268 (eval $ac_link) 2>&5
11269 ac_status=$?
11270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11271 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11272 (./conftest; exit; ) >&5 2>/dev/null
11273 lt_status=$?
11274 case x$lt_status in
11275 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11276 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11277 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11278 esac
11279 else :
11280 # compilation failed
11281 lt_cv_dlopen_self_static=no
11284 rm -fr conftest*
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11289 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11292 CPPFLAGS="$save_CPPFLAGS"
11293 LDFLAGS="$save_LDFLAGS"
11294 LIBS="$save_LIBS"
11296 esac
11298 case $lt_cv_dlopen_self in
11299 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11300 *) enable_dlopen_self=unknown ;;
11301 esac
11303 case $lt_cv_dlopen_self_static in
11304 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11305 *) enable_dlopen_self_static=unknown ;;
11306 esac
11325 striplib=
11326 old_striplib=
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11328 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11329 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11330 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11331 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11333 $as_echo "yes" >&6; }
11334 else
11335 # FIXME - insert some real tests, host_os isn't really good enough
11336 case $host_os in
11337 darwin*)
11338 if test -n "$STRIP" ; then
11339 striplib="$STRIP -x"
11340 old_striplib="$STRIP -S"
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11342 $as_echo "yes" >&6; }
11343 else
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11345 $as_echo "no" >&6; }
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11350 $as_echo "no" >&6; }
11352 esac
11366 # Report which library types will actually be built
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11368 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11370 $as_echo "$can_build_shared" >&6; }
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11373 $as_echo_n "checking whether to build shared libraries... " >&6; }
11374 test "$can_build_shared" = "no" && enable_shared=no
11376 # On AIX, shared libraries and static libraries use the same namespace, and
11377 # are all built from PIC.
11378 case $host_os in
11379 aix3*)
11380 test "$enable_shared" = yes && enable_static=no
11381 if test -n "$RANLIB"; then
11382 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11383 postinstall_cmds='$RANLIB $lib'
11387 aix[4-9]*)
11388 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11389 test "$enable_shared" = yes && enable_static=no
11392 esac
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11394 $as_echo "$enable_shared" >&6; }
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11397 $as_echo_n "checking whether to build static libraries... " >&6; }
11398 # Make sure either enable_shared or enable_static is yes.
11399 test "$enable_shared" = yes || enable_static=yes
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11401 $as_echo "$enable_static" >&6; }
11407 ac_ext=c
11408 ac_cpp='$CPP $CPPFLAGS'
11409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11413 CC="$lt_save_CC"
11427 ac_config_commands="$ac_config_commands libtool"
11432 # Only expand once:
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11440 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11441 # Check whether --enable-maintainer-mode was given.
11442 if test "${enable_maintainer_mode+set}" = set; then :
11443 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11444 else
11445 USE_MAINTAINER_MODE=no
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11449 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11450 if test $USE_MAINTAINER_MODE = yes; then
11451 MAINTAINER_MODE_TRUE=
11452 MAINTAINER_MODE_FALSE='#'
11453 else
11454 MAINTAINER_MODE_TRUE='#'
11455 MAINTAINER_MODE_FALSE=
11458 MAINT=$MAINTAINER_MODE_TRUE
11462 # We need gfortran to compile parts of the library
11463 # We can't use AC_PROG_FC because it expects a fully working gfortran.
11464 #AC_PROG_FC(gfortran)
11465 case `echo $GFORTRAN` in
11466 -* | no* )
11467 FC=no ;;
11469 set dummy $GFORTRAN; ac_word=$2
11470 if test -x "$ac_word"; then
11471 FC="$GFORTRAN"
11472 else
11473 FC=no
11474 fi ;;
11475 esac
11476 ac_ext=${ac_fc_srcext-f}
11477 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11478 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11479 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11480 if test -n "$ac_tool_prefix"; then
11481 for ac_prog in gfortran
11483 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11484 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11486 $as_echo_n "checking for $ac_word... " >&6; }
11487 if test "${ac_cv_prog_FC+set}" = set; then :
11488 $as_echo_n "(cached) " >&6
11489 else
11490 if test -n "$FC"; then
11491 ac_cv_prog_FC="$FC" # Let the user override the test.
11492 else
11493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11494 for as_dir in $PATH
11496 IFS=$as_save_IFS
11497 test -z "$as_dir" && as_dir=.
11498 for ac_exec_ext in '' $ac_executable_extensions; do
11499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11500 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
11501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11502 break 2
11504 done
11505 done
11506 IFS=$as_save_IFS
11510 FC=$ac_cv_prog_FC
11511 if test -n "$FC"; then
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
11513 $as_echo "$FC" >&6; }
11514 else
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11516 $as_echo "no" >&6; }
11520 test -n "$FC" && break
11521 done
11523 if test -z "$FC"; then
11524 ac_ct_FC=$FC
11525 for ac_prog in gfortran
11527 # Extract the first word of "$ac_prog", so it can be a program name with args.
11528 set dummy $ac_prog; ac_word=$2
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11530 $as_echo_n "checking for $ac_word... " >&6; }
11531 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
11532 $as_echo_n "(cached) " >&6
11533 else
11534 if test -n "$ac_ct_FC"; then
11535 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
11536 else
11537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11538 for as_dir in $PATH
11540 IFS=$as_save_IFS
11541 test -z "$as_dir" && as_dir=.
11542 for ac_exec_ext in '' $ac_executable_extensions; do
11543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11544 ac_cv_prog_ac_ct_FC="$ac_prog"
11545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11546 break 2
11548 done
11549 done
11550 IFS=$as_save_IFS
11554 ac_ct_FC=$ac_cv_prog_ac_ct_FC
11555 if test -n "$ac_ct_FC"; then
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
11557 $as_echo "$ac_ct_FC" >&6; }
11558 else
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11560 $as_echo "no" >&6; }
11564 test -n "$ac_ct_FC" && break
11565 done
11567 if test "x$ac_ct_FC" = x; then
11568 FC=""
11569 else
11570 case $cross_compiling:$ac_tool_warned in
11571 yes:)
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11573 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11574 ac_tool_warned=yes ;;
11575 esac
11576 FC=$ac_ct_FC
11581 # Provide some information about the compiler.
11582 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
11583 set X $ac_compile
11584 ac_compiler=$2
11585 for ac_option in --version -v -V -qversion; do
11586 { { ac_try="$ac_compiler $ac_option >&5"
11587 case "(($ac_try" in
11588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11589 *) ac_try_echo=$ac_try;;
11590 esac
11591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11592 $as_echo "$ac_try_echo"; } >&5
11593 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11594 ac_status=$?
11595 if test -s conftest.err; then
11596 sed '10a\
11597 ... rest of stderr output deleted ...
11598 10q' conftest.err >conftest.er1
11599 cat conftest.er1 >&5
11600 rm -f conftest.er1 conftest.err
11602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11603 test $ac_status = 0; }
11604 done
11605 rm -f a.out
11607 # If we don't use `.F' as extension, the preprocessor is not run on the
11608 # input file. (Note that this only needs to work for GNU compilers.)
11609 ac_save_ext=$ac_ext
11610 ac_ext=F
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
11612 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
11613 if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
11614 $as_echo_n "(cached) " >&6
11615 else
11616 cat > conftest.$ac_ext <<_ACEOF
11617 program main
11618 #ifndef __GNUC__
11619 choke me
11620 #endif
11623 _ACEOF
11624 if ac_fn_fc_try_compile "$LINENO"; then :
11625 ac_compiler_gnu=yes
11626 else
11627 ac_compiler_gnu=no
11629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11630 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
11634 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
11635 ac_ext=$ac_save_ext
11636 ac_test_FCFLAGS=${FCFLAGS+set}
11637 ac_save_FCFLAGS=$FCFLAGS
11638 FCFLAGS=
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
11640 $as_echo_n "checking whether $FC accepts -g... " >&6; }
11641 if test "${ac_cv_prog_fc_g+set}" = set; then :
11642 $as_echo_n "(cached) " >&6
11643 else
11644 FCFLAGS=-g
11645 cat > conftest.$ac_ext <<_ACEOF
11646 program main
11649 _ACEOF
11650 if ac_fn_fc_try_compile "$LINENO"; then :
11651 ac_cv_prog_fc_g=yes
11652 else
11653 ac_cv_prog_fc_g=no
11655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
11659 $as_echo "$ac_cv_prog_fc_g" >&6; }
11660 if test "$ac_test_FCFLAGS" = set; then
11661 FCFLAGS=$ac_save_FCFLAGS
11662 elif test $ac_cv_prog_fc_g = yes; then
11663 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11664 FCFLAGS="-g -O2"
11665 else
11666 FCFLAGS="-g"
11668 else
11669 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11670 FCFLAGS="-O2"
11671 else
11672 FCFLAGS=
11676 ac_ext=c
11677 ac_cpp='$CPP $CPPFLAGS'
11678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11682 ac_ext=${ac_fc_srcext-f}
11683 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11684 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11685 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11688 if test -z "$FC" || test "X$FC" = "Xno"; then
11689 _lt_disable_FC=yes
11692 archive_cmds_need_lc_FC=no
11693 allow_undefined_flag_FC=
11694 always_export_symbols_FC=no
11695 archive_expsym_cmds_FC=
11696 export_dynamic_flag_spec_FC=
11697 hardcode_direct_FC=no
11698 hardcode_direct_absolute_FC=no
11699 hardcode_libdir_flag_spec_FC=
11700 hardcode_libdir_flag_spec_ld_FC=
11701 hardcode_libdir_separator_FC=
11702 hardcode_minus_L_FC=no
11703 hardcode_automatic_FC=no
11704 inherit_rpath_FC=no
11705 module_cmds_FC=
11706 module_expsym_cmds_FC=
11707 link_all_deplibs_FC=unknown
11708 old_archive_cmds_FC=$old_archive_cmds
11709 reload_flag_FC=$reload_flag
11710 reload_cmds_FC=$reload_cmds
11711 no_undefined_flag_FC=
11712 whole_archive_flag_spec_FC=
11713 enable_shared_with_static_runtimes_FC=no
11715 # Source file extension for fc test sources.
11716 ac_ext=${ac_fc_srcext-f}
11718 # Object file extension for compiled fc test sources.
11719 objext=o
11720 objext_FC=$objext
11722 # No sense in running all these tests if we already determined that
11723 # the FC compiler isn't working. Some variables (like enable_shared)
11724 # are currently assumed to apply to all compilers on this platform,
11725 # and will be corrupted by setting them based on a non-working compiler.
11726 if test "$_lt_disable_FC" != yes; then
11727 # Code to be used in simple compile tests
11728 lt_simple_compile_test_code="\
11729 subroutine t
11730 return
11734 # Code to be used in simple link tests
11735 lt_simple_link_test_code="\
11736 program t
11740 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11747 # If no C compiler was specified, use CC.
11748 LTCC=${LTCC-"$CC"}
11750 # If no C compiler flags were specified, use CFLAGS.
11751 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11753 # Allow CC to be a program name with arguments.
11754 compiler=$CC
11757 # save warnings/boilerplate of simple test code
11758 ac_outfile=conftest.$ac_objext
11759 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11760 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11761 _lt_compiler_boilerplate=`cat conftest.err`
11762 $RM conftest*
11764 ac_outfile=conftest.$ac_objext
11765 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11766 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11767 _lt_linker_boilerplate=`cat conftest.err`
11768 $RM -r conftest*
11771 # Allow CC to be a program name with arguments.
11772 lt_save_CC="$CC"
11773 lt_save_GCC=$GCC
11774 CC=${FC-"f95"}
11775 compiler=$CC
11776 GCC=$ac_cv_fc_compiler_gnu
11778 compiler_FC=$CC
11779 for cc_temp in $compiler""; do
11780 case $cc_temp in
11781 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11782 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11783 \-*) ;;
11784 *) break;;
11785 esac
11786 done
11787 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11790 if test -n "$compiler"; then
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11792 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11794 $as_echo "$can_build_shared" >&6; }
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11797 $as_echo_n "checking whether to build shared libraries... " >&6; }
11798 test "$can_build_shared" = "no" && enable_shared=no
11800 # On AIX, shared libraries and static libraries use the same namespace, and
11801 # are all built from PIC.
11802 case $host_os in
11803 aix3*)
11804 test "$enable_shared" = yes && enable_static=no
11805 if test -n "$RANLIB"; then
11806 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11807 postinstall_cmds='$RANLIB $lib'
11810 aix[4-9]*)
11811 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11812 test "$enable_shared" = yes && enable_static=no
11815 esac
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11817 $as_echo "$enable_shared" >&6; }
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11820 $as_echo_n "checking whether to build static libraries... " >&6; }
11821 # Make sure either enable_shared or enable_static is yes.
11822 test "$enable_shared" = yes || enable_static=yes
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11824 $as_echo "$enable_static" >&6; }
11826 GCC_FC="$ac_cv_fc_compiler_gnu"
11827 LD_FC="$LD"
11829 ## CAVEAT EMPTOR:
11830 ## There is no encapsulation within the following macros, do not change
11831 ## the running order or otherwise move them around unless you know exactly
11832 ## what you are doing...
11833 # Dependencies to place before and after the object being linked:
11834 predep_objects_FC=
11835 postdep_objects_FC=
11836 predeps_FC=
11837 postdeps_FC=
11838 compiler_lib_search_path_FC=
11840 cat > conftest.$ac_ext <<_LT_EOF
11841 subroutine foo
11842 implicit none
11843 integer a
11845 return
11847 _LT_EOF
11849 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11850 (eval $ac_compile) 2>&5
11851 ac_status=$?
11852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11853 test $ac_status = 0; }; then
11854 # Parse the compiler output and extract the necessary
11855 # objects, libraries and library flags.
11857 # Sentinel used to keep track of whether or not we are before
11858 # the conftest object file.
11859 pre_test_object_deps_done=no
11861 for p in `eval "$output_verbose_link_cmd"`; do
11862 case $p in
11864 -L* | -R* | -l*)
11865 # Some compilers place space between "-{L,R}" and the path.
11866 # Remove the space.
11867 if test $p = "-L" ||
11868 test $p = "-R"; then
11869 prev=$p
11870 continue
11871 else
11872 prev=
11875 if test "$pre_test_object_deps_done" = no; then
11876 case $p in
11877 -L* | -R*)
11878 # Internal compiler library paths should come after those
11879 # provided the user. The postdeps already come after the
11880 # user supplied libs so there is no need to process them.
11881 if test -z "$compiler_lib_search_path_FC"; then
11882 compiler_lib_search_path_FC="${prev}${p}"
11883 else
11884 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
11887 # The "-l" case would never come before the object being
11888 # linked, so don't bother handling this case.
11889 esac
11890 else
11891 if test -z "$postdeps_FC"; then
11892 postdeps_FC="${prev}${p}"
11893 else
11894 postdeps_FC="${postdeps_FC} ${prev}${p}"
11899 *.$objext)
11900 # This assumes that the test object file only shows up
11901 # once in the compiler output.
11902 if test "$p" = "conftest.$objext"; then
11903 pre_test_object_deps_done=yes
11904 continue
11907 if test "$pre_test_object_deps_done" = no; then
11908 if test -z "$predep_objects_FC"; then
11909 predep_objects_FC="$p"
11910 else
11911 predep_objects_FC="$predep_objects_FC $p"
11913 else
11914 if test -z "$postdep_objects_FC"; then
11915 postdep_objects_FC="$p"
11916 else
11917 postdep_objects_FC="$postdep_objects_FC $p"
11922 *) ;; # Ignore the rest.
11924 esac
11925 done
11927 # Clean up.
11928 rm -f a.out a.exe
11929 else
11930 echo "libtool.m4: error: problem compiling FC test program"
11933 $RM -f confest.$objext
11935 # PORTME: override above test on systems where it is broken
11938 case " $postdeps_FC " in
11939 *" -lc "*) archive_cmds_need_lc_FC=no ;;
11940 esac
11941 compiler_lib_search_dirs_FC=
11942 if test -n "${compiler_lib_search_path_FC}"; then
11943 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
11976 lt_prog_compiler_wl_FC=
11977 lt_prog_compiler_pic_FC=
11978 lt_prog_compiler_static_FC=
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11981 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11983 if test "$GCC" = yes; then
11984 lt_prog_compiler_wl_FC='-Wl,'
11985 lt_prog_compiler_static_FC='-static'
11987 case $host_os in
11988 aix*)
11989 # All AIX code is PIC.
11990 if test "$host_cpu" = ia64; then
11991 # AIX 5 now supports IA64 processor
11992 lt_prog_compiler_static_FC='-Bstatic'
11996 amigaos*)
11997 case $host_cpu in
11998 powerpc)
11999 # see comment about AmigaOS4 .so support
12000 lt_prog_compiler_pic_FC='-fPIC'
12002 m68k)
12003 # FIXME: we need at least 68020 code to build shared libraries, but
12004 # adding the `-m68020' flag to GCC prevents building anything better,
12005 # like `-m68040'.
12006 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
12008 esac
12011 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12012 # PIC is the default for these OSes.
12015 mingw* | cygwin* | pw32* | os2* | cegcc*)
12016 # This hack is so that the source file can tell whether it is being
12017 # built for inclusion in a dll (and should export symbols for example).
12018 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12019 # (--disable-auto-import) libraries
12020 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12023 darwin* | rhapsody*)
12024 # PIC is the default on this platform
12025 # Common symbols not allowed in MH_DYLIB files
12026 lt_prog_compiler_pic_FC='-fno-common'
12029 haiku*)
12030 # PIC is the default for Haiku.
12031 # The "-static" flag exists, but is broken.
12032 lt_prog_compiler_static_FC=
12035 hpux*)
12036 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12037 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12038 # sets the default TLS model and affects inlining.
12039 case $host_cpu in
12040 hppa*64*)
12041 # +Z the default
12044 lt_prog_compiler_pic_FC='-fPIC'
12046 esac
12049 interix[3-9]*)
12050 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12051 # Instead, we relocate shared libraries at runtime.
12054 msdosdjgpp*)
12055 # Just because we use GCC doesn't mean we suddenly get shared libraries
12056 # on systems that don't support them.
12057 lt_prog_compiler_can_build_shared_FC=no
12058 enable_shared=no
12061 *nto* | *qnx*)
12062 # QNX uses GNU C++, but need to define -shared option too, otherwise
12063 # it will coredump.
12064 lt_prog_compiler_pic_FC='-fPIC -shared'
12067 sysv4*MP*)
12068 if test -d /usr/nec; then
12069 lt_prog_compiler_pic_FC=-Kconform_pic
12074 lt_prog_compiler_pic_FC='-fPIC'
12076 esac
12078 case $cc_basename in
12079 nvcc*) # Cuda Compiler Driver 2.2
12080 lt_prog_compiler_wl_FC='-Xlinker '
12081 lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
12083 esac
12084 else
12085 # PORTME Check for flag to pass linker flags through the system compiler.
12086 case $host_os in
12087 aix*)
12088 lt_prog_compiler_wl_FC='-Wl,'
12089 if test "$host_cpu" = ia64; then
12090 # AIX 5 now supports IA64 processor
12091 lt_prog_compiler_static_FC='-Bstatic'
12092 else
12093 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
12097 mingw* | cygwin* | pw32* | os2* | cegcc*)
12098 # This hack is so that the source file can tell whether it is being
12099 # built for inclusion in a dll (and should export symbols for example).
12100 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12103 hpux9* | hpux10* | hpux11*)
12104 lt_prog_compiler_wl_FC='-Wl,'
12105 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12106 # not for PA HP-UX.
12107 case $host_cpu in
12108 hppa*64*|ia64*)
12109 # +Z the default
12112 lt_prog_compiler_pic_FC='+Z'
12114 esac
12115 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12116 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
12119 irix5* | irix6* | nonstopux*)
12120 lt_prog_compiler_wl_FC='-Wl,'
12121 # PIC (with -KPIC) is the default.
12122 lt_prog_compiler_static_FC='-non_shared'
12125 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12126 case $cc_basename in
12127 # old Intel for x86_64 which still supported -KPIC.
12128 ecc*)
12129 lt_prog_compiler_wl_FC='-Wl,'
12130 lt_prog_compiler_pic_FC='-KPIC'
12131 lt_prog_compiler_static_FC='-static'
12133 # icc used to be incompatible with GCC.
12134 # ICC 10 doesn't accept -KPIC any more.
12135 icc* | ifort*)
12136 lt_prog_compiler_wl_FC='-Wl,'
12137 lt_prog_compiler_pic_FC='-fPIC'
12138 lt_prog_compiler_static_FC='-static'
12140 # Lahey Fortran 8.1.
12141 lf95*)
12142 lt_prog_compiler_wl_FC='-Wl,'
12143 lt_prog_compiler_pic_FC='--shared'
12144 lt_prog_compiler_static_FC='--static'
12146 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12147 # Portland Group compilers (*not* the Pentium gcc compiler,
12148 # which looks to be a dead project)
12149 lt_prog_compiler_wl_FC='-Wl,'
12150 lt_prog_compiler_pic_FC='-fpic'
12151 lt_prog_compiler_static_FC='-Bstatic'
12153 ccc*)
12154 lt_prog_compiler_wl_FC='-Wl,'
12155 # All Alpha code is PIC.
12156 lt_prog_compiler_static_FC='-non_shared'
12158 xl* | bgxl* | bgf* | mpixl*)
12159 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12160 lt_prog_compiler_wl_FC='-Wl,'
12161 lt_prog_compiler_pic_FC='-qpic'
12162 lt_prog_compiler_static_FC='-qstaticlink'
12165 case `$CC -V 2>&1 | sed 5q` in
12166 *Sun\ F* | *Sun*Fortran*)
12167 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12168 lt_prog_compiler_pic_FC='-KPIC'
12169 lt_prog_compiler_static_FC='-Bstatic'
12170 lt_prog_compiler_wl_FC=''
12172 *Sun\ C*)
12173 # Sun C 5.9
12174 lt_prog_compiler_pic_FC='-KPIC'
12175 lt_prog_compiler_static_FC='-Bstatic'
12176 lt_prog_compiler_wl_FC='-Wl,'
12178 esac
12180 esac
12183 newsos6)
12184 lt_prog_compiler_pic_FC='-KPIC'
12185 lt_prog_compiler_static_FC='-Bstatic'
12188 *nto* | *qnx*)
12189 # QNX uses GNU C++, but need to define -shared option too, otherwise
12190 # it will coredump.
12191 lt_prog_compiler_pic_FC='-fPIC -shared'
12194 osf3* | osf4* | osf5*)
12195 lt_prog_compiler_wl_FC='-Wl,'
12196 # All OSF/1 code is PIC.
12197 lt_prog_compiler_static_FC='-non_shared'
12200 rdos*)
12201 lt_prog_compiler_static_FC='-non_shared'
12204 solaris*)
12205 lt_prog_compiler_pic_FC='-KPIC'
12206 lt_prog_compiler_static_FC='-Bstatic'
12207 case $cc_basename in
12208 f77* | f90* | f95*)
12209 lt_prog_compiler_wl_FC='-Qoption ld ';;
12211 lt_prog_compiler_wl_FC='-Wl,';;
12212 esac
12215 sunos4*)
12216 lt_prog_compiler_wl_FC='-Qoption ld '
12217 lt_prog_compiler_pic_FC='-PIC'
12218 lt_prog_compiler_static_FC='-Bstatic'
12221 sysv4 | sysv4.2uw2* | sysv4.3*)
12222 lt_prog_compiler_wl_FC='-Wl,'
12223 lt_prog_compiler_pic_FC='-KPIC'
12224 lt_prog_compiler_static_FC='-Bstatic'
12227 sysv4*MP*)
12228 if test -d /usr/nec ;then
12229 lt_prog_compiler_pic_FC='-Kconform_pic'
12230 lt_prog_compiler_static_FC='-Bstatic'
12234 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12235 lt_prog_compiler_wl_FC='-Wl,'
12236 lt_prog_compiler_pic_FC='-KPIC'
12237 lt_prog_compiler_static_FC='-Bstatic'
12240 unicos*)
12241 lt_prog_compiler_wl_FC='-Wl,'
12242 lt_prog_compiler_can_build_shared_FC=no
12245 uts4*)
12246 lt_prog_compiler_pic_FC='-pic'
12247 lt_prog_compiler_static_FC='-Bstatic'
12251 lt_prog_compiler_can_build_shared_FC=no
12253 esac
12256 case $host_os in
12257 # For platforms which do not support PIC, -DPIC is meaningless:
12258 *djgpp*)
12259 lt_prog_compiler_pic_FC=
12262 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
12264 esac
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
12266 $as_echo "$lt_prog_compiler_pic_FC" >&6; }
12271 # Check to make sure the PIC flag actually works.
12273 if test -n "$lt_prog_compiler_pic_FC"; then
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
12275 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
12276 if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then :
12277 $as_echo_n "(cached) " >&6
12278 else
12279 lt_cv_prog_compiler_pic_works_FC=no
12280 ac_outfile=conftest.$ac_objext
12281 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12282 lt_compiler_flag="$lt_prog_compiler_pic_FC"
12283 # Insert the option either (1) after the last *FLAGS variable, or
12284 # (2) before a word containing "conftest.", or (3) at the end.
12285 # Note that $ac_compile itself does not contain backslashes and begins
12286 # with a dollar sign (not a hyphen), so the echo should work correctly.
12287 # The option is referenced via a variable to avoid confusing sed.
12288 lt_compile=`echo "$ac_compile" | $SED \
12289 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12290 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12291 -e 's:$: $lt_compiler_flag:'`
12292 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12293 (eval "$lt_compile" 2>conftest.err)
12294 ac_status=$?
12295 cat conftest.err >&5
12296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297 if (exit $ac_status) && test -s "$ac_outfile"; then
12298 # The compiler can only warn and ignore the option if not recognized
12299 # So say no if there are warnings other than the usual output.
12300 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12301 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12302 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12303 lt_cv_prog_compiler_pic_works_FC=yes
12306 $RM conftest*
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
12310 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
12312 if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
12313 case $lt_prog_compiler_pic_FC in
12314 "" | " "*) ;;
12315 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
12316 esac
12317 else
12318 lt_prog_compiler_pic_FC=
12319 lt_prog_compiler_can_build_shared_FC=no
12327 # Check to make sure the static flag actually works.
12329 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12331 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12332 if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then :
12333 $as_echo_n "(cached) " >&6
12334 else
12335 lt_cv_prog_compiler_static_works_FC=no
12336 save_LDFLAGS="$LDFLAGS"
12337 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12338 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12339 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12340 # The linker can only warn and ignore the option if not recognized
12341 # So say no if there are warnings
12342 if test -s conftest.err; then
12343 # Append any errors to the config.log.
12344 cat conftest.err 1>&5
12345 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12346 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12347 if diff conftest.exp conftest.er2 >/dev/null; then
12348 lt_cv_prog_compiler_static_works_FC=yes
12350 else
12351 lt_cv_prog_compiler_static_works_FC=yes
12354 $RM -r conftest*
12355 LDFLAGS="$save_LDFLAGS"
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
12359 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
12361 if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
12363 else
12364 lt_prog_compiler_static_FC=
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12371 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12372 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
12373 $as_echo_n "(cached) " >&6
12374 else
12375 lt_cv_prog_compiler_c_o_FC=no
12376 $RM -r conftest 2>/dev/null
12377 mkdir conftest
12378 cd conftest
12379 mkdir out
12380 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12382 lt_compiler_flag="-o out/conftest2.$ac_objext"
12383 # Insert the option either (1) after the last *FLAGS variable, or
12384 # (2) before a word containing "conftest.", or (3) at the end.
12385 # Note that $ac_compile itself does not contain backslashes and begins
12386 # with a dollar sign (not a hyphen), so the echo should work correctly.
12387 lt_compile=`echo "$ac_compile" | $SED \
12388 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12389 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12390 -e 's:$: $lt_compiler_flag:'`
12391 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12392 (eval "$lt_compile" 2>out/conftest.err)
12393 ac_status=$?
12394 cat out/conftest.err >&5
12395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12397 then
12398 # The compiler can only warn and ignore the option if not recognized
12399 # So say no if there are warnings
12400 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12401 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12402 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12403 lt_cv_prog_compiler_c_o_FC=yes
12406 chmod u+w . 2>&5
12407 $RM conftest*
12408 # SGI C++ compiler will create directory out/ii_files/ for
12409 # template instantiation
12410 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12411 $RM out/* && rmdir out
12412 cd ..
12413 $RM -r conftest
12414 $RM conftest*
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12418 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12423 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12424 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
12425 $as_echo_n "(cached) " >&6
12426 else
12427 lt_cv_prog_compiler_c_o_FC=no
12428 $RM -r conftest 2>/dev/null
12429 mkdir conftest
12430 cd conftest
12431 mkdir out
12432 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12434 lt_compiler_flag="-o out/conftest2.$ac_objext"
12435 # Insert the option either (1) after the last *FLAGS variable, or
12436 # (2) before a word containing "conftest.", or (3) at the end.
12437 # Note that $ac_compile itself does not contain backslashes and begins
12438 # with a dollar sign (not a hyphen), so the echo should work correctly.
12439 lt_compile=`echo "$ac_compile" | $SED \
12440 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12441 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12442 -e 's:$: $lt_compiler_flag:'`
12443 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12444 (eval "$lt_compile" 2>out/conftest.err)
12445 ac_status=$?
12446 cat out/conftest.err >&5
12447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12449 then
12450 # The compiler can only warn and ignore the option if not recognized
12451 # So say no if there are warnings
12452 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12453 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12454 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12455 lt_cv_prog_compiler_c_o_FC=yes
12458 chmod u+w . 2>&5
12459 $RM conftest*
12460 # SGI C++ compiler will create directory out/ii_files/ for
12461 # template instantiation
12462 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12463 $RM out/* && rmdir out
12464 cd ..
12465 $RM -r conftest
12466 $RM conftest*
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12470 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12475 hard_links="nottested"
12476 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
12477 # do not overwrite the value of need_locks provided by the user
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12479 $as_echo_n "checking if we can lock with hard links... " >&6; }
12480 hard_links=yes
12481 $RM conftest*
12482 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12483 touch conftest.a
12484 ln conftest.a conftest.b 2>&5 || hard_links=no
12485 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12487 $as_echo "$hard_links" >&6; }
12488 if test "$hard_links" = no; then
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12490 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12491 need_locks=warn
12493 else
12494 need_locks=no
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12500 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12502 runpath_var=
12503 allow_undefined_flag_FC=
12504 always_export_symbols_FC=no
12505 archive_cmds_FC=
12506 archive_expsym_cmds_FC=
12507 compiler_needs_object_FC=no
12508 enable_shared_with_static_runtimes_FC=no
12509 export_dynamic_flag_spec_FC=
12510 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12511 hardcode_automatic_FC=no
12512 hardcode_direct_FC=no
12513 hardcode_direct_absolute_FC=no
12514 hardcode_libdir_flag_spec_FC=
12515 hardcode_libdir_flag_spec_ld_FC=
12516 hardcode_libdir_separator_FC=
12517 hardcode_minus_L_FC=no
12518 hardcode_shlibpath_var_FC=unsupported
12519 inherit_rpath_FC=no
12520 link_all_deplibs_FC=unknown
12521 module_cmds_FC=
12522 module_expsym_cmds_FC=
12523 old_archive_from_new_cmds_FC=
12524 old_archive_from_expsyms_cmds_FC=
12525 thread_safe_flag_spec_FC=
12526 whole_archive_flag_spec_FC=
12527 # include_expsyms should be a list of space-separated symbols to be *always*
12528 # included in the symbol list
12529 include_expsyms_FC=
12530 # exclude_expsyms can be an extended regexp of symbols to exclude
12531 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12532 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12533 # as well as any symbol that contains `d'.
12534 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12535 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12536 # platforms (ab)use it in PIC code, but their linkers get confused if
12537 # the symbol is explicitly referenced. Since portable code cannot
12538 # rely on this symbol name, it's probably fine to never include it in
12539 # preloaded symbol tables.
12540 # Exclude shared library initialization/finalization symbols.
12541 extract_expsyms_cmds=
12543 case $host_os in
12544 cygwin* | mingw* | pw32* | cegcc*)
12545 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12546 # When not using gcc, we currently assume that we are using
12547 # Microsoft Visual C++.
12548 if test "$GCC" != yes; then
12549 with_gnu_ld=no
12552 interix*)
12553 # we just hope/assume this is gcc and not c89 (= MSVC++)
12554 with_gnu_ld=yes
12556 openbsd*)
12557 with_gnu_ld=no
12559 esac
12561 ld_shlibs_FC=yes
12563 # On some targets, GNU ld is compatible enough with the native linker
12564 # that we're better off using the native interface for both.
12565 lt_use_gnu_ld_interface=no
12566 if test "$with_gnu_ld" = yes; then
12567 case $host_os in
12568 aix*)
12569 # The AIX port of GNU ld has always aspired to compatibility
12570 # with the native linker. However, as the warning in the GNU ld
12571 # block says, versions before 2.19.5* couldn't really create working
12572 # shared libraries, regardless of the interface used.
12573 case `$LD -v 2>&1` in
12574 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12575 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12576 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12578 lt_use_gnu_ld_interface=yes
12580 esac
12583 lt_use_gnu_ld_interface=yes
12585 esac
12588 if test "$lt_use_gnu_ld_interface" = yes; then
12589 # If archive_cmds runs LD, not CC, wlarc should be empty
12590 wlarc='${wl}'
12592 # Set some defaults for GNU ld with shared library support. These
12593 # are reset later if shared libraries are not supported. Putting them
12594 # here allows them to be overridden if necessary.
12595 runpath_var=LD_RUN_PATH
12596 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12597 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
12598 # ancient GNU ld didn't support --whole-archive et. al.
12599 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12600 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12601 else
12602 whole_archive_flag_spec_FC=
12604 supports_anon_versioning=no
12605 case `$LD -v 2>&1` in
12606 *GNU\ gold*) supports_anon_versioning=yes ;;
12607 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12608 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12609 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12610 *\ 2.11.*) ;; # other 2.11 versions
12611 *) supports_anon_versioning=yes ;;
12612 esac
12614 # See if GNU ld supports shared libraries.
12615 case $host_os in
12616 aix[3-9]*)
12617 # On AIX/PPC, the GNU linker is very broken
12618 if test "$host_cpu" != ia64; then
12619 ld_shlibs_FC=no
12620 cat <<_LT_EOF 1>&2
12622 *** Warning: the GNU linker, at least up to release 2.19, is reported
12623 *** to be unable to reliably create shared libraries on AIX.
12624 *** Therefore, libtool is disabling shared libraries support. If you
12625 *** really care for shared libraries, you may want to install binutils
12626 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12627 *** You will then need to restart the configuration process.
12629 _LT_EOF
12633 amigaos*)
12634 case $host_cpu in
12635 powerpc)
12636 # see comment about AmigaOS4 .so support
12637 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12638 archive_expsym_cmds_FC=''
12640 m68k)
12641 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)'
12642 hardcode_libdir_flag_spec_FC='-L$libdir'
12643 hardcode_minus_L_FC=yes
12645 esac
12648 beos*)
12649 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12650 allow_undefined_flag_FC=unsupported
12651 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12652 # support --undefined. This deserves some investigation. FIXME
12653 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12654 else
12655 ld_shlibs_FC=no
12659 cygwin* | mingw* | pw32* | cegcc*)
12660 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
12661 # as there is no search path for DLLs.
12662 hardcode_libdir_flag_spec_FC='-L$libdir'
12663 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
12664 allow_undefined_flag_FC=unsupported
12665 always_export_symbols_FC=no
12666 enable_shared_with_static_runtimes_FC=yes
12667 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12669 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12670 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12671 # If the export-symbols file already is a .def file (1st line
12672 # is EXPORTS), use it as is; otherwise, prepend...
12673 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12674 cp $export_symbols $output_objdir/$soname.def;
12675 else
12676 echo EXPORTS > $output_objdir/$soname.def;
12677 cat $export_symbols >> $output_objdir/$soname.def;
12679 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12680 else
12681 ld_shlibs_FC=no
12685 haiku*)
12686 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12687 link_all_deplibs_FC=yes
12690 interix[3-9]*)
12691 hardcode_direct_FC=no
12692 hardcode_shlibpath_var_FC=no
12693 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
12694 export_dynamic_flag_spec_FC='${wl}-E'
12695 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12696 # Instead, shared libraries are loaded at an image base (0x10000000 by
12697 # default) and relocated if they conflict, which is a slow very memory
12698 # consuming and fragmenting process. To avoid this, we pick a random,
12699 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12700 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12701 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'
12702 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'
12705 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12706 tmp_diet=no
12707 if test "$host_os" = linux-dietlibc; then
12708 case $cc_basename in
12709 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12710 esac
12712 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12713 && test "$tmp_diet" = no
12714 then
12715 tmp_addflag=
12716 tmp_sharedflag='-shared'
12717 case $cc_basename,$host_cpu in
12718 pgcc*) # Portland Group C compiler
12719 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'
12720 tmp_addflag=' $pic_flag'
12722 pgf77* | pgf90* | pgf95* | pgfortran*)
12723 # Portland Group f77 and f90 compilers
12724 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'
12725 tmp_addflag=' $pic_flag -Mnomain' ;;
12726 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12727 tmp_addflag=' -i_dynamic' ;;
12728 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12729 tmp_addflag=' -i_dynamic -nofor_main' ;;
12730 ifc* | ifort*) # Intel Fortran compiler
12731 tmp_addflag=' -nofor_main' ;;
12732 lf95*) # Lahey Fortran 8.1
12733 whole_archive_flag_spec_FC=
12734 tmp_sharedflag='--shared' ;;
12735 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12736 tmp_sharedflag='-qmkshrobj'
12737 tmp_addflag= ;;
12738 nvcc*) # Cuda Compiler Driver 2.2
12739 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'
12740 compiler_needs_object_FC=yes
12742 esac
12743 case `$CC -V 2>&1 | sed 5q` in
12744 *Sun\ C*) # Sun C 5.9
12745 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'
12746 compiler_needs_object_FC=yes
12747 tmp_sharedflag='-G' ;;
12748 *Sun\ F*) # Sun Fortran 8.3
12749 tmp_sharedflag='-G' ;;
12750 esac
12751 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12753 if test "x$supports_anon_versioning" = xyes; then
12754 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
12755 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12756 echo "local: *; };" >> $output_objdir/$libname.ver~
12757 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12760 case $cc_basename in
12761 xlf* | bgf* | bgxlf* | mpixlf*)
12762 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12763 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
12764 hardcode_libdir_flag_spec_FC=
12765 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
12766 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12767 if test "x$supports_anon_versioning" = xyes; then
12768 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
12769 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12770 echo "local: *; };" >> $output_objdir/$libname.ver~
12771 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12774 esac
12775 else
12776 ld_shlibs_FC=no
12780 netbsd*)
12781 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12782 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12783 wlarc=
12784 else
12785 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12786 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12790 solaris*)
12791 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12792 ld_shlibs_FC=no
12793 cat <<_LT_EOF 1>&2
12795 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12796 *** create shared libraries on Solaris systems. Therefore, libtool
12797 *** is disabling shared libraries support. We urge you to upgrade GNU
12798 *** binutils to release 2.9.1 or newer. Another option is to modify
12799 *** your PATH or compiler configuration so that the native linker is
12800 *** used, and then restart.
12802 _LT_EOF
12803 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12804 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12805 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12806 else
12807 ld_shlibs_FC=no
12811 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12812 case `$LD -v 2>&1` in
12813 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12814 ld_shlibs_FC=no
12815 cat <<_LT_EOF 1>&2
12817 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12818 *** reliably create shared libraries on SCO systems. Therefore, libtool
12819 *** is disabling shared libraries support. We urge you to upgrade GNU
12820 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12821 *** your PATH or compiler configuration so that the native linker is
12822 *** used, and then restart.
12824 _LT_EOF
12827 # For security reasons, it is highly recommended that you always
12828 # use absolute paths for naming shared libraries, and exclude the
12829 # DT_RUNPATH tag from executables and libraries. But doing so
12830 # requires that you compile everything twice, which is a pain.
12831 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12832 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12833 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12834 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12835 else
12836 ld_shlibs_FC=no
12839 esac
12842 sunos4*)
12843 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12844 wlarc=
12845 hardcode_direct_FC=yes
12846 hardcode_shlibpath_var_FC=no
12850 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12851 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12852 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12853 else
12854 ld_shlibs_FC=no
12857 esac
12859 if test "$ld_shlibs_FC" = no; then
12860 runpath_var=
12861 hardcode_libdir_flag_spec_FC=
12862 export_dynamic_flag_spec_FC=
12863 whole_archive_flag_spec_FC=
12865 else
12866 # PORTME fill in a description of your system's linker (not GNU ld)
12867 case $host_os in
12868 aix3*)
12869 allow_undefined_flag_FC=unsupported
12870 always_export_symbols_FC=yes
12871 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'
12872 # Note: this linker hardcodes the directories in LIBPATH if there
12873 # are no directories specified by -L.
12874 hardcode_minus_L_FC=yes
12875 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12876 # Neither direct hardcoding nor static linking is supported with a
12877 # broken collect2.
12878 hardcode_direct_FC=unsupported
12882 aix[4-9]*)
12883 if test "$host_cpu" = ia64; then
12884 # On IA64, the linker does run time linking by default, so we don't
12885 # have to do anything special.
12886 aix_use_runtimelinking=no
12887 exp_sym_flag='-Bexport'
12888 no_entry_flag=""
12889 else
12890 # If we're using GNU nm, then we don't want the "-C" option.
12891 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12892 # Also, AIX nm treats weak defined symbols like other global
12893 # defined symbols, whereas GNU nm marks them as "W".
12894 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12895 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'
12896 else
12897 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'
12899 aix_use_runtimelinking=no
12901 # Test if we are trying to use run time linking or normal
12902 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12903 # need to do runtime linking.
12904 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12905 for ld_flag in $LDFLAGS; do
12906 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12907 aix_use_runtimelinking=yes
12908 break
12910 done
12912 esac
12914 exp_sym_flag='-bexport'
12915 no_entry_flag='-bnoentry'
12918 # When large executables or shared objects are built, AIX ld can
12919 # have problems creating the table of contents. If linking a library
12920 # or program results in "error TOC overflow" add -mminimal-toc to
12921 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12922 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12924 archive_cmds_FC=''
12925 hardcode_direct_FC=yes
12926 hardcode_direct_absolute_FC=yes
12927 hardcode_libdir_separator_FC=':'
12928 link_all_deplibs_FC=yes
12929 file_list_spec_FC='${wl}-f,'
12931 if test "$GCC" = yes; then
12932 case $host_os in aix4.[012]|aix4.[012].*)
12933 # We only want to do this on AIX 4.2 and lower, the check
12934 # below for broken collect2 doesn't work under 4.3+
12935 collect2name=`${CC} -print-prog-name=collect2`
12936 if test -f "$collect2name" &&
12937 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12938 then
12939 # We have reworked collect2
12941 else
12942 # We have old collect2
12943 hardcode_direct_FC=unsupported
12944 # It fails to find uninstalled libraries when the uninstalled
12945 # path is not listed in the libpath. Setting hardcode_minus_L
12946 # to unsupported forces relinking
12947 hardcode_minus_L_FC=yes
12948 hardcode_libdir_flag_spec_FC='-L$libdir'
12949 hardcode_libdir_separator_FC=
12952 esac
12953 shared_flag='-shared'
12954 if test "$aix_use_runtimelinking" = yes; then
12955 shared_flag="$shared_flag "'${wl}-G'
12957 else
12958 # not using gcc
12959 if test "$host_cpu" = ia64; then
12960 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12961 # chokes on -Wl,-G. The following line is correct:
12962 shared_flag='-G'
12963 else
12964 if test "$aix_use_runtimelinking" = yes; then
12965 shared_flag='${wl}-G'
12966 else
12967 shared_flag='${wl}-bM:SRE'
12972 export_dynamic_flag_spec_FC='${wl}-bexpall'
12973 # It seems that -bexpall does not export symbols beginning with
12974 # underscore (_), so it is better to generate a list of symbols to export.
12975 always_export_symbols_FC=yes
12976 if test "$aix_use_runtimelinking" = yes; then
12977 # Warning - without using the other runtime loading flags (-brtl),
12978 # -berok will link without error, but may produce a broken library.
12979 allow_undefined_flag_FC='-berok'
12980 # Determine the default libpath from the value encoded in an
12981 # empty executable.
12982 cat > conftest.$ac_ext <<_ACEOF
12983 program main
12986 _ACEOF
12987 if ac_fn_fc_try_link "$LINENO"; then :
12989 lt_aix_libpath_sed='
12990 /Import File Strings/,/^$/ {
12991 /^0/ {
12992 s/^0 *\(.*\)$/\1/
12996 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12997 # Check for a 64-bit object if we didn't find anything.
12998 if test -z "$aix_libpath"; then
12999 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13002 rm -f core conftest.err conftest.$ac_objext \
13003 conftest$ac_exeext conftest.$ac_ext
13004 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13006 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13007 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"
13008 else
13009 if test "$host_cpu" = ia64; then
13010 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
13011 allow_undefined_flag_FC="-z nodefs"
13012 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"
13013 else
13014 # Determine the default libpath from the value encoded in an
13015 # empty executable.
13016 cat > conftest.$ac_ext <<_ACEOF
13017 program main
13020 _ACEOF
13021 if ac_fn_fc_try_link "$LINENO"; then :
13023 lt_aix_libpath_sed='
13024 /Import File Strings/,/^$/ {
13025 /^0/ {
13026 s/^0 *\(.*\)$/\1/
13030 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13031 # Check for a 64-bit object if we didn't find anything.
13032 if test -z "$aix_libpath"; then
13033 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13036 rm -f core conftest.err conftest.$ac_objext \
13037 conftest$ac_exeext conftest.$ac_ext
13038 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13040 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13041 # Warning - without using the other run time loading flags,
13042 # -berok will link without error, but may produce a broken library.
13043 no_undefined_flag_FC=' ${wl}-bernotok'
13044 allow_undefined_flag_FC=' ${wl}-berok'
13045 if test "$with_gnu_ld" = yes; then
13046 # We only use this code for GNU lds that support --whole-archive.
13047 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13048 else
13049 # Exported symbols can be pulled into shared objects from archives
13050 whole_archive_flag_spec_FC='$convenience'
13052 archive_cmds_need_lc_FC=yes
13053 # This is similar to how AIX traditionally builds its shared libraries.
13054 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'
13059 amigaos*)
13060 case $host_cpu in
13061 powerpc)
13062 # see comment about AmigaOS4 .so support
13063 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13064 archive_expsym_cmds_FC=''
13066 m68k)
13067 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)'
13068 hardcode_libdir_flag_spec_FC='-L$libdir'
13069 hardcode_minus_L_FC=yes
13071 esac
13074 bsdi[45]*)
13075 export_dynamic_flag_spec_FC=-rdynamic
13078 cygwin* | mingw* | pw32* | cegcc*)
13079 # When not using gcc, we currently assume that we are using
13080 # Microsoft Visual C++.
13081 # hardcode_libdir_flag_spec is actually meaningless, as there is
13082 # no search path for DLLs.
13083 hardcode_libdir_flag_spec_FC=' '
13084 allow_undefined_flag_FC=unsupported
13085 # Tell ltmain to make .lib files, not .a files.
13086 libext=lib
13087 # Tell ltmain to make .dll files, not .so files.
13088 shrext_cmds=".dll"
13089 # FIXME: Setting linknames here is a bad hack.
13090 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13091 # The linker will automatically build a .lib file if we build a DLL.
13092 old_archive_from_new_cmds_FC='true'
13093 # FIXME: Should let the user specify the lib program.
13094 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
13095 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
13096 enable_shared_with_static_runtimes_FC=yes
13099 darwin* | rhapsody*)
13102 archive_cmds_need_lc_FC=no
13103 hardcode_direct_FC=no
13104 hardcode_automatic_FC=yes
13105 hardcode_shlibpath_var_FC=unsupported
13106 if test "$lt_cv_ld_force_load" = "yes"; then
13107 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\"`'
13108 else
13109 whole_archive_flag_spec_FC=''
13111 link_all_deplibs_FC=yes
13112 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
13113 case $cc_basename in
13114 ifort*) _lt_dar_can_shared=yes ;;
13115 *) _lt_dar_can_shared=$GCC ;;
13116 esac
13117 if test "$_lt_dar_can_shared" = "yes"; then
13118 output_verbose_link_cmd=func_echo_all
13119 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}"
13120 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13121 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}"
13122 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}"
13124 else
13125 ld_shlibs_FC=no
13130 dgux*)
13131 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13132 hardcode_libdir_flag_spec_FC='-L$libdir'
13133 hardcode_shlibpath_var_FC=no
13136 freebsd1*)
13137 ld_shlibs_FC=no
13140 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13141 # support. Future versions do this automatically, but an explicit c++rt0.o
13142 # does not break anything, and helps significantly (at the cost of a little
13143 # extra space).
13144 freebsd2.2*)
13145 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13146 hardcode_libdir_flag_spec_FC='-R$libdir'
13147 hardcode_direct_FC=yes
13148 hardcode_shlibpath_var_FC=no
13151 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13152 freebsd2*)
13153 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13154 hardcode_direct_FC=yes
13155 hardcode_minus_L_FC=yes
13156 hardcode_shlibpath_var_FC=no
13159 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13160 freebsd* | dragonfly*)
13161 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13162 hardcode_libdir_flag_spec_FC='-R$libdir'
13163 hardcode_direct_FC=yes
13164 hardcode_shlibpath_var_FC=no
13167 hpux9*)
13168 if test "$GCC" = yes; then
13169 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'
13170 else
13171 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'
13173 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13174 hardcode_libdir_separator_FC=:
13175 hardcode_direct_FC=yes
13177 # hardcode_minus_L: Not really in the search PATH,
13178 # but as the default location of the library.
13179 hardcode_minus_L_FC=yes
13180 export_dynamic_flag_spec_FC='${wl}-E'
13183 hpux10*)
13184 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13185 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13186 else
13187 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13189 if test "$with_gnu_ld" = no; then
13190 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13191 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
13192 hardcode_libdir_separator_FC=:
13193 hardcode_direct_FC=yes
13194 hardcode_direct_absolute_FC=yes
13195 export_dynamic_flag_spec_FC='${wl}-E'
13196 # hardcode_minus_L: Not really in the search PATH,
13197 # but as the default location of the library.
13198 hardcode_minus_L_FC=yes
13202 hpux11*)
13203 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13204 case $host_cpu in
13205 hppa*64*)
13206 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13208 ia64*)
13209 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13212 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13214 esac
13215 else
13216 case $host_cpu in
13217 hppa*64*)
13218 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13220 ia64*)
13221 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13224 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13226 esac
13228 if test "$with_gnu_ld" = no; then
13229 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13230 hardcode_libdir_separator_FC=:
13232 case $host_cpu in
13233 hppa*64*|ia64*)
13234 hardcode_direct_FC=no
13235 hardcode_shlibpath_var_FC=no
13238 hardcode_direct_FC=yes
13239 hardcode_direct_absolute_FC=yes
13240 export_dynamic_flag_spec_FC='${wl}-E'
13242 # hardcode_minus_L: Not really in the search PATH,
13243 # but as the default location of the library.
13244 hardcode_minus_L_FC=yes
13246 esac
13250 irix5* | irix6* | nonstopux*)
13251 if test "$GCC" = yes; then
13252 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'
13253 # Try to use the -exported_symbol ld option, if it does not
13254 # work, assume that -exports_file does not work either and
13255 # implicitly export all symbols.
13256 save_LDFLAGS="$LDFLAGS"
13257 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13258 cat > conftest.$ac_ext <<_ACEOF
13259 int foo(void) {}
13260 _ACEOF
13261 if ac_fn_fc_try_link "$LINENO"; then :
13262 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'
13265 rm -f core conftest.err conftest.$ac_objext \
13266 conftest$ac_exeext conftest.$ac_ext
13267 LDFLAGS="$save_LDFLAGS"
13268 else
13269 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'
13270 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'
13272 archive_cmds_need_lc_FC='no'
13273 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13274 hardcode_libdir_separator_FC=:
13275 inherit_rpath_FC=yes
13276 link_all_deplibs_FC=yes
13279 netbsd*)
13280 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13281 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13282 else
13283 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13285 hardcode_libdir_flag_spec_FC='-R$libdir'
13286 hardcode_direct_FC=yes
13287 hardcode_shlibpath_var_FC=no
13290 newsos6)
13291 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13292 hardcode_direct_FC=yes
13293 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13294 hardcode_libdir_separator_FC=:
13295 hardcode_shlibpath_var_FC=no
13298 *nto* | *qnx*)
13301 openbsd*)
13302 if test -f /usr/libexec/ld.so; then
13303 hardcode_direct_FC=yes
13304 hardcode_shlibpath_var_FC=no
13305 hardcode_direct_absolute_FC=yes
13306 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13307 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13308 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13309 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13310 export_dynamic_flag_spec_FC='${wl}-E'
13311 else
13312 case $host_os in
13313 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13314 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13315 hardcode_libdir_flag_spec_FC='-R$libdir'
13318 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13319 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13321 esac
13323 else
13324 ld_shlibs_FC=no
13328 os2*)
13329 hardcode_libdir_flag_spec_FC='-L$libdir'
13330 hardcode_minus_L_FC=yes
13331 allow_undefined_flag_FC=unsupported
13332 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'
13333 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13336 osf3*)
13337 if test "$GCC" = yes; then
13338 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13339 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'
13340 else
13341 allow_undefined_flag_FC=' -expect_unresolved \*'
13342 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'
13344 archive_cmds_need_lc_FC='no'
13345 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13346 hardcode_libdir_separator_FC=:
13349 osf4* | osf5*) # as osf3* with the addition of -msym flag
13350 if test "$GCC" = yes; then
13351 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13352 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'
13353 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13354 else
13355 allow_undefined_flag_FC=' -expect_unresolved \*'
13356 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'
13357 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~
13358 $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'
13360 # Both c and cxx compiler support -rpath directly
13361 hardcode_libdir_flag_spec_FC='-rpath $libdir'
13363 archive_cmds_need_lc_FC='no'
13364 hardcode_libdir_separator_FC=:
13367 solaris*)
13368 no_undefined_flag_FC=' -z defs'
13369 if test "$GCC" = yes; then
13370 wlarc='${wl}'
13371 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13372 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13373 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13374 else
13375 case `$CC -V 2>&1` in
13376 *"Compilers 5.0"*)
13377 wlarc=''
13378 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13379 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13380 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13383 wlarc='${wl}'
13384 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13385 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13386 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13388 esac
13390 hardcode_libdir_flag_spec_FC='-R$libdir'
13391 hardcode_shlibpath_var_FC=no
13392 case $host_os in
13393 solaris2.[0-5] | solaris2.[0-5].*) ;;
13395 # The compiler driver will combine and reorder linker options,
13396 # but understands `-z linker_flag'. GCC discards it without `$wl',
13397 # but is careful enough not to reorder.
13398 # Supported since Solaris 2.6 (maybe 2.5.1?)
13399 if test "$GCC" = yes; then
13400 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13401 else
13402 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
13405 esac
13406 link_all_deplibs_FC=yes
13409 sunos4*)
13410 if test "x$host_vendor" = xsequent; then
13411 # Use $CC to link under sequent, because it throws in some extra .o
13412 # files that make .init and .fini sections work.
13413 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13414 else
13415 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13417 hardcode_libdir_flag_spec_FC='-L$libdir'
13418 hardcode_direct_FC=yes
13419 hardcode_minus_L_FC=yes
13420 hardcode_shlibpath_var_FC=no
13423 sysv4)
13424 case $host_vendor in
13425 sni)
13426 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13427 hardcode_direct_FC=yes # is this really true???
13429 siemens)
13430 ## LD is ld it makes a PLAMLIB
13431 ## CC just makes a GrossModule.
13432 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13433 reload_cmds_FC='$CC -r -o $output$reload_objs'
13434 hardcode_direct_FC=no
13436 motorola)
13437 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13438 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
13440 esac
13441 runpath_var='LD_RUN_PATH'
13442 hardcode_shlibpath_var_FC=no
13445 sysv4.3*)
13446 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13447 hardcode_shlibpath_var_FC=no
13448 export_dynamic_flag_spec_FC='-Bexport'
13451 sysv4*MP*)
13452 if test -d /usr/nec; then
13453 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13454 hardcode_shlibpath_var_FC=no
13455 runpath_var=LD_RUN_PATH
13456 hardcode_runpath_var=yes
13457 ld_shlibs_FC=yes
13461 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13462 no_undefined_flag_FC='${wl}-z,text'
13463 archive_cmds_need_lc_FC=no
13464 hardcode_shlibpath_var_FC=no
13465 runpath_var='LD_RUN_PATH'
13467 if test "$GCC" = yes; then
13468 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13469 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13470 else
13471 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13472 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13476 sysv5* | sco3.2v5* | sco5v6*)
13477 # Note: We can NOT use -z defs as we might desire, because we do not
13478 # link with -lc, and that would cause any symbols used from libc to
13479 # always be unresolved, which means just about no library would
13480 # ever link correctly. If we're not using GNU ld we use -z text
13481 # though, which does catch some bad symbols but isn't as heavy-handed
13482 # as -z defs.
13483 no_undefined_flag_FC='${wl}-z,text'
13484 allow_undefined_flag_FC='${wl}-z,nodefs'
13485 archive_cmds_need_lc_FC=no
13486 hardcode_shlibpath_var_FC=no
13487 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
13488 hardcode_libdir_separator_FC=':'
13489 link_all_deplibs_FC=yes
13490 export_dynamic_flag_spec_FC='${wl}-Bexport'
13491 runpath_var='LD_RUN_PATH'
13493 if test "$GCC" = yes; then
13494 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13495 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13496 else
13497 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13498 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13502 uts4*)
13503 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13504 hardcode_libdir_flag_spec_FC='-L$libdir'
13505 hardcode_shlibpath_var_FC=no
13509 ld_shlibs_FC=no
13511 esac
13513 if test x$host_vendor = xsni; then
13514 case $host in
13515 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13516 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
13518 esac
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
13523 $as_echo "$ld_shlibs_FC" >&6; }
13524 test "$ld_shlibs_FC" = no && can_build_shared=no
13526 with_gnu_ld_FC=$with_gnu_ld
13534 # Do we need to explicitly link libc?
13536 case "x$archive_cmds_need_lc_FC" in
13537 x|xyes)
13538 # Assume -lc should be added
13539 archive_cmds_need_lc_FC=yes
13541 if test "$enable_shared" = yes && test "$GCC" = yes; then
13542 case $archive_cmds_FC in
13543 *'~'*)
13544 # FIXME: we may have to deal with multi-command sequences.
13546 '$CC '*)
13547 # Test whether the compiler implicitly links with -lc since on some
13548 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13549 # to ld, don't add -lc before -lgcc.
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13551 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13552 if test "${lt_cv_archive_cmds_need_lc_FC+set}" = set; then :
13553 $as_echo_n "(cached) " >&6
13554 else
13555 $RM conftest*
13556 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13558 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13559 (eval $ac_compile) 2>&5
13560 ac_status=$?
13561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13562 test $ac_status = 0; } 2>conftest.err; then
13563 soname=conftest
13564 lib=conftest
13565 libobjs=conftest.$ac_objext
13566 deplibs=
13567 wl=$lt_prog_compiler_wl_FC
13568 pic_flag=$lt_prog_compiler_pic_FC
13569 compiler_flags=-v
13570 linker_flags=-v
13571 verstring=
13572 output_objdir=.
13573 libname=conftest
13574 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
13575 allow_undefined_flag_FC=
13576 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13577 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13578 ac_status=$?
13579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13580 test $ac_status = 0; }
13581 then
13582 lt_cv_archive_cmds_need_lc_FC=no
13583 else
13584 lt_cv_archive_cmds_need_lc_FC=yes
13586 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
13587 else
13588 cat conftest.err 1>&5
13590 $RM conftest*
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
13594 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
13595 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
13597 esac
13600 esac
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13666 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13668 library_names_spec=
13669 libname_spec='lib$name'
13670 soname_spec=
13671 shrext_cmds=".so"
13672 postinstall_cmds=
13673 postuninstall_cmds=
13674 finish_cmds=
13675 finish_eval=
13676 shlibpath_var=
13677 shlibpath_overrides_runpath=unknown
13678 version_type=none
13679 dynamic_linker="$host_os ld.so"
13680 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13681 need_lib_prefix=unknown
13682 hardcode_into_libs=no
13684 # when you set need_version to no, make sure it does not cause -set_version
13685 # flags to be left without arguments
13686 need_version=unknown
13688 case $host_os in
13689 aix3*)
13690 version_type=linux
13691 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13692 shlibpath_var=LIBPATH
13694 # AIX 3 has no versioning support, so we append a major version to the name.
13695 soname_spec='${libname}${release}${shared_ext}$major'
13698 aix[4-9]*)
13699 version_type=linux
13700 need_lib_prefix=no
13701 need_version=no
13702 hardcode_into_libs=yes
13703 if test "$host_cpu" = ia64; then
13704 # AIX 5 supports IA64
13705 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13706 shlibpath_var=LD_LIBRARY_PATH
13707 else
13708 # With GCC up to 2.95.x, collect2 would create an import file
13709 # for dependence libraries. The import file would start with
13710 # the line `#! .'. This would cause the generated library to
13711 # depend on `.', always an invalid library. This was fixed in
13712 # development snapshots of GCC prior to 3.0.
13713 case $host_os in
13714 aix4 | aix4.[01] | aix4.[01].*)
13715 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13716 echo ' yes '
13717 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13719 else
13720 can_build_shared=no
13723 esac
13724 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13725 # soname into executable. Probably we can add versioning support to
13726 # collect2, so additional links can be useful in future.
13727 if test "$aix_use_runtimelinking" = yes; then
13728 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13729 # instead of lib<name>.a to let people know that these are not
13730 # typical AIX shared libraries.
13731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13732 else
13733 # We preserve .a as extension for shared libraries through AIX4.2
13734 # and later when we are not doing run time linking.
13735 library_names_spec='${libname}${release}.a $libname.a'
13736 soname_spec='${libname}${release}${shared_ext}$major'
13738 shlibpath_var=LIBPATH
13742 amigaos*)
13743 case $host_cpu in
13744 powerpc)
13745 # Since July 2007 AmigaOS4 officially supports .so libraries.
13746 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13749 m68k)
13750 library_names_spec='$libname.ixlibrary $libname.a'
13751 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13752 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'
13754 esac
13757 beos*)
13758 library_names_spec='${libname}${shared_ext}'
13759 dynamic_linker="$host_os ld.so"
13760 shlibpath_var=LIBRARY_PATH
13763 bsdi[45]*)
13764 version_type=linux
13765 need_version=no
13766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13767 soname_spec='${libname}${release}${shared_ext}$major'
13768 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13769 shlibpath_var=LD_LIBRARY_PATH
13770 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13771 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13772 # the default ld.so.conf also contains /usr/contrib/lib and
13773 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13774 # libtool to hard-code these into programs
13777 cygwin* | mingw* | pw32* | cegcc*)
13778 version_type=windows
13779 shrext_cmds=".dll"
13780 need_version=no
13781 need_lib_prefix=no
13783 case $GCC,$host_os in
13784 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13785 library_names_spec='$libname.dll.a'
13786 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13787 postinstall_cmds='base_file=`basename \${file}`~
13788 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13789 dldir=$destdir/`dirname \$dlpath`~
13790 test -d \$dldir || mkdir -p \$dldir~
13791 $install_prog $dir/$dlname \$dldir/$dlname~
13792 chmod a+x \$dldir/$dlname~
13793 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13794 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13796 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13797 dlpath=$dir/\$dldll~
13798 $RM \$dlpath'
13799 shlibpath_overrides_runpath=yes
13801 case $host_os in
13802 cygwin*)
13803 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13804 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13807 mingw* | cegcc*)
13808 # MinGW DLLs use traditional 'lib' prefix
13809 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13811 pw32*)
13812 # pw32 DLLs use 'pw' prefix rather than 'lib'
13813 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13815 esac
13819 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13821 esac
13822 dynamic_linker='Win32 ld.exe'
13823 # FIXME: first we should search . and the directory the executable is in
13824 shlibpath_var=PATH
13827 darwin* | rhapsody*)
13828 dynamic_linker="$host_os dyld"
13829 version_type=darwin
13830 need_lib_prefix=no
13831 need_version=no
13832 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13833 soname_spec='${libname}${release}${major}$shared_ext'
13834 shlibpath_overrides_runpath=yes
13835 shlibpath_var=DYLD_LIBRARY_PATH
13836 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13838 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13841 dgux*)
13842 version_type=linux
13843 need_lib_prefix=no
13844 need_version=no
13845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13846 soname_spec='${libname}${release}${shared_ext}$major'
13847 shlibpath_var=LD_LIBRARY_PATH
13850 freebsd1*)
13851 dynamic_linker=no
13854 freebsd* | dragonfly*)
13855 # DragonFly does not have aout. When/if they implement a new
13856 # versioning mechanism, adjust this.
13857 if test -x /usr/bin/objformat; then
13858 objformat=`/usr/bin/objformat`
13859 else
13860 case $host_os in
13861 freebsd[123]*) objformat=aout ;;
13862 *) objformat=elf ;;
13863 esac
13865 version_type=freebsd-$objformat
13866 case $version_type in
13867 freebsd-elf*)
13868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13869 need_version=no
13870 need_lib_prefix=no
13872 freebsd-*)
13873 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13874 need_version=yes
13876 esac
13877 shlibpath_var=LD_LIBRARY_PATH
13878 case $host_os in
13879 freebsd2*)
13880 shlibpath_overrides_runpath=yes
13882 freebsd3.[01]* | freebsdelf3.[01]*)
13883 shlibpath_overrides_runpath=yes
13884 hardcode_into_libs=yes
13886 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13887 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13888 shlibpath_overrides_runpath=no
13889 hardcode_into_libs=yes
13891 *) # from 4.6 on, and DragonFly
13892 shlibpath_overrides_runpath=yes
13893 hardcode_into_libs=yes
13895 esac
13898 gnu*)
13899 version_type=linux
13900 need_lib_prefix=no
13901 need_version=no
13902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13903 soname_spec='${libname}${release}${shared_ext}$major'
13904 shlibpath_var=LD_LIBRARY_PATH
13905 hardcode_into_libs=yes
13908 haiku*)
13909 version_type=linux
13910 need_lib_prefix=no
13911 need_version=no
13912 dynamic_linker="$host_os runtime_loader"
13913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13914 soname_spec='${libname}${release}${shared_ext}$major'
13915 shlibpath_var=LIBRARY_PATH
13916 shlibpath_overrides_runpath=yes
13917 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
13918 hardcode_into_libs=yes
13921 hpux9* | hpux10* | hpux11*)
13922 # Give a soname corresponding to the major version so that dld.sl refuses to
13923 # link against other versions.
13924 version_type=sunos
13925 need_lib_prefix=no
13926 need_version=no
13927 case $host_cpu in
13928 ia64*)
13929 shrext_cmds='.so'
13930 hardcode_into_libs=yes
13931 dynamic_linker="$host_os dld.so"
13932 shlibpath_var=LD_LIBRARY_PATH
13933 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13935 soname_spec='${libname}${release}${shared_ext}$major'
13936 if test "X$HPUX_IA64_MODE" = X32; then
13937 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13938 else
13939 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13941 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13943 hppa*64*)
13944 shrext_cmds='.sl'
13945 hardcode_into_libs=yes
13946 dynamic_linker="$host_os dld.sl"
13947 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13948 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13950 soname_spec='${libname}${release}${shared_ext}$major'
13951 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13952 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13955 shrext_cmds='.sl'
13956 dynamic_linker="$host_os dld.sl"
13957 shlibpath_var=SHLIB_PATH
13958 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13960 soname_spec='${libname}${release}${shared_ext}$major'
13962 esac
13963 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13964 postinstall_cmds='chmod 555 $lib'
13965 # or fails outright, so override atomically:
13966 install_override_mode=555
13969 interix[3-9]*)
13970 version_type=linux
13971 need_lib_prefix=no
13972 need_version=no
13973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13974 soname_spec='${libname}${release}${shared_ext}$major'
13975 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13976 shlibpath_var=LD_LIBRARY_PATH
13977 shlibpath_overrides_runpath=no
13978 hardcode_into_libs=yes
13981 irix5* | irix6* | nonstopux*)
13982 case $host_os in
13983 nonstopux*) version_type=nonstopux ;;
13985 if test "$lt_cv_prog_gnu_ld" = yes; then
13986 version_type=linux
13987 else
13988 version_type=irix
13989 fi ;;
13990 esac
13991 need_lib_prefix=no
13992 need_version=no
13993 soname_spec='${libname}${release}${shared_ext}$major'
13994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13995 case $host_os in
13996 irix5* | nonstopux*)
13997 libsuff= shlibsuff=
14000 case $LD in # libtool.m4 will add one of these switches to LD
14001 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14002 libsuff= shlibsuff= libmagic=32-bit;;
14003 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14004 libsuff=32 shlibsuff=N32 libmagic=N32;;
14005 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14006 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14007 *) libsuff= shlibsuff= libmagic=never-match;;
14008 esac
14010 esac
14011 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14012 shlibpath_overrides_runpath=no
14013 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14014 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14015 hardcode_into_libs=yes
14018 # No shared lib support for Linux oldld, aout, or coff.
14019 linux*oldld* | linux*aout* | linux*coff*)
14020 dynamic_linker=no
14023 # This must be Linux ELF.
14024 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14025 version_type=linux
14026 need_lib_prefix=no
14027 need_version=no
14028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14029 soname_spec='${libname}${release}${shared_ext}$major'
14030 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14031 shlibpath_var=LD_LIBRARY_PATH
14032 shlibpath_overrides_runpath=no
14034 # Some binutils ld are patched to set DT_RUNPATH
14035 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14036 $as_echo_n "(cached) " >&6
14037 else
14038 lt_cv_shlibpath_overrides_runpath=no
14039 save_LDFLAGS=$LDFLAGS
14040 save_libdir=$libdir
14041 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
14042 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
14043 cat > conftest.$ac_ext <<_ACEOF
14044 program main
14047 _ACEOF
14048 if ac_fn_fc_try_link "$LINENO"; then :
14049 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14050 lt_cv_shlibpath_overrides_runpath=yes
14053 rm -f core conftest.err conftest.$ac_objext \
14054 conftest$ac_exeext conftest.$ac_ext
14055 LDFLAGS=$save_LDFLAGS
14056 libdir=$save_libdir
14060 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14062 # This implies no fast_install, which is unacceptable.
14063 # Some rework will be needed to allow for fast_install
14064 # before this can be enabled.
14065 hardcode_into_libs=yes
14067 # Append ld.so.conf contents to the search path
14068 if test -f /etc/ld.so.conf; then
14069 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' ' '`
14070 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14073 # We used to test for /lib/ld.so.1 and disable shared libraries on
14074 # powerpc, because MkLinux only supported shared libraries with the
14075 # GNU dynamic linker. Since this was broken with cross compilers,
14076 # most powerpc-linux boxes support dynamic linking these days and
14077 # people can always --disable-shared, the test was removed, and we
14078 # assume the GNU/Linux dynamic linker is in use.
14079 dynamic_linker='GNU/Linux ld.so'
14082 netbsd*)
14083 version_type=sunos
14084 need_lib_prefix=no
14085 need_version=no
14086 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14088 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14089 dynamic_linker='NetBSD (a.out) ld.so'
14090 else
14091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14092 soname_spec='${libname}${release}${shared_ext}$major'
14093 dynamic_linker='NetBSD ld.elf_so'
14095 shlibpath_var=LD_LIBRARY_PATH
14096 shlibpath_overrides_runpath=yes
14097 hardcode_into_libs=yes
14100 newsos6)
14101 version_type=linux
14102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14103 shlibpath_var=LD_LIBRARY_PATH
14104 shlibpath_overrides_runpath=yes
14107 *nto* | *qnx*)
14108 version_type=qnx
14109 need_lib_prefix=no
14110 need_version=no
14111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14112 soname_spec='${libname}${release}${shared_ext}$major'
14113 shlibpath_var=LD_LIBRARY_PATH
14114 shlibpath_overrides_runpath=no
14115 hardcode_into_libs=yes
14116 dynamic_linker='ldqnx.so'
14119 openbsd*)
14120 version_type=sunos
14121 sys_lib_dlsearch_path_spec="/usr/lib"
14122 need_lib_prefix=no
14123 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14124 case $host_os in
14125 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14126 *) need_version=no ;;
14127 esac
14128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14129 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14130 shlibpath_var=LD_LIBRARY_PATH
14131 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14132 case $host_os in
14133 openbsd2.[89] | openbsd2.[89].*)
14134 shlibpath_overrides_runpath=no
14137 shlibpath_overrides_runpath=yes
14139 esac
14140 else
14141 shlibpath_overrides_runpath=yes
14145 os2*)
14146 libname_spec='$name'
14147 shrext_cmds=".dll"
14148 need_lib_prefix=no
14149 library_names_spec='$libname${shared_ext} $libname.a'
14150 dynamic_linker='OS/2 ld.exe'
14151 shlibpath_var=LIBPATH
14154 osf3* | osf4* | osf5*)
14155 version_type=osf
14156 need_lib_prefix=no
14157 need_version=no
14158 soname_spec='${libname}${release}${shared_ext}$major'
14159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14160 shlibpath_var=LD_LIBRARY_PATH
14161 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14162 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14165 rdos*)
14166 dynamic_linker=no
14169 solaris*)
14170 version_type=linux
14171 need_lib_prefix=no
14172 need_version=no
14173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14174 soname_spec='${libname}${release}${shared_ext}$major'
14175 shlibpath_var=LD_LIBRARY_PATH
14176 shlibpath_overrides_runpath=yes
14177 hardcode_into_libs=yes
14178 # ldd complains unless libraries are executable
14179 postinstall_cmds='chmod +x $lib'
14182 sunos4*)
14183 version_type=sunos
14184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14185 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14186 shlibpath_var=LD_LIBRARY_PATH
14187 shlibpath_overrides_runpath=yes
14188 if test "$with_gnu_ld" = yes; then
14189 need_lib_prefix=no
14191 need_version=yes
14194 sysv4 | sysv4.3*)
14195 version_type=linux
14196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14197 soname_spec='${libname}${release}${shared_ext}$major'
14198 shlibpath_var=LD_LIBRARY_PATH
14199 case $host_vendor in
14200 sni)
14201 shlibpath_overrides_runpath=no
14202 need_lib_prefix=no
14203 runpath_var=LD_RUN_PATH
14205 siemens)
14206 need_lib_prefix=no
14208 motorola)
14209 need_lib_prefix=no
14210 need_version=no
14211 shlibpath_overrides_runpath=no
14212 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14214 esac
14217 sysv4*MP*)
14218 if test -d /usr/nec ;then
14219 version_type=linux
14220 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14221 soname_spec='$libname${shared_ext}.$major'
14222 shlibpath_var=LD_LIBRARY_PATH
14226 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14227 version_type=freebsd-elf
14228 need_lib_prefix=no
14229 need_version=no
14230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14231 soname_spec='${libname}${release}${shared_ext}$major'
14232 shlibpath_var=LD_LIBRARY_PATH
14233 shlibpath_overrides_runpath=yes
14234 hardcode_into_libs=yes
14235 if test "$with_gnu_ld" = yes; then
14236 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14237 else
14238 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14239 case $host_os in
14240 sco3.2v5*)
14241 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14243 esac
14245 sys_lib_dlsearch_path_spec='/usr/lib'
14248 tpf*)
14249 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14250 version_type=linux
14251 need_lib_prefix=no
14252 need_version=no
14253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14254 shlibpath_var=LD_LIBRARY_PATH
14255 shlibpath_overrides_runpath=no
14256 hardcode_into_libs=yes
14259 uts4*)
14260 version_type=linux
14261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14262 soname_spec='${libname}${release}${shared_ext}$major'
14263 shlibpath_var=LD_LIBRARY_PATH
14267 dynamic_linker=no
14269 esac
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14271 $as_echo "$dynamic_linker" >&6; }
14272 test "$dynamic_linker" = no && can_build_shared=no
14274 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14275 if test "$GCC" = yes; then
14276 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14279 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14280 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14282 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14283 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14324 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14325 hardcode_action_FC=
14326 if test -n "$hardcode_libdir_flag_spec_FC" ||
14327 test -n "$runpath_var_FC" ||
14328 test "X$hardcode_automatic_FC" = "Xyes" ; then
14330 # We can hardcode non-existent directories.
14331 if test "$hardcode_direct_FC" != no &&
14332 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14333 # have to relink, otherwise we might link with an installed library
14334 # when we should be linking with a yet-to-be-installed one
14335 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
14336 test "$hardcode_minus_L_FC" != no; then
14337 # Linking always hardcodes the temporary library directory.
14338 hardcode_action_FC=relink
14339 else
14340 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14341 hardcode_action_FC=immediate
14343 else
14344 # We cannot hardcode anything, or else we can only hardcode existing
14345 # directories.
14346 hardcode_action_FC=unsupported
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
14349 $as_echo "$hardcode_action_FC" >&6; }
14351 if test "$hardcode_action_FC" = relink ||
14352 test "$inherit_rpath_FC" = yes; then
14353 # Fast installation is not supported
14354 enable_fast_install=no
14355 elif test "$shlibpath_overrides_runpath" = yes ||
14356 test "$enable_shared" = no; then
14357 # Fast installation is not necessary
14358 enable_fast_install=needless
14367 fi # test -n "$compiler"
14369 GCC=$lt_save_GCC
14370 CC="$lt_save_CC"
14371 fi # test "$_lt_disable_FC" != yes
14373 ac_ext=c
14374 ac_cpp='$CPP $CPPFLAGS'
14375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14380 FCFLAGS="$FCFLAGS -Wall"
14382 # For libtool versioning info, format is CURRENT:REVISION:AGE
14383 libtool_VERSION=1:0:0
14386 # Check header files.
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14388 $as_echo_n "checking for ANSI C header files... " >&6; }
14389 if test "${ac_cv_header_stdc+set}" = set; then :
14390 $as_echo_n "(cached) " >&6
14391 else
14392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14393 /* end confdefs.h. */
14394 #include <stdlib.h>
14395 #include <stdarg.h>
14396 #include <string.h>
14397 #include <float.h>
14400 main ()
14404 return 0;
14406 _ACEOF
14407 if ac_fn_c_try_compile "$LINENO"; then :
14408 ac_cv_header_stdc=yes
14409 else
14410 ac_cv_header_stdc=no
14412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14414 if test $ac_cv_header_stdc = yes; then
14415 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14417 /* end confdefs.h. */
14418 #include <string.h>
14420 _ACEOF
14421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14422 $EGREP "memchr" >/dev/null 2>&1; then :
14424 else
14425 ac_cv_header_stdc=no
14427 rm -f conftest*
14431 if test $ac_cv_header_stdc = yes; then
14432 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14434 /* end confdefs.h. */
14435 #include <stdlib.h>
14437 _ACEOF
14438 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14439 $EGREP "free" >/dev/null 2>&1; then :
14441 else
14442 ac_cv_header_stdc=no
14444 rm -f conftest*
14448 if test $ac_cv_header_stdc = yes; then
14449 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14450 if test "$cross_compiling" = yes; then :
14452 else
14453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14454 /* end confdefs.h. */
14455 #include <ctype.h>
14456 #include <stdlib.h>
14457 #if ((' ' & 0x0FF) == 0x020)
14458 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14459 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14460 #else
14461 # define ISLOWER(c) \
14462 (('a' <= (c) && (c) <= 'i') \
14463 || ('j' <= (c) && (c) <= 'r') \
14464 || ('s' <= (c) && (c) <= 'z'))
14465 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14466 #endif
14468 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14470 main ()
14472 int i;
14473 for (i = 0; i < 256; i++)
14474 if (XOR (islower (i), ISLOWER (i))
14475 || toupper (i) != TOUPPER (i))
14476 return 2;
14477 return 0;
14479 _ACEOF
14480 if ac_fn_c_try_run "$LINENO"; then :
14482 else
14483 ac_cv_header_stdc=no
14485 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14486 conftest.$ac_objext conftest.beam conftest.$ac_ext
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14492 $as_echo "$ac_cv_header_stdc" >&6; }
14493 if test $ac_cv_header_stdc = yes; then
14495 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14500 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14501 if test "${ac_cv_header_time+set}" = set; then :
14502 $as_echo_n "(cached) " >&6
14503 else
14504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14505 /* end confdefs.h. */
14506 #include <sys/types.h>
14507 #include <sys/time.h>
14508 #include <time.h>
14511 main ()
14513 if ((struct tm *) 0)
14514 return 0;
14516 return 0;
14518 _ACEOF
14519 if ac_fn_c_try_compile "$LINENO"; then :
14520 ac_cv_header_time=yes
14521 else
14522 ac_cv_header_time=no
14524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14527 $as_echo "$ac_cv_header_time" >&6; }
14528 if test $ac_cv_header_time = yes; then
14530 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
14535 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
14536 if test "${gcc_cv_header_string+set}" = set; then :
14537 $as_echo_n "(cached) " >&6
14538 else
14539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14540 /* end confdefs.h. */
14541 #include <string.h>
14542 #include <strings.h>
14544 main ()
14548 return 0;
14550 _ACEOF
14551 if ac_fn_c_try_compile "$LINENO"; then :
14552 gcc_cv_header_string=yes
14553 else
14554 gcc_cv_header_string=no
14556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
14559 $as_echo "$gcc_cv_header_string" >&6; }
14560 if test $gcc_cv_header_string = yes; then
14562 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
14566 for ac_header in unistd.h semaphore.h sys/loadavg.h sys/time.h sys/time.h
14567 do :
14568 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14569 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14570 eval as_val=\$$as_ac_Header
14571 if test "x$as_val" = x""yes; then :
14572 cat >>confdefs.h <<_ACEOF
14573 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14574 _ACEOF
14578 done
14583 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
14585 acx_cv_header_stdint=stddef.h
14586 acx_cv_header_stdint_kind="(already complete)"
14587 for i in stdint.h $inttype_headers; do
14588 unset ac_cv_type_uintptr_t
14589 unset ac_cv_type_uintmax_t
14590 unset ac_cv_type_int_least32_t
14591 unset ac_cv_type_int_fast32_t
14592 unset ac_cv_type_uint64_t
14593 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
14594 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
14595 #include <$i>
14597 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
14598 acx_cv_header_stdint=$i
14599 else
14600 continue
14603 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
14604 #include <$i>
14606 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
14608 else
14609 acx_cv_header_stdint_kind="(mostly complete)"
14612 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
14613 #include <$i>
14615 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
14617 else
14618 acx_cv_header_stdint_kind="(mostly complete)"
14621 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
14622 #include <$i>
14624 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
14626 else
14627 acx_cv_header_stdint_kind="(mostly complete)"
14630 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
14631 #include <$i>
14633 if test "x$ac_cv_type_uint64_t" = x""yes; then :
14635 else
14636 acx_cv_header_stdint_kind="(lacks uint64_t)"
14639 break
14640 done
14641 if test "$acx_cv_header_stdint" = stddef.h; then
14642 acx_cv_header_stdint_kind="(lacks uintmax_t)"
14643 for i in stdint.h $inttype_headers; do
14644 unset ac_cv_type_uintptr_t
14645 unset ac_cv_type_uint32_t
14646 unset ac_cv_type_uint64_t
14647 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
14648 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
14649 #include <$i>
14651 if test "x$ac_cv_type_uint32_t" = x""yes; then :
14652 acx_cv_header_stdint=$i
14653 else
14654 continue
14657 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
14658 #include <$i>
14660 if test "x$ac_cv_type_uint64_t" = x""yes; then :
14664 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
14665 #include <$i>
14667 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
14671 break
14672 done
14674 if test "$acx_cv_header_stdint" = stddef.h; then
14675 acx_cv_header_stdint_kind="(u_intXX_t style)"
14676 for i in sys/types.h $inttype_headers; do
14677 unset ac_cv_type_u_int32_t
14678 unset ac_cv_type_u_int64_t
14679 $as_echo_n "looking for u_intXX_t types in $i, " >&6
14680 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
14681 #include <$i>
14683 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
14684 acx_cv_header_stdint=$i
14685 else
14686 continue
14689 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
14690 #include <$i>
14692 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
14696 break
14697 done
14699 if test "$acx_cv_header_stdint" = stddef.h; then
14700 acx_cv_header_stdint_kind="(using manual detection)"
14703 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
14704 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
14705 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
14706 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
14707 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
14709 # ----------------- Summarize what we found so far
14711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
14712 $as_echo_n "checking what to include in gstdint.h... " >&6; }
14714 case `$as_basename -- gstdint.h ||
14715 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
14716 Xgstdint.h : 'X\(//\)$' \| \
14717 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
14718 $as_echo X/gstdint.h |
14719 sed '/^.*\/\([^/][^/]*\)\/*$/{
14720 s//\1/
14723 /^X\/\(\/\/\)$/{
14724 s//\1/
14727 /^X\/\(\/\).*/{
14728 s//\1/
14731 s/.*/./; q'` in
14732 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
14733 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14734 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
14735 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14736 *) ;;
14737 esac
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
14740 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
14742 # ----------------- done included file, check C basic types --------
14744 # Lacking an uintptr_t? Test size of void *
14745 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
14746 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
14747 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14748 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14749 # This bug is HP SR number 8606223364.
14750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
14751 $as_echo_n "checking size of void *... " >&6; }
14752 if test "${ac_cv_sizeof_void_p+set}" = set; then :
14753 $as_echo_n "(cached) " >&6
14754 else
14755 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
14757 else
14758 if test "$ac_cv_type_void_p" = yes; then
14759 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14760 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14761 { as_fn_set_status 77
14762 as_fn_error "cannot compute sizeof (void *)
14763 See \`config.log' for more details." "$LINENO" 5; }; }
14764 else
14765 ac_cv_sizeof_void_p=0
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
14771 $as_echo "$ac_cv_sizeof_void_p" >&6; }
14775 cat >>confdefs.h <<_ACEOF
14776 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14777 _ACEOF
14780 esac
14782 # Lacking an uint64_t? Test size of long
14783 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
14784 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
14785 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14786 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14787 # This bug is HP SR number 8606223364.
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
14789 $as_echo_n "checking size of long... " >&6; }
14790 if test "${ac_cv_sizeof_long+set}" = set; then :
14791 $as_echo_n "(cached) " >&6
14792 else
14793 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
14795 else
14796 if test "$ac_cv_type_long" = yes; then
14797 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14798 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14799 { as_fn_set_status 77
14800 as_fn_error "cannot compute sizeof (long)
14801 See \`config.log' for more details." "$LINENO" 5; }; }
14802 else
14803 ac_cv_sizeof_long=0
14808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
14809 $as_echo "$ac_cv_sizeof_long" >&6; }
14813 cat >>confdefs.h <<_ACEOF
14814 #define SIZEOF_LONG $ac_cv_sizeof_long
14815 _ACEOF
14818 esac
14820 if test $acx_cv_header_stdint = stddef.h; then
14821 # Lacking a good header? Test size of everything and deduce all types.
14822 # The cast to long int works around a bug in the HP C Compiler
14823 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14824 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14825 # This bug is HP SR number 8606223364.
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
14827 $as_echo_n "checking size of int... " >&6; }
14828 if test "${ac_cv_sizeof_int+set}" = set; then :
14829 $as_echo_n "(cached) " >&6
14830 else
14831 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
14833 else
14834 if test "$ac_cv_type_int" = yes; then
14835 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14836 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14837 { as_fn_set_status 77
14838 as_fn_error "cannot compute sizeof (int)
14839 See \`config.log' for more details." "$LINENO" 5; }; }
14840 else
14841 ac_cv_sizeof_int=0
14846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
14847 $as_echo "$ac_cv_sizeof_int" >&6; }
14851 cat >>confdefs.h <<_ACEOF
14852 #define SIZEOF_INT $ac_cv_sizeof_int
14853 _ACEOF
14856 # The cast to long int works around a bug in the HP C Compiler
14857 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14858 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14859 # This bug is HP SR number 8606223364.
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
14861 $as_echo_n "checking size of short... " >&6; }
14862 if test "${ac_cv_sizeof_short+set}" = set; then :
14863 $as_echo_n "(cached) " >&6
14864 else
14865 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
14867 else
14868 if test "$ac_cv_type_short" = yes; then
14869 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14870 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14871 { as_fn_set_status 77
14872 as_fn_error "cannot compute sizeof (short)
14873 See \`config.log' for more details." "$LINENO" 5; }; }
14874 else
14875 ac_cv_sizeof_short=0
14880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
14881 $as_echo "$ac_cv_sizeof_short" >&6; }
14885 cat >>confdefs.h <<_ACEOF
14886 #define SIZEOF_SHORT $ac_cv_sizeof_short
14887 _ACEOF
14890 # The cast to long int works around a bug in the HP C Compiler
14891 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14892 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14893 # This bug is HP SR number 8606223364.
14894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
14895 $as_echo_n "checking size of char... " >&6; }
14896 if test "${ac_cv_sizeof_char+set}" = set; then :
14897 $as_echo_n "(cached) " >&6
14898 else
14899 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
14901 else
14902 if test "$ac_cv_type_char" = yes; then
14903 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14904 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14905 { as_fn_set_status 77
14906 as_fn_error "cannot compute sizeof (char)
14907 See \`config.log' for more details." "$LINENO" 5; }; }
14908 else
14909 ac_cv_sizeof_char=0
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
14915 $as_echo "$ac_cv_sizeof_char" >&6; }
14919 cat >>confdefs.h <<_ACEOF
14920 #define SIZEOF_CHAR $ac_cv_sizeof_char
14921 _ACEOF
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
14926 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
14927 case "$ac_cv_sizeof_char" in
14928 1) acx_cv_type_int8_t=char ;;
14929 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
14930 esac
14931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
14932 $as_echo "$acx_cv_type_int8_t" >&6; }
14934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
14935 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
14936 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
14937 2:*) acx_cv_type_int16_t=int ;;
14938 *:2) acx_cv_type_int16_t=short ;;
14939 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
14940 esac
14941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
14942 $as_echo "$acx_cv_type_int16_t" >&6; }
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
14945 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
14946 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
14947 4:*) acx_cv_type_int32_t=int ;;
14948 *:4) acx_cv_type_int32_t=long ;;
14949 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
14950 esac
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
14952 $as_echo "$acx_cv_type_int32_t" >&6; }
14955 # These tests are here to make the output prettier
14957 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
14958 case "$ac_cv_sizeof_long" in
14959 8) acx_cv_type_int64_t=long ;;
14960 esac
14961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
14962 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
14963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
14964 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
14967 # Now we can use the above types
14969 if test "$ac_cv_type_uintptr_t" != yes; then
14970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
14971 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
14972 case $ac_cv_sizeof_void_p in
14973 2) acx_cv_type_intptr_t=int16_t ;;
14974 4) acx_cv_type_intptr_t=int32_t ;;
14975 8) acx_cv_type_intptr_t=int64_t ;;
14976 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
14977 esac
14978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
14979 $as_echo "$acx_cv_type_intptr_t" >&6; }
14982 # ----------------- done all checks, emit header -------------
14983 ac_config_commands="$ac_config_commands gstdint.h"
14988 # Check to see if -pthread or -lpthread is needed. Prefer the former.
14989 # In case the pthread.h system header is not found, this test will fail.
14990 XPCFLAGS=""
14991 CFLAGS="$CFLAGS -pthread"
14992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14993 /* end confdefs.h. */
14994 #include <pthread.h>
14995 void *g(void *d) { return NULL; }
14997 main ()
14999 pthread_t t; pthread_create(&t,NULL,g,NULL);
15001 return 0;
15003 _ACEOF
15004 if ac_fn_c_try_link "$LINENO"; then :
15005 XPCFLAGS=" -Wc,-pthread"
15006 else
15007 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
15008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15009 /* end confdefs.h. */
15010 #include <pthread.h>
15011 void *g(void *d) { return NULL; }
15013 main ()
15015 pthread_t t; pthread_create(&t,NULL,g,NULL);
15017 return 0;
15019 _ACEOF
15020 if ac_fn_c_try_link "$LINENO"; then :
15022 else
15023 as_fn_error "Pthreads are required to build libgomp" "$LINENO" 5
15025 rm -f core conftest.err conftest.$ac_objext \
15026 conftest$ac_exeext conftest.$ac_ext
15028 rm -f core conftest.err conftest.$ac_objext \
15029 conftest$ac_exeext conftest.$ac_ext
15031 # Check for functions needed.
15032 for ac_func in getloadavg clock_gettime strtoull
15033 do :
15034 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15035 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15036 eval as_val=\$$as_ac_var
15037 if test "x$as_val" = x""yes; then :
15038 cat >>confdefs.h <<_ACEOF
15039 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15040 _ACEOF
15043 done
15046 # Check for broken semaphore implementation on darwin.
15047 # sem_init returns: sem_init error: Function not implemented.
15048 case "$host" in
15049 *-darwin*)
15051 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
15054 esac
15056 # Check whether --enable-linux-futex was given.
15057 if test "${enable_linux_futex+set}" = set; then :
15058 enableval=$enable_linux_futex;
15059 case "$enableval" in
15060 yes|no|default) ;;
15061 *) as_fn_error "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
15062 esac
15064 else
15065 enable_linux_futex=default
15069 case "$target" in
15070 *-linux*)
15071 case "$enable_linux_futex" in
15072 default)
15073 # If headers don't have gettid/futex syscalls definition, then
15074 # default to no, otherwise there will be compile time failures.
15075 # Otherwise, default to yes. If we don't detect we are
15076 # compiled/linked against NPTL and not cross-compiling, check
15077 # if programs are run by default against NPTL and if not, issue
15078 # a warning.
15079 enable_linux_futex=no
15080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15081 /* end confdefs.h. */
15082 #include <sys/syscall.h>
15083 int lk;
15085 main ()
15087 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15089 return 0;
15091 _ACEOF
15092 if ac_fn_c_try_link "$LINENO"; then :
15093 save_LIBS="$LIBS"
15094 LIBS="-lpthread $LIBS"
15095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15096 /* end confdefs.h. */
15097 #ifndef _GNU_SOURCE
15098 #define _GNU_SOURCE 1
15099 #endif
15100 #include <pthread.h>
15101 pthread_t th; void *status;
15103 main ()
15105 pthread_tryjoin_np (th, &status);
15107 return 0;
15109 _ACEOF
15110 if ac_fn_c_try_link "$LINENO"; then :
15111 enable_linux_futex=yes
15112 else
15113 if test x$cross_compiling = xno; then
15114 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
15115 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
15116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
15117 If so, please configure with --disable-linux-futex" >&5
15118 $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
15119 If so, please configure with --disable-linux-futex" >&2;}
15122 enable_linux_futex=yes
15124 rm -f core conftest.err conftest.$ac_objext \
15125 conftest$ac_exeext conftest.$ac_ext
15126 LIBS="$save_LIBS"
15128 rm -f core conftest.err conftest.$ac_objext \
15129 conftest$ac_exeext conftest.$ac_ext
15131 yes)
15132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15133 /* end confdefs.h. */
15134 #include <sys/syscall.h>
15135 int lk;
15137 main ()
15139 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15141 return 0;
15143 _ACEOF
15144 if ac_fn_c_try_link "$LINENO"; then :
15146 else
15147 as_fn_error "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
15149 rm -f core conftest.err conftest.$ac_objext \
15150 conftest$ac_exeext conftest.$ac_ext
15152 esac
15155 enable_linux_futex=no
15157 esac
15158 if test x$enable_linux_futex = xyes; then
15163 # Check for pthread_{,attr_}[sg]etaffinity_np.
15164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15165 /* end confdefs.h. */
15166 #define _GNU_SOURCE
15167 #include <pthread.h>
15169 main ()
15171 cpu_set_t cpuset;
15172 pthread_attr_t attr;
15173 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15174 if (CPU_ISSET (0, &cpuset))
15175 CPU_SET (1, &cpuset);
15176 else
15177 CPU_ZERO (&cpuset);
15178 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15179 pthread_attr_init (&attr);
15180 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15181 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15183 return 0;
15185 _ACEOF
15186 if ac_fn_c_try_link "$LINENO"; then :
15188 $as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h
15191 rm -f core conftest.err conftest.$ac_objext \
15192 conftest$ac_exeext conftest.$ac_ext
15194 # At least for glibc, clock_gettime is in librt. But don't pull that
15195 # in if it still doesn't give us the function we want.
15196 if test $ac_cv_func_clock_gettime = no; then
15197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
15198 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
15199 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
15200 $as_echo_n "(cached) " >&6
15201 else
15202 ac_check_lib_save_LIBS=$LIBS
15203 LIBS="-lrt $LIBS"
15204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15205 /* end confdefs.h. */
15207 /* Override any GCC internal prototype to avoid an error.
15208 Use char because int might match the return type of a GCC
15209 builtin and then its argument prototype would still apply. */
15210 #ifdef __cplusplus
15211 extern "C"
15212 #endif
15213 char clock_gettime ();
15215 main ()
15217 return clock_gettime ();
15219 return 0;
15221 _ACEOF
15222 if ac_fn_c_try_link "$LINENO"; then :
15223 ac_cv_lib_rt_clock_gettime=yes
15224 else
15225 ac_cv_lib_rt_clock_gettime=no
15227 rm -f core conftest.err conftest.$ac_objext \
15228 conftest$ac_exeext conftest.$ac_ext
15229 LIBS=$ac_check_lib_save_LIBS
15231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
15232 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15233 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
15234 LIBS="-lrt $LIBS"
15236 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
15242 # See if we support thread-local storage.
15245 # Check whether --enable-tls was given.
15246 if test "${enable_tls+set}" = set; then :
15247 enableval=$enable_tls;
15248 case "$enableval" in
15249 yes|no) ;;
15250 *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
15251 esac
15253 else
15254 enable_tls=yes
15258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
15259 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
15260 if test "${gcc_cv_have_tls+set}" = set; then :
15261 $as_echo_n "(cached) " >&6
15262 else
15264 if test "$cross_compiling" = yes; then :
15265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15266 /* end confdefs.h. */
15267 __thread int a; int b; int main() { return a = b; }
15268 _ACEOF
15269 if ac_fn_c_try_link "$LINENO"; then :
15270 chktls_save_LDFLAGS="$LDFLAGS"
15271 case $host in
15272 *-*-linux*)
15273 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
15275 esac
15276 chktls_save_CFLAGS="$CFLAGS"
15277 CFLAGS="-fPIC $CFLAGS"
15278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15279 /* end confdefs.h. */
15280 int f() { return 0; }
15281 _ACEOF
15282 if ac_fn_c_try_link "$LINENO"; then :
15283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15284 /* end confdefs.h. */
15285 __thread int a; int b; int f() { return a = b; }
15286 _ACEOF
15287 if ac_fn_c_try_link "$LINENO"; then :
15288 gcc_cv_have_tls=yes
15289 else
15290 gcc_cv_have_tls=no
15292 rm -f core conftest.err conftest.$ac_objext \
15293 conftest$ac_exeext conftest.$ac_ext
15294 else
15295 gcc_cv_have_tls=yes
15297 rm -f core conftest.err conftest.$ac_objext \
15298 conftest$ac_exeext conftest.$ac_ext
15299 CFLAGS="$chktls_save_CFLAGS"
15300 LDFLAGS="$chktls_save_LDFLAGS"
15301 else
15302 gcc_cv_have_tls=no
15304 rm -f core conftest.err conftest.$ac_objext \
15305 conftest$ac_exeext conftest.$ac_ext
15308 else
15309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15310 /* end confdefs.h. */
15311 __thread int a; int b; int main() { return a = b; }
15312 _ACEOF
15313 if ac_fn_c_try_run "$LINENO"; then :
15314 chktls_save_LDFLAGS="$LDFLAGS"
15315 LDFLAGS="-static $LDFLAGS"
15316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15317 /* end confdefs.h. */
15318 int main() { return 0; }
15319 _ACEOF
15320 if ac_fn_c_try_link "$LINENO"; then :
15321 if test "$cross_compiling" = yes; then :
15322 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15323 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15324 as_fn_error "cannot run test program while cross compiling
15325 See \`config.log' for more details." "$LINENO" 5; }
15326 else
15327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15328 /* end confdefs.h. */
15329 __thread int a; int b; int main() { return a = b; }
15330 _ACEOF
15331 if ac_fn_c_try_run "$LINENO"; then :
15332 gcc_cv_have_tls=yes
15333 else
15334 gcc_cv_have_tls=no
15336 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15337 conftest.$ac_objext conftest.beam conftest.$ac_ext
15340 else
15341 gcc_cv_have_tls=yes
15343 rm -f core conftest.err conftest.$ac_objext \
15344 conftest$ac_exeext conftest.$ac_ext
15345 LDFLAGS="$chktls_save_LDFLAGS"
15346 if test $gcc_cv_have_tls = yes; then
15347 chktls_save_CFLAGS="$CFLAGS"
15348 thread_CFLAGS=failed
15349 for flag in '' '-pthread' '-lpthread'; do
15350 CFLAGS="$flag $chktls_save_CFLAGS"
15351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15352 /* end confdefs.h. */
15353 #include <pthread.h>
15354 void *g(void *d) { return NULL; }
15356 main ()
15358 pthread_t t; pthread_create(&t,NULL,g,NULL);
15360 return 0;
15362 _ACEOF
15363 if ac_fn_c_try_link "$LINENO"; then :
15364 thread_CFLAGS="$flag"
15366 rm -f core conftest.err conftest.$ac_objext \
15367 conftest$ac_exeext conftest.$ac_ext
15368 if test "X$thread_CFLAGS" != Xfailed; then
15369 break
15371 done
15372 CFLAGS="$chktls_save_CFLAGS"
15373 if test "X$thread_CFLAGS" != Xfailed; then
15374 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
15375 if test "$cross_compiling" = yes; then :
15376 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15377 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15378 as_fn_error "cannot run test program while cross compiling
15379 See \`config.log' for more details." "$LINENO" 5; }
15380 else
15381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15382 /* end confdefs.h. */
15383 #include <pthread.h>
15384 __thread int a;
15385 static int *volatile a_in_other_thread;
15386 static void *
15387 thread_func (void *arg)
15389 a_in_other_thread = &a;
15390 return (void *)0;
15393 main ()
15395 pthread_t thread;
15396 void *thread_retval;
15397 int *volatile a_in_main_thread;
15398 a_in_main_thread = &a;
15399 if (pthread_create (&thread, (pthread_attr_t *)0,
15400 thread_func, (void *)0))
15401 return 0;
15402 if (pthread_join (thread, &thread_retval))
15403 return 0;
15404 return (a_in_other_thread == a_in_main_thread);
15406 return 0;
15408 _ACEOF
15409 if ac_fn_c_try_run "$LINENO"; then :
15410 gcc_cv_have_tls=yes
15411 else
15412 gcc_cv_have_tls=no
15414 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15415 conftest.$ac_objext conftest.beam conftest.$ac_ext
15418 CFLAGS="$chktls_save_CFLAGS"
15421 else
15422 gcc_cv_have_tls=no
15424 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15425 conftest.$ac_objext conftest.beam conftest.$ac_ext
15429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
15430 $as_echo "$gcc_cv_have_tls" >&6; }
15431 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
15433 $as_echo "#define HAVE_TLS 1" >>confdefs.h
15437 # See what sort of export controls are availible.
15439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
15440 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
15441 if test "${libgomp_cv_have_attribute_visibility+set}" = set; then :
15442 $as_echo_n "(cached) " >&6
15443 else
15445 save_CFLAGS="$CFLAGS"
15446 CFLAGS="$CFLAGS -Werror"
15447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15448 /* end confdefs.h. */
15449 void __attribute__((visibility("hidden"))) foo(void) { }
15451 main ()
15455 return 0;
15457 _ACEOF
15458 if ac_fn_c_try_compile "$LINENO"; then :
15459 libgomp_cv_have_attribute_visibility=yes
15460 else
15461 libgomp_cv_have_attribute_visibility=no
15463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15464 CFLAGS="$save_CFLAGS"
15466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_visibility" >&5
15467 $as_echo "$libgomp_cv_have_attribute_visibility" >&6; }
15468 if test $libgomp_cv_have_attribute_visibility = yes; then
15470 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
15474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
15475 $as_echo_n "checking whether the target supports dllexport... " >&6; }
15476 if test "${libgomp_cv_have_attribute_dllexport+set}" = set; then :
15477 $as_echo_n "(cached) " >&6
15478 else
15480 save_CFLAGS="$CFLAGS"
15481 CFLAGS="$CFLAGS -Werror"
15482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15483 /* end confdefs.h. */
15484 void __attribute__((dllexport)) foo(void) { }
15486 main ()
15490 return 0;
15492 _ACEOF
15493 if ac_fn_c_try_compile "$LINENO"; then :
15494 libgomp_cv_have_attribute_dllexport=yes
15495 else
15496 libgomp_cv_have_attribute_dllexport=no
15498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15499 CFLAGS="$save_CFLAGS"
15501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_dllexport" >&5
15502 $as_echo "$libgomp_cv_have_attribute_dllexport" >&6; }
15503 if test $libgomp_cv_have_attribute_dllexport = yes; then
15505 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
15509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
15510 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
15511 if test "${libgomp_cv_have_attribute_alias+set}" = set; then :
15512 $as_echo_n "(cached) " >&6
15513 else
15515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15516 /* end confdefs.h. */
15518 void foo(void) { }
15519 extern void bar(void) __attribute__((alias("foo")));
15521 main ()
15523 bar();
15525 return 0;
15527 _ACEOF
15528 if ac_fn_c_try_link "$LINENO"; then :
15529 libgomp_cv_have_attribute_alias=yes
15530 else
15531 libgomp_cv_have_attribute_alias=no
15533 rm -f core conftest.err conftest.$ac_objext \
15534 conftest$ac_exeext conftest.$ac_ext
15536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_alias" >&5
15537 $as_echo "$libgomp_cv_have_attribute_alias" >&6; }
15538 if test $libgomp_cv_have_attribute_alias = yes; then
15540 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
15545 # Check whether --with-gnu-ld was given.
15546 if test "${with_gnu_ld+set}" = set; then :
15547 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15548 else
15549 with_gnu_ld=no
15552 ac_prog=ld
15553 if test "$GCC" = yes; then
15554 # Check if gcc -print-prog-name=ld gives a path.
15555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15556 $as_echo_n "checking for ld used by $CC... " >&6; }
15557 case $host in
15558 *-*-mingw*)
15559 # gcc leaves a trailing carriage return which upsets mingw
15560 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15562 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15563 esac
15564 case $ac_prog in
15565 # Accept absolute paths.
15566 [\\/]* | ?:[\\/]*)
15567 re_direlt='/[^/][^/]*/\.\./'
15568 # Canonicalize the pathname of ld
15569 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15570 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15571 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15572 done
15573 test -z "$LD" && LD="$ac_prog"
15576 # If it fails, then pretend we aren't using GCC.
15577 ac_prog=ld
15580 # If it is relative, then search for the first ld in PATH.
15581 with_gnu_ld=unknown
15583 esac
15584 elif test "$with_gnu_ld" = yes; then
15585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15586 $as_echo_n "checking for GNU ld... " >&6; }
15587 else
15588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15589 $as_echo_n "checking for non-GNU ld... " >&6; }
15591 if test "${lt_cv_path_LD+set}" = set; then :
15592 $as_echo_n "(cached) " >&6
15593 else
15594 if test -z "$LD"; then
15595 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15596 for ac_dir in $PATH; do
15597 IFS="$lt_save_ifs"
15598 test -z "$ac_dir" && ac_dir=.
15599 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15600 lt_cv_path_LD="$ac_dir/$ac_prog"
15601 # Check to see if the program is GNU ld. I'd rather use --version,
15602 # but apparently some variants of GNU ld only accept -v.
15603 # Break only if it was the GNU/non-GNU ld that we prefer.
15604 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15605 *GNU* | *'with BFD'*)
15606 test "$with_gnu_ld" != no && break
15609 test "$with_gnu_ld" != yes && break
15611 esac
15613 done
15614 IFS="$lt_save_ifs"
15615 else
15616 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15620 LD="$lt_cv_path_LD"
15621 if test -n "$LD"; then
15622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15623 $as_echo "$LD" >&6; }
15624 else
15625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15626 $as_echo "no" >&6; }
15628 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
15629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15630 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15631 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
15632 $as_echo_n "(cached) " >&6
15633 else
15634 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15635 case `$LD -v 2>&1 </dev/null` in
15636 *GNU* | *'with BFD'*)
15637 lt_cv_prog_gnu_ld=yes
15640 lt_cv_prog_gnu_ld=no
15642 esac
15644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15645 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15646 with_gnu_ld=$lt_cv_prog_gnu_ld
15654 # If we're not using GNU ld, then there's no point in even trying these
15655 # tests. Check for that first. We should have already tested for gld
15656 # by now (in libtool), but require it now just to be safe...
15657 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
15658 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
15662 # The name set by libtool depends on the version of libtool. Shame on us
15663 # for depending on an impl detail, but c'est la vie. Older versions used
15664 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
15665 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
15666 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
15667 # set (hence we're using an older libtool), then set it.
15668 if test x${with_gnu_ld+set} != xset; then
15669 if test x${ac_cv_prog_gnu_ld+set} != xset; then
15670 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
15671 with_gnu_ld=no
15672 else
15673 with_gnu_ld=$ac_cv_prog_gnu_ld
15677 # Start by getting the version number. I think the libtool test already
15678 # does some of this, but throws away the result.
15679 libgomp_ld_is_gold=no
15680 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
15681 libgomp_ld_is_gold=yes
15684 ldver=`$LD --version 2>/dev/null |
15685 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'`
15687 libgomp_gnu_ld_version=`echo $ldver | \
15688 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
15690 # Set --gc-sections.
15691 if test "$with_gnu_ld" = "notbroken"; then
15692 # GNU ld it is! Joy and bunny rabbits!
15694 # All these tests are for C++; save the language and the compiler flags.
15695 # Need to do this so that g++ won't try to link in libstdc++
15696 ac_test_CFLAGS="${CFLAGS+set}"
15697 ac_save_CFLAGS="$CFLAGS"
15698 CFLAGS='-x c++ -Wl,--gc-sections'
15700 # Check for -Wl,--gc-sections
15701 # XXX This test is broken at the moment, as symbols required for linking
15702 # are now in libsupc++ (not built yet). In addition, this test has
15703 # cored on solaris in the past. In addition, --gc-sections doesn't
15704 # really work at the moment (keeps on discarding used sections, first
15705 # .eh_frame and now some of the glibc sections for iconv).
15706 # Bzzzzt. Thanks for playing, maybe next time.
15707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
15708 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
15709 if test "$cross_compiling" = yes; then :
15710 ac_sectionLDflags=yes
15711 else
15712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15713 /* end confdefs.h. */
15715 int main(void)
15717 try { throw 1; }
15718 catch (...) { };
15719 return 0;
15722 _ACEOF
15723 if ac_fn_c_try_run "$LINENO"; then :
15724 ac_sectionLDflags=yes
15725 else
15726 ac_sectionLDflags=no
15728 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15729 conftest.$ac_objext conftest.beam conftest.$ac_ext
15732 if test "$ac_test_CFLAGS" = set; then
15733 CFLAGS="$ac_save_CFLAGS"
15734 else
15735 # this is the suspicious part
15736 CFLAGS=''
15738 if test "$ac_sectionLDflags" = "yes"; then
15739 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
15741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
15742 $as_echo "$ac_sectionLDflags" >&6; }
15745 # Set linker optimization flags.
15746 if test x"$with_gnu_ld" = x"yes"; then
15747 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
15755 # Check whether --enable-symvers was given.
15756 if test "${enable_symvers+set}" = set; then :
15757 enableval=$enable_symvers;
15758 case "$enableval" in
15759 yes|no|gnu|sun) ;;
15760 *) as_fn_error "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
15761 esac
15763 else
15764 enable_symvers=yes
15769 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
15770 # don't know enough about $LD to do tricks...
15772 # FIXME The following test is too strict, in theory.
15773 if test $enable_shared = no || test "x$LD" = x; then
15774 enable_symvers=no
15775 else
15776 if test $with_gnu_ld = yes ; then
15777 enable_symvers=gnu
15778 else
15779 case ${target_os} in
15780 # Sun symbol versioning exists since Solaris 2.5.
15781 solaris2.[5-9]* | solaris2.1[0-9]*)
15782 enable_symvers=sun ;;
15784 enable_symvers=no ;;
15785 esac
15789 # Check if 'sun' was requested on non-Solaris 2 platforms.
15790 if test x$enable_symvers = xsun ; then
15791 case ${target_os} in
15792 solaris2*)
15793 # All fine.
15796 # Unlikely to work.
15797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
15798 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
15799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
15800 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15802 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15803 enable_symvers=no
15805 esac
15808 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
15809 if test $enable_symvers != no; then
15810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
15811 $as_echo_n "checking for shared libgcc... " >&6; }
15812 ac_save_CFLAGS="$CFLAGS"
15813 CFLAGS=' -lgcc_s'
15814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15815 /* end confdefs.h. */
15818 main ()
15820 return 0;
15822 return 0;
15824 _ACEOF
15825 if ac_fn_c_try_link "$LINENO"; then :
15826 libgomp_shared_libgcc=yes
15827 else
15828 libgomp_shared_libgcc=no
15830 rm -f core conftest.err conftest.$ac_objext \
15831 conftest$ac_exeext conftest.$ac_ext
15832 CFLAGS="$ac_save_CFLAGS"
15833 if test $libgomp_shared_libgcc = no; then
15834 cat > conftest.c <<EOF
15835 int main (void) { return 0; }
15837 libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
15838 -shared -shared-libgcc -o conftest.so \
15839 conftest.c -v 2>&1 >/dev/null \
15840 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
15841 rm -f conftest.c conftest.so
15842 if test x${libgomp_libgcc_s_suffix+set} = xset; then
15843 CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
15844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15845 /* end confdefs.h. */
15848 main ()
15850 return 0;
15852 return 0;
15854 _ACEOF
15855 if ac_fn_c_try_link "$LINENO"; then :
15856 libgomp_shared_libgcc=yes
15858 rm -f core conftest.err conftest.$ac_objext \
15859 conftest$ac_exeext conftest.$ac_ext
15860 CFLAGS="$ac_save_CFLAGS"
15863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_shared_libgcc" >&5
15864 $as_echo "$libgomp_shared_libgcc" >&6; }
15867 # For GNU ld, we need at least this version. The format is described in
15868 # LIBGOMP_CHECK_LINKER_FEATURES above.
15869 libgomp_min_gnu_ld_version=21400
15870 # XXXXXXXXXXX libgomp_gnu_ld_version=21390
15872 # Check to see if unspecified "yes" value can win, given results above.
15873 # Change "yes" into either "no" or a style name.
15874 if test $enable_symvers != no && test $libgomp_shared_libgcc = yes; then
15875 if test $with_gnu_ld = yes; then
15876 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
15877 enable_symvers=gnu
15878 elif test $libgomp_ld_is_gold = yes ; then
15879 enable_symvers=gnu
15880 else
15881 # The right tools, the right setup, but too old. Fallbacks?
15882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
15883 $as_echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
15884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
15885 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
15886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
15887 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
15888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
15889 $as_echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
15890 if test $libgomp_gnu_ld_version -ge 21200 ; then
15891 # Globbing fix is present, proper block support is not.
15892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15893 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15894 enable_symvers=no
15895 else
15896 # 2.11 or older.
15897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15898 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15899 enable_symvers=no
15902 elif test $enable_symvers = sun; then
15903 : All interesting versions of Sun ld support sun style symbol versioning.
15904 else
15905 # just fail for now
15906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
15907 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
15908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
15909 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
15910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
15911 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
15912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15913 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15914 enable_symvers=no
15918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports .symver directive" >&5
15919 $as_echo_n "checking whether the target supports .symver directive... " >&6; }
15920 if test "${libgomp_cv_have_as_symver_directive+set}" = set; then :
15921 $as_echo_n "(cached) " >&6
15922 else
15924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15925 /* end confdefs.h. */
15926 void foo (void); __asm (".symver foo, bar@SYMVER");
15928 main ()
15932 return 0;
15934 _ACEOF
15935 if ac_fn_c_try_compile "$LINENO"; then :
15936 libgomp_cv_have_as_symver_directive=yes
15937 else
15938 libgomp_cv_have_as_symver_directive=no
15940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_as_symver_directive" >&5
15943 $as_echo "$libgomp_cv_have_as_symver_directive" >&6; }
15944 if test $libgomp_cv_have_as_symver_directive = yes; then
15946 $as_echo "#define HAVE_AS_SYMVER_DIRECTIVE 1" >>confdefs.h
15950 if test $enable_symvers != no; then
15951 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
15952 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
15953 else
15954 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
15955 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
15958 if test $enable_symvers = gnu; then
15959 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE=
15960 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
15961 else
15962 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
15963 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE=
15966 if test $enable_symvers = sun; then
15967 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE=
15968 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
15969 else
15970 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
15971 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE=
15974 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
15975 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
15977 if test $enable_symvers != no ; then
15978 case ${target_os} in
15979 # The Solaris 2 runtime linker doesn't support the GNU extension of
15980 # binding the same symbol to different versions
15981 solaris2*)
15982 symvers_renaming=no ;;
15983 # Other platforms with GNU symbol versioning (GNU/Linux, more?) do.
15986 $as_echo "#define HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT 1" >>confdefs.h
15988 symvers_renaming=yes ;;
15989 esac
15991 if test $symvers_renaming = no; then
15992 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2_TRUE=
15993 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2_FALSE='#'
15994 else
15995 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2_TRUE='#'
15996 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2_FALSE=
16001 if test $enable_symvers = gnu; then
16003 $as_echo "#define LIBGOMP_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
16007 # Get target configury.
16008 . ${srcdir}/configure.tgt
16009 CFLAGS="$save_CFLAGS $XCFLAGS"
16011 # Check for __sync_val_compare_and_swap, but only after the target has
16012 # had a chance to set XCFLAGS.
16014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
16015 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
16016 if test "${libgomp_cv_have_sync_builtins+set}" = set; then :
16017 $as_echo_n "(cached) " >&6
16018 else
16020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16021 /* end confdefs.h. */
16024 main ()
16026 int foo; __sync_val_compare_and_swap(&foo, 0, 1);
16028 return 0;
16030 _ACEOF
16031 if ac_fn_c_try_link "$LINENO"; then :
16032 libgomp_cv_have_sync_builtins=yes
16033 else
16034 libgomp_cv_have_sync_builtins=no
16036 rm -f core conftest.err conftest.$ac_objext \
16037 conftest$ac_exeext conftest.$ac_ext
16039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_sync_builtins" >&5
16040 $as_echo "$libgomp_cv_have_sync_builtins" >&6; }
16041 if test $libgomp_cv_have_sync_builtins = yes; then
16043 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
16047 XCFLAGS="$XCFLAGS$XPCFLAGS"
16053 # Cleanup and exit.
16054 CFLAGS="$save_CFLAGS"
16055 cat >confcache <<\_ACEOF
16056 # This file is a shell script that caches the results of configure
16057 # tests run on this system so they can be shared between configure
16058 # scripts and configure runs, see configure's option --config-cache.
16059 # It is not useful on other systems. If it contains results you don't
16060 # want to keep, you may remove or edit it.
16062 # config.status only pays attention to the cache file if you give it
16063 # the --recheck option to rerun configure.
16065 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16066 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16067 # following values.
16069 _ACEOF
16071 # The following way of writing the cache mishandles newlines in values,
16072 # but we know of no workaround that is simple, portable, and efficient.
16073 # So, we kill variables containing newlines.
16074 # Ultrix sh set writes to stderr and can't be redirected directly,
16075 # and sets the high bit in the cache file unless we assign to the vars.
16077 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16078 eval ac_val=\$$ac_var
16079 case $ac_val in #(
16080 *${as_nl}*)
16081 case $ac_var in #(
16082 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16083 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16084 esac
16085 case $ac_var in #(
16086 _ | IFS | as_nl) ;; #(
16087 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16088 *) { eval $ac_var=; unset $ac_var;} ;;
16089 esac ;;
16090 esac
16091 done
16093 (set) 2>&1 |
16094 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16095 *${as_nl}ac_space=\ *)
16096 # `set' does not quote correctly, so add quotes: double-quote
16097 # substitution turns \\\\ into \\, and sed turns \\ into \.
16098 sed -n \
16099 "s/'/'\\\\''/g;
16100 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16101 ;; #(
16103 # `set' quotes correctly as required by POSIX, so do not add quotes.
16104 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16106 esac |
16107 sort
16109 sed '
16110 /^ac_cv_env_/b end
16111 t clear
16112 :clear
16113 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16114 t end
16115 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16116 :end' >>confcache
16117 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16118 if test -w "$cache_file"; then
16119 test "x$cache_file" != "x/dev/null" &&
16120 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16121 $as_echo "$as_me: updating cache $cache_file" >&6;}
16122 cat confcache >$cache_file
16123 else
16124 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16125 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16128 rm -f confcache
16130 if test ${multilib} = yes; then
16131 multilib_arg="--enable-multilib"
16132 else
16133 multilib_arg=
16136 # Set up the set of libraries that we need to link against for libgomp.
16137 # Note that the GOMP_SELF_SPEC in gcc.c will force -pthread for -fopenmp,
16138 # which will force linkage against -lpthread (or equivalent for the system).
16139 # That's not 100% ideal, but about the best we can do easily.
16140 if test $enable_shared = yes; then
16141 link_gomp="-lgomp %{static: $LIBS}"
16142 else
16143 link_gomp="-lgomp $LIBS"
16147 if test "$ac_cv_fc_compiler_gnu" = yes; then
16148 USE_FORTRAN_TRUE=
16149 USE_FORTRAN_FALSE='#'
16150 else
16151 USE_FORTRAN_TRUE='#'
16152 USE_FORTRAN_FALSE=
16156 # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
16157 # and export AC_COMPUTE_INT. If that happens, then we'll need to remove
16158 # the underscore here and update the PREREQ. If it doesn't, then we'll
16159 # need to copy this macro to our acinclude.m4.
16160 save_CFLAGS="$CFLAGS"
16161 for i in $config_path; do
16162 if test -f $srcdir/config/$i/omp-lock.h; then
16163 CFLAGS="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h"
16164 break
16166 done
16168 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_t)" "OMP_LOCK_SIZE" ""; then :
16170 else
16171 as_fn_error "unsupported system, cannot find sizeof (omp_lock_t)" "$LINENO" 5
16175 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_t)" "OMP_LOCK_ALIGN" ""; then :
16180 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_t)" "OMP_NEST_LOCK_SIZE" ""; then :
16185 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_t)" "OMP_NEST_LOCK_ALIGN" ""; then :
16190 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_25_t)" "OMP_LOCK_25_SIZE" ""; then :
16192 else
16193 as_fn_error "unsupported system, cannot find sizeof (omp_lock_25_t)" "$LINENO" 5
16197 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_25_t)" "OMP_LOCK_25_ALIGN" ""; then :
16202 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_SIZE" ""; then :
16207 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_ALIGN" ""; then :
16213 # If the lock fits in an integer, then arrange for Fortran to use that
16214 # integer. If it doesn't, then arrange for Fortran to use a pointer.
16215 # Except that we don't have a way at present to multi-lib the installed
16216 # Fortran modules, so we assume 8 bytes for pointers, regardless of the
16217 # actual target.
16218 OMP_LOCK_KIND=$OMP_LOCK_SIZE
16219 OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
16220 if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
16221 OMP_LOCK_KIND=8
16223 if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
16224 OMP_NEST_LOCK_KIND=8
16226 OMP_LOCK_25_KIND=$OMP_LOCK_25_SIZE
16227 OMP_NEST_LOCK_25_KIND=$OMP_NEST_LOCK_25_SIZE
16228 if test $OMP_LOCK_25_SIZE -gt 8 || test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then
16229 OMP_LOCK_25_KIND=8
16231 if test $OMP_NEST_LOCK_25_SIZE -gt 8 || test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then
16232 OMP_NEST_LOCK_25_KIND=8
16247 CFLAGS="$save_CFLAGS"
16249 ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
16251 ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
16253 cat >confcache <<\_ACEOF
16254 # This file is a shell script that caches the results of configure
16255 # tests run on this system so they can be shared between configure
16256 # scripts and configure runs, see configure's option --config-cache.
16257 # It is not useful on other systems. If it contains results you don't
16258 # want to keep, you may remove or edit it.
16260 # config.status only pays attention to the cache file if you give it
16261 # the --recheck option to rerun configure.
16263 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16264 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16265 # following values.
16267 _ACEOF
16269 # The following way of writing the cache mishandles newlines in values,
16270 # but we know of no workaround that is simple, portable, and efficient.
16271 # So, we kill variables containing newlines.
16272 # Ultrix sh set writes to stderr and can't be redirected directly,
16273 # and sets the high bit in the cache file unless we assign to the vars.
16275 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16276 eval ac_val=\$$ac_var
16277 case $ac_val in #(
16278 *${as_nl}*)
16279 case $ac_var in #(
16280 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16281 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16282 esac
16283 case $ac_var in #(
16284 _ | IFS | as_nl) ;; #(
16285 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16286 *) { eval $ac_var=; unset $ac_var;} ;;
16287 esac ;;
16288 esac
16289 done
16291 (set) 2>&1 |
16292 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16293 *${as_nl}ac_space=\ *)
16294 # `set' does not quote correctly, so add quotes: double-quote
16295 # substitution turns \\\\ into \\, and sed turns \\ into \.
16296 sed -n \
16297 "s/'/'\\\\''/g;
16298 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16299 ;; #(
16301 # `set' quotes correctly as required by POSIX, so do not add quotes.
16302 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16304 esac |
16305 sort
16307 sed '
16308 /^ac_cv_env_/b end
16309 t clear
16310 :clear
16311 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16312 t end
16313 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16314 :end' >>confcache
16315 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16316 if test -w "$cache_file"; then
16317 test "x$cache_file" != "x/dev/null" &&
16318 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16319 $as_echo "$as_me: updating cache $cache_file" >&6;}
16320 cat confcache >$cache_file
16321 else
16322 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16323 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16326 rm -f confcache
16328 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16329 # Let make expand exec_prefix.
16330 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16332 DEFS=-DHAVE_CONFIG_H
16334 ac_libobjs=
16335 ac_ltlibobjs=
16336 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16337 # 1. Remove the extension, and $U if already installed.
16338 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16339 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16340 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16341 # will be set to the directory where LIBOBJS objects are built.
16342 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16343 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16344 done
16345 LIBOBJS=$ac_libobjs
16347 LTLIBOBJS=$ac_ltlibobjs
16350 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
16351 as_fn_error "conditional \"GENINSRC\" was never defined.
16352 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16354 if test -n "$EXEEXT"; then
16355 am__EXEEXT_TRUE=
16356 am__EXEEXT_FALSE='#'
16357 else
16358 am__EXEEXT_TRUE='#'
16359 am__EXEEXT_FALSE=
16362 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16363 as_fn_error "conditional \"AMDEP\" was never defined.
16364 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16366 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16367 as_fn_error "conditional \"am__fastdepCC\" was never defined.
16368 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16370 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
16371 as_fn_error "conditional \"BUILD_INFO\" was never defined.
16372 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16374 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16375 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
16376 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16378 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
16379 as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
16380 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16382 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
16383 as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
16384 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16386 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
16387 as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
16388 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16390 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2_FALSE}"; then
16391 as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2\" was never defined.
16392 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16394 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
16395 as_fn_error "conditional \"USE_FORTRAN\" was never defined.
16396 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16399 : ${CONFIG_STATUS=./config.status}
16400 ac_write_fail=0
16401 ac_clean_files_save=$ac_clean_files
16402 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16403 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16404 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16405 as_write_fail=0
16406 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16407 #! $SHELL
16408 # Generated by $as_me.
16409 # Run this file to recreate the current configuration.
16410 # Compiler output produced by configure, useful for debugging
16411 # configure, is in config.log if it exists.
16413 debug=false
16414 ac_cs_recheck=false
16415 ac_cs_silent=false
16417 SHELL=\${CONFIG_SHELL-$SHELL}
16418 export SHELL
16419 _ASEOF
16420 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16421 ## -------------------- ##
16422 ## M4sh Initialization. ##
16423 ## -------------------- ##
16425 # Be more Bourne compatible
16426 DUALCASE=1; export DUALCASE # for MKS sh
16427 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16428 emulate sh
16429 NULLCMD=:
16430 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16431 # is contrary to our usage. Disable this feature.
16432 alias -g '${1+"$@"}'='"$@"'
16433 setopt NO_GLOB_SUBST
16434 else
16435 case `(set -o) 2>/dev/null` in #(
16436 *posix*) :
16437 set -o posix ;; #(
16438 *) :
16440 esac
16444 as_nl='
16446 export as_nl
16447 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16448 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16449 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16450 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16451 # Prefer a ksh shell builtin over an external printf program on Solaris,
16452 # but without wasting forks for bash or zsh.
16453 if test -z "$BASH_VERSION$ZSH_VERSION" \
16454 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16455 as_echo='print -r --'
16456 as_echo_n='print -rn --'
16457 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16458 as_echo='printf %s\n'
16459 as_echo_n='printf %s'
16460 else
16461 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16462 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16463 as_echo_n='/usr/ucb/echo -n'
16464 else
16465 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16466 as_echo_n_body='eval
16467 arg=$1;
16468 case $arg in #(
16469 *"$as_nl"*)
16470 expr "X$arg" : "X\\(.*\\)$as_nl";
16471 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16472 esac;
16473 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16475 export as_echo_n_body
16476 as_echo_n='sh -c $as_echo_n_body as_echo'
16478 export as_echo_body
16479 as_echo='sh -c $as_echo_body as_echo'
16482 # The user is always right.
16483 if test "${PATH_SEPARATOR+set}" != set; then
16484 PATH_SEPARATOR=:
16485 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16486 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16487 PATH_SEPARATOR=';'
16492 # IFS
16493 # We need space, tab and new line, in precisely that order. Quoting is
16494 # there to prevent editors from complaining about space-tab.
16495 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16496 # splitting by setting IFS to empty value.)
16497 IFS=" "" $as_nl"
16499 # Find who we are. Look in the path if we contain no directory separator.
16500 case $0 in #((
16501 *[\\/]* ) as_myself=$0 ;;
16502 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16503 for as_dir in $PATH
16505 IFS=$as_save_IFS
16506 test -z "$as_dir" && as_dir=.
16507 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16508 done
16509 IFS=$as_save_IFS
16512 esac
16513 # We did not find ourselves, most probably we were run as `sh COMMAND'
16514 # in which case we are not to be found in the path.
16515 if test "x$as_myself" = x; then
16516 as_myself=$0
16518 if test ! -f "$as_myself"; then
16519 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16520 exit 1
16523 # Unset variables that we do not need and which cause bugs (e.g. in
16524 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16525 # suppresses any "Segmentation fault" message there. '((' could
16526 # trigger a bug in pdksh 5.2.14.
16527 for as_var in BASH_ENV ENV MAIL MAILPATH
16528 do eval test x\${$as_var+set} = xset \
16529 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16530 done
16531 PS1='$ '
16532 PS2='> '
16533 PS4='+ '
16535 # NLS nuisances.
16536 LC_ALL=C
16537 export LC_ALL
16538 LANGUAGE=C
16539 export LANGUAGE
16541 # CDPATH.
16542 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16545 # as_fn_error ERROR [LINENO LOG_FD]
16546 # ---------------------------------
16547 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16548 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16549 # script with status $?, using 1 if that was 0.
16550 as_fn_error ()
16552 as_status=$?; test $as_status -eq 0 && as_status=1
16553 if test "$3"; then
16554 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16555 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16557 $as_echo "$as_me: error: $1" >&2
16558 as_fn_exit $as_status
16559 } # as_fn_error
16562 # as_fn_set_status STATUS
16563 # -----------------------
16564 # Set $? to STATUS, without forking.
16565 as_fn_set_status ()
16567 return $1
16568 } # as_fn_set_status
16570 # as_fn_exit STATUS
16571 # -----------------
16572 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16573 as_fn_exit ()
16575 set +e
16576 as_fn_set_status $1
16577 exit $1
16578 } # as_fn_exit
16580 # as_fn_unset VAR
16581 # ---------------
16582 # Portably unset VAR.
16583 as_fn_unset ()
16585 { eval $1=; unset $1;}
16587 as_unset=as_fn_unset
16588 # as_fn_append VAR VALUE
16589 # ----------------------
16590 # Append the text in VALUE to the end of the definition contained in VAR. Take
16591 # advantage of any shell optimizations that allow amortized linear growth over
16592 # repeated appends, instead of the typical quadratic growth present in naive
16593 # implementations.
16594 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16595 eval 'as_fn_append ()
16597 eval $1+=\$2
16599 else
16600 as_fn_append ()
16602 eval $1=\$$1\$2
16604 fi # as_fn_append
16606 # as_fn_arith ARG...
16607 # ------------------
16608 # Perform arithmetic evaluation on the ARGs, and store the result in the
16609 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16610 # must be portable across $(()) and expr.
16611 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16612 eval 'as_fn_arith ()
16614 as_val=$(( $* ))
16616 else
16617 as_fn_arith ()
16619 as_val=`expr "$@" || test $? -eq 1`
16621 fi # as_fn_arith
16624 if expr a : '\(a\)' >/dev/null 2>&1 &&
16625 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16626 as_expr=expr
16627 else
16628 as_expr=false
16631 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16632 as_basename=basename
16633 else
16634 as_basename=false
16637 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16638 as_dirname=dirname
16639 else
16640 as_dirname=false
16643 as_me=`$as_basename -- "$0" ||
16644 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16645 X"$0" : 'X\(//\)$' \| \
16646 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16647 $as_echo X/"$0" |
16648 sed '/^.*\/\([^/][^/]*\)\/*$/{
16649 s//\1/
16652 /^X\/\(\/\/\)$/{
16653 s//\1/
16656 /^X\/\(\/\).*/{
16657 s//\1/
16660 s/.*/./; q'`
16662 # Avoid depending upon Character Ranges.
16663 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16664 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16665 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16666 as_cr_digits='0123456789'
16667 as_cr_alnum=$as_cr_Letters$as_cr_digits
16669 ECHO_C= ECHO_N= ECHO_T=
16670 case `echo -n x` in #(((((
16671 -n*)
16672 case `echo 'xy\c'` in
16673 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16674 xy) ECHO_C='\c';;
16675 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16676 ECHO_T=' ';;
16677 esac;;
16679 ECHO_N='-n';;
16680 esac
16682 rm -f conf$$ conf$$.exe conf$$.file
16683 if test -d conf$$.dir; then
16684 rm -f conf$$.dir/conf$$.file
16685 else
16686 rm -f conf$$.dir
16687 mkdir conf$$.dir 2>/dev/null
16689 if (echo >conf$$.file) 2>/dev/null; then
16690 if ln -s conf$$.file conf$$ 2>/dev/null; then
16691 as_ln_s='ln -s'
16692 # ... but there are two gotchas:
16693 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16694 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16695 # In both cases, we have to default to `cp -p'.
16696 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16697 as_ln_s='cp -p'
16698 elif ln conf$$.file conf$$ 2>/dev/null; then
16699 as_ln_s=ln
16700 else
16701 as_ln_s='cp -p'
16703 else
16704 as_ln_s='cp -p'
16706 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16707 rmdir conf$$.dir 2>/dev/null
16710 # as_fn_mkdir_p
16711 # -------------
16712 # Create "$as_dir" as a directory, including parents if necessary.
16713 as_fn_mkdir_p ()
16716 case $as_dir in #(
16717 -*) as_dir=./$as_dir;;
16718 esac
16719 test -d "$as_dir" || eval $as_mkdir_p || {
16720 as_dirs=
16721 while :; do
16722 case $as_dir in #(
16723 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16724 *) as_qdir=$as_dir;;
16725 esac
16726 as_dirs="'$as_qdir' $as_dirs"
16727 as_dir=`$as_dirname -- "$as_dir" ||
16728 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16729 X"$as_dir" : 'X\(//\)[^/]' \| \
16730 X"$as_dir" : 'X\(//\)$' \| \
16731 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16732 $as_echo X"$as_dir" |
16733 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16734 s//\1/
16737 /^X\(\/\/\)[^/].*/{
16738 s//\1/
16741 /^X\(\/\/\)$/{
16742 s//\1/
16745 /^X\(\/\).*/{
16746 s//\1/
16749 s/.*/./; q'`
16750 test -d "$as_dir" && break
16751 done
16752 test -z "$as_dirs" || eval "mkdir $as_dirs"
16753 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16756 } # as_fn_mkdir_p
16757 if mkdir -p . 2>/dev/null; then
16758 as_mkdir_p='mkdir -p "$as_dir"'
16759 else
16760 test -d ./-p && rmdir ./-p
16761 as_mkdir_p=false
16764 if test -x / >/dev/null 2>&1; then
16765 as_test_x='test -x'
16766 else
16767 if ls -dL / >/dev/null 2>&1; then
16768 as_ls_L_option=L
16769 else
16770 as_ls_L_option=
16772 as_test_x='
16773 eval sh -c '\''
16774 if test -d "$1"; then
16775 test -d "$1/.";
16776 else
16777 case $1 in #(
16778 -*)set "./$1";;
16779 esac;
16780 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16781 ???[sx]*):;;*)false;;esac;fi
16782 '\'' sh
16785 as_executable_p=$as_test_x
16787 # Sed expression to map a string onto a valid CPP name.
16788 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16790 # Sed expression to map a string onto a valid variable name.
16791 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16794 exec 6>&1
16795 ## ----------------------------------- ##
16796 ## Main body of $CONFIG_STATUS script. ##
16797 ## ----------------------------------- ##
16798 _ASEOF
16799 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16801 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16802 # Save the log message, to keep $0 and so on meaningful, and to
16803 # report actual input values of CONFIG_FILES etc. instead of their
16804 # values after options handling.
16805 ac_log="
16806 This file was extended by GNU OpenMP Runtime Library $as_me 1.0, which was
16807 generated by GNU Autoconf 2.64. Invocation command line was
16809 CONFIG_FILES = $CONFIG_FILES
16810 CONFIG_HEADERS = $CONFIG_HEADERS
16811 CONFIG_LINKS = $CONFIG_LINKS
16812 CONFIG_COMMANDS = $CONFIG_COMMANDS
16813 $ $0 $@
16815 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16818 _ACEOF
16820 case $ac_config_files in *"
16821 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16822 esac
16824 case $ac_config_headers in *"
16825 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16826 esac
16829 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16830 # Files that config.status was made for.
16831 config_files="$ac_config_files"
16832 config_headers="$ac_config_headers"
16833 config_commands="$ac_config_commands"
16835 _ACEOF
16837 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16838 ac_cs_usage="\
16839 \`$as_me' instantiates files and other configuration actions
16840 from templates according to the current configuration. Unless the files
16841 and actions are specified as TAGs, all are instantiated by default.
16843 Usage: $0 [OPTION]... [TAG]...
16845 -h, --help print this help, then exit
16846 -V, --version print version number and configuration settings, then exit
16847 -q, --quiet, --silent
16848 do not print progress messages
16849 -d, --debug don't remove temporary files
16850 --recheck update $as_me by reconfiguring in the same conditions
16851 --file=FILE[:TEMPLATE]
16852 instantiate the configuration file FILE
16853 --header=FILE[:TEMPLATE]
16854 instantiate the configuration header FILE
16856 Configuration files:
16857 $config_files
16859 Configuration headers:
16860 $config_headers
16862 Configuration commands:
16863 $config_commands
16865 Report bugs to the package provider.
16866 GNU OpenMP Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
16867 General help using GNU software: <http://www.gnu.org/gethelp/>."
16869 _ACEOF
16870 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16871 ac_cs_version="\\
16872 GNU OpenMP Runtime Library config.status 1.0
16873 configured by $0, generated by GNU Autoconf 2.64,
16874 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16876 Copyright (C) 2009 Free Software Foundation, Inc.
16877 This config.status script is free software; the Free Software Foundation
16878 gives unlimited permission to copy, distribute and modify it."
16880 ac_pwd='$ac_pwd'
16881 srcdir='$srcdir'
16882 INSTALL='$INSTALL'
16883 MKDIR_P='$MKDIR_P'
16884 AWK='$AWK'
16885 test -n "\$AWK" || AWK=awk
16886 _ACEOF
16888 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16889 # The default lists apply if the user does not specify any file.
16890 ac_need_defaults=:
16891 while test $# != 0
16893 case $1 in
16894 --*=*)
16895 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16896 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16897 ac_shift=:
16900 ac_option=$1
16901 ac_optarg=$2
16902 ac_shift=shift
16904 esac
16906 case $ac_option in
16907 # Handling of the options.
16908 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16909 ac_cs_recheck=: ;;
16910 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16911 $as_echo "$ac_cs_version"; exit ;;
16912 --debug | --debu | --deb | --de | --d | -d )
16913 debug=: ;;
16914 --file | --fil | --fi | --f )
16915 $ac_shift
16916 case $ac_optarg in
16917 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16918 esac
16919 as_fn_append CONFIG_FILES " '$ac_optarg'"
16920 ac_need_defaults=false;;
16921 --header | --heade | --head | --hea )
16922 $ac_shift
16923 case $ac_optarg in
16924 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16925 esac
16926 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16927 ac_need_defaults=false;;
16928 --he | --h)
16929 # Conflict between --help and --header
16930 as_fn_error "ambiguous option: \`$1'
16931 Try \`$0 --help' for more information.";;
16932 --help | --hel | -h )
16933 $as_echo "$ac_cs_usage"; exit ;;
16934 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16935 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16936 ac_cs_silent=: ;;
16938 # This is an error.
16939 -*) as_fn_error "unrecognized option: \`$1'
16940 Try \`$0 --help' for more information." ;;
16942 *) as_fn_append ac_config_targets " $1"
16943 ac_need_defaults=false ;;
16945 esac
16946 shift
16947 done
16949 ac_configure_extra_args=
16951 if $ac_cs_silent; then
16952 exec 6>/dev/null
16953 ac_configure_extra_args="$ac_configure_extra_args --silent"
16956 _ACEOF
16957 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16958 if \$ac_cs_recheck; then
16959 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16960 shift
16961 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16962 CONFIG_SHELL='$SHELL'
16963 export CONFIG_SHELL
16964 exec "\$@"
16967 _ACEOF
16968 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16969 exec 5>>config.log
16971 echo
16972 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16973 ## Running $as_me. ##
16974 _ASBOX
16975 $as_echo "$ac_log"
16976 } >&5
16978 _ACEOF
16979 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16981 # INIT-COMMANDS
16984 srcdir="$srcdir"
16985 host="$host"
16986 target="$target"
16987 with_multisubdir="$with_multisubdir"
16988 with_multisrctop="$with_multisrctop"
16989 with_target_subdir="$with_target_subdir"
16990 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16991 multi_basedir="$multi_basedir"
16992 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16993 CC="$CC"
16994 CXX="$CXX"
16995 GFORTRAN="$GFORTRAN"
16996 GCJ="$GCJ"
16997 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17000 # The HP-UX ksh and POSIX shell print the target directory to stdout
17001 # if CDPATH is set.
17002 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17004 sed_quote_subst='$sed_quote_subst'
17005 double_quote_subst='$double_quote_subst'
17006 delay_variable_subst='$delay_variable_subst'
17007 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17008 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17009 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17010 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17011 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17012 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17013 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17014 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17015 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17016 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17017 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17018 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17019 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17020 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17021 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17022 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17023 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17024 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17025 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17026 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17027 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17028 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17029 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17030 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17031 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17032 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17033 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17034 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17035 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17036 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17037 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17038 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17039 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17040 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17041 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17042 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17043 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17044 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17045 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17046 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17047 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17048 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17049 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17050 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17051 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17052 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17053 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17054 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17055 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"`'
17056 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17057 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17058 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17059 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17060 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17061 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17062 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17063 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17064 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17065 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17066 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17067 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17068 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17069 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17070 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17071 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17072 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17073 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17074 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17075 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17076 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17077 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17078 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17079 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17080 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17081 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17082 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17083 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17084 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17085 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17086 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17087 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17088 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17089 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17090 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17091 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17092 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17093 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17094 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17095 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17096 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17097 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17098 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17099 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17100 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17101 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17102 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17103 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17104 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17105 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17106 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17107 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17108 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17109 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17110 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17111 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17112 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17113 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17114 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17115 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17116 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17117 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17118 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17119 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17120 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17121 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17122 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17123 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17124 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17125 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17126 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17127 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17128 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17129 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17130 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17131 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17132 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17133 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
17134 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
17135 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
17136 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17137 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
17138 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
17139 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
17140 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
17141 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
17142 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
17143 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
17144 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
17145 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
17146 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17147 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17148 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
17149 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
17150 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
17151 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17152 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17153 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
17154 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17155 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
17156 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17157 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17158 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17159 hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
17160 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
17161 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
17162 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
17163 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
17164 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
17165 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
17166 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
17167 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
17168 fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
17169 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
17170 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
17171 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17172 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17173 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
17174 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
17175 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
17176 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
17177 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
17178 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
17179 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
17180 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
17181 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
17183 LTCC='$LTCC'
17184 LTCFLAGS='$LTCFLAGS'
17185 compiler='$compiler_DEFAULT'
17187 # A function that is used when there is no print builtin or printf.
17188 func_fallback_echo ()
17190 eval 'cat <<_LTECHO_EOF
17192 _LTECHO_EOF'
17195 # Quote evaled strings.
17196 for var in SHELL \
17197 ECHO \
17198 SED \
17199 GREP \
17200 EGREP \
17201 FGREP \
17202 LD \
17203 NM \
17204 LN_S \
17205 lt_SP2NL \
17206 lt_NL2SP \
17207 reload_flag \
17208 OBJDUMP \
17209 deplibs_check_method \
17210 file_magic_cmd \
17211 AR \
17212 AR_FLAGS \
17213 STRIP \
17214 RANLIB \
17215 CC \
17216 CFLAGS \
17217 compiler \
17218 lt_cv_sys_global_symbol_pipe \
17219 lt_cv_sys_global_symbol_to_cdecl \
17220 lt_cv_sys_global_symbol_to_c_name_address \
17221 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17222 lt_prog_compiler_no_builtin_flag \
17223 lt_prog_compiler_wl \
17224 lt_prog_compiler_pic \
17225 lt_prog_compiler_static \
17226 lt_cv_prog_compiler_c_o \
17227 need_locks \
17228 DSYMUTIL \
17229 NMEDIT \
17230 LIPO \
17231 OTOOL \
17232 OTOOL64 \
17233 shrext_cmds \
17234 export_dynamic_flag_spec \
17235 whole_archive_flag_spec \
17236 compiler_needs_object \
17237 with_gnu_ld \
17238 allow_undefined_flag \
17239 no_undefined_flag \
17240 hardcode_libdir_flag_spec \
17241 hardcode_libdir_flag_spec_ld \
17242 hardcode_libdir_separator \
17243 fix_srcfile_path \
17244 exclude_expsyms \
17245 include_expsyms \
17246 file_list_spec \
17247 variables_saved_for_relink \
17248 libname_spec \
17249 library_names_spec \
17250 soname_spec \
17251 install_override_mode \
17252 finish_eval \
17253 old_striplib \
17254 striplib \
17255 compiler_lib_search_dirs \
17256 predep_objects \
17257 postdep_objects \
17258 predeps \
17259 postdeps \
17260 compiler_lib_search_path \
17261 LD_FC \
17262 reload_flag_FC \
17263 compiler_FC \
17264 lt_prog_compiler_no_builtin_flag_FC \
17265 lt_prog_compiler_wl_FC \
17266 lt_prog_compiler_pic_FC \
17267 lt_prog_compiler_static_FC \
17268 lt_cv_prog_compiler_c_o_FC \
17269 export_dynamic_flag_spec_FC \
17270 whole_archive_flag_spec_FC \
17271 compiler_needs_object_FC \
17272 with_gnu_ld_FC \
17273 allow_undefined_flag_FC \
17274 no_undefined_flag_FC \
17275 hardcode_libdir_flag_spec_FC \
17276 hardcode_libdir_flag_spec_ld_FC \
17277 hardcode_libdir_separator_FC \
17278 fix_srcfile_path_FC \
17279 exclude_expsyms_FC \
17280 include_expsyms_FC \
17281 file_list_spec_FC \
17282 compiler_lib_search_dirs_FC \
17283 predep_objects_FC \
17284 postdep_objects_FC \
17285 predeps_FC \
17286 postdeps_FC \
17287 compiler_lib_search_path_FC; do
17288 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17289 *[\\\\\\\`\\"\\\$]*)
17290 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17293 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17295 esac
17296 done
17298 # Double-quote double-evaled strings.
17299 for var in reload_cmds \
17300 old_postinstall_cmds \
17301 old_postuninstall_cmds \
17302 old_archive_cmds \
17303 extract_expsyms_cmds \
17304 old_archive_from_new_cmds \
17305 old_archive_from_expsyms_cmds \
17306 archive_cmds \
17307 archive_expsym_cmds \
17308 module_cmds \
17309 module_expsym_cmds \
17310 export_symbols_cmds \
17311 prelink_cmds \
17312 postinstall_cmds \
17313 postuninstall_cmds \
17314 finish_cmds \
17315 sys_lib_search_path_spec \
17316 sys_lib_dlsearch_path_spec \
17317 reload_cmds_FC \
17318 old_archive_cmds_FC \
17319 old_archive_from_new_cmds_FC \
17320 old_archive_from_expsyms_cmds_FC \
17321 archive_cmds_FC \
17322 archive_expsym_cmds_FC \
17323 module_cmds_FC \
17324 module_expsym_cmds_FC \
17325 export_symbols_cmds_FC \
17326 prelink_cmds_FC; do
17327 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17328 *[\\\\\\\`\\"\\\$]*)
17329 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17332 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17334 esac
17335 done
17337 ac_aux_dir='$ac_aux_dir'
17338 xsi_shell='$xsi_shell'
17339 lt_shell_append='$lt_shell_append'
17341 # See if we are running on zsh, and set the options which allow our
17342 # commands through without removal of \ escapes INIT.
17343 if test -n "\${ZSH_VERSION+set}" ; then
17344 setopt NO_GLOB_SUBST
17348 PACKAGE='$PACKAGE'
17349 VERSION='$VERSION'
17350 TIMESTAMP='$TIMESTAMP'
17351 RM='$RM'
17352 ofile='$ofile'
17359 GCC="$GCC"
17360 CC="$CC"
17361 acx_cv_header_stdint="$acx_cv_header_stdint"
17362 acx_cv_type_int8_t="$acx_cv_type_int8_t"
17363 acx_cv_type_int16_t="$acx_cv_type_int16_t"
17364 acx_cv_type_int32_t="$acx_cv_type_int32_t"
17365 acx_cv_type_int64_t="$acx_cv_type_int64_t"
17366 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
17367 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
17368 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
17369 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
17370 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
17371 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
17372 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
17373 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
17374 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
17377 _ACEOF
17379 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17381 # Handling of arguments.
17382 for ac_config_target in $ac_config_targets
17384 case $ac_config_target in
17385 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17386 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17387 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17388 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17389 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
17390 "omp.h") CONFIG_FILES="$CONFIG_FILES omp.h" ;;
17391 "omp_lib.h") CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
17392 "omp_lib.f90") CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
17393 "libgomp_f.h") CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
17394 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17395 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17396 "libgomp.spec") CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
17398 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17399 esac
17400 done
17403 # If the user did not use the arguments to specify the items to instantiate,
17404 # then the envvar interface is used. Set only those that are not.
17405 # We use the long form for the default assignment because of an extremely
17406 # bizarre bug on SunOS 4.1.3.
17407 if $ac_need_defaults; then
17408 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17409 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17410 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17413 # Have a temporary directory for convenience. Make it in the build tree
17414 # simply because there is no reason against having it here, and in addition,
17415 # creating and moving files from /tmp can sometimes cause problems.
17416 # Hook for its removal unless debugging.
17417 # Note that there is a small window in which the directory will not be cleaned:
17418 # after its creation but before its name has been assigned to `$tmp'.
17419 $debug ||
17421 tmp=
17422 trap 'exit_status=$?
17423 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17425 trap 'as_fn_exit 1' 1 2 13 15
17427 # Create a (secure) tmp directory for tmp files.
17430 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17431 test -n "$tmp" && test -d "$tmp"
17432 } ||
17434 tmp=./conf$$-$RANDOM
17435 (umask 077 && mkdir "$tmp")
17436 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17438 # Set up the scripts for CONFIG_FILES section.
17439 # No need to generate them if there are no CONFIG_FILES.
17440 # This happens for instance with `./config.status config.h'.
17441 if test -n "$CONFIG_FILES"; then
17444 ac_cr=`echo X | tr X '\015'`
17445 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17446 # But we know of no other shell where ac_cr would be empty at this
17447 # point, so we can use a bashism as a fallback.
17448 if test "x$ac_cr" = x; then
17449 eval ac_cr=\$\'\\r\'
17451 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17452 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17453 ac_cs_awk_cr='\r'
17454 else
17455 ac_cs_awk_cr=$ac_cr
17458 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17459 _ACEOF
17463 echo "cat >conf$$subs.awk <<_ACEOF" &&
17464 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17465 echo "_ACEOF"
17466 } >conf$$subs.sh ||
17467 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17468 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17469 ac_delim='%!_!# '
17470 for ac_last_try in false false false false false :; do
17471 . ./conf$$subs.sh ||
17472 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17474 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17475 if test $ac_delim_n = $ac_delim_num; then
17476 break
17477 elif $ac_last_try; then
17478 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17479 else
17480 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17482 done
17483 rm -f conf$$subs.sh
17485 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17486 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17487 _ACEOF
17488 sed -n '
17490 s/^/S["/; s/!.*/"]=/
17493 s/^[^!]*!//
17494 :repl
17495 t repl
17496 s/'"$ac_delim"'$//
17497 t delim
17500 s/\(.\{148\}\).*/\1/
17501 t more1
17502 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17505 b repl
17506 :more1
17507 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17510 s/.\{148\}//
17511 t nl
17512 :delim
17514 s/\(.\{148\}\).*/\1/
17515 t more2
17516 s/["\\]/\\&/g; s/^/"/; s/$/"/
17519 :more2
17520 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17523 s/.\{148\}//
17524 t delim
17525 ' <conf$$subs.awk | sed '
17526 /^[^""]/{
17528 s/\n//
17530 ' >>$CONFIG_STATUS || ac_write_fail=1
17531 rm -f conf$$subs.awk
17532 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17533 _ACAWK
17534 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17535 for (key in S) S_is_set[key] = 1
17536 FS = "\a"
17540 line = $ 0
17541 nfields = split(line, field, "@")
17542 substed = 0
17543 len = length(field[1])
17544 for (i = 2; i < nfields; i++) {
17545 key = field[i]
17546 keylen = length(key)
17547 if (S_is_set[key]) {
17548 value = S[key]
17549 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17550 len += length(value) + length(field[++i])
17551 substed = 1
17552 } else
17553 len += 1 + keylen
17556 print line
17559 _ACAWK
17560 _ACEOF
17561 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17562 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17563 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17564 else
17566 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17567 || as_fn_error "could not setup config files machinery" "$LINENO" 5
17568 _ACEOF
17570 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17571 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17572 # trailing colons and then remove the whole line if VPATH becomes empty
17573 # (actually we leave an empty line to preserve line numbers).
17574 if test "x$srcdir" = x.; then
17575 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17576 s/:*\$(srcdir):*/:/
17577 s/:*\${srcdir}:*/:/
17578 s/:*@srcdir@:*/:/
17579 s/^\([^=]*=[ ]*\):*/\1/
17580 s/:*$//
17581 s/^[^=]*=[ ]*$//
17585 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17586 fi # test -n "$CONFIG_FILES"
17588 # Set up the scripts for CONFIG_HEADERS section.
17589 # No need to generate them if there are no CONFIG_HEADERS.
17590 # This happens for instance with `./config.status Makefile'.
17591 if test -n "$CONFIG_HEADERS"; then
17592 cat >"$tmp/defines.awk" <<\_ACAWK ||
17593 BEGIN {
17594 _ACEOF
17596 # Transform confdefs.h into an awk script `defines.awk', embedded as
17597 # here-document in config.status, that substitutes the proper values into
17598 # config.h.in to produce config.h.
17600 # Create a delimiter string that does not exist in confdefs.h, to ease
17601 # handling of long lines.
17602 ac_delim='%!_!# '
17603 for ac_last_try in false false :; do
17604 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17605 if test -z "$ac_t"; then
17606 break
17607 elif $ac_last_try; then
17608 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17609 else
17610 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17612 done
17614 # For the awk script, D is an array of macro values keyed by name,
17615 # likewise P contains macro parameters if any. Preserve backslash
17616 # newline sequences.
17618 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17619 sed -n '
17620 s/.\{148\}/&'"$ac_delim"'/g
17621 t rset
17622 :rset
17623 s/^[ ]*#[ ]*define[ ][ ]*/ /
17624 t def
17626 :def
17627 s/\\$//
17628 t bsnl
17629 s/["\\]/\\&/g
17630 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17631 D["\1"]=" \3"/p
17632 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17634 :bsnl
17635 s/["\\]/\\&/g
17636 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17637 D["\1"]=" \3\\\\\\n"\\/p
17638 t cont
17639 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17640 t cont
17642 :cont
17644 s/.\{148\}/&'"$ac_delim"'/g
17645 t clear
17646 :clear
17647 s/\\$//
17648 t bsnlc
17649 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17651 :bsnlc
17652 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17653 b cont
17654 ' <confdefs.h | sed '
17655 s/'"$ac_delim"'/"\\\
17656 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17658 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17659 for (key in D) D_is_set[key] = 1
17660 FS = "\a"
17662 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17663 line = \$ 0
17664 split(line, arg, " ")
17665 if (arg[1] == "#") {
17666 defundef = arg[2]
17667 mac1 = arg[3]
17668 } else {
17669 defundef = substr(arg[1], 2)
17670 mac1 = arg[2]
17672 split(mac1, mac2, "(") #)
17673 macro = mac2[1]
17674 prefix = substr(line, 1, index(line, defundef) - 1)
17675 if (D_is_set[macro]) {
17676 # Preserve the white space surrounding the "#".
17677 print prefix "define", macro P[macro] D[macro]
17678 next
17679 } else {
17680 # Replace #undef with comments. This is necessary, for example,
17681 # in the case of _POSIX_SOURCE, which is predefined and required
17682 # on some systems where configure will not decide to define it.
17683 if (defundef == "undef") {
17684 print "/*", prefix defundef, macro, "*/"
17685 next
17689 { print }
17690 _ACAWK
17691 _ACEOF
17692 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17693 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17694 fi # test -n "$CONFIG_HEADERS"
17697 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17698 shift
17699 for ac_tag
17701 case $ac_tag in
17702 :[FHLC]) ac_mode=$ac_tag; continue;;
17703 esac
17704 case $ac_mode$ac_tag in
17705 :[FHL]*:*);;
17706 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17707 :[FH]-) ac_tag=-:-;;
17708 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17709 esac
17710 ac_save_IFS=$IFS
17711 IFS=:
17712 set x $ac_tag
17713 IFS=$ac_save_IFS
17714 shift
17715 ac_file=$1
17716 shift
17718 case $ac_mode in
17719 :L) ac_source=$1;;
17720 :[FH])
17721 ac_file_inputs=
17722 for ac_f
17724 case $ac_f in
17725 -) ac_f="$tmp/stdin";;
17726 *) # Look for the file first in the build tree, then in the source tree
17727 # (if the path is not absolute). The absolute path cannot be DOS-style,
17728 # because $ac_f cannot contain `:'.
17729 test -f "$ac_f" ||
17730 case $ac_f in
17731 [\\/$]*) false;;
17732 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17733 esac ||
17734 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17735 esac
17736 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17737 as_fn_append ac_file_inputs " '$ac_f'"
17738 done
17740 # Let's still pretend it is `configure' which instantiates (i.e., don't
17741 # use $as_me), people would be surprised to read:
17742 # /* config.h. Generated by config.status. */
17743 configure_input='Generated from '`
17744 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17745 `' by configure.'
17746 if test x"$ac_file" != x-; then
17747 configure_input="$ac_file. $configure_input"
17748 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17749 $as_echo "$as_me: creating $ac_file" >&6;}
17751 # Neutralize special characters interpreted by sed in replacement strings.
17752 case $configure_input in #(
17753 *\&* | *\|* | *\\* )
17754 ac_sed_conf_input=`$as_echo "$configure_input" |
17755 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17756 *) ac_sed_conf_input=$configure_input;;
17757 esac
17759 case $ac_tag in
17760 *:-:* | *:-) cat >"$tmp/stdin" \
17761 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17762 esac
17764 esac
17766 ac_dir=`$as_dirname -- "$ac_file" ||
17767 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17768 X"$ac_file" : 'X\(//\)[^/]' \| \
17769 X"$ac_file" : 'X\(//\)$' \| \
17770 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17771 $as_echo X"$ac_file" |
17772 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17773 s//\1/
17776 /^X\(\/\/\)[^/].*/{
17777 s//\1/
17780 /^X\(\/\/\)$/{
17781 s//\1/
17784 /^X\(\/\).*/{
17785 s//\1/
17788 s/.*/./; q'`
17789 as_dir="$ac_dir"; as_fn_mkdir_p
17790 ac_builddir=.
17792 case "$ac_dir" in
17793 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17795 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17796 # A ".." for each directory in $ac_dir_suffix.
17797 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17798 case $ac_top_builddir_sub in
17799 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17800 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17801 esac ;;
17802 esac
17803 ac_abs_top_builddir=$ac_pwd
17804 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17805 # for backward compatibility:
17806 ac_top_builddir=$ac_top_build_prefix
17808 case $srcdir in
17809 .) # We are building in place.
17810 ac_srcdir=.
17811 ac_top_srcdir=$ac_top_builddir_sub
17812 ac_abs_top_srcdir=$ac_pwd ;;
17813 [\\/]* | ?:[\\/]* ) # Absolute name.
17814 ac_srcdir=$srcdir$ac_dir_suffix;
17815 ac_top_srcdir=$srcdir
17816 ac_abs_top_srcdir=$srcdir ;;
17817 *) # Relative name.
17818 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17819 ac_top_srcdir=$ac_top_build_prefix$srcdir
17820 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17821 esac
17822 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17825 case $ac_mode in
17828 # CONFIG_FILE
17831 case $INSTALL in
17832 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17833 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17834 esac
17835 ac_MKDIR_P=$MKDIR_P
17836 case $MKDIR_P in
17837 [\\/$]* | ?:[\\/]* ) ;;
17838 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17839 esac
17840 _ACEOF
17842 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17843 # If the template does not know about datarootdir, expand it.
17844 # FIXME: This hack should be removed a few years after 2.60.
17845 ac_datarootdir_hack=; ac_datarootdir_seen=
17846 ac_sed_dataroot='
17847 /datarootdir/ {
17851 /@datadir@/p
17852 /@docdir@/p
17853 /@infodir@/p
17854 /@localedir@/p
17855 /@mandir@/p'
17856 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17857 *datarootdir*) ac_datarootdir_seen=yes;;
17858 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17860 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17861 _ACEOF
17862 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17863 ac_datarootdir_hack='
17864 s&@datadir@&$datadir&g
17865 s&@docdir@&$docdir&g
17866 s&@infodir@&$infodir&g
17867 s&@localedir@&$localedir&g
17868 s&@mandir@&$mandir&g
17869 s&\\\${datarootdir}&$datarootdir&g' ;;
17870 esac
17871 _ACEOF
17873 # Neutralize VPATH when `$srcdir' = `.'.
17874 # Shell code in configure.ac might set extrasub.
17875 # FIXME: do we really want to maintain this feature?
17876 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17877 ac_sed_extra="$ac_vpsub
17878 $extrasub
17879 _ACEOF
17880 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17882 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17883 s|@configure_input@|$ac_sed_conf_input|;t t
17884 s&@top_builddir@&$ac_top_builddir_sub&;t t
17885 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17886 s&@srcdir@&$ac_srcdir&;t t
17887 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17888 s&@top_srcdir@&$ac_top_srcdir&;t t
17889 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17890 s&@builddir@&$ac_builddir&;t t
17891 s&@abs_builddir@&$ac_abs_builddir&;t t
17892 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17893 s&@INSTALL@&$ac_INSTALL&;t t
17894 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17895 $ac_datarootdir_hack
17897 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17898 || as_fn_error "could not create $ac_file" "$LINENO" 5
17900 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17901 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17902 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17904 which seems to be undefined. Please make sure it is defined." >&5
17905 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17906 which seems to be undefined. Please make sure it is defined." >&2;}
17908 rm -f "$tmp/stdin"
17909 case $ac_file in
17910 -) cat "$tmp/out" && rm -f "$tmp/out";;
17911 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17912 esac \
17913 || as_fn_error "could not create $ac_file" "$LINENO" 5
17917 # CONFIG_HEADER
17919 if test x"$ac_file" != x-; then
17921 $as_echo "/* $configure_input */" \
17922 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17923 } >"$tmp/config.h" \
17924 || as_fn_error "could not create $ac_file" "$LINENO" 5
17925 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17926 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17927 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17928 else
17929 rm -f "$ac_file"
17930 mv "$tmp/config.h" "$ac_file" \
17931 || as_fn_error "could not create $ac_file" "$LINENO" 5
17933 else
17934 $as_echo "/* $configure_input */" \
17935 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17936 || as_fn_error "could not create -" "$LINENO" 5
17938 # Compute "$ac_file"'s index in $config_headers.
17939 _am_arg="$ac_file"
17940 _am_stamp_count=1
17941 for _am_header in $config_headers :; do
17942 case $_am_header in
17943 $_am_arg | $_am_arg:* )
17944 break ;;
17946 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17947 esac
17948 done
17949 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17950 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17951 X"$_am_arg" : 'X\(//\)[^/]' \| \
17952 X"$_am_arg" : 'X\(//\)$' \| \
17953 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17954 $as_echo X"$_am_arg" |
17955 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17956 s//\1/
17959 /^X\(\/\/\)[^/].*/{
17960 s//\1/
17963 /^X\(\/\/\)$/{
17964 s//\1/
17967 /^X\(\/\).*/{
17968 s//\1/
17971 s/.*/./; q'`/stamp-h$_am_stamp_count
17974 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17975 $as_echo "$as_me: executing $ac_file commands" >&6;}
17977 esac
17980 case $ac_file$ac_mode in
17981 "default-1":C)
17982 # Only add multilib support code if we just rebuilt the top-level
17983 # Makefile.
17984 case " $CONFIG_FILES " in
17985 *" Makefile "*)
17986 ac_file=Makefile . ${multi_basedir}/config-ml.in
17988 esac ;;
17989 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17990 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17991 # are listed without --file. Let's play safe and only enable the eval
17992 # if we detect the quoting.
17993 case $CONFIG_FILES in
17994 *\'*) eval set x "$CONFIG_FILES" ;;
17995 *) set x $CONFIG_FILES ;;
17996 esac
17997 shift
17998 for mf
18000 # Strip MF so we end up with the name of the file.
18001 mf=`echo "$mf" | sed -e 's/:.*$//'`
18002 # Check whether this is an Automake generated Makefile or not.
18003 # We used to match only the files named `Makefile.in', but
18004 # some people rename them; so instead we look at the file content.
18005 # Grep'ing the first line is not enough: some people post-process
18006 # each Makefile.in and add a new line on top of each file to say so.
18007 # Grep'ing the whole file is not good either: AIX grep has a line
18008 # limit of 2048, but all sed's we know have understand at least 4000.
18009 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18010 dirpart=`$as_dirname -- "$mf" ||
18011 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18012 X"$mf" : 'X\(//\)[^/]' \| \
18013 X"$mf" : 'X\(//\)$' \| \
18014 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18015 $as_echo X"$mf" |
18016 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18017 s//\1/
18020 /^X\(\/\/\)[^/].*/{
18021 s//\1/
18024 /^X\(\/\/\)$/{
18025 s//\1/
18028 /^X\(\/\).*/{
18029 s//\1/
18032 s/.*/./; q'`
18033 else
18034 continue
18036 # Extract the definition of DEPDIR, am__include, and am__quote
18037 # from the Makefile without running `make'.
18038 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18039 test -z "$DEPDIR" && continue
18040 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18041 test -z "am__include" && continue
18042 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18043 # When using ansi2knr, U may be empty or an underscore; expand it
18044 U=`sed -n 's/^U = //p' < "$mf"`
18045 # Find all dependency output files, they are included files with
18046 # $(DEPDIR) in their names. We invoke sed twice because it is the
18047 # simplest approach to changing $(DEPDIR) to its actual value in the
18048 # expansion.
18049 for file in `sed -n "
18050 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18051 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18052 # Make sure the directory exists.
18053 test -f "$dirpart/$file" && continue
18054 fdir=`$as_dirname -- "$file" ||
18055 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18056 X"$file" : 'X\(//\)[^/]' \| \
18057 X"$file" : 'X\(//\)$' \| \
18058 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18059 $as_echo X"$file" |
18060 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18061 s//\1/
18064 /^X\(\/\/\)[^/].*/{
18065 s//\1/
18068 /^X\(\/\/\)$/{
18069 s//\1/
18072 /^X\(\/\).*/{
18073 s//\1/
18076 s/.*/./; q'`
18077 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18078 # echo "creating $dirpart/$file"
18079 echo '# dummy' > "$dirpart/$file"
18080 done
18081 done
18084 "libtool":C)
18086 # See if we are running on zsh, and set the options which allow our
18087 # commands through without removal of \ escapes.
18088 if test -n "${ZSH_VERSION+set}" ; then
18089 setopt NO_GLOB_SUBST
18092 cfgfile="${ofile}T"
18093 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18094 $RM "$cfgfile"
18096 cat <<_LT_EOF >> "$cfgfile"
18097 #! $SHELL
18099 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18100 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18101 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18102 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18104 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18105 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18106 # Written by Gordon Matzigkeit, 1996
18108 # This file is part of GNU Libtool.
18110 # GNU Libtool is free software; you can redistribute it and/or
18111 # modify it under the terms of the GNU General Public License as
18112 # published by the Free Software Foundation; either version 2 of
18113 # the License, or (at your option) any later version.
18115 # As a special exception to the GNU General Public License,
18116 # if you distribute this file as part of a program or library that
18117 # is built using GNU Libtool, you may include this file under the
18118 # same distribution terms that you use for the rest of that program.
18120 # GNU Libtool is distributed in the hope that it will be useful,
18121 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18122 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18123 # GNU General Public License for more details.
18125 # You should have received a copy of the GNU General Public License
18126 # along with GNU Libtool; see the file COPYING. If not, a copy
18127 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18128 # obtained by writing to the Free Software Foundation, Inc.,
18129 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18132 # The names of the tagged configurations supported by this script.
18133 available_tags="FC "
18135 # ### BEGIN LIBTOOL CONFIG
18137 # Which release of libtool.m4 was used?
18138 macro_version=$macro_version
18139 macro_revision=$macro_revision
18141 # Whether or not to build shared libraries.
18142 build_libtool_libs=$enable_shared
18144 # Whether or not to build static libraries.
18145 build_old_libs=$enable_static
18147 # What type of objects to build.
18148 pic_mode=$pic_mode
18150 # Whether or not to optimize for fast installation.
18151 fast_install=$enable_fast_install
18153 # Shell to use when invoking shell scripts.
18154 SHELL=$lt_SHELL
18156 # An echo program that protects backslashes.
18157 ECHO=$lt_ECHO
18159 # The host system.
18160 host_alias=$host_alias
18161 host=$host
18162 host_os=$host_os
18164 # The build system.
18165 build_alias=$build_alias
18166 build=$build
18167 build_os=$build_os
18169 # A sed program that does not truncate output.
18170 SED=$lt_SED
18172 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18173 Xsed="\$SED -e 1s/^X//"
18175 # A grep program that handles long lines.
18176 GREP=$lt_GREP
18178 # An ERE matcher.
18179 EGREP=$lt_EGREP
18181 # A literal string matcher.
18182 FGREP=$lt_FGREP
18184 # A BSD- or MS-compatible name lister.
18185 NM=$lt_NM
18187 # Whether we need soft or hard links.
18188 LN_S=$lt_LN_S
18190 # What is the maximum length of a command?
18191 max_cmd_len=$max_cmd_len
18193 # Object file suffix (normally "o").
18194 objext=$ac_objext
18196 # Executable file suffix (normally "").
18197 exeext=$exeext
18199 # whether the shell understands "unset".
18200 lt_unset=$lt_unset
18202 # turn spaces into newlines.
18203 SP2NL=$lt_lt_SP2NL
18205 # turn newlines into spaces.
18206 NL2SP=$lt_lt_NL2SP
18208 # An object symbol dumper.
18209 OBJDUMP=$lt_OBJDUMP
18211 # Method to check whether dependent libraries are shared objects.
18212 deplibs_check_method=$lt_deplibs_check_method
18214 # Command to use when deplibs_check_method == "file_magic".
18215 file_magic_cmd=$lt_file_magic_cmd
18217 # The archiver.
18218 AR=$lt_AR
18219 AR_FLAGS=$lt_AR_FLAGS
18221 # A symbol stripping program.
18222 STRIP=$lt_STRIP
18224 # Commands used to install an old-style archive.
18225 RANLIB=$lt_RANLIB
18226 old_postinstall_cmds=$lt_old_postinstall_cmds
18227 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18229 # Whether to use a lock for old archive extraction.
18230 lock_old_archive_extraction=$lock_old_archive_extraction
18232 # A C compiler.
18233 LTCC=$lt_CC
18235 # LTCC compiler flags.
18236 LTCFLAGS=$lt_CFLAGS
18238 # Take the output of nm and produce a listing of raw symbols and C names.
18239 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18241 # Transform the output of nm in a proper C declaration.
18242 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18244 # Transform the output of nm in a C name address pair.
18245 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18247 # Transform the output of nm in a C name address pair when lib prefix is needed.
18248 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18250 # The name of the directory that contains temporary libtool files.
18251 objdir=$objdir
18253 # Used to examine libraries when file_magic_cmd begins with "file".
18254 MAGIC_CMD=$MAGIC_CMD
18256 # Must we lock files when doing compilation?
18257 need_locks=$lt_need_locks
18259 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18260 DSYMUTIL=$lt_DSYMUTIL
18262 # Tool to change global to local symbols on Mac OS X.
18263 NMEDIT=$lt_NMEDIT
18265 # Tool to manipulate fat objects and archives on Mac OS X.
18266 LIPO=$lt_LIPO
18268 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18269 OTOOL=$lt_OTOOL
18271 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18272 OTOOL64=$lt_OTOOL64
18274 # Old archive suffix (normally "a").
18275 libext=$libext
18277 # Shared library suffix (normally ".so").
18278 shrext_cmds=$lt_shrext_cmds
18280 # The commands to extract the exported symbol list from a shared archive.
18281 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18283 # Variables whose values should be saved in libtool wrapper scripts and
18284 # restored at link time.
18285 variables_saved_for_relink=$lt_variables_saved_for_relink
18287 # Do we need the "lib" prefix for modules?
18288 need_lib_prefix=$need_lib_prefix
18290 # Do we need a version for libraries?
18291 need_version=$need_version
18293 # Library versioning type.
18294 version_type=$version_type
18296 # Shared library runtime path variable.
18297 runpath_var=$runpath_var
18299 # Shared library path variable.
18300 shlibpath_var=$shlibpath_var
18302 # Is shlibpath searched before the hard-coded library search path?
18303 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18305 # Format of library name prefix.
18306 libname_spec=$lt_libname_spec
18308 # List of archive names. First name is the real one, the rest are links.
18309 # The last name is the one that the linker finds with -lNAME
18310 library_names_spec=$lt_library_names_spec
18312 # The coded name of the library, if different from the real name.
18313 soname_spec=$lt_soname_spec
18315 # Permission mode override for installation of shared libraries.
18316 install_override_mode=$lt_install_override_mode
18318 # Command to use after installation of a shared archive.
18319 postinstall_cmds=$lt_postinstall_cmds
18321 # Command to use after uninstallation of a shared archive.
18322 postuninstall_cmds=$lt_postuninstall_cmds
18324 # Commands used to finish a libtool library installation in a directory.
18325 finish_cmds=$lt_finish_cmds
18327 # As "finish_cmds", except a single script fragment to be evaled but
18328 # not shown.
18329 finish_eval=$lt_finish_eval
18331 # Whether we should hardcode library paths into libraries.
18332 hardcode_into_libs=$hardcode_into_libs
18334 # Compile-time system search path for libraries.
18335 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18337 # Run-time system search path for libraries.
18338 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18340 # Whether dlopen is supported.
18341 dlopen_support=$enable_dlopen
18343 # Whether dlopen of programs is supported.
18344 dlopen_self=$enable_dlopen_self
18346 # Whether dlopen of statically linked programs is supported.
18347 dlopen_self_static=$enable_dlopen_self_static
18349 # Commands to strip libraries.
18350 old_striplib=$lt_old_striplib
18351 striplib=$lt_striplib
18354 # The linker used to build libraries.
18355 LD=$lt_LD
18357 # How to create reloadable object files.
18358 reload_flag=$lt_reload_flag
18359 reload_cmds=$lt_reload_cmds
18361 # Commands used to build an old-style archive.
18362 old_archive_cmds=$lt_old_archive_cmds
18364 # A language specific compiler.
18365 CC=$lt_compiler
18367 # Is the compiler the GNU compiler?
18368 with_gcc=$GCC
18370 # Compiler flag to turn off builtin functions.
18371 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18373 # How to pass a linker flag through the compiler.
18374 wl=$lt_lt_prog_compiler_wl
18376 # Additional compiler flags for building library objects.
18377 pic_flag=$lt_lt_prog_compiler_pic
18379 # Compiler flag to prevent dynamic linking.
18380 link_static_flag=$lt_lt_prog_compiler_static
18382 # Does compiler simultaneously support -c and -o options?
18383 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18385 # Whether or not to add -lc for building shared libraries.
18386 build_libtool_need_lc=$archive_cmds_need_lc
18388 # Whether or not to disallow shared libs when runtime libs are static.
18389 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18391 # Compiler flag to allow reflexive dlopens.
18392 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18394 # Compiler flag to generate shared objects directly from archives.
18395 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18397 # Whether the compiler copes with passing no objects directly.
18398 compiler_needs_object=$lt_compiler_needs_object
18400 # Create an old-style archive from a shared archive.
18401 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18403 # Create a temporary old-style archive to link instead of a shared archive.
18404 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18406 # Commands used to build a shared archive.
18407 archive_cmds=$lt_archive_cmds
18408 archive_expsym_cmds=$lt_archive_expsym_cmds
18410 # Commands used to build a loadable module if different from building
18411 # a shared archive.
18412 module_cmds=$lt_module_cmds
18413 module_expsym_cmds=$lt_module_expsym_cmds
18415 # Whether we are building with GNU ld or not.
18416 with_gnu_ld=$lt_with_gnu_ld
18418 # Flag that allows shared libraries with undefined symbols to be built.
18419 allow_undefined_flag=$lt_allow_undefined_flag
18421 # Flag that enforces no undefined symbols.
18422 no_undefined_flag=$lt_no_undefined_flag
18424 # Flag to hardcode \$libdir into a binary during linking.
18425 # This must work even if \$libdir does not exist
18426 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18428 # If ld is used when linking, flag to hardcode \$libdir into a binary
18429 # during linking. This must work even if \$libdir does not exist.
18430 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18432 # Whether we need a single "-rpath" flag with a separated argument.
18433 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18435 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18436 # DIR into the resulting binary.
18437 hardcode_direct=$hardcode_direct
18439 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18440 # DIR into the resulting binary and the resulting library dependency is
18441 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18442 # library is relocated.
18443 hardcode_direct_absolute=$hardcode_direct_absolute
18445 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18446 # into the resulting binary.
18447 hardcode_minus_L=$hardcode_minus_L
18449 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18450 # into the resulting binary.
18451 hardcode_shlibpath_var=$hardcode_shlibpath_var
18453 # Set to "yes" if building a shared library automatically hardcodes DIR
18454 # into the library and all subsequent libraries and executables linked
18455 # against it.
18456 hardcode_automatic=$hardcode_automatic
18458 # Set to yes if linker adds runtime paths of dependent libraries
18459 # to runtime path list.
18460 inherit_rpath=$inherit_rpath
18462 # Whether libtool must link a program against all its dependency libraries.
18463 link_all_deplibs=$link_all_deplibs
18465 # Fix the shell variable \$srcfile for the compiler.
18466 fix_srcfile_path=$lt_fix_srcfile_path
18468 # Set to "yes" if exported symbols are required.
18469 always_export_symbols=$always_export_symbols
18471 # The commands to list exported symbols.
18472 export_symbols_cmds=$lt_export_symbols_cmds
18474 # Symbols that should not be listed in the preloaded symbols.
18475 exclude_expsyms=$lt_exclude_expsyms
18477 # Symbols that must always be exported.
18478 include_expsyms=$lt_include_expsyms
18480 # Commands necessary for linking programs (against libraries) with templates.
18481 prelink_cmds=$lt_prelink_cmds
18483 # Specify filename containing input files.
18484 file_list_spec=$lt_file_list_spec
18486 # How to hardcode a shared library path into an executable.
18487 hardcode_action=$hardcode_action
18489 # The directories searched by this compiler when creating a shared library.
18490 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18492 # Dependencies to place before and after the objects being linked to
18493 # create a shared library.
18494 predep_objects=$lt_predep_objects
18495 postdep_objects=$lt_postdep_objects
18496 predeps=$lt_predeps
18497 postdeps=$lt_postdeps
18499 # The library search path used internally by the compiler when linking
18500 # a shared library.
18501 compiler_lib_search_path=$lt_compiler_lib_search_path
18503 # ### END LIBTOOL CONFIG
18505 _LT_EOF
18507 case $host_os in
18508 aix3*)
18509 cat <<\_LT_EOF >> "$cfgfile"
18510 # AIX sometimes has problems with the GCC collect2 program. For some
18511 # reason, if we set the COLLECT_NAMES environment variable, the problems
18512 # vanish in a puff of smoke.
18513 if test "X${COLLECT_NAMES+set}" != Xset; then
18514 COLLECT_NAMES=
18515 export COLLECT_NAMES
18517 _LT_EOF
18519 esac
18522 ltmain="$ac_aux_dir/ltmain.sh"
18525 # We use sed instead of cat because bash on DJGPP gets confused if
18526 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18527 # text mode, it properly converts lines to CR/LF. This bash problem
18528 # is reportedly fixed, but why not run on old versions too?
18529 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18530 || (rm -f "$cfgfile"; exit 1)
18532 case $xsi_shell in
18533 yes)
18534 cat << \_LT_EOF >> "$cfgfile"
18536 # func_dirname file append nondir_replacement
18537 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18538 # otherwise set result to NONDIR_REPLACEMENT.
18539 func_dirname ()
18541 case ${1} in
18542 */*) func_dirname_result="${1%/*}${2}" ;;
18543 * ) func_dirname_result="${3}" ;;
18544 esac
18547 # func_basename file
18548 func_basename ()
18550 func_basename_result="${1##*/}"
18553 # func_dirname_and_basename file append nondir_replacement
18554 # perform func_basename and func_dirname in a single function
18555 # call:
18556 # dirname: Compute the dirname of FILE. If nonempty,
18557 # add APPEND to the result, otherwise set result
18558 # to NONDIR_REPLACEMENT.
18559 # value returned in "$func_dirname_result"
18560 # basename: Compute filename of FILE.
18561 # value retuned in "$func_basename_result"
18562 # Implementation must be kept synchronized with func_dirname
18563 # and func_basename. For efficiency, we do not delegate to
18564 # those functions but instead duplicate the functionality here.
18565 func_dirname_and_basename ()
18567 case ${1} in
18568 */*) func_dirname_result="${1%/*}${2}" ;;
18569 * ) func_dirname_result="${3}" ;;
18570 esac
18571 func_basename_result="${1##*/}"
18574 # func_stripname prefix suffix name
18575 # strip PREFIX and SUFFIX off of NAME.
18576 # PREFIX and SUFFIX must not contain globbing or regex special
18577 # characters, hashes, percent signs, but SUFFIX may contain a leading
18578 # dot (in which case that matches only a dot).
18579 func_stripname ()
18581 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18582 # positional parameters, so assign one to ordinary parameter first.
18583 func_stripname_result=${3}
18584 func_stripname_result=${func_stripname_result#"${1}"}
18585 func_stripname_result=${func_stripname_result%"${2}"}
18588 # func_opt_split
18589 func_opt_split ()
18591 func_opt_split_opt=${1%%=*}
18592 func_opt_split_arg=${1#*=}
18595 # func_lo2o object
18596 func_lo2o ()
18598 case ${1} in
18599 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18600 *) func_lo2o_result=${1} ;;
18601 esac
18604 # func_xform libobj-or-source
18605 func_xform ()
18607 func_xform_result=${1%.*}.lo
18610 # func_arith arithmetic-term...
18611 func_arith ()
18613 func_arith_result=$(( $* ))
18616 # func_len string
18617 # STRING may not start with a hyphen.
18618 func_len ()
18620 func_len_result=${#1}
18623 _LT_EOF
18625 *) # Bourne compatible functions.
18626 cat << \_LT_EOF >> "$cfgfile"
18628 # func_dirname file append nondir_replacement
18629 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18630 # otherwise set result to NONDIR_REPLACEMENT.
18631 func_dirname ()
18633 # Extract subdirectory from the argument.
18634 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18635 if test "X$func_dirname_result" = "X${1}"; then
18636 func_dirname_result="${3}"
18637 else
18638 func_dirname_result="$func_dirname_result${2}"
18642 # func_basename file
18643 func_basename ()
18645 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18649 # func_stripname prefix suffix name
18650 # strip PREFIX and SUFFIX off of NAME.
18651 # PREFIX and SUFFIX must not contain globbing or regex special
18652 # characters, hashes, percent signs, but SUFFIX may contain a leading
18653 # dot (in which case that matches only a dot).
18654 # func_strip_suffix prefix name
18655 func_stripname ()
18657 case ${2} in
18658 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18659 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18660 esac
18663 # sed scripts:
18664 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18665 my_sed_long_arg='1s/^-[^=]*=//'
18667 # func_opt_split
18668 func_opt_split ()
18670 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18671 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18674 # func_lo2o object
18675 func_lo2o ()
18677 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18680 # func_xform libobj-or-source
18681 func_xform ()
18683 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18686 # func_arith arithmetic-term...
18687 func_arith ()
18689 func_arith_result=`expr "$@"`
18692 # func_len string
18693 # STRING may not start with a hyphen.
18694 func_len ()
18696 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18699 _LT_EOF
18700 esac
18702 case $lt_shell_append in
18703 yes)
18704 cat << \_LT_EOF >> "$cfgfile"
18706 # func_append var value
18707 # Append VALUE to the end of shell variable VAR.
18708 func_append ()
18710 eval "$1+=\$2"
18712 _LT_EOF
18715 cat << \_LT_EOF >> "$cfgfile"
18717 # func_append var value
18718 # Append VALUE to the end of shell variable VAR.
18719 func_append ()
18721 eval "$1=\$$1\$2"
18724 _LT_EOF
18726 esac
18729 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18730 || (rm -f "$cfgfile"; exit 1)
18732 mv -f "$cfgfile" "$ofile" ||
18733 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18734 chmod +x "$ofile"
18737 cat <<_LT_EOF >> "$ofile"
18739 # ### BEGIN LIBTOOL TAG CONFIG: FC
18741 # The linker used to build libraries.
18742 LD=$lt_LD_FC
18744 # How to create reloadable object files.
18745 reload_flag=$lt_reload_flag_FC
18746 reload_cmds=$lt_reload_cmds_FC
18748 # Commands used to build an old-style archive.
18749 old_archive_cmds=$lt_old_archive_cmds_FC
18751 # A language specific compiler.
18752 CC=$lt_compiler_FC
18754 # Is the compiler the GNU compiler?
18755 with_gcc=$GCC_FC
18757 # Compiler flag to turn off builtin functions.
18758 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
18760 # How to pass a linker flag through the compiler.
18761 wl=$lt_lt_prog_compiler_wl_FC
18763 # Additional compiler flags for building library objects.
18764 pic_flag=$lt_lt_prog_compiler_pic_FC
18766 # Compiler flag to prevent dynamic linking.
18767 link_static_flag=$lt_lt_prog_compiler_static_FC
18769 # Does compiler simultaneously support -c and -o options?
18770 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
18772 # Whether or not to add -lc for building shared libraries.
18773 build_libtool_need_lc=$archive_cmds_need_lc_FC
18775 # Whether or not to disallow shared libs when runtime libs are static.
18776 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
18778 # Compiler flag to allow reflexive dlopens.
18779 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
18781 # Compiler flag to generate shared objects directly from archives.
18782 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
18784 # Whether the compiler copes with passing no objects directly.
18785 compiler_needs_object=$lt_compiler_needs_object_FC
18787 # Create an old-style archive from a shared archive.
18788 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
18790 # Create a temporary old-style archive to link instead of a shared archive.
18791 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
18793 # Commands used to build a shared archive.
18794 archive_cmds=$lt_archive_cmds_FC
18795 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
18797 # Commands used to build a loadable module if different from building
18798 # a shared archive.
18799 module_cmds=$lt_module_cmds_FC
18800 module_expsym_cmds=$lt_module_expsym_cmds_FC
18802 # Whether we are building with GNU ld or not.
18803 with_gnu_ld=$lt_with_gnu_ld_FC
18805 # Flag that allows shared libraries with undefined symbols to be built.
18806 allow_undefined_flag=$lt_allow_undefined_flag_FC
18808 # Flag that enforces no undefined symbols.
18809 no_undefined_flag=$lt_no_undefined_flag_FC
18811 # Flag to hardcode \$libdir into a binary during linking.
18812 # This must work even if \$libdir does not exist
18813 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
18815 # If ld is used when linking, flag to hardcode \$libdir into a binary
18816 # during linking. This must work even if \$libdir does not exist.
18817 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
18819 # Whether we need a single "-rpath" flag with a separated argument.
18820 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
18822 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18823 # DIR into the resulting binary.
18824 hardcode_direct=$hardcode_direct_FC
18826 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18827 # DIR into the resulting binary and the resulting library dependency is
18828 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18829 # library is relocated.
18830 hardcode_direct_absolute=$hardcode_direct_absolute_FC
18832 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18833 # into the resulting binary.
18834 hardcode_minus_L=$hardcode_minus_L_FC
18836 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18837 # into the resulting binary.
18838 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
18840 # Set to "yes" if building a shared library automatically hardcodes DIR
18841 # into the library and all subsequent libraries and executables linked
18842 # against it.
18843 hardcode_automatic=$hardcode_automatic_FC
18845 # Set to yes if linker adds runtime paths of dependent libraries
18846 # to runtime path list.
18847 inherit_rpath=$inherit_rpath_FC
18849 # Whether libtool must link a program against all its dependency libraries.
18850 link_all_deplibs=$link_all_deplibs_FC
18852 # Fix the shell variable \$srcfile for the compiler.
18853 fix_srcfile_path=$lt_fix_srcfile_path_FC
18855 # Set to "yes" if exported symbols are required.
18856 always_export_symbols=$always_export_symbols_FC
18858 # The commands to list exported symbols.
18859 export_symbols_cmds=$lt_export_symbols_cmds_FC
18861 # Symbols that should not be listed in the preloaded symbols.
18862 exclude_expsyms=$lt_exclude_expsyms_FC
18864 # Symbols that must always be exported.
18865 include_expsyms=$lt_include_expsyms_FC
18867 # Commands necessary for linking programs (against libraries) with templates.
18868 prelink_cmds=$lt_prelink_cmds_FC
18870 # Specify filename containing input files.
18871 file_list_spec=$lt_file_list_spec_FC
18873 # How to hardcode a shared library path into an executable.
18874 hardcode_action=$hardcode_action_FC
18876 # The directories searched by this compiler when creating a shared library.
18877 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
18879 # Dependencies to place before and after the objects being linked to
18880 # create a shared library.
18881 predep_objects=$lt_predep_objects_FC
18882 postdep_objects=$lt_postdep_objects_FC
18883 predeps=$lt_predeps_FC
18884 postdeps=$lt_postdeps_FC
18886 # The library search path used internally by the compiler when linking
18887 # a shared library.
18888 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
18890 # ### END LIBTOOL TAG CONFIG: FC
18891 _LT_EOF
18894 "gstdint.h":C)
18895 if test "$GCC" = yes; then
18896 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
18897 else
18898 echo "/* generated for $CC */" > tmp-stdint.h
18901 sed 's/^ *//' >> tmp-stdint.h <<EOF
18903 #ifndef GCC_GENERATED_STDINT_H
18904 #define GCC_GENERATED_STDINT_H 1
18906 #include <sys/types.h>
18909 if test "$acx_cv_header_stdint" != stdint.h; then
18910 echo "#include <stddef.h>" >> tmp-stdint.h
18912 if test "$acx_cv_header_stdint" != stddef.h; then
18913 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
18916 sed 's/^ *//' >> tmp-stdint.h <<EOF
18917 /* glibc uses these symbols as guards to prevent redefinitions. */
18918 #ifdef __int8_t_defined
18919 #define _INT8_T
18920 #define _INT16_T
18921 #define _INT32_T
18922 #endif
18923 #ifdef __uint32_t_defined
18924 #define _UINT32_T
18925 #endif
18929 # ----------------- done header, emit basic int types -------------
18930 if test "$acx_cv_header_stdint" = stddef.h; then
18931 sed 's/^ *//' >> tmp-stdint.h <<EOF
18933 #ifndef _UINT8_T
18934 #define _UINT8_T
18935 #ifndef __uint8_t_defined
18936 #define __uint8_t_defined
18937 #ifndef uint8_t
18938 typedef unsigned $acx_cv_type_int8_t uint8_t;
18939 #endif
18940 #endif
18941 #endif
18943 #ifndef _UINT16_T
18944 #define _UINT16_T
18945 #ifndef __uint16_t_defined
18946 #define __uint16_t_defined
18947 #ifndef uint16_t
18948 typedef unsigned $acx_cv_type_int16_t uint16_t;
18949 #endif
18950 #endif
18951 #endif
18953 #ifndef _UINT32_T
18954 #define _UINT32_T
18955 #ifndef __uint32_t_defined
18956 #define __uint32_t_defined
18957 #ifndef uint32_t
18958 typedef unsigned $acx_cv_type_int32_t uint32_t;
18959 #endif
18960 #endif
18961 #endif
18963 #ifndef _INT8_T
18964 #define _INT8_T
18965 #ifndef __int8_t_defined
18966 #define __int8_t_defined
18967 #ifndef int8_t
18968 typedef $acx_cv_type_int8_t int8_t;
18969 #endif
18970 #endif
18971 #endif
18973 #ifndef _INT16_T
18974 #define _INT16_T
18975 #ifndef __int16_t_defined
18976 #define __int16_t_defined
18977 #ifndef int16_t
18978 typedef $acx_cv_type_int16_t int16_t;
18979 #endif
18980 #endif
18981 #endif
18983 #ifndef _INT32_T
18984 #define _INT32_T
18985 #ifndef __int32_t_defined
18986 #define __int32_t_defined
18987 #ifndef int32_t
18988 typedef $acx_cv_type_int32_t int32_t;
18989 #endif
18990 #endif
18991 #endif
18993 elif test "$ac_cv_type_u_int32_t" = yes; then
18994 sed 's/^ *//' >> tmp-stdint.h <<EOF
18996 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
18997 #ifndef _INT8_T
18998 #define _INT8_T
18999 #endif
19000 #ifndef _INT16_T
19001 #define _INT16_T
19002 #endif
19003 #ifndef _INT32_T
19004 #define _INT32_T
19005 #endif
19007 #ifndef _UINT8_T
19008 #define _UINT8_T
19009 #ifndef __uint8_t_defined
19010 #define __uint8_t_defined
19011 #ifndef uint8_t
19012 typedef u_int8_t uint8_t;
19013 #endif
19014 #endif
19015 #endif
19017 #ifndef _UINT16_T
19018 #define _UINT16_T
19019 #ifndef __uint16_t_defined
19020 #define __uint16_t_defined
19021 #ifndef uint16_t
19022 typedef u_int16_t uint16_t;
19023 #endif
19024 #endif
19025 #endif
19027 #ifndef _UINT32_T
19028 #define _UINT32_T
19029 #ifndef __uint32_t_defined
19030 #define __uint32_t_defined
19031 #ifndef uint32_t
19032 typedef u_int32_t uint32_t;
19033 #endif
19034 #endif
19035 #endif
19037 else
19038 sed 's/^ *//' >> tmp-stdint.h <<EOF
19040 /* Some systems have guard macros to prevent redefinitions, define them. */
19041 #ifndef _INT8_T
19042 #define _INT8_T
19043 #endif
19044 #ifndef _INT16_T
19045 #define _INT16_T
19046 #endif
19047 #ifndef _INT32_T
19048 #define _INT32_T
19049 #endif
19050 #ifndef _UINT8_T
19051 #define _UINT8_T
19052 #endif
19053 #ifndef _UINT16_T
19054 #define _UINT16_T
19055 #endif
19056 #ifndef _UINT32_T
19057 #define _UINT32_T
19058 #endif
19062 # ------------- done basic int types, emit int64_t types ------------
19063 if test "$ac_cv_type_uint64_t" = yes; then
19064 sed 's/^ *//' >> tmp-stdint.h <<EOF
19066 /* system headers have good uint64_t and int64_t */
19067 #ifndef _INT64_T
19068 #define _INT64_T
19069 #endif
19070 #ifndef _UINT64_T
19071 #define _UINT64_T
19072 #endif
19074 elif test "$ac_cv_type_u_int64_t" = yes; then
19075 sed 's/^ *//' >> tmp-stdint.h <<EOF
19077 /* system headers have an u_int64_t (and int64_t) */
19078 #ifndef _INT64_T
19079 #define _INT64_T
19080 #endif
19081 #ifndef _UINT64_T
19082 #define _UINT64_T
19083 #ifndef __uint64_t_defined
19084 #define __uint64_t_defined
19085 #ifndef uint64_t
19086 typedef u_int64_t uint64_t;
19087 #endif
19088 #endif
19089 #endif
19091 elif test -n "$acx_cv_type_int64_t"; then
19092 sed 's/^ *//' >> tmp-stdint.h <<EOF
19094 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
19095 #ifndef _INT64_T
19096 #define _INT64_T
19097 #ifndef int64_t
19098 typedef $acx_cv_type_int64_t int64_t;
19099 #endif
19100 #endif
19101 #ifndef _UINT64_T
19102 #define _UINT64_T
19103 #ifndef __uint64_t_defined
19104 #define __uint64_t_defined
19105 #ifndef uint64_t
19106 typedef unsigned $acx_cv_type_int64_t uint64_t;
19107 #endif
19108 #endif
19109 #endif
19111 else
19112 sed 's/^ *//' >> tmp-stdint.h <<EOF
19114 /* some common heuristics for int64_t, using compiler-specific tests */
19115 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
19116 #ifndef _INT64_T
19117 #define _INT64_T
19118 #ifndef __int64_t_defined
19119 #ifndef int64_t
19120 typedef long long int64_t;
19121 #endif
19122 #endif
19123 #endif
19124 #ifndef _UINT64_T
19125 #define _UINT64_T
19126 #ifndef uint64_t
19127 typedef unsigned long long uint64_t;
19128 #endif
19129 #endif
19131 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
19132 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
19133 does not implement __extension__. But that compiler doesn't define
19134 __GNUC_MINOR__. */
19135 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
19136 # define __extension__
19137 # endif
19139 # ifndef _INT64_T
19140 # define _INT64_T
19141 # ifndef int64_t
19142 __extension__ typedef long long int64_t;
19143 # endif
19144 # endif
19145 # ifndef _UINT64_T
19146 # define _UINT64_T
19147 # ifndef uint64_t
19148 __extension__ typedef unsigned long long uint64_t;
19149 # endif
19150 # endif
19152 #elif !defined __STRICT_ANSI__
19153 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
19155 # ifndef _INT64_T
19156 # define _INT64_T
19157 # ifndef int64_t
19158 typedef __int64 int64_t;
19159 # endif
19160 # endif
19161 # ifndef _UINT64_T
19162 # define _UINT64_T
19163 # ifndef uint64_t
19164 typedef unsigned __int64 uint64_t;
19165 # endif
19166 # endif
19167 # endif /* compiler */
19169 #endif /* ANSI version */
19173 # ------------- done int64_t types, emit intptr types ------------
19174 if test "$ac_cv_type_uintptr_t" != yes; then
19175 sed 's/^ *//' >> tmp-stdint.h <<EOF
19177 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
19178 #ifndef __uintptr_t_defined
19179 #ifndef uintptr_t
19180 typedef u$acx_cv_type_intptr_t uintptr_t;
19181 #endif
19182 #endif
19183 #ifndef __intptr_t_defined
19184 #ifndef intptr_t
19185 typedef $acx_cv_type_intptr_t intptr_t;
19186 #endif
19187 #endif
19191 # ------------- done intptr types, emit int_least types ------------
19192 if test "$ac_cv_type_int_least32_t" != yes; then
19193 sed 's/^ *//' >> tmp-stdint.h <<EOF
19195 /* Define int_least types */
19196 typedef int8_t int_least8_t;
19197 typedef int16_t int_least16_t;
19198 typedef int32_t int_least32_t;
19199 #ifdef _INT64_T
19200 typedef int64_t int_least64_t;
19201 #endif
19203 typedef uint8_t uint_least8_t;
19204 typedef uint16_t uint_least16_t;
19205 typedef uint32_t uint_least32_t;
19206 #ifdef _UINT64_T
19207 typedef uint64_t uint_least64_t;
19208 #endif
19212 # ------------- done intptr types, emit int_fast types ------------
19213 if test "$ac_cv_type_int_fast32_t" != yes; then
19214 sed 's/^ *//' >> tmp-stdint.h <<EOF
19216 /* Define int_fast types. short is often slow */
19217 typedef int8_t int_fast8_t;
19218 typedef int int_fast16_t;
19219 typedef int32_t int_fast32_t;
19220 #ifdef _INT64_T
19221 typedef int64_t int_fast64_t;
19222 #endif
19224 typedef uint8_t uint_fast8_t;
19225 typedef unsigned int uint_fast16_t;
19226 typedef uint32_t uint_fast32_t;
19227 #ifdef _UINT64_T
19228 typedef uint64_t uint_fast64_t;
19229 #endif
19233 if test "$ac_cv_type_uintmax_t" != yes; then
19234 sed 's/^ *//' >> tmp-stdint.h <<EOF
19236 /* Define intmax based on what we found */
19237 #ifndef intmax_t
19238 #ifdef _INT64_T
19239 typedef int64_t intmax_t;
19240 #else
19241 typedef long intmax_t;
19242 #endif
19243 #endif
19244 #ifndef uintmax_t
19245 #ifdef _UINT64_T
19246 typedef uint64_t uintmax_t;
19247 #else
19248 typedef unsigned long uintmax_t;
19249 #endif
19250 #endif
19254 sed 's/^ *//' >> tmp-stdint.h <<EOF
19256 #endif /* GCC_GENERATED_STDINT_H */
19259 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
19260 rm -f tmp-stdint.h
19261 else
19262 mv -f tmp-stdint.h gstdint.h
19267 esac
19268 done # for ac_tag
19271 as_fn_exit 0
19272 _ACEOF
19273 ac_clean_files=$ac_clean_files_save
19275 test $ac_write_fail = 0 ||
19276 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19279 # configure is writing to config.log, and then calls config.status.
19280 # config.status does its own redirection, appending to config.log.
19281 # Unfortunately, on DOS this fails, as config.log is still kept open
19282 # by configure, so config.status won't be able to write to it; its
19283 # output is simply discarded. So we exec the FD to /dev/null,
19284 # effectively closing config.log, so it can be properly (re)opened and
19285 # appended to by config.status. When coming back to configure, we
19286 # need to make the FD available again.
19287 if test "$no_create" != yes; then
19288 ac_cs_success=:
19289 ac_config_status_args=
19290 test "$silent" = yes &&
19291 ac_config_status_args="$ac_config_status_args --quiet"
19292 exec 5>/dev/null
19293 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19294 exec 5>>config.log
19295 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19296 # would make configure fail if this is the last instruction.
19297 $ac_cs_success || as_fn_exit $?
19299 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19301 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}