Fix wrong use-after-scope sanitization for omp variable (PR sanitizer/85081).
[official-gcc.git] / libgomp / configure
blob92b8142b0b1861577eb5b823353c3874569609e5
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for GNU Offloading and Multi Processing Runtime Library 1.0.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
173 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
174 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
175 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 PATH=/empty FPATH=/empty; export PATH FPATH
178 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
179 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
180 test \$(( 1 + 1 )) = 2 || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME='GNU Offloading and Multi Processing Runtime Library'
558 PACKAGE_TARNAME='libgomp'
559 PACKAGE_VERSION='1.0'
560 PACKAGE_STRING='GNU Offloading and Multi Processing Runtime Library 1.0'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL='http://www.gnu.org/software/libgomp/'
564 # Factoring default headers for most tests.
565 ac_includes_default="\
566 #include <stdio.h>
567 #ifdef HAVE_SYS_TYPES_H
568 # include <sys/types.h>
569 #endif
570 #ifdef HAVE_SYS_STAT_H
571 # include <sys/stat.h>
572 #endif
573 #ifdef STDC_HEADERS
574 # include <stdlib.h>
575 # include <stddef.h>
576 #else
577 # ifdef HAVE_STDLIB_H
578 # include <stdlib.h>
579 # endif
580 #endif
581 #ifdef HAVE_STRING_H
582 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
583 # include <memory.h>
584 # endif
585 # include <string.h>
586 #endif
587 #ifdef HAVE_STRINGS_H
588 # include <strings.h>
589 #endif
590 #ifdef HAVE_INTTYPES_H
591 # include <inttypes.h>
592 #endif
593 #ifdef HAVE_STDINT_H
594 # include <stdint.h>
595 #endif
596 #ifdef HAVE_UNISTD_H
597 # include <unistd.h>
598 #endif"
600 ac_header_list=
601 ac_func_list=
602 ac_subst_vars='am__EXEEXT_FALSE
603 am__EXEEXT_TRUE
604 LTLIBOBJS
605 LIBOBJS
606 get_gcc_base_ver
607 OMP_NEST_LOCK_25_KIND
608 OMP_LOCK_25_KIND
609 OMP_NEST_LOCK_25_ALIGN
610 OMP_NEST_LOCK_25_SIZE
611 OMP_LOCK_25_ALIGN
612 OMP_LOCK_25_SIZE
613 OMP_NEST_LOCK_KIND
614 OMP_LOCK_KIND
615 OMP_NEST_LOCK_ALIGN
616 OMP_NEST_LOCK_SIZE
617 OMP_LOCK_ALIGN
618 OMP_LOCK_SIZE
619 USE_FORTRAN_FALSE
620 USE_FORTRAN_TRUE
621 link_gomp
622 XLDFLAGS
623 XCFLAGS
624 config_path
625 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
626 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
627 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
628 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
629 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
630 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
631 OPT_LDFLAGS
632 SECTION_LDFLAGS
633 PLUGIN_HSA_FALSE
634 PLUGIN_HSA_TRUE
635 PLUGIN_NVPTX_FALSE
636 PLUGIN_NVPTX_TRUE
637 offload_additional_lib_paths
638 offload_additional_options
639 PLUGIN_HSA_LIBS
640 PLUGIN_HSA_LDFLAGS
641 PLUGIN_HSA_CPPFLAGS
642 PLUGIN_HSA
643 HSA_RUNTIME_LIB
644 HSA_RUNTIME_INCLUDE
645 PLUGIN_NVPTX_LIBS
646 PLUGIN_NVPTX_LDFLAGS
647 PLUGIN_NVPTX_CPPFLAGS
648 PLUGIN_NVPTX
649 CUDA_DRIVER_LIB
650 CUDA_DRIVER_INCLUDE
651 offload_targets
652 libtool_VERSION
653 ac_ct_FC
654 FCFLAGS
656 MAINT
657 MAINTAINER_MODE_FALSE
658 MAINTAINER_MODE_TRUE
659 enable_static
660 enable_shared
661 lt_host_flags
663 OTOOL64
664 OTOOL
665 LIPO
666 NMEDIT
667 DSYMUTIL
668 OBJDUMP
669 LN_S
671 ac_ct_DUMPBIN
672 DUMPBIN
674 FGREP
675 EGREP
676 GREP
678 LIBTOOL
679 BUILD_INFO_FALSE
680 BUILD_INFO_TRUE
681 PERL
682 RANLIB
684 am__fastdepCC_FALSE
685 am__fastdepCC_TRUE
686 CCDEPMODE
687 am__nodep
688 AMDEPBACKSLASH
689 AMDEP_FALSE
690 AMDEP_TRUE
691 am__quote
692 am__include
693 DEPDIR
694 OBJEXT
695 EXEEXT
696 ac_ct_CC
697 CPPFLAGS
698 LDFLAGS
699 CFLAGS
701 toolexeclibdir
702 toolexecdir
703 multi_basedir
704 am__untar
705 am__tar
706 AMTAR
707 am__leading_dot
708 SET_MAKE
710 mkdir_p
711 MKDIR_P
712 INSTALL_STRIP_PROGRAM
713 STRIP
714 install_sh
715 MAKEINFO
716 AUTOHEADER
717 AUTOMAKE
718 AUTOCONF
719 ACLOCAL
720 VERSION
721 PACKAGE
722 CYGPATH_W
723 am__isrc
724 INSTALL_DATA
725 INSTALL_SCRIPT
726 INSTALL_PROGRAM
727 target_os
728 target_vendor
729 target_cpu
730 target
731 host_os
732 host_vendor
733 host_cpu
734 host
735 build_os
736 build_vendor
737 build_cpu
738 build
739 GENINSRC_FALSE
740 GENINSRC_TRUE
741 target_alias
742 host_alias
743 build_alias
744 LIBS
745 ECHO_T
746 ECHO_N
747 ECHO_C
748 DEFS
749 mandir
750 localedir
751 libdir
752 psdir
753 pdfdir
754 dvidir
755 htmldir
756 infodir
757 docdir
758 oldincludedir
759 includedir
760 localstatedir
761 sharedstatedir
762 sysconfdir
763 datadir
764 datarootdir
765 libexecdir
766 sbindir
767 bindir
768 program_transform_name
769 prefix
770 exec_prefix
771 PACKAGE_URL
772 PACKAGE_BUGREPORT
773 PACKAGE_STRING
774 PACKAGE_VERSION
775 PACKAGE_TARNAME
776 PACKAGE_NAME
777 PATH_SEPARATOR
778 SHELL'
779 ac_subst_files=''
780 ac_user_opts='
781 enable_option_checking
782 enable_version_specific_runtime_libs
783 enable_generated_files_in_srcdir
784 enable_multilib
785 enable_dependency_tracking
786 enable_shared
787 enable_static
788 with_pic
789 enable_fast_install
790 with_gnu_ld
791 enable_libtool_lock
792 enable_maintainer_mode
793 with_cuda_driver
794 with_cuda_driver_include
795 with_cuda_driver_lib
796 with_hsa_runtime
797 with_hsa_runtime_include
798 with_hsa_runtime_lib
799 enable_linux_futex
800 enable_tls
801 enable_symvers
802 enable_cet
803 with_gcc_major_version_only
805 ac_precious_vars='build_alias
806 host_alias
807 target_alias
809 CPPFLAGS
811 FCFLAGS
812 LDFLAGS
813 LIBS'
816 # Initialize some variables set by options.
817 ac_init_help=
818 ac_init_version=false
819 ac_unrecognized_opts=
820 ac_unrecognized_sep=
821 # The variables have the same names as the options, with
822 # dashes changed to underlines.
823 cache_file=/dev/null
824 exec_prefix=NONE
825 no_create=
826 no_recursion=
827 prefix=NONE
828 program_prefix=NONE
829 program_suffix=NONE
830 program_transform_name=s,x,x,
831 silent=
832 site=
833 srcdir=
834 verbose=
835 x_includes=NONE
836 x_libraries=NONE
838 # Installation directory options.
839 # These are left unexpanded so users can "make install exec_prefix=/foo"
840 # and all the variables that are supposed to be based on exec_prefix
841 # by default will actually change.
842 # Use braces instead of parens because sh, perl, etc. also accept them.
843 # (The list follows the same order as the GNU Coding Standards.)
844 bindir='${exec_prefix}/bin'
845 sbindir='${exec_prefix}/sbin'
846 libexecdir='${exec_prefix}/libexec'
847 datarootdir='${prefix}/share'
848 datadir='${datarootdir}'
849 sysconfdir='${prefix}/etc'
850 sharedstatedir='${prefix}/com'
851 localstatedir='${prefix}/var'
852 includedir='${prefix}/include'
853 oldincludedir='/usr/include'
854 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
855 infodir='${datarootdir}/info'
856 htmldir='${docdir}'
857 dvidir='${docdir}'
858 pdfdir='${docdir}'
859 psdir='${docdir}'
860 libdir='${exec_prefix}/lib'
861 localedir='${datarootdir}/locale'
862 mandir='${datarootdir}/man'
864 ac_prev=
865 ac_dashdash=
866 for ac_option
868 # If the previous option needs an argument, assign it.
869 if test -n "$ac_prev"; then
870 eval $ac_prev=\$ac_option
871 ac_prev=
872 continue
875 case $ac_option in
876 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
877 *) ac_optarg=yes ;;
878 esac
880 # Accept the important Cygnus configure options, so we can diagnose typos.
882 case $ac_dashdash$ac_option in
884 ac_dashdash=yes ;;
886 -bindir | --bindir | --bindi | --bind | --bin | --bi)
887 ac_prev=bindir ;;
888 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
889 bindir=$ac_optarg ;;
891 -build | --build | --buil | --bui | --bu)
892 ac_prev=build_alias ;;
893 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
894 build_alias=$ac_optarg ;;
896 -cache-file | --cache-file | --cache-fil | --cache-fi \
897 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
898 ac_prev=cache_file ;;
899 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
900 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
901 cache_file=$ac_optarg ;;
903 --config-cache | -C)
904 cache_file=config.cache ;;
906 -datadir | --datadir | --datadi | --datad)
907 ac_prev=datadir ;;
908 -datadir=* | --datadir=* | --datadi=* | --datad=*)
909 datadir=$ac_optarg ;;
911 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
912 | --dataroo | --dataro | --datar)
913 ac_prev=datarootdir ;;
914 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
915 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
916 datarootdir=$ac_optarg ;;
918 -disable-* | --disable-*)
919 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
920 # Reject names that are not valid shell variable names.
921 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
922 as_fn_error "invalid feature name: $ac_useropt"
923 ac_useropt_orig=$ac_useropt
924 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
925 case $ac_user_opts in
927 "enable_$ac_useropt"
928 "*) ;;
929 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
930 ac_unrecognized_sep=', ';;
931 esac
932 eval enable_$ac_useropt=no ;;
934 -docdir | --docdir | --docdi | --doc | --do)
935 ac_prev=docdir ;;
936 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
937 docdir=$ac_optarg ;;
939 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
940 ac_prev=dvidir ;;
941 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
942 dvidir=$ac_optarg ;;
944 -enable-* | --enable-*)
945 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
946 # Reject names that are not valid shell variable names.
947 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
948 as_fn_error "invalid feature name: $ac_useropt"
949 ac_useropt_orig=$ac_useropt
950 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
951 case $ac_user_opts in
953 "enable_$ac_useropt"
954 "*) ;;
955 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
956 ac_unrecognized_sep=', ';;
957 esac
958 eval enable_$ac_useropt=\$ac_optarg ;;
960 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
961 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
962 | --exec | --exe | --ex)
963 ac_prev=exec_prefix ;;
964 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
965 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
966 | --exec=* | --exe=* | --ex=*)
967 exec_prefix=$ac_optarg ;;
969 -gas | --gas | --ga | --g)
970 # Obsolete; use --with-gas.
971 with_gas=yes ;;
973 -help | --help | --hel | --he | -h)
974 ac_init_help=long ;;
975 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
976 ac_init_help=recursive ;;
977 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
978 ac_init_help=short ;;
980 -host | --host | --hos | --ho)
981 ac_prev=host_alias ;;
982 -host=* | --host=* | --hos=* | --ho=*)
983 host_alias=$ac_optarg ;;
985 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
986 ac_prev=htmldir ;;
987 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
988 | --ht=*)
989 htmldir=$ac_optarg ;;
991 -includedir | --includedir | --includedi | --included | --include \
992 | --includ | --inclu | --incl | --inc)
993 ac_prev=includedir ;;
994 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
995 | --includ=* | --inclu=* | --incl=* | --inc=*)
996 includedir=$ac_optarg ;;
998 -infodir | --infodir | --infodi | --infod | --info | --inf)
999 ac_prev=infodir ;;
1000 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1001 infodir=$ac_optarg ;;
1003 -libdir | --libdir | --libdi | --libd)
1004 ac_prev=libdir ;;
1005 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1006 libdir=$ac_optarg ;;
1008 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1009 | --libexe | --libex | --libe)
1010 ac_prev=libexecdir ;;
1011 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1012 | --libexe=* | --libex=* | --libe=*)
1013 libexecdir=$ac_optarg ;;
1015 -localedir | --localedir | --localedi | --localed | --locale)
1016 ac_prev=localedir ;;
1017 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1018 localedir=$ac_optarg ;;
1020 -localstatedir | --localstatedir | --localstatedi | --localstated \
1021 | --localstate | --localstat | --localsta | --localst | --locals)
1022 ac_prev=localstatedir ;;
1023 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1024 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1025 localstatedir=$ac_optarg ;;
1027 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1028 ac_prev=mandir ;;
1029 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1030 mandir=$ac_optarg ;;
1032 -nfp | --nfp | --nf)
1033 # Obsolete; use --without-fp.
1034 with_fp=no ;;
1036 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1037 | --no-cr | --no-c | -n)
1038 no_create=yes ;;
1040 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1041 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1042 no_recursion=yes ;;
1044 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1045 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1046 | --oldin | --oldi | --old | --ol | --o)
1047 ac_prev=oldincludedir ;;
1048 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1049 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1050 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1051 oldincludedir=$ac_optarg ;;
1053 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1054 ac_prev=prefix ;;
1055 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1056 prefix=$ac_optarg ;;
1058 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1059 | --program-pre | --program-pr | --program-p)
1060 ac_prev=program_prefix ;;
1061 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1062 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1063 program_prefix=$ac_optarg ;;
1065 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1066 | --program-suf | --program-su | --program-s)
1067 ac_prev=program_suffix ;;
1068 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1069 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1070 program_suffix=$ac_optarg ;;
1072 -program-transform-name | --program-transform-name \
1073 | --program-transform-nam | --program-transform-na \
1074 | --program-transform-n | --program-transform- \
1075 | --program-transform | --program-transfor \
1076 | --program-transfo | --program-transf \
1077 | --program-trans | --program-tran \
1078 | --progr-tra | --program-tr | --program-t)
1079 ac_prev=program_transform_name ;;
1080 -program-transform-name=* | --program-transform-name=* \
1081 | --program-transform-nam=* | --program-transform-na=* \
1082 | --program-transform-n=* | --program-transform-=* \
1083 | --program-transform=* | --program-transfor=* \
1084 | --program-transfo=* | --program-transf=* \
1085 | --program-trans=* | --program-tran=* \
1086 | --progr-tra=* | --program-tr=* | --program-t=*)
1087 program_transform_name=$ac_optarg ;;
1089 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1090 ac_prev=pdfdir ;;
1091 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1092 pdfdir=$ac_optarg ;;
1094 -psdir | --psdir | --psdi | --psd | --ps)
1095 ac_prev=psdir ;;
1096 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1097 psdir=$ac_optarg ;;
1099 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1100 | -silent | --silent | --silen | --sile | --sil)
1101 silent=yes ;;
1103 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1104 ac_prev=sbindir ;;
1105 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1106 | --sbi=* | --sb=*)
1107 sbindir=$ac_optarg ;;
1109 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1110 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1111 | --sharedst | --shareds | --shared | --share | --shar \
1112 | --sha | --sh)
1113 ac_prev=sharedstatedir ;;
1114 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1115 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1116 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1117 | --sha=* | --sh=*)
1118 sharedstatedir=$ac_optarg ;;
1120 -site | --site | --sit)
1121 ac_prev=site ;;
1122 -site=* | --site=* | --sit=*)
1123 site=$ac_optarg ;;
1125 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1126 ac_prev=srcdir ;;
1127 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1128 srcdir=$ac_optarg ;;
1130 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1131 | --syscon | --sysco | --sysc | --sys | --sy)
1132 ac_prev=sysconfdir ;;
1133 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1134 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1135 sysconfdir=$ac_optarg ;;
1137 -target | --target | --targe | --targ | --tar | --ta | --t)
1138 ac_prev=target_alias ;;
1139 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1140 target_alias=$ac_optarg ;;
1142 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1143 verbose=yes ;;
1145 -version | --version | --versio | --versi | --vers | -V)
1146 ac_init_version=: ;;
1148 -with-* | --with-*)
1149 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1150 # Reject names that are not valid shell variable names.
1151 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1152 as_fn_error "invalid package name: $ac_useropt"
1153 ac_useropt_orig=$ac_useropt
1154 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1155 case $ac_user_opts in
1157 "with_$ac_useropt"
1158 "*) ;;
1159 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1160 ac_unrecognized_sep=', ';;
1161 esac
1162 eval with_$ac_useropt=\$ac_optarg ;;
1164 -without-* | --without-*)
1165 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1166 # Reject names that are not valid shell variable names.
1167 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1168 as_fn_error "invalid package name: $ac_useropt"
1169 ac_useropt_orig=$ac_useropt
1170 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1171 case $ac_user_opts in
1173 "with_$ac_useropt"
1174 "*) ;;
1175 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1176 ac_unrecognized_sep=', ';;
1177 esac
1178 eval with_$ac_useropt=no ;;
1180 --x)
1181 # Obsolete; use --with-x.
1182 with_x=yes ;;
1184 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1185 | --x-incl | --x-inc | --x-in | --x-i)
1186 ac_prev=x_includes ;;
1187 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1188 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1189 x_includes=$ac_optarg ;;
1191 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1192 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1193 ac_prev=x_libraries ;;
1194 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1195 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1196 x_libraries=$ac_optarg ;;
1198 -*) as_fn_error "unrecognized option: \`$ac_option'
1199 Try \`$0 --help' for more information."
1202 *=*)
1203 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1204 # Reject names that are not valid shell variable names.
1205 case $ac_envvar in #(
1206 '' | [0-9]* | *[!_$as_cr_alnum]* )
1207 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1208 esac
1209 eval $ac_envvar=\$ac_optarg
1210 export $ac_envvar ;;
1213 # FIXME: should be removed in autoconf 3.0.
1214 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1215 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1216 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1217 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1220 esac
1221 done
1223 if test -n "$ac_prev"; then
1224 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1225 as_fn_error "missing argument to $ac_option"
1228 if test -n "$ac_unrecognized_opts"; then
1229 case $enable_option_checking in
1230 no) ;;
1231 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1232 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1233 esac
1236 # Check all directory arguments for consistency.
1237 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1238 datadir sysconfdir sharedstatedir localstatedir includedir \
1239 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1240 libdir localedir mandir
1242 eval ac_val=\$$ac_var
1243 # Remove trailing slashes.
1244 case $ac_val in
1245 */ )
1246 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1247 eval $ac_var=\$ac_val;;
1248 esac
1249 # Be sure to have absolute directory names.
1250 case $ac_val in
1251 [\\/$]* | ?:[\\/]* ) continue;;
1252 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1253 esac
1254 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1255 done
1257 # There might be people who depend on the old broken behavior: `$host'
1258 # used to hold the argument of --host etc.
1259 # FIXME: To remove some day.
1260 build=$build_alias
1261 host=$host_alias
1262 target=$target_alias
1264 # FIXME: To remove some day.
1265 if test "x$host_alias" != x; then
1266 if test "x$build_alias" = x; then
1267 cross_compiling=maybe
1268 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1269 If a cross compiler is detected then cross compile mode will be used." >&2
1270 elif test "x$build_alias" != "x$host_alias"; then
1271 cross_compiling=yes
1275 ac_tool_prefix=
1276 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1278 test "$silent" = yes && exec 6>/dev/null
1281 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1282 ac_ls_di=`ls -di .` &&
1283 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1284 as_fn_error "working directory cannot be determined"
1285 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1286 as_fn_error "pwd does not report name of working directory"
1289 # Find the source files, if location was not specified.
1290 if test -z "$srcdir"; then
1291 ac_srcdir_defaulted=yes
1292 # Try the directory containing this script, then the parent directory.
1293 ac_confdir=`$as_dirname -- "$as_myself" ||
1294 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1295 X"$as_myself" : 'X\(//\)[^/]' \| \
1296 X"$as_myself" : 'X\(//\)$' \| \
1297 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1298 $as_echo X"$as_myself" |
1299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1300 s//\1/
1303 /^X\(\/\/\)[^/].*/{
1304 s//\1/
1307 /^X\(\/\/\)$/{
1308 s//\1/
1311 /^X\(\/\).*/{
1312 s//\1/
1315 s/.*/./; q'`
1316 srcdir=$ac_confdir
1317 if test ! -r "$srcdir/$ac_unique_file"; then
1318 srcdir=..
1320 else
1321 ac_srcdir_defaulted=no
1323 if test ! -r "$srcdir/$ac_unique_file"; then
1324 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1325 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1327 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1328 ac_abs_confdir=`(
1329 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1330 pwd)`
1331 # When building in place, set srcdir=.
1332 if test "$ac_abs_confdir" = "$ac_pwd"; then
1333 srcdir=.
1335 # Remove unnecessary trailing slashes from srcdir.
1336 # Double slashes in file names in object file debugging info
1337 # mess up M-x gdb in Emacs.
1338 case $srcdir in
1339 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1340 esac
1341 for ac_var in $ac_precious_vars; do
1342 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1343 eval ac_env_${ac_var}_value=\$${ac_var}
1344 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1345 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1346 done
1349 # Report the --help message.
1351 if test "$ac_init_help" = "long"; then
1352 # Omit some internal or obsolete options to make the list less imposing.
1353 # This message is too long to be a string in the A/UX 3.1 sh.
1354 cat <<_ACEOF
1355 \`configure' configures GNU Offloading and Multi Processing Runtime Library 1.0 to adapt to many kinds of systems.
1357 Usage: $0 [OPTION]... [VAR=VALUE]...
1359 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1360 VAR=VALUE. See below for descriptions of some of the useful variables.
1362 Defaults for the options are specified in brackets.
1364 Configuration:
1365 -h, --help display this help and exit
1366 --help=short display options specific to this package
1367 --help=recursive display the short help of all the included packages
1368 -V, --version display version information and exit
1369 -q, --quiet, --silent do not print \`checking...' messages
1370 --cache-file=FILE cache test results in FILE [disabled]
1371 -C, --config-cache alias for \`--cache-file=config.cache'
1372 -n, --no-create do not create output files
1373 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1375 Installation directories:
1376 --prefix=PREFIX install architecture-independent files in PREFIX
1377 [$ac_default_prefix]
1378 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1379 [PREFIX]
1381 By default, \`make install' will install all the files in
1382 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1383 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1384 for instance \`--prefix=\$HOME'.
1386 For better control, use the options below.
1388 Fine tuning of the installation directories:
1389 --bindir=DIR user executables [EPREFIX/bin]
1390 --sbindir=DIR system admin executables [EPREFIX/sbin]
1391 --libexecdir=DIR program executables [EPREFIX/libexec]
1392 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1393 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1394 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1395 --libdir=DIR object code libraries [EPREFIX/lib]
1396 --includedir=DIR C header files [PREFIX/include]
1397 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1398 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1399 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1400 --infodir=DIR info documentation [DATAROOTDIR/info]
1401 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1402 --mandir=DIR man documentation [DATAROOTDIR/man]
1403 --docdir=DIR documentation root [DATAROOTDIR/doc/libgomp]
1404 --htmldir=DIR html documentation [DOCDIR]
1405 --dvidir=DIR dvi documentation [DOCDIR]
1406 --pdfdir=DIR pdf documentation [DOCDIR]
1407 --psdir=DIR ps documentation [DOCDIR]
1408 _ACEOF
1410 cat <<\_ACEOF
1412 Program names:
1413 --program-prefix=PREFIX prepend PREFIX to installed program names
1414 --program-suffix=SUFFIX append SUFFIX to installed program names
1415 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1417 System types:
1418 --build=BUILD configure for building on BUILD [guessed]
1419 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1420 --target=TARGET configure for building compilers for TARGET [HOST]
1421 _ACEOF
1424 if test -n "$ac_init_help"; then
1425 case $ac_init_help in
1426 short | recursive ) echo "Configuration of GNU Offloading and Multi Processing Runtime Library 1.0:";;
1427 esac
1428 cat <<\_ACEOF
1430 Optional Features:
1431 --disable-option-checking ignore unrecognized --enable/--with options
1432 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1433 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1434 --enable-version-specific-runtime-libs
1435 Specify that runtime libraries should be installed
1436 in a compiler-specific directory [default=no]
1437 --enable-generated-files-in-srcdir
1438 put copies of generated files in source dir intended
1439 for creating source tarballs for users without
1440 texinfo bison or flex. [default=no]
1441 --enable-multilib build many library versions (default)
1442 --disable-dependency-tracking speeds up one-time build
1443 --enable-dependency-tracking do not reject slow dependency extractors
1444 --enable-shared[=PKGS] build shared libraries [default=yes]
1445 --enable-static[=PKGS] build static libraries [default=yes]
1446 --enable-fast-install[=PKGS]
1447 optimize for fast installation [default=yes]
1448 --disable-libtool-lock avoid locking (might break parallel builds)
1449 --enable-maintainer-mode enable make rules and dependencies not useful
1450 (and sometimes confusing) to the casual installer
1451 --enable-linux-futex use the Linux futex system call [default=default]
1452 --enable-tls Use thread-local storage [default=yes]
1453 --enable-symvers=STYLE enables symbol versioning of the shared library
1454 [default=yes]
1455 --enable-cet enable Intel CET in target libraries
1456 [default=default]
1458 Optional Packages:
1459 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1460 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1461 --with-pic try to use only PIC/non-PIC objects [default=use
1462 both]
1463 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1464 --with-cuda-driver=PATH specify prefix directory for installed CUDA driver
1465 package. Equivalent to
1466 --with-cuda-driver-include=PATH/include plus
1467 --with-cuda-driver-lib=PATH/lib
1468 --with-cuda-driver-include=PATH
1469 specify directory for installed CUDA driver include
1470 files
1471 --with-cuda-driver-lib=PATH
1472 specify directory for the installed CUDA driver
1473 library
1474 --with-hsa-runtime=PATH specify prefix directory for installed HSA run-time
1475 package. Equivalent to
1476 --with-hsa-runtime-include=PATH/include plus
1477 --with-hsa-runtime-lib=PATH/lib
1478 --with-hsa-runtime-include=PATH
1479 specify directory for installed HSA run-time include
1480 files
1481 --with-hsa-runtime-lib=PATH
1482 specify directory for the installed HSA run-time
1483 library
1484 --with-gcc-major-version-only
1485 use only GCC major number in filesystem paths
1487 Some influential environment variables:
1488 CC C compiler command
1489 CFLAGS C compiler flags
1490 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1491 nonstandard directory <lib dir>
1492 LIBS libraries to pass to the linker, e.g. -l<library>
1493 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1494 you have headers in a nonstandard directory <include dir>
1495 CPP C preprocessor
1496 FC Fortran compiler command
1497 FCFLAGS Fortran compiler flags
1499 Use these variables to override the choices made by `configure' or to help
1500 it to find libraries and programs with nonstandard names/locations.
1502 Report bugs to the package provider.
1503 GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
1504 General help using GNU software: <http://www.gnu.org/gethelp/>.
1505 _ACEOF
1506 ac_status=$?
1509 if test "$ac_init_help" = "recursive"; then
1510 # If there are subdirs, report their specific --help.
1511 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1512 test -d "$ac_dir" ||
1513 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1514 continue
1515 ac_builddir=.
1517 case "$ac_dir" in
1518 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1521 # A ".." for each directory in $ac_dir_suffix.
1522 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1523 case $ac_top_builddir_sub in
1524 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1525 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1526 esac ;;
1527 esac
1528 ac_abs_top_builddir=$ac_pwd
1529 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1530 # for backward compatibility:
1531 ac_top_builddir=$ac_top_build_prefix
1533 case $srcdir in
1534 .) # We are building in place.
1535 ac_srcdir=.
1536 ac_top_srcdir=$ac_top_builddir_sub
1537 ac_abs_top_srcdir=$ac_pwd ;;
1538 [\\/]* | ?:[\\/]* ) # Absolute name.
1539 ac_srcdir=$srcdir$ac_dir_suffix;
1540 ac_top_srcdir=$srcdir
1541 ac_abs_top_srcdir=$srcdir ;;
1542 *) # Relative name.
1543 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1544 ac_top_srcdir=$ac_top_build_prefix$srcdir
1545 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1546 esac
1547 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1549 cd "$ac_dir" || { ac_status=$?; continue; }
1550 # Check for guested configure.
1551 if test -f "$ac_srcdir/configure.gnu"; then
1552 echo &&
1553 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1554 elif test -f "$ac_srcdir/configure"; then
1555 echo &&
1556 $SHELL "$ac_srcdir/configure" --help=recursive
1557 else
1558 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1559 fi || ac_status=$?
1560 cd "$ac_pwd" || { ac_status=$?; break; }
1561 done
1564 test -n "$ac_init_help" && exit $ac_status
1565 if $ac_init_version; then
1566 cat <<\_ACEOF
1567 GNU Offloading and Multi Processing Runtime Library configure 1.0
1568 generated by GNU Autoconf 2.64
1570 Copyright (C) 2009 Free Software Foundation, Inc.
1571 This configure script is free software; the Free Software Foundation
1572 gives unlimited permission to copy, distribute and modify it.
1573 _ACEOF
1574 exit
1577 ## ------------------------ ##
1578 ## Autoconf initialization. ##
1579 ## ------------------------ ##
1581 # ac_fn_c_try_compile LINENO
1582 # --------------------------
1583 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1584 ac_fn_c_try_compile ()
1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587 rm -f conftest.$ac_objext
1588 if { { ac_try="$ac_compile"
1589 case "(($ac_try" in
1590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1591 *) ac_try_echo=$ac_try;;
1592 esac
1593 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1594 $as_echo "$ac_try_echo"; } >&5
1595 (eval "$ac_compile") 2>conftest.err
1596 ac_status=$?
1597 if test -s conftest.err; then
1598 grep -v '^ *+' conftest.err >conftest.er1
1599 cat conftest.er1 >&5
1600 mv -f conftest.er1 conftest.err
1602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1603 test $ac_status = 0; } && {
1604 test -z "$ac_c_werror_flag" ||
1605 test ! -s conftest.err
1606 } && test -s conftest.$ac_objext; then :
1607 ac_retval=0
1608 else
1609 $as_echo "$as_me: failed program was:" >&5
1610 sed 's/^/| /' conftest.$ac_ext >&5
1612 ac_retval=1
1614 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1615 return $ac_retval
1617 } # ac_fn_c_try_compile
1619 # ac_fn_c_try_link LINENO
1620 # -----------------------
1621 # Try to link conftest.$ac_ext, and return whether this succeeded.
1622 ac_fn_c_try_link ()
1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625 rm -f conftest.$ac_objext conftest$ac_exeext
1626 if { { ac_try="$ac_link"
1627 case "(($ac_try" in
1628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1629 *) ac_try_echo=$ac_try;;
1630 esac
1631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1632 $as_echo "$ac_try_echo"; } >&5
1633 (eval "$ac_link") 2>conftest.err
1634 ac_status=$?
1635 if test -s conftest.err; then
1636 grep -v '^ *+' conftest.err >conftest.er1
1637 cat conftest.er1 >&5
1638 mv -f conftest.er1 conftest.err
1640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1641 test $ac_status = 0; } && {
1642 test -z "$ac_c_werror_flag" ||
1643 test ! -s conftest.err
1644 } && test -s conftest$ac_exeext && {
1645 test "$cross_compiling" = yes ||
1646 $as_test_x conftest$ac_exeext
1647 }; then :
1648 ac_retval=0
1649 else
1650 $as_echo "$as_me: failed program was:" >&5
1651 sed 's/^/| /' conftest.$ac_ext >&5
1653 ac_retval=1
1655 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1656 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1657 # interfere with the next link command; also delete a directory that is
1658 # left behind by Apple's compiler. We do this before executing the actions.
1659 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1660 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1661 return $ac_retval
1663 } # ac_fn_c_try_link
1665 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1666 # -------------------------------------------------------
1667 # Tests whether HEADER exists and can be compiled using the include files in
1668 # INCLUDES, setting the cache variable VAR accordingly.
1669 ac_fn_c_check_header_compile ()
1671 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1673 $as_echo_n "checking for $2... " >&6; }
1674 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1675 $as_echo_n "(cached) " >&6
1676 else
1677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1678 /* end confdefs.h. */
1680 #include <$2>
1681 _ACEOF
1682 if ac_fn_c_try_compile "$LINENO"; then :
1683 eval "$3=yes"
1684 else
1685 eval "$3=no"
1687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1689 eval ac_res=\$$3
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1691 $as_echo "$ac_res" >&6; }
1692 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1694 } # ac_fn_c_check_header_compile
1696 # ac_fn_c_try_cpp LINENO
1697 # ----------------------
1698 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1699 ac_fn_c_try_cpp ()
1701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702 if { { ac_try="$ac_cpp conftest.$ac_ext"
1703 case "(($ac_try" in
1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705 *) ac_try_echo=$ac_try;;
1706 esac
1707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708 $as_echo "$ac_try_echo"; } >&5
1709 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1710 ac_status=$?
1711 if test -s conftest.err; then
1712 grep -v '^ *+' conftest.err >conftest.er1
1713 cat conftest.er1 >&5
1714 mv -f conftest.er1 conftest.err
1716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717 test $ac_status = 0; } >/dev/null && {
1718 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1719 test ! -s conftest.err
1720 }; then :
1721 ac_retval=0
1722 else
1723 $as_echo "$as_me: failed program was:" >&5
1724 sed 's/^/| /' conftest.$ac_ext >&5
1726 ac_retval=1
1728 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1729 return $ac_retval
1731 } # ac_fn_c_try_cpp
1733 # ac_fn_c_try_run LINENO
1734 # ----------------------
1735 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1736 # that executables *can* be run.
1737 ac_fn_c_try_run ()
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740 if { { ac_try="$ac_link"
1741 case "(($ac_try" in
1742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1743 *) ac_try_echo=$ac_try;;
1744 esac
1745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1746 $as_echo "$ac_try_echo"; } >&5
1747 (eval "$ac_link") 2>&5
1748 ac_status=$?
1749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1750 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1751 { { case "(($ac_try" in
1752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1753 *) ac_try_echo=$ac_try;;
1754 esac
1755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1756 $as_echo "$ac_try_echo"; } >&5
1757 (eval "$ac_try") 2>&5
1758 ac_status=$?
1759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1760 test $ac_status = 0; }; }; then :
1761 ac_retval=0
1762 else
1763 $as_echo "$as_me: program exited with status $ac_status" >&5
1764 $as_echo "$as_me: failed program was:" >&5
1765 sed 's/^/| /' conftest.$ac_ext >&5
1767 ac_retval=$ac_status
1769 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1770 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1771 return $ac_retval
1773 } # ac_fn_c_try_run
1775 # ac_fn_c_check_func LINENO FUNC VAR
1776 # ----------------------------------
1777 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1778 ac_fn_c_check_func ()
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1782 $as_echo_n "checking for $2... " >&6; }
1783 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1784 $as_echo_n "(cached) " >&6
1785 else
1786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1787 /* end confdefs.h. */
1788 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1789 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1790 #define $2 innocuous_$2
1792 /* System header to define __stub macros and hopefully few prototypes,
1793 which can conflict with char $2 (); below.
1794 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1795 <limits.h> exists even on freestanding compilers. */
1797 #ifdef __STDC__
1798 # include <limits.h>
1799 #else
1800 # include <assert.h>
1801 #endif
1803 #undef $2
1805 /* Override any GCC internal prototype to avoid an error.
1806 Use char because int might match the return type of a GCC
1807 builtin and then its argument prototype would still apply. */
1808 #ifdef __cplusplus
1809 extern "C"
1810 #endif
1811 char $2 ();
1812 /* The GNU C library defines this for functions which it implements
1813 to always fail with ENOSYS. Some functions are actually named
1814 something starting with __ and the normal name is an alias. */
1815 #if defined __stub_$2 || defined __stub___$2
1816 choke me
1817 #endif
1820 main ()
1822 return $2 ();
1824 return 0;
1826 _ACEOF
1827 if ac_fn_c_try_link "$LINENO"; then :
1828 eval "$3=yes"
1829 else
1830 eval "$3=no"
1832 rm -f core conftest.err conftest.$ac_objext \
1833 conftest$ac_exeext conftest.$ac_ext
1835 eval ac_res=\$$3
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1837 $as_echo "$ac_res" >&6; }
1838 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1840 } # ac_fn_c_check_func
1842 # ac_fn_fc_try_compile LINENO
1843 # ---------------------------
1844 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1845 ac_fn_fc_try_compile ()
1847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848 rm -f conftest.$ac_objext
1849 if { { ac_try="$ac_compile"
1850 case "(($ac_try" in
1851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1852 *) ac_try_echo=$ac_try;;
1853 esac
1854 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1855 $as_echo "$ac_try_echo"; } >&5
1856 (eval "$ac_compile") 2>conftest.err
1857 ac_status=$?
1858 if test -s conftest.err; then
1859 grep -v '^ *+' conftest.err >conftest.er1
1860 cat conftest.er1 >&5
1861 mv -f conftest.er1 conftest.err
1863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1864 test $ac_status = 0; } && {
1865 test -z "$ac_fc_werror_flag" ||
1866 test ! -s conftest.err
1867 } && test -s conftest.$ac_objext; then :
1868 ac_retval=0
1869 else
1870 $as_echo "$as_me: failed program was:" >&5
1871 sed 's/^/| /' conftest.$ac_ext >&5
1873 ac_retval=1
1875 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1876 return $ac_retval
1878 } # ac_fn_fc_try_compile
1880 # ac_fn_fc_try_link LINENO
1881 # ------------------------
1882 # Try to link conftest.$ac_ext, and return whether this succeeded.
1883 ac_fn_fc_try_link ()
1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886 rm -f conftest.$ac_objext conftest$ac_exeext
1887 if { { ac_try="$ac_link"
1888 case "(($ac_try" in
1889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1890 *) ac_try_echo=$ac_try;;
1891 esac
1892 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1893 $as_echo "$ac_try_echo"; } >&5
1894 (eval "$ac_link") 2>conftest.err
1895 ac_status=$?
1896 if test -s conftest.err; then
1897 grep -v '^ *+' conftest.err >conftest.er1
1898 cat conftest.er1 >&5
1899 mv -f conftest.er1 conftest.err
1901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1902 test $ac_status = 0; } && {
1903 test -z "$ac_fc_werror_flag" ||
1904 test ! -s conftest.err
1905 } && test -s conftest$ac_exeext && {
1906 test "$cross_compiling" = yes ||
1907 $as_test_x conftest$ac_exeext
1908 }; then :
1909 ac_retval=0
1910 else
1911 $as_echo "$as_me: failed program was:" >&5
1912 sed 's/^/| /' conftest.$ac_ext >&5
1914 ac_retval=1
1916 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1917 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1918 # interfere with the next link command; also delete a directory that is
1919 # left behind by Apple's compiler. We do this before executing the actions.
1920 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1921 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1922 return $ac_retval
1924 } # ac_fn_fc_try_link
1926 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1927 # -------------------------------------------------------
1928 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1929 # the include files in INCLUDES and setting the cache variable VAR
1930 # accordingly.
1931 ac_fn_c_check_header_mongrel ()
1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1936 $as_echo_n "checking for $2... " >&6; }
1937 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1938 $as_echo_n "(cached) " >&6
1940 eval ac_res=\$$3
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1942 $as_echo "$ac_res" >&6; }
1943 else
1944 # Is the header compilable?
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1946 $as_echo_n "checking $2 usability... " >&6; }
1947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1948 /* end confdefs.h. */
1950 #include <$2>
1951 _ACEOF
1952 if ac_fn_c_try_compile "$LINENO"; then :
1953 ac_header_compiler=yes
1954 else
1955 ac_header_compiler=no
1957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1959 $as_echo "$ac_header_compiler" >&6; }
1961 # Is the header present?
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1963 $as_echo_n "checking $2 presence... " >&6; }
1964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965 /* end confdefs.h. */
1966 #include <$2>
1967 _ACEOF
1968 if ac_fn_c_try_cpp "$LINENO"; then :
1969 ac_header_preproc=yes
1970 else
1971 ac_header_preproc=no
1973 rm -f conftest.err conftest.$ac_ext
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1975 $as_echo "$ac_header_preproc" >&6; }
1977 # So? What about this header?
1978 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1979 yes:no: )
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1981 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1983 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1985 no:yes:* )
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1987 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1989 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1991 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1993 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1995 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1997 esac
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1999 $as_echo_n "checking for $2... " >&6; }
2000 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2001 $as_echo_n "(cached) " >&6
2002 else
2003 eval "$3=\$ac_header_compiler"
2005 eval ac_res=\$$3
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2007 $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_header_mongrel
2013 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2014 # -------------------------------------------
2015 # Tests whether TYPE exists after having included INCLUDES, setting cache
2016 # variable VAR accordingly.
2017 ac_fn_c_check_type ()
2019 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2021 $as_echo_n "checking for $2... " >&6; }
2022 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2023 $as_echo_n "(cached) " >&6
2024 else
2025 eval "$3=no"
2026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027 /* end confdefs.h. */
2030 main ()
2032 if (sizeof ($2))
2033 return 0;
2035 return 0;
2037 _ACEOF
2038 if ac_fn_c_try_compile "$LINENO"; then :
2039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2040 /* end confdefs.h. */
2043 main ()
2045 if (sizeof (($2)))
2046 return 0;
2048 return 0;
2050 _ACEOF
2051 if ac_fn_c_try_compile "$LINENO"; then :
2053 else
2054 eval "$3=yes"
2056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2060 eval ac_res=\$$3
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2062 $as_echo "$ac_res" >&6; }
2063 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2065 } # ac_fn_c_check_type
2067 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2068 # --------------------------------------------
2069 # Tries to find the compile-time value of EXPR in a program that includes
2070 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2071 # computed
2072 ac_fn_c_compute_int ()
2074 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2075 if test "$cross_compiling" = yes; then
2076 # Depending upon the size, compute the lo and hi bounds.
2077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2078 /* end confdefs.h. */
2081 main ()
2083 static int test_array [1 - 2 * !(($2) >= 0)];
2084 test_array [0] = 0
2087 return 0;
2089 _ACEOF
2090 if ac_fn_c_try_compile "$LINENO"; then :
2091 ac_lo=0 ac_mid=0
2092 while :; do
2093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2094 /* end confdefs.h. */
2097 main ()
2099 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2100 test_array [0] = 0
2103 return 0;
2105 _ACEOF
2106 if ac_fn_c_try_compile "$LINENO"; then :
2107 ac_hi=$ac_mid; break
2108 else
2109 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2110 if test $ac_lo -le $ac_mid; then
2111 ac_lo= ac_hi=
2112 break
2114 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2117 done
2118 else
2119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2120 /* end confdefs.h. */
2123 main ()
2125 static int test_array [1 - 2 * !(($2) < 0)];
2126 test_array [0] = 0
2129 return 0;
2131 _ACEOF
2132 if ac_fn_c_try_compile "$LINENO"; then :
2133 ac_hi=-1 ac_mid=-1
2134 while :; do
2135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136 /* end confdefs.h. */
2139 main ()
2141 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2142 test_array [0] = 0
2145 return 0;
2147 _ACEOF
2148 if ac_fn_c_try_compile "$LINENO"; then :
2149 ac_lo=$ac_mid; break
2150 else
2151 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2152 if test $ac_mid -le $ac_hi; then
2153 ac_lo= ac_hi=
2154 break
2156 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2159 done
2160 else
2161 ac_lo= ac_hi=
2163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2166 # Binary search between lo and hi bounds.
2167 while test "x$ac_lo" != "x$ac_hi"; do
2168 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2170 /* end confdefs.h. */
2173 main ()
2175 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2176 test_array [0] = 0
2179 return 0;
2181 _ACEOF
2182 if ac_fn_c_try_compile "$LINENO"; then :
2183 ac_hi=$ac_mid
2184 else
2185 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2188 done
2189 case $ac_lo in #((
2190 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2191 '') ac_retval=1 ;;
2192 esac
2193 else
2194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2195 /* end confdefs.h. */
2197 static long int longval () { return $2; }
2198 static unsigned long int ulongval () { return $2; }
2199 #include <stdio.h>
2200 #include <stdlib.h>
2202 main ()
2205 FILE *f = fopen ("conftest.val", "w");
2206 if (! f)
2207 return 1;
2208 if (($2) < 0)
2210 long int i = longval ();
2211 if (i != ($2))
2212 return 1;
2213 fprintf (f, "%ld", i);
2215 else
2217 unsigned long int i = ulongval ();
2218 if (i != ($2))
2219 return 1;
2220 fprintf (f, "%lu", i);
2222 /* Do not output a trailing newline, as this causes \r\n confusion
2223 on some platforms. */
2224 return ferror (f) || fclose (f) != 0;
2227 return 0;
2229 _ACEOF
2230 if ac_fn_c_try_run "$LINENO"; then :
2231 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2232 else
2233 ac_retval=1
2235 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2236 conftest.$ac_objext conftest.beam conftest.$ac_ext
2237 rm -f conftest.val
2240 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2241 return $ac_retval
2243 } # ac_fn_c_compute_int
2244 cat >config.log <<_ACEOF
2245 This file contains any messages produced by compilers while
2246 running configure, to aid debugging if configure makes a mistake.
2248 It was created by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
2249 generated by GNU Autoconf 2.64. Invocation command line was
2251 $ $0 $@
2253 _ACEOF
2254 exec 5>>config.log
2256 cat <<_ASUNAME
2257 ## --------- ##
2258 ## Platform. ##
2259 ## --------- ##
2261 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2262 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2263 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2264 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2265 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2267 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2268 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2270 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2271 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2272 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2273 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2274 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2275 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2276 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2278 _ASUNAME
2280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2281 for as_dir in $PATH
2283 IFS=$as_save_IFS
2284 test -z "$as_dir" && as_dir=.
2285 $as_echo "PATH: $as_dir"
2286 done
2287 IFS=$as_save_IFS
2289 } >&5
2291 cat >&5 <<_ACEOF
2294 ## ----------- ##
2295 ## Core tests. ##
2296 ## ----------- ##
2298 _ACEOF
2301 # Keep a trace of the command line.
2302 # Strip out --no-create and --no-recursion so they do not pile up.
2303 # Strip out --silent because we don't want to record it for future runs.
2304 # Also quote any args containing shell meta-characters.
2305 # Make two passes to allow for proper duplicate-argument suppression.
2306 ac_configure_args=
2307 ac_configure_args0=
2308 ac_configure_args1=
2309 ac_must_keep_next=false
2310 for ac_pass in 1 2
2312 for ac_arg
2314 case $ac_arg in
2315 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2316 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2317 | -silent | --silent | --silen | --sile | --sil)
2318 continue ;;
2319 *\'*)
2320 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2321 esac
2322 case $ac_pass in
2323 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2325 as_fn_append ac_configure_args1 " '$ac_arg'"
2326 if test $ac_must_keep_next = true; then
2327 ac_must_keep_next=false # Got value, back to normal.
2328 else
2329 case $ac_arg in
2330 *=* | --config-cache | -C | -disable-* | --disable-* \
2331 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2332 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2333 | -with-* | --with-* | -without-* | --without-* | --x)
2334 case "$ac_configure_args0 " in
2335 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2336 esac
2338 -* ) ac_must_keep_next=true ;;
2339 esac
2341 as_fn_append ac_configure_args " '$ac_arg'"
2343 esac
2344 done
2345 done
2346 { ac_configure_args0=; unset ac_configure_args0;}
2347 { ac_configure_args1=; unset ac_configure_args1;}
2349 # When interrupted or exit'd, cleanup temporary files, and complete
2350 # config.log. We remove comments because anyway the quotes in there
2351 # would cause problems or look ugly.
2352 # WARNING: Use '\'' to represent an apostrophe within the trap.
2353 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2354 trap 'exit_status=$?
2355 # Save into config.log some information that might help in debugging.
2357 echo
2359 cat <<\_ASBOX
2360 ## ---------------- ##
2361 ## Cache variables. ##
2362 ## ---------------- ##
2363 _ASBOX
2364 echo
2365 # The following way of writing the cache mishandles newlines in values,
2367 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2368 eval ac_val=\$$ac_var
2369 case $ac_val in #(
2370 *${as_nl}*)
2371 case $ac_var in #(
2372 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2373 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2374 esac
2375 case $ac_var in #(
2376 _ | IFS | as_nl) ;; #(
2377 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2378 *) { eval $ac_var=; unset $ac_var;} ;;
2379 esac ;;
2380 esac
2381 done
2382 (set) 2>&1 |
2383 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2384 *${as_nl}ac_space=\ *)
2385 sed -n \
2386 "s/'\''/'\''\\\\'\'''\''/g;
2387 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2388 ;; #(
2390 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2392 esac |
2393 sort
2395 echo
2397 cat <<\_ASBOX
2398 ## ----------------- ##
2399 ## Output variables. ##
2400 ## ----------------- ##
2401 _ASBOX
2402 echo
2403 for ac_var in $ac_subst_vars
2405 eval ac_val=\$$ac_var
2406 case $ac_val in
2407 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2408 esac
2409 $as_echo "$ac_var='\''$ac_val'\''"
2410 done | sort
2411 echo
2413 if test -n "$ac_subst_files"; then
2414 cat <<\_ASBOX
2415 ## ------------------- ##
2416 ## File substitutions. ##
2417 ## ------------------- ##
2418 _ASBOX
2419 echo
2420 for ac_var in $ac_subst_files
2422 eval ac_val=\$$ac_var
2423 case $ac_val in
2424 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2425 esac
2426 $as_echo "$ac_var='\''$ac_val'\''"
2427 done | sort
2428 echo
2431 if test -s confdefs.h; then
2432 cat <<\_ASBOX
2433 ## ----------- ##
2434 ## confdefs.h. ##
2435 ## ----------- ##
2436 _ASBOX
2437 echo
2438 cat confdefs.h
2439 echo
2441 test "$ac_signal" != 0 &&
2442 $as_echo "$as_me: caught signal $ac_signal"
2443 $as_echo "$as_me: exit $exit_status"
2444 } >&5
2445 rm -f core *.core core.conftest.* &&
2446 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2447 exit $exit_status
2449 for ac_signal in 1 2 13 15; do
2450 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2451 done
2452 ac_signal=0
2454 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2455 rm -f -r conftest* confdefs.h
2457 $as_echo "/* confdefs.h */" > confdefs.h
2459 # Predefined preprocessor variables.
2461 cat >>confdefs.h <<_ACEOF
2462 #define PACKAGE_NAME "$PACKAGE_NAME"
2463 _ACEOF
2465 cat >>confdefs.h <<_ACEOF
2466 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2467 _ACEOF
2469 cat >>confdefs.h <<_ACEOF
2470 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2471 _ACEOF
2473 cat >>confdefs.h <<_ACEOF
2474 #define PACKAGE_STRING "$PACKAGE_STRING"
2475 _ACEOF
2477 cat >>confdefs.h <<_ACEOF
2478 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2479 _ACEOF
2481 cat >>confdefs.h <<_ACEOF
2482 #define PACKAGE_URL "$PACKAGE_URL"
2483 _ACEOF
2486 # Let the site file select an alternate cache file if it wants to.
2487 # Prefer an explicitly selected file to automatically selected ones.
2488 ac_site_file1=NONE
2489 ac_site_file2=NONE
2490 if test -n "$CONFIG_SITE"; then
2491 ac_site_file1=$CONFIG_SITE
2492 elif test "x$prefix" != xNONE; then
2493 ac_site_file1=$prefix/share/config.site
2494 ac_site_file2=$prefix/etc/config.site
2495 else
2496 ac_site_file1=$ac_default_prefix/share/config.site
2497 ac_site_file2=$ac_default_prefix/etc/config.site
2499 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2501 test "x$ac_site_file" = xNONE && continue
2502 if test -r "$ac_site_file"; then
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2504 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2505 sed 's/^/| /' "$ac_site_file" >&5
2506 . "$ac_site_file"
2508 done
2510 if test -r "$cache_file"; then
2511 # Some versions of bash will fail to source /dev/null (special
2512 # files actually), so we avoid doing that.
2513 if test -f "$cache_file"; then
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2515 $as_echo "$as_me: loading cache $cache_file" >&6;}
2516 case $cache_file in
2517 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2518 *) . "./$cache_file";;
2519 esac
2521 else
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2523 $as_echo "$as_me: creating cache $cache_file" >&6;}
2524 >$cache_file
2527 as_fn_append ac_header_list " unistd.h"
2528 as_fn_append ac_func_list " secure_getenv"
2529 as_fn_append ac_func_list " __secure_getenv"
2530 as_fn_append ac_func_list " getuid"
2531 as_fn_append ac_func_list " geteuid"
2532 as_fn_append ac_func_list " getgid"
2533 as_fn_append ac_func_list " getegid"
2534 # Check that the precious variables saved in the cache have kept the same
2535 # value.
2536 ac_cache_corrupted=false
2537 for ac_var in $ac_precious_vars; do
2538 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2539 eval ac_new_set=\$ac_env_${ac_var}_set
2540 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2541 eval ac_new_val=\$ac_env_${ac_var}_value
2542 case $ac_old_set,$ac_new_set in
2543 set,)
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2545 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2546 ac_cache_corrupted=: ;;
2547 ,set)
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2549 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2550 ac_cache_corrupted=: ;;
2551 ,);;
2553 if test "x$ac_old_val" != "x$ac_new_val"; then
2554 # differences in whitespace do not lead to failure.
2555 ac_old_val_w=`echo x $ac_old_val`
2556 ac_new_val_w=`echo x $ac_new_val`
2557 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2559 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2560 ac_cache_corrupted=:
2561 else
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2563 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2564 eval $ac_var=\$ac_old_val
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2567 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2569 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2570 fi;;
2571 esac
2572 # Pass precious variables to config.status.
2573 if test "$ac_new_set" = set; then
2574 case $ac_new_val in
2575 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2576 *) ac_arg=$ac_var=$ac_new_val ;;
2577 esac
2578 case " $ac_configure_args " in
2579 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2580 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2581 esac
2583 done
2584 if $ac_cache_corrupted; then
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2586 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2588 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2589 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2591 ## -------------------- ##
2592 ## Main body of script. ##
2593 ## -------------------- ##
2595 ac_ext=c
2596 ac_cpp='$CPP $CPPFLAGS'
2597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2605 ac_config_headers="$ac_config_headers config.h"
2608 # -------
2609 # Options
2610 # -------
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2613 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2614 # Check whether --enable-version-specific-runtime-libs was given.
2615 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2616 enableval=$enable_version_specific_runtime_libs;
2617 case "$enableval" in
2618 yes|no) ;;
2619 *) as_fn_error "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2620 esac
2622 else
2623 enable_version_specific_runtime_libs=no
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2628 $as_echo "$enable_version_specific_runtime_libs" >&6; }
2630 # We would like our source tree to be readonly. However when releases or
2631 # pre-releases are generated, the flex/bison generated files as well as the
2632 # various formats of manuals need to be included along with the rest of the
2633 # sources. Therefore we have --enable-generated-files-in-srcdir to do
2634 # just that.
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2636 $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2637 # Check whether --enable-generated-files-in-srcdir was given.
2638 if test "${enable_generated_files_in_srcdir+set}" = set; then :
2639 enableval=$enable_generated_files_in_srcdir;
2640 case "$enableval" in
2641 yes|no) ;;
2642 *) as_fn_error "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2643 esac
2645 else
2646 enable_generated_files_in_srcdir=no
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2651 $as_echo "$enable_generated_files_in_srcdir" >&6; }
2652 if test "$enable_generated_files_in_srcdir" = yes; then
2653 GENINSRC_TRUE=
2654 GENINSRC_FALSE='#'
2655 else
2656 GENINSRC_TRUE='#'
2657 GENINSRC_FALSE=
2662 # -------
2663 # -------
2665 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2667 # You will slowly go insane if you do not grok the following fact: when
2668 # building this library, the top-level /target/ becomes the library's /host/.
2670 # configure then causes --target to default to --host, exactly like any
2671 # other package using autoconf. Therefore, 'target' and 'host' will
2672 # always be the same. This makes sense both for native and cross compilers
2673 # just think about it for a little while. :-)
2675 # Also, if this library is being configured as part of a cross compiler, the
2676 # top-level configure script will pass the "real" host as $with_cross_host.
2678 # Do not delete or change the following two lines. For why, see
2679 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2680 ac_aux_dir=
2681 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2682 for ac_t in install-sh install.sh shtool; do
2683 if test -f "$ac_dir/$ac_t"; then
2684 ac_aux_dir=$ac_dir
2685 ac_install_sh="$ac_aux_dir/$ac_t -c"
2686 break 2
2688 done
2689 done
2690 if test -z "$ac_aux_dir"; then
2691 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2694 # These three variables are undocumented and unsupported,
2695 # and are intended to be withdrawn in a future Autoconf release.
2696 # They can cause serious problems if a builder's source tree is in a directory
2697 # whose full name contains unusual characters.
2698 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2699 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2700 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2703 # Make sure we can run config.sub.
2704 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2705 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2708 $as_echo_n "checking build system type... " >&6; }
2709 if test "${ac_cv_build+set}" = set; then :
2710 $as_echo_n "(cached) " >&6
2711 else
2712 ac_build_alias=$build_alias
2713 test "x$ac_build_alias" = x &&
2714 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2715 test "x$ac_build_alias" = x &&
2716 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2717 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2718 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2722 $as_echo "$ac_cv_build" >&6; }
2723 case $ac_cv_build in
2724 *-*-*) ;;
2725 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2726 esac
2727 build=$ac_cv_build
2728 ac_save_IFS=$IFS; IFS='-'
2729 set x $ac_cv_build
2730 shift
2731 build_cpu=$1
2732 build_vendor=$2
2733 shift; shift
2734 # Remember, the first character of IFS is used to create $*,
2735 # except with old shells:
2736 build_os=$*
2737 IFS=$ac_save_IFS
2738 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2742 $as_echo_n "checking host system type... " >&6; }
2743 if test "${ac_cv_host+set}" = set; then :
2744 $as_echo_n "(cached) " >&6
2745 else
2746 if test "x$host_alias" = x; then
2747 ac_cv_host=$ac_cv_build
2748 else
2749 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2750 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2755 $as_echo "$ac_cv_host" >&6; }
2756 case $ac_cv_host in
2757 *-*-*) ;;
2758 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2759 esac
2760 host=$ac_cv_host
2761 ac_save_IFS=$IFS; IFS='-'
2762 set x $ac_cv_host
2763 shift
2764 host_cpu=$1
2765 host_vendor=$2
2766 shift; shift
2767 # Remember, the first character of IFS is used to create $*,
2768 # except with old shells:
2769 host_os=$*
2770 IFS=$ac_save_IFS
2771 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2775 $as_echo_n "checking target system type... " >&6; }
2776 if test "${ac_cv_target+set}" = set; then :
2777 $as_echo_n "(cached) " >&6
2778 else
2779 if test "x$target_alias" = x; then
2780 ac_cv_target=$ac_cv_host
2781 else
2782 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2783 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2788 $as_echo "$ac_cv_target" >&6; }
2789 case $ac_cv_target in
2790 *-*-*) ;;
2791 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2792 esac
2793 target=$ac_cv_target
2794 ac_save_IFS=$IFS; IFS='-'
2795 set x $ac_cv_target
2796 shift
2797 target_cpu=$1
2798 target_vendor=$2
2799 shift; shift
2800 # Remember, the first character of IFS is used to create $*,
2801 # except with old shells:
2802 target_os=$*
2803 IFS=$ac_save_IFS
2804 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2807 # The aliases save the names the user supplied, while $host etc.
2808 # will get canonicalized.
2809 test -n "$target_alias" &&
2810 test "$program_prefix$program_suffix$program_transform_name" = \
2811 NONENONEs,x,x, &&
2812 program_prefix=${target_alias}-
2814 target_alias=${target_alias-$host_alias}
2816 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2817 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2818 # 1.9.0: minimum required version
2819 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2820 # of other PACKAGE_* variables will, however, and there's nothing
2821 # we can do about that; they come from AC_INIT).
2822 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2823 # file in the top srcdir, etc, etc), so stop complaining.
2824 # no-dist: we don't want 'dist' and related rules.
2825 # -Wall: turns on all automake warnings...
2826 # -Wno-portability: ...except this one, since GNU make is required.
2827 # -Wno-override: ... and this one, since we do want this in testsuite.
2828 am__api_version='1.11'
2830 # Find a good install program. We prefer a C program (faster),
2831 # so one script is as good as another. But avoid the broken or
2832 # incompatible versions:
2833 # SysV /etc/install, /usr/sbin/install
2834 # SunOS /usr/etc/install
2835 # IRIX /sbin/install
2836 # AIX /bin/install
2837 # AmigaOS /C/install, which installs bootblocks on floppy discs
2838 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2839 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2840 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2841 # OS/2's system install, which has a completely different semantic
2842 # ./install, which can be erroneously created by make from ./install.sh.
2843 # Reject install programs that cannot install multiple files.
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2845 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2846 if test -z "$INSTALL"; then
2847 if test "${ac_cv_path_install+set}" = set; then :
2848 $as_echo_n "(cached) " >&6
2849 else
2850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2851 for as_dir in $PATH
2853 IFS=$as_save_IFS
2854 test -z "$as_dir" && as_dir=.
2855 # Account for people who put trailing slashes in PATH elements.
2856 case $as_dir/ in #((
2857 ./ | .// | /[cC]/* | \
2858 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2859 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2860 /usr/ucb/* ) ;;
2862 # OSF1 and SCO ODT 3.0 have their own names for install.
2863 # Don't use installbsd from OSF since it installs stuff as root
2864 # by default.
2865 for ac_prog in ginstall scoinst install; do
2866 for ac_exec_ext in '' $ac_executable_extensions; do
2867 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2868 if test $ac_prog = install &&
2869 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2870 # AIX install. It has an incompatible calling convention.
2872 elif test $ac_prog = install &&
2873 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2874 # program-specific install script used by HP pwplus--don't use.
2876 else
2877 rm -rf conftest.one conftest.two conftest.dir
2878 echo one > conftest.one
2879 echo two > conftest.two
2880 mkdir conftest.dir
2881 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2882 test -s conftest.one && test -s conftest.two &&
2883 test -s conftest.dir/conftest.one &&
2884 test -s conftest.dir/conftest.two
2885 then
2886 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2887 break 3
2891 done
2892 done
2894 esac
2896 done
2897 IFS=$as_save_IFS
2899 rm -rf conftest.one conftest.two conftest.dir
2902 if test "${ac_cv_path_install+set}" = set; then
2903 INSTALL=$ac_cv_path_install
2904 else
2905 # As a last resort, use the slow shell script. Don't cache a
2906 # value for INSTALL within a source directory, because that will
2907 # break other packages using the cache if that directory is
2908 # removed, or if the value is a relative name.
2909 INSTALL=$ac_install_sh
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2913 $as_echo "$INSTALL" >&6; }
2915 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2916 # It thinks the first close brace ends the variable substitution.
2917 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2919 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2921 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2924 $as_echo_n "checking whether build environment is sane... " >&6; }
2925 # Just in case
2926 sleep 1
2927 echo timestamp > conftest.file
2928 # Reject unsafe characters in $srcdir or the absolute working directory
2929 # name. Accept space and tab only in the latter.
2930 am_lf='
2932 case `pwd` in
2933 *[\\\"\#\$\&\'\`$am_lf]*)
2934 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2935 esac
2936 case $srcdir in
2937 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2938 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2939 esac
2941 # Do `set' in a subshell so we don't clobber the current shell's
2942 # arguments. Must try -L first in case configure is actually a
2943 # symlink; some systems play weird games with the mod time of symlinks
2944 # (eg FreeBSD returns the mod time of the symlink's containing
2945 # directory).
2946 if (
2947 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2948 if test "$*" = "X"; then
2949 # -L didn't work.
2950 set X `ls -t "$srcdir/configure" conftest.file`
2952 rm -f conftest.file
2953 if test "$*" != "X $srcdir/configure conftest.file" \
2954 && test "$*" != "X conftest.file $srcdir/configure"; then
2956 # If neither matched, then we have a broken ls. This can happen
2957 # if, for instance, CONFIG_SHELL is bash and it inherits a
2958 # broken ls alias from the environment. This has actually
2959 # happened. Such a system could not be considered "sane".
2960 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2961 alias in your environment" "$LINENO" 5
2964 test "$2" = conftest.file
2966 then
2967 # Ok.
2969 else
2970 as_fn_error "newly created file is older than distributed files!
2971 Check your system clock" "$LINENO" 5
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2974 $as_echo "yes" >&6; }
2975 test "$program_prefix" != NONE &&
2976 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2977 # Use a double $ so make ignores it.
2978 test "$program_suffix" != NONE &&
2979 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2980 # Double any \ or $.
2981 # By default was `s,x,x', remove it if useless.
2982 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2983 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2985 # expand $ac_aux_dir to an absolute path
2986 am_aux_dir=`cd $ac_aux_dir && pwd`
2988 if test x"${MISSING+set}" != xset; then
2989 case $am_aux_dir in
2990 *\ * | *\ *)
2991 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2993 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2994 esac
2996 # Use eval to expand $SHELL
2997 if eval "$MISSING --run true"; then
2998 am_missing_run="$MISSING --run "
2999 else
3000 am_missing_run=
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3002 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3005 if test x"${install_sh}" != xset; then
3006 case $am_aux_dir in
3007 *\ * | *\ *)
3008 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3010 install_sh="\${SHELL} $am_aux_dir/install-sh"
3011 esac
3014 # Installed binaries are usually stripped using `strip' when the user
3015 # run `make install-strip'. However `strip' might not be the right
3016 # tool to use in cross-compilation environments, therefore Automake
3017 # will honor the `STRIP' environment variable to overrule this program.
3018 if test "$cross_compiling" != no; then
3019 if test -n "$ac_tool_prefix"; then
3020 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3021 set dummy ${ac_tool_prefix}strip; ac_word=$2
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3023 $as_echo_n "checking for $ac_word... " >&6; }
3024 if test "${ac_cv_prog_STRIP+set}" = set; then :
3025 $as_echo_n "(cached) " >&6
3026 else
3027 if test -n "$STRIP"; then
3028 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3029 else
3030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3031 for as_dir in $PATH
3033 IFS=$as_save_IFS
3034 test -z "$as_dir" && as_dir=.
3035 for ac_exec_ext in '' $ac_executable_extensions; do
3036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3037 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3039 break 2
3041 done
3042 done
3043 IFS=$as_save_IFS
3047 STRIP=$ac_cv_prog_STRIP
3048 if test -n "$STRIP"; then
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3050 $as_echo "$STRIP" >&6; }
3051 else
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3053 $as_echo "no" >&6; }
3058 if test -z "$ac_cv_prog_STRIP"; then
3059 ac_ct_STRIP=$STRIP
3060 # Extract the first word of "strip", so it can be a program name with args.
3061 set dummy strip; ac_word=$2
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3063 $as_echo_n "checking for $ac_word... " >&6; }
3064 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3065 $as_echo_n "(cached) " >&6
3066 else
3067 if test -n "$ac_ct_STRIP"; then
3068 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3069 else
3070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3071 for as_dir in $PATH
3073 IFS=$as_save_IFS
3074 test -z "$as_dir" && as_dir=.
3075 for ac_exec_ext in '' $ac_executable_extensions; do
3076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3077 ac_cv_prog_ac_ct_STRIP="strip"
3078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3079 break 2
3081 done
3082 done
3083 IFS=$as_save_IFS
3087 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3088 if test -n "$ac_ct_STRIP"; then
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3090 $as_echo "$ac_ct_STRIP" >&6; }
3091 else
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3093 $as_echo "no" >&6; }
3096 if test "x$ac_ct_STRIP" = x; then
3097 STRIP=":"
3098 else
3099 case $cross_compiling:$ac_tool_warned in
3100 yes:)
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3102 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3103 ac_tool_warned=yes ;;
3104 esac
3105 STRIP=$ac_ct_STRIP
3107 else
3108 STRIP="$ac_cv_prog_STRIP"
3112 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3115 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3116 if test -z "$MKDIR_P"; then
3117 if test "${ac_cv_path_mkdir+set}" = set; then :
3118 $as_echo_n "(cached) " >&6
3119 else
3120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3121 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3123 IFS=$as_save_IFS
3124 test -z "$as_dir" && as_dir=.
3125 for ac_prog in mkdir gmkdir; do
3126 for ac_exec_ext in '' $ac_executable_extensions; do
3127 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3128 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3129 'mkdir (GNU coreutils) '* | \
3130 'mkdir (coreutils) '* | \
3131 'mkdir (fileutils) '4.1*)
3132 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3133 break 3;;
3134 esac
3135 done
3136 done
3137 done
3138 IFS=$as_save_IFS
3142 if test "${ac_cv_path_mkdir+set}" = set; then
3143 MKDIR_P="$ac_cv_path_mkdir -p"
3144 else
3145 # As a last resort, use the slow shell script. Don't cache a
3146 # value for MKDIR_P within a source directory, because that will
3147 # break other packages using the cache if that directory is
3148 # removed, or if the value is a relative name.
3149 test -d ./--version && rmdir ./--version
3150 MKDIR_P="$ac_install_sh -d"
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3154 $as_echo "$MKDIR_P" >&6; }
3156 mkdir_p="$MKDIR_P"
3157 case $mkdir_p in
3158 [\\/$]* | ?:[\\/]*) ;;
3159 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3160 esac
3162 for ac_prog in gawk mawk nawk awk
3164 # Extract the first word of "$ac_prog", so it can be a program name with args.
3165 set dummy $ac_prog; ac_word=$2
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3167 $as_echo_n "checking for $ac_word... " >&6; }
3168 if test "${ac_cv_prog_AWK+set}" = set; then :
3169 $as_echo_n "(cached) " >&6
3170 else
3171 if test -n "$AWK"; then
3172 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3173 else
3174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3175 for as_dir in $PATH
3177 IFS=$as_save_IFS
3178 test -z "$as_dir" && as_dir=.
3179 for ac_exec_ext in '' $ac_executable_extensions; do
3180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3181 ac_cv_prog_AWK="$ac_prog"
3182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3183 break 2
3185 done
3186 done
3187 IFS=$as_save_IFS
3191 AWK=$ac_cv_prog_AWK
3192 if test -n "$AWK"; then
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3194 $as_echo "$AWK" >&6; }
3195 else
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3197 $as_echo "no" >&6; }
3201 test -n "$AWK" && break
3202 done
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3205 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3206 set x ${MAKE-make}
3207 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3208 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3209 $as_echo_n "(cached) " >&6
3210 else
3211 cat >conftest.make <<\_ACEOF
3212 SHELL = /bin/sh
3213 all:
3214 @echo '@@@%%%=$(MAKE)=@@@%%%'
3215 _ACEOF
3216 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3217 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3218 *@@@%%%=?*=@@@%%%*)
3219 eval ac_cv_prog_make_${ac_make}_set=yes;;
3221 eval ac_cv_prog_make_${ac_make}_set=no;;
3222 esac
3223 rm -f conftest.make
3225 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3227 $as_echo "yes" >&6; }
3228 SET_MAKE=
3229 else
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3231 $as_echo "no" >&6; }
3232 SET_MAKE="MAKE=${MAKE-make}"
3235 rm -rf .tst 2>/dev/null
3236 mkdir .tst 2>/dev/null
3237 if test -d .tst; then
3238 am__leading_dot=.
3239 else
3240 am__leading_dot=_
3242 rmdir .tst 2>/dev/null
3244 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3245 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3246 # is not polluted with repeated "-I."
3247 am__isrc=' -I$(srcdir)'
3248 # test to see if srcdir already configured
3249 if test -f $srcdir/config.status; then
3250 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3254 # test whether we have cygpath
3255 if test -z "$CYGPATH_W"; then
3256 if (cygpath --version) >/dev/null 2>/dev/null; then
3257 CYGPATH_W='cygpath -w'
3258 else
3259 CYGPATH_W=echo
3264 # Define the identity of the package.
3265 PACKAGE='libgomp'
3266 VERSION='1.0'
3269 cat >>confdefs.h <<_ACEOF
3270 #define PACKAGE "$PACKAGE"
3271 _ACEOF
3274 cat >>confdefs.h <<_ACEOF
3275 #define VERSION "$VERSION"
3276 _ACEOF
3278 # Some tools Automake needs.
3280 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3283 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3286 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3289 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3292 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3294 # We need awk for the "check" target. The system "awk" is bad on
3295 # some platforms.
3296 # Always define AMTAR for backward compatibility. Yes, it's still used
3297 # in the wild :-( We should find a proper way to deprecate it ...
3298 AMTAR='$${TAR-tar}'
3300 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3306 # Default to --enable-multilib
3307 # Check whether --enable-multilib was given.
3308 if test "${enable_multilib+set}" = set; then :
3309 enableval=$enable_multilib; case "$enableval" in
3310 yes) multilib=yes ;;
3311 no) multilib=no ;;
3312 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3313 esac
3314 else
3315 multilib=yes
3319 # We may get other options which we leave undocumented:
3320 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3321 # See config-ml.in if you want the gory details.
3323 if test "$srcdir" = "."; then
3324 if test "$with_target_subdir" != "."; then
3325 multi_basedir="$srcdir/$with_multisrctop../.."
3326 else
3327 multi_basedir="$srcdir/$with_multisrctop.."
3329 else
3330 multi_basedir="$srcdir/.."
3334 # Even if the default multilib is not a cross compilation,
3335 # it may be that some of the other multilibs are.
3336 if test $cross_compiling = no && test $multilib = yes \
3337 && test "x${with_multisubdir}" != x ; then
3338 cross_compiling=maybe
3341 ac_config_commands="$ac_config_commands default-1"
3344 # Calculate toolexeclibdir
3345 # Also toolexecdir, though it's only used in toolexeclibdir
3346 case ${enable_version_specific_runtime_libs} in
3347 yes)
3348 # Need the gcc compiler version to know where to install libraries
3349 # and header files if --enable-version-specific-runtime-libs option
3350 # is selected.
3351 toolexecdir='$(libdir)/gcc/$(target_alias)'
3352 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3355 if test -n "$with_cross_host" &&
3356 test x"$with_cross_host" != x"no"; then
3357 # Install a library built with a cross compiler in tooldir, not libdir.
3358 toolexecdir='$(exec_prefix)/$(target_alias)'
3359 toolexeclibdir='$(toolexecdir)/lib'
3360 else
3361 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3362 toolexeclibdir='$(libdir)'
3364 multi_os_directory=`$CC -print-multi-os-directory`
3365 case $multi_os_directory in
3366 .) ;; # Avoid trailing /.
3367 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3368 esac
3370 esac
3374 # Check the compiler.
3375 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3376 # We must force CC to /not/ be precious variables; otherwise
3377 # the wrong, non-multilib-adjusted value will be used in multilibs.
3378 # As a side effect, we have to subst CFLAGS ourselves.
3382 ac_ext=c
3383 ac_cpp='$CPP $CPPFLAGS'
3384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3387 if test -n "$ac_tool_prefix"; then
3388 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3389 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3391 $as_echo_n "checking for $ac_word... " >&6; }
3392 if test "${ac_cv_prog_CC+set}" = set; then :
3393 $as_echo_n "(cached) " >&6
3394 else
3395 if test -n "$CC"; then
3396 ac_cv_prog_CC="$CC" # Let the user override the test.
3397 else
3398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3399 for as_dir in $PATH
3401 IFS=$as_save_IFS
3402 test -z "$as_dir" && as_dir=.
3403 for ac_exec_ext in '' $ac_executable_extensions; do
3404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3405 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3407 break 2
3409 done
3410 done
3411 IFS=$as_save_IFS
3415 CC=$ac_cv_prog_CC
3416 if test -n "$CC"; then
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3418 $as_echo "$CC" >&6; }
3419 else
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3421 $as_echo "no" >&6; }
3426 if test -z "$ac_cv_prog_CC"; then
3427 ac_ct_CC=$CC
3428 # Extract the first word of "gcc", so it can be a program name with args.
3429 set dummy gcc; ac_word=$2
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3431 $as_echo_n "checking for $ac_word... " >&6; }
3432 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3433 $as_echo_n "(cached) " >&6
3434 else
3435 if test -n "$ac_ct_CC"; then
3436 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3437 else
3438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3439 for as_dir in $PATH
3441 IFS=$as_save_IFS
3442 test -z "$as_dir" && as_dir=.
3443 for ac_exec_ext in '' $ac_executable_extensions; do
3444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3445 ac_cv_prog_ac_ct_CC="gcc"
3446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3447 break 2
3449 done
3450 done
3451 IFS=$as_save_IFS
3455 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3456 if test -n "$ac_ct_CC"; then
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3458 $as_echo "$ac_ct_CC" >&6; }
3459 else
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3461 $as_echo "no" >&6; }
3464 if test "x$ac_ct_CC" = x; then
3465 CC=""
3466 else
3467 case $cross_compiling:$ac_tool_warned in
3468 yes:)
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3470 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3471 ac_tool_warned=yes ;;
3472 esac
3473 CC=$ac_ct_CC
3475 else
3476 CC="$ac_cv_prog_CC"
3479 if test -z "$CC"; then
3480 if test -n "$ac_tool_prefix"; then
3481 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3482 set dummy ${ac_tool_prefix}cc; ac_word=$2
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3484 $as_echo_n "checking for $ac_word... " >&6; }
3485 if test "${ac_cv_prog_CC+set}" = set; then :
3486 $as_echo_n "(cached) " >&6
3487 else
3488 if test -n "$CC"; then
3489 ac_cv_prog_CC="$CC" # Let the user override the test.
3490 else
3491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3492 for as_dir in $PATH
3494 IFS=$as_save_IFS
3495 test -z "$as_dir" && as_dir=.
3496 for ac_exec_ext in '' $ac_executable_extensions; do
3497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3498 ac_cv_prog_CC="${ac_tool_prefix}cc"
3499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3500 break 2
3502 done
3503 done
3504 IFS=$as_save_IFS
3508 CC=$ac_cv_prog_CC
3509 if test -n "$CC"; then
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3511 $as_echo "$CC" >&6; }
3512 else
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3514 $as_echo "no" >&6; }
3520 if test -z "$CC"; then
3521 # Extract the first word of "cc", so it can be a program name with args.
3522 set dummy cc; ac_word=$2
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3524 $as_echo_n "checking for $ac_word... " >&6; }
3525 if test "${ac_cv_prog_CC+set}" = set; then :
3526 $as_echo_n "(cached) " >&6
3527 else
3528 if test -n "$CC"; then
3529 ac_cv_prog_CC="$CC" # Let the user override the test.
3530 else
3531 ac_prog_rejected=no
3532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3533 for as_dir in $PATH
3535 IFS=$as_save_IFS
3536 test -z "$as_dir" && as_dir=.
3537 for ac_exec_ext in '' $ac_executable_extensions; do
3538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3539 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3540 ac_prog_rejected=yes
3541 continue
3543 ac_cv_prog_CC="cc"
3544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3545 break 2
3547 done
3548 done
3549 IFS=$as_save_IFS
3551 if test $ac_prog_rejected = yes; then
3552 # We found a bogon in the path, so make sure we never use it.
3553 set dummy $ac_cv_prog_CC
3554 shift
3555 if test $# != 0; then
3556 # We chose a different compiler from the bogus one.
3557 # However, it has the same basename, so the bogon will be chosen
3558 # first if we set CC to just the basename; use the full file name.
3559 shift
3560 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3565 CC=$ac_cv_prog_CC
3566 if test -n "$CC"; then
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3568 $as_echo "$CC" >&6; }
3569 else
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3571 $as_echo "no" >&6; }
3576 if test -z "$CC"; then
3577 if test -n "$ac_tool_prefix"; then
3578 for ac_prog in cl.exe
3580 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3581 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3583 $as_echo_n "checking for $ac_word... " >&6; }
3584 if test "${ac_cv_prog_CC+set}" = set; then :
3585 $as_echo_n "(cached) " >&6
3586 else
3587 if test -n "$CC"; then
3588 ac_cv_prog_CC="$CC" # Let the user override the test.
3589 else
3590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591 for as_dir in $PATH
3593 IFS=$as_save_IFS
3594 test -z "$as_dir" && as_dir=.
3595 for ac_exec_ext in '' $ac_executable_extensions; do
3596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3597 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3599 break 2
3601 done
3602 done
3603 IFS=$as_save_IFS
3607 CC=$ac_cv_prog_CC
3608 if test -n "$CC"; then
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3610 $as_echo "$CC" >&6; }
3611 else
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3613 $as_echo "no" >&6; }
3617 test -n "$CC" && break
3618 done
3620 if test -z "$CC"; then
3621 ac_ct_CC=$CC
3622 for ac_prog in cl.exe
3624 # Extract the first word of "$ac_prog", so it can be a program name with args.
3625 set dummy $ac_prog; ac_word=$2
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3627 $as_echo_n "checking for $ac_word... " >&6; }
3628 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3629 $as_echo_n "(cached) " >&6
3630 else
3631 if test -n "$ac_ct_CC"; then
3632 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3633 else
3634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3635 for as_dir in $PATH
3637 IFS=$as_save_IFS
3638 test -z "$as_dir" && as_dir=.
3639 for ac_exec_ext in '' $ac_executable_extensions; do
3640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3641 ac_cv_prog_ac_ct_CC="$ac_prog"
3642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3643 break 2
3645 done
3646 done
3647 IFS=$as_save_IFS
3651 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3652 if test -n "$ac_ct_CC"; then
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3654 $as_echo "$ac_ct_CC" >&6; }
3655 else
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3657 $as_echo "no" >&6; }
3661 test -n "$ac_ct_CC" && break
3662 done
3664 if test "x$ac_ct_CC" = x; then
3665 CC=""
3666 else
3667 case $cross_compiling:$ac_tool_warned in
3668 yes:)
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3670 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3671 ac_tool_warned=yes ;;
3672 esac
3673 CC=$ac_ct_CC
3680 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3681 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3682 as_fn_error "no acceptable C compiler found in \$PATH
3683 See \`config.log' for more details." "$LINENO" 5; }
3685 # Provide some information about the compiler.
3686 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3687 set X $ac_compile
3688 ac_compiler=$2
3689 for ac_option in --version -v -V -qversion; do
3690 { { ac_try="$ac_compiler $ac_option >&5"
3691 case "(($ac_try" in
3692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3693 *) ac_try_echo=$ac_try;;
3694 esac
3695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3696 $as_echo "$ac_try_echo"; } >&5
3697 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3698 ac_status=$?
3699 if test -s conftest.err; then
3700 sed '10a\
3701 ... rest of stderr output deleted ...
3702 10q' conftest.err >conftest.er1
3703 cat conftest.er1 >&5
3704 rm -f conftest.er1 conftest.err
3706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3707 test $ac_status = 0; }
3708 done
3710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3711 /* end confdefs.h. */
3714 main ()
3718 return 0;
3720 _ACEOF
3721 ac_clean_files_save=$ac_clean_files
3722 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3723 # Try to create an executable without -o first, disregard a.out.
3724 # It will help us diagnose broken compilers, and finding out an intuition
3725 # of exeext.
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3727 $as_echo_n "checking for C compiler default output file name... " >&6; }
3728 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3730 # The possible output files:
3731 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3733 ac_rmfiles=
3734 for ac_file in $ac_files
3736 case $ac_file in
3737 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3738 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3739 esac
3740 done
3741 rm -f $ac_rmfiles
3743 if { { ac_try="$ac_link_default"
3744 case "(($ac_try" in
3745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3746 *) ac_try_echo=$ac_try;;
3747 esac
3748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3749 $as_echo "$ac_try_echo"; } >&5
3750 (eval "$ac_link_default") 2>&5
3751 ac_status=$?
3752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3753 test $ac_status = 0; }; then :
3754 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3755 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3756 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3757 # so that the user can short-circuit this test for compilers unknown to
3758 # Autoconf.
3759 for ac_file in $ac_files ''
3761 test -f "$ac_file" || continue
3762 case $ac_file in
3763 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3765 [ab].out )
3766 # We found the default executable, but exeext='' is most
3767 # certainly right.
3768 break;;
3769 *.* )
3770 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3771 then :; else
3772 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3774 # We set ac_cv_exeext here because the later test for it is not
3775 # safe: cross compilers may not add the suffix if given an `-o'
3776 # argument, so we may need to know it at that point already.
3777 # Even if this section looks crufty: it has the advantage of
3778 # actually working.
3779 break;;
3781 break;;
3782 esac
3783 done
3784 test "$ac_cv_exeext" = no && ac_cv_exeext=
3786 else
3787 ac_file=''
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3790 $as_echo "$ac_file" >&6; }
3791 if test -z "$ac_file"; then :
3792 $as_echo "$as_me: failed program was:" >&5
3793 sed 's/^/| /' conftest.$ac_ext >&5
3795 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3796 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3797 { as_fn_set_status 77
3798 as_fn_error "C compiler cannot create executables
3799 See \`config.log' for more details." "$LINENO" 5; }; }
3801 ac_exeext=$ac_cv_exeext
3803 # Check that the compiler produces executables we can run. If not, either
3804 # the compiler is broken, or we cross compile.
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3806 $as_echo_n "checking whether the C compiler works... " >&6; }
3807 # If not cross compiling, check that we can run a simple program.
3808 if test "$cross_compiling" != yes; then
3809 if { ac_try='./$ac_file'
3810 { { case "(($ac_try" in
3811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3812 *) ac_try_echo=$ac_try;;
3813 esac
3814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3815 $as_echo "$ac_try_echo"; } >&5
3816 (eval "$ac_try") 2>&5
3817 ac_status=$?
3818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3819 test $ac_status = 0; }; }; then
3820 cross_compiling=no
3821 else
3822 if test "$cross_compiling" = maybe; then
3823 cross_compiling=yes
3824 else
3825 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3826 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3827 as_fn_error "cannot run C compiled programs.
3828 If you meant to cross compile, use \`--host'.
3829 See \`config.log' for more details." "$LINENO" 5; }
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3834 $as_echo "yes" >&6; }
3836 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3837 ac_clean_files=$ac_clean_files_save
3838 # Check that the compiler produces executables we can run. If not, either
3839 # the compiler is broken, or we cross compile.
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3841 $as_echo_n "checking whether we are cross compiling... " >&6; }
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3843 $as_echo "$cross_compiling" >&6; }
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3846 $as_echo_n "checking for suffix of executables... " >&6; }
3847 if { { ac_try="$ac_link"
3848 case "(($ac_try" in
3849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3850 *) ac_try_echo=$ac_try;;
3851 esac
3852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3853 $as_echo "$ac_try_echo"; } >&5
3854 (eval "$ac_link") 2>&5
3855 ac_status=$?
3856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3857 test $ac_status = 0; }; then :
3858 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3859 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3860 # work properly (i.e., refer to `conftest.exe'), while it won't with
3861 # `rm'.
3862 for ac_file in conftest.exe conftest conftest.*; do
3863 test -f "$ac_file" || continue
3864 case $ac_file in
3865 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3866 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3867 break;;
3868 * ) break;;
3869 esac
3870 done
3871 else
3872 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3873 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3874 as_fn_error "cannot compute suffix of executables: cannot compile and link
3875 See \`config.log' for more details." "$LINENO" 5; }
3877 rm -f conftest$ac_cv_exeext
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3879 $as_echo "$ac_cv_exeext" >&6; }
3881 rm -f conftest.$ac_ext
3882 EXEEXT=$ac_cv_exeext
3883 ac_exeext=$EXEEXT
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3885 $as_echo_n "checking for suffix of object files... " >&6; }
3886 if test "${ac_cv_objext+set}" = set; then :
3887 $as_echo_n "(cached) " >&6
3888 else
3889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3890 /* end confdefs.h. */
3893 main ()
3897 return 0;
3899 _ACEOF
3900 rm -f conftest.o conftest.obj
3901 if { { ac_try="$ac_compile"
3902 case "(($ac_try" in
3903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3904 *) ac_try_echo=$ac_try;;
3905 esac
3906 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3907 $as_echo "$ac_try_echo"; } >&5
3908 (eval "$ac_compile") 2>&5
3909 ac_status=$?
3910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3911 test $ac_status = 0; }; then :
3912 for ac_file in conftest.o conftest.obj conftest.*; do
3913 test -f "$ac_file" || continue;
3914 case $ac_file in
3915 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3916 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3917 break;;
3918 esac
3919 done
3920 else
3921 $as_echo "$as_me: failed program was:" >&5
3922 sed 's/^/| /' conftest.$ac_ext >&5
3924 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3925 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3926 as_fn_error "cannot compute suffix of object files: cannot compile
3927 See \`config.log' for more details." "$LINENO" 5; }
3929 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3932 $as_echo "$ac_cv_objext" >&6; }
3933 OBJEXT=$ac_cv_objext
3934 ac_objext=$OBJEXT
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3936 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3937 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3938 $as_echo_n "(cached) " >&6
3939 else
3940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3941 /* end confdefs.h. */
3944 main ()
3946 #ifndef __GNUC__
3947 choke me
3948 #endif
3951 return 0;
3953 _ACEOF
3954 if ac_fn_c_try_compile "$LINENO"; then :
3955 ac_compiler_gnu=yes
3956 else
3957 ac_compiler_gnu=no
3959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3960 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3964 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3965 if test $ac_compiler_gnu = yes; then
3966 GCC=yes
3967 else
3968 GCC=
3970 ac_test_CFLAGS=${CFLAGS+set}
3971 ac_save_CFLAGS=$CFLAGS
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3973 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3974 if test "${ac_cv_prog_cc_g+set}" = set; then :
3975 $as_echo_n "(cached) " >&6
3976 else
3977 ac_save_c_werror_flag=$ac_c_werror_flag
3978 ac_c_werror_flag=yes
3979 ac_cv_prog_cc_g=no
3980 CFLAGS="-g"
3981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3982 /* end confdefs.h. */
3985 main ()
3989 return 0;
3991 _ACEOF
3992 if ac_fn_c_try_compile "$LINENO"; then :
3993 ac_cv_prog_cc_g=yes
3994 else
3995 CFLAGS=""
3996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3997 /* end confdefs.h. */
4000 main ()
4004 return 0;
4006 _ACEOF
4007 if ac_fn_c_try_compile "$LINENO"; then :
4009 else
4010 ac_c_werror_flag=$ac_save_c_werror_flag
4011 CFLAGS="-g"
4012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4013 /* end confdefs.h. */
4016 main ()
4020 return 0;
4022 _ACEOF
4023 if ac_fn_c_try_compile "$LINENO"; then :
4024 ac_cv_prog_cc_g=yes
4026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4031 ac_c_werror_flag=$ac_save_c_werror_flag
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4034 $as_echo "$ac_cv_prog_cc_g" >&6; }
4035 if test "$ac_test_CFLAGS" = set; then
4036 CFLAGS=$ac_save_CFLAGS
4037 elif test $ac_cv_prog_cc_g = yes; then
4038 if test "$GCC" = yes; then
4039 CFLAGS="-g -O2"
4040 else
4041 CFLAGS="-g"
4043 else
4044 if test "$GCC" = yes; then
4045 CFLAGS="-O2"
4046 else
4047 CFLAGS=
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4051 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4052 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4053 $as_echo_n "(cached) " >&6
4054 else
4055 ac_cv_prog_cc_c89=no
4056 ac_save_CC=$CC
4057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4058 /* end confdefs.h. */
4059 #include <stdarg.h>
4060 #include <stdio.h>
4061 #include <sys/types.h>
4062 #include <sys/stat.h>
4063 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4064 struct buf { int x; };
4065 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4066 static char *e (p, i)
4067 char **p;
4068 int i;
4070 return p[i];
4072 static char *f (char * (*g) (char **, int), char **p, ...)
4074 char *s;
4075 va_list v;
4076 va_start (v,p);
4077 s = g (p, va_arg (v,int));
4078 va_end (v);
4079 return s;
4082 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4083 function prototypes and stuff, but not '\xHH' hex character constants.
4084 These don't provoke an error unfortunately, instead are silently treated
4085 as 'x'. The following induces an error, until -std is added to get
4086 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4087 array size at least. It's necessary to write '\x00'==0 to get something
4088 that's true only with -std. */
4089 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4091 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4092 inside strings and character constants. */
4093 #define FOO(x) 'x'
4094 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4096 int test (int i, double x);
4097 struct s1 {int (*f) (int a);};
4098 struct s2 {int (*f) (double a);};
4099 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4100 int argc;
4101 char **argv;
4103 main ()
4105 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4107 return 0;
4109 _ACEOF
4110 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4111 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4113 CC="$ac_save_CC $ac_arg"
4114 if ac_fn_c_try_compile "$LINENO"; then :
4115 ac_cv_prog_cc_c89=$ac_arg
4117 rm -f core conftest.err conftest.$ac_objext
4118 test "x$ac_cv_prog_cc_c89" != "xno" && break
4119 done
4120 rm -f conftest.$ac_ext
4121 CC=$ac_save_CC
4124 # AC_CACHE_VAL
4125 case "x$ac_cv_prog_cc_c89" in
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4128 $as_echo "none needed" >&6; } ;;
4129 xno)
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4131 $as_echo "unsupported" >&6; } ;;
4133 CC="$CC $ac_cv_prog_cc_c89"
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4135 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4136 esac
4137 if test "x$ac_cv_prog_cc_c89" != xno; then :
4141 ac_ext=c
4142 ac_cpp='$CPP $CPPFLAGS'
4143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4146 DEPDIR="${am__leading_dot}deps"
4148 ac_config_commands="$ac_config_commands depfiles"
4151 am_make=${MAKE-make}
4152 cat > confinc << 'END'
4153 am__doit:
4154 @echo this is the am__doit target
4155 .PHONY: am__doit
4157 # If we don't find an include directive, just comment out the code.
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4159 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4160 am__include="#"
4161 am__quote=
4162 _am_result=none
4163 # First try GNU make style include.
4164 echo "include confinc" > confmf
4165 # Ignore all kinds of additional output from `make'.
4166 case `$am_make -s -f confmf 2> /dev/null` in #(
4167 *the\ am__doit\ target*)
4168 am__include=include
4169 am__quote=
4170 _am_result=GNU
4172 esac
4173 # Now try BSD make style include.
4174 if test "$am__include" = "#"; then
4175 echo '.include "confinc"' > confmf
4176 case `$am_make -s -f confmf 2> /dev/null` in #(
4177 *the\ am__doit\ target*)
4178 am__include=.include
4179 am__quote="\""
4180 _am_result=BSD
4182 esac
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4187 $as_echo "$_am_result" >&6; }
4188 rm -f confinc confmf
4190 # Check whether --enable-dependency-tracking was given.
4191 if test "${enable_dependency_tracking+set}" = set; then :
4192 enableval=$enable_dependency_tracking;
4195 if test "x$enable_dependency_tracking" != xno; then
4196 am_depcomp="$ac_aux_dir/depcomp"
4197 AMDEPBACKSLASH='\'
4198 am__nodep='_no'
4200 if test "x$enable_dependency_tracking" != xno; then
4201 AMDEP_TRUE=
4202 AMDEP_FALSE='#'
4203 else
4204 AMDEP_TRUE='#'
4205 AMDEP_FALSE=
4210 depcc="$CC" am_compiler_list=
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4213 $as_echo_n "checking dependency style of $depcc... " >&6; }
4214 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4215 $as_echo_n "(cached) " >&6
4216 else
4217 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4218 # We make a subdir and do the tests there. Otherwise we can end up
4219 # making bogus files that we don't know about and never remove. For
4220 # instance it was reported that on HP-UX the gcc test will end up
4221 # making a dummy file named `D' -- because `-MD' means `put the output
4222 # in D'.
4223 rm -rf conftest.dir
4224 mkdir conftest.dir
4225 # Copy depcomp to subdir because otherwise we won't find it if we're
4226 # using a relative directory.
4227 cp "$am_depcomp" conftest.dir
4228 cd conftest.dir
4229 # We will build objects and dependencies in a subdirectory because
4230 # it helps to detect inapplicable dependency modes. For instance
4231 # both Tru64's cc and ICC support -MD to output dependencies as a
4232 # side effect of compilation, but ICC will put the dependencies in
4233 # the current directory while Tru64 will put them in the object
4234 # directory.
4235 mkdir sub
4237 am_cv_CC_dependencies_compiler_type=none
4238 if test "$am_compiler_list" = ""; then
4239 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4241 am__universal=false
4242 case " $depcc " in #(
4243 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4244 esac
4246 for depmode in $am_compiler_list; do
4247 # Setup a source with many dependencies, because some compilers
4248 # like to wrap large dependency lists on column 80 (with \), and
4249 # we should not choose a depcomp mode which is confused by this.
4251 # We need to recreate these files for each test, as the compiler may
4252 # overwrite some of them when testing with obscure command lines.
4253 # This happens at least with the AIX C compiler.
4254 : > sub/conftest.c
4255 for i in 1 2 3 4 5 6; do
4256 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4257 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4258 # Solaris 8's {/usr,}/bin/sh.
4259 touch sub/conftst$i.h
4260 done
4261 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4263 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4264 # mode. It turns out that the SunPro C++ compiler does not properly
4265 # handle `-M -o', and we need to detect this. Also, some Intel
4266 # versions had trouble with output in subdirs
4267 am__obj=sub/conftest.${OBJEXT-o}
4268 am__minus_obj="-o $am__obj"
4269 case $depmode in
4270 gcc)
4271 # This depmode causes a compiler race in universal mode.
4272 test "$am__universal" = false || continue
4274 nosideeffect)
4275 # after this tag, mechanisms are not by side-effect, so they'll
4276 # only be used when explicitly requested
4277 if test "x$enable_dependency_tracking" = xyes; then
4278 continue
4279 else
4280 break
4283 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4284 # This compiler won't grok `-c -o', but also, the minuso test has
4285 # not run yet. These depmodes are late enough in the game, and
4286 # so weak that their functioning should not be impacted.
4287 am__obj=conftest.${OBJEXT-o}
4288 am__minus_obj=
4290 none) break ;;
4291 esac
4292 if depmode=$depmode \
4293 source=sub/conftest.c object=$am__obj \
4294 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4295 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4296 >/dev/null 2>conftest.err &&
4297 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4298 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4299 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4300 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4301 # icc doesn't choke on unknown options, it will just issue warnings
4302 # or remarks (even with -Werror). So we grep stderr for any message
4303 # that says an option was ignored or not supported.
4304 # When given -MP, icc 7.0 and 7.1 complain thusly:
4305 # icc: Command line warning: ignoring option '-M'; no argument required
4306 # The diagnosis changed in icc 8.0:
4307 # icc: Command line remark: option '-MP' not supported
4308 if (grep 'ignoring option' conftest.err ||
4309 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4310 am_cv_CC_dependencies_compiler_type=$depmode
4311 break
4314 done
4316 cd ..
4317 rm -rf conftest.dir
4318 else
4319 am_cv_CC_dependencies_compiler_type=none
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4324 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4325 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4328 test "x$enable_dependency_tracking" != xno \
4329 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4330 am__fastdepCC_TRUE=
4331 am__fastdepCC_FALSE='#'
4332 else
4333 am__fastdepCC_TRUE='#'
4334 am__fastdepCC_FALSE=
4342 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
4343 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
4344 # in both places for now and restore CFLAGS at the end of config.
4345 save_CFLAGS="$CFLAGS"
4347 # Add -Wall -Werror if we are using GCC.
4348 if test "x$GCC" = "xyes"; then
4349 XCFLAGS="$XCFLAGS -Wall -Werror"
4352 # Find other programs we need.
4353 if test -n "$ac_tool_prefix"; then
4354 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4355 set dummy ${ac_tool_prefix}ar; ac_word=$2
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4357 $as_echo_n "checking for $ac_word... " >&6; }
4358 if test "${ac_cv_prog_AR+set}" = set; then :
4359 $as_echo_n "(cached) " >&6
4360 else
4361 if test -n "$AR"; then
4362 ac_cv_prog_AR="$AR" # Let the user override the test.
4363 else
4364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4365 for as_dir in $PATH
4367 IFS=$as_save_IFS
4368 test -z "$as_dir" && as_dir=.
4369 for ac_exec_ext in '' $ac_executable_extensions; do
4370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4371 ac_cv_prog_AR="${ac_tool_prefix}ar"
4372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4373 break 2
4375 done
4376 done
4377 IFS=$as_save_IFS
4381 AR=$ac_cv_prog_AR
4382 if test -n "$AR"; then
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4384 $as_echo "$AR" >&6; }
4385 else
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4387 $as_echo "no" >&6; }
4392 if test -z "$ac_cv_prog_AR"; then
4393 ac_ct_AR=$AR
4394 # Extract the first word of "ar", so it can be a program name with args.
4395 set dummy ar; ac_word=$2
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4397 $as_echo_n "checking for $ac_word... " >&6; }
4398 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4399 $as_echo_n "(cached) " >&6
4400 else
4401 if test -n "$ac_ct_AR"; then
4402 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4403 else
4404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4405 for as_dir in $PATH
4407 IFS=$as_save_IFS
4408 test -z "$as_dir" && as_dir=.
4409 for ac_exec_ext in '' $ac_executable_extensions; do
4410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4411 ac_cv_prog_ac_ct_AR="ar"
4412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4413 break 2
4415 done
4416 done
4417 IFS=$as_save_IFS
4421 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4422 if test -n "$ac_ct_AR"; then
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4424 $as_echo "$ac_ct_AR" >&6; }
4425 else
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4427 $as_echo "no" >&6; }
4430 if test "x$ac_ct_AR" = x; then
4431 AR=""
4432 else
4433 case $cross_compiling:$ac_tool_warned in
4434 yes:)
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4436 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4437 ac_tool_warned=yes ;;
4438 esac
4439 AR=$ac_ct_AR
4441 else
4442 AR="$ac_cv_prog_AR"
4445 if test -n "$ac_tool_prefix"; then
4446 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4447 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4449 $as_echo_n "checking for $ac_word... " >&6; }
4450 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4451 $as_echo_n "(cached) " >&6
4452 else
4453 if test -n "$RANLIB"; then
4454 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4455 else
4456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4457 for as_dir in $PATH
4459 IFS=$as_save_IFS
4460 test -z "$as_dir" && as_dir=.
4461 for ac_exec_ext in '' $ac_executable_extensions; do
4462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4463 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4465 break 2
4467 done
4468 done
4469 IFS=$as_save_IFS
4473 RANLIB=$ac_cv_prog_RANLIB
4474 if test -n "$RANLIB"; then
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4476 $as_echo "$RANLIB" >&6; }
4477 else
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4479 $as_echo "no" >&6; }
4484 if test -z "$ac_cv_prog_RANLIB"; then
4485 ac_ct_RANLIB=$RANLIB
4486 # Extract the first word of "ranlib", so it can be a program name with args.
4487 set dummy ranlib; ac_word=$2
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4489 $as_echo_n "checking for $ac_word... " >&6; }
4490 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4491 $as_echo_n "(cached) " >&6
4492 else
4493 if test -n "$ac_ct_RANLIB"; then
4494 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4495 else
4496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4497 for as_dir in $PATH
4499 IFS=$as_save_IFS
4500 test -z "$as_dir" && as_dir=.
4501 for ac_exec_ext in '' $ac_executable_extensions; do
4502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4503 ac_cv_prog_ac_ct_RANLIB="ranlib"
4504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4505 break 2
4507 done
4508 done
4509 IFS=$as_save_IFS
4513 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4514 if test -n "$ac_ct_RANLIB"; then
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4516 $as_echo "$ac_ct_RANLIB" >&6; }
4517 else
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4519 $as_echo "no" >&6; }
4522 if test "x$ac_ct_RANLIB" = x; then
4523 RANLIB="ranlib-not-found-in-path-error"
4524 else
4525 case $cross_compiling:$ac_tool_warned in
4526 yes:)
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4528 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4529 ac_tool_warned=yes ;;
4530 esac
4531 RANLIB=$ac_ct_RANLIB
4533 else
4534 RANLIB="$ac_cv_prog_RANLIB"
4537 # Extract the first word of "perl", so it can be a program name with args.
4538 set dummy perl; ac_word=$2
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4540 $as_echo_n "checking for $ac_word... " >&6; }
4541 if test "${ac_cv_path_PERL+set}" = set; then :
4542 $as_echo_n "(cached) " >&6
4543 else
4544 case $PERL in
4545 [\\/]* | ?:[\\/]*)
4546 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4550 for as_dir in $PATH
4552 IFS=$as_save_IFS
4553 test -z "$as_dir" && as_dir=.
4554 for ac_exec_ext in '' $ac_executable_extensions; do
4555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4556 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4558 break 2
4560 done
4561 done
4562 IFS=$as_save_IFS
4564 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
4566 esac
4568 PERL=$ac_cv_path_PERL
4569 if test -n "$PERL"; then
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4571 $as_echo "$PERL" >&6; }
4572 else
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4574 $as_echo "no" >&6; }
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4579 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4580 set x ${MAKE-make}
4581 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4582 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4583 $as_echo_n "(cached) " >&6
4584 else
4585 cat >conftest.make <<\_ACEOF
4586 SHELL = /bin/sh
4587 all:
4588 @echo '@@@%%%=$(MAKE)=@@@%%%'
4589 _ACEOF
4590 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4591 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4592 *@@@%%%=?*=@@@%%%*)
4593 eval ac_cv_prog_make_${ac_make}_set=yes;;
4595 eval ac_cv_prog_make_${ac_make}_set=no;;
4596 esac
4597 rm -f conftest.make
4599 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4601 $as_echo "yes" >&6; }
4602 SET_MAKE=
4603 else
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4605 $as_echo "no" >&6; }
4606 SET_MAKE="MAKE=${MAKE-make}"
4611 # See if makeinfo has been installed and is modern enough
4612 # that we can use it.
4614 # Extract the first word of "makeinfo", so it can be a program name with args.
4615 set dummy makeinfo; ac_word=$2
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4617 $as_echo_n "checking for $ac_word... " >&6; }
4618 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
4619 $as_echo_n "(cached) " >&6
4620 else
4621 if test -n "$MAKEINFO"; then
4622 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4623 else
4624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4625 for as_dir in $PATH
4627 IFS=$as_save_IFS
4628 test -z "$as_dir" && as_dir=.
4629 for ac_exec_ext in '' $ac_executable_extensions; do
4630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4631 ac_cv_prog_MAKEINFO="makeinfo"
4632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4633 break 2
4635 done
4636 done
4637 IFS=$as_save_IFS
4641 MAKEINFO=$ac_cv_prog_MAKEINFO
4642 if test -n "$MAKEINFO"; then
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4644 $as_echo "$MAKEINFO" >&6; }
4645 else
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4647 $as_echo "no" >&6; }
4651 if test -n "$MAKEINFO"; then
4652 # Found it, now check the version.
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
4654 $as_echo_n "checking for modern makeinfo... " >&6; }
4655 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
4656 $as_echo_n "(cached) " >&6
4657 else
4658 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
4659 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4661 case $ac_prog_version in
4662 '') gcc_cv_prog_makeinfo_modern=no;;
4663 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
4664 *) gcc_cv_prog_makeinfo_modern=no;;
4665 esac
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
4669 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
4670 else
4671 gcc_cv_prog_makeinfo_modern=no
4673 if test $gcc_cv_prog_makeinfo_modern = no; then
4674 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
4677 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
4678 BUILD_INFO_TRUE=
4679 BUILD_INFO_FALSE='#'
4680 else
4681 BUILD_INFO_TRUE='#'
4682 BUILD_INFO_FALSE=
4687 # Configure libtool
4688 case `pwd` in
4689 *\ * | *\ *)
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4691 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4692 esac
4696 macro_version='2.2.7a'
4697 macro_revision='1.3134'
4711 ltmain="$ac_aux_dir/ltmain.sh"
4713 # Backslashify metacharacters that are still active within
4714 # double-quoted strings.
4715 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4717 # Same as above, but do not quote variable references.
4718 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4720 # Sed substitution to delay expansion of an escaped shell variable in a
4721 # double_quote_subst'ed string.
4722 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4724 # Sed substitution to delay expansion of an escaped single quote.
4725 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4727 # Sed substitution to avoid accidental globbing in evaled expressions
4728 no_glob_subst='s/\*/\\\*/g'
4730 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4731 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4732 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4735 $as_echo_n "checking how to print strings... " >&6; }
4736 # Test print first, because it will be a builtin if present.
4737 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4738 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4739 ECHO='print -r --'
4740 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4741 ECHO='printf %s\n'
4742 else
4743 # Use this function as a fallback that always works.
4744 func_fallback_echo ()
4746 eval 'cat <<_LTECHO_EOF
4748 _LTECHO_EOF'
4750 ECHO='func_fallback_echo'
4753 # func_echo_all arg...
4754 # Invoke $ECHO with all args, space-separated.
4755 func_echo_all ()
4757 $ECHO ""
4760 case "$ECHO" in
4761 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4762 $as_echo "printf" >&6; } ;;
4763 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4764 $as_echo "print -r" >&6; } ;;
4765 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4766 $as_echo "cat" >&6; } ;;
4767 esac
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4783 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4784 if test "${ac_cv_path_SED+set}" = set; then :
4785 $as_echo_n "(cached) " >&6
4786 else
4787 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4788 for ac_i in 1 2 3 4 5 6 7; do
4789 ac_script="$ac_script$as_nl$ac_script"
4790 done
4791 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4792 { ac_script=; unset ac_script;}
4793 if test -z "$SED"; then
4794 ac_path_SED_found=false
4795 # Loop through the user's path and test for each of PROGNAME-LIST
4796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4797 for as_dir in $PATH
4799 IFS=$as_save_IFS
4800 test -z "$as_dir" && as_dir=.
4801 for ac_prog in sed gsed; do
4802 for ac_exec_ext in '' $ac_executable_extensions; do
4803 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4804 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4805 # Check for GNU ac_path_SED and select it if it is found.
4806 # Check for GNU $ac_path_SED
4807 case `"$ac_path_SED" --version 2>&1` in
4808 *GNU*)
4809 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4811 ac_count=0
4812 $as_echo_n 0123456789 >"conftest.in"
4813 while :
4815 cat "conftest.in" "conftest.in" >"conftest.tmp"
4816 mv "conftest.tmp" "conftest.in"
4817 cp "conftest.in" "conftest.nl"
4818 $as_echo '' >> "conftest.nl"
4819 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4820 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4821 as_fn_arith $ac_count + 1 && ac_count=$as_val
4822 if test $ac_count -gt ${ac_path_SED_max-0}; then
4823 # Best one so far, save it but keep looking for a better one
4824 ac_cv_path_SED="$ac_path_SED"
4825 ac_path_SED_max=$ac_count
4827 # 10*(2^10) chars as input seems more than enough
4828 test $ac_count -gt 10 && break
4829 done
4830 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4831 esac
4833 $ac_path_SED_found && break 3
4834 done
4835 done
4836 done
4837 IFS=$as_save_IFS
4838 if test -z "$ac_cv_path_SED"; then
4839 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4841 else
4842 ac_cv_path_SED=$SED
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4847 $as_echo "$ac_cv_path_SED" >&6; }
4848 SED="$ac_cv_path_SED"
4849 rm -f conftest.sed
4851 test -z "$SED" && SED=sed
4852 Xsed="$SED -e 1s/^X//"
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4865 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4866 if test "${ac_cv_path_GREP+set}" = set; then :
4867 $as_echo_n "(cached) " >&6
4868 else
4869 if test -z "$GREP"; then
4870 ac_path_GREP_found=false
4871 # Loop through the user's path and test for each of PROGNAME-LIST
4872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4875 IFS=$as_save_IFS
4876 test -z "$as_dir" && as_dir=.
4877 for ac_prog in grep ggrep; do
4878 for ac_exec_ext in '' $ac_executable_extensions; do
4879 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4880 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4881 # Check for GNU ac_path_GREP and select it if it is found.
4882 # Check for GNU $ac_path_GREP
4883 case `"$ac_path_GREP" --version 2>&1` in
4884 *GNU*)
4885 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4887 ac_count=0
4888 $as_echo_n 0123456789 >"conftest.in"
4889 while :
4891 cat "conftest.in" "conftest.in" >"conftest.tmp"
4892 mv "conftest.tmp" "conftest.in"
4893 cp "conftest.in" "conftest.nl"
4894 $as_echo 'GREP' >> "conftest.nl"
4895 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4896 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4897 as_fn_arith $ac_count + 1 && ac_count=$as_val
4898 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4899 # Best one so far, save it but keep looking for a better one
4900 ac_cv_path_GREP="$ac_path_GREP"
4901 ac_path_GREP_max=$ac_count
4903 # 10*(2^10) chars as input seems more than enough
4904 test $ac_count -gt 10 && break
4905 done
4906 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4907 esac
4909 $ac_path_GREP_found && break 3
4910 done
4911 done
4912 done
4913 IFS=$as_save_IFS
4914 if test -z "$ac_cv_path_GREP"; then
4915 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4917 else
4918 ac_cv_path_GREP=$GREP
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4923 $as_echo "$ac_cv_path_GREP" >&6; }
4924 GREP="$ac_cv_path_GREP"
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4928 $as_echo_n "checking for egrep... " >&6; }
4929 if test "${ac_cv_path_EGREP+set}" = set; then :
4930 $as_echo_n "(cached) " >&6
4931 else
4932 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4933 then ac_cv_path_EGREP="$GREP -E"
4934 else
4935 if test -z "$EGREP"; then
4936 ac_path_EGREP_found=false
4937 # Loop through the user's path and test for each of PROGNAME-LIST
4938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4939 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4941 IFS=$as_save_IFS
4942 test -z "$as_dir" && as_dir=.
4943 for ac_prog in egrep; do
4944 for ac_exec_ext in '' $ac_executable_extensions; do
4945 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4946 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4947 # Check for GNU ac_path_EGREP and select it if it is found.
4948 # Check for GNU $ac_path_EGREP
4949 case `"$ac_path_EGREP" --version 2>&1` in
4950 *GNU*)
4951 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4953 ac_count=0
4954 $as_echo_n 0123456789 >"conftest.in"
4955 while :
4957 cat "conftest.in" "conftest.in" >"conftest.tmp"
4958 mv "conftest.tmp" "conftest.in"
4959 cp "conftest.in" "conftest.nl"
4960 $as_echo 'EGREP' >> "conftest.nl"
4961 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4962 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4963 as_fn_arith $ac_count + 1 && ac_count=$as_val
4964 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4965 # Best one so far, save it but keep looking for a better one
4966 ac_cv_path_EGREP="$ac_path_EGREP"
4967 ac_path_EGREP_max=$ac_count
4969 # 10*(2^10) chars as input seems more than enough
4970 test $ac_count -gt 10 && break
4971 done
4972 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4973 esac
4975 $ac_path_EGREP_found && break 3
4976 done
4977 done
4978 done
4979 IFS=$as_save_IFS
4980 if test -z "$ac_cv_path_EGREP"; then
4981 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4983 else
4984 ac_cv_path_EGREP=$EGREP
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4990 $as_echo "$ac_cv_path_EGREP" >&6; }
4991 EGREP="$ac_cv_path_EGREP"
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4995 $as_echo_n "checking for fgrep... " >&6; }
4996 if test "${ac_cv_path_FGREP+set}" = set; then :
4997 $as_echo_n "(cached) " >&6
4998 else
4999 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5000 then ac_cv_path_FGREP="$GREP -F"
5001 else
5002 if test -z "$FGREP"; then
5003 ac_path_FGREP_found=false
5004 # Loop through the user's path and test for each of PROGNAME-LIST
5005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5006 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5008 IFS=$as_save_IFS
5009 test -z "$as_dir" && as_dir=.
5010 for ac_prog in fgrep; do
5011 for ac_exec_ext in '' $ac_executable_extensions; do
5012 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5013 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5014 # Check for GNU ac_path_FGREP and select it if it is found.
5015 # Check for GNU $ac_path_FGREP
5016 case `"$ac_path_FGREP" --version 2>&1` in
5017 *GNU*)
5018 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5020 ac_count=0
5021 $as_echo_n 0123456789 >"conftest.in"
5022 while :
5024 cat "conftest.in" "conftest.in" >"conftest.tmp"
5025 mv "conftest.tmp" "conftest.in"
5026 cp "conftest.in" "conftest.nl"
5027 $as_echo 'FGREP' >> "conftest.nl"
5028 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5029 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5030 as_fn_arith $ac_count + 1 && ac_count=$as_val
5031 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5032 # Best one so far, save it but keep looking for a better one
5033 ac_cv_path_FGREP="$ac_path_FGREP"
5034 ac_path_FGREP_max=$ac_count
5036 # 10*(2^10) chars as input seems more than enough
5037 test $ac_count -gt 10 && break
5038 done
5039 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5040 esac
5042 $ac_path_FGREP_found && break 3
5043 done
5044 done
5045 done
5046 IFS=$as_save_IFS
5047 if test -z "$ac_cv_path_FGREP"; then
5048 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5050 else
5051 ac_cv_path_FGREP=$FGREP
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5057 $as_echo "$ac_cv_path_FGREP" >&6; }
5058 FGREP="$ac_cv_path_FGREP"
5061 test -z "$GREP" && GREP=grep
5081 # Check whether --with-gnu-ld was given.
5082 if test "${with_gnu_ld+set}" = set; then :
5083 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5084 else
5085 with_gnu_ld=no
5088 ac_prog=ld
5089 if test "$GCC" = yes; then
5090 # Check if gcc -print-prog-name=ld gives a path.
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5092 $as_echo_n "checking for ld used by $CC... " >&6; }
5093 case $host in
5094 *-*-mingw*)
5095 # gcc leaves a trailing carriage return which upsets mingw
5096 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5098 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5099 esac
5100 case $ac_prog in
5101 # Accept absolute paths.
5102 [\\/]* | ?:[\\/]*)
5103 re_direlt='/[^/][^/]*/\.\./'
5104 # Canonicalize the pathname of ld
5105 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5106 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5107 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5108 done
5109 test -z "$LD" && LD="$ac_prog"
5112 # If it fails, then pretend we aren't using GCC.
5113 ac_prog=ld
5116 # If it is relative, then search for the first ld in PATH.
5117 with_gnu_ld=unknown
5119 esac
5120 elif test "$with_gnu_ld" = yes; then
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5122 $as_echo_n "checking for GNU ld... " >&6; }
5123 else
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5125 $as_echo_n "checking for non-GNU ld... " >&6; }
5127 if test "${lt_cv_path_LD+set}" = set; then :
5128 $as_echo_n "(cached) " >&6
5129 else
5130 if test -z "$LD"; then
5131 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5132 for ac_dir in $PATH; do
5133 IFS="$lt_save_ifs"
5134 test -z "$ac_dir" && ac_dir=.
5135 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5136 lt_cv_path_LD="$ac_dir/$ac_prog"
5137 # Check to see if the program is GNU ld. I'd rather use --version,
5138 # but apparently some variants of GNU ld only accept -v.
5139 # Break only if it was the GNU/non-GNU ld that we prefer.
5140 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5141 *GNU* | *'with BFD'*)
5142 test "$with_gnu_ld" != no && break
5145 test "$with_gnu_ld" != yes && break
5147 esac
5149 done
5150 IFS="$lt_save_ifs"
5151 else
5152 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5156 LD="$lt_cv_path_LD"
5157 if test -n "$LD"; then
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5159 $as_echo "$LD" >&6; }
5160 else
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5162 $as_echo "no" >&6; }
5164 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5166 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5167 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5168 $as_echo_n "(cached) " >&6
5169 else
5170 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5171 case `$LD -v 2>&1 </dev/null` in
5172 *GNU* | *'with BFD'*)
5173 lt_cv_prog_gnu_ld=yes
5176 lt_cv_prog_gnu_ld=no
5178 esac
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5181 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5182 with_gnu_ld=$lt_cv_prog_gnu_ld
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5193 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5194 if test "${lt_cv_path_NM+set}" = set; then :
5195 $as_echo_n "(cached) " >&6
5196 else
5197 if test -n "$NM"; then
5198 # Let the user override the test.
5199 lt_cv_path_NM="$NM"
5200 else
5201 lt_nm_to_check="${ac_tool_prefix}nm"
5202 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5203 lt_nm_to_check="$lt_nm_to_check nm"
5205 for lt_tmp_nm in $lt_nm_to_check; do
5206 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5207 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5208 IFS="$lt_save_ifs"
5209 test -z "$ac_dir" && ac_dir=.
5210 tmp_nm="$ac_dir/$lt_tmp_nm"
5211 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5212 # Check to see if the nm accepts a BSD-compat flag.
5213 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5214 # nm: unknown option "B" ignored
5215 # Tru64's nm complains that /dev/null is an invalid object file
5216 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5217 */dev/null* | *'Invalid file or object type'*)
5218 lt_cv_path_NM="$tmp_nm -B"
5219 break
5222 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5223 */dev/null*)
5224 lt_cv_path_NM="$tmp_nm -p"
5225 break
5228 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5229 continue # so that we can try to find one that supports BSD flags
5231 esac
5233 esac
5235 done
5236 IFS="$lt_save_ifs"
5237 done
5238 : ${lt_cv_path_NM=no}
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5242 $as_echo "$lt_cv_path_NM" >&6; }
5243 if test "$lt_cv_path_NM" != "no"; then
5244 NM="$lt_cv_path_NM"
5245 else
5246 # Didn't find any BSD compatible name lister, look for dumpbin.
5247 if test -n "$DUMPBIN"; then :
5248 # Let the user override the test.
5249 else
5250 if test -n "$ac_tool_prefix"; then
5251 for ac_prog in dumpbin "link -dump"
5253 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5254 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5256 $as_echo_n "checking for $ac_word... " >&6; }
5257 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5258 $as_echo_n "(cached) " >&6
5259 else
5260 if test -n "$DUMPBIN"; then
5261 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5262 else
5263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5264 for as_dir in $PATH
5266 IFS=$as_save_IFS
5267 test -z "$as_dir" && as_dir=.
5268 for ac_exec_ext in '' $ac_executable_extensions; do
5269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5270 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5272 break 2
5274 done
5275 done
5276 IFS=$as_save_IFS
5280 DUMPBIN=$ac_cv_prog_DUMPBIN
5281 if test -n "$DUMPBIN"; then
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5283 $as_echo "$DUMPBIN" >&6; }
5284 else
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5286 $as_echo "no" >&6; }
5290 test -n "$DUMPBIN" && break
5291 done
5293 if test -z "$DUMPBIN"; then
5294 ac_ct_DUMPBIN=$DUMPBIN
5295 for ac_prog in dumpbin "link -dump"
5297 # Extract the first word of "$ac_prog", so it can be a program name with args.
5298 set dummy $ac_prog; ac_word=$2
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5300 $as_echo_n "checking for $ac_word... " >&6; }
5301 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5302 $as_echo_n "(cached) " >&6
5303 else
5304 if test -n "$ac_ct_DUMPBIN"; then
5305 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5306 else
5307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5308 for as_dir in $PATH
5310 IFS=$as_save_IFS
5311 test -z "$as_dir" && as_dir=.
5312 for ac_exec_ext in '' $ac_executable_extensions; do
5313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5314 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5316 break 2
5318 done
5319 done
5320 IFS=$as_save_IFS
5324 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5325 if test -n "$ac_ct_DUMPBIN"; then
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5327 $as_echo "$ac_ct_DUMPBIN" >&6; }
5328 else
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5330 $as_echo "no" >&6; }
5334 test -n "$ac_ct_DUMPBIN" && break
5335 done
5337 if test "x$ac_ct_DUMPBIN" = x; then
5338 DUMPBIN=":"
5339 else
5340 case $cross_compiling:$ac_tool_warned in
5341 yes:)
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5343 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5344 ac_tool_warned=yes ;;
5345 esac
5346 DUMPBIN=$ac_ct_DUMPBIN
5350 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5351 *COFF*)
5352 DUMPBIN="$DUMPBIN -symbols"
5355 DUMPBIN=:
5357 esac
5360 if test "$DUMPBIN" != ":"; then
5361 NM="$DUMPBIN"
5364 test -z "$NM" && NM=nm
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5372 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5373 if test "${lt_cv_nm_interface+set}" = set; then :
5374 $as_echo_n "(cached) " >&6
5375 else
5376 lt_cv_nm_interface="BSD nm"
5377 echo "int some_variable = 0;" > conftest.$ac_ext
5378 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5379 (eval "$ac_compile" 2>conftest.err)
5380 cat conftest.err >&5
5381 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5382 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5383 cat conftest.err >&5
5384 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5385 cat conftest.out >&5
5386 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5387 lt_cv_nm_interface="MS dumpbin"
5389 rm -f conftest*
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5392 $as_echo "$lt_cv_nm_interface" >&6; }
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5395 $as_echo_n "checking whether ln -s works... " >&6; }
5396 LN_S=$as_ln_s
5397 if test "$LN_S" = "ln -s"; then
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5399 $as_echo "yes" >&6; }
5400 else
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5402 $as_echo "no, using $LN_S" >&6; }
5405 # find the maximum length of command line arguments
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5407 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5408 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5409 $as_echo_n "(cached) " >&6
5410 else
5412 teststring="ABCD"
5414 case $build_os in
5415 msdosdjgpp*)
5416 # On DJGPP, this test can blow up pretty badly due to problems in libc
5417 # (any single argument exceeding 2000 bytes causes a buffer overrun
5418 # during glob expansion). Even if it were fixed, the result of this
5419 # check would be larger than it should be.
5420 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5423 gnu*)
5424 # Under GNU Hurd, this test is not required because there is
5425 # no limit to the length of command line arguments.
5426 # Libtool will interpret -1 as no limit whatsoever
5427 lt_cv_sys_max_cmd_len=-1;
5430 cygwin* | mingw* | cegcc*)
5431 # On Win9x/ME, this test blows up -- it succeeds, but takes
5432 # about 5 minutes as the teststring grows exponentially.
5433 # Worse, since 9x/ME are not pre-emptively multitasking,
5434 # you end up with a "frozen" computer, even though with patience
5435 # the test eventually succeeds (with a max line length of 256k).
5436 # Instead, let's just punt: use the minimum linelength reported by
5437 # all of the supported platforms: 8192 (on NT/2K/XP).
5438 lt_cv_sys_max_cmd_len=8192;
5441 mint*)
5442 # On MiNT this can take a long time and run out of memory.
5443 lt_cv_sys_max_cmd_len=8192;
5446 amigaos*)
5447 # On AmigaOS with pdksh, this test takes hours, literally.
5448 # So we just punt and use a minimum line length of 8192.
5449 lt_cv_sys_max_cmd_len=8192;
5452 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5453 # This has been around since 386BSD, at least. Likely further.
5454 if test -x /sbin/sysctl; then
5455 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5456 elif test -x /usr/sbin/sysctl; then
5457 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5458 else
5459 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5461 # And add a safety zone
5462 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5463 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5466 interix*)
5467 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5468 lt_cv_sys_max_cmd_len=196608
5471 osf*)
5472 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5473 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5474 # nice to cause kernel panics so lets avoid the loop below.
5475 # First set a reasonable default.
5476 lt_cv_sys_max_cmd_len=16384
5478 if test -x /sbin/sysconfig; then
5479 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5480 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5481 esac
5484 sco3.2v5*)
5485 lt_cv_sys_max_cmd_len=102400
5487 sysv5* | sco5v6* | sysv4.2uw2*)
5488 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5489 if test -n "$kargmax"; then
5490 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5491 else
5492 lt_cv_sys_max_cmd_len=32768
5496 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5497 if test -n "$lt_cv_sys_max_cmd_len"; then
5498 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5499 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5500 else
5501 # Make teststring a little bigger before we do anything with it.
5502 # a 1K string should be a reasonable start.
5503 for i in 1 2 3 4 5 6 7 8 ; do
5504 teststring=$teststring$teststring
5505 done
5506 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5507 # If test is not a shell built-in, we'll probably end up computing a
5508 # maximum length that is only half of the actual maximum length, but
5509 # we can't tell.
5510 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5511 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5512 test $i != 17 # 1/2 MB should be enough
5514 i=`expr $i + 1`
5515 teststring=$teststring$teststring
5516 done
5517 # Only check the string length outside the loop.
5518 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5519 teststring=
5520 # Add a significant safety factor because C++ compilers can tack on
5521 # massive amounts of additional arguments before passing them to the
5522 # linker. It appears as though 1/2 is a usable value.
5523 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5526 esac
5530 if test -n $lt_cv_sys_max_cmd_len ; then
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5532 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5533 else
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5535 $as_echo "none" >&6; }
5537 max_cmd_len=$lt_cv_sys_max_cmd_len
5544 : ${CP="cp -f"}
5545 : ${MV="mv -f"}
5546 : ${RM="rm -f"}
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5549 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5550 # Try some XSI features
5551 xsi_shell=no
5552 ( _lt_dummy="a/b/c"
5553 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5554 = c,a/b,, \
5555 && eval 'test $(( 1 + 1 )) -eq 2 \
5556 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5557 && xsi_shell=yes
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5559 $as_echo "$xsi_shell" >&6; }
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5563 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5564 lt_shell_append=no
5565 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5566 >/dev/null 2>&1 \
5567 && lt_shell_append=yes
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5569 $as_echo "$lt_shell_append" >&6; }
5572 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5573 lt_unset=unset
5574 else
5575 lt_unset=false
5582 # test EBCDIC or ASCII
5583 case `echo X|tr X '\101'` in
5584 A) # ASCII based system
5585 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5586 lt_SP2NL='tr \040 \012'
5587 lt_NL2SP='tr \015\012 \040\040'
5589 *) # EBCDIC based system
5590 lt_SP2NL='tr \100 \n'
5591 lt_NL2SP='tr \r\n \100\100'
5593 esac
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5604 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5605 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5606 $as_echo_n "(cached) " >&6
5607 else
5608 lt_cv_ld_reload_flag='-r'
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5611 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5612 reload_flag=$lt_cv_ld_reload_flag
5613 case $reload_flag in
5614 "" | " "*) ;;
5615 *) reload_flag=" $reload_flag" ;;
5616 esac
5617 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5618 case $host_os in
5619 darwin*)
5620 if test "$GCC" = yes; then
5621 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5622 else
5623 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5626 esac
5636 if test -n "$ac_tool_prefix"; then
5637 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5638 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5640 $as_echo_n "checking for $ac_word... " >&6; }
5641 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5642 $as_echo_n "(cached) " >&6
5643 else
5644 if test -n "$OBJDUMP"; then
5645 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5646 else
5647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5648 for as_dir in $PATH
5650 IFS=$as_save_IFS
5651 test -z "$as_dir" && as_dir=.
5652 for ac_exec_ext in '' $ac_executable_extensions; do
5653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5654 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5656 break 2
5658 done
5659 done
5660 IFS=$as_save_IFS
5664 OBJDUMP=$ac_cv_prog_OBJDUMP
5665 if test -n "$OBJDUMP"; then
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5667 $as_echo "$OBJDUMP" >&6; }
5668 else
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5670 $as_echo "no" >&6; }
5675 if test -z "$ac_cv_prog_OBJDUMP"; then
5676 ac_ct_OBJDUMP=$OBJDUMP
5677 # Extract the first word of "objdump", so it can be a program name with args.
5678 set dummy objdump; ac_word=$2
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5680 $as_echo_n "checking for $ac_word... " >&6; }
5681 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5682 $as_echo_n "(cached) " >&6
5683 else
5684 if test -n "$ac_ct_OBJDUMP"; then
5685 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5686 else
5687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5688 for as_dir in $PATH
5690 IFS=$as_save_IFS
5691 test -z "$as_dir" && as_dir=.
5692 for ac_exec_ext in '' $ac_executable_extensions; do
5693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5694 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5696 break 2
5698 done
5699 done
5700 IFS=$as_save_IFS
5704 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5705 if test -n "$ac_ct_OBJDUMP"; then
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5707 $as_echo "$ac_ct_OBJDUMP" >&6; }
5708 else
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5710 $as_echo "no" >&6; }
5713 if test "x$ac_ct_OBJDUMP" = x; then
5714 OBJDUMP="false"
5715 else
5716 case $cross_compiling:$ac_tool_warned in
5717 yes:)
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5719 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5720 ac_tool_warned=yes ;;
5721 esac
5722 OBJDUMP=$ac_ct_OBJDUMP
5724 else
5725 OBJDUMP="$ac_cv_prog_OBJDUMP"
5728 test -z "$OBJDUMP" && OBJDUMP=objdump
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5739 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5740 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5741 $as_echo_n "(cached) " >&6
5742 else
5743 lt_cv_file_magic_cmd='$MAGIC_CMD'
5744 lt_cv_file_magic_test_file=
5745 lt_cv_deplibs_check_method='unknown'
5746 # Need to set the preceding variable on all platforms that support
5747 # interlibrary dependencies.
5748 # 'none' -- dependencies not supported.
5749 # `unknown' -- same as none, but documents that we really don't know.
5750 # 'pass_all' -- all dependencies passed with no checks.
5751 # 'test_compile' -- check by making test program.
5752 # 'file_magic [[regex]]' -- check by looking for files in library path
5753 # which responds to the $file_magic_cmd with a given extended regex.
5754 # If you have `file' or equivalent on your system and you're not sure
5755 # whether `pass_all' will *always* work, you probably want this one.
5757 case $host_os in
5758 aix[4-9]*)
5759 lt_cv_deplibs_check_method=pass_all
5762 beos*)
5763 lt_cv_deplibs_check_method=pass_all
5766 bsdi[45]*)
5767 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5768 lt_cv_file_magic_cmd='/usr/bin/file -L'
5769 lt_cv_file_magic_test_file=/shlib/libc.so
5772 cygwin*)
5773 # func_win32_libid is a shell function defined in ltmain.sh
5774 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5775 lt_cv_file_magic_cmd='func_win32_libid'
5778 mingw* | pw32*)
5779 # Base MSYS/MinGW do not provide the 'file' command needed by
5780 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5781 # unless we find 'file', for example because we are cross-compiling.
5782 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5783 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5784 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5785 lt_cv_file_magic_cmd='func_win32_libid'
5786 else
5787 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5788 lt_cv_file_magic_cmd='$OBJDUMP -f'
5792 cegcc*)
5793 # use the weaker test based on 'objdump'. See mingw*.
5794 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5795 lt_cv_file_magic_cmd='$OBJDUMP -f'
5798 darwin* | rhapsody*)
5799 lt_cv_deplibs_check_method=pass_all
5802 freebsd* | dragonfly*)
5803 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5804 case $host_cpu in
5805 i*86 )
5806 # Not sure whether the presence of OpenBSD here was a mistake.
5807 # Let's accept both of them until this is cleared up.
5808 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5809 lt_cv_file_magic_cmd=/usr/bin/file
5810 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5812 esac
5813 else
5814 lt_cv_deplibs_check_method=pass_all
5818 gnu*)
5819 lt_cv_deplibs_check_method=pass_all
5822 haiku*)
5823 lt_cv_deplibs_check_method=pass_all
5826 hpux10.20* | hpux11*)
5827 lt_cv_file_magic_cmd=/usr/bin/file
5828 case $host_cpu in
5829 ia64*)
5830 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5831 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5833 hppa*64*)
5834 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]'
5835 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5838 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5839 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5841 esac
5844 interix[3-9]*)
5845 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5846 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5849 irix5* | irix6* | nonstopux*)
5850 case $LD in
5851 *-32|*"-32 ") libmagic=32-bit;;
5852 *-n32|*"-n32 ") libmagic=N32;;
5853 *-64|*"-64 ") libmagic=64-bit;;
5854 *) libmagic=never-match;;
5855 esac
5856 lt_cv_deplibs_check_method=pass_all
5859 # This must be Linux ELF.
5860 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5861 lt_cv_deplibs_check_method=pass_all
5864 netbsd*)
5865 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5866 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5867 else
5868 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5872 newos6*)
5873 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5874 lt_cv_file_magic_cmd=/usr/bin/file
5875 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5878 *nto* | *qnx*)
5879 lt_cv_deplibs_check_method=pass_all
5882 openbsd*)
5883 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5884 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5885 else
5886 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5890 osf3* | osf4* | osf5*)
5891 lt_cv_deplibs_check_method=pass_all
5894 rdos*)
5895 lt_cv_deplibs_check_method=pass_all
5898 solaris*)
5899 lt_cv_deplibs_check_method=pass_all
5902 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5903 lt_cv_deplibs_check_method=pass_all
5906 sysv4 | sysv4.3*)
5907 case $host_vendor in
5908 motorola)
5909 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]'
5910 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5912 ncr)
5913 lt_cv_deplibs_check_method=pass_all
5915 sequent)
5916 lt_cv_file_magic_cmd='/bin/file'
5917 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5919 sni)
5920 lt_cv_file_magic_cmd='/bin/file'
5921 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5922 lt_cv_file_magic_test_file=/lib/libc.so
5924 siemens)
5925 lt_cv_deplibs_check_method=pass_all
5928 lt_cv_deplibs_check_method=pass_all
5930 esac
5933 tpf*)
5934 lt_cv_deplibs_check_method=pass_all
5936 esac
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5940 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5941 file_magic_cmd=$lt_cv_file_magic_cmd
5942 deplibs_check_method=$lt_cv_deplibs_check_method
5943 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5956 if test -n "$ac_tool_prefix"; then
5957 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5958 set dummy ${ac_tool_prefix}ar; ac_word=$2
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5960 $as_echo_n "checking for $ac_word... " >&6; }
5961 if test "${ac_cv_prog_AR+set}" = set; then :
5962 $as_echo_n "(cached) " >&6
5963 else
5964 if test -n "$AR"; then
5965 ac_cv_prog_AR="$AR" # Let the user override the test.
5966 else
5967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5968 for as_dir in $PATH
5970 IFS=$as_save_IFS
5971 test -z "$as_dir" && as_dir=.
5972 for ac_exec_ext in '' $ac_executable_extensions; do
5973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5974 ac_cv_prog_AR="${ac_tool_prefix}ar"
5975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5976 break 2
5978 done
5979 done
5980 IFS=$as_save_IFS
5984 AR=$ac_cv_prog_AR
5985 if test -n "$AR"; then
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5987 $as_echo "$AR" >&6; }
5988 else
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5990 $as_echo "no" >&6; }
5995 if test -z "$ac_cv_prog_AR"; then
5996 ac_ct_AR=$AR
5997 # Extract the first word of "ar", so it can be a program name with args.
5998 set dummy ar; ac_word=$2
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6000 $as_echo_n "checking for $ac_word... " >&6; }
6001 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6002 $as_echo_n "(cached) " >&6
6003 else
6004 if test -n "$ac_ct_AR"; then
6005 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6006 else
6007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6008 for as_dir in $PATH
6010 IFS=$as_save_IFS
6011 test -z "$as_dir" && as_dir=.
6012 for ac_exec_ext in '' $ac_executable_extensions; do
6013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6014 ac_cv_prog_ac_ct_AR="ar"
6015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6016 break 2
6018 done
6019 done
6020 IFS=$as_save_IFS
6024 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6025 if test -n "$ac_ct_AR"; then
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6027 $as_echo "$ac_ct_AR" >&6; }
6028 else
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6030 $as_echo "no" >&6; }
6033 if test "x$ac_ct_AR" = x; then
6034 AR="false"
6035 else
6036 case $cross_compiling:$ac_tool_warned in
6037 yes:)
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6039 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6040 ac_tool_warned=yes ;;
6041 esac
6042 AR=$ac_ct_AR
6044 else
6045 AR="$ac_cv_prog_AR"
6048 test -z "$AR" && AR=ar
6049 test -z "$AR_FLAGS" && AR_FLAGS=cru
6061 if test -n "$ac_tool_prefix"; then
6062 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6063 set dummy ${ac_tool_prefix}strip; ac_word=$2
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6065 $as_echo_n "checking for $ac_word... " >&6; }
6066 if test "${ac_cv_prog_STRIP+set}" = set; then :
6067 $as_echo_n "(cached) " >&6
6068 else
6069 if test -n "$STRIP"; then
6070 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6071 else
6072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6073 for as_dir in $PATH
6075 IFS=$as_save_IFS
6076 test -z "$as_dir" && as_dir=.
6077 for ac_exec_ext in '' $ac_executable_extensions; do
6078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6079 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6081 break 2
6083 done
6084 done
6085 IFS=$as_save_IFS
6089 STRIP=$ac_cv_prog_STRIP
6090 if test -n "$STRIP"; then
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6092 $as_echo "$STRIP" >&6; }
6093 else
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6095 $as_echo "no" >&6; }
6100 if test -z "$ac_cv_prog_STRIP"; then
6101 ac_ct_STRIP=$STRIP
6102 # Extract the first word of "strip", so it can be a program name with args.
6103 set dummy strip; ac_word=$2
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6105 $as_echo_n "checking for $ac_word... " >&6; }
6106 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6107 $as_echo_n "(cached) " >&6
6108 else
6109 if test -n "$ac_ct_STRIP"; then
6110 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6111 else
6112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6113 for as_dir in $PATH
6115 IFS=$as_save_IFS
6116 test -z "$as_dir" && as_dir=.
6117 for ac_exec_ext in '' $ac_executable_extensions; do
6118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6119 ac_cv_prog_ac_ct_STRIP="strip"
6120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6121 break 2
6123 done
6124 done
6125 IFS=$as_save_IFS
6129 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6130 if test -n "$ac_ct_STRIP"; then
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6132 $as_echo "$ac_ct_STRIP" >&6; }
6133 else
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6135 $as_echo "no" >&6; }
6138 if test "x$ac_ct_STRIP" = x; then
6139 STRIP=":"
6140 else
6141 case $cross_compiling:$ac_tool_warned in
6142 yes:)
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6144 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6145 ac_tool_warned=yes ;;
6146 esac
6147 STRIP=$ac_ct_STRIP
6149 else
6150 STRIP="$ac_cv_prog_STRIP"
6153 test -z "$STRIP" && STRIP=:
6160 if test -n "$ac_tool_prefix"; then
6161 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6162 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6164 $as_echo_n "checking for $ac_word... " >&6; }
6165 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6166 $as_echo_n "(cached) " >&6
6167 else
6168 if test -n "$RANLIB"; then
6169 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6170 else
6171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6172 for as_dir in $PATH
6174 IFS=$as_save_IFS
6175 test -z "$as_dir" && as_dir=.
6176 for ac_exec_ext in '' $ac_executable_extensions; do
6177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6178 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6180 break 2
6182 done
6183 done
6184 IFS=$as_save_IFS
6188 RANLIB=$ac_cv_prog_RANLIB
6189 if test -n "$RANLIB"; then
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6191 $as_echo "$RANLIB" >&6; }
6192 else
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6194 $as_echo "no" >&6; }
6199 if test -z "$ac_cv_prog_RANLIB"; then
6200 ac_ct_RANLIB=$RANLIB
6201 # Extract the first word of "ranlib", so it can be a program name with args.
6202 set dummy ranlib; ac_word=$2
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6204 $as_echo_n "checking for $ac_word... " >&6; }
6205 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6206 $as_echo_n "(cached) " >&6
6207 else
6208 if test -n "$ac_ct_RANLIB"; then
6209 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6210 else
6211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6212 for as_dir in $PATH
6214 IFS=$as_save_IFS
6215 test -z "$as_dir" && as_dir=.
6216 for ac_exec_ext in '' $ac_executable_extensions; do
6217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6218 ac_cv_prog_ac_ct_RANLIB="ranlib"
6219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6220 break 2
6222 done
6223 done
6224 IFS=$as_save_IFS
6228 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6229 if test -n "$ac_ct_RANLIB"; then
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6231 $as_echo "$ac_ct_RANLIB" >&6; }
6232 else
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6234 $as_echo "no" >&6; }
6237 if test "x$ac_ct_RANLIB" = x; then
6238 RANLIB=":"
6239 else
6240 case $cross_compiling:$ac_tool_warned in
6241 yes:)
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6243 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6244 ac_tool_warned=yes ;;
6245 esac
6246 RANLIB=$ac_ct_RANLIB
6248 else
6249 RANLIB="$ac_cv_prog_RANLIB"
6252 test -z "$RANLIB" && RANLIB=:
6259 # Determine commands to create old-style static archives.
6260 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6261 old_postinstall_cmds='chmod 644 $oldlib'
6262 old_postuninstall_cmds=
6264 if test -n "$RANLIB"; then
6265 case $host_os in
6266 openbsd*)
6267 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6270 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6272 esac
6273 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6276 case $host_os in
6277 darwin*)
6278 lock_old_archive_extraction=yes ;;
6280 lock_old_archive_extraction=no ;;
6281 esac
6321 # If no C compiler was specified, use CC.
6322 LTCC=${LTCC-"$CC"}
6324 # If no C compiler flags were specified, use CFLAGS.
6325 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6327 # Allow CC to be a program name with arguments.
6328 compiler=$CC
6331 # Check for command to grab the raw symbol name followed by C symbol from nm.
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6333 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6334 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6335 $as_echo_n "(cached) " >&6
6336 else
6338 # These are sane defaults that work on at least a few old systems.
6339 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6341 # Character class describing NM global symbol codes.
6342 symcode='[BCDEGRST]'
6344 # Regexp to match symbols that can be accessed directly from C.
6345 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6347 # Define system-specific variables.
6348 case $host_os in
6349 aix*)
6350 symcode='[BCDT]'
6352 cygwin* | mingw* | pw32* | cegcc*)
6353 symcode='[ABCDGISTW]'
6355 hpux*)
6356 if test "$host_cpu" = ia64; then
6357 symcode='[ABCDEGRST]'
6360 irix* | nonstopux*)
6361 symcode='[BCDEGRST]'
6363 osf*)
6364 symcode='[BCDEGQRST]'
6366 solaris*)
6367 symcode='[BDRT]'
6369 sco3.2v5*)
6370 symcode='[DT]'
6372 sysv4.2uw2*)
6373 symcode='[DT]'
6375 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6376 symcode='[ABDT]'
6378 sysv4)
6379 symcode='[DFNSTU]'
6381 esac
6383 # If we're using GNU nm, then use its standard symbol codes.
6384 case `$NM -V 2>&1` in
6385 *GNU* | *'with BFD'*)
6386 symcode='[ABCDGIRSTW]' ;;
6387 esac
6389 # Transform an extracted symbol line into a proper C declaration.
6390 # Some systems (esp. on ia64) link data and code symbols differently,
6391 # so use this general approach.
6392 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6394 # Transform an extracted symbol line into symbol name and symbol address
6395 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6396 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'"
6398 # Handle CRLF in mingw tool chain
6399 opt_cr=
6400 case $build_os in
6401 mingw*)
6402 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6404 esac
6406 # Try without a prefix underscore, then with it.
6407 for ac_symprfx in "" "_"; do
6409 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6410 symxfrm="\\1 $ac_symprfx\\2 \\2"
6412 # Write the raw and C identifiers.
6413 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6414 # Fake it for dumpbin and say T for any non-static function
6415 # and D for any global variable.
6416 # Also find C++ and __fastcall symbols from MSVC++,
6417 # which start with @ or ?.
6418 lt_cv_sys_global_symbol_pipe="$AWK '"\
6419 " {last_section=section; section=\$ 3};"\
6420 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6421 " \$ 0!~/External *\|/{next};"\
6422 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6423 " {if(hide[section]) next};"\
6424 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6425 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6426 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6427 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6428 " ' prfx=^$ac_symprfx"
6429 else
6430 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6433 # Check to see that the pipe works correctly.
6434 pipe_works=no
6436 rm -f conftest*
6437 cat > conftest.$ac_ext <<_LT_EOF
6438 #ifdef __cplusplus
6439 extern "C" {
6440 #endif
6441 char nm_test_var;
6442 void nm_test_func(void);
6443 void nm_test_func(void){}
6444 #ifdef __cplusplus
6446 #endif
6447 int main(){nm_test_var='a';nm_test_func();return(0);}
6448 _LT_EOF
6450 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6451 (eval $ac_compile) 2>&5
6452 ac_status=$?
6453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6454 test $ac_status = 0; }; then
6455 # Now try to grab the symbols.
6456 nlist=conftest.nm
6457 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6458 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6459 ac_status=$?
6460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6461 test $ac_status = 0; } && test -s "$nlist"; then
6462 # Try sorting and uniquifying the output.
6463 if sort "$nlist" | uniq > "$nlist"T; then
6464 mv -f "$nlist"T "$nlist"
6465 else
6466 rm -f "$nlist"T
6469 # Make sure that we snagged all the symbols we need.
6470 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6471 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6472 cat <<_LT_EOF > conftest.$ac_ext
6473 #ifdef __cplusplus
6474 extern "C" {
6475 #endif
6477 _LT_EOF
6478 # Now generate the symbol file.
6479 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6481 cat <<_LT_EOF >> conftest.$ac_ext
6483 /* The mapping between symbol names and symbols. */
6484 const struct {
6485 const char *name;
6486 void *address;
6488 lt__PROGRAM__LTX_preloaded_symbols[] =
6490 { "@PROGRAM@", (void *) 0 },
6491 _LT_EOF
6492 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6493 cat <<\_LT_EOF >> conftest.$ac_ext
6494 {0, (void *) 0}
6497 /* This works around a problem in FreeBSD linker */
6498 #ifdef FREEBSD_WORKAROUND
6499 static const void *lt_preloaded_setup() {
6500 return lt__PROGRAM__LTX_preloaded_symbols;
6502 #endif
6504 #ifdef __cplusplus
6506 #endif
6507 _LT_EOF
6508 # Now try linking the two files.
6509 mv conftest.$ac_objext conftstm.$ac_objext
6510 lt_save_LIBS="$LIBS"
6511 lt_save_CFLAGS="$CFLAGS"
6512 LIBS="conftstm.$ac_objext"
6513 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6514 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6515 (eval $ac_link) 2>&5
6516 ac_status=$?
6517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6518 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6519 pipe_works=yes
6521 LIBS="$lt_save_LIBS"
6522 CFLAGS="$lt_save_CFLAGS"
6523 else
6524 echo "cannot find nm_test_func in $nlist" >&5
6526 else
6527 echo "cannot find nm_test_var in $nlist" >&5
6529 else
6530 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6532 else
6533 echo "$progname: failed program was:" >&5
6534 cat conftest.$ac_ext >&5
6536 rm -rf conftest* conftst*
6538 # Do not use the global_symbol_pipe unless it works.
6539 if test "$pipe_works" = yes; then
6540 break
6541 else
6542 lt_cv_sys_global_symbol_pipe=
6544 done
6548 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6549 lt_cv_sys_global_symbol_to_cdecl=
6551 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6553 $as_echo "failed" >&6; }
6554 else
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6556 $as_echo "ok" >&6; }
6581 # Check whether --enable-libtool-lock was given.
6582 if test "${enable_libtool_lock+set}" = set; then :
6583 enableval=$enable_libtool_lock;
6586 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6588 # Some flags need to be propagated to the compiler or linker for good
6589 # libtool support.
6590 case $host in
6591 ia64-*-hpux*)
6592 # Find out which ABI we are using.
6593 echo 'int i;' > conftest.$ac_ext
6594 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6595 (eval $ac_compile) 2>&5
6596 ac_status=$?
6597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6598 test $ac_status = 0; }; then
6599 case `/usr/bin/file conftest.$ac_objext` in
6600 *ELF-32*)
6601 HPUX_IA64_MODE="32"
6603 *ELF-64*)
6604 HPUX_IA64_MODE="64"
6606 esac
6608 rm -rf conftest*
6610 *-*-irix6*)
6611 # Find out which ABI we are using.
6612 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6613 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6614 (eval $ac_compile) 2>&5
6615 ac_status=$?
6616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6617 test $ac_status = 0; }; then
6618 if test "$lt_cv_prog_gnu_ld" = yes; then
6619 case `/usr/bin/file conftest.$ac_objext` in
6620 *32-bit*)
6621 LD="${LD-ld} -melf32bsmip"
6623 *N32*)
6624 LD="${LD-ld} -melf32bmipn32"
6626 *64-bit*)
6627 LD="${LD-ld} -melf64bmip"
6629 esac
6630 else
6631 case `/usr/bin/file conftest.$ac_objext` in
6632 *32-bit*)
6633 LD="${LD-ld} -32"
6635 *N32*)
6636 LD="${LD-ld} -n32"
6638 *64-bit*)
6639 LD="${LD-ld} -64"
6641 esac
6644 rm -rf conftest*
6647 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6648 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6649 # Find out which ABI we are using.
6650 echo 'int i;' > conftest.$ac_ext
6651 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6652 (eval $ac_compile) 2>&5
6653 ac_status=$?
6654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6655 test $ac_status = 0; }; then
6656 case `/usr/bin/file conftest.o` in
6657 *32-bit*)
6658 case $host in
6659 x86_64-*kfreebsd*-gnu)
6660 LD="${LD-ld} -m elf_i386_fbsd"
6662 x86_64-*linux*)
6663 case `/usr/bin/file conftest.o` in
6664 *x86-64*)
6665 LD="${LD-ld} -m elf32_x86_64"
6668 LD="${LD-ld} -m elf_i386"
6670 esac
6672 powerpc64le-*linux*)
6673 LD="${LD-ld} -m elf32lppclinux"
6675 powerpc64-*linux*)
6676 LD="${LD-ld} -m elf32ppclinux"
6678 s390x-*linux*)
6679 LD="${LD-ld} -m elf_s390"
6681 sparc64-*linux*)
6682 LD="${LD-ld} -m elf32_sparc"
6684 esac
6686 *64-bit*)
6687 case $host in
6688 x86_64-*kfreebsd*-gnu)
6689 LD="${LD-ld} -m elf_x86_64_fbsd"
6691 x86_64-*linux*)
6692 LD="${LD-ld} -m elf_x86_64"
6694 powerpcle-*linux*)
6695 LD="${LD-ld} -m elf64lppc"
6697 powerpc-*linux*)
6698 LD="${LD-ld} -m elf64ppc"
6700 s390*-*linux*|s390*-*tpf*)
6701 LD="${LD-ld} -m elf64_s390"
6703 sparc*-*linux*)
6704 LD="${LD-ld} -m elf64_sparc"
6706 esac
6708 esac
6710 rm -rf conftest*
6713 *-*-sco3.2v5*)
6714 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6715 SAVE_CFLAGS="$CFLAGS"
6716 CFLAGS="$CFLAGS -belf"
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6718 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6719 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6720 $as_echo_n "(cached) " >&6
6721 else
6722 ac_ext=c
6723 ac_cpp='$CPP $CPPFLAGS'
6724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6729 /* end confdefs.h. */
6732 main ()
6736 return 0;
6738 _ACEOF
6739 if ac_fn_c_try_link "$LINENO"; then :
6740 lt_cv_cc_needs_belf=yes
6741 else
6742 lt_cv_cc_needs_belf=no
6744 rm -f core conftest.err conftest.$ac_objext \
6745 conftest$ac_exeext conftest.$ac_ext
6746 ac_ext=c
6747 ac_cpp='$CPP $CPPFLAGS'
6748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6754 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6755 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6756 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6757 CFLAGS="$SAVE_CFLAGS"
6760 sparc*-*solaris*)
6761 # Find out which ABI we are using.
6762 echo 'int i;' > conftest.$ac_ext
6763 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6764 (eval $ac_compile) 2>&5
6765 ac_status=$?
6766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6767 test $ac_status = 0; }; then
6768 case `/usr/bin/file conftest.o` in
6769 *64-bit*)
6770 case $lt_cv_prog_gnu_ld in
6771 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6773 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6774 LD="${LD-ld} -64"
6777 esac
6779 esac
6781 rm -rf conftest*
6783 esac
6785 need_locks="$enable_libtool_lock"
6788 case $host_os in
6789 rhapsody* | darwin*)
6790 if test -n "$ac_tool_prefix"; then
6791 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6792 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6794 $as_echo_n "checking for $ac_word... " >&6; }
6795 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6796 $as_echo_n "(cached) " >&6
6797 else
6798 if test -n "$DSYMUTIL"; then
6799 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6800 else
6801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6802 for as_dir in $PATH
6804 IFS=$as_save_IFS
6805 test -z "$as_dir" && as_dir=.
6806 for ac_exec_ext in '' $ac_executable_extensions; do
6807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6808 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6810 break 2
6812 done
6813 done
6814 IFS=$as_save_IFS
6818 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6819 if test -n "$DSYMUTIL"; then
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6821 $as_echo "$DSYMUTIL" >&6; }
6822 else
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6824 $as_echo "no" >&6; }
6829 if test -z "$ac_cv_prog_DSYMUTIL"; then
6830 ac_ct_DSYMUTIL=$DSYMUTIL
6831 # Extract the first word of "dsymutil", so it can be a program name with args.
6832 set dummy dsymutil; ac_word=$2
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6834 $as_echo_n "checking for $ac_word... " >&6; }
6835 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6836 $as_echo_n "(cached) " >&6
6837 else
6838 if test -n "$ac_ct_DSYMUTIL"; then
6839 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6840 else
6841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6842 for as_dir in $PATH
6844 IFS=$as_save_IFS
6845 test -z "$as_dir" && as_dir=.
6846 for ac_exec_ext in '' $ac_executable_extensions; do
6847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6848 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6850 break 2
6852 done
6853 done
6854 IFS=$as_save_IFS
6858 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6859 if test -n "$ac_ct_DSYMUTIL"; then
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6861 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6862 else
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6864 $as_echo "no" >&6; }
6867 if test "x$ac_ct_DSYMUTIL" = x; then
6868 DSYMUTIL=":"
6869 else
6870 case $cross_compiling:$ac_tool_warned in
6871 yes:)
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6873 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6874 ac_tool_warned=yes ;;
6875 esac
6876 DSYMUTIL=$ac_ct_DSYMUTIL
6878 else
6879 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6882 if test -n "$ac_tool_prefix"; then
6883 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6884 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6886 $as_echo_n "checking for $ac_word... " >&6; }
6887 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6888 $as_echo_n "(cached) " >&6
6889 else
6890 if test -n "$NMEDIT"; then
6891 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6892 else
6893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6894 for as_dir in $PATH
6896 IFS=$as_save_IFS
6897 test -z "$as_dir" && as_dir=.
6898 for ac_exec_ext in '' $ac_executable_extensions; do
6899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6900 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6902 break 2
6904 done
6905 done
6906 IFS=$as_save_IFS
6910 NMEDIT=$ac_cv_prog_NMEDIT
6911 if test -n "$NMEDIT"; then
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6913 $as_echo "$NMEDIT" >&6; }
6914 else
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6916 $as_echo "no" >&6; }
6921 if test -z "$ac_cv_prog_NMEDIT"; then
6922 ac_ct_NMEDIT=$NMEDIT
6923 # Extract the first word of "nmedit", so it can be a program name with args.
6924 set dummy nmedit; ac_word=$2
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6926 $as_echo_n "checking for $ac_word... " >&6; }
6927 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6928 $as_echo_n "(cached) " >&6
6929 else
6930 if test -n "$ac_ct_NMEDIT"; then
6931 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6932 else
6933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6934 for as_dir in $PATH
6936 IFS=$as_save_IFS
6937 test -z "$as_dir" && as_dir=.
6938 for ac_exec_ext in '' $ac_executable_extensions; do
6939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6940 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6942 break 2
6944 done
6945 done
6946 IFS=$as_save_IFS
6950 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6951 if test -n "$ac_ct_NMEDIT"; then
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6953 $as_echo "$ac_ct_NMEDIT" >&6; }
6954 else
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6956 $as_echo "no" >&6; }
6959 if test "x$ac_ct_NMEDIT" = x; then
6960 NMEDIT=":"
6961 else
6962 case $cross_compiling:$ac_tool_warned in
6963 yes:)
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6965 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6966 ac_tool_warned=yes ;;
6967 esac
6968 NMEDIT=$ac_ct_NMEDIT
6970 else
6971 NMEDIT="$ac_cv_prog_NMEDIT"
6974 if test -n "$ac_tool_prefix"; then
6975 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6976 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6978 $as_echo_n "checking for $ac_word... " >&6; }
6979 if test "${ac_cv_prog_LIPO+set}" = set; then :
6980 $as_echo_n "(cached) " >&6
6981 else
6982 if test -n "$LIPO"; then
6983 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6984 else
6985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6986 for as_dir in $PATH
6988 IFS=$as_save_IFS
6989 test -z "$as_dir" && as_dir=.
6990 for ac_exec_ext in '' $ac_executable_extensions; do
6991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6992 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6994 break 2
6996 done
6997 done
6998 IFS=$as_save_IFS
7002 LIPO=$ac_cv_prog_LIPO
7003 if test -n "$LIPO"; then
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7005 $as_echo "$LIPO" >&6; }
7006 else
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7008 $as_echo "no" >&6; }
7013 if test -z "$ac_cv_prog_LIPO"; then
7014 ac_ct_LIPO=$LIPO
7015 # Extract the first word of "lipo", so it can be a program name with args.
7016 set dummy lipo; ac_word=$2
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7018 $as_echo_n "checking for $ac_word... " >&6; }
7019 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7020 $as_echo_n "(cached) " >&6
7021 else
7022 if test -n "$ac_ct_LIPO"; then
7023 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7024 else
7025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7026 for as_dir in $PATH
7028 IFS=$as_save_IFS
7029 test -z "$as_dir" && as_dir=.
7030 for ac_exec_ext in '' $ac_executable_extensions; do
7031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7032 ac_cv_prog_ac_ct_LIPO="lipo"
7033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7034 break 2
7036 done
7037 done
7038 IFS=$as_save_IFS
7042 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7043 if test -n "$ac_ct_LIPO"; then
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7045 $as_echo "$ac_ct_LIPO" >&6; }
7046 else
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7048 $as_echo "no" >&6; }
7051 if test "x$ac_ct_LIPO" = x; then
7052 LIPO=":"
7053 else
7054 case $cross_compiling:$ac_tool_warned in
7055 yes:)
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7057 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7058 ac_tool_warned=yes ;;
7059 esac
7060 LIPO=$ac_ct_LIPO
7062 else
7063 LIPO="$ac_cv_prog_LIPO"
7066 if test -n "$ac_tool_prefix"; then
7067 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7068 set dummy ${ac_tool_prefix}otool; ac_word=$2
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7070 $as_echo_n "checking for $ac_word... " >&6; }
7071 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7072 $as_echo_n "(cached) " >&6
7073 else
7074 if test -n "$OTOOL"; then
7075 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7076 else
7077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7078 for as_dir in $PATH
7080 IFS=$as_save_IFS
7081 test -z "$as_dir" && as_dir=.
7082 for ac_exec_ext in '' $ac_executable_extensions; do
7083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7084 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7086 break 2
7088 done
7089 done
7090 IFS=$as_save_IFS
7094 OTOOL=$ac_cv_prog_OTOOL
7095 if test -n "$OTOOL"; then
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7097 $as_echo "$OTOOL" >&6; }
7098 else
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7100 $as_echo "no" >&6; }
7105 if test -z "$ac_cv_prog_OTOOL"; then
7106 ac_ct_OTOOL=$OTOOL
7107 # Extract the first word of "otool", so it can be a program name with args.
7108 set dummy otool; ac_word=$2
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7110 $as_echo_n "checking for $ac_word... " >&6; }
7111 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7112 $as_echo_n "(cached) " >&6
7113 else
7114 if test -n "$ac_ct_OTOOL"; then
7115 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7116 else
7117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7118 for as_dir in $PATH
7120 IFS=$as_save_IFS
7121 test -z "$as_dir" && as_dir=.
7122 for ac_exec_ext in '' $ac_executable_extensions; do
7123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7124 ac_cv_prog_ac_ct_OTOOL="otool"
7125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7126 break 2
7128 done
7129 done
7130 IFS=$as_save_IFS
7134 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7135 if test -n "$ac_ct_OTOOL"; then
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7137 $as_echo "$ac_ct_OTOOL" >&6; }
7138 else
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7140 $as_echo "no" >&6; }
7143 if test "x$ac_ct_OTOOL" = x; then
7144 OTOOL=":"
7145 else
7146 case $cross_compiling:$ac_tool_warned in
7147 yes:)
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7149 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7150 ac_tool_warned=yes ;;
7151 esac
7152 OTOOL=$ac_ct_OTOOL
7154 else
7155 OTOOL="$ac_cv_prog_OTOOL"
7158 if test -n "$ac_tool_prefix"; then
7159 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7160 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7162 $as_echo_n "checking for $ac_word... " >&6; }
7163 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7164 $as_echo_n "(cached) " >&6
7165 else
7166 if test -n "$OTOOL64"; then
7167 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7168 else
7169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7170 for as_dir in $PATH
7172 IFS=$as_save_IFS
7173 test -z "$as_dir" && as_dir=.
7174 for ac_exec_ext in '' $ac_executable_extensions; do
7175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7176 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7178 break 2
7180 done
7181 done
7182 IFS=$as_save_IFS
7186 OTOOL64=$ac_cv_prog_OTOOL64
7187 if test -n "$OTOOL64"; then
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7189 $as_echo "$OTOOL64" >&6; }
7190 else
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7192 $as_echo "no" >&6; }
7197 if test -z "$ac_cv_prog_OTOOL64"; then
7198 ac_ct_OTOOL64=$OTOOL64
7199 # Extract the first word of "otool64", so it can be a program name with args.
7200 set dummy otool64; ac_word=$2
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7202 $as_echo_n "checking for $ac_word... " >&6; }
7203 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7204 $as_echo_n "(cached) " >&6
7205 else
7206 if test -n "$ac_ct_OTOOL64"; then
7207 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7208 else
7209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7210 for as_dir in $PATH
7212 IFS=$as_save_IFS
7213 test -z "$as_dir" && as_dir=.
7214 for ac_exec_ext in '' $ac_executable_extensions; do
7215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7216 ac_cv_prog_ac_ct_OTOOL64="otool64"
7217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7218 break 2
7220 done
7221 done
7222 IFS=$as_save_IFS
7226 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7227 if test -n "$ac_ct_OTOOL64"; then
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7229 $as_echo "$ac_ct_OTOOL64" >&6; }
7230 else
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7232 $as_echo "no" >&6; }
7235 if test "x$ac_ct_OTOOL64" = x; then
7236 OTOOL64=":"
7237 else
7238 case $cross_compiling:$ac_tool_warned in
7239 yes:)
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7241 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7242 ac_tool_warned=yes ;;
7243 esac
7244 OTOOL64=$ac_ct_OTOOL64
7246 else
7247 OTOOL64="$ac_cv_prog_OTOOL64"
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7277 $as_echo_n "checking for -single_module linker flag... " >&6; }
7278 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7279 $as_echo_n "(cached) " >&6
7280 else
7281 lt_cv_apple_cc_single_mod=no
7282 if test -z "${LT_MULTI_MODULE}"; then
7283 # By default we will add the -single_module flag. You can override
7284 # by either setting the environment variable LT_MULTI_MODULE
7285 # non-empty at configure time, or by adding -multi_module to the
7286 # link flags.
7287 rm -rf libconftest.dylib*
7288 echo "int foo(void){return 1;}" > conftest.c
7289 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7290 -dynamiclib -Wl,-single_module conftest.c" >&5
7291 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7292 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7293 _lt_result=$?
7294 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7295 lt_cv_apple_cc_single_mod=yes
7296 else
7297 cat conftest.err >&5
7299 rm -rf libconftest.dylib*
7300 rm -f conftest.*
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7304 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7306 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7307 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7308 $as_echo_n "(cached) " >&6
7309 else
7310 lt_cv_ld_exported_symbols_list=no
7311 save_LDFLAGS=$LDFLAGS
7312 echo "_main" > conftest.sym
7313 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7315 /* end confdefs.h. */
7318 main ()
7322 return 0;
7324 _ACEOF
7325 if ac_fn_c_try_link "$LINENO"; then :
7326 lt_cv_ld_exported_symbols_list=yes
7327 else
7328 lt_cv_ld_exported_symbols_list=no
7330 rm -f core conftest.err conftest.$ac_objext \
7331 conftest$ac_exeext conftest.$ac_ext
7332 LDFLAGS="$save_LDFLAGS"
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7336 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7338 $as_echo_n "checking for -force_load linker flag... " >&6; }
7339 if test "${lt_cv_ld_force_load+set}" = set; then :
7340 $as_echo_n "(cached) " >&6
7341 else
7342 lt_cv_ld_force_load=no
7343 cat > conftest.c << _LT_EOF
7344 int forced_loaded() { return 2;}
7345 _LT_EOF
7346 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7347 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7348 echo "$AR cru libconftest.a conftest.o" >&5
7349 $AR cru libconftest.a conftest.o 2>&5
7350 cat > conftest.c << _LT_EOF
7351 int main() { return 0;}
7352 _LT_EOF
7353 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7354 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7355 _lt_result=$?
7356 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7357 lt_cv_ld_force_load=yes
7358 else
7359 cat conftest.err >&5
7361 rm -f conftest.err libconftest.a conftest conftest.c
7362 rm -rf conftest.dSYM
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7366 $as_echo "$lt_cv_ld_force_load" >&6; }
7367 case $host_os in
7368 rhapsody* | darwin1.[012])
7369 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7370 darwin1.*)
7371 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7372 darwin*) # darwin 5.x on
7373 # if running on 10.5 or later, the deployment target defaults
7374 # to the OS version, if on x86, and 10.4, the deployment
7375 # target defaults to 10.4. Don't you love it?
7376 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7377 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7378 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7379 10.[012][,.]*)
7380 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7381 10.*)
7382 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7383 esac
7385 esac
7386 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7387 _lt_dar_single_mod='$single_module'
7389 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7390 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7391 else
7392 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7394 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7395 _lt_dsymutil='~$DSYMUTIL $lib || :'
7396 else
7397 _lt_dsymutil=
7400 esac
7402 ac_ext=c
7403 ac_cpp='$CPP $CPPFLAGS'
7404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7408 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7409 # On Suns, sometimes $CPP names a directory.
7410 if test -n "$CPP" && test -d "$CPP"; then
7411 CPP=
7413 if test -z "$CPP"; then
7414 if test "${ac_cv_prog_CPP+set}" = set; then :
7415 $as_echo_n "(cached) " >&6
7416 else
7417 # Double quotes because CPP needs to be expanded
7418 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7420 ac_preproc_ok=false
7421 for ac_c_preproc_warn_flag in '' yes
7423 # Use a header file that comes with gcc, so configuring glibc
7424 # with a fresh cross-compiler works.
7425 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7426 # <limits.h> exists even on freestanding compilers.
7427 # On the NeXT, cc -E runs the code through the compiler's parser,
7428 # not just through cpp. "Syntax error" is here to catch this case.
7429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7430 /* end confdefs.h. */
7431 #ifdef __STDC__
7432 # include <limits.h>
7433 #else
7434 # include <assert.h>
7435 #endif
7436 Syntax error
7437 _ACEOF
7438 if ac_fn_c_try_cpp "$LINENO"; then :
7440 else
7441 # Broken: fails on valid input.
7442 continue
7444 rm -f conftest.err conftest.$ac_ext
7446 # OK, works on sane cases. Now check whether nonexistent headers
7447 # can be detected and how.
7448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7449 /* end confdefs.h. */
7450 #include <ac_nonexistent.h>
7451 _ACEOF
7452 if ac_fn_c_try_cpp "$LINENO"; then :
7453 # Broken: success on invalid input.
7454 continue
7455 else
7456 # Passes both tests.
7457 ac_preproc_ok=:
7458 break
7460 rm -f conftest.err conftest.$ac_ext
7462 done
7463 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7464 rm -f conftest.err conftest.$ac_ext
7465 if $ac_preproc_ok; then :
7466 break
7469 done
7470 ac_cv_prog_CPP=$CPP
7473 CPP=$ac_cv_prog_CPP
7474 else
7475 ac_cv_prog_CPP=$CPP
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7478 $as_echo "$CPP" >&6; }
7479 ac_preproc_ok=false
7480 for ac_c_preproc_warn_flag in '' yes
7482 # Use a header file that comes with gcc, so configuring glibc
7483 # with a fresh cross-compiler works.
7484 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7485 # <limits.h> exists even on freestanding compilers.
7486 # On the NeXT, cc -E runs the code through the compiler's parser,
7487 # not just through cpp. "Syntax error" is here to catch this case.
7488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7489 /* end confdefs.h. */
7490 #ifdef __STDC__
7491 # include <limits.h>
7492 #else
7493 # include <assert.h>
7494 #endif
7495 Syntax error
7496 _ACEOF
7497 if ac_fn_c_try_cpp "$LINENO"; then :
7499 else
7500 # Broken: fails on valid input.
7501 continue
7503 rm -f conftest.err conftest.$ac_ext
7505 # OK, works on sane cases. Now check whether nonexistent headers
7506 # can be detected and how.
7507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7508 /* end confdefs.h. */
7509 #include <ac_nonexistent.h>
7510 _ACEOF
7511 if ac_fn_c_try_cpp "$LINENO"; then :
7512 # Broken: success on invalid input.
7513 continue
7514 else
7515 # Passes both tests.
7516 ac_preproc_ok=:
7517 break
7519 rm -f conftest.err conftest.$ac_ext
7521 done
7522 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7523 rm -f conftest.err conftest.$ac_ext
7524 if $ac_preproc_ok; then :
7526 else
7527 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7528 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7529 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7530 See \`config.log' for more details." "$LINENO" 5; }
7533 ac_ext=c
7534 ac_cpp='$CPP $CPPFLAGS'
7535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7541 $as_echo_n "checking for ANSI C header files... " >&6; }
7542 if test "${ac_cv_header_stdc+set}" = set; then :
7543 $as_echo_n "(cached) " >&6
7544 else
7545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7546 /* end confdefs.h. */
7547 #include <stdlib.h>
7548 #include <stdarg.h>
7549 #include <string.h>
7550 #include <float.h>
7553 main ()
7557 return 0;
7559 _ACEOF
7560 if ac_fn_c_try_compile "$LINENO"; then :
7561 ac_cv_header_stdc=yes
7562 else
7563 ac_cv_header_stdc=no
7565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7567 if test $ac_cv_header_stdc = yes; then
7568 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7570 /* end confdefs.h. */
7571 #include <string.h>
7573 _ACEOF
7574 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7575 $EGREP "memchr" >/dev/null 2>&1; then :
7577 else
7578 ac_cv_header_stdc=no
7580 rm -f conftest*
7584 if test $ac_cv_header_stdc = yes; then
7585 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7587 /* end confdefs.h. */
7588 #include <stdlib.h>
7590 _ACEOF
7591 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7592 $EGREP "free" >/dev/null 2>&1; then :
7594 else
7595 ac_cv_header_stdc=no
7597 rm -f conftest*
7601 if test $ac_cv_header_stdc = yes; then
7602 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7603 if test "$cross_compiling" = yes; then :
7605 else
7606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7607 /* end confdefs.h. */
7608 #include <ctype.h>
7609 #include <stdlib.h>
7610 #if ((' ' & 0x0FF) == 0x020)
7611 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7612 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7613 #else
7614 # define ISLOWER(c) \
7615 (('a' <= (c) && (c) <= 'i') \
7616 || ('j' <= (c) && (c) <= 'r') \
7617 || ('s' <= (c) && (c) <= 'z'))
7618 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7619 #endif
7621 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7623 main ()
7625 int i;
7626 for (i = 0; i < 256; i++)
7627 if (XOR (islower (i), ISLOWER (i))
7628 || toupper (i) != TOUPPER (i))
7629 return 2;
7630 return 0;
7632 _ACEOF
7633 if ac_fn_c_try_run "$LINENO"; then :
7635 else
7636 ac_cv_header_stdc=no
7638 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7639 conftest.$ac_objext conftest.beam conftest.$ac_ext
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7645 $as_echo "$ac_cv_header_stdc" >&6; }
7646 if test $ac_cv_header_stdc = yes; then
7648 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7652 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7653 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7654 inttypes.h stdint.h unistd.h
7655 do :
7656 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7657 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7659 eval as_val=\$$as_ac_Header
7660 if test "x$as_val" = x""yes; then :
7661 cat >>confdefs.h <<_ACEOF
7662 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7663 _ACEOF
7667 done
7670 for ac_header in dlfcn.h
7671 do :
7672 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7674 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7675 cat >>confdefs.h <<_ACEOF
7676 #define HAVE_DLFCN_H 1
7677 _ACEOF
7681 done
7687 # Set options
7691 enable_dlopen=no
7694 enable_win32_dll=no
7697 # Check whether --enable-shared was given.
7698 if test "${enable_shared+set}" = set; then :
7699 enableval=$enable_shared; p=${PACKAGE-default}
7700 case $enableval in
7701 yes) enable_shared=yes ;;
7702 no) enable_shared=no ;;
7704 enable_shared=no
7705 # Look at the argument we got. We use all the common list separators.
7706 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7707 for pkg in $enableval; do
7708 IFS="$lt_save_ifs"
7709 if test "X$pkg" = "X$p"; then
7710 enable_shared=yes
7712 done
7713 IFS="$lt_save_ifs"
7715 esac
7716 else
7717 enable_shared=yes
7728 # Check whether --enable-static was given.
7729 if test "${enable_static+set}" = set; then :
7730 enableval=$enable_static; p=${PACKAGE-default}
7731 case $enableval in
7732 yes) enable_static=yes ;;
7733 no) enable_static=no ;;
7735 enable_static=no
7736 # Look at the argument we got. We use all the common list separators.
7737 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7738 for pkg in $enableval; do
7739 IFS="$lt_save_ifs"
7740 if test "X$pkg" = "X$p"; then
7741 enable_static=yes
7743 done
7744 IFS="$lt_save_ifs"
7746 esac
7747 else
7748 enable_static=yes
7760 # Check whether --with-pic was given.
7761 if test "${with_pic+set}" = set; then :
7762 withval=$with_pic; pic_mode="$withval"
7763 else
7764 pic_mode=default
7768 test -z "$pic_mode" && pic_mode=default
7776 # Check whether --enable-fast-install was given.
7777 if test "${enable_fast_install+set}" = set; then :
7778 enableval=$enable_fast_install; p=${PACKAGE-default}
7779 case $enableval in
7780 yes) enable_fast_install=yes ;;
7781 no) enable_fast_install=no ;;
7783 enable_fast_install=no
7784 # Look at the argument we got. We use all the common list separators.
7785 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7786 for pkg in $enableval; do
7787 IFS="$lt_save_ifs"
7788 if test "X$pkg" = "X$p"; then
7789 enable_fast_install=yes
7791 done
7792 IFS="$lt_save_ifs"
7794 esac
7795 else
7796 enable_fast_install=yes
7809 # This can be used to rebuild libtool when needed
7810 LIBTOOL_DEPS="$ltmain"
7812 # Always use our own libtool.
7813 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7840 test -z "$LN_S" && LN_S="ln -s"
7855 if test -n "${ZSH_VERSION+set}" ; then
7856 setopt NO_GLOB_SUBST
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7860 $as_echo_n "checking for objdir... " >&6; }
7861 if test "${lt_cv_objdir+set}" = set; then :
7862 $as_echo_n "(cached) " >&6
7863 else
7864 rm -f .libs 2>/dev/null
7865 mkdir .libs 2>/dev/null
7866 if test -d .libs; then
7867 lt_cv_objdir=.libs
7868 else
7869 # MS-DOS does not allow filenames that begin with a dot.
7870 lt_cv_objdir=_libs
7872 rmdir .libs 2>/dev/null
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7875 $as_echo "$lt_cv_objdir" >&6; }
7876 objdir=$lt_cv_objdir
7882 cat >>confdefs.h <<_ACEOF
7883 #define LT_OBJDIR "$lt_cv_objdir/"
7884 _ACEOF
7889 case $host_os in
7890 aix3*)
7891 # AIX sometimes has problems with the GCC collect2 program. For some
7892 # reason, if we set the COLLECT_NAMES environment variable, the problems
7893 # vanish in a puff of smoke.
7894 if test "X${COLLECT_NAMES+set}" != Xset; then
7895 COLLECT_NAMES=
7896 export COLLECT_NAMES
7899 esac
7901 # Global variables:
7902 ofile=libtool
7903 can_build_shared=yes
7905 # All known linkers require a `.a' archive for static linking (except MSVC,
7906 # which needs '.lib').
7907 libext=a
7909 with_gnu_ld="$lt_cv_prog_gnu_ld"
7911 old_CC="$CC"
7912 old_CFLAGS="$CFLAGS"
7914 # Set sane defaults for various variables
7915 test -z "$CC" && CC=cc
7916 test -z "$LTCC" && LTCC=$CC
7917 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7918 test -z "$LD" && LD=ld
7919 test -z "$ac_objext" && ac_objext=o
7921 for cc_temp in $compiler""; do
7922 case $cc_temp in
7923 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7924 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7925 \-*) ;;
7926 *) break;;
7927 esac
7928 done
7929 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7932 # Only perform the check for file, if the check method requires it
7933 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7934 case $deplibs_check_method in
7935 file_magic*)
7936 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7938 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7939 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7940 $as_echo_n "(cached) " >&6
7941 else
7942 case $MAGIC_CMD in
7943 [\\/*] | ?:[\\/]*)
7944 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7947 lt_save_MAGIC_CMD="$MAGIC_CMD"
7948 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7949 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7950 for ac_dir in $ac_dummy; do
7951 IFS="$lt_save_ifs"
7952 test -z "$ac_dir" && ac_dir=.
7953 if test -f $ac_dir/${ac_tool_prefix}file; then
7954 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7955 if test -n "$file_magic_test_file"; then
7956 case $deplibs_check_method in
7957 "file_magic "*)
7958 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7959 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7960 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7961 $EGREP "$file_magic_regex" > /dev/null; then
7963 else
7964 cat <<_LT_EOF 1>&2
7966 *** Warning: the command libtool uses to detect shared libraries,
7967 *** $file_magic_cmd, produces output that libtool cannot recognize.
7968 *** The result is that libtool may fail to recognize shared libraries
7969 *** as such. This will affect the creation of libtool libraries that
7970 *** depend on shared libraries, but programs linked with such libtool
7971 *** libraries will work regardless of this problem. Nevertheless, you
7972 *** may want to report the problem to your system manager and/or to
7973 *** bug-libtool@gnu.org
7975 _LT_EOF
7976 fi ;;
7977 esac
7979 break
7981 done
7982 IFS="$lt_save_ifs"
7983 MAGIC_CMD="$lt_save_MAGIC_CMD"
7985 esac
7988 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7989 if test -n "$MAGIC_CMD"; then
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7991 $as_echo "$MAGIC_CMD" >&6; }
7992 else
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7994 $as_echo "no" >&6; }
8001 if test -z "$lt_cv_path_MAGIC_CMD"; then
8002 if test -n "$ac_tool_prefix"; then
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8004 $as_echo_n "checking for file... " >&6; }
8005 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8006 $as_echo_n "(cached) " >&6
8007 else
8008 case $MAGIC_CMD in
8009 [\\/*] | ?:[\\/]*)
8010 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8013 lt_save_MAGIC_CMD="$MAGIC_CMD"
8014 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8015 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8016 for ac_dir in $ac_dummy; do
8017 IFS="$lt_save_ifs"
8018 test -z "$ac_dir" && ac_dir=.
8019 if test -f $ac_dir/file; then
8020 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8021 if test -n "$file_magic_test_file"; then
8022 case $deplibs_check_method in
8023 "file_magic "*)
8024 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8025 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8026 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8027 $EGREP "$file_magic_regex" > /dev/null; then
8029 else
8030 cat <<_LT_EOF 1>&2
8032 *** Warning: the command libtool uses to detect shared libraries,
8033 *** $file_magic_cmd, produces output that libtool cannot recognize.
8034 *** The result is that libtool may fail to recognize shared libraries
8035 *** as such. This will affect the creation of libtool libraries that
8036 *** depend on shared libraries, but programs linked with such libtool
8037 *** libraries will work regardless of this problem. Nevertheless, you
8038 *** may want to report the problem to your system manager and/or to
8039 *** bug-libtool@gnu.org
8041 _LT_EOF
8042 fi ;;
8043 esac
8045 break
8047 done
8048 IFS="$lt_save_ifs"
8049 MAGIC_CMD="$lt_save_MAGIC_CMD"
8051 esac
8054 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8055 if test -n "$MAGIC_CMD"; then
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8057 $as_echo "$MAGIC_CMD" >&6; }
8058 else
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8060 $as_echo "no" >&6; }
8064 else
8065 MAGIC_CMD=:
8071 esac
8073 # Use C for the default configuration in the libtool script
8075 lt_save_CC="$CC"
8076 ac_ext=c
8077 ac_cpp='$CPP $CPPFLAGS'
8078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8083 # Source file extension for C test sources.
8084 ac_ext=c
8086 # Object file extension for compiled C test sources.
8087 objext=o
8088 objext=$objext
8090 # Code to be used in simple compile tests
8091 lt_simple_compile_test_code="int some_variable = 0;"
8093 # Code to be used in simple link tests
8094 lt_simple_link_test_code='int main(){return(0);}'
8102 # If no C compiler was specified, use CC.
8103 LTCC=${LTCC-"$CC"}
8105 # If no C compiler flags were specified, use CFLAGS.
8106 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8108 # Allow CC to be a program name with arguments.
8109 compiler=$CC
8111 # Save the default compiler, since it gets overwritten when the other
8112 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8113 compiler_DEFAULT=$CC
8115 # save warnings/boilerplate of simple test code
8116 ac_outfile=conftest.$ac_objext
8117 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8118 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8119 _lt_compiler_boilerplate=`cat conftest.err`
8120 $RM conftest*
8122 ac_outfile=conftest.$ac_objext
8123 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8124 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8125 _lt_linker_boilerplate=`cat conftest.err`
8126 $RM -r conftest*
8129 ## CAVEAT EMPTOR:
8130 ## There is no encapsulation within the following macros, do not change
8131 ## the running order or otherwise move them around unless you know exactly
8132 ## what you are doing...
8133 if test -n "$compiler"; then
8135 lt_prog_compiler_no_builtin_flag=
8137 if test "$GCC" = yes; then
8138 case $cc_basename in
8139 nvcc*)
8140 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8142 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8143 esac
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8146 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8147 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8148 $as_echo_n "(cached) " >&6
8149 else
8150 lt_cv_prog_compiler_rtti_exceptions=no
8151 ac_outfile=conftest.$ac_objext
8152 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8153 lt_compiler_flag="-fno-rtti -fno-exceptions"
8154 # Insert the option either (1) after the last *FLAGS variable, or
8155 # (2) before a word containing "conftest.", or (3) at the end.
8156 # Note that $ac_compile itself does not contain backslashes and begins
8157 # with a dollar sign (not a hyphen), so the echo should work correctly.
8158 # The option is referenced via a variable to avoid confusing sed.
8159 lt_compile=`echo "$ac_compile" | $SED \
8160 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8161 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8162 -e 's:$: $lt_compiler_flag:'`
8163 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8164 (eval "$lt_compile" 2>conftest.err)
8165 ac_status=$?
8166 cat conftest.err >&5
8167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168 if (exit $ac_status) && test -s "$ac_outfile"; then
8169 # The compiler can only warn and ignore the option if not recognized
8170 # So say no if there are warnings other than the usual output.
8171 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8172 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8173 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8174 lt_cv_prog_compiler_rtti_exceptions=yes
8177 $RM conftest*
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8181 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8183 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8184 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8185 else
8196 lt_prog_compiler_wl=
8197 lt_prog_compiler_pic=
8198 lt_prog_compiler_static=
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8201 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8203 if test "$GCC" = yes; then
8204 lt_prog_compiler_wl='-Wl,'
8205 lt_prog_compiler_static='-static'
8207 case $host_os in
8208 aix*)
8209 # All AIX code is PIC.
8210 if test "$host_cpu" = ia64; then
8211 # AIX 5 now supports IA64 processor
8212 lt_prog_compiler_static='-Bstatic'
8214 lt_prog_compiler_pic='-fPIC'
8217 amigaos*)
8218 case $host_cpu in
8219 powerpc)
8220 # see comment about AmigaOS4 .so support
8221 lt_prog_compiler_pic='-fPIC'
8223 m68k)
8224 # FIXME: we need at least 68020 code to build shared libraries, but
8225 # adding the `-m68020' flag to GCC prevents building anything better,
8226 # like `-m68040'.
8227 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8229 esac
8232 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8233 # PIC is the default for these OSes.
8236 mingw* | cygwin* | pw32* | os2* | cegcc*)
8237 # This hack is so that the source file can tell whether it is being
8238 # built for inclusion in a dll (and should export symbols for example).
8239 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8240 # (--disable-auto-import) libraries
8241 lt_prog_compiler_pic='-DDLL_EXPORT'
8244 darwin* | rhapsody*)
8245 # PIC is the default on this platform
8246 # Common symbols not allowed in MH_DYLIB files
8247 lt_prog_compiler_pic='-fno-common'
8250 haiku*)
8251 # PIC is the default for Haiku.
8252 # The "-static" flag exists, but is broken.
8253 lt_prog_compiler_static=
8256 hpux*)
8257 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8258 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8259 # sets the default TLS model and affects inlining.
8260 case $host_cpu in
8261 hppa*64*)
8262 # +Z the default
8265 lt_prog_compiler_pic='-fPIC'
8267 esac
8270 interix[3-9]*)
8271 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8272 # Instead, we relocate shared libraries at runtime.
8275 msdosdjgpp*)
8276 # Just because we use GCC doesn't mean we suddenly get shared libraries
8277 # on systems that don't support them.
8278 lt_prog_compiler_can_build_shared=no
8279 enable_shared=no
8282 *nto* | *qnx*)
8283 # QNX uses GNU C++, but need to define -shared option too, otherwise
8284 # it will coredump.
8285 lt_prog_compiler_pic='-fPIC -shared'
8288 sysv4*MP*)
8289 if test -d /usr/nec; then
8290 lt_prog_compiler_pic=-Kconform_pic
8295 lt_prog_compiler_pic='-fPIC'
8297 esac
8299 case $cc_basename in
8300 nvcc*) # Cuda Compiler Driver 2.2
8301 lt_prog_compiler_wl='-Xlinker '
8302 lt_prog_compiler_pic='-Xcompiler -fPIC'
8304 esac
8305 else
8306 # PORTME Check for flag to pass linker flags through the system compiler.
8307 case $host_os in
8308 aix*)
8309 lt_prog_compiler_wl='-Wl,'
8310 if test "$host_cpu" = ia64; then
8311 # AIX 5 now supports IA64 processor
8312 lt_prog_compiler_static='-Bstatic'
8313 else
8314 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8318 mingw* | cygwin* | pw32* | os2* | cegcc*)
8319 # This hack is so that the source file can tell whether it is being
8320 # built for inclusion in a dll (and should export symbols for example).
8321 lt_prog_compiler_pic='-DDLL_EXPORT'
8324 hpux9* | hpux10* | hpux11*)
8325 lt_prog_compiler_wl='-Wl,'
8326 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8327 # not for PA HP-UX.
8328 case $host_cpu in
8329 hppa*64*|ia64*)
8330 # +Z the default
8333 lt_prog_compiler_pic='+Z'
8335 esac
8336 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8337 lt_prog_compiler_static='${wl}-a ${wl}archive'
8340 irix5* | irix6* | nonstopux*)
8341 lt_prog_compiler_wl='-Wl,'
8342 # PIC (with -KPIC) is the default.
8343 lt_prog_compiler_static='-non_shared'
8346 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8347 case $cc_basename in
8348 # old Intel for x86_64 which still supported -KPIC.
8349 ecc*)
8350 lt_prog_compiler_wl='-Wl,'
8351 lt_prog_compiler_pic='-KPIC'
8352 lt_prog_compiler_static='-static'
8354 # icc used to be incompatible with GCC.
8355 # ICC 10 doesn't accept -KPIC any more.
8356 icc* | ifort*)
8357 lt_prog_compiler_wl='-Wl,'
8358 lt_prog_compiler_pic='-fPIC'
8359 lt_prog_compiler_static='-static'
8361 # Lahey Fortran 8.1.
8362 lf95*)
8363 lt_prog_compiler_wl='-Wl,'
8364 lt_prog_compiler_pic='--shared'
8365 lt_prog_compiler_static='--static'
8367 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8368 # Portland Group compilers (*not* the Pentium gcc compiler,
8369 # which looks to be a dead project)
8370 lt_prog_compiler_wl='-Wl,'
8371 lt_prog_compiler_pic='-fpic'
8372 lt_prog_compiler_static='-Bstatic'
8374 ccc*)
8375 lt_prog_compiler_wl='-Wl,'
8376 # All Alpha code is PIC.
8377 lt_prog_compiler_static='-non_shared'
8379 xl* | bgxl* | bgf* | mpixl*)
8380 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8381 lt_prog_compiler_wl='-Wl,'
8382 lt_prog_compiler_pic='-qpic'
8383 lt_prog_compiler_static='-qstaticlink'
8386 case `$CC -V 2>&1 | sed 5q` in
8387 *Sun\ F* | *Sun*Fortran*)
8388 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8389 lt_prog_compiler_pic='-KPIC'
8390 lt_prog_compiler_static='-Bstatic'
8391 lt_prog_compiler_wl=''
8393 *Sun\ C*)
8394 # Sun C 5.9
8395 lt_prog_compiler_pic='-KPIC'
8396 lt_prog_compiler_static='-Bstatic'
8397 lt_prog_compiler_wl='-Wl,'
8399 esac
8401 esac
8404 newsos6)
8405 lt_prog_compiler_pic='-KPIC'
8406 lt_prog_compiler_static='-Bstatic'
8409 *nto* | *qnx*)
8410 # QNX uses GNU C++, but need to define -shared option too, otherwise
8411 # it will coredump.
8412 lt_prog_compiler_pic='-fPIC -shared'
8415 osf3* | osf4* | osf5*)
8416 lt_prog_compiler_wl='-Wl,'
8417 # All OSF/1 code is PIC.
8418 lt_prog_compiler_static='-non_shared'
8421 rdos*)
8422 lt_prog_compiler_static='-non_shared'
8425 solaris*)
8426 lt_prog_compiler_pic='-KPIC'
8427 lt_prog_compiler_static='-Bstatic'
8428 case $cc_basename in
8429 f77* | f90* | f95*)
8430 lt_prog_compiler_wl='-Qoption ld ';;
8432 lt_prog_compiler_wl='-Wl,';;
8433 esac
8436 sunos4*)
8437 lt_prog_compiler_wl='-Qoption ld '
8438 lt_prog_compiler_pic='-PIC'
8439 lt_prog_compiler_static='-Bstatic'
8442 sysv4 | sysv4.2uw2* | sysv4.3*)
8443 lt_prog_compiler_wl='-Wl,'
8444 lt_prog_compiler_pic='-KPIC'
8445 lt_prog_compiler_static='-Bstatic'
8448 sysv4*MP*)
8449 if test -d /usr/nec ;then
8450 lt_prog_compiler_pic='-Kconform_pic'
8451 lt_prog_compiler_static='-Bstatic'
8455 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8456 lt_prog_compiler_wl='-Wl,'
8457 lt_prog_compiler_pic='-KPIC'
8458 lt_prog_compiler_static='-Bstatic'
8461 unicos*)
8462 lt_prog_compiler_wl='-Wl,'
8463 lt_prog_compiler_can_build_shared=no
8466 uts4*)
8467 lt_prog_compiler_pic='-pic'
8468 lt_prog_compiler_static='-Bstatic'
8472 lt_prog_compiler_can_build_shared=no
8474 esac
8477 case $host_os in
8478 # For platforms which do not support PIC, -DPIC is meaningless:
8479 *djgpp*)
8480 lt_prog_compiler_pic=
8483 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8485 esac
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8487 $as_echo "$lt_prog_compiler_pic" >&6; }
8495 # Check to make sure the PIC flag actually works.
8497 if test -n "$lt_prog_compiler_pic"; then
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8499 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8500 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8501 $as_echo_n "(cached) " >&6
8502 else
8503 lt_cv_prog_compiler_pic_works=no
8504 ac_outfile=conftest.$ac_objext
8505 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8506 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8507 # Insert the option either (1) after the last *FLAGS variable, or
8508 # (2) before a word containing "conftest.", or (3) at the end.
8509 # Note that $ac_compile itself does not contain backslashes and begins
8510 # with a dollar sign (not a hyphen), so the echo should work correctly.
8511 # The option is referenced via a variable to avoid confusing sed.
8512 lt_compile=`echo "$ac_compile" | $SED \
8513 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8514 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8515 -e 's:$: $lt_compiler_flag:'`
8516 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8517 (eval "$lt_compile" 2>conftest.err)
8518 ac_status=$?
8519 cat conftest.err >&5
8520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521 if (exit $ac_status) && test -s "$ac_outfile"; then
8522 # The compiler can only warn and ignore the option if not recognized
8523 # So say no if there are warnings other than the usual output.
8524 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8525 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8526 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8527 lt_cv_prog_compiler_pic_works=yes
8530 $RM conftest*
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8534 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8536 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8537 case $lt_prog_compiler_pic in
8538 "" | " "*) ;;
8539 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8540 esac
8541 else
8542 lt_prog_compiler_pic=
8543 lt_prog_compiler_can_build_shared=no
8554 # Check to make sure the static flag actually works.
8556 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8558 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8559 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8560 $as_echo_n "(cached) " >&6
8561 else
8562 lt_cv_prog_compiler_static_works=no
8563 save_LDFLAGS="$LDFLAGS"
8564 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8565 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8566 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8567 # The linker can only warn and ignore the option if not recognized
8568 # So say no if there are warnings
8569 if test -s conftest.err; then
8570 # Append any errors to the config.log.
8571 cat conftest.err 1>&5
8572 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8573 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8574 if diff conftest.exp conftest.er2 >/dev/null; then
8575 lt_cv_prog_compiler_static_works=yes
8577 else
8578 lt_cv_prog_compiler_static_works=yes
8581 $RM -r conftest*
8582 LDFLAGS="$save_LDFLAGS"
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8586 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8588 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8590 else
8591 lt_prog_compiler_static=
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8601 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8602 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8603 $as_echo_n "(cached) " >&6
8604 else
8605 lt_cv_prog_compiler_c_o=no
8606 $RM -r conftest 2>/dev/null
8607 mkdir conftest
8608 cd conftest
8609 mkdir out
8610 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8612 lt_compiler_flag="-o out/conftest2.$ac_objext"
8613 # Insert the option either (1) after the last *FLAGS variable, or
8614 # (2) before a word containing "conftest.", or (3) at the end.
8615 # Note that $ac_compile itself does not contain backslashes and begins
8616 # with a dollar sign (not a hyphen), so the echo should work correctly.
8617 lt_compile=`echo "$ac_compile" | $SED \
8618 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8619 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8620 -e 's:$: $lt_compiler_flag:'`
8621 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8622 (eval "$lt_compile" 2>out/conftest.err)
8623 ac_status=$?
8624 cat out/conftest.err >&5
8625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8627 then
8628 # The compiler can only warn and ignore the option if not recognized
8629 # So say no if there are warnings
8630 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8631 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8632 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8633 lt_cv_prog_compiler_c_o=yes
8636 chmod u+w . 2>&5
8637 $RM conftest*
8638 # SGI C++ compiler will create directory out/ii_files/ for
8639 # template instantiation
8640 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8641 $RM out/* && rmdir out
8642 cd ..
8643 $RM -r conftest
8644 $RM conftest*
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8648 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8656 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8657 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8658 $as_echo_n "(cached) " >&6
8659 else
8660 lt_cv_prog_compiler_c_o=no
8661 $RM -r conftest 2>/dev/null
8662 mkdir conftest
8663 cd conftest
8664 mkdir out
8665 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8667 lt_compiler_flag="-o out/conftest2.$ac_objext"
8668 # Insert the option either (1) after the last *FLAGS variable, or
8669 # (2) before a word containing "conftest.", or (3) at the end.
8670 # Note that $ac_compile itself does not contain backslashes and begins
8671 # with a dollar sign (not a hyphen), so the echo should work correctly.
8672 lt_compile=`echo "$ac_compile" | $SED \
8673 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8674 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8675 -e 's:$: $lt_compiler_flag:'`
8676 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8677 (eval "$lt_compile" 2>out/conftest.err)
8678 ac_status=$?
8679 cat out/conftest.err >&5
8680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8682 then
8683 # The compiler can only warn and ignore the option if not recognized
8684 # So say no if there are warnings
8685 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8686 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8687 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8688 lt_cv_prog_compiler_c_o=yes
8691 chmod u+w . 2>&5
8692 $RM conftest*
8693 # SGI C++ compiler will create directory out/ii_files/ for
8694 # template instantiation
8695 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8696 $RM out/* && rmdir out
8697 cd ..
8698 $RM -r conftest
8699 $RM conftest*
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8703 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8708 hard_links="nottested"
8709 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8710 # do not overwrite the value of need_locks provided by the user
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8712 $as_echo_n "checking if we can lock with hard links... " >&6; }
8713 hard_links=yes
8714 $RM conftest*
8715 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8716 touch conftest.a
8717 ln conftest.a conftest.b 2>&5 || hard_links=no
8718 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8720 $as_echo "$hard_links" >&6; }
8721 if test "$hard_links" = no; then
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8723 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8724 need_locks=warn
8726 else
8727 need_locks=no
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8736 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8738 runpath_var=
8739 allow_undefined_flag=
8740 always_export_symbols=no
8741 archive_cmds=
8742 archive_expsym_cmds=
8743 compiler_needs_object=no
8744 enable_shared_with_static_runtimes=no
8745 export_dynamic_flag_spec=
8746 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8747 hardcode_automatic=no
8748 hardcode_direct=no
8749 hardcode_direct_absolute=no
8750 hardcode_libdir_flag_spec=
8751 hardcode_libdir_flag_spec_ld=
8752 hardcode_libdir_separator=
8753 hardcode_minus_L=no
8754 hardcode_shlibpath_var=unsupported
8755 inherit_rpath=no
8756 link_all_deplibs=unknown
8757 module_cmds=
8758 module_expsym_cmds=
8759 old_archive_from_new_cmds=
8760 old_archive_from_expsyms_cmds=
8761 thread_safe_flag_spec=
8762 whole_archive_flag_spec=
8763 # include_expsyms should be a list of space-separated symbols to be *always*
8764 # included in the symbol list
8765 include_expsyms=
8766 # exclude_expsyms can be an extended regexp of symbols to exclude
8767 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8768 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8769 # as well as any symbol that contains `d'.
8770 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8771 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8772 # platforms (ab)use it in PIC code, but their linkers get confused if
8773 # the symbol is explicitly referenced. Since portable code cannot
8774 # rely on this symbol name, it's probably fine to never include it in
8775 # preloaded symbol tables.
8776 # Exclude shared library initialization/finalization symbols.
8777 extract_expsyms_cmds=
8779 case $host_os in
8780 cygwin* | mingw* | pw32* | cegcc*)
8781 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8782 # When not using gcc, we currently assume that we are using
8783 # Microsoft Visual C++.
8784 if test "$GCC" != yes; then
8785 with_gnu_ld=no
8788 interix*)
8789 # we just hope/assume this is gcc and not c89 (= MSVC++)
8790 with_gnu_ld=yes
8792 openbsd*)
8793 with_gnu_ld=no
8795 esac
8797 ld_shlibs=yes
8799 # On some targets, GNU ld is compatible enough with the native linker
8800 # that we're better off using the native interface for both.
8801 lt_use_gnu_ld_interface=no
8802 if test "$with_gnu_ld" = yes; then
8803 case $host_os in
8804 aix*)
8805 # The AIX port of GNU ld has always aspired to compatibility
8806 # with the native linker. However, as the warning in the GNU ld
8807 # block says, versions before 2.19.5* couldn't really create working
8808 # shared libraries, regardless of the interface used.
8809 case `$LD -v 2>&1` in
8810 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8811 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8812 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8814 lt_use_gnu_ld_interface=yes
8816 esac
8819 lt_use_gnu_ld_interface=yes
8821 esac
8824 if test "$lt_use_gnu_ld_interface" = yes; then
8825 # If archive_cmds runs LD, not CC, wlarc should be empty
8826 wlarc='${wl}'
8828 # Set some defaults for GNU ld with shared library support. These
8829 # are reset later if shared libraries are not supported. Putting them
8830 # here allows them to be overridden if necessary.
8831 runpath_var=LD_RUN_PATH
8832 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8833 export_dynamic_flag_spec='${wl}--export-dynamic'
8834 # ancient GNU ld didn't support --whole-archive et. al.
8835 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8836 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8837 else
8838 whole_archive_flag_spec=
8840 supports_anon_versioning=no
8841 case `$LD -v 2>&1` in
8842 *GNU\ gold*) supports_anon_versioning=yes ;;
8843 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8844 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8845 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8846 *\ 2.11.*) ;; # other 2.11 versions
8847 *) supports_anon_versioning=yes ;;
8848 esac
8850 # See if GNU ld supports shared libraries.
8851 case $host_os in
8852 aix[3-9]*)
8853 # On AIX/PPC, the GNU linker is very broken
8854 if test "$host_cpu" != ia64; then
8855 ld_shlibs=no
8856 cat <<_LT_EOF 1>&2
8858 *** Warning: the GNU linker, at least up to release 2.19, is reported
8859 *** to be unable to reliably create shared libraries on AIX.
8860 *** Therefore, libtool is disabling shared libraries support. If you
8861 *** really care for shared libraries, you may want to install binutils
8862 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8863 *** You will then need to restart the configuration process.
8865 _LT_EOF
8869 amigaos*)
8870 case $host_cpu in
8871 powerpc)
8872 # see comment about AmigaOS4 .so support
8873 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8874 archive_expsym_cmds=''
8876 m68k)
8877 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)'
8878 hardcode_libdir_flag_spec='-L$libdir'
8879 hardcode_minus_L=yes
8881 esac
8884 beos*)
8885 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8886 allow_undefined_flag=unsupported
8887 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8888 # support --undefined. This deserves some investigation. FIXME
8889 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8890 else
8891 ld_shlibs=no
8895 cygwin* | mingw* | pw32* | cegcc*)
8896 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8897 # as there is no search path for DLLs.
8898 hardcode_libdir_flag_spec='-L$libdir'
8899 export_dynamic_flag_spec='${wl}--export-all-symbols'
8900 allow_undefined_flag=unsupported
8901 always_export_symbols=no
8902 enable_shared_with_static_runtimes=yes
8903 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8905 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8906 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8907 # If the export-symbols file already is a .def file (1st line
8908 # is EXPORTS), use it as is; otherwise, prepend...
8909 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8910 cp $export_symbols $output_objdir/$soname.def;
8911 else
8912 echo EXPORTS > $output_objdir/$soname.def;
8913 cat $export_symbols >> $output_objdir/$soname.def;
8915 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8916 else
8917 ld_shlibs=no
8921 haiku*)
8922 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8923 link_all_deplibs=yes
8926 interix[3-9]*)
8927 hardcode_direct=no
8928 hardcode_shlibpath_var=no
8929 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8930 export_dynamic_flag_spec='${wl}-E'
8931 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8932 # Instead, shared libraries are loaded at an image base (0x10000000 by
8933 # default) and relocated if they conflict, which is a slow very memory
8934 # consuming and fragmenting process. To avoid this, we pick a random,
8935 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8936 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8937 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8938 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'
8941 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8942 tmp_diet=no
8943 if test "$host_os" = linux-dietlibc; then
8944 case $cc_basename in
8945 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8946 esac
8948 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8949 && test "$tmp_diet" = no
8950 then
8951 tmp_addflag=' $pic_flag'
8952 tmp_sharedflag='-shared'
8953 case $cc_basename,$host_cpu in
8954 pgcc*) # Portland Group C compiler
8955 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'
8956 tmp_addflag=' $pic_flag'
8958 pgf77* | pgf90* | pgf95* | pgfortran*)
8959 # Portland Group f77 and f90 compilers
8960 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'
8961 tmp_addflag=' $pic_flag -Mnomain' ;;
8962 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8963 tmp_addflag=' -i_dynamic' ;;
8964 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8965 tmp_addflag=' -i_dynamic -nofor_main' ;;
8966 ifc* | ifort*) # Intel Fortran compiler
8967 tmp_addflag=' -nofor_main' ;;
8968 lf95*) # Lahey Fortran 8.1
8969 whole_archive_flag_spec=
8970 tmp_sharedflag='--shared' ;;
8971 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8972 tmp_sharedflag='-qmkshrobj'
8973 tmp_addflag= ;;
8974 nvcc*) # Cuda Compiler Driver 2.2
8975 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'
8976 compiler_needs_object=yes
8978 esac
8979 case `$CC -V 2>&1 | sed 5q` in
8980 *Sun\ C*) # Sun C 5.9
8981 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'
8982 compiler_needs_object=yes
8983 tmp_sharedflag='-G' ;;
8984 *Sun\ F*) # Sun Fortran 8.3
8985 tmp_sharedflag='-G' ;;
8986 esac
8987 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8989 if test "x$supports_anon_versioning" = xyes; then
8990 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8991 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8992 echo "local: *; };" >> $output_objdir/$libname.ver~
8993 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8996 case $cc_basename in
8997 xlf* | bgf* | bgxlf* | mpixlf*)
8998 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8999 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9000 hardcode_libdir_flag_spec=
9001 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9002 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9003 if test "x$supports_anon_versioning" = xyes; then
9004 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9005 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9006 echo "local: *; };" >> $output_objdir/$libname.ver~
9007 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9010 esac
9011 else
9012 ld_shlibs=no
9016 netbsd*)
9017 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9018 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9019 wlarc=
9020 else
9021 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9022 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9026 solaris*)
9027 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9028 ld_shlibs=no
9029 cat <<_LT_EOF 1>&2
9031 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9032 *** create shared libraries on Solaris systems. Therefore, libtool
9033 *** is disabling shared libraries support. We urge you to upgrade GNU
9034 *** binutils to release 2.9.1 or newer. Another option is to modify
9035 *** your PATH or compiler configuration so that the native linker is
9036 *** used, and then restart.
9038 _LT_EOF
9039 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9040 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9041 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9042 else
9043 ld_shlibs=no
9047 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9048 case `$LD -v 2>&1` in
9049 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9050 ld_shlibs=no
9051 cat <<_LT_EOF 1>&2
9053 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9054 *** reliably create shared libraries on SCO systems. Therefore, libtool
9055 *** is disabling shared libraries support. We urge you to upgrade GNU
9056 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9057 *** your PATH or compiler configuration so that the native linker is
9058 *** used, and then restart.
9060 _LT_EOF
9063 # For security reasons, it is highly recommended that you always
9064 # use absolute paths for naming shared libraries, and exclude the
9065 # DT_RUNPATH tag from executables and libraries. But doing so
9066 # requires that you compile everything twice, which is a pain.
9067 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9068 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9069 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9070 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9071 else
9072 ld_shlibs=no
9075 esac
9078 sunos4*)
9079 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9080 wlarc=
9081 hardcode_direct=yes
9082 hardcode_shlibpath_var=no
9086 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9087 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9088 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9089 else
9090 ld_shlibs=no
9093 esac
9095 if test "$ld_shlibs" = no; then
9096 runpath_var=
9097 hardcode_libdir_flag_spec=
9098 export_dynamic_flag_spec=
9099 whole_archive_flag_spec=
9101 else
9102 # PORTME fill in a description of your system's linker (not GNU ld)
9103 case $host_os in
9104 aix3*)
9105 allow_undefined_flag=unsupported
9106 always_export_symbols=yes
9107 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'
9108 # Note: this linker hardcodes the directories in LIBPATH if there
9109 # are no directories specified by -L.
9110 hardcode_minus_L=yes
9111 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9112 # Neither direct hardcoding nor static linking is supported with a
9113 # broken collect2.
9114 hardcode_direct=unsupported
9118 aix[4-9]*)
9119 if test "$host_cpu" = ia64; then
9120 # On IA64, the linker does run time linking by default, so we don't
9121 # have to do anything special.
9122 aix_use_runtimelinking=no
9123 exp_sym_flag='-Bexport'
9124 no_entry_flag=""
9125 else
9126 # If we're using GNU nm, then we don't want the "-C" option.
9127 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9128 # Also, AIX nm treats weak defined symbols like other global
9129 # defined symbols, whereas GNU nm marks them as "W".
9130 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9131 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'
9132 else
9133 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9135 aix_use_runtimelinking=no
9137 # Test if we are trying to use run time linking or normal
9138 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9139 # need to do runtime linking.
9140 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9141 for ld_flag in $LDFLAGS; do
9142 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9143 aix_use_runtimelinking=yes
9144 break
9146 done
9148 esac
9150 exp_sym_flag='-bexport'
9151 no_entry_flag='-bnoentry'
9154 # When large executables or shared objects are built, AIX ld can
9155 # have problems creating the table of contents. If linking a library
9156 # or program results in "error TOC overflow" add -mminimal-toc to
9157 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9158 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9160 archive_cmds=''
9161 hardcode_direct=yes
9162 hardcode_direct_absolute=yes
9163 hardcode_libdir_separator=':'
9164 link_all_deplibs=yes
9165 file_list_spec='${wl}-f,'
9167 if test "$GCC" = yes; then
9168 case $host_os in aix4.[012]|aix4.[012].*)
9169 # We only want to do this on AIX 4.2 and lower, the check
9170 # below for broken collect2 doesn't work under 4.3+
9171 collect2name=`${CC} -print-prog-name=collect2`
9172 if test -f "$collect2name" &&
9173 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9174 then
9175 # We have reworked collect2
9177 else
9178 # We have old collect2
9179 hardcode_direct=unsupported
9180 # It fails to find uninstalled libraries when the uninstalled
9181 # path is not listed in the libpath. Setting hardcode_minus_L
9182 # to unsupported forces relinking
9183 hardcode_minus_L=yes
9184 hardcode_libdir_flag_spec='-L$libdir'
9185 hardcode_libdir_separator=
9188 esac
9189 shared_flag='-shared'
9190 if test "$aix_use_runtimelinking" = yes; then
9191 shared_flag="$shared_flag "'${wl}-G'
9193 else
9194 # not using gcc
9195 if test "$host_cpu" = ia64; then
9196 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9197 # chokes on -Wl,-G. The following line is correct:
9198 shared_flag='-G'
9199 else
9200 if test "$aix_use_runtimelinking" = yes; then
9201 shared_flag='${wl}-G'
9202 else
9203 shared_flag='${wl}-bM:SRE'
9208 export_dynamic_flag_spec='${wl}-bexpall'
9209 # It seems that -bexpall does not export symbols beginning with
9210 # underscore (_), so it is better to generate a list of symbols to export.
9211 always_export_symbols=yes
9212 if test "$aix_use_runtimelinking" = yes; then
9213 # Warning - without using the other runtime loading flags (-brtl),
9214 # -berok will link without error, but may produce a broken library.
9215 allow_undefined_flag='-berok'
9216 # Determine the default libpath from the value encoded in an
9217 # empty executable.
9218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9219 /* end confdefs.h. */
9222 main ()
9226 return 0;
9228 _ACEOF
9229 if ac_fn_c_try_link "$LINENO"; then :
9231 lt_aix_libpath_sed='
9232 /Import File Strings/,/^$/ {
9233 /^0/ {
9234 s/^0 *\(.*\)$/\1/
9238 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9239 # Check for a 64-bit object if we didn't find anything.
9240 if test -z "$aix_libpath"; then
9241 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9244 rm -f core conftest.err conftest.$ac_objext \
9245 conftest$ac_exeext conftest.$ac_ext
9246 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9248 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9249 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"
9250 else
9251 if test "$host_cpu" = ia64; then
9252 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9253 allow_undefined_flag="-z nodefs"
9254 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"
9255 else
9256 # Determine the default libpath from the value encoded in an
9257 # empty executable.
9258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9259 /* end confdefs.h. */
9262 main ()
9266 return 0;
9268 _ACEOF
9269 if ac_fn_c_try_link "$LINENO"; then :
9271 lt_aix_libpath_sed='
9272 /Import File Strings/,/^$/ {
9273 /^0/ {
9274 s/^0 *\(.*\)$/\1/
9278 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9279 # Check for a 64-bit object if we didn't find anything.
9280 if test -z "$aix_libpath"; then
9281 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9284 rm -f core conftest.err conftest.$ac_objext \
9285 conftest$ac_exeext conftest.$ac_ext
9286 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9288 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9289 # Warning - without using the other run time loading flags,
9290 # -berok will link without error, but may produce a broken library.
9291 no_undefined_flag=' ${wl}-bernotok'
9292 allow_undefined_flag=' ${wl}-berok'
9293 if test "$with_gnu_ld" = yes; then
9294 # We only use this code for GNU lds that support --whole-archive.
9295 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9296 else
9297 # Exported symbols can be pulled into shared objects from archives
9298 whole_archive_flag_spec='$convenience'
9300 archive_cmds_need_lc=yes
9301 # This is similar to how AIX traditionally builds its shared libraries.
9302 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'
9307 amigaos*)
9308 case $host_cpu in
9309 powerpc)
9310 # see comment about AmigaOS4 .so support
9311 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9312 archive_expsym_cmds=''
9314 m68k)
9315 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)'
9316 hardcode_libdir_flag_spec='-L$libdir'
9317 hardcode_minus_L=yes
9319 esac
9322 bsdi[45]*)
9323 export_dynamic_flag_spec=-rdynamic
9326 cygwin* | mingw* | pw32* | cegcc*)
9327 # When not using gcc, we currently assume that we are using
9328 # Microsoft Visual C++.
9329 # hardcode_libdir_flag_spec is actually meaningless, as there is
9330 # no search path for DLLs.
9331 hardcode_libdir_flag_spec=' '
9332 allow_undefined_flag=unsupported
9333 # Tell ltmain to make .lib files, not .a files.
9334 libext=lib
9335 # Tell ltmain to make .dll files, not .so files.
9336 shrext_cmds=".dll"
9337 # FIXME: Setting linknames here is a bad hack.
9338 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9339 # The linker will automatically build a .lib file if we build a DLL.
9340 old_archive_from_new_cmds='true'
9341 # FIXME: Should let the user specify the lib program.
9342 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9343 fix_srcfile_path='`cygpath -w "$srcfile"`'
9344 enable_shared_with_static_runtimes=yes
9347 darwin* | rhapsody*)
9350 archive_cmds_need_lc=no
9351 hardcode_direct=no
9352 hardcode_automatic=yes
9353 hardcode_shlibpath_var=unsupported
9354 if test "$lt_cv_ld_force_load" = "yes"; then
9355 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\"`'
9356 else
9357 whole_archive_flag_spec=''
9359 link_all_deplibs=yes
9360 allow_undefined_flag="$_lt_dar_allow_undefined"
9361 case $cc_basename in
9362 ifort*) _lt_dar_can_shared=yes ;;
9363 *) _lt_dar_can_shared=$GCC ;;
9364 esac
9365 if test "$_lt_dar_can_shared" = "yes"; then
9366 output_verbose_link_cmd=func_echo_all
9367 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9368 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9369 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}"
9370 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}"
9372 else
9373 ld_shlibs=no
9378 dgux*)
9379 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9380 hardcode_libdir_flag_spec='-L$libdir'
9381 hardcode_shlibpath_var=no
9384 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9385 # support. Future versions do this automatically, but an explicit c++rt0.o
9386 # does not break anything, and helps significantly (at the cost of a little
9387 # extra space).
9388 freebsd2.2*)
9389 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9390 hardcode_libdir_flag_spec='-R$libdir'
9391 hardcode_direct=yes
9392 hardcode_shlibpath_var=no
9395 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9396 freebsd2.*)
9397 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9398 hardcode_direct=yes
9399 hardcode_minus_L=yes
9400 hardcode_shlibpath_var=no
9403 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9404 freebsd* | dragonfly*)
9405 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9406 hardcode_libdir_flag_spec='-R$libdir'
9407 hardcode_direct=yes
9408 hardcode_shlibpath_var=no
9411 hpux9*)
9412 if test "$GCC" = yes; then
9413 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'
9414 else
9415 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'
9417 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9418 hardcode_libdir_separator=:
9419 hardcode_direct=yes
9421 # hardcode_minus_L: Not really in the search PATH,
9422 # but as the default location of the library.
9423 hardcode_minus_L=yes
9424 export_dynamic_flag_spec='${wl}-E'
9427 hpux10*)
9428 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9429 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9430 else
9431 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9433 if test "$with_gnu_ld" = no; then
9434 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9435 hardcode_libdir_flag_spec_ld='+b $libdir'
9436 hardcode_libdir_separator=:
9437 hardcode_direct=yes
9438 hardcode_direct_absolute=yes
9439 export_dynamic_flag_spec='${wl}-E'
9440 # hardcode_minus_L: Not really in the search PATH,
9441 # but as the default location of the library.
9442 hardcode_minus_L=yes
9446 hpux11*)
9447 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9448 case $host_cpu in
9449 hppa*64*)
9450 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9452 ia64*)
9453 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9456 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9458 esac
9459 else
9460 case $host_cpu in
9461 hppa*64*)
9462 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9464 ia64*)
9465 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9469 # Older versions of the 11.00 compiler do not understand -b yet
9470 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9472 $as_echo_n "checking if $CC understands -b... " >&6; }
9473 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9474 $as_echo_n "(cached) " >&6
9475 else
9476 lt_cv_prog_compiler__b=no
9477 save_LDFLAGS="$LDFLAGS"
9478 LDFLAGS="$LDFLAGS -b"
9479 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9480 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9481 # The linker can only warn and ignore the option if not recognized
9482 # So say no if there are warnings
9483 if test -s conftest.err; then
9484 # Append any errors to the config.log.
9485 cat conftest.err 1>&5
9486 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9487 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9488 if diff conftest.exp conftest.er2 >/dev/null; then
9489 lt_cv_prog_compiler__b=yes
9491 else
9492 lt_cv_prog_compiler__b=yes
9495 $RM -r conftest*
9496 LDFLAGS="$save_LDFLAGS"
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9500 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9502 if test x"$lt_cv_prog_compiler__b" = xyes; then
9503 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9504 else
9505 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9509 esac
9511 if test "$with_gnu_ld" = no; then
9512 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9513 hardcode_libdir_separator=:
9515 case $host_cpu in
9516 hppa*64*|ia64*)
9517 hardcode_direct=no
9518 hardcode_shlibpath_var=no
9521 hardcode_direct=yes
9522 hardcode_direct_absolute=yes
9523 export_dynamic_flag_spec='${wl}-E'
9525 # hardcode_minus_L: Not really in the search PATH,
9526 # but as the default location of the library.
9527 hardcode_minus_L=yes
9529 esac
9533 irix5* | irix6* | nonstopux*)
9534 if test "$GCC" = yes; then
9535 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'
9536 # Try to use the -exported_symbol ld option, if it does not
9537 # work, assume that -exports_file does not work either and
9538 # implicitly export all symbols.
9539 save_LDFLAGS="$LDFLAGS"
9540 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9542 /* end confdefs.h. */
9543 int foo(void) {}
9544 _ACEOF
9545 if ac_fn_c_try_link "$LINENO"; then :
9546 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'
9549 rm -f core conftest.err conftest.$ac_objext \
9550 conftest$ac_exeext conftest.$ac_ext
9551 LDFLAGS="$save_LDFLAGS"
9552 else
9553 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'
9554 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'
9556 archive_cmds_need_lc='no'
9557 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9558 hardcode_libdir_separator=:
9559 inherit_rpath=yes
9560 link_all_deplibs=yes
9563 netbsd*)
9564 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9565 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9566 else
9567 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9569 hardcode_libdir_flag_spec='-R$libdir'
9570 hardcode_direct=yes
9571 hardcode_shlibpath_var=no
9574 newsos6)
9575 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9576 hardcode_direct=yes
9577 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9578 hardcode_libdir_separator=:
9579 hardcode_shlibpath_var=no
9582 *nto* | *qnx*)
9585 openbsd*)
9586 if test -f /usr/libexec/ld.so; then
9587 hardcode_direct=yes
9588 hardcode_shlibpath_var=no
9589 hardcode_direct_absolute=yes
9590 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9591 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9592 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9593 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9594 export_dynamic_flag_spec='${wl}-E'
9595 else
9596 case $host_os in
9597 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9598 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9599 hardcode_libdir_flag_spec='-R$libdir'
9602 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9603 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9605 esac
9607 else
9608 ld_shlibs=no
9612 os2*)
9613 hardcode_libdir_flag_spec='-L$libdir'
9614 hardcode_minus_L=yes
9615 allow_undefined_flag=unsupported
9616 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'
9617 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9620 osf3*)
9621 if test "$GCC" = yes; then
9622 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9623 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'
9624 else
9625 allow_undefined_flag=' -expect_unresolved \*'
9626 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'
9628 archive_cmds_need_lc='no'
9629 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9630 hardcode_libdir_separator=:
9633 osf4* | osf5*) # as osf3* with the addition of -msym flag
9634 if test "$GCC" = yes; then
9635 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9636 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'
9637 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9638 else
9639 allow_undefined_flag=' -expect_unresolved \*'
9640 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'
9641 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~
9642 $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'
9644 # Both c and cxx compiler support -rpath directly
9645 hardcode_libdir_flag_spec='-rpath $libdir'
9647 archive_cmds_need_lc='no'
9648 hardcode_libdir_separator=:
9651 solaris*)
9652 no_undefined_flag=' -z defs'
9653 if test "$GCC" = yes; then
9654 wlarc='${wl}'
9655 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9656 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9657 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9658 else
9659 case `$CC -V 2>&1` in
9660 *"Compilers 5.0"*)
9661 wlarc=''
9662 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9663 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9664 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9667 wlarc='${wl}'
9668 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9669 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9670 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9672 esac
9674 hardcode_libdir_flag_spec='-R$libdir'
9675 hardcode_shlibpath_var=no
9676 case $host_os in
9677 solaris2.[0-5] | solaris2.[0-5].*) ;;
9679 # The compiler driver will combine and reorder linker options,
9680 # but understands `-z linker_flag'. GCC discards it without `$wl',
9681 # but is careful enough not to reorder.
9682 # Supported since Solaris 2.6 (maybe 2.5.1?)
9683 if test "$GCC" = yes; then
9684 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9685 else
9686 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9689 esac
9690 link_all_deplibs=yes
9693 sunos4*)
9694 if test "x$host_vendor" = xsequent; then
9695 # Use $CC to link under sequent, because it throws in some extra .o
9696 # files that make .init and .fini sections work.
9697 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9698 else
9699 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9701 hardcode_libdir_flag_spec='-L$libdir'
9702 hardcode_direct=yes
9703 hardcode_minus_L=yes
9704 hardcode_shlibpath_var=no
9707 sysv4)
9708 case $host_vendor in
9709 sni)
9710 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9711 hardcode_direct=yes # is this really true???
9713 siemens)
9714 ## LD is ld it makes a PLAMLIB
9715 ## CC just makes a GrossModule.
9716 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9717 reload_cmds='$CC -r -o $output$reload_objs'
9718 hardcode_direct=no
9720 motorola)
9721 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9722 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9724 esac
9725 runpath_var='LD_RUN_PATH'
9726 hardcode_shlibpath_var=no
9729 sysv4.3*)
9730 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9731 hardcode_shlibpath_var=no
9732 export_dynamic_flag_spec='-Bexport'
9735 sysv4*MP*)
9736 if test -d /usr/nec; then
9737 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9738 hardcode_shlibpath_var=no
9739 runpath_var=LD_RUN_PATH
9740 hardcode_runpath_var=yes
9741 ld_shlibs=yes
9745 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9746 no_undefined_flag='${wl}-z,text'
9747 archive_cmds_need_lc=no
9748 hardcode_shlibpath_var=no
9749 runpath_var='LD_RUN_PATH'
9751 if test "$GCC" = yes; then
9752 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9753 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9754 else
9755 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9756 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9760 sysv5* | sco3.2v5* | sco5v6*)
9761 # Note: We can NOT use -z defs as we might desire, because we do not
9762 # link with -lc, and that would cause any symbols used from libc to
9763 # always be unresolved, which means just about no library would
9764 # ever link correctly. If we're not using GNU ld we use -z text
9765 # though, which does catch some bad symbols but isn't as heavy-handed
9766 # as -z defs.
9767 no_undefined_flag='${wl}-z,text'
9768 allow_undefined_flag='${wl}-z,nodefs'
9769 archive_cmds_need_lc=no
9770 hardcode_shlibpath_var=no
9771 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9772 hardcode_libdir_separator=':'
9773 link_all_deplibs=yes
9774 export_dynamic_flag_spec='${wl}-Bexport'
9775 runpath_var='LD_RUN_PATH'
9777 if test "$GCC" = yes; then
9778 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9779 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9780 else
9781 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9782 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9786 uts4*)
9787 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9788 hardcode_libdir_flag_spec='-L$libdir'
9789 hardcode_shlibpath_var=no
9793 ld_shlibs=no
9795 esac
9797 if test x$host_vendor = xsni; then
9798 case $host in
9799 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9800 export_dynamic_flag_spec='${wl}-Blargedynsym'
9802 esac
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9807 $as_echo "$ld_shlibs" >&6; }
9808 test "$ld_shlibs" = no && can_build_shared=no
9810 with_gnu_ld=$with_gnu_ld
9827 # Do we need to explicitly link libc?
9829 case "x$archive_cmds_need_lc" in
9830 x|xyes)
9831 # Assume -lc should be added
9832 archive_cmds_need_lc=yes
9834 if test "$enable_shared" = yes && test "$GCC" = yes; then
9835 case $archive_cmds in
9836 *'~'*)
9837 # FIXME: we may have to deal with multi-command sequences.
9839 '$CC '*)
9840 # Test whether the compiler implicitly links with -lc since on some
9841 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9842 # to ld, don't add -lc before -lgcc.
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9844 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9845 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9846 $as_echo_n "(cached) " >&6
9847 else
9848 $RM conftest*
9849 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9851 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9852 (eval $ac_compile) 2>&5
9853 ac_status=$?
9854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9855 test $ac_status = 0; } 2>conftest.err; then
9856 soname=conftest
9857 lib=conftest
9858 libobjs=conftest.$ac_objext
9859 deplibs=
9860 wl=$lt_prog_compiler_wl
9861 pic_flag=$lt_prog_compiler_pic
9862 compiler_flags=-v
9863 linker_flags=-v
9864 verstring=
9865 output_objdir=.
9866 libname=conftest
9867 lt_save_allow_undefined_flag=$allow_undefined_flag
9868 allow_undefined_flag=
9869 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9870 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9871 ac_status=$?
9872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9873 test $ac_status = 0; }
9874 then
9875 lt_cv_archive_cmds_need_lc=no
9876 else
9877 lt_cv_archive_cmds_need_lc=yes
9879 allow_undefined_flag=$lt_save_allow_undefined_flag
9880 else
9881 cat conftest.err 1>&5
9883 $RM conftest*
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9887 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9888 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9890 esac
9893 esac
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10052 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10054 if test "$GCC" = yes; then
10055 case $host_os in
10056 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10057 *) lt_awk_arg="/^libraries:/" ;;
10058 esac
10059 case $host_os in
10060 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10061 *) lt_sed_strip_eq="s,=/,/,g" ;;
10062 esac
10063 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10064 case $lt_search_path_spec in
10065 *\;*)
10066 # if the path contains ";" then we assume it to be the separator
10067 # otherwise default to the standard path separator (i.e. ":") - it is
10068 # assumed that no part of a normal pathname contains ";" but that should
10069 # okay in the real world where ";" in dirpaths is itself problematic.
10070 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10073 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10075 esac
10076 # Ok, now we have the path, separated by spaces, we can step through it
10077 # and add multilib dir if necessary.
10078 lt_tmp_lt_search_path_spec=
10079 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10080 for lt_sys_path in $lt_search_path_spec; do
10081 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10082 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10083 else
10084 test -d "$lt_sys_path" && \
10085 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10087 done
10088 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10089 BEGIN {RS=" "; FS="/|\n";} {
10090 lt_foo="";
10091 lt_count=0;
10092 for (lt_i = NF; lt_i > 0; lt_i--) {
10093 if ($lt_i != "" && $lt_i != ".") {
10094 if ($lt_i == "..") {
10095 lt_count++;
10096 } else {
10097 if (lt_count == 0) {
10098 lt_foo="/" $lt_i lt_foo;
10099 } else {
10100 lt_count--;
10105 if (lt_foo != "") { lt_freq[lt_foo]++; }
10106 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10108 # AWK program above erroneously prepends '/' to C:/dos/paths
10109 # for these hosts.
10110 case $host_os in
10111 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10112 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10113 esac
10114 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10115 else
10116 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10118 library_names_spec=
10119 libname_spec='lib$name'
10120 soname_spec=
10121 shrext_cmds=".so"
10122 postinstall_cmds=
10123 postuninstall_cmds=
10124 finish_cmds=
10125 finish_eval=
10126 shlibpath_var=
10127 shlibpath_overrides_runpath=unknown
10128 version_type=none
10129 dynamic_linker="$host_os ld.so"
10130 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10131 need_lib_prefix=unknown
10132 hardcode_into_libs=no
10134 # when you set need_version to no, make sure it does not cause -set_version
10135 # flags to be left without arguments
10136 need_version=unknown
10138 case $host_os in
10139 aix3*)
10140 version_type=linux
10141 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10142 shlibpath_var=LIBPATH
10144 # AIX 3 has no versioning support, so we append a major version to the name.
10145 soname_spec='${libname}${release}${shared_ext}$major'
10148 aix[4-9]*)
10149 version_type=linux
10150 need_lib_prefix=no
10151 need_version=no
10152 hardcode_into_libs=yes
10153 if test "$host_cpu" = ia64; then
10154 # AIX 5 supports IA64
10155 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10156 shlibpath_var=LD_LIBRARY_PATH
10157 else
10158 # With GCC up to 2.95.x, collect2 would create an import file
10159 # for dependence libraries. The import file would start with
10160 # the line `#! .'. This would cause the generated library to
10161 # depend on `.', always an invalid library. This was fixed in
10162 # development snapshots of GCC prior to 3.0.
10163 case $host_os in
10164 aix4 | aix4.[01] | aix4.[01].*)
10165 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10166 echo ' yes '
10167 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10169 else
10170 can_build_shared=no
10173 esac
10174 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10175 # soname into executable. Probably we can add versioning support to
10176 # collect2, so additional links can be useful in future.
10177 if test "$aix_use_runtimelinking" = yes; then
10178 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10179 # instead of lib<name>.a to let people know that these are not
10180 # typical AIX shared libraries.
10181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10182 else
10183 # We preserve .a as extension for shared libraries through AIX4.2
10184 # and later when we are not doing run time linking.
10185 library_names_spec='${libname}${release}.a $libname.a'
10186 soname_spec='${libname}${release}${shared_ext}$major'
10188 shlibpath_var=LIBPATH
10192 amigaos*)
10193 case $host_cpu in
10194 powerpc)
10195 # Since July 2007 AmigaOS4 officially supports .so libraries.
10196 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10199 m68k)
10200 library_names_spec='$libname.ixlibrary $libname.a'
10201 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10202 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'
10204 esac
10207 beos*)
10208 library_names_spec='${libname}${shared_ext}'
10209 dynamic_linker="$host_os ld.so"
10210 shlibpath_var=LIBRARY_PATH
10213 bsdi[45]*)
10214 version_type=linux
10215 need_version=no
10216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10217 soname_spec='${libname}${release}${shared_ext}$major'
10218 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10219 shlibpath_var=LD_LIBRARY_PATH
10220 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10221 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10222 # the default ld.so.conf also contains /usr/contrib/lib and
10223 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10224 # libtool to hard-code these into programs
10227 cygwin* | mingw* | pw32* | cegcc*)
10228 version_type=windows
10229 shrext_cmds=".dll"
10230 need_version=no
10231 need_lib_prefix=no
10233 case $GCC,$host_os in
10234 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10235 library_names_spec='$libname.dll.a'
10236 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10237 postinstall_cmds='base_file=`basename \${file}`~
10238 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10239 dldir=$destdir/`dirname \$dlpath`~
10240 test -d \$dldir || mkdir -p \$dldir~
10241 $install_prog $dir/$dlname \$dldir/$dlname~
10242 chmod a+x \$dldir/$dlname~
10243 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10244 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10246 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10247 dlpath=$dir/\$dldll~
10248 $RM \$dlpath'
10249 shlibpath_overrides_runpath=yes
10251 case $host_os in
10252 cygwin*)
10253 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10254 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10256 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10258 mingw* | cegcc*)
10259 # MinGW DLLs use traditional 'lib' prefix
10260 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10262 pw32*)
10263 # pw32 DLLs use 'pw' prefix rather than 'lib'
10264 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10266 esac
10270 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10272 esac
10273 dynamic_linker='Win32 ld.exe'
10274 # FIXME: first we should search . and the directory the executable is in
10275 shlibpath_var=PATH
10278 darwin* | rhapsody*)
10279 dynamic_linker="$host_os dyld"
10280 version_type=darwin
10281 need_lib_prefix=no
10282 need_version=no
10283 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10284 soname_spec='${libname}${release}${major}$shared_ext'
10285 shlibpath_overrides_runpath=yes
10286 shlibpath_var=DYLD_LIBRARY_PATH
10287 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10289 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10290 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10293 dgux*)
10294 version_type=linux
10295 need_lib_prefix=no
10296 need_version=no
10297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10298 soname_spec='${libname}${release}${shared_ext}$major'
10299 shlibpath_var=LD_LIBRARY_PATH
10302 freebsd* | dragonfly*)
10303 # DragonFly does not have aout. When/if they implement a new
10304 # versioning mechanism, adjust this.
10305 if test -x /usr/bin/objformat; then
10306 objformat=`/usr/bin/objformat`
10307 else
10308 case $host_os in
10309 freebsd[23].*) objformat=aout ;;
10310 *) objformat=elf ;;
10311 esac
10313 version_type=freebsd-$objformat
10314 case $version_type in
10315 freebsd-elf*)
10316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10317 need_version=no
10318 need_lib_prefix=no
10320 freebsd-*)
10321 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10322 need_version=yes
10324 esac
10325 shlibpath_var=LD_LIBRARY_PATH
10326 case $host_os in
10327 freebsd2.*)
10328 shlibpath_overrides_runpath=yes
10330 freebsd3.[01]* | freebsdelf3.[01]*)
10331 shlibpath_overrides_runpath=yes
10332 hardcode_into_libs=yes
10334 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10335 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10336 shlibpath_overrides_runpath=no
10337 hardcode_into_libs=yes
10339 *) # from 4.6 on, and DragonFly
10340 shlibpath_overrides_runpath=yes
10341 hardcode_into_libs=yes
10343 esac
10346 gnu*)
10347 version_type=linux
10348 need_lib_prefix=no
10349 need_version=no
10350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10351 soname_spec='${libname}${release}${shared_ext}$major'
10352 shlibpath_var=LD_LIBRARY_PATH
10353 hardcode_into_libs=yes
10356 haiku*)
10357 version_type=linux
10358 need_lib_prefix=no
10359 need_version=no
10360 dynamic_linker="$host_os runtime_loader"
10361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10362 soname_spec='${libname}${release}${shared_ext}$major'
10363 shlibpath_var=LIBRARY_PATH
10364 shlibpath_overrides_runpath=yes
10365 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10366 hardcode_into_libs=yes
10369 hpux9* | hpux10* | hpux11*)
10370 # Give a soname corresponding to the major version so that dld.sl refuses to
10371 # link against other versions.
10372 version_type=sunos
10373 need_lib_prefix=no
10374 need_version=no
10375 case $host_cpu in
10376 ia64*)
10377 shrext_cmds='.so'
10378 hardcode_into_libs=yes
10379 dynamic_linker="$host_os dld.so"
10380 shlibpath_var=LD_LIBRARY_PATH
10381 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10383 soname_spec='${libname}${release}${shared_ext}$major'
10384 if test "X$HPUX_IA64_MODE" = X32; then
10385 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10386 else
10387 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10389 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10391 hppa*64*)
10392 shrext_cmds='.sl'
10393 hardcode_into_libs=yes
10394 dynamic_linker="$host_os dld.sl"
10395 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10396 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10398 soname_spec='${libname}${release}${shared_ext}$major'
10399 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10400 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10403 shrext_cmds='.sl'
10404 dynamic_linker="$host_os dld.sl"
10405 shlibpath_var=SHLIB_PATH
10406 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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'
10410 esac
10411 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10412 postinstall_cmds='chmod 555 $lib'
10413 # or fails outright, so override atomically:
10414 install_override_mode=555
10417 interix[3-9]*)
10418 version_type=linux
10419 need_lib_prefix=no
10420 need_version=no
10421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10422 soname_spec='${libname}${release}${shared_ext}$major'
10423 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10424 shlibpath_var=LD_LIBRARY_PATH
10425 shlibpath_overrides_runpath=no
10426 hardcode_into_libs=yes
10429 irix5* | irix6* | nonstopux*)
10430 case $host_os in
10431 nonstopux*) version_type=nonstopux ;;
10433 if test "$lt_cv_prog_gnu_ld" = yes; then
10434 version_type=linux
10435 else
10436 version_type=irix
10437 fi ;;
10438 esac
10439 need_lib_prefix=no
10440 need_version=no
10441 soname_spec='${libname}${release}${shared_ext}$major'
10442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10443 case $host_os in
10444 irix5* | nonstopux*)
10445 libsuff= shlibsuff=
10448 case $LD in # libtool.m4 will add one of these switches to LD
10449 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10450 libsuff= shlibsuff= libmagic=32-bit;;
10451 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10452 libsuff=32 shlibsuff=N32 libmagic=N32;;
10453 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10454 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10455 *) libsuff= shlibsuff= libmagic=never-match;;
10456 esac
10458 esac
10459 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10460 shlibpath_overrides_runpath=no
10461 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10462 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10463 hardcode_into_libs=yes
10466 # No shared lib support for Linux oldld, aout, or coff.
10467 linux*oldld* | linux*aout* | linux*coff*)
10468 dynamic_linker=no
10471 # This must be Linux ELF.
10472 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10473 version_type=linux
10474 need_lib_prefix=no
10475 need_version=no
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10479 shlibpath_var=LD_LIBRARY_PATH
10480 shlibpath_overrides_runpath=no
10482 # Some binutils ld are patched to set DT_RUNPATH
10483 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10484 $as_echo_n "(cached) " >&6
10485 else
10486 lt_cv_shlibpath_overrides_runpath=no
10487 save_LDFLAGS=$LDFLAGS
10488 save_libdir=$libdir
10489 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10490 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10492 /* end confdefs.h. */
10495 main ()
10499 return 0;
10501 _ACEOF
10502 if ac_fn_c_try_link "$LINENO"; then :
10503 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10504 lt_cv_shlibpath_overrides_runpath=yes
10507 rm -f core conftest.err conftest.$ac_objext \
10508 conftest$ac_exeext conftest.$ac_ext
10509 LDFLAGS=$save_LDFLAGS
10510 libdir=$save_libdir
10514 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10516 # This implies no fast_install, which is unacceptable.
10517 # Some rework will be needed to allow for fast_install
10518 # before this can be enabled.
10519 hardcode_into_libs=yes
10521 # Append ld.so.conf contents to the search path
10522 if test -f /etc/ld.so.conf; then
10523 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' ' '`
10524 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10527 # We used to test for /lib/ld.so.1 and disable shared libraries on
10528 # powerpc, because MkLinux only supported shared libraries with the
10529 # GNU dynamic linker. Since this was broken with cross compilers,
10530 # most powerpc-linux boxes support dynamic linking these days and
10531 # people can always --disable-shared, the test was removed, and we
10532 # assume the GNU/Linux dynamic linker is in use.
10533 dynamic_linker='GNU/Linux ld.so'
10536 netbsd*)
10537 version_type=sunos
10538 need_lib_prefix=no
10539 need_version=no
10540 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10542 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10543 dynamic_linker='NetBSD (a.out) ld.so'
10544 else
10545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10546 soname_spec='${libname}${release}${shared_ext}$major'
10547 dynamic_linker='NetBSD ld.elf_so'
10549 shlibpath_var=LD_LIBRARY_PATH
10550 shlibpath_overrides_runpath=yes
10551 hardcode_into_libs=yes
10554 newsos6)
10555 version_type=linux
10556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10557 shlibpath_var=LD_LIBRARY_PATH
10558 shlibpath_overrides_runpath=yes
10561 *nto* | *qnx*)
10562 version_type=qnx
10563 need_lib_prefix=no
10564 need_version=no
10565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10566 soname_spec='${libname}${release}${shared_ext}$major'
10567 shlibpath_var=LD_LIBRARY_PATH
10568 shlibpath_overrides_runpath=no
10569 hardcode_into_libs=yes
10570 dynamic_linker='ldqnx.so'
10573 openbsd*)
10574 version_type=sunos
10575 sys_lib_dlsearch_path_spec="/usr/lib"
10576 need_lib_prefix=no
10577 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10578 case $host_os in
10579 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10580 *) need_version=no ;;
10581 esac
10582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10583 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10584 shlibpath_var=LD_LIBRARY_PATH
10585 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10586 case $host_os in
10587 openbsd2.[89] | openbsd2.[89].*)
10588 shlibpath_overrides_runpath=no
10591 shlibpath_overrides_runpath=yes
10593 esac
10594 else
10595 shlibpath_overrides_runpath=yes
10599 os2*)
10600 libname_spec='$name'
10601 shrext_cmds=".dll"
10602 need_lib_prefix=no
10603 library_names_spec='$libname${shared_ext} $libname.a'
10604 dynamic_linker='OS/2 ld.exe'
10605 shlibpath_var=LIBPATH
10608 osf3* | osf4* | osf5*)
10609 version_type=osf
10610 need_lib_prefix=no
10611 need_version=no
10612 soname_spec='${libname}${release}${shared_ext}$major'
10613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10614 shlibpath_var=LD_LIBRARY_PATH
10615 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10616 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10619 rdos*)
10620 dynamic_linker=no
10623 solaris*)
10624 version_type=linux
10625 need_lib_prefix=no
10626 need_version=no
10627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10628 soname_spec='${libname}${release}${shared_ext}$major'
10629 shlibpath_var=LD_LIBRARY_PATH
10630 shlibpath_overrides_runpath=yes
10631 hardcode_into_libs=yes
10632 # ldd complains unless libraries are executable
10633 postinstall_cmds='chmod +x $lib'
10636 sunos4*)
10637 version_type=sunos
10638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10639 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10640 shlibpath_var=LD_LIBRARY_PATH
10641 shlibpath_overrides_runpath=yes
10642 if test "$with_gnu_ld" = yes; then
10643 need_lib_prefix=no
10645 need_version=yes
10648 sysv4 | sysv4.3*)
10649 version_type=linux
10650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10651 soname_spec='${libname}${release}${shared_ext}$major'
10652 shlibpath_var=LD_LIBRARY_PATH
10653 case $host_vendor in
10654 sni)
10655 shlibpath_overrides_runpath=no
10656 need_lib_prefix=no
10657 runpath_var=LD_RUN_PATH
10659 siemens)
10660 need_lib_prefix=no
10662 motorola)
10663 need_lib_prefix=no
10664 need_version=no
10665 shlibpath_overrides_runpath=no
10666 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10668 esac
10671 sysv4*MP*)
10672 if test -d /usr/nec ;then
10673 version_type=linux
10674 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10675 soname_spec='$libname${shared_ext}.$major'
10676 shlibpath_var=LD_LIBRARY_PATH
10680 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10681 version_type=freebsd-elf
10682 need_lib_prefix=no
10683 need_version=no
10684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10685 soname_spec='${libname}${release}${shared_ext}$major'
10686 shlibpath_var=LD_LIBRARY_PATH
10687 shlibpath_overrides_runpath=yes
10688 hardcode_into_libs=yes
10689 if test "$with_gnu_ld" = yes; then
10690 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10691 else
10692 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10693 case $host_os in
10694 sco3.2v5*)
10695 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10697 esac
10699 sys_lib_dlsearch_path_spec='/usr/lib'
10702 tpf*)
10703 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10704 version_type=linux
10705 need_lib_prefix=no
10706 need_version=no
10707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10708 shlibpath_var=LD_LIBRARY_PATH
10709 shlibpath_overrides_runpath=no
10710 hardcode_into_libs=yes
10713 uts4*)
10714 version_type=linux
10715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10716 soname_spec='${libname}${release}${shared_ext}$major'
10717 shlibpath_var=LD_LIBRARY_PATH
10721 dynamic_linker=no
10723 esac
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10725 $as_echo "$dynamic_linker" >&6; }
10726 test "$dynamic_linker" = no && can_build_shared=no
10728 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10729 if test "$GCC" = yes; then
10730 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10733 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10734 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10736 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10737 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10832 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10833 hardcode_action=
10834 if test -n "$hardcode_libdir_flag_spec" ||
10835 test -n "$runpath_var" ||
10836 test "X$hardcode_automatic" = "Xyes" ; then
10838 # We can hardcode non-existent directories.
10839 if test "$hardcode_direct" != no &&
10840 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10841 # have to relink, otherwise we might link with an installed library
10842 # when we should be linking with a yet-to-be-installed one
10843 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10844 test "$hardcode_minus_L" != no; then
10845 # Linking always hardcodes the temporary library directory.
10846 hardcode_action=relink
10847 else
10848 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10849 hardcode_action=immediate
10851 else
10852 # We cannot hardcode anything, or else we can only hardcode existing
10853 # directories.
10854 hardcode_action=unsupported
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10857 $as_echo "$hardcode_action" >&6; }
10859 if test "$hardcode_action" = relink ||
10860 test "$inherit_rpath" = yes; then
10861 # Fast installation is not supported
10862 enable_fast_install=no
10863 elif test "$shlibpath_overrides_runpath" = yes ||
10864 test "$enable_shared" = no; then
10865 # Fast installation is not necessary
10866 enable_fast_install=needless
10874 if test "x$enable_dlopen" != xyes; then
10875 enable_dlopen=unknown
10876 enable_dlopen_self=unknown
10877 enable_dlopen_self_static=unknown
10878 else
10879 lt_cv_dlopen=no
10880 lt_cv_dlopen_libs=
10882 case $host_os in
10883 beos*)
10884 lt_cv_dlopen="load_add_on"
10885 lt_cv_dlopen_libs=
10886 lt_cv_dlopen_self=yes
10889 mingw* | pw32* | cegcc*)
10890 lt_cv_dlopen="LoadLibrary"
10891 lt_cv_dlopen_libs=
10894 cygwin*)
10895 lt_cv_dlopen="dlopen"
10896 lt_cv_dlopen_libs=
10899 darwin*)
10900 # if libdl is installed we need to link against it
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10902 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10903 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10904 $as_echo_n "(cached) " >&6
10905 else
10906 ac_check_lib_save_LIBS=$LIBS
10907 LIBS="-ldl $LIBS"
10908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10909 /* end confdefs.h. */
10911 /* Override any GCC internal prototype to avoid an error.
10912 Use char because int might match the return type of a GCC
10913 builtin and then its argument prototype would still apply. */
10914 #ifdef __cplusplus
10915 extern "C"
10916 #endif
10917 char dlopen ();
10919 main ()
10921 return dlopen ();
10923 return 0;
10925 _ACEOF
10926 if ac_fn_c_try_link "$LINENO"; then :
10927 ac_cv_lib_dl_dlopen=yes
10928 else
10929 ac_cv_lib_dl_dlopen=no
10931 rm -f core conftest.err conftest.$ac_objext \
10932 conftest$ac_exeext conftest.$ac_ext
10933 LIBS=$ac_check_lib_save_LIBS
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10936 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10937 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10938 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10939 else
10941 lt_cv_dlopen="dyld"
10942 lt_cv_dlopen_libs=
10943 lt_cv_dlopen_self=yes
10950 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10951 if test "x$ac_cv_func_shl_load" = x""yes; then :
10952 lt_cv_dlopen="shl_load"
10953 else
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10955 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10956 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10957 $as_echo_n "(cached) " >&6
10958 else
10959 ac_check_lib_save_LIBS=$LIBS
10960 LIBS="-ldld $LIBS"
10961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10962 /* end confdefs.h. */
10964 /* Override any GCC internal prototype to avoid an error.
10965 Use char because int might match the return type of a GCC
10966 builtin and then its argument prototype would still apply. */
10967 #ifdef __cplusplus
10968 extern "C"
10969 #endif
10970 char shl_load ();
10972 main ()
10974 return shl_load ();
10976 return 0;
10978 _ACEOF
10979 if ac_fn_c_try_link "$LINENO"; then :
10980 ac_cv_lib_dld_shl_load=yes
10981 else
10982 ac_cv_lib_dld_shl_load=no
10984 rm -f core conftest.err conftest.$ac_objext \
10985 conftest$ac_exeext conftest.$ac_ext
10986 LIBS=$ac_check_lib_save_LIBS
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10989 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10990 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10991 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10992 else
10993 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10994 if test "x$ac_cv_func_dlopen" = x""yes; then :
10995 lt_cv_dlopen="dlopen"
10996 else
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10998 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10999 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11000 $as_echo_n "(cached) " >&6
11001 else
11002 ac_check_lib_save_LIBS=$LIBS
11003 LIBS="-ldl $LIBS"
11004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11005 /* end confdefs.h. */
11007 /* Override any GCC internal prototype to avoid an error.
11008 Use char because int might match the return type of a GCC
11009 builtin and then its argument prototype would still apply. */
11010 #ifdef __cplusplus
11011 extern "C"
11012 #endif
11013 char dlopen ();
11015 main ()
11017 return dlopen ();
11019 return 0;
11021 _ACEOF
11022 if ac_fn_c_try_link "$LINENO"; then :
11023 ac_cv_lib_dl_dlopen=yes
11024 else
11025 ac_cv_lib_dl_dlopen=no
11027 rm -f core conftest.err conftest.$ac_objext \
11028 conftest$ac_exeext conftest.$ac_ext
11029 LIBS=$ac_check_lib_save_LIBS
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11032 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11033 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11034 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11035 else
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11037 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11038 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11039 $as_echo_n "(cached) " >&6
11040 else
11041 ac_check_lib_save_LIBS=$LIBS
11042 LIBS="-lsvld $LIBS"
11043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11044 /* end confdefs.h. */
11046 /* Override any GCC internal prototype to avoid an error.
11047 Use char because int might match the return type of a GCC
11048 builtin and then its argument prototype would still apply. */
11049 #ifdef __cplusplus
11050 extern "C"
11051 #endif
11052 char dlopen ();
11054 main ()
11056 return dlopen ();
11058 return 0;
11060 _ACEOF
11061 if ac_fn_c_try_link "$LINENO"; then :
11062 ac_cv_lib_svld_dlopen=yes
11063 else
11064 ac_cv_lib_svld_dlopen=no
11066 rm -f core conftest.err conftest.$ac_objext \
11067 conftest$ac_exeext conftest.$ac_ext
11068 LIBS=$ac_check_lib_save_LIBS
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11071 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11072 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11073 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11074 else
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11076 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11077 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11078 $as_echo_n "(cached) " >&6
11079 else
11080 ac_check_lib_save_LIBS=$LIBS
11081 LIBS="-ldld $LIBS"
11082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11083 /* end confdefs.h. */
11085 /* Override any GCC internal prototype to avoid an error.
11086 Use char because int might match the return type of a GCC
11087 builtin and then its argument prototype would still apply. */
11088 #ifdef __cplusplus
11089 extern "C"
11090 #endif
11091 char dld_link ();
11093 main ()
11095 return dld_link ();
11097 return 0;
11099 _ACEOF
11100 if ac_fn_c_try_link "$LINENO"; then :
11101 ac_cv_lib_dld_dld_link=yes
11102 else
11103 ac_cv_lib_dld_dld_link=no
11105 rm -f core conftest.err conftest.$ac_objext \
11106 conftest$ac_exeext conftest.$ac_ext
11107 LIBS=$ac_check_lib_save_LIBS
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11110 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11111 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11112 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11131 esac
11133 if test "x$lt_cv_dlopen" != xno; then
11134 enable_dlopen=yes
11135 else
11136 enable_dlopen=no
11139 case $lt_cv_dlopen in
11140 dlopen)
11141 save_CPPFLAGS="$CPPFLAGS"
11142 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11144 save_LDFLAGS="$LDFLAGS"
11145 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11147 save_LIBS="$LIBS"
11148 LIBS="$lt_cv_dlopen_libs $LIBS"
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11151 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11152 if test "${lt_cv_dlopen_self+set}" = set; then :
11153 $as_echo_n "(cached) " >&6
11154 else
11155 if test "$cross_compiling" = yes; then :
11156 lt_cv_dlopen_self=cross
11157 else
11158 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11159 lt_status=$lt_dlunknown
11160 cat > conftest.$ac_ext <<_LT_EOF
11161 #line 11161 "configure"
11162 #include "confdefs.h"
11164 #if HAVE_DLFCN_H
11165 #include <dlfcn.h>
11166 #endif
11168 #include <stdio.h>
11170 #ifdef RTLD_GLOBAL
11171 # define LT_DLGLOBAL RTLD_GLOBAL
11172 #else
11173 # ifdef DL_GLOBAL
11174 # define LT_DLGLOBAL DL_GLOBAL
11175 # else
11176 # define LT_DLGLOBAL 0
11177 # endif
11178 #endif
11180 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11181 find out it does not work in some platform. */
11182 #ifndef LT_DLLAZY_OR_NOW
11183 # ifdef RTLD_LAZY
11184 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11185 # else
11186 # ifdef DL_LAZY
11187 # define LT_DLLAZY_OR_NOW DL_LAZY
11188 # else
11189 # ifdef RTLD_NOW
11190 # define LT_DLLAZY_OR_NOW RTLD_NOW
11191 # else
11192 # ifdef DL_NOW
11193 # define LT_DLLAZY_OR_NOW DL_NOW
11194 # else
11195 # define LT_DLLAZY_OR_NOW 0
11196 # endif
11197 # endif
11198 # endif
11199 # endif
11200 #endif
11202 /* When -fvisbility=hidden is used, assume the code has been annotated
11203 correspondingly for the symbols needed. */
11204 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11205 void fnord () __attribute__((visibility("default")));
11206 #endif
11208 void fnord () { int i=42; }
11209 int main ()
11211 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11212 int status = $lt_dlunknown;
11214 if (self)
11216 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11217 else
11219 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11220 else puts (dlerror ());
11222 /* dlclose (self); */
11224 else
11225 puts (dlerror ());
11227 return status;
11229 _LT_EOF
11230 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11231 (eval $ac_link) 2>&5
11232 ac_status=$?
11233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11234 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11235 (./conftest; exit; ) >&5 2>/dev/null
11236 lt_status=$?
11237 case x$lt_status in
11238 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11239 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11240 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11241 esac
11242 else :
11243 # compilation failed
11244 lt_cv_dlopen_self=no
11247 rm -fr conftest*
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11252 $as_echo "$lt_cv_dlopen_self" >&6; }
11254 if test "x$lt_cv_dlopen_self" = xyes; then
11255 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11257 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11258 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11259 $as_echo_n "(cached) " >&6
11260 else
11261 if test "$cross_compiling" = yes; then :
11262 lt_cv_dlopen_self_static=cross
11263 else
11264 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11265 lt_status=$lt_dlunknown
11266 cat > conftest.$ac_ext <<_LT_EOF
11267 #line 11267 "configure"
11268 #include "confdefs.h"
11270 #if HAVE_DLFCN_H
11271 #include <dlfcn.h>
11272 #endif
11274 #include <stdio.h>
11276 #ifdef RTLD_GLOBAL
11277 # define LT_DLGLOBAL RTLD_GLOBAL
11278 #else
11279 # ifdef DL_GLOBAL
11280 # define LT_DLGLOBAL DL_GLOBAL
11281 # else
11282 # define LT_DLGLOBAL 0
11283 # endif
11284 #endif
11286 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11287 find out it does not work in some platform. */
11288 #ifndef LT_DLLAZY_OR_NOW
11289 # ifdef RTLD_LAZY
11290 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11291 # else
11292 # ifdef DL_LAZY
11293 # define LT_DLLAZY_OR_NOW DL_LAZY
11294 # else
11295 # ifdef RTLD_NOW
11296 # define LT_DLLAZY_OR_NOW RTLD_NOW
11297 # else
11298 # ifdef DL_NOW
11299 # define LT_DLLAZY_OR_NOW DL_NOW
11300 # else
11301 # define LT_DLLAZY_OR_NOW 0
11302 # endif
11303 # endif
11304 # endif
11305 # endif
11306 #endif
11308 /* When -fvisbility=hidden is used, assume the code has been annotated
11309 correspondingly for the symbols needed. */
11310 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11311 void fnord () __attribute__((visibility("default")));
11312 #endif
11314 void fnord () { int i=42; }
11315 int main ()
11317 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11318 int status = $lt_dlunknown;
11320 if (self)
11322 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11323 else
11325 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11326 else puts (dlerror ());
11328 /* dlclose (self); */
11330 else
11331 puts (dlerror ());
11333 return status;
11335 _LT_EOF
11336 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11337 (eval $ac_link) 2>&5
11338 ac_status=$?
11339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11340 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11341 (./conftest; exit; ) >&5 2>/dev/null
11342 lt_status=$?
11343 case x$lt_status in
11344 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11345 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11346 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11347 esac
11348 else :
11349 # compilation failed
11350 lt_cv_dlopen_self_static=no
11353 rm -fr conftest*
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11358 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11361 CPPFLAGS="$save_CPPFLAGS"
11362 LDFLAGS="$save_LDFLAGS"
11363 LIBS="$save_LIBS"
11365 esac
11367 case $lt_cv_dlopen_self in
11368 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11369 *) enable_dlopen_self=unknown ;;
11370 esac
11372 case $lt_cv_dlopen_self_static in
11373 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11374 *) enable_dlopen_self_static=unknown ;;
11375 esac
11394 striplib=
11395 old_striplib=
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11397 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11398 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11399 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11400 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11402 $as_echo "yes" >&6; }
11403 else
11404 # FIXME - insert some real tests, host_os isn't really good enough
11405 case $host_os in
11406 darwin*)
11407 if test -n "$STRIP" ; then
11408 striplib="$STRIP -x"
11409 old_striplib="$STRIP -S"
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11411 $as_echo "yes" >&6; }
11412 else
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11414 $as_echo "no" >&6; }
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11419 $as_echo "no" >&6; }
11421 esac
11435 # Report which library types will actually be built
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11437 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11439 $as_echo "$can_build_shared" >&6; }
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11442 $as_echo_n "checking whether to build shared libraries... " >&6; }
11443 test "$can_build_shared" = "no" && enable_shared=no
11445 # On AIX, shared libraries and static libraries use the same namespace, and
11446 # are all built from PIC.
11447 case $host_os in
11448 aix3*)
11449 test "$enable_shared" = yes && enable_static=no
11450 if test -n "$RANLIB"; then
11451 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11452 postinstall_cmds='$RANLIB $lib'
11456 aix[4-9]*)
11457 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11458 test "$enable_shared" = yes && enable_static=no
11461 esac
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11463 $as_echo "$enable_shared" >&6; }
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11466 $as_echo_n "checking whether to build static libraries... " >&6; }
11467 # Make sure either enable_shared or enable_static is yes.
11468 test "$enable_shared" = yes || enable_static=yes
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11470 $as_echo "$enable_static" >&6; }
11476 ac_ext=c
11477 ac_cpp='$CPP $CPPFLAGS'
11478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11482 CC="$lt_save_CC"
11496 ac_config_commands="$ac_config_commands libtool"
11501 # Only expand once:
11507 case $host in
11508 *-cygwin* | *-mingw*)
11509 # 'host' will be top-level target in the case of a target lib,
11510 # we must compare to with_cross_host to decide if this is a native
11511 # or cross-compiler and select where to install dlls appropriately.
11512 if test -n "$with_cross_host" &&
11513 test x"$with_cross_host" != x"no"; then
11514 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
11515 else
11516 lt_host_flags='-no-undefined -bindir "$(bindir)"';
11520 lt_host_flags=
11522 esac
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11531 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11532 # Check whether --enable-maintainer-mode was given.
11533 if test "${enable_maintainer_mode+set}" = set; then :
11534 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11535 else
11536 USE_MAINTAINER_MODE=no
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11540 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11541 if test $USE_MAINTAINER_MODE = yes; then
11542 MAINTAINER_MODE_TRUE=
11543 MAINTAINER_MODE_FALSE='#'
11544 else
11545 MAINTAINER_MODE_TRUE='#'
11546 MAINTAINER_MODE_FALSE=
11549 MAINT=$MAINTAINER_MODE_TRUE
11553 # Create a spec file, so that compile/link tests don't fail
11554 test -f libgfortran.spec || touch libgfortran.spec
11555 FCFLAGS="$FCFLAGS -L."
11557 # We need gfortran to compile parts of the library
11558 # We can't use AC_PROG_FC because it expects a fully working gfortran.
11559 #AC_PROG_FC(gfortran)
11560 case `echo $GFORTRAN` in
11561 -* | no* )
11562 FC=no ;;
11564 set dummy $GFORTRAN; ac_word=$2
11565 if test -x "$ac_word"; then
11566 FC="$GFORTRAN"
11567 else
11568 FC=no
11569 fi ;;
11570 esac
11571 ac_ext=${ac_fc_srcext-f}
11572 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11573 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11574 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11575 if test -n "$ac_tool_prefix"; then
11576 for ac_prog in gfortran
11578 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11579 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11581 $as_echo_n "checking for $ac_word... " >&6; }
11582 if test "${ac_cv_prog_FC+set}" = set; then :
11583 $as_echo_n "(cached) " >&6
11584 else
11585 if test -n "$FC"; then
11586 ac_cv_prog_FC="$FC" # Let the user override the test.
11587 else
11588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11589 for as_dir in $PATH
11591 IFS=$as_save_IFS
11592 test -z "$as_dir" && as_dir=.
11593 for ac_exec_ext in '' $ac_executable_extensions; do
11594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11595 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
11596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11597 break 2
11599 done
11600 done
11601 IFS=$as_save_IFS
11605 FC=$ac_cv_prog_FC
11606 if test -n "$FC"; then
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
11608 $as_echo "$FC" >&6; }
11609 else
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11611 $as_echo "no" >&6; }
11615 test -n "$FC" && break
11616 done
11618 if test -z "$FC"; then
11619 ac_ct_FC=$FC
11620 for ac_prog in gfortran
11622 # Extract the first word of "$ac_prog", so it can be a program name with args.
11623 set dummy $ac_prog; ac_word=$2
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11625 $as_echo_n "checking for $ac_word... " >&6; }
11626 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
11627 $as_echo_n "(cached) " >&6
11628 else
11629 if test -n "$ac_ct_FC"; then
11630 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
11631 else
11632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11633 for as_dir in $PATH
11635 IFS=$as_save_IFS
11636 test -z "$as_dir" && as_dir=.
11637 for ac_exec_ext in '' $ac_executable_extensions; do
11638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11639 ac_cv_prog_ac_ct_FC="$ac_prog"
11640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11641 break 2
11643 done
11644 done
11645 IFS=$as_save_IFS
11649 ac_ct_FC=$ac_cv_prog_ac_ct_FC
11650 if test -n "$ac_ct_FC"; then
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
11652 $as_echo "$ac_ct_FC" >&6; }
11653 else
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11655 $as_echo "no" >&6; }
11659 test -n "$ac_ct_FC" && break
11660 done
11662 if test "x$ac_ct_FC" = x; then
11663 FC=""
11664 else
11665 case $cross_compiling:$ac_tool_warned in
11666 yes:)
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11668 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11669 ac_tool_warned=yes ;;
11670 esac
11671 FC=$ac_ct_FC
11676 # Provide some information about the compiler.
11677 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
11678 set X $ac_compile
11679 ac_compiler=$2
11680 for ac_option in --version -v -V -qversion; do
11681 { { ac_try="$ac_compiler $ac_option >&5"
11682 case "(($ac_try" in
11683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11684 *) ac_try_echo=$ac_try;;
11685 esac
11686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11687 $as_echo "$ac_try_echo"; } >&5
11688 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11689 ac_status=$?
11690 if test -s conftest.err; then
11691 sed '10a\
11692 ... rest of stderr output deleted ...
11693 10q' conftest.err >conftest.er1
11694 cat conftest.er1 >&5
11695 rm -f conftest.er1 conftest.err
11697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11698 test $ac_status = 0; }
11699 done
11700 rm -f a.out
11702 # If we don't use `.F' as extension, the preprocessor is not run on the
11703 # input file. (Note that this only needs to work for GNU compilers.)
11704 ac_save_ext=$ac_ext
11705 ac_ext=F
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
11707 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
11708 if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
11709 $as_echo_n "(cached) " >&6
11710 else
11711 cat > conftest.$ac_ext <<_ACEOF
11712 program main
11713 #ifndef __GNUC__
11714 choke me
11715 #endif
11718 _ACEOF
11719 if ac_fn_fc_try_compile "$LINENO"; then :
11720 ac_compiler_gnu=yes
11721 else
11722 ac_compiler_gnu=no
11724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11725 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
11729 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
11730 ac_ext=$ac_save_ext
11731 ac_test_FCFLAGS=${FCFLAGS+set}
11732 ac_save_FCFLAGS=$FCFLAGS
11733 FCFLAGS=
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
11735 $as_echo_n "checking whether $FC accepts -g... " >&6; }
11736 if test "${ac_cv_prog_fc_g+set}" = set; then :
11737 $as_echo_n "(cached) " >&6
11738 else
11739 FCFLAGS=-g
11740 cat > conftest.$ac_ext <<_ACEOF
11741 program main
11744 _ACEOF
11745 if ac_fn_fc_try_compile "$LINENO"; then :
11746 ac_cv_prog_fc_g=yes
11747 else
11748 ac_cv_prog_fc_g=no
11750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
11754 $as_echo "$ac_cv_prog_fc_g" >&6; }
11755 if test "$ac_test_FCFLAGS" = set; then
11756 FCFLAGS=$ac_save_FCFLAGS
11757 elif test $ac_cv_prog_fc_g = yes; then
11758 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11759 FCFLAGS="-g -O2"
11760 else
11761 FCFLAGS="-g"
11763 else
11764 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11765 FCFLAGS="-O2"
11766 else
11767 FCFLAGS=
11771 ac_ext=c
11772 ac_cpp='$CPP $CPPFLAGS'
11773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11777 ac_ext=${ac_fc_srcext-f}
11778 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11779 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11780 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11783 if test -z "$FC" || test "X$FC" = "Xno"; then
11784 _lt_disable_FC=yes
11787 archive_cmds_need_lc_FC=no
11788 allow_undefined_flag_FC=
11789 always_export_symbols_FC=no
11790 archive_expsym_cmds_FC=
11791 export_dynamic_flag_spec_FC=
11792 hardcode_direct_FC=no
11793 hardcode_direct_absolute_FC=no
11794 hardcode_libdir_flag_spec_FC=
11795 hardcode_libdir_flag_spec_ld_FC=
11796 hardcode_libdir_separator_FC=
11797 hardcode_minus_L_FC=no
11798 hardcode_automatic_FC=no
11799 inherit_rpath_FC=no
11800 module_cmds_FC=
11801 module_expsym_cmds_FC=
11802 link_all_deplibs_FC=unknown
11803 old_archive_cmds_FC=$old_archive_cmds
11804 reload_flag_FC=$reload_flag
11805 reload_cmds_FC=$reload_cmds
11806 no_undefined_flag_FC=
11807 whole_archive_flag_spec_FC=
11808 enable_shared_with_static_runtimes_FC=no
11810 # Source file extension for fc test sources.
11811 ac_ext=${ac_fc_srcext-f}
11813 # Object file extension for compiled fc test sources.
11814 objext=o
11815 objext_FC=$objext
11817 # No sense in running all these tests if we already determined that
11818 # the FC compiler isn't working. Some variables (like enable_shared)
11819 # are currently assumed to apply to all compilers on this platform,
11820 # and will be corrupted by setting them based on a non-working compiler.
11821 if test "$_lt_disable_FC" != yes; then
11822 # Code to be used in simple compile tests
11823 lt_simple_compile_test_code="\
11824 subroutine t
11825 return
11829 # Code to be used in simple link tests
11830 lt_simple_link_test_code="\
11831 program t
11835 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11842 # If no C compiler was specified, use CC.
11843 LTCC=${LTCC-"$CC"}
11845 # If no C compiler flags were specified, use CFLAGS.
11846 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11848 # Allow CC to be a program name with arguments.
11849 compiler=$CC
11852 # save warnings/boilerplate of simple test code
11853 ac_outfile=conftest.$ac_objext
11854 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11855 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11856 _lt_compiler_boilerplate=`cat conftest.err`
11857 $RM conftest*
11859 ac_outfile=conftest.$ac_objext
11860 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11861 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11862 _lt_linker_boilerplate=`cat conftest.err`
11863 $RM -r conftest*
11866 # Allow CC to be a program name with arguments.
11867 lt_save_CC="$CC"
11868 lt_save_GCC=$GCC
11869 CC=${FC-"f95"}
11870 compiler=$CC
11871 GCC=$ac_cv_fc_compiler_gnu
11873 compiler_FC=$CC
11874 for cc_temp in $compiler""; do
11875 case $cc_temp in
11876 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11877 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11878 \-*) ;;
11879 *) break;;
11880 esac
11881 done
11882 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11885 if test -n "$compiler"; then
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11887 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11889 $as_echo "$can_build_shared" >&6; }
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11892 $as_echo_n "checking whether to build shared libraries... " >&6; }
11893 test "$can_build_shared" = "no" && enable_shared=no
11895 # On AIX, shared libraries and static libraries use the same namespace, and
11896 # are all built from PIC.
11897 case $host_os in
11898 aix3*)
11899 test "$enable_shared" = yes && enable_static=no
11900 if test -n "$RANLIB"; then
11901 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11902 postinstall_cmds='$RANLIB $lib'
11905 aix[4-9]*)
11906 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11907 test "$enable_shared" = yes && enable_static=no
11910 esac
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11912 $as_echo "$enable_shared" >&6; }
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11915 $as_echo_n "checking whether to build static libraries... " >&6; }
11916 # Make sure either enable_shared or enable_static is yes.
11917 test "$enable_shared" = yes || enable_static=yes
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11919 $as_echo "$enable_static" >&6; }
11921 GCC_FC="$ac_cv_fc_compiler_gnu"
11922 LD_FC="$LD"
11924 ## CAVEAT EMPTOR:
11925 ## There is no encapsulation within the following macros, do not change
11926 ## the running order or otherwise move them around unless you know exactly
11927 ## what you are doing...
11928 # Dependencies to place before and after the object being linked:
11929 predep_objects_FC=
11930 postdep_objects_FC=
11931 predeps_FC=
11932 postdeps_FC=
11933 compiler_lib_search_path_FC=
11935 cat > conftest.$ac_ext <<_LT_EOF
11936 subroutine foo
11937 implicit none
11938 integer a
11940 return
11942 _LT_EOF
11944 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11945 (eval $ac_compile) 2>&5
11946 ac_status=$?
11947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11948 test $ac_status = 0; }; then
11949 # Parse the compiler output and extract the necessary
11950 # objects, libraries and library flags.
11952 # Sentinel used to keep track of whether or not we are before
11953 # the conftest object file.
11954 pre_test_object_deps_done=no
11956 for p in `eval "$output_verbose_link_cmd"`; do
11957 case $p in
11959 -L* | -R* | -l*)
11960 # Some compilers place space between "-{L,R}" and the path.
11961 # Remove the space.
11962 if test $p = "-L" ||
11963 test $p = "-R"; then
11964 prev=$p
11965 continue
11966 else
11967 prev=
11970 if test "$pre_test_object_deps_done" = no; then
11971 case $p in
11972 -L* | -R*)
11973 # Internal compiler library paths should come after those
11974 # provided the user. The postdeps already come after the
11975 # user supplied libs so there is no need to process them.
11976 if test -z "$compiler_lib_search_path_FC"; then
11977 compiler_lib_search_path_FC="${prev}${p}"
11978 else
11979 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
11982 # The "-l" case would never come before the object being
11983 # linked, so don't bother handling this case.
11984 esac
11985 else
11986 if test -z "$postdeps_FC"; then
11987 postdeps_FC="${prev}${p}"
11988 else
11989 postdeps_FC="${postdeps_FC} ${prev}${p}"
11994 *.$objext)
11995 # This assumes that the test object file only shows up
11996 # once in the compiler output.
11997 if test "$p" = "conftest.$objext"; then
11998 pre_test_object_deps_done=yes
11999 continue
12002 if test "$pre_test_object_deps_done" = no; then
12003 if test -z "$predep_objects_FC"; then
12004 predep_objects_FC="$p"
12005 else
12006 predep_objects_FC="$predep_objects_FC $p"
12008 else
12009 if test -z "$postdep_objects_FC"; then
12010 postdep_objects_FC="$p"
12011 else
12012 postdep_objects_FC="$postdep_objects_FC $p"
12017 *) ;; # Ignore the rest.
12019 esac
12020 done
12022 # Clean up.
12023 rm -f a.out a.exe
12024 else
12025 echo "libtool.m4: error: problem compiling FC test program"
12028 $RM -f confest.$objext
12030 # PORTME: override above test on systems where it is broken
12033 case " $postdeps_FC " in
12034 *" -lc "*) archive_cmds_need_lc_FC=no ;;
12035 esac
12036 compiler_lib_search_dirs_FC=
12037 if test -n "${compiler_lib_search_path_FC}"; then
12038 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12071 lt_prog_compiler_wl_FC=
12072 lt_prog_compiler_pic_FC=
12073 lt_prog_compiler_static_FC=
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12076 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12078 if test "$GCC" = yes; then
12079 lt_prog_compiler_wl_FC='-Wl,'
12080 lt_prog_compiler_static_FC='-static'
12082 case $host_os in
12083 aix*)
12084 # All AIX code is PIC.
12085 if test "$host_cpu" = ia64; then
12086 # AIX 5 now supports IA64 processor
12087 lt_prog_compiler_static_FC='-Bstatic'
12089 lt_prog_compiler_pic_FC='-fPIC'
12092 amigaos*)
12093 case $host_cpu in
12094 powerpc)
12095 # see comment about AmigaOS4 .so support
12096 lt_prog_compiler_pic_FC='-fPIC'
12098 m68k)
12099 # FIXME: we need at least 68020 code to build shared libraries, but
12100 # adding the `-m68020' flag to GCC prevents building anything better,
12101 # like `-m68040'.
12102 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
12104 esac
12107 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12108 # PIC is the default for these OSes.
12111 mingw* | cygwin* | pw32* | os2* | cegcc*)
12112 # This hack is so that the source file can tell whether it is being
12113 # built for inclusion in a dll (and should export symbols for example).
12114 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12115 # (--disable-auto-import) libraries
12116 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12119 darwin* | rhapsody*)
12120 # PIC is the default on this platform
12121 # Common symbols not allowed in MH_DYLIB files
12122 lt_prog_compiler_pic_FC='-fno-common'
12125 haiku*)
12126 # PIC is the default for Haiku.
12127 # The "-static" flag exists, but is broken.
12128 lt_prog_compiler_static_FC=
12131 hpux*)
12132 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12133 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12134 # sets the default TLS model and affects inlining.
12135 case $host_cpu in
12136 hppa*64*)
12137 # +Z the default
12140 lt_prog_compiler_pic_FC='-fPIC'
12142 esac
12145 interix[3-9]*)
12146 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12147 # Instead, we relocate shared libraries at runtime.
12150 msdosdjgpp*)
12151 # Just because we use GCC doesn't mean we suddenly get shared libraries
12152 # on systems that don't support them.
12153 lt_prog_compiler_can_build_shared_FC=no
12154 enable_shared=no
12157 *nto* | *qnx*)
12158 # QNX uses GNU C++, but need to define -shared option too, otherwise
12159 # it will coredump.
12160 lt_prog_compiler_pic_FC='-fPIC -shared'
12163 sysv4*MP*)
12164 if test -d /usr/nec; then
12165 lt_prog_compiler_pic_FC=-Kconform_pic
12170 lt_prog_compiler_pic_FC='-fPIC'
12172 esac
12174 case $cc_basename in
12175 nvcc*) # Cuda Compiler Driver 2.2
12176 lt_prog_compiler_wl_FC='-Xlinker '
12177 lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
12179 esac
12180 else
12181 # PORTME Check for flag to pass linker flags through the system compiler.
12182 case $host_os in
12183 aix*)
12184 lt_prog_compiler_wl_FC='-Wl,'
12185 if test "$host_cpu" = ia64; then
12186 # AIX 5 now supports IA64 processor
12187 lt_prog_compiler_static_FC='-Bstatic'
12188 else
12189 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
12193 mingw* | cygwin* | pw32* | os2* | cegcc*)
12194 # This hack is so that the source file can tell whether it is being
12195 # built for inclusion in a dll (and should export symbols for example).
12196 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12199 hpux9* | hpux10* | hpux11*)
12200 lt_prog_compiler_wl_FC='-Wl,'
12201 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12202 # not for PA HP-UX.
12203 case $host_cpu in
12204 hppa*64*|ia64*)
12205 # +Z the default
12208 lt_prog_compiler_pic_FC='+Z'
12210 esac
12211 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12212 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
12215 irix5* | irix6* | nonstopux*)
12216 lt_prog_compiler_wl_FC='-Wl,'
12217 # PIC (with -KPIC) is the default.
12218 lt_prog_compiler_static_FC='-non_shared'
12221 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12222 case $cc_basename in
12223 # old Intel for x86_64 which still supported -KPIC.
12224 ecc*)
12225 lt_prog_compiler_wl_FC='-Wl,'
12226 lt_prog_compiler_pic_FC='-KPIC'
12227 lt_prog_compiler_static_FC='-static'
12229 # icc used to be incompatible with GCC.
12230 # ICC 10 doesn't accept -KPIC any more.
12231 icc* | ifort*)
12232 lt_prog_compiler_wl_FC='-Wl,'
12233 lt_prog_compiler_pic_FC='-fPIC'
12234 lt_prog_compiler_static_FC='-static'
12236 # Lahey Fortran 8.1.
12237 lf95*)
12238 lt_prog_compiler_wl_FC='-Wl,'
12239 lt_prog_compiler_pic_FC='--shared'
12240 lt_prog_compiler_static_FC='--static'
12242 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12243 # Portland Group compilers (*not* the Pentium gcc compiler,
12244 # which looks to be a dead project)
12245 lt_prog_compiler_wl_FC='-Wl,'
12246 lt_prog_compiler_pic_FC='-fpic'
12247 lt_prog_compiler_static_FC='-Bstatic'
12249 ccc*)
12250 lt_prog_compiler_wl_FC='-Wl,'
12251 # All Alpha code is PIC.
12252 lt_prog_compiler_static_FC='-non_shared'
12254 xl* | bgxl* | bgf* | mpixl*)
12255 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12256 lt_prog_compiler_wl_FC='-Wl,'
12257 lt_prog_compiler_pic_FC='-qpic'
12258 lt_prog_compiler_static_FC='-qstaticlink'
12261 case `$CC -V 2>&1 | sed 5q` in
12262 *Sun\ F* | *Sun*Fortran*)
12263 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12264 lt_prog_compiler_pic_FC='-KPIC'
12265 lt_prog_compiler_static_FC='-Bstatic'
12266 lt_prog_compiler_wl_FC=''
12268 *Sun\ C*)
12269 # Sun C 5.9
12270 lt_prog_compiler_pic_FC='-KPIC'
12271 lt_prog_compiler_static_FC='-Bstatic'
12272 lt_prog_compiler_wl_FC='-Wl,'
12274 esac
12276 esac
12279 newsos6)
12280 lt_prog_compiler_pic_FC='-KPIC'
12281 lt_prog_compiler_static_FC='-Bstatic'
12284 *nto* | *qnx*)
12285 # QNX uses GNU C++, but need to define -shared option too, otherwise
12286 # it will coredump.
12287 lt_prog_compiler_pic_FC='-fPIC -shared'
12290 osf3* | osf4* | osf5*)
12291 lt_prog_compiler_wl_FC='-Wl,'
12292 # All OSF/1 code is PIC.
12293 lt_prog_compiler_static_FC='-non_shared'
12296 rdos*)
12297 lt_prog_compiler_static_FC='-non_shared'
12300 solaris*)
12301 lt_prog_compiler_pic_FC='-KPIC'
12302 lt_prog_compiler_static_FC='-Bstatic'
12303 case $cc_basename in
12304 f77* | f90* | f95*)
12305 lt_prog_compiler_wl_FC='-Qoption ld ';;
12307 lt_prog_compiler_wl_FC='-Wl,';;
12308 esac
12311 sunos4*)
12312 lt_prog_compiler_wl_FC='-Qoption ld '
12313 lt_prog_compiler_pic_FC='-PIC'
12314 lt_prog_compiler_static_FC='-Bstatic'
12317 sysv4 | sysv4.2uw2* | sysv4.3*)
12318 lt_prog_compiler_wl_FC='-Wl,'
12319 lt_prog_compiler_pic_FC='-KPIC'
12320 lt_prog_compiler_static_FC='-Bstatic'
12323 sysv4*MP*)
12324 if test -d /usr/nec ;then
12325 lt_prog_compiler_pic_FC='-Kconform_pic'
12326 lt_prog_compiler_static_FC='-Bstatic'
12330 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12331 lt_prog_compiler_wl_FC='-Wl,'
12332 lt_prog_compiler_pic_FC='-KPIC'
12333 lt_prog_compiler_static_FC='-Bstatic'
12336 unicos*)
12337 lt_prog_compiler_wl_FC='-Wl,'
12338 lt_prog_compiler_can_build_shared_FC=no
12341 uts4*)
12342 lt_prog_compiler_pic_FC='-pic'
12343 lt_prog_compiler_static_FC='-Bstatic'
12347 lt_prog_compiler_can_build_shared_FC=no
12349 esac
12352 case $host_os in
12353 # For platforms which do not support PIC, -DPIC is meaningless:
12354 *djgpp*)
12355 lt_prog_compiler_pic_FC=
12358 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
12360 esac
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
12362 $as_echo "$lt_prog_compiler_pic_FC" >&6; }
12367 # Check to make sure the PIC flag actually works.
12369 if test -n "$lt_prog_compiler_pic_FC"; then
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
12371 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
12372 if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then :
12373 $as_echo_n "(cached) " >&6
12374 else
12375 lt_cv_prog_compiler_pic_works_FC=no
12376 ac_outfile=conftest.$ac_objext
12377 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12378 lt_compiler_flag="$lt_prog_compiler_pic_FC"
12379 # Insert the option either (1) after the last *FLAGS variable, or
12380 # (2) before a word containing "conftest.", or (3) at the end.
12381 # Note that $ac_compile itself does not contain backslashes and begins
12382 # with a dollar sign (not a hyphen), so the echo should work correctly.
12383 # The option is referenced via a variable to avoid confusing sed.
12384 lt_compile=`echo "$ac_compile" | $SED \
12385 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12386 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12387 -e 's:$: $lt_compiler_flag:'`
12388 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12389 (eval "$lt_compile" 2>conftest.err)
12390 ac_status=$?
12391 cat conftest.err >&5
12392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393 if (exit $ac_status) && test -s "$ac_outfile"; then
12394 # The compiler can only warn and ignore the option if not recognized
12395 # So say no if there are warnings other than the usual output.
12396 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12397 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12398 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12399 lt_cv_prog_compiler_pic_works_FC=yes
12402 $RM conftest*
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
12406 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
12408 if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
12409 case $lt_prog_compiler_pic_FC in
12410 "" | " "*) ;;
12411 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
12412 esac
12413 else
12414 lt_prog_compiler_pic_FC=
12415 lt_prog_compiler_can_build_shared_FC=no
12423 # Check to make sure the static flag actually works.
12425 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12427 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12428 if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then :
12429 $as_echo_n "(cached) " >&6
12430 else
12431 lt_cv_prog_compiler_static_works_FC=no
12432 save_LDFLAGS="$LDFLAGS"
12433 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12434 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12435 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12436 # The linker can only warn and ignore the option if not recognized
12437 # So say no if there are warnings
12438 if test -s conftest.err; then
12439 # Append any errors to the config.log.
12440 cat conftest.err 1>&5
12441 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12442 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12443 if diff conftest.exp conftest.er2 >/dev/null; then
12444 lt_cv_prog_compiler_static_works_FC=yes
12446 else
12447 lt_cv_prog_compiler_static_works_FC=yes
12450 $RM -r conftest*
12451 LDFLAGS="$save_LDFLAGS"
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
12455 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
12457 if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
12459 else
12460 lt_prog_compiler_static_FC=
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12467 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12468 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
12469 $as_echo_n "(cached) " >&6
12470 else
12471 lt_cv_prog_compiler_c_o_FC=no
12472 $RM -r conftest 2>/dev/null
12473 mkdir conftest
12474 cd conftest
12475 mkdir out
12476 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12478 lt_compiler_flag="-o out/conftest2.$ac_objext"
12479 # Insert the option either (1) after the last *FLAGS variable, or
12480 # (2) before a word containing "conftest.", or (3) at the end.
12481 # Note that $ac_compile itself does not contain backslashes and begins
12482 # with a dollar sign (not a hyphen), so the echo should work correctly.
12483 lt_compile=`echo "$ac_compile" | $SED \
12484 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12485 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12486 -e 's:$: $lt_compiler_flag:'`
12487 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12488 (eval "$lt_compile" 2>out/conftest.err)
12489 ac_status=$?
12490 cat out/conftest.err >&5
12491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12493 then
12494 # The compiler can only warn and ignore the option if not recognized
12495 # So say no if there are warnings
12496 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12497 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12498 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12499 lt_cv_prog_compiler_c_o_FC=yes
12502 chmod u+w . 2>&5
12503 $RM conftest*
12504 # SGI C++ compiler will create directory out/ii_files/ for
12505 # template instantiation
12506 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12507 $RM out/* && rmdir out
12508 cd ..
12509 $RM -r conftest
12510 $RM conftest*
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12514 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12519 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12520 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
12521 $as_echo_n "(cached) " >&6
12522 else
12523 lt_cv_prog_compiler_c_o_FC=no
12524 $RM -r conftest 2>/dev/null
12525 mkdir conftest
12526 cd conftest
12527 mkdir out
12528 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12530 lt_compiler_flag="-o out/conftest2.$ac_objext"
12531 # Insert the option either (1) after the last *FLAGS variable, or
12532 # (2) before a word containing "conftest.", or (3) at the end.
12533 # Note that $ac_compile itself does not contain backslashes and begins
12534 # with a dollar sign (not a hyphen), so the echo should work correctly.
12535 lt_compile=`echo "$ac_compile" | $SED \
12536 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12537 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12538 -e 's:$: $lt_compiler_flag:'`
12539 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12540 (eval "$lt_compile" 2>out/conftest.err)
12541 ac_status=$?
12542 cat out/conftest.err >&5
12543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12545 then
12546 # The compiler can only warn and ignore the option if not recognized
12547 # So say no if there are warnings
12548 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12549 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12550 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12551 lt_cv_prog_compiler_c_o_FC=yes
12554 chmod u+w . 2>&5
12555 $RM conftest*
12556 # SGI C++ compiler will create directory out/ii_files/ for
12557 # template instantiation
12558 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12559 $RM out/* && rmdir out
12560 cd ..
12561 $RM -r conftest
12562 $RM conftest*
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12566 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12571 hard_links="nottested"
12572 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
12573 # do not overwrite the value of need_locks provided by the user
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12575 $as_echo_n "checking if we can lock with hard links... " >&6; }
12576 hard_links=yes
12577 $RM conftest*
12578 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12579 touch conftest.a
12580 ln conftest.a conftest.b 2>&5 || hard_links=no
12581 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12583 $as_echo "$hard_links" >&6; }
12584 if test "$hard_links" = no; then
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12586 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12587 need_locks=warn
12589 else
12590 need_locks=no
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12596 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12598 runpath_var=
12599 allow_undefined_flag_FC=
12600 always_export_symbols_FC=no
12601 archive_cmds_FC=
12602 archive_expsym_cmds_FC=
12603 compiler_needs_object_FC=no
12604 enable_shared_with_static_runtimes_FC=no
12605 export_dynamic_flag_spec_FC=
12606 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12607 hardcode_automatic_FC=no
12608 hardcode_direct_FC=no
12609 hardcode_direct_absolute_FC=no
12610 hardcode_libdir_flag_spec_FC=
12611 hardcode_libdir_flag_spec_ld_FC=
12612 hardcode_libdir_separator_FC=
12613 hardcode_minus_L_FC=no
12614 hardcode_shlibpath_var_FC=unsupported
12615 inherit_rpath_FC=no
12616 link_all_deplibs_FC=unknown
12617 module_cmds_FC=
12618 module_expsym_cmds_FC=
12619 old_archive_from_new_cmds_FC=
12620 old_archive_from_expsyms_cmds_FC=
12621 thread_safe_flag_spec_FC=
12622 whole_archive_flag_spec_FC=
12623 # include_expsyms should be a list of space-separated symbols to be *always*
12624 # included in the symbol list
12625 include_expsyms_FC=
12626 # exclude_expsyms can be an extended regexp of symbols to exclude
12627 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12628 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12629 # as well as any symbol that contains `d'.
12630 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12631 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12632 # platforms (ab)use it in PIC code, but their linkers get confused if
12633 # the symbol is explicitly referenced. Since portable code cannot
12634 # rely on this symbol name, it's probably fine to never include it in
12635 # preloaded symbol tables.
12636 # Exclude shared library initialization/finalization symbols.
12637 extract_expsyms_cmds=
12639 case $host_os in
12640 cygwin* | mingw* | pw32* | cegcc*)
12641 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12642 # When not using gcc, we currently assume that we are using
12643 # Microsoft Visual C++.
12644 if test "$GCC" != yes; then
12645 with_gnu_ld=no
12648 interix*)
12649 # we just hope/assume this is gcc and not c89 (= MSVC++)
12650 with_gnu_ld=yes
12652 openbsd*)
12653 with_gnu_ld=no
12655 esac
12657 ld_shlibs_FC=yes
12659 # On some targets, GNU ld is compatible enough with the native linker
12660 # that we're better off using the native interface for both.
12661 lt_use_gnu_ld_interface=no
12662 if test "$with_gnu_ld" = yes; then
12663 case $host_os in
12664 aix*)
12665 # The AIX port of GNU ld has always aspired to compatibility
12666 # with the native linker. However, as the warning in the GNU ld
12667 # block says, versions before 2.19.5* couldn't really create working
12668 # shared libraries, regardless of the interface used.
12669 case `$LD -v 2>&1` in
12670 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12671 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12672 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12674 lt_use_gnu_ld_interface=yes
12676 esac
12679 lt_use_gnu_ld_interface=yes
12681 esac
12684 if test "$lt_use_gnu_ld_interface" = yes; then
12685 # If archive_cmds runs LD, not CC, wlarc should be empty
12686 wlarc='${wl}'
12688 # Set some defaults for GNU ld with shared library support. These
12689 # are reset later if shared libraries are not supported. Putting them
12690 # here allows them to be overridden if necessary.
12691 runpath_var=LD_RUN_PATH
12692 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12693 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
12694 # ancient GNU ld didn't support --whole-archive et. al.
12695 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12696 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12697 else
12698 whole_archive_flag_spec_FC=
12700 supports_anon_versioning=no
12701 case `$LD -v 2>&1` in
12702 *GNU\ gold*) supports_anon_versioning=yes ;;
12703 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12704 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12705 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12706 *\ 2.11.*) ;; # other 2.11 versions
12707 *) supports_anon_versioning=yes ;;
12708 esac
12710 # See if GNU ld supports shared libraries.
12711 case $host_os in
12712 aix[3-9]*)
12713 # On AIX/PPC, the GNU linker is very broken
12714 if test "$host_cpu" != ia64; then
12715 ld_shlibs_FC=no
12716 cat <<_LT_EOF 1>&2
12718 *** Warning: the GNU linker, at least up to release 2.19, is reported
12719 *** to be unable to reliably create shared libraries on AIX.
12720 *** Therefore, libtool is disabling shared libraries support. If you
12721 *** really care for shared libraries, you may want to install binutils
12722 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12723 *** You will then need to restart the configuration process.
12725 _LT_EOF
12729 amigaos*)
12730 case $host_cpu in
12731 powerpc)
12732 # see comment about AmigaOS4 .so support
12733 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12734 archive_expsym_cmds_FC=''
12736 m68k)
12737 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)'
12738 hardcode_libdir_flag_spec_FC='-L$libdir'
12739 hardcode_minus_L_FC=yes
12741 esac
12744 beos*)
12745 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12746 allow_undefined_flag_FC=unsupported
12747 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12748 # support --undefined. This deserves some investigation. FIXME
12749 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12750 else
12751 ld_shlibs_FC=no
12755 cygwin* | mingw* | pw32* | cegcc*)
12756 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
12757 # as there is no search path for DLLs.
12758 hardcode_libdir_flag_spec_FC='-L$libdir'
12759 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
12760 allow_undefined_flag_FC=unsupported
12761 always_export_symbols_FC=no
12762 enable_shared_with_static_runtimes_FC=yes
12763 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12765 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12766 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12767 # If the export-symbols file already is a .def file (1st line
12768 # is EXPORTS), use it as is; otherwise, prepend...
12769 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12770 cp $export_symbols $output_objdir/$soname.def;
12771 else
12772 echo EXPORTS > $output_objdir/$soname.def;
12773 cat $export_symbols >> $output_objdir/$soname.def;
12775 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12776 else
12777 ld_shlibs_FC=no
12781 haiku*)
12782 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12783 link_all_deplibs_FC=yes
12786 interix[3-9]*)
12787 hardcode_direct_FC=no
12788 hardcode_shlibpath_var_FC=no
12789 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
12790 export_dynamic_flag_spec_FC='${wl}-E'
12791 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12792 # Instead, shared libraries are loaded at an image base (0x10000000 by
12793 # default) and relocated if they conflict, which is a slow very memory
12794 # consuming and fragmenting process. To avoid this, we pick a random,
12795 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12796 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12797 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'
12798 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'
12801 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12802 tmp_diet=no
12803 if test "$host_os" = linux-dietlibc; then
12804 case $cc_basename in
12805 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12806 esac
12808 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12809 && test "$tmp_diet" = no
12810 then
12811 tmp_addflag=' $pic_flag'
12812 tmp_sharedflag='-shared'
12813 case $cc_basename,$host_cpu in
12814 pgcc*) # Portland Group C compiler
12815 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'
12816 tmp_addflag=' $pic_flag'
12818 pgf77* | pgf90* | pgf95* | pgfortran*)
12819 # Portland Group f77 and f90 compilers
12820 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'
12821 tmp_addflag=' $pic_flag -Mnomain' ;;
12822 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12823 tmp_addflag=' -i_dynamic' ;;
12824 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12825 tmp_addflag=' -i_dynamic -nofor_main' ;;
12826 ifc* | ifort*) # Intel Fortran compiler
12827 tmp_addflag=' -nofor_main' ;;
12828 lf95*) # Lahey Fortran 8.1
12829 whole_archive_flag_spec_FC=
12830 tmp_sharedflag='--shared' ;;
12831 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12832 tmp_sharedflag='-qmkshrobj'
12833 tmp_addflag= ;;
12834 nvcc*) # Cuda Compiler Driver 2.2
12835 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'
12836 compiler_needs_object_FC=yes
12838 esac
12839 case `$CC -V 2>&1 | sed 5q` in
12840 *Sun\ C*) # Sun C 5.9
12841 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'
12842 compiler_needs_object_FC=yes
12843 tmp_sharedflag='-G' ;;
12844 *Sun\ F*) # Sun Fortran 8.3
12845 tmp_sharedflag='-G' ;;
12846 esac
12847 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12849 if test "x$supports_anon_versioning" = xyes; then
12850 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
12851 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12852 echo "local: *; };" >> $output_objdir/$libname.ver~
12853 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12856 case $cc_basename in
12857 xlf* | bgf* | bgxlf* | mpixlf*)
12858 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12859 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
12860 hardcode_libdir_flag_spec_FC=
12861 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
12862 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12863 if test "x$supports_anon_versioning" = xyes; then
12864 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
12865 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12866 echo "local: *; };" >> $output_objdir/$libname.ver~
12867 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12870 esac
12871 else
12872 ld_shlibs_FC=no
12876 netbsd*)
12877 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12878 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12879 wlarc=
12880 else
12881 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12882 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12886 solaris*)
12887 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12888 ld_shlibs_FC=no
12889 cat <<_LT_EOF 1>&2
12891 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12892 *** create shared libraries on Solaris systems. Therefore, libtool
12893 *** is disabling shared libraries support. We urge you to upgrade GNU
12894 *** binutils to release 2.9.1 or newer. Another option is to modify
12895 *** your PATH or compiler configuration so that the native linker is
12896 *** used, and then restart.
12898 _LT_EOF
12899 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12900 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12901 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12902 else
12903 ld_shlibs_FC=no
12907 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12908 case `$LD -v 2>&1` in
12909 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12910 ld_shlibs_FC=no
12911 cat <<_LT_EOF 1>&2
12913 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12914 *** reliably create shared libraries on SCO systems. Therefore, libtool
12915 *** is disabling shared libraries support. We urge you to upgrade GNU
12916 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12917 *** your PATH or compiler configuration so that the native linker is
12918 *** used, and then restart.
12920 _LT_EOF
12923 # For security reasons, it is highly recommended that you always
12924 # use absolute paths for naming shared libraries, and exclude the
12925 # DT_RUNPATH tag from executables and libraries. But doing so
12926 # requires that you compile everything twice, which is a pain.
12927 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12928 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12929 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12930 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12931 else
12932 ld_shlibs_FC=no
12935 esac
12938 sunos4*)
12939 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12940 wlarc=
12941 hardcode_direct_FC=yes
12942 hardcode_shlibpath_var_FC=no
12946 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12947 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12948 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12949 else
12950 ld_shlibs_FC=no
12953 esac
12955 if test "$ld_shlibs_FC" = no; then
12956 runpath_var=
12957 hardcode_libdir_flag_spec_FC=
12958 export_dynamic_flag_spec_FC=
12959 whole_archive_flag_spec_FC=
12961 else
12962 # PORTME fill in a description of your system's linker (not GNU ld)
12963 case $host_os in
12964 aix3*)
12965 allow_undefined_flag_FC=unsupported
12966 always_export_symbols_FC=yes
12967 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'
12968 # Note: this linker hardcodes the directories in LIBPATH if there
12969 # are no directories specified by -L.
12970 hardcode_minus_L_FC=yes
12971 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12972 # Neither direct hardcoding nor static linking is supported with a
12973 # broken collect2.
12974 hardcode_direct_FC=unsupported
12978 aix[4-9]*)
12979 if test "$host_cpu" = ia64; then
12980 # On IA64, the linker does run time linking by default, so we don't
12981 # have to do anything special.
12982 aix_use_runtimelinking=no
12983 exp_sym_flag='-Bexport'
12984 no_entry_flag=""
12985 else
12986 # If we're using GNU nm, then we don't want the "-C" option.
12987 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12988 # Also, AIX nm treats weak defined symbols like other global
12989 # defined symbols, whereas GNU nm marks them as "W".
12990 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12991 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'
12992 else
12993 export_symbols_cmds_FC='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12995 aix_use_runtimelinking=no
12997 # Test if we are trying to use run time linking or normal
12998 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12999 # need to do runtime linking.
13000 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13001 for ld_flag in $LDFLAGS; do
13002 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13003 aix_use_runtimelinking=yes
13004 break
13006 done
13008 esac
13010 exp_sym_flag='-bexport'
13011 no_entry_flag='-bnoentry'
13014 # When large executables or shared objects are built, AIX ld can
13015 # have problems creating the table of contents. If linking a library
13016 # or program results in "error TOC overflow" add -mminimal-toc to
13017 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13018 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13020 archive_cmds_FC=''
13021 hardcode_direct_FC=yes
13022 hardcode_direct_absolute_FC=yes
13023 hardcode_libdir_separator_FC=':'
13024 link_all_deplibs_FC=yes
13025 file_list_spec_FC='${wl}-f,'
13027 if test "$GCC" = yes; then
13028 case $host_os in aix4.[012]|aix4.[012].*)
13029 # We only want to do this on AIX 4.2 and lower, the check
13030 # below for broken collect2 doesn't work under 4.3+
13031 collect2name=`${CC} -print-prog-name=collect2`
13032 if test -f "$collect2name" &&
13033 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13034 then
13035 # We have reworked collect2
13037 else
13038 # We have old collect2
13039 hardcode_direct_FC=unsupported
13040 # It fails to find uninstalled libraries when the uninstalled
13041 # path is not listed in the libpath. Setting hardcode_minus_L
13042 # to unsupported forces relinking
13043 hardcode_minus_L_FC=yes
13044 hardcode_libdir_flag_spec_FC='-L$libdir'
13045 hardcode_libdir_separator_FC=
13048 esac
13049 shared_flag='-shared'
13050 if test "$aix_use_runtimelinking" = yes; then
13051 shared_flag="$shared_flag "'${wl}-G'
13053 else
13054 # not using gcc
13055 if test "$host_cpu" = ia64; then
13056 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13057 # chokes on -Wl,-G. The following line is correct:
13058 shared_flag='-G'
13059 else
13060 if test "$aix_use_runtimelinking" = yes; then
13061 shared_flag='${wl}-G'
13062 else
13063 shared_flag='${wl}-bM:SRE'
13068 export_dynamic_flag_spec_FC='${wl}-bexpall'
13069 # It seems that -bexpall does not export symbols beginning with
13070 # underscore (_), so it is better to generate a list of symbols to export.
13071 always_export_symbols_FC=yes
13072 if test "$aix_use_runtimelinking" = yes; then
13073 # Warning - without using the other runtime loading flags (-brtl),
13074 # -berok will link without error, but may produce a broken library.
13075 allow_undefined_flag_FC='-berok'
13076 # Determine the default libpath from the value encoded in an
13077 # empty executable.
13078 cat > conftest.$ac_ext <<_ACEOF
13079 program main
13082 _ACEOF
13083 if ac_fn_fc_try_link "$LINENO"; then :
13085 lt_aix_libpath_sed='
13086 /Import File Strings/,/^$/ {
13087 /^0/ {
13088 s/^0 *\(.*\)$/\1/
13092 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13093 # Check for a 64-bit object if we didn't find anything.
13094 if test -z "$aix_libpath"; then
13095 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13098 rm -f core conftest.err conftest.$ac_objext \
13099 conftest$ac_exeext conftest.$ac_ext
13100 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13102 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13103 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"
13104 else
13105 if test "$host_cpu" = ia64; then
13106 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
13107 allow_undefined_flag_FC="-z nodefs"
13108 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"
13109 else
13110 # Determine the default libpath from the value encoded in an
13111 # empty executable.
13112 cat > conftest.$ac_ext <<_ACEOF
13113 program main
13116 _ACEOF
13117 if ac_fn_fc_try_link "$LINENO"; then :
13119 lt_aix_libpath_sed='
13120 /Import File Strings/,/^$/ {
13121 /^0/ {
13122 s/^0 *\(.*\)$/\1/
13126 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13127 # Check for a 64-bit object if we didn't find anything.
13128 if test -z "$aix_libpath"; then
13129 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13132 rm -f core conftest.err conftest.$ac_objext \
13133 conftest$ac_exeext conftest.$ac_ext
13134 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13136 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13137 # Warning - without using the other run time loading flags,
13138 # -berok will link without error, but may produce a broken library.
13139 no_undefined_flag_FC=' ${wl}-bernotok'
13140 allow_undefined_flag_FC=' ${wl}-berok'
13141 if test "$with_gnu_ld" = yes; then
13142 # We only use this code for GNU lds that support --whole-archive.
13143 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13144 else
13145 # Exported symbols can be pulled into shared objects from archives
13146 whole_archive_flag_spec_FC='$convenience'
13148 archive_cmds_need_lc_FC=yes
13149 # This is similar to how AIX traditionally builds its shared libraries.
13150 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'
13155 amigaos*)
13156 case $host_cpu in
13157 powerpc)
13158 # see comment about AmigaOS4 .so support
13159 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13160 archive_expsym_cmds_FC=''
13162 m68k)
13163 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)'
13164 hardcode_libdir_flag_spec_FC='-L$libdir'
13165 hardcode_minus_L_FC=yes
13167 esac
13170 bsdi[45]*)
13171 export_dynamic_flag_spec_FC=-rdynamic
13174 cygwin* | mingw* | pw32* | cegcc*)
13175 # When not using gcc, we currently assume that we are using
13176 # Microsoft Visual C++.
13177 # hardcode_libdir_flag_spec is actually meaningless, as there is
13178 # no search path for DLLs.
13179 hardcode_libdir_flag_spec_FC=' '
13180 allow_undefined_flag_FC=unsupported
13181 # Tell ltmain to make .lib files, not .a files.
13182 libext=lib
13183 # Tell ltmain to make .dll files, not .so files.
13184 shrext_cmds=".dll"
13185 # FIXME: Setting linknames here is a bad hack.
13186 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13187 # The linker will automatically build a .lib file if we build a DLL.
13188 old_archive_from_new_cmds_FC='true'
13189 # FIXME: Should let the user specify the lib program.
13190 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
13191 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
13192 enable_shared_with_static_runtimes_FC=yes
13195 darwin* | rhapsody*)
13198 archive_cmds_need_lc_FC=no
13199 hardcode_direct_FC=no
13200 hardcode_automatic_FC=yes
13201 hardcode_shlibpath_var_FC=unsupported
13202 if test "$lt_cv_ld_force_load" = "yes"; then
13203 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\"`'
13204 else
13205 whole_archive_flag_spec_FC=''
13207 link_all_deplibs_FC=yes
13208 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
13209 case $cc_basename in
13210 ifort*) _lt_dar_can_shared=yes ;;
13211 *) _lt_dar_can_shared=$GCC ;;
13212 esac
13213 if test "$_lt_dar_can_shared" = "yes"; then
13214 output_verbose_link_cmd=func_echo_all
13215 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}"
13216 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13217 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}"
13218 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}"
13220 else
13221 ld_shlibs_FC=no
13226 dgux*)
13227 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13228 hardcode_libdir_flag_spec_FC='-L$libdir'
13229 hardcode_shlibpath_var_FC=no
13232 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13233 # support. Future versions do this automatically, but an explicit c++rt0.o
13234 # does not break anything, and helps significantly (at the cost of a little
13235 # extra space).
13236 freebsd2.2*)
13237 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13238 hardcode_libdir_flag_spec_FC='-R$libdir'
13239 hardcode_direct_FC=yes
13240 hardcode_shlibpath_var_FC=no
13243 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13244 freebsd2.*)
13245 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13246 hardcode_direct_FC=yes
13247 hardcode_minus_L_FC=yes
13248 hardcode_shlibpath_var_FC=no
13251 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13252 freebsd* | dragonfly*)
13253 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13254 hardcode_libdir_flag_spec_FC='-R$libdir'
13255 hardcode_direct_FC=yes
13256 hardcode_shlibpath_var_FC=no
13259 hpux9*)
13260 if test "$GCC" = yes; then
13261 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'
13262 else
13263 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'
13265 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13266 hardcode_libdir_separator_FC=:
13267 hardcode_direct_FC=yes
13269 # hardcode_minus_L: Not really in the search PATH,
13270 # but as the default location of the library.
13271 hardcode_minus_L_FC=yes
13272 export_dynamic_flag_spec_FC='${wl}-E'
13275 hpux10*)
13276 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13277 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13278 else
13279 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13281 if test "$with_gnu_ld" = no; then
13282 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13283 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
13284 hardcode_libdir_separator_FC=:
13285 hardcode_direct_FC=yes
13286 hardcode_direct_absolute_FC=yes
13287 export_dynamic_flag_spec_FC='${wl}-E'
13288 # hardcode_minus_L: Not really in the search PATH,
13289 # but as the default location of the library.
13290 hardcode_minus_L_FC=yes
13294 hpux11*)
13295 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13296 case $host_cpu in
13297 hppa*64*)
13298 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13300 ia64*)
13301 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13304 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13306 esac
13307 else
13308 case $host_cpu in
13309 hppa*64*)
13310 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13312 ia64*)
13313 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13316 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13318 esac
13320 if test "$with_gnu_ld" = no; then
13321 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13322 hardcode_libdir_separator_FC=:
13324 case $host_cpu in
13325 hppa*64*|ia64*)
13326 hardcode_direct_FC=no
13327 hardcode_shlibpath_var_FC=no
13330 hardcode_direct_FC=yes
13331 hardcode_direct_absolute_FC=yes
13332 export_dynamic_flag_spec_FC='${wl}-E'
13334 # hardcode_minus_L: Not really in the search PATH,
13335 # but as the default location of the library.
13336 hardcode_minus_L_FC=yes
13338 esac
13342 irix5* | irix6* | nonstopux*)
13343 if test "$GCC" = yes; then
13344 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'
13345 # Try to use the -exported_symbol ld option, if it does not
13346 # work, assume that -exports_file does not work either and
13347 # implicitly export all symbols.
13348 save_LDFLAGS="$LDFLAGS"
13349 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13350 cat > conftest.$ac_ext <<_ACEOF
13351 int foo(void) {}
13352 _ACEOF
13353 if ac_fn_fc_try_link "$LINENO"; then :
13354 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'
13357 rm -f core conftest.err conftest.$ac_objext \
13358 conftest$ac_exeext conftest.$ac_ext
13359 LDFLAGS="$save_LDFLAGS"
13360 else
13361 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'
13362 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'
13364 archive_cmds_need_lc_FC='no'
13365 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13366 hardcode_libdir_separator_FC=:
13367 inherit_rpath_FC=yes
13368 link_all_deplibs_FC=yes
13371 netbsd*)
13372 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13373 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13374 else
13375 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13377 hardcode_libdir_flag_spec_FC='-R$libdir'
13378 hardcode_direct_FC=yes
13379 hardcode_shlibpath_var_FC=no
13382 newsos6)
13383 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13384 hardcode_direct_FC=yes
13385 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13386 hardcode_libdir_separator_FC=:
13387 hardcode_shlibpath_var_FC=no
13390 *nto* | *qnx*)
13393 openbsd*)
13394 if test -f /usr/libexec/ld.so; then
13395 hardcode_direct_FC=yes
13396 hardcode_shlibpath_var_FC=no
13397 hardcode_direct_absolute_FC=yes
13398 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13399 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13400 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13401 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13402 export_dynamic_flag_spec_FC='${wl}-E'
13403 else
13404 case $host_os in
13405 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13406 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13407 hardcode_libdir_flag_spec_FC='-R$libdir'
13410 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13411 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13413 esac
13415 else
13416 ld_shlibs_FC=no
13420 os2*)
13421 hardcode_libdir_flag_spec_FC='-L$libdir'
13422 hardcode_minus_L_FC=yes
13423 allow_undefined_flag_FC=unsupported
13424 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'
13425 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13428 osf3*)
13429 if test "$GCC" = yes; then
13430 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13431 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'
13432 else
13433 allow_undefined_flag_FC=' -expect_unresolved \*'
13434 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'
13436 archive_cmds_need_lc_FC='no'
13437 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13438 hardcode_libdir_separator_FC=:
13441 osf4* | osf5*) # as osf3* with the addition of -msym flag
13442 if test "$GCC" = yes; then
13443 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13444 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'
13445 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13446 else
13447 allow_undefined_flag_FC=' -expect_unresolved \*'
13448 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'
13449 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~
13450 $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'
13452 # Both c and cxx compiler support -rpath directly
13453 hardcode_libdir_flag_spec_FC='-rpath $libdir'
13455 archive_cmds_need_lc_FC='no'
13456 hardcode_libdir_separator_FC=:
13459 solaris*)
13460 no_undefined_flag_FC=' -z defs'
13461 if test "$GCC" = yes; then
13462 wlarc='${wl}'
13463 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13464 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13465 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13466 else
13467 case `$CC -V 2>&1` in
13468 *"Compilers 5.0"*)
13469 wlarc=''
13470 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13471 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13472 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13475 wlarc='${wl}'
13476 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13477 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13478 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13480 esac
13482 hardcode_libdir_flag_spec_FC='-R$libdir'
13483 hardcode_shlibpath_var_FC=no
13484 case $host_os in
13485 solaris2.[0-5] | solaris2.[0-5].*) ;;
13487 # The compiler driver will combine and reorder linker options,
13488 # but understands `-z linker_flag'. GCC discards it without `$wl',
13489 # but is careful enough not to reorder.
13490 # Supported since Solaris 2.6 (maybe 2.5.1?)
13491 if test "$GCC" = yes; then
13492 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13493 else
13494 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
13497 esac
13498 link_all_deplibs_FC=yes
13501 sunos4*)
13502 if test "x$host_vendor" = xsequent; then
13503 # Use $CC to link under sequent, because it throws in some extra .o
13504 # files that make .init and .fini sections work.
13505 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13506 else
13507 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13509 hardcode_libdir_flag_spec_FC='-L$libdir'
13510 hardcode_direct_FC=yes
13511 hardcode_minus_L_FC=yes
13512 hardcode_shlibpath_var_FC=no
13515 sysv4)
13516 case $host_vendor in
13517 sni)
13518 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13519 hardcode_direct_FC=yes # is this really true???
13521 siemens)
13522 ## LD is ld it makes a PLAMLIB
13523 ## CC just makes a GrossModule.
13524 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13525 reload_cmds_FC='$CC -r -o $output$reload_objs'
13526 hardcode_direct_FC=no
13528 motorola)
13529 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13530 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
13532 esac
13533 runpath_var='LD_RUN_PATH'
13534 hardcode_shlibpath_var_FC=no
13537 sysv4.3*)
13538 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13539 hardcode_shlibpath_var_FC=no
13540 export_dynamic_flag_spec_FC='-Bexport'
13543 sysv4*MP*)
13544 if test -d /usr/nec; then
13545 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13546 hardcode_shlibpath_var_FC=no
13547 runpath_var=LD_RUN_PATH
13548 hardcode_runpath_var=yes
13549 ld_shlibs_FC=yes
13553 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13554 no_undefined_flag_FC='${wl}-z,text'
13555 archive_cmds_need_lc_FC=no
13556 hardcode_shlibpath_var_FC=no
13557 runpath_var='LD_RUN_PATH'
13559 if test "$GCC" = yes; then
13560 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13561 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13562 else
13563 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13564 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13568 sysv5* | sco3.2v5* | sco5v6*)
13569 # Note: We can NOT use -z defs as we might desire, because we do not
13570 # link with -lc, and that would cause any symbols used from libc to
13571 # always be unresolved, which means just about no library would
13572 # ever link correctly. If we're not using GNU ld we use -z text
13573 # though, which does catch some bad symbols but isn't as heavy-handed
13574 # as -z defs.
13575 no_undefined_flag_FC='${wl}-z,text'
13576 allow_undefined_flag_FC='${wl}-z,nodefs'
13577 archive_cmds_need_lc_FC=no
13578 hardcode_shlibpath_var_FC=no
13579 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
13580 hardcode_libdir_separator_FC=':'
13581 link_all_deplibs_FC=yes
13582 export_dynamic_flag_spec_FC='${wl}-Bexport'
13583 runpath_var='LD_RUN_PATH'
13585 if test "$GCC" = yes; then
13586 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13587 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13588 else
13589 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13590 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13594 uts4*)
13595 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13596 hardcode_libdir_flag_spec_FC='-L$libdir'
13597 hardcode_shlibpath_var_FC=no
13601 ld_shlibs_FC=no
13603 esac
13605 if test x$host_vendor = xsni; then
13606 case $host in
13607 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13608 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
13610 esac
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
13615 $as_echo "$ld_shlibs_FC" >&6; }
13616 test "$ld_shlibs_FC" = no && can_build_shared=no
13618 with_gnu_ld_FC=$with_gnu_ld
13626 # Do we need to explicitly link libc?
13628 case "x$archive_cmds_need_lc_FC" in
13629 x|xyes)
13630 # Assume -lc should be added
13631 archive_cmds_need_lc_FC=yes
13633 if test "$enable_shared" = yes && test "$GCC" = yes; then
13634 case $archive_cmds_FC in
13635 *'~'*)
13636 # FIXME: we may have to deal with multi-command sequences.
13638 '$CC '*)
13639 # Test whether the compiler implicitly links with -lc since on some
13640 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13641 # to ld, don't add -lc before -lgcc.
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13643 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13644 if test "${lt_cv_archive_cmds_need_lc_FC+set}" = set; then :
13645 $as_echo_n "(cached) " >&6
13646 else
13647 $RM conftest*
13648 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13650 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13651 (eval $ac_compile) 2>&5
13652 ac_status=$?
13653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13654 test $ac_status = 0; } 2>conftest.err; then
13655 soname=conftest
13656 lib=conftest
13657 libobjs=conftest.$ac_objext
13658 deplibs=
13659 wl=$lt_prog_compiler_wl_FC
13660 pic_flag=$lt_prog_compiler_pic_FC
13661 compiler_flags=-v
13662 linker_flags=-v
13663 verstring=
13664 output_objdir=.
13665 libname=conftest
13666 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
13667 allow_undefined_flag_FC=
13668 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13669 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13670 ac_status=$?
13671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13672 test $ac_status = 0; }
13673 then
13674 lt_cv_archive_cmds_need_lc_FC=no
13675 else
13676 lt_cv_archive_cmds_need_lc_FC=yes
13678 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
13679 else
13680 cat conftest.err 1>&5
13682 $RM conftest*
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
13686 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
13687 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
13689 esac
13692 esac
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13758 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13760 library_names_spec=
13761 libname_spec='lib$name'
13762 soname_spec=
13763 shrext_cmds=".so"
13764 postinstall_cmds=
13765 postuninstall_cmds=
13766 finish_cmds=
13767 finish_eval=
13768 shlibpath_var=
13769 shlibpath_overrides_runpath=unknown
13770 version_type=none
13771 dynamic_linker="$host_os ld.so"
13772 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13773 need_lib_prefix=unknown
13774 hardcode_into_libs=no
13776 # when you set need_version to no, make sure it does not cause -set_version
13777 # flags to be left without arguments
13778 need_version=unknown
13780 case $host_os in
13781 aix3*)
13782 version_type=linux
13783 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13784 shlibpath_var=LIBPATH
13786 # AIX 3 has no versioning support, so we append a major version to the name.
13787 soname_spec='${libname}${release}${shared_ext}$major'
13790 aix[4-9]*)
13791 version_type=linux
13792 need_lib_prefix=no
13793 need_version=no
13794 hardcode_into_libs=yes
13795 if test "$host_cpu" = ia64; then
13796 # AIX 5 supports IA64
13797 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13798 shlibpath_var=LD_LIBRARY_PATH
13799 else
13800 # With GCC up to 2.95.x, collect2 would create an import file
13801 # for dependence libraries. The import file would start with
13802 # the line `#! .'. This would cause the generated library to
13803 # depend on `.', always an invalid library. This was fixed in
13804 # development snapshots of GCC prior to 3.0.
13805 case $host_os in
13806 aix4 | aix4.[01] | aix4.[01].*)
13807 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13808 echo ' yes '
13809 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13811 else
13812 can_build_shared=no
13815 esac
13816 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13817 # soname into executable. Probably we can add versioning support to
13818 # collect2, so additional links can be useful in future.
13819 if test "$aix_use_runtimelinking" = yes; then
13820 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13821 # instead of lib<name>.a to let people know that these are not
13822 # typical AIX shared libraries.
13823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13824 else
13825 # We preserve .a as extension for shared libraries through AIX4.2
13826 # and later when we are not doing run time linking.
13827 library_names_spec='${libname}${release}.a $libname.a'
13828 soname_spec='${libname}${release}${shared_ext}$major'
13830 shlibpath_var=LIBPATH
13834 amigaos*)
13835 case $host_cpu in
13836 powerpc)
13837 # Since July 2007 AmigaOS4 officially supports .so libraries.
13838 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13841 m68k)
13842 library_names_spec='$libname.ixlibrary $libname.a'
13843 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13844 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'
13846 esac
13849 beos*)
13850 library_names_spec='${libname}${shared_ext}'
13851 dynamic_linker="$host_os ld.so"
13852 shlibpath_var=LIBRARY_PATH
13855 bsdi[45]*)
13856 version_type=linux
13857 need_version=no
13858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13859 soname_spec='${libname}${release}${shared_ext}$major'
13860 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13861 shlibpath_var=LD_LIBRARY_PATH
13862 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13863 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13864 # the default ld.so.conf also contains /usr/contrib/lib and
13865 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13866 # libtool to hard-code these into programs
13869 cygwin* | mingw* | pw32* | cegcc*)
13870 version_type=windows
13871 shrext_cmds=".dll"
13872 need_version=no
13873 need_lib_prefix=no
13875 case $GCC,$host_os in
13876 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13877 library_names_spec='$libname.dll.a'
13878 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13879 postinstall_cmds='base_file=`basename \${file}`~
13880 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13881 dldir=$destdir/`dirname \$dlpath`~
13882 test -d \$dldir || mkdir -p \$dldir~
13883 $install_prog $dir/$dlname \$dldir/$dlname~
13884 chmod a+x \$dldir/$dlname~
13885 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13886 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13888 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13889 dlpath=$dir/\$dldll~
13890 $RM \$dlpath'
13891 shlibpath_overrides_runpath=yes
13893 case $host_os in
13894 cygwin*)
13895 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13896 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13899 mingw* | cegcc*)
13900 # MinGW DLLs use traditional 'lib' prefix
13901 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13903 pw32*)
13904 # pw32 DLLs use 'pw' prefix rather than 'lib'
13905 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13907 esac
13911 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13913 esac
13914 dynamic_linker='Win32 ld.exe'
13915 # FIXME: first we should search . and the directory the executable is in
13916 shlibpath_var=PATH
13919 darwin* | rhapsody*)
13920 dynamic_linker="$host_os dyld"
13921 version_type=darwin
13922 need_lib_prefix=no
13923 need_version=no
13924 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13925 soname_spec='${libname}${release}${major}$shared_ext'
13926 shlibpath_overrides_runpath=yes
13927 shlibpath_var=DYLD_LIBRARY_PATH
13928 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13930 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13933 dgux*)
13934 version_type=linux
13935 need_lib_prefix=no
13936 need_version=no
13937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13938 soname_spec='${libname}${release}${shared_ext}$major'
13939 shlibpath_var=LD_LIBRARY_PATH
13942 freebsd* | dragonfly*)
13943 # DragonFly does not have aout. When/if they implement a new
13944 # versioning mechanism, adjust this.
13945 if test -x /usr/bin/objformat; then
13946 objformat=`/usr/bin/objformat`
13947 else
13948 case $host_os in
13949 freebsd[23].*) objformat=aout ;;
13950 *) objformat=elf ;;
13951 esac
13953 version_type=freebsd-$objformat
13954 case $version_type in
13955 freebsd-elf*)
13956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13957 need_version=no
13958 need_lib_prefix=no
13960 freebsd-*)
13961 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13962 need_version=yes
13964 esac
13965 shlibpath_var=LD_LIBRARY_PATH
13966 case $host_os in
13967 freebsd2.*)
13968 shlibpath_overrides_runpath=yes
13970 freebsd3.[01]* | freebsdelf3.[01]*)
13971 shlibpath_overrides_runpath=yes
13972 hardcode_into_libs=yes
13974 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13975 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13976 shlibpath_overrides_runpath=no
13977 hardcode_into_libs=yes
13979 *) # from 4.6 on, and DragonFly
13980 shlibpath_overrides_runpath=yes
13981 hardcode_into_libs=yes
13983 esac
13986 gnu*)
13987 version_type=linux
13988 need_lib_prefix=no
13989 need_version=no
13990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13991 soname_spec='${libname}${release}${shared_ext}$major'
13992 shlibpath_var=LD_LIBRARY_PATH
13993 hardcode_into_libs=yes
13996 haiku*)
13997 version_type=linux
13998 need_lib_prefix=no
13999 need_version=no
14000 dynamic_linker="$host_os runtime_loader"
14001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14002 soname_spec='${libname}${release}${shared_ext}$major'
14003 shlibpath_var=LIBRARY_PATH
14004 shlibpath_overrides_runpath=yes
14005 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14006 hardcode_into_libs=yes
14009 hpux9* | hpux10* | hpux11*)
14010 # Give a soname corresponding to the major version so that dld.sl refuses to
14011 # link against other versions.
14012 version_type=sunos
14013 need_lib_prefix=no
14014 need_version=no
14015 case $host_cpu in
14016 ia64*)
14017 shrext_cmds='.so'
14018 hardcode_into_libs=yes
14019 dynamic_linker="$host_os dld.so"
14020 shlibpath_var=LD_LIBRARY_PATH
14021 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14023 soname_spec='${libname}${release}${shared_ext}$major'
14024 if test "X$HPUX_IA64_MODE" = X32; then
14025 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14026 else
14027 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14029 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14031 hppa*64*)
14032 shrext_cmds='.sl'
14033 hardcode_into_libs=yes
14034 dynamic_linker="$host_os dld.sl"
14035 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14036 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14038 soname_spec='${libname}${release}${shared_ext}$major'
14039 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14040 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14043 shrext_cmds='.sl'
14044 dynamic_linker="$host_os dld.sl"
14045 shlibpath_var=SHLIB_PATH
14046 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14048 soname_spec='${libname}${release}${shared_ext}$major'
14050 esac
14051 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14052 postinstall_cmds='chmod 555 $lib'
14053 # or fails outright, so override atomically:
14054 install_override_mode=555
14057 interix[3-9]*)
14058 version_type=linux
14059 need_lib_prefix=no
14060 need_version=no
14061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14062 soname_spec='${libname}${release}${shared_ext}$major'
14063 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14064 shlibpath_var=LD_LIBRARY_PATH
14065 shlibpath_overrides_runpath=no
14066 hardcode_into_libs=yes
14069 irix5* | irix6* | nonstopux*)
14070 case $host_os in
14071 nonstopux*) version_type=nonstopux ;;
14073 if test "$lt_cv_prog_gnu_ld" = yes; then
14074 version_type=linux
14075 else
14076 version_type=irix
14077 fi ;;
14078 esac
14079 need_lib_prefix=no
14080 need_version=no
14081 soname_spec='${libname}${release}${shared_ext}$major'
14082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14083 case $host_os in
14084 irix5* | nonstopux*)
14085 libsuff= shlibsuff=
14088 case $LD in # libtool.m4 will add one of these switches to LD
14089 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14090 libsuff= shlibsuff= libmagic=32-bit;;
14091 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14092 libsuff=32 shlibsuff=N32 libmagic=N32;;
14093 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14094 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14095 *) libsuff= shlibsuff= libmagic=never-match;;
14096 esac
14098 esac
14099 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14100 shlibpath_overrides_runpath=no
14101 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14102 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14103 hardcode_into_libs=yes
14106 # No shared lib support for Linux oldld, aout, or coff.
14107 linux*oldld* | linux*aout* | linux*coff*)
14108 dynamic_linker=no
14111 # This must be Linux ELF.
14112 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14113 version_type=linux
14114 need_lib_prefix=no
14115 need_version=no
14116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14117 soname_spec='${libname}${release}${shared_ext}$major'
14118 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14119 shlibpath_var=LD_LIBRARY_PATH
14120 shlibpath_overrides_runpath=no
14122 # Some binutils ld are patched to set DT_RUNPATH
14123 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14124 $as_echo_n "(cached) " >&6
14125 else
14126 lt_cv_shlibpath_overrides_runpath=no
14127 save_LDFLAGS=$LDFLAGS
14128 save_libdir=$libdir
14129 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
14130 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
14131 cat > conftest.$ac_ext <<_ACEOF
14132 program main
14135 _ACEOF
14136 if ac_fn_fc_try_link "$LINENO"; then :
14137 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14138 lt_cv_shlibpath_overrides_runpath=yes
14141 rm -f core conftest.err conftest.$ac_objext \
14142 conftest$ac_exeext conftest.$ac_ext
14143 LDFLAGS=$save_LDFLAGS
14144 libdir=$save_libdir
14148 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14150 # This implies no fast_install, which is unacceptable.
14151 # Some rework will be needed to allow for fast_install
14152 # before this can be enabled.
14153 hardcode_into_libs=yes
14155 # Append ld.so.conf contents to the search path
14156 if test -f /etc/ld.so.conf; then
14157 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' ' '`
14158 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14161 # We used to test for /lib/ld.so.1 and disable shared libraries on
14162 # powerpc, because MkLinux only supported shared libraries with the
14163 # GNU dynamic linker. Since this was broken with cross compilers,
14164 # most powerpc-linux boxes support dynamic linking these days and
14165 # people can always --disable-shared, the test was removed, and we
14166 # assume the GNU/Linux dynamic linker is in use.
14167 dynamic_linker='GNU/Linux ld.so'
14170 netbsd*)
14171 version_type=sunos
14172 need_lib_prefix=no
14173 need_version=no
14174 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14176 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14177 dynamic_linker='NetBSD (a.out) ld.so'
14178 else
14179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14180 soname_spec='${libname}${release}${shared_ext}$major'
14181 dynamic_linker='NetBSD ld.elf_so'
14183 shlibpath_var=LD_LIBRARY_PATH
14184 shlibpath_overrides_runpath=yes
14185 hardcode_into_libs=yes
14188 newsos6)
14189 version_type=linux
14190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14191 shlibpath_var=LD_LIBRARY_PATH
14192 shlibpath_overrides_runpath=yes
14195 *nto* | *qnx*)
14196 version_type=qnx
14197 need_lib_prefix=no
14198 need_version=no
14199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14200 soname_spec='${libname}${release}${shared_ext}$major'
14201 shlibpath_var=LD_LIBRARY_PATH
14202 shlibpath_overrides_runpath=no
14203 hardcode_into_libs=yes
14204 dynamic_linker='ldqnx.so'
14207 openbsd*)
14208 version_type=sunos
14209 sys_lib_dlsearch_path_spec="/usr/lib"
14210 need_lib_prefix=no
14211 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14212 case $host_os in
14213 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14214 *) need_version=no ;;
14215 esac
14216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14217 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14218 shlibpath_var=LD_LIBRARY_PATH
14219 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14220 case $host_os in
14221 openbsd2.[89] | openbsd2.[89].*)
14222 shlibpath_overrides_runpath=no
14225 shlibpath_overrides_runpath=yes
14227 esac
14228 else
14229 shlibpath_overrides_runpath=yes
14233 os2*)
14234 libname_spec='$name'
14235 shrext_cmds=".dll"
14236 need_lib_prefix=no
14237 library_names_spec='$libname${shared_ext} $libname.a'
14238 dynamic_linker='OS/2 ld.exe'
14239 shlibpath_var=LIBPATH
14242 osf3* | osf4* | osf5*)
14243 version_type=osf
14244 need_lib_prefix=no
14245 need_version=no
14246 soname_spec='${libname}${release}${shared_ext}$major'
14247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14248 shlibpath_var=LD_LIBRARY_PATH
14249 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14250 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14253 rdos*)
14254 dynamic_linker=no
14257 solaris*)
14258 version_type=linux
14259 need_lib_prefix=no
14260 need_version=no
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
14264 shlibpath_overrides_runpath=yes
14265 hardcode_into_libs=yes
14266 # ldd complains unless libraries are executable
14267 postinstall_cmds='chmod +x $lib'
14270 sunos4*)
14271 version_type=sunos
14272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14273 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14274 shlibpath_var=LD_LIBRARY_PATH
14275 shlibpath_overrides_runpath=yes
14276 if test "$with_gnu_ld" = yes; then
14277 need_lib_prefix=no
14279 need_version=yes
14282 sysv4 | sysv4.3*)
14283 version_type=linux
14284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14285 soname_spec='${libname}${release}${shared_ext}$major'
14286 shlibpath_var=LD_LIBRARY_PATH
14287 case $host_vendor in
14288 sni)
14289 shlibpath_overrides_runpath=no
14290 need_lib_prefix=no
14291 runpath_var=LD_RUN_PATH
14293 siemens)
14294 need_lib_prefix=no
14296 motorola)
14297 need_lib_prefix=no
14298 need_version=no
14299 shlibpath_overrides_runpath=no
14300 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14302 esac
14305 sysv4*MP*)
14306 if test -d /usr/nec ;then
14307 version_type=linux
14308 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14309 soname_spec='$libname${shared_ext}.$major'
14310 shlibpath_var=LD_LIBRARY_PATH
14314 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14315 version_type=freebsd-elf
14316 need_lib_prefix=no
14317 need_version=no
14318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14319 soname_spec='${libname}${release}${shared_ext}$major'
14320 shlibpath_var=LD_LIBRARY_PATH
14321 shlibpath_overrides_runpath=yes
14322 hardcode_into_libs=yes
14323 if test "$with_gnu_ld" = yes; then
14324 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14325 else
14326 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14327 case $host_os in
14328 sco3.2v5*)
14329 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14331 esac
14333 sys_lib_dlsearch_path_spec='/usr/lib'
14336 tpf*)
14337 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14338 version_type=linux
14339 need_lib_prefix=no
14340 need_version=no
14341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14342 shlibpath_var=LD_LIBRARY_PATH
14343 shlibpath_overrides_runpath=no
14344 hardcode_into_libs=yes
14347 uts4*)
14348 version_type=linux
14349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14350 soname_spec='${libname}${release}${shared_ext}$major'
14351 shlibpath_var=LD_LIBRARY_PATH
14355 dynamic_linker=no
14357 esac
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14359 $as_echo "$dynamic_linker" >&6; }
14360 test "$dynamic_linker" = no && can_build_shared=no
14362 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14363 if test "$GCC" = yes; then
14364 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14367 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14368 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14370 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14371 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14412 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14413 hardcode_action_FC=
14414 if test -n "$hardcode_libdir_flag_spec_FC" ||
14415 test -n "$runpath_var_FC" ||
14416 test "X$hardcode_automatic_FC" = "Xyes" ; then
14418 # We can hardcode non-existent directories.
14419 if test "$hardcode_direct_FC" != no &&
14420 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14421 # have to relink, otherwise we might link with an installed library
14422 # when we should be linking with a yet-to-be-installed one
14423 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
14424 test "$hardcode_minus_L_FC" != no; then
14425 # Linking always hardcodes the temporary library directory.
14426 hardcode_action_FC=relink
14427 else
14428 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14429 hardcode_action_FC=immediate
14431 else
14432 # We cannot hardcode anything, or else we can only hardcode existing
14433 # directories.
14434 hardcode_action_FC=unsupported
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
14437 $as_echo "$hardcode_action_FC" >&6; }
14439 if test "$hardcode_action_FC" = relink ||
14440 test "$inherit_rpath_FC" = yes; then
14441 # Fast installation is not supported
14442 enable_fast_install=no
14443 elif test "$shlibpath_overrides_runpath" = yes ||
14444 test "$enable_shared" = no; then
14445 # Fast installation is not necessary
14446 enable_fast_install=needless
14455 fi # test -n "$compiler"
14457 GCC=$lt_save_GCC
14458 CC="$lt_save_CC"
14459 fi # test "$_lt_disable_FC" != yes
14461 ac_ext=c
14462 ac_cpp='$CPP $CPPFLAGS'
14463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14468 FCFLAGS="$FCFLAGS -Wall -L../libgfortran"
14470 # For libtool versioning info, format is CURRENT:REVISION:AGE
14471 libtool_VERSION=1:0:0
14474 # Check header files.
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14476 $as_echo_n "checking for ANSI C header files... " >&6; }
14477 if test "${ac_cv_header_stdc+set}" = set; then :
14478 $as_echo_n "(cached) " >&6
14479 else
14480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14481 /* end confdefs.h. */
14482 #include <stdlib.h>
14483 #include <stdarg.h>
14484 #include <string.h>
14485 #include <float.h>
14488 main ()
14492 return 0;
14494 _ACEOF
14495 if ac_fn_c_try_compile "$LINENO"; then :
14496 ac_cv_header_stdc=yes
14497 else
14498 ac_cv_header_stdc=no
14500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14502 if test $ac_cv_header_stdc = yes; then
14503 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14505 /* end confdefs.h. */
14506 #include <string.h>
14508 _ACEOF
14509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14510 $EGREP "memchr" >/dev/null 2>&1; then :
14512 else
14513 ac_cv_header_stdc=no
14515 rm -f conftest*
14519 if test $ac_cv_header_stdc = yes; then
14520 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14522 /* end confdefs.h. */
14523 #include <stdlib.h>
14525 _ACEOF
14526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14527 $EGREP "free" >/dev/null 2>&1; then :
14529 else
14530 ac_cv_header_stdc=no
14532 rm -f conftest*
14536 if test $ac_cv_header_stdc = yes; then
14537 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14538 if test "$cross_compiling" = yes; then :
14540 else
14541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14542 /* end confdefs.h. */
14543 #include <ctype.h>
14544 #include <stdlib.h>
14545 #if ((' ' & 0x0FF) == 0x020)
14546 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14547 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14548 #else
14549 # define ISLOWER(c) \
14550 (('a' <= (c) && (c) <= 'i') \
14551 || ('j' <= (c) && (c) <= 'r') \
14552 || ('s' <= (c) && (c) <= 'z'))
14553 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14554 #endif
14556 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14558 main ()
14560 int i;
14561 for (i = 0; i < 256; i++)
14562 if (XOR (islower (i), ISLOWER (i))
14563 || toupper (i) != TOUPPER (i))
14564 return 2;
14565 return 0;
14567 _ACEOF
14568 if ac_fn_c_try_run "$LINENO"; then :
14570 else
14571 ac_cv_header_stdc=no
14573 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14574 conftest.$ac_objext conftest.beam conftest.$ac_ext
14579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14580 $as_echo "$ac_cv_header_stdc" >&6; }
14581 if test $ac_cv_header_stdc = yes; then
14583 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14588 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14589 if test "${ac_cv_header_time+set}" = set; then :
14590 $as_echo_n "(cached) " >&6
14591 else
14592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14593 /* end confdefs.h. */
14594 #include <sys/types.h>
14595 #include <sys/time.h>
14596 #include <time.h>
14599 main ()
14601 if ((struct tm *) 0)
14602 return 0;
14604 return 0;
14606 _ACEOF
14607 if ac_fn_c_try_compile "$LINENO"; then :
14608 ac_cv_header_time=yes
14609 else
14610 ac_cv_header_time=no
14612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14615 $as_echo "$ac_cv_header_time" >&6; }
14616 if test $ac_cv_header_time = yes; then
14618 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
14623 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
14624 if test "${gcc_cv_header_string+set}" = set; then :
14625 $as_echo_n "(cached) " >&6
14626 else
14627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14628 /* end confdefs.h. */
14629 #include <string.h>
14630 #include <strings.h>
14632 main ()
14636 return 0;
14638 _ACEOF
14639 if ac_fn_c_try_compile "$LINENO"; then :
14640 gcc_cv_header_string=yes
14641 else
14642 gcc_cv_header_string=no
14644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
14647 $as_echo "$gcc_cv_header_string" >&6; }
14648 if test $gcc_cv_header_string = yes; then
14650 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
14654 for ac_header in pthread.h unistd.h semaphore.h sys/loadavg.h sys/sysctl.h sys/time.h
14655 do :
14656 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14657 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14658 eval as_val=\$$as_ac_Header
14659 if test "x$as_val" = x""yes; then :
14660 cat >>confdefs.h <<_ACEOF
14661 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14662 _ACEOF
14666 done
14671 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
14673 acx_cv_header_stdint=stddef.h
14674 acx_cv_header_stdint_kind="(already complete)"
14675 for i in stdint.h $inttype_headers; do
14676 unset ac_cv_type_uintptr_t
14677 unset ac_cv_type_uintmax_t
14678 unset ac_cv_type_int_least32_t
14679 unset ac_cv_type_int_fast32_t
14680 unset ac_cv_type_uint64_t
14681 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
14682 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
14683 #include <$i>
14685 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
14686 acx_cv_header_stdint=$i
14687 else
14688 continue
14691 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
14692 #include <$i>
14694 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
14696 else
14697 acx_cv_header_stdint_kind="(mostly complete)"
14700 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
14701 #include <$i>
14703 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
14705 else
14706 acx_cv_header_stdint_kind="(mostly complete)"
14709 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
14710 #include <$i>
14712 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
14714 else
14715 acx_cv_header_stdint_kind="(mostly complete)"
14718 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
14719 #include <$i>
14721 if test "x$ac_cv_type_uint64_t" = x""yes; then :
14723 else
14724 acx_cv_header_stdint_kind="(lacks uint64_t)"
14727 break
14728 done
14729 if test "$acx_cv_header_stdint" = stddef.h; then
14730 acx_cv_header_stdint_kind="(lacks uintmax_t)"
14731 for i in stdint.h $inttype_headers; do
14732 unset ac_cv_type_uintptr_t
14733 unset ac_cv_type_uint32_t
14734 unset ac_cv_type_uint64_t
14735 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
14736 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
14737 #include <$i>
14739 if test "x$ac_cv_type_uint32_t" = x""yes; then :
14740 acx_cv_header_stdint=$i
14741 else
14742 continue
14745 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
14746 #include <$i>
14748 if test "x$ac_cv_type_uint64_t" = x""yes; then :
14752 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
14753 #include <$i>
14755 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
14759 break
14760 done
14762 if test "$acx_cv_header_stdint" = stddef.h; then
14763 acx_cv_header_stdint_kind="(u_intXX_t style)"
14764 for i in sys/types.h $inttype_headers; do
14765 unset ac_cv_type_u_int32_t
14766 unset ac_cv_type_u_int64_t
14767 $as_echo_n "looking for u_intXX_t types in $i, " >&6
14768 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
14769 #include <$i>
14771 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
14772 acx_cv_header_stdint=$i
14773 else
14774 continue
14777 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
14778 #include <$i>
14780 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
14784 break
14785 done
14787 if test "$acx_cv_header_stdint" = stddef.h; then
14788 acx_cv_header_stdint_kind="(using manual detection)"
14791 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
14792 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
14793 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
14794 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
14795 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
14797 # ----------------- Summarize what we found so far
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
14800 $as_echo_n "checking what to include in gstdint.h... " >&6; }
14802 case `$as_basename -- gstdint.h ||
14803 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
14804 Xgstdint.h : 'X\(//\)$' \| \
14805 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
14806 $as_echo X/gstdint.h |
14807 sed '/^.*\/\([^/][^/]*\)\/*$/{
14808 s//\1/
14811 /^X\/\(\/\/\)$/{
14812 s//\1/
14815 /^X\/\(\/\).*/{
14816 s//\1/
14819 s/.*/./; q'` in
14820 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
14821 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14822 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
14823 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14824 *) ;;
14825 esac
14827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
14828 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
14830 # ----------------- done included file, check C basic types --------
14832 # Lacking an uintptr_t? Test size of void *
14833 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
14834 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
14835 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14836 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14837 # This bug is HP SR number 8606223364.
14838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
14839 $as_echo_n "checking size of void *... " >&6; }
14840 if test "${ac_cv_sizeof_void_p+set}" = set; then :
14841 $as_echo_n "(cached) " >&6
14842 else
14843 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
14845 else
14846 if test "$ac_cv_type_void_p" = yes; then
14847 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14848 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14849 { as_fn_set_status 77
14850 as_fn_error "cannot compute sizeof (void *)
14851 See \`config.log' for more details." "$LINENO" 5; }; }
14852 else
14853 ac_cv_sizeof_void_p=0
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
14859 $as_echo "$ac_cv_sizeof_void_p" >&6; }
14863 cat >>confdefs.h <<_ACEOF
14864 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14865 _ACEOF
14868 esac
14870 # Lacking an uint64_t? Test size of long
14871 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
14872 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
14873 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14874 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14875 # This bug is HP SR number 8606223364.
14876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
14877 $as_echo_n "checking size of long... " >&6; }
14878 if test "${ac_cv_sizeof_long+set}" = set; then :
14879 $as_echo_n "(cached) " >&6
14880 else
14881 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
14883 else
14884 if test "$ac_cv_type_long" = yes; then
14885 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14886 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14887 { as_fn_set_status 77
14888 as_fn_error "cannot compute sizeof (long)
14889 See \`config.log' for more details." "$LINENO" 5; }; }
14890 else
14891 ac_cv_sizeof_long=0
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
14897 $as_echo "$ac_cv_sizeof_long" >&6; }
14901 cat >>confdefs.h <<_ACEOF
14902 #define SIZEOF_LONG $ac_cv_sizeof_long
14903 _ACEOF
14906 esac
14908 if test $acx_cv_header_stdint = stddef.h; then
14909 # Lacking a good header? Test size of everything and deduce all types.
14910 # The cast to long int works around a bug in the HP C Compiler
14911 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14912 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14913 # This bug is HP SR number 8606223364.
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
14915 $as_echo_n "checking size of int... " >&6; }
14916 if test "${ac_cv_sizeof_int+set}" = set; then :
14917 $as_echo_n "(cached) " >&6
14918 else
14919 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
14921 else
14922 if test "$ac_cv_type_int" = yes; then
14923 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14924 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14925 { as_fn_set_status 77
14926 as_fn_error "cannot compute sizeof (int)
14927 See \`config.log' for more details." "$LINENO" 5; }; }
14928 else
14929 ac_cv_sizeof_int=0
14934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
14935 $as_echo "$ac_cv_sizeof_int" >&6; }
14939 cat >>confdefs.h <<_ACEOF
14940 #define SIZEOF_INT $ac_cv_sizeof_int
14941 _ACEOF
14944 # The cast to long int works around a bug in the HP C Compiler
14945 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14946 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14947 # This bug is HP SR number 8606223364.
14948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
14949 $as_echo_n "checking size of short... " >&6; }
14950 if test "${ac_cv_sizeof_short+set}" = set; then :
14951 $as_echo_n "(cached) " >&6
14952 else
14953 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
14955 else
14956 if test "$ac_cv_type_short" = yes; then
14957 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14958 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14959 { as_fn_set_status 77
14960 as_fn_error "cannot compute sizeof (short)
14961 See \`config.log' for more details." "$LINENO" 5; }; }
14962 else
14963 ac_cv_sizeof_short=0
14968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
14969 $as_echo "$ac_cv_sizeof_short" >&6; }
14973 cat >>confdefs.h <<_ACEOF
14974 #define SIZEOF_SHORT $ac_cv_sizeof_short
14975 _ACEOF
14978 # The cast to long int works around a bug in the HP C Compiler
14979 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14980 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14981 # This bug is HP SR number 8606223364.
14982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
14983 $as_echo_n "checking size of char... " >&6; }
14984 if test "${ac_cv_sizeof_char+set}" = set; then :
14985 $as_echo_n "(cached) " >&6
14986 else
14987 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
14989 else
14990 if test "$ac_cv_type_char" = yes; then
14991 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14992 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14993 { as_fn_set_status 77
14994 as_fn_error "cannot compute sizeof (char)
14995 See \`config.log' for more details." "$LINENO" 5; }; }
14996 else
14997 ac_cv_sizeof_char=0
15002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
15003 $as_echo "$ac_cv_sizeof_char" >&6; }
15007 cat >>confdefs.h <<_ACEOF
15008 #define SIZEOF_CHAR $ac_cv_sizeof_char
15009 _ACEOF
15013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
15014 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
15015 case "$ac_cv_sizeof_char" in
15016 1) acx_cv_type_int8_t=char ;;
15017 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
15018 esac
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
15020 $as_echo "$acx_cv_type_int8_t" >&6; }
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
15023 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
15024 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
15025 2:*) acx_cv_type_int16_t=int ;;
15026 *:2) acx_cv_type_int16_t=short ;;
15027 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
15028 esac
15029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
15030 $as_echo "$acx_cv_type_int16_t" >&6; }
15032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
15033 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
15034 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
15035 4:*) acx_cv_type_int32_t=int ;;
15036 *:4) acx_cv_type_int32_t=long ;;
15037 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
15038 esac
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
15040 $as_echo "$acx_cv_type_int32_t" >&6; }
15043 # These tests are here to make the output prettier
15045 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
15046 case "$ac_cv_sizeof_long" in
15047 8) acx_cv_type_int64_t=long ;;
15048 esac
15049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
15050 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
15051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
15052 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
15055 # Now we can use the above types
15057 if test "$ac_cv_type_uintptr_t" != yes; then
15058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
15059 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
15060 case $ac_cv_sizeof_void_p in
15061 2) acx_cv_type_intptr_t=int16_t ;;
15062 4) acx_cv_type_intptr_t=int32_t ;;
15063 8) acx_cv_type_intptr_t=int64_t ;;
15064 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
15065 esac
15066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
15067 $as_echo "$acx_cv_type_intptr_t" >&6; }
15070 # ----------------- done all checks, emit header -------------
15071 ac_config_commands="$ac_config_commands gstdint.h"
15076 XPCFLAGS=""
15077 case "$host" in
15078 *-*-rtems*)
15079 # RTEMS supports Pthreads, but the library is not available at GCC build time.
15081 nvptx*-*-*)
15082 # NVPTX does not support Pthreads, has its own code replacement.
15083 libgomp_use_pthreads=no
15084 # NVPTX is an accelerator-only target
15085 libgomp_offloaded_only=yes
15088 # Check to see if -pthread or -lpthread is needed. Prefer the former.
15089 # In case the pthread.h system header is not found, this test will fail.
15090 CFLAGS="$CFLAGS -pthread"
15091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15092 /* end confdefs.h. */
15093 #include <pthread.h>
15094 void *g(void *d) { return NULL; }
15096 main ()
15098 pthread_t t; pthread_create(&t,NULL,g,NULL);
15100 return 0;
15102 _ACEOF
15103 if ac_fn_c_try_link "$LINENO"; then :
15104 XPCFLAGS=" -Wc,-pthread"
15105 else
15106 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
15107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15108 /* end confdefs.h. */
15109 #include <pthread.h>
15110 void *g(void *d) { return NULL; }
15112 main ()
15114 pthread_t t; pthread_create(&t,NULL,g,NULL);
15116 return 0;
15118 _ACEOF
15119 if ac_fn_c_try_link "$LINENO"; then :
15121 else
15122 as_fn_error "Pthreads are required to build libgomp" "$LINENO" 5
15124 rm -f core conftest.err conftest.$ac_objext \
15125 conftest$ac_exeext conftest.$ac_ext
15127 rm -f core conftest.err conftest.$ac_objext \
15128 conftest$ac_exeext conftest.$ac_ext
15129 esac
15131 if test x$libgomp_use_pthreads != xno; then
15133 $as_echo "#define LIBGOMP_USE_PTHREADS 1" >>confdefs.h
15137 if test x$libgomp_offloaded_only = xyes; then
15139 $as_echo "#define LIBGOMP_OFFLOADED_ONLY 1" >>confdefs.h
15143 # Plugins for offload execution, configure.ac fragment. -*- mode: autoconf -*-
15145 # Copyright (C) 2014-2018 Free Software Foundation, Inc.
15147 # Contributed by Mentor Embedded.
15149 # This file is part of the GNU Offloading and Multi Processing Library
15150 # (libgomp).
15152 # Libgomp is free software; you can redistribute it and/or modify it
15153 # under the terms of the GNU General Public License as published by
15154 # the Free Software Foundation; either version 3, or (at your option)
15155 # any later version.
15157 # Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY
15158 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15159 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15160 # more details.
15162 # Under Section 7 of GPL version 3, you are granted additional
15163 # permissions described in the GCC Runtime Library Exception, version
15164 # 3.1, as published by the Free Software Foundation.
15166 # You should have received a copy of the GNU General Public License and
15167 # a copy of the GCC Runtime Library Exception along with this program;
15168 # see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
15169 # <http://www.gnu.org/licenses/>.
15171 offload_targets=
15173 plugin_support=yes
15174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
15175 $as_echo_n "checking for dlsym in -ldl... " >&6; }
15176 if test "${ac_cv_lib_dl_dlsym+set}" = set; then :
15177 $as_echo_n "(cached) " >&6
15178 else
15179 ac_check_lib_save_LIBS=$LIBS
15180 LIBS="-ldl $LIBS"
15181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15182 /* end confdefs.h. */
15184 /* Override any GCC internal prototype to avoid an error.
15185 Use char because int might match the return type of a GCC
15186 builtin and then its argument prototype would still apply. */
15187 #ifdef __cplusplus
15188 extern "C"
15189 #endif
15190 char dlsym ();
15192 main ()
15194 return dlsym ();
15196 return 0;
15198 _ACEOF
15199 if ac_fn_c_try_link "$LINENO"; then :
15200 ac_cv_lib_dl_dlsym=yes
15201 else
15202 ac_cv_lib_dl_dlsym=no
15204 rm -f core conftest.err conftest.$ac_objext \
15205 conftest$ac_exeext conftest.$ac_ext
15206 LIBS=$ac_check_lib_save_LIBS
15208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
15209 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
15210 if test "x$ac_cv_lib_dl_dlsym" = x""yes; then :
15211 cat >>confdefs.h <<_ACEOF
15212 #define HAVE_LIBDL 1
15213 _ACEOF
15215 LIBS="-ldl $LIBS"
15217 else
15218 plugin_support=no
15221 if test x"$plugin_support" = xyes; then
15223 $as_echo "#define PLUGIN_SUPPORT 1" >>confdefs.h
15225 elif test "x${enable_offload_targets-no}" != xno; then
15226 as_fn_error "Can't support offloading without support for plugins" "$LINENO" 5
15231 for ac_header in $ac_header_list
15232 do :
15233 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15234 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15236 eval as_val=\$$as_ac_Header
15237 if test "x$as_val" = x""yes; then :
15238 cat >>confdefs.h <<_ACEOF
15239 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15240 _ACEOF
15244 done
15252 for ac_func in $ac_func_list
15253 do :
15254 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15255 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15256 eval as_val=\$$as_ac_var
15257 if test "x$as_val" = x""yes; then :
15258 cat >>confdefs.h <<_ACEOF
15259 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15260 _ACEOF
15263 done
15280 # Look for the CUDA driver package.
15281 CUDA_DRIVER_INCLUDE=
15282 CUDA_DRIVER_LIB=
15285 CUDA_DRIVER_CPPFLAGS=
15286 CUDA_DRIVER_LDFLAGS=
15288 # Check whether --with-cuda-driver was given.
15289 if test "${with_cuda_driver+set}" = set; then :
15290 withval=$with_cuda_driver;
15294 # Check whether --with-cuda-driver-include was given.
15295 if test "${with_cuda_driver_include+set}" = set; then :
15296 withval=$with_cuda_driver_include;
15300 # Check whether --with-cuda-driver-lib was given.
15301 if test "${with_cuda_driver_lib+set}" = set; then :
15302 withval=$with_cuda_driver_lib;
15305 case "x$with_cuda_driver" in
15306 x | xno) ;;
15307 *) CUDA_DRIVER_INCLUDE=$with_cuda_driver/include
15308 CUDA_DRIVER_LIB=$with_cuda_driver/lib
15310 esac
15311 if test "x$with_cuda_driver_include" != x; then
15312 CUDA_DRIVER_INCLUDE=$with_cuda_driver_include
15314 if test "x$with_cuda_driver_lib" != x; then
15315 CUDA_DRIVER_LIB=$with_cuda_driver_lib
15317 if test "x$CUDA_DRIVER_INCLUDE" != x; then
15318 CUDA_DRIVER_CPPFLAGS=-I$CUDA_DRIVER_INCLUDE
15320 if test "x$CUDA_DRIVER_LIB" != x; then
15321 CUDA_DRIVER_LDFLAGS=-L$CUDA_DRIVER_LIB
15324 PLUGIN_NVPTX=0
15325 PLUGIN_NVPTX_CPPFLAGS=
15326 PLUGIN_NVPTX_LDFLAGS=
15327 PLUGIN_NVPTX_LIBS=
15328 PLUGIN_NVPTX_DYNAMIC=0
15334 # Look for HSA run-time, its includes and libraries
15336 HSA_RUNTIME_INCLUDE=
15337 HSA_RUNTIME_LIB=
15340 HSA_RUNTIME_CPPFLAGS=
15341 HSA_RUNTIME_LDFLAGS=
15344 # Check whether --with-hsa-runtime was given.
15345 if test "${with_hsa_runtime+set}" = set; then :
15346 withval=$with_hsa_runtime;
15350 # Check whether --with-hsa-runtime-include was given.
15351 if test "${with_hsa_runtime_include+set}" = set; then :
15352 withval=$with_hsa_runtime_include;
15356 # Check whether --with-hsa-runtime-lib was given.
15357 if test "${with_hsa_runtime_lib+set}" = set; then :
15358 withval=$with_hsa_runtime_lib;
15361 if test "x$with_hsa_runtime" != x; then
15362 HSA_RUNTIME_INCLUDE=$with_hsa_runtime/include
15363 HSA_RUNTIME_LIB=$with_hsa_runtime/lib
15365 if test "x$with_hsa_runtime_include" != x; then
15366 HSA_RUNTIME_INCLUDE=$with_hsa_runtime_include
15368 if test "x$with_hsa_runtime_lib" != x; then
15369 HSA_RUNTIME_LIB=$with_hsa_runtime_lib
15371 if test "x$HSA_RUNTIME_INCLUDE" != x; then
15372 HSA_RUNTIME_CPPFLAGS=-I$HSA_RUNTIME_INCLUDE
15374 if test "x$HSA_RUNTIME_LIB" != x; then
15375 HSA_RUNTIME_LDFLAGS=-L$HSA_RUNTIME_LIB
15378 PLUGIN_HSA=0
15379 PLUGIN_HSA_CPPFLAGS=
15380 PLUGIN_HSA_LDFLAGS=
15381 PLUGIN_HSA_LIBS=
15387 # Get offload targets and path to install tree of offloading compiler.
15388 offload_additional_options=
15389 offload_additional_lib_paths=
15392 if test x"$enable_offload_targets" != x; then
15393 for tgt in `echo $enable_offload_targets | sed -e 's#,# #g'`; do
15394 tgt_dir=`echo $tgt | grep '=' | sed 's/.*=//'`
15395 tgt=`echo $tgt | sed 's/=.*//'`
15396 tgt_name=
15397 case $tgt in
15398 *-intelmic-* | *-intelmicemul-*)
15399 tgt_name=intelmic
15401 nvptx*)
15402 tgt_name=nvptx
15403 PLUGIN_NVPTX=$tgt
15404 PLUGIN_NVPTX_CPPFLAGS=$CUDA_DRIVER_CPPFLAGS
15405 PLUGIN_NVPTX_LDFLAGS=$CUDA_DRIVER_LDFLAGS
15406 PLUGIN_NVPTX_LIBS='-lcuda'
15408 PLUGIN_NVPTX_save_CPPFLAGS=$CPPFLAGS
15409 CPPFLAGS="$PLUGIN_NVPTX_CPPFLAGS $CPPFLAGS"
15410 PLUGIN_NVPTX_save_LDFLAGS=$LDFLAGS
15411 LDFLAGS="$PLUGIN_NVPTX_LDFLAGS $LDFLAGS"
15412 PLUGIN_NVPTX_save_LIBS=$LIBS
15413 LIBS="$PLUGIN_NVPTX_LIBS $LIBS"
15414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15415 /* end confdefs.h. */
15416 #include "cuda.h"
15418 main ()
15420 CUresult r = cuCtxPushCurrent (NULL);
15422 return 0;
15424 _ACEOF
15425 if ac_fn_c_try_link "$LINENO"; then :
15426 PLUGIN_NVPTX=1
15428 rm -f core conftest.err conftest.$ac_objext \
15429 conftest$ac_exeext conftest.$ac_ext
15430 CPPFLAGS=$PLUGIN_NVPTX_save_CPPFLAGS
15431 LDFLAGS=$PLUGIN_NVPTX_save_LDFLAGS
15432 LIBS=$PLUGIN_NVPTX_save_LIBS
15433 case $PLUGIN_NVPTX in
15434 nvptx*)
15435 if test "x$CUDA_DRIVER_INCLUDE" = x \
15436 && test "x$CUDA_DRIVER_LIB" = x; then
15437 PLUGIN_NVPTX=1
15438 PLUGIN_NVPTX_CPPFLAGS='-I$(srcdir)/plugin/cuda'
15439 PLUGIN_NVPTX_LIBS='-ldl'
15440 PLUGIN_NVPTX_DYNAMIC=1
15441 else
15442 PLUGIN_NVPTX=0
15443 as_fn_error "CUDA driver package required for nvptx support" "$LINENO" 5
15446 esac
15448 hsa*)
15449 case "${target}" in
15450 x86_64-*-*)
15451 case " ${CC} ${CFLAGS} " in
15452 *" -m32 "*)
15453 PLUGIN_HSA=0
15456 tgt_name=hsa
15457 PLUGIN_HSA=$tgt
15458 PLUGIN_HSA_CPPFLAGS=$HSA_RUNTIME_CPPFLAGS
15459 PLUGIN_HSA_LDFLAGS="$HSA_RUNTIME_LDFLAGS"
15460 PLUGIN_HSA_LIBS="-ldl"
15462 PLUGIN_HSA_save_CPPFLAGS=$CPPFLAGS
15463 CPPFLAGS="$PLUGIN_HSA_CPPFLAGS $CPPFLAGS"
15464 PLUGIN_HSA_save_LDFLAGS=$LDFLAGS
15465 LDFLAGS="$PLUGIN_HSA_LDFLAGS $LDFLAGS"
15466 PLUGIN_HSA_save_LIBS=$LIBS
15467 LIBS="$PLUGIN_HSA_LIBS $LIBS"
15469 PLUGIN_HSA=1
15470 CPPFLAGS=$PLUGIN_HSA_save_CPPFLAGS
15471 LDFLAGS=$PLUGIN_HSA_save_LDFLAGS
15472 LIBS=$PLUGIN_HSA_save_LIBS
15473 case $PLUGIN_HSA in
15474 hsa*)
15475 HSA_PLUGIN=0
15476 as_fn_error "HSA run-time package required for HSA support" "$LINENO" 5
15478 esac
15480 esac
15482 *-*-*)
15483 PLUGIN_HSA=0
15485 esac
15488 as_fn_error "unknown offload target specified" "$LINENO" 5
15490 esac
15491 if test x"$tgt_name" = x; then
15492 # Don't configure libgomp for this offloading target if we don't build
15493 # the corresponding plugin.
15494 continue
15495 elif test x"$offload_targets" = x; then
15496 offload_targets=$tgt_name
15497 else
15498 offload_targets=$offload_targets,$tgt_name
15500 if test "$tgt_name" = hsa; then
15501 # Offloading compilation is all handled by the target compiler.
15503 elif test x"$tgt_dir" != x; then
15504 offload_additional_options="$offload_additional_options -B$tgt_dir/libexec/gcc/\$(target_alias)/\$(gcc_version) -B$tgt_dir/bin"
15505 offload_additional_lib_paths="$offload_additional_lib_paths:$tgt_dir/lib64:$tgt_dir/lib:$tgt_dir/lib32"
15506 else
15507 offload_additional_options="$offload_additional_options -B\$(libexecdir)/gcc/\$(target_alias)/\$(gcc_version) -B\$(bindir)"
15508 offload_additional_lib_paths="$offload_additional_lib_paths:$toolexeclibdir"
15510 done
15513 cat >>confdefs.h <<_ACEOF
15514 #define OFFLOAD_TARGETS "$offload_targets"
15515 _ACEOF
15517 if test $PLUGIN_NVPTX = 1; then
15518 PLUGIN_NVPTX_TRUE=
15519 PLUGIN_NVPTX_FALSE='#'
15520 else
15521 PLUGIN_NVPTX_TRUE='#'
15522 PLUGIN_NVPTX_FALSE=
15526 cat >>confdefs.h <<_ACEOF
15527 #define PLUGIN_NVPTX $PLUGIN_NVPTX
15528 _ACEOF
15531 cat >>confdefs.h <<_ACEOF
15532 #define PLUGIN_NVPTX_DYNAMIC $PLUGIN_NVPTX_DYNAMIC
15533 _ACEOF
15535 if test $PLUGIN_HSA = 1; then
15536 PLUGIN_HSA_TRUE=
15537 PLUGIN_HSA_FALSE='#'
15538 else
15539 PLUGIN_HSA_TRUE='#'
15540 PLUGIN_HSA_FALSE=
15544 cat >>confdefs.h <<_ACEOF
15545 #define PLUGIN_HSA $PLUGIN_HSA
15546 _ACEOF
15549 if test "$HSA_RUNTIME_LIB" != ""; then
15550 HSA_RUNTIME_LIB="$HSA_RUNTIME_LIB/"
15554 cat >>confdefs.h <<_ACEOF
15555 #define HSA_RUNTIME_LIB "$HSA_RUNTIME_LIB"
15556 _ACEOF
15560 # Check for functions needed.
15561 for ac_func in getloadavg clock_gettime strtoull
15562 do :
15563 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15564 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15565 eval as_val=\$$as_ac_var
15566 if test "x$as_val" = x""yes; then :
15567 cat >>confdefs.h <<_ACEOF
15568 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15569 _ACEOF
15572 done
15575 # Check for broken semaphore implementation on darwin.
15576 # sem_init returns: sem_init error: Function not implemented.
15577 case "$host" in
15578 *-darwin*)
15580 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
15583 esac
15585 # RTEMS specific checks
15586 case "$host" in
15587 *-*-rtems*)
15588 ac_fn_c_check_type "$LINENO" "struct _Mutex_Control" "ac_cv_type_struct__Mutex_Control" "#include <sys/lock.h>
15590 if test "x$ac_cv_type_struct__Mutex_Control" = x""yes; then :
15592 cat >>confdefs.h <<_ACEOF
15593 #define HAVE_STRUCT__MUTEX_CONTROL 1
15594 _ACEOF
15600 esac
15602 # Check whether --enable-linux-futex was given.
15603 if test "${enable_linux_futex+set}" = set; then :
15604 enableval=$enable_linux_futex;
15605 case "$enableval" in
15606 yes|no|default) ;;
15607 *) as_fn_error "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
15608 esac
15610 else
15611 enable_linux_futex=default
15615 case "$target" in
15616 *-linux*)
15617 case "$enable_linux_futex" in
15618 default)
15619 # If headers don't have gettid/futex syscalls definition, then
15620 # default to no, otherwise there will be compile time failures.
15621 # Otherwise, default to yes. If we don't detect we are
15622 # compiled/linked against NPTL and not cross-compiling, check
15623 # if programs are run by default against NPTL and if not, issue
15624 # a warning.
15625 enable_linux_futex=no
15626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15627 /* end confdefs.h. */
15628 #include <sys/syscall.h>
15629 int lk;
15631 main ()
15633 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15635 return 0;
15637 _ACEOF
15638 if ac_fn_c_try_link "$LINENO"; then :
15639 save_LIBS="$LIBS"
15640 LIBS="-lpthread $LIBS"
15641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15642 /* end confdefs.h. */
15643 #ifndef _GNU_SOURCE
15644 #define _GNU_SOURCE 1
15645 #endif
15646 #include <pthread.h>
15647 pthread_t th; void *status;
15649 main ()
15651 pthread_tryjoin_np (th, &status);
15653 return 0;
15655 _ACEOF
15656 if ac_fn_c_try_link "$LINENO"; then :
15657 enable_linux_futex=yes
15658 else
15659 if test x$cross_compiling = xno; then
15660 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
15661 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
15662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
15663 If so, please configure with --disable-linux-futex" >&5
15664 $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
15665 If so, please configure with --disable-linux-futex" >&2;}
15668 enable_linux_futex=yes
15670 rm -f core conftest.err conftest.$ac_objext \
15671 conftest$ac_exeext conftest.$ac_ext
15672 LIBS="$save_LIBS"
15674 rm -f core conftest.err conftest.$ac_objext \
15675 conftest$ac_exeext conftest.$ac_ext
15677 yes)
15678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15679 /* end confdefs.h. */
15680 #include <sys/syscall.h>
15681 int lk;
15683 main ()
15685 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15687 return 0;
15689 _ACEOF
15690 if ac_fn_c_try_link "$LINENO"; then :
15692 else
15693 as_fn_error "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
15695 rm -f core conftest.err conftest.$ac_objext \
15696 conftest$ac_exeext conftest.$ac_ext
15698 esac
15701 enable_linux_futex=no
15703 esac
15704 if test x$enable_linux_futex = xyes; then
15709 # Check for pthread_{,attr_}[sg]etaffinity_np.
15710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15711 /* end confdefs.h. */
15712 #define _GNU_SOURCE
15713 #include <pthread.h>
15715 main ()
15717 cpu_set_t cpuset;
15718 pthread_attr_t attr;
15719 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15720 if (CPU_ISSET (0, &cpuset))
15721 CPU_SET (1, &cpuset);
15722 else
15723 CPU_ZERO (&cpuset);
15724 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15725 pthread_attr_init (&attr);
15726 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15727 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15729 return 0;
15731 _ACEOF
15732 if ac_fn_c_try_link "$LINENO"; then :
15734 $as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h
15737 rm -f core conftest.err conftest.$ac_objext \
15738 conftest$ac_exeext conftest.$ac_ext
15740 # At least for glibc, clock_gettime is in librt. But don't pull that
15741 # in if it still doesn't give us the function we want.
15742 if test $ac_cv_func_clock_gettime = no; then
15743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
15744 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
15745 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
15746 $as_echo_n "(cached) " >&6
15747 else
15748 ac_check_lib_save_LIBS=$LIBS
15749 LIBS="-lrt $LIBS"
15750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15751 /* end confdefs.h. */
15753 /* Override any GCC internal prototype to avoid an error.
15754 Use char because int might match the return type of a GCC
15755 builtin and then its argument prototype would still apply. */
15756 #ifdef __cplusplus
15757 extern "C"
15758 #endif
15759 char clock_gettime ();
15761 main ()
15763 return clock_gettime ();
15765 return 0;
15767 _ACEOF
15768 if ac_fn_c_try_link "$LINENO"; then :
15769 ac_cv_lib_rt_clock_gettime=yes
15770 else
15771 ac_cv_lib_rt_clock_gettime=no
15773 rm -f core conftest.err conftest.$ac_objext \
15774 conftest$ac_exeext conftest.$ac_ext
15775 LIBS=$ac_check_lib_save_LIBS
15777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
15778 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15779 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
15780 LIBS="-lrt $LIBS"
15782 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
15788 # See if we support thread-local storage.
15791 # Check whether --enable-tls was given.
15792 if test "${enable_tls+set}" = set; then :
15793 enableval=$enable_tls;
15794 case "$enableval" in
15795 yes|no) ;;
15796 *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
15797 esac
15799 else
15800 enable_tls=yes
15804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
15805 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
15806 if test "${gcc_cv_have_tls+set}" = set; then :
15807 $as_echo_n "(cached) " >&6
15808 else
15810 if test "$cross_compiling" = yes; then :
15811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15812 /* end confdefs.h. */
15813 __thread int a; int b; int main() { return a = b; }
15814 _ACEOF
15815 if ac_fn_c_try_link "$LINENO"; then :
15816 chktls_save_LDFLAGS="$LDFLAGS"
15817 case $host in
15818 *-*-linux*)
15819 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
15821 esac
15822 chktls_save_CFLAGS="$CFLAGS"
15823 CFLAGS="-fPIC $CFLAGS"
15824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15825 /* end confdefs.h. */
15826 int f() { return 0; }
15827 _ACEOF
15828 if ac_fn_c_try_link "$LINENO"; then :
15829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15830 /* end confdefs.h. */
15831 __thread int a; int b; int f() { return a = b; }
15832 _ACEOF
15833 if ac_fn_c_try_link "$LINENO"; then :
15834 gcc_cv_have_tls=yes
15835 else
15836 gcc_cv_have_tls=no
15838 rm -f core conftest.err conftest.$ac_objext \
15839 conftest$ac_exeext conftest.$ac_ext
15840 else
15841 gcc_cv_have_tls=yes
15843 rm -f core conftest.err conftest.$ac_objext \
15844 conftest$ac_exeext conftest.$ac_ext
15845 CFLAGS="$chktls_save_CFLAGS"
15846 LDFLAGS="$chktls_save_LDFLAGS"
15847 else
15848 gcc_cv_have_tls=no
15850 rm -f core conftest.err conftest.$ac_objext \
15851 conftest$ac_exeext conftest.$ac_ext
15854 else
15855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15856 /* end confdefs.h. */
15857 __thread int a; int b; int main() { return a = b; }
15858 _ACEOF
15859 if ac_fn_c_try_run "$LINENO"; then :
15860 chktls_save_LDFLAGS="$LDFLAGS"
15861 LDFLAGS="-static $LDFLAGS"
15862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15863 /* end confdefs.h. */
15864 int main() { return 0; }
15865 _ACEOF
15866 if ac_fn_c_try_link "$LINENO"; then :
15867 if test "$cross_compiling" = yes; then :
15868 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15869 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15870 as_fn_error "cannot run test program while cross compiling
15871 See \`config.log' for more details." "$LINENO" 5; }
15872 else
15873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15874 /* end confdefs.h. */
15875 __thread int a; int b; int main() { return a = b; }
15876 _ACEOF
15877 if ac_fn_c_try_run "$LINENO"; then :
15878 gcc_cv_have_tls=yes
15879 else
15880 gcc_cv_have_tls=no
15882 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15883 conftest.$ac_objext conftest.beam conftest.$ac_ext
15886 else
15887 gcc_cv_have_tls=yes
15889 rm -f core conftest.err conftest.$ac_objext \
15890 conftest$ac_exeext conftest.$ac_ext
15891 LDFLAGS="$chktls_save_LDFLAGS"
15892 if test $gcc_cv_have_tls = yes; then
15893 chktls_save_CFLAGS="$CFLAGS"
15894 thread_CFLAGS=failed
15895 for flag in '' '-pthread' '-lpthread'; do
15896 CFLAGS="$flag $chktls_save_CFLAGS"
15897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15898 /* end confdefs.h. */
15899 #include <pthread.h>
15900 void *g(void *d) { return NULL; }
15902 main ()
15904 pthread_t t; pthread_create(&t,NULL,g,NULL);
15906 return 0;
15908 _ACEOF
15909 if ac_fn_c_try_link "$LINENO"; then :
15910 thread_CFLAGS="$flag"
15912 rm -f core conftest.err conftest.$ac_objext \
15913 conftest$ac_exeext conftest.$ac_ext
15914 if test "X$thread_CFLAGS" != Xfailed; then
15915 break
15917 done
15918 CFLAGS="$chktls_save_CFLAGS"
15919 if test "X$thread_CFLAGS" != Xfailed; then
15920 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
15921 if test "$cross_compiling" = yes; then :
15922 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15923 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15924 as_fn_error "cannot run test program while cross compiling
15925 See \`config.log' for more details." "$LINENO" 5; }
15926 else
15927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15928 /* end confdefs.h. */
15929 #include <pthread.h>
15930 __thread int a;
15931 static int *volatile a_in_other_thread;
15932 static void *
15933 thread_func (void *arg)
15935 a_in_other_thread = &a;
15936 return (void *)0;
15939 main ()
15941 pthread_t thread;
15942 void *thread_retval;
15943 int *volatile a_in_main_thread;
15944 a_in_main_thread = &a;
15945 if (pthread_create (&thread, (pthread_attr_t *)0,
15946 thread_func, (void *)0))
15947 return 0;
15948 if (pthread_join (thread, &thread_retval))
15949 return 0;
15950 return (a_in_other_thread == a_in_main_thread);
15952 return 0;
15954 _ACEOF
15955 if ac_fn_c_try_run "$LINENO"; then :
15956 gcc_cv_have_tls=yes
15957 else
15958 gcc_cv_have_tls=no
15960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15961 conftest.$ac_objext conftest.beam conftest.$ac_ext
15964 CFLAGS="$chktls_save_CFLAGS"
15967 else
15968 gcc_cv_have_tls=no
15970 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15971 conftest.$ac_objext conftest.beam conftest.$ac_ext
15975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
15976 $as_echo "$gcc_cv_have_tls" >&6; }
15977 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
15979 $as_echo "#define HAVE_TLS 1" >>confdefs.h
15983 # See if we have emulated thread-local storage.
15985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the thread-local storage support is from emutls" >&5
15986 $as_echo_n "checking whether the thread-local storage support is from emutls... " >&6; }
15987 if test "${gcc_cv_use_emutls+set}" = set; then :
15988 $as_echo_n "(cached) " >&6
15989 else
15991 gcc_cv_use_emutls=no
15992 echo '__thread int a; int b; int main() { return a = b; }' > conftest.c
15993 if { ac_try='${CC-cc} -Werror -S -o conftest.s conftest.c 1>&5'
15994 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15995 (eval $ac_try) 2>&5
15996 ac_status=$?
15997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15998 test $ac_status = 0; }; }; then
15999 if grep __emutls_get_address conftest.s > /dev/null; then
16000 gcc_cv_use_emutls=yes
16003 rm -f conftest.*
16006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_use_emutls" >&5
16007 $as_echo "$gcc_cv_use_emutls" >&6; }
16008 if test "$gcc_cv_use_emutls" = "yes" ; then
16010 $as_echo "#define USE_EMUTLS 1" >>confdefs.h
16014 # See what sort of export controls are available.
16016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
16017 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
16018 if test "${libgomp_cv_have_attribute_visibility+set}" = set; then :
16019 $as_echo_n "(cached) " >&6
16020 else
16022 save_CFLAGS="$CFLAGS"
16023 CFLAGS="$CFLAGS -Werror"
16024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16025 /* end confdefs.h. */
16026 void __attribute__((visibility("hidden"))) foo(void) { }
16028 main ()
16032 return 0;
16034 _ACEOF
16035 if ac_fn_c_try_compile "$LINENO"; then :
16036 libgomp_cv_have_attribute_visibility=yes
16037 else
16038 libgomp_cv_have_attribute_visibility=no
16040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16041 CFLAGS="$save_CFLAGS"
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_visibility" >&5
16044 $as_echo "$libgomp_cv_have_attribute_visibility" >&6; }
16045 if test $libgomp_cv_have_attribute_visibility = yes; then
16047 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
16051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
16052 $as_echo_n "checking whether the target supports dllexport... " >&6; }
16053 if test "${libgomp_cv_have_attribute_dllexport+set}" = set; then :
16054 $as_echo_n "(cached) " >&6
16055 else
16057 save_CFLAGS="$CFLAGS"
16058 CFLAGS="$CFLAGS -Werror"
16059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16060 /* end confdefs.h. */
16061 void __attribute__((dllexport)) foo(void) { }
16063 main ()
16067 return 0;
16069 _ACEOF
16070 if ac_fn_c_try_compile "$LINENO"; then :
16071 libgomp_cv_have_attribute_dllexport=yes
16072 else
16073 libgomp_cv_have_attribute_dllexport=no
16075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16076 CFLAGS="$save_CFLAGS"
16078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_dllexport" >&5
16079 $as_echo "$libgomp_cv_have_attribute_dllexport" >&6; }
16080 if test $libgomp_cv_have_attribute_dllexport = yes; then
16082 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
16086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
16087 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
16088 if test "${libgomp_cv_have_attribute_alias+set}" = set; then :
16089 $as_echo_n "(cached) " >&6
16090 else
16092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16093 /* end confdefs.h. */
16095 void foo(void) { }
16096 extern void bar(void) __attribute__((alias("foo")));
16098 main ()
16100 bar();
16102 return 0;
16104 _ACEOF
16105 if ac_fn_c_try_link "$LINENO"; then :
16106 libgomp_cv_have_attribute_alias=yes
16107 else
16108 libgomp_cv_have_attribute_alias=no
16110 rm -f core conftest.err conftest.$ac_objext \
16111 conftest$ac_exeext conftest.$ac_ext
16113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_alias" >&5
16114 $as_echo "$libgomp_cv_have_attribute_alias" >&6; }
16115 if test $libgomp_cv_have_attribute_alias = yes; then
16117 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
16122 # Check whether --with-gnu-ld was given.
16123 if test "${with_gnu_ld+set}" = set; then :
16124 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16125 else
16126 with_gnu_ld=no
16129 ac_prog=ld
16130 if test "$GCC" = yes; then
16131 # Check if gcc -print-prog-name=ld gives a path.
16132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16133 $as_echo_n "checking for ld used by $CC... " >&6; }
16134 case $host in
16135 *-*-mingw*)
16136 # gcc leaves a trailing carriage return which upsets mingw
16137 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16139 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16140 esac
16141 case $ac_prog in
16142 # Accept absolute paths.
16143 [\\/]* | ?:[\\/]*)
16144 re_direlt='/[^/][^/]*/\.\./'
16145 # Canonicalize the pathname of ld
16146 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16147 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16148 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16149 done
16150 test -z "$LD" && LD="$ac_prog"
16153 # If it fails, then pretend we aren't using GCC.
16154 ac_prog=ld
16157 # If it is relative, then search for the first ld in PATH.
16158 with_gnu_ld=unknown
16160 esac
16161 elif test "$with_gnu_ld" = yes; then
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16163 $as_echo_n "checking for GNU ld... " >&6; }
16164 else
16165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16166 $as_echo_n "checking for non-GNU ld... " >&6; }
16168 if test "${lt_cv_path_LD+set}" = set; then :
16169 $as_echo_n "(cached) " >&6
16170 else
16171 if test -z "$LD"; then
16172 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16173 for ac_dir in $PATH; do
16174 IFS="$lt_save_ifs"
16175 test -z "$ac_dir" && ac_dir=.
16176 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16177 lt_cv_path_LD="$ac_dir/$ac_prog"
16178 # Check to see if the program is GNU ld. I'd rather use --version,
16179 # but apparently some variants of GNU ld only accept -v.
16180 # Break only if it was the GNU/non-GNU ld that we prefer.
16181 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16182 *GNU* | *'with BFD'*)
16183 test "$with_gnu_ld" != no && break
16186 test "$with_gnu_ld" != yes && break
16188 esac
16190 done
16191 IFS="$lt_save_ifs"
16192 else
16193 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16197 LD="$lt_cv_path_LD"
16198 if test -n "$LD"; then
16199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16200 $as_echo "$LD" >&6; }
16201 else
16202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16203 $as_echo "no" >&6; }
16205 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
16206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16207 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16208 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
16209 $as_echo_n "(cached) " >&6
16210 else
16211 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16212 case `$LD -v 2>&1 </dev/null` in
16213 *GNU* | *'with BFD'*)
16214 lt_cv_prog_gnu_ld=yes
16217 lt_cv_prog_gnu_ld=no
16219 esac
16221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16222 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16223 with_gnu_ld=$lt_cv_prog_gnu_ld
16231 # If we're not using GNU ld, then there's no point in even trying these
16232 # tests. Check for that first. We should have already tested for gld
16233 # by now (in libtool), but require it now just to be safe...
16234 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
16235 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
16239 # The name set by libtool depends on the version of libtool. Shame on us
16240 # for depending on an impl detail, but c'est la vie. Older versions used
16241 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
16242 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
16243 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
16244 # set (hence we're using an older libtool), then set it.
16245 if test x${with_gnu_ld+set} != xset; then
16246 if test x${ac_cv_prog_gnu_ld+set} != xset; then
16247 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
16248 with_gnu_ld=no
16249 else
16250 with_gnu_ld=$ac_cv_prog_gnu_ld
16254 # Start by getting the version number. I think the libtool test already
16255 # does some of this, but throws away the result.
16256 libgomp_ld_is_gold=no
16257 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
16258 libgomp_ld_is_gold=yes
16261 ldver=`$LD --version 2>/dev/null |
16262 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'`
16264 libgomp_gnu_ld_version=`echo $ldver | \
16265 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
16267 # Set --gc-sections.
16268 if test "$with_gnu_ld" = "notbroken"; then
16269 # GNU ld it is! Joy and bunny rabbits!
16271 # All these tests are for C++; save the language and the compiler flags.
16272 # Need to do this so that g++ won't try to link in libstdc++
16273 ac_test_CFLAGS="${CFLAGS+set}"
16274 ac_save_CFLAGS="$CFLAGS"
16275 CFLAGS='-x c++ -Wl,--gc-sections'
16277 # Check for -Wl,--gc-sections
16278 # XXX This test is broken at the moment, as symbols required for linking
16279 # are now in libsupc++ (not built yet). In addition, this test has
16280 # cored on solaris in the past. In addition, --gc-sections doesn't
16281 # really work at the moment (keeps on discarding used sections, first
16282 # .eh_frame and now some of the glibc sections for iconv).
16283 # Bzzzzt. Thanks for playing, maybe next time.
16284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
16285 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
16286 if test "$cross_compiling" = yes; then :
16287 ac_sectionLDflags=yes
16288 else
16289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16290 /* end confdefs.h. */
16292 int main(void)
16294 try { throw 1; }
16295 catch (...) { };
16296 return 0;
16299 _ACEOF
16300 if ac_fn_c_try_run "$LINENO"; then :
16301 ac_sectionLDflags=yes
16302 else
16303 ac_sectionLDflags=no
16305 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16306 conftest.$ac_objext conftest.beam conftest.$ac_ext
16309 if test "$ac_test_CFLAGS" = set; then
16310 CFLAGS="$ac_save_CFLAGS"
16311 else
16312 # this is the suspicious part
16313 CFLAGS=''
16315 if test "$ac_sectionLDflags" = "yes"; then
16316 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
16318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
16319 $as_echo "$ac_sectionLDflags" >&6; }
16322 # Set linker optimization flags.
16323 if test x"$with_gnu_ld" = x"yes"; then
16324 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
16332 # Check whether --enable-symvers was given.
16333 if test "${enable_symvers+set}" = set; then :
16334 enableval=$enable_symvers;
16335 case "$enableval" in
16336 yes|no|gnu*|sun) ;;
16337 *) as_fn_error "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
16338 esac
16340 else
16341 enable_symvers=yes
16346 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
16347 # don't know enough about $LD to do tricks...
16350 # Turn a 'yes' into a suitable default.
16351 if test x$enable_symvers = xyes ; then
16352 # FIXME The following test is too strict, in theory.
16353 if test $enable_shared = no || test "x$LD" = x; then
16354 enable_symvers=no
16355 else
16356 if test $with_gnu_ld = yes ; then
16357 enable_symvers=gnu
16358 else
16359 case ${target_os} in
16360 # Sun symbol versioning exists since Solaris 2.5.
16361 solaris2.[5-9]* | solaris2.1[0-9]*)
16362 enable_symvers=sun ;;
16364 enable_symvers=no ;;
16365 esac
16370 # Check if 'sun' was requested on non-Solaris 2 platforms.
16371 if test x$enable_symvers = xsun ; then
16372 case ${target_os} in
16373 solaris2*)
16374 # All fine.
16377 # Unlikely to work.
16378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
16379 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
16380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
16381 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
16382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16383 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16384 enable_symvers=no
16386 esac
16389 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
16390 if test $enable_symvers != no; then
16391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
16392 $as_echo_n "checking for shared libgcc... " >&6; }
16393 ac_save_CFLAGS="$CFLAGS"
16394 CFLAGS=' -lgcc_s'
16395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16396 /* end confdefs.h. */
16399 main ()
16401 return 0;
16403 return 0;
16405 _ACEOF
16406 if ac_fn_c_try_link "$LINENO"; then :
16407 libgomp_shared_libgcc=yes
16408 else
16409 libgomp_shared_libgcc=no
16411 rm -f core conftest.err conftest.$ac_objext \
16412 conftest$ac_exeext conftest.$ac_ext
16413 CFLAGS="$ac_save_CFLAGS"
16414 if test $libgomp_shared_libgcc = no; then
16415 cat > conftest.c <<EOF
16416 int main (void) { return 0; }
16418 libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
16419 -shared -shared-libgcc -o conftest.so \
16420 conftest.c -v 2>&1 >/dev/null \
16421 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
16422 rm -f conftest.c conftest.so
16423 if test x${libgomp_libgcc_s_suffix+set} = xset; then
16424 CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
16425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16426 /* end confdefs.h. */
16429 main ()
16431 return 0;
16433 return 0;
16435 _ACEOF
16436 if ac_fn_c_try_link "$LINENO"; then :
16437 libgomp_shared_libgcc=yes
16439 rm -f core conftest.err conftest.$ac_objext \
16440 conftest$ac_exeext conftest.$ac_ext
16441 CFLAGS="$ac_save_CFLAGS"
16444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_shared_libgcc" >&5
16445 $as_echo "$libgomp_shared_libgcc" >&6; }
16448 # For GNU ld, we need at least this version. The format is described in
16449 # LIBGOMP_CHECK_LINKER_FEATURES above.
16450 libgomp_min_gnu_ld_version=21400
16451 # XXXXXXXXXXX libgomp_gnu_ld_version=21390
16453 # Check to see if unspecified "yes" value can win, given results above.
16454 # Change "yes" into either "no" or a style name.
16455 if test $enable_symvers != no && test $libgomp_shared_libgcc = yes; then
16456 if test $with_gnu_ld = yes; then
16457 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
16458 enable_symvers=gnu
16459 elif test $libgomp_ld_is_gold = yes ; then
16460 enable_symvers=gnu
16461 else
16462 # The right tools, the right setup, but too old. Fallbacks?
16463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
16464 $as_echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
16465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
16466 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
16467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
16468 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
16469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
16470 $as_echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
16471 if test $libgomp_gnu_ld_version -ge 21200 ; then
16472 # Globbing fix is present, proper block support is not.
16473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16474 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16475 enable_symvers=no
16476 else
16477 # 2.11 or older.
16478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16479 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16480 enable_symvers=no
16483 elif test $enable_symvers = sun; then
16484 : All interesting versions of Sun ld support sun style symbol versioning.
16485 else
16486 # just fail for now
16487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
16488 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
16489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
16490 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
16491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
16492 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
16493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16494 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16495 enable_symvers=no
16499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports .symver directive" >&5
16500 $as_echo_n "checking whether the target supports .symver directive... " >&6; }
16501 if test "${libgomp_cv_have_as_symver_directive+set}" = set; then :
16502 $as_echo_n "(cached) " >&6
16503 else
16505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16506 /* end confdefs.h. */
16507 void foo (void); __asm (".symver foo, bar@SYMVER");
16509 main ()
16513 return 0;
16515 _ACEOF
16516 if ac_fn_c_try_compile "$LINENO"; then :
16517 libgomp_cv_have_as_symver_directive=yes
16518 else
16519 libgomp_cv_have_as_symver_directive=no
16521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_as_symver_directive" >&5
16524 $as_echo "$libgomp_cv_have_as_symver_directive" >&6; }
16525 if test $libgomp_cv_have_as_symver_directive = yes; then
16527 $as_echo "#define HAVE_AS_SYMVER_DIRECTIVE 1" >>confdefs.h
16531 if test $enable_symvers != no; then
16532 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
16533 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
16534 else
16535 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
16536 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
16539 if test $enable_symvers = gnu; then
16540 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE=
16541 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
16542 else
16543 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
16544 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE=
16547 if test $enable_symvers = sun; then
16548 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE=
16549 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
16550 else
16551 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
16552 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE=
16555 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
16556 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
16558 if test $enable_symvers != no ; then
16559 case ${target_os} in
16560 # The Solaris 2 runtime linker doesn't support the GNU extension of
16561 # binding the same symbol to different versions
16562 solaris2*)
16564 # Other platforms with GNU symbol versioning (GNU/Linux, more?) do.
16567 $as_echo "#define HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT 1" >>confdefs.h
16570 esac
16574 if test $enable_symvers = gnu; then
16576 $as_echo "#define LIBGOMP_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
16580 # Get target configury.
16581 . ${srcdir}/configure.tgt
16582 CFLAGS="$save_CFLAGS $XCFLAGS"
16584 # Check for __sync_val_compare_and_swap, but only after the target has
16585 # had a chance to set XCFLAGS.
16587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
16588 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
16589 if test "${libgomp_cv_have_sync_builtins+set}" = set; then :
16590 $as_echo_n "(cached) " >&6
16591 else
16593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16594 /* end confdefs.h. */
16597 main ()
16599 int foo; __sync_val_compare_and_swap(&foo, 0, 1);
16601 return 0;
16603 _ACEOF
16604 if ac_fn_c_try_link "$LINENO"; then :
16605 libgomp_cv_have_sync_builtins=yes
16606 else
16607 libgomp_cv_have_sync_builtins=no
16609 rm -f core conftest.err conftest.$ac_objext \
16610 conftest$ac_exeext conftest.$ac_ext
16612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_sync_builtins" >&5
16613 $as_echo "$libgomp_cv_have_sync_builtins" >&6; }
16614 if test $libgomp_cv_have_sync_builtins = yes; then
16616 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
16620 XCFLAGS="$XCFLAGS$XPCFLAGS"
16622 # Add CET specific flags if CET is enabled
16623 # Check whether --enable-cet was given.
16624 if test "${enable_cet+set}" = set; then :
16625 enableval=$enable_cet;
16626 case "$enableval" in
16627 yes|no|default) ;;
16628 *) as_fn_error "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
16629 esac
16631 else
16632 enable_cet=default
16636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
16637 $as_echo_n "checking for CET support... " >&6; }
16639 case "$host" in
16640 i[34567]86-*-linux* | x86_64-*-linux*)
16641 case "$enable_cet" in
16642 default)
16643 # Check if target supports multi-byte NOPs
16644 # and if assembler supports CET insn.
16645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16646 /* end confdefs.h. */
16649 main ()
16652 #if !defined(__SSE2__)
16653 #error target does not support multi-byte NOPs
16654 #else
16655 asm ("setssbsy");
16656 #endif
16659 return 0;
16661 _ACEOF
16662 if ac_fn_c_try_compile "$LINENO"; then :
16663 enable_cet=yes
16664 else
16665 enable_cet=no
16667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16669 yes)
16670 # Check if assembler supports CET.
16671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16672 /* end confdefs.h. */
16675 main ()
16677 asm ("setssbsy");
16679 return 0;
16681 _ACEOF
16682 if ac_fn_c_try_compile "$LINENO"; then :
16684 else
16685 as_fn_error "assembler with CET support is required for --enable-cet" "$LINENO" 5
16687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16689 esac
16692 enable_cet=no
16694 esac
16695 if test x$enable_cet = xyes; then
16696 CET_FLAGS="-fcf-protection -mcet"
16697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16698 $as_echo "yes" >&6; }
16699 else
16700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16701 $as_echo "no" >&6; }
16704 XCFLAGS="$XCFLAGS $CET_FLAGS"
16705 FCFLAGS="$FCFLAGS $CET_FLAGS"
16711 # Cleanup and exit.
16712 CFLAGS="$save_CFLAGS"
16713 cat >confcache <<\_ACEOF
16714 # This file is a shell script that caches the results of configure
16715 # tests run on this system so they can be shared between configure
16716 # scripts and configure runs, see configure's option --config-cache.
16717 # It is not useful on other systems. If it contains results you don't
16718 # want to keep, you may remove or edit it.
16720 # config.status only pays attention to the cache file if you give it
16721 # the --recheck option to rerun configure.
16723 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16724 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16725 # following values.
16727 _ACEOF
16729 # The following way of writing the cache mishandles newlines in values,
16730 # but we know of no workaround that is simple, portable, and efficient.
16731 # So, we kill variables containing newlines.
16732 # Ultrix sh set writes to stderr and can't be redirected directly,
16733 # and sets the high bit in the cache file unless we assign to the vars.
16735 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16736 eval ac_val=\$$ac_var
16737 case $ac_val in #(
16738 *${as_nl}*)
16739 case $ac_var in #(
16740 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16741 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16742 esac
16743 case $ac_var in #(
16744 _ | IFS | as_nl) ;; #(
16745 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16746 *) { eval $ac_var=; unset $ac_var;} ;;
16747 esac ;;
16748 esac
16749 done
16751 (set) 2>&1 |
16752 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16753 *${as_nl}ac_space=\ *)
16754 # `set' does not quote correctly, so add quotes: double-quote
16755 # substitution turns \\\\ into \\, and sed turns \\ into \.
16756 sed -n \
16757 "s/'/'\\\\''/g;
16758 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16759 ;; #(
16761 # `set' quotes correctly as required by POSIX, so do not add quotes.
16762 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16764 esac |
16765 sort
16767 sed '
16768 /^ac_cv_env_/b end
16769 t clear
16770 :clear
16771 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16772 t end
16773 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16774 :end' >>confcache
16775 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16776 if test -w "$cache_file"; then
16777 test "x$cache_file" != "x/dev/null" &&
16778 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16779 $as_echo "$as_me: updating cache $cache_file" >&6;}
16780 cat confcache >$cache_file
16781 else
16782 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16783 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16786 rm -f confcache
16788 if test ${multilib} = yes; then
16789 multilib_arg="--enable-multilib"
16790 else
16791 multilib_arg=
16794 # Set up the set of libraries that we need to link against for libgomp.
16795 # Note that the GOMP_SELF_SPEC in gcc.c may force -pthread,
16796 # which will force linkage against -lpthread (or equivalent for the system).
16797 # That's not 100% ideal, but about the best we can do easily.
16798 if test $enable_shared = yes; then
16799 link_gomp="-lgomp %{static: $LIBS}"
16800 else
16801 link_gomp="-lgomp $LIBS"
16805 if test "$ac_cv_fc_compiler_gnu" = yes; then
16806 USE_FORTRAN_TRUE=
16807 USE_FORTRAN_FALSE='#'
16808 else
16809 USE_FORTRAN_TRUE='#'
16810 USE_FORTRAN_FALSE=
16814 # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
16815 # and export AC_COMPUTE_INT. If that happens, then we'll need to remove
16816 # the underscore here and update the PREREQ. If it doesn't, then we'll
16817 # need to copy this macro to our acinclude.m4.
16818 save_CFLAGS="$CFLAGS"
16819 for i in $config_path; do
16820 if test -f $srcdir/config/$i/omp-lock.h; then
16821 CFLAGS="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h"
16822 break
16824 done
16826 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_t)" "OMP_LOCK_SIZE" ""; then :
16828 else
16829 as_fn_error "unsupported system, cannot find sizeof (omp_lock_t)" "$LINENO" 5
16833 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_t)" "OMP_LOCK_ALIGN" ""; then :
16838 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_t)" "OMP_NEST_LOCK_SIZE" ""; then :
16843 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_t)" "OMP_NEST_LOCK_ALIGN" ""; then :
16848 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_25_t)" "OMP_LOCK_25_SIZE" ""; then :
16850 else
16851 as_fn_error "unsupported system, cannot find sizeof (omp_lock_25_t)" "$LINENO" 5
16855 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_25_t)" "OMP_LOCK_25_ALIGN" ""; then :
16860 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_SIZE" ""; then :
16865 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_ALIGN" ""; then :
16871 # If the lock fits in an integer, then arrange for Fortran to use that
16872 # integer. If it doesn't, then arrange for Fortran to use a pointer.
16873 # Except that we don't have a way at present to multi-lib the installed
16874 # Fortran modules, so we assume 8 bytes for pointers, regardless of the
16875 # actual target.
16876 OMP_LOCK_KIND=$OMP_LOCK_SIZE
16877 OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
16878 if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
16879 OMP_LOCK_KIND=8
16881 if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
16882 OMP_NEST_LOCK_KIND=8
16884 OMP_LOCK_25_KIND=$OMP_LOCK_25_SIZE
16885 OMP_NEST_LOCK_25_KIND=$OMP_NEST_LOCK_25_SIZE
16886 if test $OMP_LOCK_25_SIZE -gt 8 || test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then
16887 OMP_LOCK_25_KIND=8
16889 if test $OMP_NEST_LOCK_25_SIZE -gt 8 || test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then
16890 OMP_NEST_LOCK_25_KIND=8
16905 CFLAGS="$save_CFLAGS"
16907 # Determine what GCC version number to use in filesystem paths.
16909 get_gcc_base_ver="cat"
16911 # Check whether --with-gcc-major-version-only was given.
16912 if test "${with_gcc_major_version_only+set}" = set; then :
16913 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
16914 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*\$\$/\1/'"
16922 ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
16924 ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
16926 ac_config_files="$ac_config_files testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in"
16928 cat >confcache <<\_ACEOF
16929 # This file is a shell script that caches the results of configure
16930 # tests run on this system so they can be shared between configure
16931 # scripts and configure runs, see configure's option --config-cache.
16932 # It is not useful on other systems. If it contains results you don't
16933 # want to keep, you may remove or edit it.
16935 # config.status only pays attention to the cache file if you give it
16936 # the --recheck option to rerun configure.
16938 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16939 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16940 # following values.
16942 _ACEOF
16944 # The following way of writing the cache mishandles newlines in values,
16945 # but we know of no workaround that is simple, portable, and efficient.
16946 # So, we kill variables containing newlines.
16947 # Ultrix sh set writes to stderr and can't be redirected directly,
16948 # and sets the high bit in the cache file unless we assign to the vars.
16950 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16951 eval ac_val=\$$ac_var
16952 case $ac_val in #(
16953 *${as_nl}*)
16954 case $ac_var in #(
16955 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16956 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16957 esac
16958 case $ac_var in #(
16959 _ | IFS | as_nl) ;; #(
16960 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16961 *) { eval $ac_var=; unset $ac_var;} ;;
16962 esac ;;
16963 esac
16964 done
16966 (set) 2>&1 |
16967 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16968 *${as_nl}ac_space=\ *)
16969 # `set' does not quote correctly, so add quotes: double-quote
16970 # substitution turns \\\\ into \\, and sed turns \\ into \.
16971 sed -n \
16972 "s/'/'\\\\''/g;
16973 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16974 ;; #(
16976 # `set' quotes correctly as required by POSIX, so do not add quotes.
16977 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16979 esac |
16980 sort
16982 sed '
16983 /^ac_cv_env_/b end
16984 t clear
16985 :clear
16986 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16987 t end
16988 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16989 :end' >>confcache
16990 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16991 if test -w "$cache_file"; then
16992 test "x$cache_file" != "x/dev/null" &&
16993 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16994 $as_echo "$as_me: updating cache $cache_file" >&6;}
16995 cat confcache >$cache_file
16996 else
16997 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16998 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17001 rm -f confcache
17003 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17004 # Let make expand exec_prefix.
17005 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17007 DEFS=-DHAVE_CONFIG_H
17009 ac_libobjs=
17010 ac_ltlibobjs=
17011 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17012 # 1. Remove the extension, and $U if already installed.
17013 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17014 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17015 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17016 # will be set to the directory where LIBOBJS objects are built.
17017 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17018 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17019 done
17020 LIBOBJS=$ac_libobjs
17022 LTLIBOBJS=$ac_ltlibobjs
17025 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
17026 as_fn_error "conditional \"GENINSRC\" was never defined.
17027 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17029 if test -n "$EXEEXT"; then
17030 am__EXEEXT_TRUE=
17031 am__EXEEXT_FALSE='#'
17032 else
17033 am__EXEEXT_TRUE='#'
17034 am__EXEEXT_FALSE=
17037 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17038 as_fn_error "conditional \"AMDEP\" was never defined.
17039 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17041 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17042 as_fn_error "conditional \"am__fastdepCC\" was never defined.
17043 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17045 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
17046 as_fn_error "conditional \"BUILD_INFO\" was never defined.
17047 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17049 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17050 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17051 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17053 if test -z "${PLUGIN_NVPTX_TRUE}" && test -z "${PLUGIN_NVPTX_FALSE}"; then
17054 as_fn_error "conditional \"PLUGIN_NVPTX\" was never defined.
17055 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17057 if test -z "${PLUGIN_HSA_TRUE}" && test -z "${PLUGIN_HSA_FALSE}"; then
17058 as_fn_error "conditional \"PLUGIN_HSA\" was never defined.
17059 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17061 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
17062 as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
17063 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17065 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
17066 as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
17067 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17069 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
17070 as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
17071 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17073 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
17074 as_fn_error "conditional \"USE_FORTRAN\" was never defined.
17075 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17078 : ${CONFIG_STATUS=./config.status}
17079 ac_write_fail=0
17080 ac_clean_files_save=$ac_clean_files
17081 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17082 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17083 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17084 as_write_fail=0
17085 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17086 #! $SHELL
17087 # Generated by $as_me.
17088 # Run this file to recreate the current configuration.
17089 # Compiler output produced by configure, useful for debugging
17090 # configure, is in config.log if it exists.
17092 debug=false
17093 ac_cs_recheck=false
17094 ac_cs_silent=false
17096 SHELL=\${CONFIG_SHELL-$SHELL}
17097 export SHELL
17098 _ASEOF
17099 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17100 ## -------------------- ##
17101 ## M4sh Initialization. ##
17102 ## -------------------- ##
17104 # Be more Bourne compatible
17105 DUALCASE=1; export DUALCASE # for MKS sh
17106 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17107 emulate sh
17108 NULLCMD=:
17109 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17110 # is contrary to our usage. Disable this feature.
17111 alias -g '${1+"$@"}'='"$@"'
17112 setopt NO_GLOB_SUBST
17113 else
17114 case `(set -o) 2>/dev/null` in #(
17115 *posix*) :
17116 set -o posix ;; #(
17117 *) :
17119 esac
17123 as_nl='
17125 export as_nl
17126 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17127 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17128 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17129 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17130 # Prefer a ksh shell builtin over an external printf program on Solaris,
17131 # but without wasting forks for bash or zsh.
17132 if test -z "$BASH_VERSION$ZSH_VERSION" \
17133 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17134 as_echo='print -r --'
17135 as_echo_n='print -rn --'
17136 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17137 as_echo='printf %s\n'
17138 as_echo_n='printf %s'
17139 else
17140 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17141 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17142 as_echo_n='/usr/ucb/echo -n'
17143 else
17144 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17145 as_echo_n_body='eval
17146 arg=$1;
17147 case $arg in #(
17148 *"$as_nl"*)
17149 expr "X$arg" : "X\\(.*\\)$as_nl";
17150 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17151 esac;
17152 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17154 export as_echo_n_body
17155 as_echo_n='sh -c $as_echo_n_body as_echo'
17157 export as_echo_body
17158 as_echo='sh -c $as_echo_body as_echo'
17161 # The user is always right.
17162 if test "${PATH_SEPARATOR+set}" != set; then
17163 PATH_SEPARATOR=:
17164 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17165 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17166 PATH_SEPARATOR=';'
17171 # IFS
17172 # We need space, tab and new line, in precisely that order. Quoting is
17173 # there to prevent editors from complaining about space-tab.
17174 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17175 # splitting by setting IFS to empty value.)
17176 IFS=" "" $as_nl"
17178 # Find who we are. Look in the path if we contain no directory separator.
17179 case $0 in #((
17180 *[\\/]* ) as_myself=$0 ;;
17181 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17182 for as_dir in $PATH
17184 IFS=$as_save_IFS
17185 test -z "$as_dir" && as_dir=.
17186 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17187 done
17188 IFS=$as_save_IFS
17191 esac
17192 # We did not find ourselves, most probably we were run as `sh COMMAND'
17193 # in which case we are not to be found in the path.
17194 if test "x$as_myself" = x; then
17195 as_myself=$0
17197 if test ! -f "$as_myself"; then
17198 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17199 exit 1
17202 # Unset variables that we do not need and which cause bugs (e.g. in
17203 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17204 # suppresses any "Segmentation fault" message there. '((' could
17205 # trigger a bug in pdksh 5.2.14.
17206 for as_var in BASH_ENV ENV MAIL MAILPATH
17207 do eval test x\${$as_var+set} = xset \
17208 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17209 done
17210 PS1='$ '
17211 PS2='> '
17212 PS4='+ '
17214 # NLS nuisances.
17215 LC_ALL=C
17216 export LC_ALL
17217 LANGUAGE=C
17218 export LANGUAGE
17220 # CDPATH.
17221 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17224 # as_fn_error ERROR [LINENO LOG_FD]
17225 # ---------------------------------
17226 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17227 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17228 # script with status $?, using 1 if that was 0.
17229 as_fn_error ()
17231 as_status=$?; test $as_status -eq 0 && as_status=1
17232 if test "$3"; then
17233 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17234 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
17236 $as_echo "$as_me: error: $1" >&2
17237 as_fn_exit $as_status
17238 } # as_fn_error
17241 # as_fn_set_status STATUS
17242 # -----------------------
17243 # Set $? to STATUS, without forking.
17244 as_fn_set_status ()
17246 return $1
17247 } # as_fn_set_status
17249 # as_fn_exit STATUS
17250 # -----------------
17251 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17252 as_fn_exit ()
17254 set +e
17255 as_fn_set_status $1
17256 exit $1
17257 } # as_fn_exit
17259 # as_fn_unset VAR
17260 # ---------------
17261 # Portably unset VAR.
17262 as_fn_unset ()
17264 { eval $1=; unset $1;}
17266 as_unset=as_fn_unset
17267 # as_fn_append VAR VALUE
17268 # ----------------------
17269 # Append the text in VALUE to the end of the definition contained in VAR. Take
17270 # advantage of any shell optimizations that allow amortized linear growth over
17271 # repeated appends, instead of the typical quadratic growth present in naive
17272 # implementations.
17273 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17274 eval 'as_fn_append ()
17276 eval $1+=\$2
17278 else
17279 as_fn_append ()
17281 eval $1=\$$1\$2
17283 fi # as_fn_append
17285 # as_fn_arith ARG...
17286 # ------------------
17287 # Perform arithmetic evaluation on the ARGs, and store the result in the
17288 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17289 # must be portable across $(()) and expr.
17290 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17291 eval 'as_fn_arith ()
17293 as_val=$(( $* ))
17295 else
17296 as_fn_arith ()
17298 as_val=`expr "$@" || test $? -eq 1`
17300 fi # as_fn_arith
17303 if expr a : '\(a\)' >/dev/null 2>&1 &&
17304 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17305 as_expr=expr
17306 else
17307 as_expr=false
17310 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17311 as_basename=basename
17312 else
17313 as_basename=false
17316 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17317 as_dirname=dirname
17318 else
17319 as_dirname=false
17322 as_me=`$as_basename -- "$0" ||
17323 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17324 X"$0" : 'X\(//\)$' \| \
17325 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17326 $as_echo X/"$0" |
17327 sed '/^.*\/\([^/][^/]*\)\/*$/{
17328 s//\1/
17331 /^X\/\(\/\/\)$/{
17332 s//\1/
17335 /^X\/\(\/\).*/{
17336 s//\1/
17339 s/.*/./; q'`
17341 # Avoid depending upon Character Ranges.
17342 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17343 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17344 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17345 as_cr_digits='0123456789'
17346 as_cr_alnum=$as_cr_Letters$as_cr_digits
17348 ECHO_C= ECHO_N= ECHO_T=
17349 case `echo -n x` in #(((((
17350 -n*)
17351 case `echo 'xy\c'` in
17352 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17353 xy) ECHO_C='\c';;
17354 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17355 ECHO_T=' ';;
17356 esac;;
17358 ECHO_N='-n';;
17359 esac
17361 rm -f conf$$ conf$$.exe conf$$.file
17362 if test -d conf$$.dir; then
17363 rm -f conf$$.dir/conf$$.file
17364 else
17365 rm -f conf$$.dir
17366 mkdir conf$$.dir 2>/dev/null
17368 if (echo >conf$$.file) 2>/dev/null; then
17369 if ln -s conf$$.file conf$$ 2>/dev/null; then
17370 as_ln_s='ln -s'
17371 # ... but there are two gotchas:
17372 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17373 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17374 # In both cases, we have to default to `cp -p'.
17375 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17376 as_ln_s='cp -p'
17377 elif ln conf$$.file conf$$ 2>/dev/null; then
17378 as_ln_s=ln
17379 else
17380 as_ln_s='cp -p'
17382 else
17383 as_ln_s='cp -p'
17385 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17386 rmdir conf$$.dir 2>/dev/null
17389 # as_fn_mkdir_p
17390 # -------------
17391 # Create "$as_dir" as a directory, including parents if necessary.
17392 as_fn_mkdir_p ()
17395 case $as_dir in #(
17396 -*) as_dir=./$as_dir;;
17397 esac
17398 test -d "$as_dir" || eval $as_mkdir_p || {
17399 as_dirs=
17400 while :; do
17401 case $as_dir in #(
17402 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17403 *) as_qdir=$as_dir;;
17404 esac
17405 as_dirs="'$as_qdir' $as_dirs"
17406 as_dir=`$as_dirname -- "$as_dir" ||
17407 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17408 X"$as_dir" : 'X\(//\)[^/]' \| \
17409 X"$as_dir" : 'X\(//\)$' \| \
17410 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17411 $as_echo X"$as_dir" |
17412 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17413 s//\1/
17416 /^X\(\/\/\)[^/].*/{
17417 s//\1/
17420 /^X\(\/\/\)$/{
17421 s//\1/
17424 /^X\(\/\).*/{
17425 s//\1/
17428 s/.*/./; q'`
17429 test -d "$as_dir" && break
17430 done
17431 test -z "$as_dirs" || eval "mkdir $as_dirs"
17432 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
17435 } # as_fn_mkdir_p
17436 if mkdir -p . 2>/dev/null; then
17437 as_mkdir_p='mkdir -p "$as_dir"'
17438 else
17439 test -d ./-p && rmdir ./-p
17440 as_mkdir_p=false
17443 if test -x / >/dev/null 2>&1; then
17444 as_test_x='test -x'
17445 else
17446 if ls -dL / >/dev/null 2>&1; then
17447 as_ls_L_option=L
17448 else
17449 as_ls_L_option=
17451 as_test_x='
17452 eval sh -c '\''
17453 if test -d "$1"; then
17454 test -d "$1/.";
17455 else
17456 case $1 in #(
17457 -*)set "./$1";;
17458 esac;
17459 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17460 ???[sx]*):;;*)false;;esac;fi
17461 '\'' sh
17464 as_executable_p=$as_test_x
17466 # Sed expression to map a string onto a valid CPP name.
17467 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17469 # Sed expression to map a string onto a valid variable name.
17470 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17473 exec 6>&1
17474 ## ----------------------------------- ##
17475 ## Main body of $CONFIG_STATUS script. ##
17476 ## ----------------------------------- ##
17477 _ASEOF
17478 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17480 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17481 # Save the log message, to keep $0 and so on meaningful, and to
17482 # report actual input values of CONFIG_FILES etc. instead of their
17483 # values after options handling.
17484 ac_log="
17485 This file was extended by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
17486 generated by GNU Autoconf 2.64. Invocation command line was
17488 CONFIG_FILES = $CONFIG_FILES
17489 CONFIG_HEADERS = $CONFIG_HEADERS
17490 CONFIG_LINKS = $CONFIG_LINKS
17491 CONFIG_COMMANDS = $CONFIG_COMMANDS
17492 $ $0 $@
17494 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17497 _ACEOF
17499 case $ac_config_files in *"
17500 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17501 esac
17503 case $ac_config_headers in *"
17504 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17505 esac
17508 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17509 # Files that config.status was made for.
17510 config_files="$ac_config_files"
17511 config_headers="$ac_config_headers"
17512 config_commands="$ac_config_commands"
17514 _ACEOF
17516 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17517 ac_cs_usage="\
17518 \`$as_me' instantiates files and other configuration actions
17519 from templates according to the current configuration. Unless the files
17520 and actions are specified as TAGs, all are instantiated by default.
17522 Usage: $0 [OPTION]... [TAG]...
17524 -h, --help print this help, then exit
17525 -V, --version print version number and configuration settings, then exit
17526 -q, --quiet, --silent
17527 do not print progress messages
17528 -d, --debug don't remove temporary files
17529 --recheck update $as_me by reconfiguring in the same conditions
17530 --file=FILE[:TEMPLATE]
17531 instantiate the configuration file FILE
17532 --header=FILE[:TEMPLATE]
17533 instantiate the configuration header FILE
17535 Configuration files:
17536 $config_files
17538 Configuration headers:
17539 $config_headers
17541 Configuration commands:
17542 $config_commands
17544 Report bugs to the package provider.
17545 GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
17546 General help using GNU software: <http://www.gnu.org/gethelp/>."
17548 _ACEOF
17549 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17550 ac_cs_version="\\
17551 GNU Offloading and Multi Processing Runtime Library config.status 1.0
17552 configured by $0, generated by GNU Autoconf 2.64,
17553 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17555 Copyright (C) 2009 Free Software Foundation, Inc.
17556 This config.status script is free software; the Free Software Foundation
17557 gives unlimited permission to copy, distribute and modify it."
17559 ac_pwd='$ac_pwd'
17560 srcdir='$srcdir'
17561 INSTALL='$INSTALL'
17562 MKDIR_P='$MKDIR_P'
17563 AWK='$AWK'
17564 test -n "\$AWK" || AWK=awk
17565 _ACEOF
17567 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17568 # The default lists apply if the user does not specify any file.
17569 ac_need_defaults=:
17570 while test $# != 0
17572 case $1 in
17573 --*=*)
17574 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17575 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17576 ac_shift=:
17579 ac_option=$1
17580 ac_optarg=$2
17581 ac_shift=shift
17583 esac
17585 case $ac_option in
17586 # Handling of the options.
17587 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17588 ac_cs_recheck=: ;;
17589 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17590 $as_echo "$ac_cs_version"; exit ;;
17591 --debug | --debu | --deb | --de | --d | -d )
17592 debug=: ;;
17593 --file | --fil | --fi | --f )
17594 $ac_shift
17595 case $ac_optarg in
17596 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17597 esac
17598 as_fn_append CONFIG_FILES " '$ac_optarg'"
17599 ac_need_defaults=false;;
17600 --header | --heade | --head | --hea )
17601 $ac_shift
17602 case $ac_optarg in
17603 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17604 esac
17605 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17606 ac_need_defaults=false;;
17607 --he | --h)
17608 # Conflict between --help and --header
17609 as_fn_error "ambiguous option: \`$1'
17610 Try \`$0 --help' for more information.";;
17611 --help | --hel | -h )
17612 $as_echo "$ac_cs_usage"; exit ;;
17613 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17614 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17615 ac_cs_silent=: ;;
17617 # This is an error.
17618 -*) as_fn_error "unrecognized option: \`$1'
17619 Try \`$0 --help' for more information." ;;
17621 *) as_fn_append ac_config_targets " $1"
17622 ac_need_defaults=false ;;
17624 esac
17625 shift
17626 done
17628 ac_configure_extra_args=
17630 if $ac_cs_silent; then
17631 exec 6>/dev/null
17632 ac_configure_extra_args="$ac_configure_extra_args --silent"
17635 _ACEOF
17636 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17637 if \$ac_cs_recheck; then
17638 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17639 shift
17640 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17641 CONFIG_SHELL='$SHELL'
17642 export CONFIG_SHELL
17643 exec "\$@"
17646 _ACEOF
17647 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17648 exec 5>>config.log
17650 echo
17651 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17652 ## Running $as_me. ##
17653 _ASBOX
17654 $as_echo "$ac_log"
17655 } >&5
17657 _ACEOF
17658 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17660 # INIT-COMMANDS
17663 srcdir="$srcdir"
17664 host="$host"
17665 target="$target"
17666 with_multisubdir="$with_multisubdir"
17667 with_multisrctop="$with_multisrctop"
17668 with_target_subdir="$with_target_subdir"
17669 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17670 multi_basedir="$multi_basedir"
17671 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17672 CC="$CC"
17673 CXX="$CXX"
17674 GFORTRAN="$GFORTRAN"
17675 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17678 # The HP-UX ksh and POSIX shell print the target directory to stdout
17679 # if CDPATH is set.
17680 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17682 sed_quote_subst='$sed_quote_subst'
17683 double_quote_subst='$double_quote_subst'
17684 delay_variable_subst='$delay_variable_subst'
17685 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17686 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17687 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17688 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17689 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17690 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17691 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17692 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17693 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17694 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17695 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17696 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17697 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17698 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17699 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17700 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17701 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17702 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17703 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17704 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17705 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17706 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17707 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17708 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17709 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17710 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17711 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17712 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17713 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17714 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17715 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17716 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17717 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17718 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17719 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17720 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17721 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17722 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17723 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17724 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17725 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17726 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17727 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17728 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17729 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17730 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17731 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17732 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17733 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"`'
17734 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17735 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17736 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17737 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17738 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17739 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17740 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17741 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17742 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17743 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17744 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17745 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17746 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17747 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17748 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17749 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17750 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17751 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17752 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17753 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17754 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17755 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17756 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17757 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17758 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17759 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17760 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17761 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17762 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17763 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17764 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17765 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17766 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17767 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17768 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17769 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17770 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17771 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17772 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17773 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17774 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17775 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17776 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17777 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17778 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17779 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17780 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17781 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17782 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17783 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17784 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17785 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17786 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17787 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17788 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17789 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17790 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17791 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17792 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17793 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17794 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17795 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17796 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17797 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17798 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17799 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17800 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17801 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17802 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17803 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17804 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17805 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17806 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17807 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17808 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17809 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17810 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17811 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
17812 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
17813 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
17814 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17815 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
17816 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
17817 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
17818 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
17819 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
17820 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
17821 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
17822 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
17823 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
17824 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17825 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17826 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
17827 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
17828 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
17829 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17830 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17831 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
17832 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17833 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
17834 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17835 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17836 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17837 hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
17838 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
17839 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
17840 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
17841 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
17842 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
17843 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
17844 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
17845 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
17846 fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
17847 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
17848 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
17849 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17850 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17851 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
17852 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
17853 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
17854 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
17855 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
17856 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
17857 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
17858 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
17859 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
17861 LTCC='$LTCC'
17862 LTCFLAGS='$LTCFLAGS'
17863 compiler='$compiler_DEFAULT'
17865 # A function that is used when there is no print builtin or printf.
17866 func_fallback_echo ()
17868 eval 'cat <<_LTECHO_EOF
17870 _LTECHO_EOF'
17873 # Quote evaled strings.
17874 for var in SHELL \
17875 ECHO \
17876 SED \
17877 GREP \
17878 EGREP \
17879 FGREP \
17880 LD \
17881 NM \
17882 LN_S \
17883 lt_SP2NL \
17884 lt_NL2SP \
17885 reload_flag \
17886 OBJDUMP \
17887 deplibs_check_method \
17888 file_magic_cmd \
17889 AR \
17890 AR_FLAGS \
17891 STRIP \
17892 RANLIB \
17893 CC \
17894 CFLAGS \
17895 compiler \
17896 lt_cv_sys_global_symbol_pipe \
17897 lt_cv_sys_global_symbol_to_cdecl \
17898 lt_cv_sys_global_symbol_to_c_name_address \
17899 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17900 lt_prog_compiler_no_builtin_flag \
17901 lt_prog_compiler_wl \
17902 lt_prog_compiler_pic \
17903 lt_prog_compiler_static \
17904 lt_cv_prog_compiler_c_o \
17905 need_locks \
17906 DSYMUTIL \
17907 NMEDIT \
17908 LIPO \
17909 OTOOL \
17910 OTOOL64 \
17911 shrext_cmds \
17912 export_dynamic_flag_spec \
17913 whole_archive_flag_spec \
17914 compiler_needs_object \
17915 with_gnu_ld \
17916 allow_undefined_flag \
17917 no_undefined_flag \
17918 hardcode_libdir_flag_spec \
17919 hardcode_libdir_flag_spec_ld \
17920 hardcode_libdir_separator \
17921 fix_srcfile_path \
17922 exclude_expsyms \
17923 include_expsyms \
17924 file_list_spec \
17925 variables_saved_for_relink \
17926 libname_spec \
17927 library_names_spec \
17928 soname_spec \
17929 install_override_mode \
17930 finish_eval \
17931 old_striplib \
17932 striplib \
17933 compiler_lib_search_dirs \
17934 predep_objects \
17935 postdep_objects \
17936 predeps \
17937 postdeps \
17938 compiler_lib_search_path \
17939 LD_FC \
17940 reload_flag_FC \
17941 compiler_FC \
17942 lt_prog_compiler_no_builtin_flag_FC \
17943 lt_prog_compiler_wl_FC \
17944 lt_prog_compiler_pic_FC \
17945 lt_prog_compiler_static_FC \
17946 lt_cv_prog_compiler_c_o_FC \
17947 export_dynamic_flag_spec_FC \
17948 whole_archive_flag_spec_FC \
17949 compiler_needs_object_FC \
17950 with_gnu_ld_FC \
17951 allow_undefined_flag_FC \
17952 no_undefined_flag_FC \
17953 hardcode_libdir_flag_spec_FC \
17954 hardcode_libdir_flag_spec_ld_FC \
17955 hardcode_libdir_separator_FC \
17956 fix_srcfile_path_FC \
17957 exclude_expsyms_FC \
17958 include_expsyms_FC \
17959 file_list_spec_FC \
17960 compiler_lib_search_dirs_FC \
17961 predep_objects_FC \
17962 postdep_objects_FC \
17963 predeps_FC \
17964 postdeps_FC \
17965 compiler_lib_search_path_FC; do
17966 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17967 *[\\\\\\\`\\"\\\$]*)
17968 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17971 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17973 esac
17974 done
17976 # Double-quote double-evaled strings.
17977 for var in reload_cmds \
17978 old_postinstall_cmds \
17979 old_postuninstall_cmds \
17980 old_archive_cmds \
17981 extract_expsyms_cmds \
17982 old_archive_from_new_cmds \
17983 old_archive_from_expsyms_cmds \
17984 archive_cmds \
17985 archive_expsym_cmds \
17986 module_cmds \
17987 module_expsym_cmds \
17988 export_symbols_cmds \
17989 prelink_cmds \
17990 postinstall_cmds \
17991 postuninstall_cmds \
17992 finish_cmds \
17993 sys_lib_search_path_spec \
17994 sys_lib_dlsearch_path_spec \
17995 reload_cmds_FC \
17996 old_archive_cmds_FC \
17997 old_archive_from_new_cmds_FC \
17998 old_archive_from_expsyms_cmds_FC \
17999 archive_cmds_FC \
18000 archive_expsym_cmds_FC \
18001 module_cmds_FC \
18002 module_expsym_cmds_FC \
18003 export_symbols_cmds_FC \
18004 prelink_cmds_FC; do
18005 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18006 *[\\\\\\\`\\"\\\$]*)
18007 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18010 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18012 esac
18013 done
18015 ac_aux_dir='$ac_aux_dir'
18016 xsi_shell='$xsi_shell'
18017 lt_shell_append='$lt_shell_append'
18019 # See if we are running on zsh, and set the options which allow our
18020 # commands through without removal of \ escapes INIT.
18021 if test -n "\${ZSH_VERSION+set}" ; then
18022 setopt NO_GLOB_SUBST
18026 PACKAGE='$PACKAGE'
18027 VERSION='$VERSION'
18028 TIMESTAMP='$TIMESTAMP'
18029 RM='$RM'
18030 ofile='$ofile'
18037 GCC="$GCC"
18038 CC="$CC"
18039 acx_cv_header_stdint="$acx_cv_header_stdint"
18040 acx_cv_type_int8_t="$acx_cv_type_int8_t"
18041 acx_cv_type_int16_t="$acx_cv_type_int16_t"
18042 acx_cv_type_int32_t="$acx_cv_type_int32_t"
18043 acx_cv_type_int64_t="$acx_cv_type_int64_t"
18044 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
18045 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
18046 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
18047 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
18048 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
18049 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
18050 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
18051 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
18052 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
18055 _ACEOF
18057 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18059 # Handling of arguments.
18060 for ac_config_target in $ac_config_targets
18062 case $ac_config_target in
18063 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18064 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18065 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18066 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18067 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
18068 "omp.h") CONFIG_FILES="$CONFIG_FILES omp.h" ;;
18069 "omp_lib.h") CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
18070 "omp_lib.f90") CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
18071 "libgomp_f.h") CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
18072 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18073 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
18074 "libgomp.spec") CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
18075 "testsuite/libgomp-test-support.pt.exp") CONFIG_FILES="$CONFIG_FILES testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in" ;;
18077 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18078 esac
18079 done
18082 # If the user did not use the arguments to specify the items to instantiate,
18083 # then the envvar interface is used. Set only those that are not.
18084 # We use the long form for the default assignment because of an extremely
18085 # bizarre bug on SunOS 4.1.3.
18086 if $ac_need_defaults; then
18087 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18088 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18089 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18092 # Have a temporary directory for convenience. Make it in the build tree
18093 # simply because there is no reason against having it here, and in addition,
18094 # creating and moving files from /tmp can sometimes cause problems.
18095 # Hook for its removal unless debugging.
18096 # Note that there is a small window in which the directory will not be cleaned:
18097 # after its creation but before its name has been assigned to `$tmp'.
18098 $debug ||
18100 tmp=
18101 trap 'exit_status=$?
18102 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18104 trap 'as_fn_exit 1' 1 2 13 15
18106 # Create a (secure) tmp directory for tmp files.
18109 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18110 test -n "$tmp" && test -d "$tmp"
18111 } ||
18113 tmp=./conf$$-$RANDOM
18114 (umask 077 && mkdir "$tmp")
18115 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
18117 # Set up the scripts for CONFIG_FILES section.
18118 # No need to generate them if there are no CONFIG_FILES.
18119 # This happens for instance with `./config.status config.h'.
18120 if test -n "$CONFIG_FILES"; then
18123 ac_cr=`echo X | tr X '\015'`
18124 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18125 # But we know of no other shell where ac_cr would be empty at this
18126 # point, so we can use a bashism as a fallback.
18127 if test "x$ac_cr" = x; then
18128 eval ac_cr=\$\'\\r\'
18130 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18131 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18132 ac_cs_awk_cr='\r'
18133 else
18134 ac_cs_awk_cr=$ac_cr
18137 echo 'BEGIN {' >"$tmp/subs1.awk" &&
18138 _ACEOF
18142 echo "cat >conf$$subs.awk <<_ACEOF" &&
18143 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18144 echo "_ACEOF"
18145 } >conf$$subs.sh ||
18146 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18147 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18148 ac_delim='%!_!# '
18149 for ac_last_try in false false false false false :; do
18150 . ./conf$$subs.sh ||
18151 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18153 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18154 if test $ac_delim_n = $ac_delim_num; then
18155 break
18156 elif $ac_last_try; then
18157 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18158 else
18159 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18161 done
18162 rm -f conf$$subs.sh
18164 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18165 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18166 _ACEOF
18167 sed -n '
18169 s/^/S["/; s/!.*/"]=/
18172 s/^[^!]*!//
18173 :repl
18174 t repl
18175 s/'"$ac_delim"'$//
18176 t delim
18179 s/\(.\{148\}\).*/\1/
18180 t more1
18181 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18184 b repl
18185 :more1
18186 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18189 s/.\{148\}//
18190 t nl
18191 :delim
18193 s/\(.\{148\}\).*/\1/
18194 t more2
18195 s/["\\]/\\&/g; s/^/"/; s/$/"/
18198 :more2
18199 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18202 s/.\{148\}//
18203 t delim
18204 ' <conf$$subs.awk | sed '
18205 /^[^""]/{
18207 s/\n//
18209 ' >>$CONFIG_STATUS || ac_write_fail=1
18210 rm -f conf$$subs.awk
18211 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18212 _ACAWK
18213 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18214 for (key in S) S_is_set[key] = 1
18215 FS = "\a"
18219 line = $ 0
18220 nfields = split(line, field, "@")
18221 substed = 0
18222 len = length(field[1])
18223 for (i = 2; i < nfields; i++) {
18224 key = field[i]
18225 keylen = length(key)
18226 if (S_is_set[key]) {
18227 value = S[key]
18228 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18229 len += length(value) + length(field[++i])
18230 substed = 1
18231 } else
18232 len += 1 + keylen
18235 print line
18238 _ACAWK
18239 _ACEOF
18240 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18241 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18242 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18243 else
18245 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18246 || as_fn_error "could not setup config files machinery" "$LINENO" 5
18247 _ACEOF
18249 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18250 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18251 # trailing colons and then remove the whole line if VPATH becomes empty
18252 # (actually we leave an empty line to preserve line numbers).
18253 if test "x$srcdir" = x.; then
18254 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18255 s/:*\$(srcdir):*/:/
18256 s/:*\${srcdir}:*/:/
18257 s/:*@srcdir@:*/:/
18258 s/^\([^=]*=[ ]*\):*/\1/
18259 s/:*$//
18260 s/^[^=]*=[ ]*$//
18264 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18265 fi # test -n "$CONFIG_FILES"
18267 # Set up the scripts for CONFIG_HEADERS section.
18268 # No need to generate them if there are no CONFIG_HEADERS.
18269 # This happens for instance with `./config.status Makefile'.
18270 if test -n "$CONFIG_HEADERS"; then
18271 cat >"$tmp/defines.awk" <<\_ACAWK ||
18272 BEGIN {
18273 _ACEOF
18275 # Transform confdefs.h into an awk script `defines.awk', embedded as
18276 # here-document in config.status, that substitutes the proper values into
18277 # config.h.in to produce config.h.
18279 # Create a delimiter string that does not exist in confdefs.h, to ease
18280 # handling of long lines.
18281 ac_delim='%!_!# '
18282 for ac_last_try in false false :; do
18283 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18284 if test -z "$ac_t"; then
18285 break
18286 elif $ac_last_try; then
18287 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
18288 else
18289 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18291 done
18293 # For the awk script, D is an array of macro values keyed by name,
18294 # likewise P contains macro parameters if any. Preserve backslash
18295 # newline sequences.
18297 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18298 sed -n '
18299 s/.\{148\}/&'"$ac_delim"'/g
18300 t rset
18301 :rset
18302 s/^[ ]*#[ ]*define[ ][ ]*/ /
18303 t def
18305 :def
18306 s/\\$//
18307 t bsnl
18308 s/["\\]/\\&/g
18309 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18310 D["\1"]=" \3"/p
18311 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18313 :bsnl
18314 s/["\\]/\\&/g
18315 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18316 D["\1"]=" \3\\\\\\n"\\/p
18317 t cont
18318 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18319 t cont
18321 :cont
18323 s/.\{148\}/&'"$ac_delim"'/g
18324 t clear
18325 :clear
18326 s/\\$//
18327 t bsnlc
18328 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18330 :bsnlc
18331 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18332 b cont
18333 ' <confdefs.h | sed '
18334 s/'"$ac_delim"'/"\\\
18335 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18337 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18338 for (key in D) D_is_set[key] = 1
18339 FS = "\a"
18341 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18342 line = \$ 0
18343 split(line, arg, " ")
18344 if (arg[1] == "#") {
18345 defundef = arg[2]
18346 mac1 = arg[3]
18347 } else {
18348 defundef = substr(arg[1], 2)
18349 mac1 = arg[2]
18351 split(mac1, mac2, "(") #)
18352 macro = mac2[1]
18353 prefix = substr(line, 1, index(line, defundef) - 1)
18354 if (D_is_set[macro]) {
18355 # Preserve the white space surrounding the "#".
18356 print prefix "define", macro P[macro] D[macro]
18357 next
18358 } else {
18359 # Replace #undef with comments. This is necessary, for example,
18360 # in the case of _POSIX_SOURCE, which is predefined and required
18361 # on some systems where configure will not decide to define it.
18362 if (defundef == "undef") {
18363 print "/*", prefix defundef, macro, "*/"
18364 next
18368 { print }
18369 _ACAWK
18370 _ACEOF
18371 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18372 as_fn_error "could not setup config headers machinery" "$LINENO" 5
18373 fi # test -n "$CONFIG_HEADERS"
18376 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18377 shift
18378 for ac_tag
18380 case $ac_tag in
18381 :[FHLC]) ac_mode=$ac_tag; continue;;
18382 esac
18383 case $ac_mode$ac_tag in
18384 :[FHL]*:*);;
18385 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
18386 :[FH]-) ac_tag=-:-;;
18387 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18388 esac
18389 ac_save_IFS=$IFS
18390 IFS=:
18391 set x $ac_tag
18392 IFS=$ac_save_IFS
18393 shift
18394 ac_file=$1
18395 shift
18397 case $ac_mode in
18398 :L) ac_source=$1;;
18399 :[FH])
18400 ac_file_inputs=
18401 for ac_f
18403 case $ac_f in
18404 -) ac_f="$tmp/stdin";;
18405 *) # Look for the file first in the build tree, then in the source tree
18406 # (if the path is not absolute). The absolute path cannot be DOS-style,
18407 # because $ac_f cannot contain `:'.
18408 test -f "$ac_f" ||
18409 case $ac_f in
18410 [\\/$]*) false;;
18411 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18412 esac ||
18413 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18414 esac
18415 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18416 as_fn_append ac_file_inputs " '$ac_f'"
18417 done
18419 # Let's still pretend it is `configure' which instantiates (i.e., don't
18420 # use $as_me), people would be surprised to read:
18421 # /* config.h. Generated by config.status. */
18422 configure_input='Generated from '`
18423 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18424 `' by configure.'
18425 if test x"$ac_file" != x-; then
18426 configure_input="$ac_file. $configure_input"
18427 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18428 $as_echo "$as_me: creating $ac_file" >&6;}
18430 # Neutralize special characters interpreted by sed in replacement strings.
18431 case $configure_input in #(
18432 *\&* | *\|* | *\\* )
18433 ac_sed_conf_input=`$as_echo "$configure_input" |
18434 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18435 *) ac_sed_conf_input=$configure_input;;
18436 esac
18438 case $ac_tag in
18439 *:-:* | *:-) cat >"$tmp/stdin" \
18440 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
18441 esac
18443 esac
18445 ac_dir=`$as_dirname -- "$ac_file" ||
18446 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18447 X"$ac_file" : 'X\(//\)[^/]' \| \
18448 X"$ac_file" : 'X\(//\)$' \| \
18449 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18450 $as_echo X"$ac_file" |
18451 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18452 s//\1/
18455 /^X\(\/\/\)[^/].*/{
18456 s//\1/
18459 /^X\(\/\/\)$/{
18460 s//\1/
18463 /^X\(\/\).*/{
18464 s//\1/
18467 s/.*/./; q'`
18468 as_dir="$ac_dir"; as_fn_mkdir_p
18469 ac_builddir=.
18471 case "$ac_dir" in
18472 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18474 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18475 # A ".." for each directory in $ac_dir_suffix.
18476 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18477 case $ac_top_builddir_sub in
18478 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18479 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18480 esac ;;
18481 esac
18482 ac_abs_top_builddir=$ac_pwd
18483 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18484 # for backward compatibility:
18485 ac_top_builddir=$ac_top_build_prefix
18487 case $srcdir in
18488 .) # We are building in place.
18489 ac_srcdir=.
18490 ac_top_srcdir=$ac_top_builddir_sub
18491 ac_abs_top_srcdir=$ac_pwd ;;
18492 [\\/]* | ?:[\\/]* ) # Absolute name.
18493 ac_srcdir=$srcdir$ac_dir_suffix;
18494 ac_top_srcdir=$srcdir
18495 ac_abs_top_srcdir=$srcdir ;;
18496 *) # Relative name.
18497 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18498 ac_top_srcdir=$ac_top_build_prefix$srcdir
18499 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18500 esac
18501 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18504 case $ac_mode in
18507 # CONFIG_FILE
18510 case $INSTALL in
18511 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18512 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18513 esac
18514 ac_MKDIR_P=$MKDIR_P
18515 case $MKDIR_P in
18516 [\\/$]* | ?:[\\/]* ) ;;
18517 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18518 esac
18519 _ACEOF
18521 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18522 # If the template does not know about datarootdir, expand it.
18523 # FIXME: This hack should be removed a few years after 2.60.
18524 ac_datarootdir_hack=; ac_datarootdir_seen=
18525 ac_sed_dataroot='
18526 /datarootdir/ {
18530 /@datadir@/p
18531 /@docdir@/p
18532 /@infodir@/p
18533 /@localedir@/p
18534 /@mandir@/p'
18535 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18536 *datarootdir*) ac_datarootdir_seen=yes;;
18537 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18539 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18540 _ACEOF
18541 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18542 ac_datarootdir_hack='
18543 s&@datadir@&$datadir&g
18544 s&@docdir@&$docdir&g
18545 s&@infodir@&$infodir&g
18546 s&@localedir@&$localedir&g
18547 s&@mandir@&$mandir&g
18548 s&\\\${datarootdir}&$datarootdir&g' ;;
18549 esac
18550 _ACEOF
18552 # Neutralize VPATH when `$srcdir' = `.'.
18553 # Shell code in configure.ac might set extrasub.
18554 # FIXME: do we really want to maintain this feature?
18555 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18556 ac_sed_extra="$ac_vpsub
18557 $extrasub
18558 _ACEOF
18559 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18561 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18562 s|@configure_input@|$ac_sed_conf_input|;t t
18563 s&@top_builddir@&$ac_top_builddir_sub&;t t
18564 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18565 s&@srcdir@&$ac_srcdir&;t t
18566 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18567 s&@top_srcdir@&$ac_top_srcdir&;t t
18568 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18569 s&@builddir@&$ac_builddir&;t t
18570 s&@abs_builddir@&$ac_abs_builddir&;t t
18571 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18572 s&@INSTALL@&$ac_INSTALL&;t t
18573 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18574 $ac_datarootdir_hack
18576 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18577 || as_fn_error "could not create $ac_file" "$LINENO" 5
18579 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18580 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18581 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18583 which seems to be undefined. Please make sure it is defined." >&5
18584 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18585 which seems to be undefined. Please make sure it is defined." >&2;}
18587 rm -f "$tmp/stdin"
18588 case $ac_file in
18589 -) cat "$tmp/out" && rm -f "$tmp/out";;
18590 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18591 esac \
18592 || as_fn_error "could not create $ac_file" "$LINENO" 5
18596 # CONFIG_HEADER
18598 if test x"$ac_file" != x-; then
18600 $as_echo "/* $configure_input */" \
18601 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18602 } >"$tmp/config.h" \
18603 || as_fn_error "could not create $ac_file" "$LINENO" 5
18604 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18605 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18606 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18607 else
18608 rm -f "$ac_file"
18609 mv "$tmp/config.h" "$ac_file" \
18610 || as_fn_error "could not create $ac_file" "$LINENO" 5
18612 else
18613 $as_echo "/* $configure_input */" \
18614 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18615 || as_fn_error "could not create -" "$LINENO" 5
18617 # Compute "$ac_file"'s index in $config_headers.
18618 _am_arg="$ac_file"
18619 _am_stamp_count=1
18620 for _am_header in $config_headers :; do
18621 case $_am_header in
18622 $_am_arg | $_am_arg:* )
18623 break ;;
18625 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18626 esac
18627 done
18628 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18629 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18630 X"$_am_arg" : 'X\(//\)[^/]' \| \
18631 X"$_am_arg" : 'X\(//\)$' \| \
18632 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18633 $as_echo X"$_am_arg" |
18634 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18635 s//\1/
18638 /^X\(\/\/\)[^/].*/{
18639 s//\1/
18642 /^X\(\/\/\)$/{
18643 s//\1/
18646 /^X\(\/\).*/{
18647 s//\1/
18650 s/.*/./; q'`/stamp-h$_am_stamp_count
18653 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18654 $as_echo "$as_me: executing $ac_file commands" >&6;}
18656 esac
18659 case $ac_file$ac_mode in
18660 "default-1":C)
18661 # Only add multilib support code if we just rebuilt the top-level
18662 # Makefile.
18663 case " $CONFIG_FILES " in
18664 *" Makefile "*)
18665 ac_file=Makefile . ${multi_basedir}/config-ml.in
18667 esac ;;
18668 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18669 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18670 # are listed without --file. Let's play safe and only enable the eval
18671 # if we detect the quoting.
18672 case $CONFIG_FILES in
18673 *\'*) eval set x "$CONFIG_FILES" ;;
18674 *) set x $CONFIG_FILES ;;
18675 esac
18676 shift
18677 for mf
18679 # Strip MF so we end up with the name of the file.
18680 mf=`echo "$mf" | sed -e 's/:.*$//'`
18681 # Check whether this is an Automake generated Makefile or not.
18682 # We used to match only the files named `Makefile.in', but
18683 # some people rename them; so instead we look at the file content.
18684 # Grep'ing the first line is not enough: some people post-process
18685 # each Makefile.in and add a new line on top of each file to say so.
18686 # Grep'ing the whole file is not good either: AIX grep has a line
18687 # limit of 2048, but all sed's we know have understand at least 4000.
18688 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18689 dirpart=`$as_dirname -- "$mf" ||
18690 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18691 X"$mf" : 'X\(//\)[^/]' \| \
18692 X"$mf" : 'X\(//\)$' \| \
18693 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18694 $as_echo X"$mf" |
18695 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18696 s//\1/
18699 /^X\(\/\/\)[^/].*/{
18700 s//\1/
18703 /^X\(\/\/\)$/{
18704 s//\1/
18707 /^X\(\/\).*/{
18708 s//\1/
18711 s/.*/./; q'`
18712 else
18713 continue
18715 # Extract the definition of DEPDIR, am__include, and am__quote
18716 # from the Makefile without running `make'.
18717 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18718 test -z "$DEPDIR" && continue
18719 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18720 test -z "am__include" && continue
18721 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18722 # When using ansi2knr, U may be empty or an underscore; expand it
18723 U=`sed -n 's/^U = //p' < "$mf"`
18724 # Find all dependency output files, they are included files with
18725 # $(DEPDIR) in their names. We invoke sed twice because it is the
18726 # simplest approach to changing $(DEPDIR) to its actual value in the
18727 # expansion.
18728 for file in `sed -n "
18729 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18730 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18731 # Make sure the directory exists.
18732 test -f "$dirpart/$file" && continue
18733 fdir=`$as_dirname -- "$file" ||
18734 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18735 X"$file" : 'X\(//\)[^/]' \| \
18736 X"$file" : 'X\(//\)$' \| \
18737 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18738 $as_echo X"$file" |
18739 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18740 s//\1/
18743 /^X\(\/\/\)[^/].*/{
18744 s//\1/
18747 /^X\(\/\/\)$/{
18748 s//\1/
18751 /^X\(\/\).*/{
18752 s//\1/
18755 s/.*/./; q'`
18756 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18757 # echo "creating $dirpart/$file"
18758 echo '# dummy' > "$dirpart/$file"
18759 done
18760 done
18763 "libtool":C)
18765 # See if we are running on zsh, and set the options which allow our
18766 # commands through without removal of \ escapes.
18767 if test -n "${ZSH_VERSION+set}" ; then
18768 setopt NO_GLOB_SUBST
18771 cfgfile="${ofile}T"
18772 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18773 $RM "$cfgfile"
18775 cat <<_LT_EOF >> "$cfgfile"
18776 #! $SHELL
18778 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18779 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18780 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18781 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18783 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18784 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18785 # Written by Gordon Matzigkeit, 1996
18787 # This file is part of GNU Libtool.
18789 # GNU Libtool is free software; you can redistribute it and/or
18790 # modify it under the terms of the GNU General Public License as
18791 # published by the Free Software Foundation; either version 2 of
18792 # the License, or (at your option) any later version.
18794 # As a special exception to the GNU General Public License,
18795 # if you distribute this file as part of a program or library that
18796 # is built using GNU Libtool, you may include this file under the
18797 # same distribution terms that you use for the rest of that program.
18799 # GNU Libtool is distributed in the hope that it will be useful,
18800 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18801 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18802 # GNU General Public License for more details.
18804 # You should have received a copy of the GNU General Public License
18805 # along with GNU Libtool; see the file COPYING. If not, a copy
18806 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18807 # obtained by writing to the Free Software Foundation, Inc.,
18808 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18811 # The names of the tagged configurations supported by this script.
18812 available_tags="FC "
18814 # ### BEGIN LIBTOOL CONFIG
18816 # Which release of libtool.m4 was used?
18817 macro_version=$macro_version
18818 macro_revision=$macro_revision
18820 # Whether or not to build shared libraries.
18821 build_libtool_libs=$enable_shared
18823 # Whether or not to build static libraries.
18824 build_old_libs=$enable_static
18826 # What type of objects to build.
18827 pic_mode=$pic_mode
18829 # Whether or not to optimize for fast installation.
18830 fast_install=$enable_fast_install
18832 # Shell to use when invoking shell scripts.
18833 SHELL=$lt_SHELL
18835 # An echo program that protects backslashes.
18836 ECHO=$lt_ECHO
18838 # The host system.
18839 host_alias=$host_alias
18840 host=$host
18841 host_os=$host_os
18843 # The build system.
18844 build_alias=$build_alias
18845 build=$build
18846 build_os=$build_os
18848 # A sed program that does not truncate output.
18849 SED=$lt_SED
18851 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18852 Xsed="\$SED -e 1s/^X//"
18854 # A grep program that handles long lines.
18855 GREP=$lt_GREP
18857 # An ERE matcher.
18858 EGREP=$lt_EGREP
18860 # A literal string matcher.
18861 FGREP=$lt_FGREP
18863 # A BSD- or MS-compatible name lister.
18864 NM=$lt_NM
18866 # Whether we need soft or hard links.
18867 LN_S=$lt_LN_S
18869 # What is the maximum length of a command?
18870 max_cmd_len=$max_cmd_len
18872 # Object file suffix (normally "o").
18873 objext=$ac_objext
18875 # Executable file suffix (normally "").
18876 exeext=$exeext
18878 # whether the shell understands "unset".
18879 lt_unset=$lt_unset
18881 # turn spaces into newlines.
18882 SP2NL=$lt_lt_SP2NL
18884 # turn newlines into spaces.
18885 NL2SP=$lt_lt_NL2SP
18887 # An object symbol dumper.
18888 OBJDUMP=$lt_OBJDUMP
18890 # Method to check whether dependent libraries are shared objects.
18891 deplibs_check_method=$lt_deplibs_check_method
18893 # Command to use when deplibs_check_method == "file_magic".
18894 file_magic_cmd=$lt_file_magic_cmd
18896 # The archiver.
18897 AR=$lt_AR
18898 AR_FLAGS=$lt_AR_FLAGS
18900 # A symbol stripping program.
18901 STRIP=$lt_STRIP
18903 # Commands used to install an old-style archive.
18904 RANLIB=$lt_RANLIB
18905 old_postinstall_cmds=$lt_old_postinstall_cmds
18906 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18908 # Whether to use a lock for old archive extraction.
18909 lock_old_archive_extraction=$lock_old_archive_extraction
18911 # A C compiler.
18912 LTCC=$lt_CC
18914 # LTCC compiler flags.
18915 LTCFLAGS=$lt_CFLAGS
18917 # Take the output of nm and produce a listing of raw symbols and C names.
18918 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18920 # Transform the output of nm in a proper C declaration.
18921 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18923 # Transform the output of nm in a C name address pair.
18924 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18926 # Transform the output of nm in a C name address pair when lib prefix is needed.
18927 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18929 # The name of the directory that contains temporary libtool files.
18930 objdir=$objdir
18932 # Used to examine libraries when file_magic_cmd begins with "file".
18933 MAGIC_CMD=$MAGIC_CMD
18935 # Must we lock files when doing compilation?
18936 need_locks=$lt_need_locks
18938 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18939 DSYMUTIL=$lt_DSYMUTIL
18941 # Tool to change global to local symbols on Mac OS X.
18942 NMEDIT=$lt_NMEDIT
18944 # Tool to manipulate fat objects and archives on Mac OS X.
18945 LIPO=$lt_LIPO
18947 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18948 OTOOL=$lt_OTOOL
18950 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18951 OTOOL64=$lt_OTOOL64
18953 # Old archive suffix (normally "a").
18954 libext=$libext
18956 # Shared library suffix (normally ".so").
18957 shrext_cmds=$lt_shrext_cmds
18959 # The commands to extract the exported symbol list from a shared archive.
18960 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18962 # Variables whose values should be saved in libtool wrapper scripts and
18963 # restored at link time.
18964 variables_saved_for_relink=$lt_variables_saved_for_relink
18966 # Do we need the "lib" prefix for modules?
18967 need_lib_prefix=$need_lib_prefix
18969 # Do we need a version for libraries?
18970 need_version=$need_version
18972 # Library versioning type.
18973 version_type=$version_type
18975 # Shared library runtime path variable.
18976 runpath_var=$runpath_var
18978 # Shared library path variable.
18979 shlibpath_var=$shlibpath_var
18981 # Is shlibpath searched before the hard-coded library search path?
18982 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18984 # Format of library name prefix.
18985 libname_spec=$lt_libname_spec
18987 # List of archive names. First name is the real one, the rest are links.
18988 # The last name is the one that the linker finds with -lNAME
18989 library_names_spec=$lt_library_names_spec
18991 # The coded name of the library, if different from the real name.
18992 soname_spec=$lt_soname_spec
18994 # Permission mode override for installation of shared libraries.
18995 install_override_mode=$lt_install_override_mode
18997 # Command to use after installation of a shared archive.
18998 postinstall_cmds=$lt_postinstall_cmds
19000 # Command to use after uninstallation of a shared archive.
19001 postuninstall_cmds=$lt_postuninstall_cmds
19003 # Commands used to finish a libtool library installation in a directory.
19004 finish_cmds=$lt_finish_cmds
19006 # As "finish_cmds", except a single script fragment to be evaled but
19007 # not shown.
19008 finish_eval=$lt_finish_eval
19010 # Whether we should hardcode library paths into libraries.
19011 hardcode_into_libs=$hardcode_into_libs
19013 # Compile-time system search path for libraries.
19014 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19016 # Run-time system search path for libraries.
19017 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19019 # Whether dlopen is supported.
19020 dlopen_support=$enable_dlopen
19022 # Whether dlopen of programs is supported.
19023 dlopen_self=$enable_dlopen_self
19025 # Whether dlopen of statically linked programs is supported.
19026 dlopen_self_static=$enable_dlopen_self_static
19028 # Commands to strip libraries.
19029 old_striplib=$lt_old_striplib
19030 striplib=$lt_striplib
19033 # The linker used to build libraries.
19034 LD=$lt_LD
19036 # How to create reloadable object files.
19037 reload_flag=$lt_reload_flag
19038 reload_cmds=$lt_reload_cmds
19040 # Commands used to build an old-style archive.
19041 old_archive_cmds=$lt_old_archive_cmds
19043 # A language specific compiler.
19044 CC=$lt_compiler
19046 # Is the compiler the GNU compiler?
19047 with_gcc=$GCC
19049 # Compiler flag to turn off builtin functions.
19050 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19052 # How to pass a linker flag through the compiler.
19053 wl=$lt_lt_prog_compiler_wl
19055 # Additional compiler flags for building library objects.
19056 pic_flag=$lt_lt_prog_compiler_pic
19058 # Compiler flag to prevent dynamic linking.
19059 link_static_flag=$lt_lt_prog_compiler_static
19061 # Does compiler simultaneously support -c and -o options?
19062 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19064 # Whether or not to add -lc for building shared libraries.
19065 build_libtool_need_lc=$archive_cmds_need_lc
19067 # Whether or not to disallow shared libs when runtime libs are static.
19068 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19070 # Compiler flag to allow reflexive dlopens.
19071 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19073 # Compiler flag to generate shared objects directly from archives.
19074 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19076 # Whether the compiler copes with passing no objects directly.
19077 compiler_needs_object=$lt_compiler_needs_object
19079 # Create an old-style archive from a shared archive.
19080 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19082 # Create a temporary old-style archive to link instead of a shared archive.
19083 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19085 # Commands used to build a shared archive.
19086 archive_cmds=$lt_archive_cmds
19087 archive_expsym_cmds=$lt_archive_expsym_cmds
19089 # Commands used to build a loadable module if different from building
19090 # a shared archive.
19091 module_cmds=$lt_module_cmds
19092 module_expsym_cmds=$lt_module_expsym_cmds
19094 # Whether we are building with GNU ld or not.
19095 with_gnu_ld=$lt_with_gnu_ld
19097 # Flag that allows shared libraries with undefined symbols to be built.
19098 allow_undefined_flag=$lt_allow_undefined_flag
19100 # Flag that enforces no undefined symbols.
19101 no_undefined_flag=$lt_no_undefined_flag
19103 # Flag to hardcode \$libdir into a binary during linking.
19104 # This must work even if \$libdir does not exist
19105 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19107 # If ld is used when linking, flag to hardcode \$libdir into a binary
19108 # during linking. This must work even if \$libdir does not exist.
19109 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19111 # Whether we need a single "-rpath" flag with a separated argument.
19112 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19114 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19115 # DIR into the resulting binary.
19116 hardcode_direct=$hardcode_direct
19118 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19119 # DIR into the resulting binary and the resulting library dependency is
19120 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19121 # library is relocated.
19122 hardcode_direct_absolute=$hardcode_direct_absolute
19124 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19125 # into the resulting binary.
19126 hardcode_minus_L=$hardcode_minus_L
19128 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19129 # into the resulting binary.
19130 hardcode_shlibpath_var=$hardcode_shlibpath_var
19132 # Set to "yes" if building a shared library automatically hardcodes DIR
19133 # into the library and all subsequent libraries and executables linked
19134 # against it.
19135 hardcode_automatic=$hardcode_automatic
19137 # Set to yes if linker adds runtime paths of dependent libraries
19138 # to runtime path list.
19139 inherit_rpath=$inherit_rpath
19141 # Whether libtool must link a program against all its dependency libraries.
19142 link_all_deplibs=$link_all_deplibs
19144 # Fix the shell variable \$srcfile for the compiler.
19145 fix_srcfile_path=$lt_fix_srcfile_path
19147 # Set to "yes" if exported symbols are required.
19148 always_export_symbols=$always_export_symbols
19150 # The commands to list exported symbols.
19151 export_symbols_cmds=$lt_export_symbols_cmds
19153 # Symbols that should not be listed in the preloaded symbols.
19154 exclude_expsyms=$lt_exclude_expsyms
19156 # Symbols that must always be exported.
19157 include_expsyms=$lt_include_expsyms
19159 # Commands necessary for linking programs (against libraries) with templates.
19160 prelink_cmds=$lt_prelink_cmds
19162 # Specify filename containing input files.
19163 file_list_spec=$lt_file_list_spec
19165 # How to hardcode a shared library path into an executable.
19166 hardcode_action=$hardcode_action
19168 # The directories searched by this compiler when creating a shared library.
19169 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19171 # Dependencies to place before and after the objects being linked to
19172 # create a shared library.
19173 predep_objects=$lt_predep_objects
19174 postdep_objects=$lt_postdep_objects
19175 predeps=$lt_predeps
19176 postdeps=$lt_postdeps
19178 # The library search path used internally by the compiler when linking
19179 # a shared library.
19180 compiler_lib_search_path=$lt_compiler_lib_search_path
19182 # ### END LIBTOOL CONFIG
19184 _LT_EOF
19186 case $host_os in
19187 aix3*)
19188 cat <<\_LT_EOF >> "$cfgfile"
19189 # AIX sometimes has problems with the GCC collect2 program. For some
19190 # reason, if we set the COLLECT_NAMES environment variable, the problems
19191 # vanish in a puff of smoke.
19192 if test "X${COLLECT_NAMES+set}" != Xset; then
19193 COLLECT_NAMES=
19194 export COLLECT_NAMES
19196 _LT_EOF
19198 esac
19201 ltmain="$ac_aux_dir/ltmain.sh"
19204 # We use sed instead of cat because bash on DJGPP gets confused if
19205 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19206 # text mode, it properly converts lines to CR/LF. This bash problem
19207 # is reportedly fixed, but why not run on old versions too?
19208 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19209 || (rm -f "$cfgfile"; exit 1)
19211 case $xsi_shell in
19212 yes)
19213 cat << \_LT_EOF >> "$cfgfile"
19215 # func_dirname file append nondir_replacement
19216 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19217 # otherwise set result to NONDIR_REPLACEMENT.
19218 func_dirname ()
19220 case ${1} in
19221 */*) func_dirname_result="${1%/*}${2}" ;;
19222 * ) func_dirname_result="${3}" ;;
19223 esac
19226 # func_basename file
19227 func_basename ()
19229 func_basename_result="${1##*/}"
19232 # func_dirname_and_basename file append nondir_replacement
19233 # perform func_basename and func_dirname in a single function
19234 # call:
19235 # dirname: Compute the dirname of FILE. If nonempty,
19236 # add APPEND to the result, otherwise set result
19237 # to NONDIR_REPLACEMENT.
19238 # value returned in "$func_dirname_result"
19239 # basename: Compute filename of FILE.
19240 # value retuned in "$func_basename_result"
19241 # Implementation must be kept synchronized with func_dirname
19242 # and func_basename. For efficiency, we do not delegate to
19243 # those functions but instead duplicate the functionality here.
19244 func_dirname_and_basename ()
19246 case ${1} in
19247 */*) func_dirname_result="${1%/*}${2}" ;;
19248 * ) func_dirname_result="${3}" ;;
19249 esac
19250 func_basename_result="${1##*/}"
19253 # func_stripname prefix suffix name
19254 # strip PREFIX and SUFFIX off of NAME.
19255 # PREFIX and SUFFIX must not contain globbing or regex special
19256 # characters, hashes, percent signs, but SUFFIX may contain a leading
19257 # dot (in which case that matches only a dot).
19258 func_stripname ()
19260 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19261 # positional parameters, so assign one to ordinary parameter first.
19262 func_stripname_result=${3}
19263 func_stripname_result=${func_stripname_result#"${1}"}
19264 func_stripname_result=${func_stripname_result%"${2}"}
19267 # func_opt_split
19268 func_opt_split ()
19270 func_opt_split_opt=${1%%=*}
19271 func_opt_split_arg=${1#*=}
19274 # func_lo2o object
19275 func_lo2o ()
19277 case ${1} in
19278 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19279 *) func_lo2o_result=${1} ;;
19280 esac
19283 # func_xform libobj-or-source
19284 func_xform ()
19286 func_xform_result=${1%.*}.lo
19289 # func_arith arithmetic-term...
19290 func_arith ()
19292 func_arith_result=$(( $* ))
19295 # func_len string
19296 # STRING may not start with a hyphen.
19297 func_len ()
19299 func_len_result=${#1}
19302 _LT_EOF
19304 *) # Bourne compatible functions.
19305 cat << \_LT_EOF >> "$cfgfile"
19307 # func_dirname file append nondir_replacement
19308 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19309 # otherwise set result to NONDIR_REPLACEMENT.
19310 func_dirname ()
19312 # Extract subdirectory from the argument.
19313 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19314 if test "X$func_dirname_result" = "X${1}"; then
19315 func_dirname_result="${3}"
19316 else
19317 func_dirname_result="$func_dirname_result${2}"
19321 # func_basename file
19322 func_basename ()
19324 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19328 # func_stripname prefix suffix name
19329 # strip PREFIX and SUFFIX off of NAME.
19330 # PREFIX and SUFFIX must not contain globbing or regex special
19331 # characters, hashes, percent signs, but SUFFIX may contain a leading
19332 # dot (in which case that matches only a dot).
19333 # func_strip_suffix prefix name
19334 func_stripname ()
19336 case ${2} in
19337 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19338 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19339 esac
19342 # sed scripts:
19343 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19344 my_sed_long_arg='1s/^-[^=]*=//'
19346 # func_opt_split
19347 func_opt_split ()
19349 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19350 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19353 # func_lo2o object
19354 func_lo2o ()
19356 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19359 # func_xform libobj-or-source
19360 func_xform ()
19362 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19365 # func_arith arithmetic-term...
19366 func_arith ()
19368 func_arith_result=`expr "$@"`
19371 # func_len string
19372 # STRING may not start with a hyphen.
19373 func_len ()
19375 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19378 _LT_EOF
19379 esac
19381 case $lt_shell_append in
19382 yes)
19383 cat << \_LT_EOF >> "$cfgfile"
19385 # func_append var value
19386 # Append VALUE to the end of shell variable VAR.
19387 func_append ()
19389 eval "$1+=\$2"
19391 _LT_EOF
19394 cat << \_LT_EOF >> "$cfgfile"
19396 # func_append var value
19397 # Append VALUE to the end of shell variable VAR.
19398 func_append ()
19400 eval "$1=\$$1\$2"
19403 _LT_EOF
19405 esac
19408 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19409 || (rm -f "$cfgfile"; exit 1)
19411 mv -f "$cfgfile" "$ofile" ||
19412 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19413 chmod +x "$ofile"
19416 cat <<_LT_EOF >> "$ofile"
19418 # ### BEGIN LIBTOOL TAG CONFIG: FC
19420 # The linker used to build libraries.
19421 LD=$lt_LD_FC
19423 # How to create reloadable object files.
19424 reload_flag=$lt_reload_flag_FC
19425 reload_cmds=$lt_reload_cmds_FC
19427 # Commands used to build an old-style archive.
19428 old_archive_cmds=$lt_old_archive_cmds_FC
19430 # A language specific compiler.
19431 CC=$lt_compiler_FC
19433 # Is the compiler the GNU compiler?
19434 with_gcc=$GCC_FC
19436 # Compiler flag to turn off builtin functions.
19437 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
19439 # How to pass a linker flag through the compiler.
19440 wl=$lt_lt_prog_compiler_wl_FC
19442 # Additional compiler flags for building library objects.
19443 pic_flag=$lt_lt_prog_compiler_pic_FC
19445 # Compiler flag to prevent dynamic linking.
19446 link_static_flag=$lt_lt_prog_compiler_static_FC
19448 # Does compiler simultaneously support -c and -o options?
19449 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
19451 # Whether or not to add -lc for building shared libraries.
19452 build_libtool_need_lc=$archive_cmds_need_lc_FC
19454 # Whether or not to disallow shared libs when runtime libs are static.
19455 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
19457 # Compiler flag to allow reflexive dlopens.
19458 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
19460 # Compiler flag to generate shared objects directly from archives.
19461 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
19463 # Whether the compiler copes with passing no objects directly.
19464 compiler_needs_object=$lt_compiler_needs_object_FC
19466 # Create an old-style archive from a shared archive.
19467 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
19469 # Create a temporary old-style archive to link instead of a shared archive.
19470 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
19472 # Commands used to build a shared archive.
19473 archive_cmds=$lt_archive_cmds_FC
19474 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
19476 # Commands used to build a loadable module if different from building
19477 # a shared archive.
19478 module_cmds=$lt_module_cmds_FC
19479 module_expsym_cmds=$lt_module_expsym_cmds_FC
19481 # Whether we are building with GNU ld or not.
19482 with_gnu_ld=$lt_with_gnu_ld_FC
19484 # Flag that allows shared libraries with undefined symbols to be built.
19485 allow_undefined_flag=$lt_allow_undefined_flag_FC
19487 # Flag that enforces no undefined symbols.
19488 no_undefined_flag=$lt_no_undefined_flag_FC
19490 # Flag to hardcode \$libdir into a binary during linking.
19491 # This must work even if \$libdir does not exist
19492 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
19494 # If ld is used when linking, flag to hardcode \$libdir into a binary
19495 # during linking. This must work even if \$libdir does not exist.
19496 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
19498 # Whether we need a single "-rpath" flag with a separated argument.
19499 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
19501 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19502 # DIR into the resulting binary.
19503 hardcode_direct=$hardcode_direct_FC
19505 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19506 # DIR into the resulting binary and the resulting library dependency is
19507 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19508 # library is relocated.
19509 hardcode_direct_absolute=$hardcode_direct_absolute_FC
19511 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19512 # into the resulting binary.
19513 hardcode_minus_L=$hardcode_minus_L_FC
19515 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19516 # into the resulting binary.
19517 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
19519 # Set to "yes" if building a shared library automatically hardcodes DIR
19520 # into the library and all subsequent libraries and executables linked
19521 # against it.
19522 hardcode_automatic=$hardcode_automatic_FC
19524 # Set to yes if linker adds runtime paths of dependent libraries
19525 # to runtime path list.
19526 inherit_rpath=$inherit_rpath_FC
19528 # Whether libtool must link a program against all its dependency libraries.
19529 link_all_deplibs=$link_all_deplibs_FC
19531 # Fix the shell variable \$srcfile for the compiler.
19532 fix_srcfile_path=$lt_fix_srcfile_path_FC
19534 # Set to "yes" if exported symbols are required.
19535 always_export_symbols=$always_export_symbols_FC
19537 # The commands to list exported symbols.
19538 export_symbols_cmds=$lt_export_symbols_cmds_FC
19540 # Symbols that should not be listed in the preloaded symbols.
19541 exclude_expsyms=$lt_exclude_expsyms_FC
19543 # Symbols that must always be exported.
19544 include_expsyms=$lt_include_expsyms_FC
19546 # Commands necessary for linking programs (against libraries) with templates.
19547 prelink_cmds=$lt_prelink_cmds_FC
19549 # Specify filename containing input files.
19550 file_list_spec=$lt_file_list_spec_FC
19552 # How to hardcode a shared library path into an executable.
19553 hardcode_action=$hardcode_action_FC
19555 # The directories searched by this compiler when creating a shared library.
19556 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
19558 # Dependencies to place before and after the objects being linked to
19559 # create a shared library.
19560 predep_objects=$lt_predep_objects_FC
19561 postdep_objects=$lt_postdep_objects_FC
19562 predeps=$lt_predeps_FC
19563 postdeps=$lt_postdeps_FC
19565 # The library search path used internally by the compiler when linking
19566 # a shared library.
19567 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
19569 # ### END LIBTOOL TAG CONFIG: FC
19570 _LT_EOF
19573 "gstdint.h":C)
19574 if test "$GCC" = yes; then
19575 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
19576 else
19577 echo "/* generated for $CC */" > tmp-stdint.h
19580 sed 's/^ *//' >> tmp-stdint.h <<EOF
19582 #ifndef GCC_GENERATED_STDINT_H
19583 #define GCC_GENERATED_STDINT_H 1
19585 #include <sys/types.h>
19588 if test "$acx_cv_header_stdint" != stdint.h; then
19589 echo "#include <stddef.h>" >> tmp-stdint.h
19591 if test "$acx_cv_header_stdint" != stddef.h; then
19592 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
19595 sed 's/^ *//' >> tmp-stdint.h <<EOF
19596 /* glibc uses these symbols as guards to prevent redefinitions. */
19597 #ifdef __int8_t_defined
19598 #define _INT8_T
19599 #define _INT16_T
19600 #define _INT32_T
19601 #endif
19602 #ifdef __uint32_t_defined
19603 #define _UINT32_T
19604 #endif
19608 # ----------------- done header, emit basic int types -------------
19609 if test "$acx_cv_header_stdint" = stddef.h; then
19610 sed 's/^ *//' >> tmp-stdint.h <<EOF
19612 #ifndef _UINT8_T
19613 #define _UINT8_T
19614 #ifndef __uint8_t_defined
19615 #define __uint8_t_defined
19616 #ifndef uint8_t
19617 typedef unsigned $acx_cv_type_int8_t uint8_t;
19618 #endif
19619 #endif
19620 #endif
19622 #ifndef _UINT16_T
19623 #define _UINT16_T
19624 #ifndef __uint16_t_defined
19625 #define __uint16_t_defined
19626 #ifndef uint16_t
19627 typedef unsigned $acx_cv_type_int16_t uint16_t;
19628 #endif
19629 #endif
19630 #endif
19632 #ifndef _UINT32_T
19633 #define _UINT32_T
19634 #ifndef __uint32_t_defined
19635 #define __uint32_t_defined
19636 #ifndef uint32_t
19637 typedef unsigned $acx_cv_type_int32_t uint32_t;
19638 #endif
19639 #endif
19640 #endif
19642 #ifndef _INT8_T
19643 #define _INT8_T
19644 #ifndef __int8_t_defined
19645 #define __int8_t_defined
19646 #ifndef int8_t
19647 typedef $acx_cv_type_int8_t int8_t;
19648 #endif
19649 #endif
19650 #endif
19652 #ifndef _INT16_T
19653 #define _INT16_T
19654 #ifndef __int16_t_defined
19655 #define __int16_t_defined
19656 #ifndef int16_t
19657 typedef $acx_cv_type_int16_t int16_t;
19658 #endif
19659 #endif
19660 #endif
19662 #ifndef _INT32_T
19663 #define _INT32_T
19664 #ifndef __int32_t_defined
19665 #define __int32_t_defined
19666 #ifndef int32_t
19667 typedef $acx_cv_type_int32_t int32_t;
19668 #endif
19669 #endif
19670 #endif
19672 elif test "$ac_cv_type_u_int32_t" = yes; then
19673 sed 's/^ *//' >> tmp-stdint.h <<EOF
19675 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
19676 #ifndef _INT8_T
19677 #define _INT8_T
19678 #endif
19679 #ifndef _INT16_T
19680 #define _INT16_T
19681 #endif
19682 #ifndef _INT32_T
19683 #define _INT32_T
19684 #endif
19686 #ifndef _UINT8_T
19687 #define _UINT8_T
19688 #ifndef __uint8_t_defined
19689 #define __uint8_t_defined
19690 #ifndef uint8_t
19691 typedef u_int8_t uint8_t;
19692 #endif
19693 #endif
19694 #endif
19696 #ifndef _UINT16_T
19697 #define _UINT16_T
19698 #ifndef __uint16_t_defined
19699 #define __uint16_t_defined
19700 #ifndef uint16_t
19701 typedef u_int16_t uint16_t;
19702 #endif
19703 #endif
19704 #endif
19706 #ifndef _UINT32_T
19707 #define _UINT32_T
19708 #ifndef __uint32_t_defined
19709 #define __uint32_t_defined
19710 #ifndef uint32_t
19711 typedef u_int32_t uint32_t;
19712 #endif
19713 #endif
19714 #endif
19716 else
19717 sed 's/^ *//' >> tmp-stdint.h <<EOF
19719 /* Some systems have guard macros to prevent redefinitions, define them. */
19720 #ifndef _INT8_T
19721 #define _INT8_T
19722 #endif
19723 #ifndef _INT16_T
19724 #define _INT16_T
19725 #endif
19726 #ifndef _INT32_T
19727 #define _INT32_T
19728 #endif
19729 #ifndef _UINT8_T
19730 #define _UINT8_T
19731 #endif
19732 #ifndef _UINT16_T
19733 #define _UINT16_T
19734 #endif
19735 #ifndef _UINT32_T
19736 #define _UINT32_T
19737 #endif
19741 # ------------- done basic int types, emit int64_t types ------------
19742 if test "$ac_cv_type_uint64_t" = yes; then
19743 sed 's/^ *//' >> tmp-stdint.h <<EOF
19745 /* system headers have good uint64_t and int64_t */
19746 #ifndef _INT64_T
19747 #define _INT64_T
19748 #endif
19749 #ifndef _UINT64_T
19750 #define _UINT64_T
19751 #endif
19753 elif test "$ac_cv_type_u_int64_t" = yes; then
19754 sed 's/^ *//' >> tmp-stdint.h <<EOF
19756 /* system headers have an u_int64_t (and int64_t) */
19757 #ifndef _INT64_T
19758 #define _INT64_T
19759 #endif
19760 #ifndef _UINT64_T
19761 #define _UINT64_T
19762 #ifndef __uint64_t_defined
19763 #define __uint64_t_defined
19764 #ifndef uint64_t
19765 typedef u_int64_t uint64_t;
19766 #endif
19767 #endif
19768 #endif
19770 elif test -n "$acx_cv_type_int64_t"; then
19771 sed 's/^ *//' >> tmp-stdint.h <<EOF
19773 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
19774 #ifndef _INT64_T
19775 #define _INT64_T
19776 #ifndef int64_t
19777 typedef $acx_cv_type_int64_t int64_t;
19778 #endif
19779 #endif
19780 #ifndef _UINT64_T
19781 #define _UINT64_T
19782 #ifndef __uint64_t_defined
19783 #define __uint64_t_defined
19784 #ifndef uint64_t
19785 typedef unsigned $acx_cv_type_int64_t uint64_t;
19786 #endif
19787 #endif
19788 #endif
19790 else
19791 sed 's/^ *//' >> tmp-stdint.h <<EOF
19793 /* some common heuristics for int64_t, using compiler-specific tests */
19794 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
19795 #ifndef _INT64_T
19796 #define _INT64_T
19797 #ifndef __int64_t_defined
19798 #ifndef int64_t
19799 typedef long long int64_t;
19800 #endif
19801 #endif
19802 #endif
19803 #ifndef _UINT64_T
19804 #define _UINT64_T
19805 #ifndef uint64_t
19806 typedef unsigned long long uint64_t;
19807 #endif
19808 #endif
19810 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
19811 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
19812 does not implement __extension__. But that compiler doesn't define
19813 __GNUC_MINOR__. */
19814 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
19815 # define __extension__
19816 # endif
19818 # ifndef _INT64_T
19819 # define _INT64_T
19820 # ifndef int64_t
19821 __extension__ typedef long long int64_t;
19822 # endif
19823 # endif
19824 # ifndef _UINT64_T
19825 # define _UINT64_T
19826 # ifndef uint64_t
19827 __extension__ typedef unsigned long long uint64_t;
19828 # endif
19829 # endif
19831 #elif !defined __STRICT_ANSI__
19832 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
19834 # ifndef _INT64_T
19835 # define _INT64_T
19836 # ifndef int64_t
19837 typedef __int64 int64_t;
19838 # endif
19839 # endif
19840 # ifndef _UINT64_T
19841 # define _UINT64_T
19842 # ifndef uint64_t
19843 typedef unsigned __int64 uint64_t;
19844 # endif
19845 # endif
19846 # endif /* compiler */
19848 #endif /* ANSI version */
19852 # ------------- done int64_t types, emit intptr types ------------
19853 if test "$ac_cv_type_uintptr_t" != yes; then
19854 sed 's/^ *//' >> tmp-stdint.h <<EOF
19856 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
19857 #ifndef __uintptr_t_defined
19858 #ifndef uintptr_t
19859 typedef u$acx_cv_type_intptr_t uintptr_t;
19860 #endif
19861 #endif
19862 #ifndef __intptr_t_defined
19863 #ifndef intptr_t
19864 typedef $acx_cv_type_intptr_t intptr_t;
19865 #endif
19866 #endif
19870 # ------------- done intptr types, emit int_least types ------------
19871 if test "$ac_cv_type_int_least32_t" != yes; then
19872 sed 's/^ *//' >> tmp-stdint.h <<EOF
19874 /* Define int_least types */
19875 typedef int8_t int_least8_t;
19876 typedef int16_t int_least16_t;
19877 typedef int32_t int_least32_t;
19878 #ifdef _INT64_T
19879 typedef int64_t int_least64_t;
19880 #endif
19882 typedef uint8_t uint_least8_t;
19883 typedef uint16_t uint_least16_t;
19884 typedef uint32_t uint_least32_t;
19885 #ifdef _UINT64_T
19886 typedef uint64_t uint_least64_t;
19887 #endif
19891 # ------------- done intptr types, emit int_fast types ------------
19892 if test "$ac_cv_type_int_fast32_t" != yes; then
19893 sed 's/^ *//' >> tmp-stdint.h <<EOF
19895 /* Define int_fast types. short is often slow */
19896 typedef int8_t int_fast8_t;
19897 typedef int int_fast16_t;
19898 typedef int32_t int_fast32_t;
19899 #ifdef _INT64_T
19900 typedef int64_t int_fast64_t;
19901 #endif
19903 typedef uint8_t uint_fast8_t;
19904 typedef unsigned int uint_fast16_t;
19905 typedef uint32_t uint_fast32_t;
19906 #ifdef _UINT64_T
19907 typedef uint64_t uint_fast64_t;
19908 #endif
19912 if test "$ac_cv_type_uintmax_t" != yes; then
19913 sed 's/^ *//' >> tmp-stdint.h <<EOF
19915 /* Define intmax based on what we found */
19916 #ifndef intmax_t
19917 #ifdef _INT64_T
19918 typedef int64_t intmax_t;
19919 #else
19920 typedef long intmax_t;
19921 #endif
19922 #endif
19923 #ifndef uintmax_t
19924 #ifdef _UINT64_T
19925 typedef uint64_t uintmax_t;
19926 #else
19927 typedef unsigned long uintmax_t;
19928 #endif
19929 #endif
19933 sed 's/^ *//' >> tmp-stdint.h <<EOF
19935 #endif /* GCC_GENERATED_STDINT_H */
19938 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
19939 rm -f tmp-stdint.h
19940 else
19941 mv -f tmp-stdint.h gstdint.h
19946 esac
19947 done # for ac_tag
19950 as_fn_exit 0
19951 _ACEOF
19952 ac_clean_files=$ac_clean_files_save
19954 test $ac_write_fail = 0 ||
19955 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19958 # configure is writing to config.log, and then calls config.status.
19959 # config.status does its own redirection, appending to config.log.
19960 # Unfortunately, on DOS this fails, as config.log is still kept open
19961 # by configure, so config.status won't be able to write to it; its
19962 # output is simply discarded. So we exec the FD to /dev/null,
19963 # effectively closing config.log, so it can be properly (re)opened and
19964 # appended to by config.status. When coming back to configure, we
19965 # need to make the FD available again.
19966 if test "$no_create" != yes; then
19967 ac_cs_success=:
19968 ac_config_status_args=
19969 test "$silent" = yes &&
19970 ac_config_status_args="$ac_config_status_args --quiet"
19971 exec 5>/dev/null
19972 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19973 exec 5>>config.log
19974 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19975 # would make configure fail if this is the last instruction.
19976 $ac_cs_success || as_fn_exit $?
19978 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19980 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}