* config/arm/arm.c (arm_handle_cmse_nonsecure_call): Remove unused
[official-gcc.git] / libgomp / configure
blob6355ad90ba42e3eb4a607065a199a03b51087887
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 OMP_NEST_LOCK_25_KIND
607 OMP_LOCK_25_KIND
608 OMP_NEST_LOCK_25_ALIGN
609 OMP_NEST_LOCK_25_SIZE
610 OMP_LOCK_25_ALIGN
611 OMP_LOCK_25_SIZE
612 OMP_NEST_LOCK_KIND
613 OMP_LOCK_KIND
614 OMP_NEST_LOCK_ALIGN
615 OMP_NEST_LOCK_SIZE
616 OMP_LOCK_ALIGN
617 OMP_LOCK_SIZE
618 USE_FORTRAN_FALSE
619 USE_FORTRAN_TRUE
620 link_gomp
621 XLDFLAGS
622 XCFLAGS
623 config_path
624 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
625 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
626 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
627 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
628 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
629 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
630 OPT_LDFLAGS
631 SECTION_LDFLAGS
632 PLUGIN_HSA_FALSE
633 PLUGIN_HSA_TRUE
634 PLUGIN_NVPTX_FALSE
635 PLUGIN_NVPTX_TRUE
636 offload_additional_lib_paths
637 offload_additional_options
638 PLUGIN_HSA_LIBS
639 PLUGIN_HSA_LDFLAGS
640 PLUGIN_HSA_CPPFLAGS
641 PLUGIN_HSA
642 HSA_RUNTIME_LIB
643 HSA_RUNTIME_INCLUDE
644 PLUGIN_NVPTX_LIBS
645 PLUGIN_NVPTX_LDFLAGS
646 PLUGIN_NVPTX_CPPFLAGS
647 PLUGIN_NVPTX
648 CUDA_DRIVER_LIB
649 CUDA_DRIVER_INCLUDE
650 offload_targets
651 libtool_VERSION
652 ac_ct_FC
653 FCFLAGS
655 MAINT
656 MAINTAINER_MODE_FALSE
657 MAINTAINER_MODE_TRUE
658 enable_static
659 enable_shared
660 lt_host_flags
662 OTOOL64
663 OTOOL
664 LIPO
665 NMEDIT
666 DSYMUTIL
667 OBJDUMP
668 LN_S
670 ac_ct_DUMPBIN
671 DUMPBIN
673 FGREP
674 EGREP
675 GREP
677 LIBTOOL
678 BUILD_INFO_FALSE
679 BUILD_INFO_TRUE
680 PERL
681 RANLIB
683 am__fastdepCC_FALSE
684 am__fastdepCC_TRUE
685 CCDEPMODE
686 am__nodep
687 AMDEPBACKSLASH
688 AMDEP_FALSE
689 AMDEP_TRUE
690 am__quote
691 am__include
692 DEPDIR
693 OBJEXT
694 EXEEXT
695 ac_ct_CC
696 CPPFLAGS
697 LDFLAGS
698 CFLAGS
700 toolexeclibdir
701 toolexecdir
702 multi_basedir
703 am__untar
704 am__tar
705 AMTAR
706 am__leading_dot
707 SET_MAKE
709 mkdir_p
710 MKDIR_P
711 INSTALL_STRIP_PROGRAM
712 STRIP
713 install_sh
714 MAKEINFO
715 AUTOHEADER
716 AUTOMAKE
717 AUTOCONF
718 ACLOCAL
719 VERSION
720 PACKAGE
721 CYGPATH_W
722 am__isrc
723 INSTALL_DATA
724 INSTALL_SCRIPT
725 INSTALL_PROGRAM
726 target_os
727 target_vendor
728 target_cpu
729 target
730 host_os
731 host_vendor
732 host_cpu
733 host
734 build_os
735 build_vendor
736 build_cpu
737 build
738 GENINSRC_FALSE
739 GENINSRC_TRUE
740 target_alias
741 host_alias
742 build_alias
743 LIBS
744 ECHO_T
745 ECHO_N
746 ECHO_C
747 DEFS
748 mandir
749 localedir
750 libdir
751 psdir
752 pdfdir
753 dvidir
754 htmldir
755 infodir
756 docdir
757 oldincludedir
758 includedir
759 localstatedir
760 sharedstatedir
761 sysconfdir
762 datadir
763 datarootdir
764 libexecdir
765 sbindir
766 bindir
767 program_transform_name
768 prefix
769 exec_prefix
770 PACKAGE_URL
771 PACKAGE_BUGREPORT
772 PACKAGE_STRING
773 PACKAGE_VERSION
774 PACKAGE_TARNAME
775 PACKAGE_NAME
776 PATH_SEPARATOR
777 SHELL'
778 ac_subst_files=''
779 ac_user_opts='
780 enable_option_checking
781 enable_version_specific_runtime_libs
782 enable_generated_files_in_srcdir
783 enable_multilib
784 enable_dependency_tracking
785 enable_shared
786 enable_static
787 with_pic
788 enable_fast_install
789 with_gnu_ld
790 enable_libtool_lock
791 enable_maintainer_mode
792 with_cuda_driver
793 with_cuda_driver_include
794 with_cuda_driver_lib
795 with_hsa_runtime
796 with_hsa_runtime_include
797 with_hsa_runtime_lib
798 enable_linux_futex
799 enable_tls
800 enable_symvers
802 ac_precious_vars='build_alias
803 host_alias
804 target_alias
806 CPPFLAGS
808 FCFLAGS
809 LDFLAGS
810 LIBS'
813 # Initialize some variables set by options.
814 ac_init_help=
815 ac_init_version=false
816 ac_unrecognized_opts=
817 ac_unrecognized_sep=
818 # The variables have the same names as the options, with
819 # dashes changed to underlines.
820 cache_file=/dev/null
821 exec_prefix=NONE
822 no_create=
823 no_recursion=
824 prefix=NONE
825 program_prefix=NONE
826 program_suffix=NONE
827 program_transform_name=s,x,x,
828 silent=
829 site=
830 srcdir=
831 verbose=
832 x_includes=NONE
833 x_libraries=NONE
835 # Installation directory options.
836 # These are left unexpanded so users can "make install exec_prefix=/foo"
837 # and all the variables that are supposed to be based on exec_prefix
838 # by default will actually change.
839 # Use braces instead of parens because sh, perl, etc. also accept them.
840 # (The list follows the same order as the GNU Coding Standards.)
841 bindir='${exec_prefix}/bin'
842 sbindir='${exec_prefix}/sbin'
843 libexecdir='${exec_prefix}/libexec'
844 datarootdir='${prefix}/share'
845 datadir='${datarootdir}'
846 sysconfdir='${prefix}/etc'
847 sharedstatedir='${prefix}/com'
848 localstatedir='${prefix}/var'
849 includedir='${prefix}/include'
850 oldincludedir='/usr/include'
851 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
852 infodir='${datarootdir}/info'
853 htmldir='${docdir}'
854 dvidir='${docdir}'
855 pdfdir='${docdir}'
856 psdir='${docdir}'
857 libdir='${exec_prefix}/lib'
858 localedir='${datarootdir}/locale'
859 mandir='${datarootdir}/man'
861 ac_prev=
862 ac_dashdash=
863 for ac_option
865 # If the previous option needs an argument, assign it.
866 if test -n "$ac_prev"; then
867 eval $ac_prev=\$ac_option
868 ac_prev=
869 continue
872 case $ac_option in
873 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
874 *) ac_optarg=yes ;;
875 esac
877 # Accept the important Cygnus configure options, so we can diagnose typos.
879 case $ac_dashdash$ac_option in
881 ac_dashdash=yes ;;
883 -bindir | --bindir | --bindi | --bind | --bin | --bi)
884 ac_prev=bindir ;;
885 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
886 bindir=$ac_optarg ;;
888 -build | --build | --buil | --bui | --bu)
889 ac_prev=build_alias ;;
890 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
891 build_alias=$ac_optarg ;;
893 -cache-file | --cache-file | --cache-fil | --cache-fi \
894 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
895 ac_prev=cache_file ;;
896 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
897 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
898 cache_file=$ac_optarg ;;
900 --config-cache | -C)
901 cache_file=config.cache ;;
903 -datadir | --datadir | --datadi | --datad)
904 ac_prev=datadir ;;
905 -datadir=* | --datadir=* | --datadi=* | --datad=*)
906 datadir=$ac_optarg ;;
908 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
909 | --dataroo | --dataro | --datar)
910 ac_prev=datarootdir ;;
911 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
912 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
913 datarootdir=$ac_optarg ;;
915 -disable-* | --disable-*)
916 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
917 # Reject names that are not valid shell variable names.
918 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
919 as_fn_error "invalid feature name: $ac_useropt"
920 ac_useropt_orig=$ac_useropt
921 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
922 case $ac_user_opts in
924 "enable_$ac_useropt"
925 "*) ;;
926 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
927 ac_unrecognized_sep=', ';;
928 esac
929 eval enable_$ac_useropt=no ;;
931 -docdir | --docdir | --docdi | --doc | --do)
932 ac_prev=docdir ;;
933 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
934 docdir=$ac_optarg ;;
936 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
937 ac_prev=dvidir ;;
938 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
939 dvidir=$ac_optarg ;;
941 -enable-* | --enable-*)
942 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
943 # Reject names that are not valid shell variable names.
944 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
945 as_fn_error "invalid feature name: $ac_useropt"
946 ac_useropt_orig=$ac_useropt
947 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
948 case $ac_user_opts in
950 "enable_$ac_useropt"
951 "*) ;;
952 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
953 ac_unrecognized_sep=', ';;
954 esac
955 eval enable_$ac_useropt=\$ac_optarg ;;
957 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
958 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
959 | --exec | --exe | --ex)
960 ac_prev=exec_prefix ;;
961 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
962 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
963 | --exec=* | --exe=* | --ex=*)
964 exec_prefix=$ac_optarg ;;
966 -gas | --gas | --ga | --g)
967 # Obsolete; use --with-gas.
968 with_gas=yes ;;
970 -help | --help | --hel | --he | -h)
971 ac_init_help=long ;;
972 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
973 ac_init_help=recursive ;;
974 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
975 ac_init_help=short ;;
977 -host | --host | --hos | --ho)
978 ac_prev=host_alias ;;
979 -host=* | --host=* | --hos=* | --ho=*)
980 host_alias=$ac_optarg ;;
982 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
983 ac_prev=htmldir ;;
984 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
985 | --ht=*)
986 htmldir=$ac_optarg ;;
988 -includedir | --includedir | --includedi | --included | --include \
989 | --includ | --inclu | --incl | --inc)
990 ac_prev=includedir ;;
991 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
992 | --includ=* | --inclu=* | --incl=* | --inc=*)
993 includedir=$ac_optarg ;;
995 -infodir | --infodir | --infodi | --infod | --info | --inf)
996 ac_prev=infodir ;;
997 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
998 infodir=$ac_optarg ;;
1000 -libdir | --libdir | --libdi | --libd)
1001 ac_prev=libdir ;;
1002 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1003 libdir=$ac_optarg ;;
1005 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1006 | --libexe | --libex | --libe)
1007 ac_prev=libexecdir ;;
1008 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1009 | --libexe=* | --libex=* | --libe=*)
1010 libexecdir=$ac_optarg ;;
1012 -localedir | --localedir | --localedi | --localed | --locale)
1013 ac_prev=localedir ;;
1014 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1015 localedir=$ac_optarg ;;
1017 -localstatedir | --localstatedir | --localstatedi | --localstated \
1018 | --localstate | --localstat | --localsta | --localst | --locals)
1019 ac_prev=localstatedir ;;
1020 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1021 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1022 localstatedir=$ac_optarg ;;
1024 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1025 ac_prev=mandir ;;
1026 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1027 mandir=$ac_optarg ;;
1029 -nfp | --nfp | --nf)
1030 # Obsolete; use --without-fp.
1031 with_fp=no ;;
1033 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1034 | --no-cr | --no-c | -n)
1035 no_create=yes ;;
1037 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1038 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1039 no_recursion=yes ;;
1041 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1042 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1043 | --oldin | --oldi | --old | --ol | --o)
1044 ac_prev=oldincludedir ;;
1045 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1046 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1047 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1048 oldincludedir=$ac_optarg ;;
1050 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1051 ac_prev=prefix ;;
1052 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1053 prefix=$ac_optarg ;;
1055 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1056 | --program-pre | --program-pr | --program-p)
1057 ac_prev=program_prefix ;;
1058 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1059 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1060 program_prefix=$ac_optarg ;;
1062 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1063 | --program-suf | --program-su | --program-s)
1064 ac_prev=program_suffix ;;
1065 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1066 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1067 program_suffix=$ac_optarg ;;
1069 -program-transform-name | --program-transform-name \
1070 | --program-transform-nam | --program-transform-na \
1071 | --program-transform-n | --program-transform- \
1072 | --program-transform | --program-transfor \
1073 | --program-transfo | --program-transf \
1074 | --program-trans | --program-tran \
1075 | --progr-tra | --program-tr | --program-t)
1076 ac_prev=program_transform_name ;;
1077 -program-transform-name=* | --program-transform-name=* \
1078 | --program-transform-nam=* | --program-transform-na=* \
1079 | --program-transform-n=* | --program-transform-=* \
1080 | --program-transform=* | --program-transfor=* \
1081 | --program-transfo=* | --program-transf=* \
1082 | --program-trans=* | --program-tran=* \
1083 | --progr-tra=* | --program-tr=* | --program-t=*)
1084 program_transform_name=$ac_optarg ;;
1086 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1087 ac_prev=pdfdir ;;
1088 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1089 pdfdir=$ac_optarg ;;
1091 -psdir | --psdir | --psdi | --psd | --ps)
1092 ac_prev=psdir ;;
1093 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1094 psdir=$ac_optarg ;;
1096 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1097 | -silent | --silent | --silen | --sile | --sil)
1098 silent=yes ;;
1100 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1101 ac_prev=sbindir ;;
1102 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1103 | --sbi=* | --sb=*)
1104 sbindir=$ac_optarg ;;
1106 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1107 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1108 | --sharedst | --shareds | --shared | --share | --shar \
1109 | --sha | --sh)
1110 ac_prev=sharedstatedir ;;
1111 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1112 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1113 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1114 | --sha=* | --sh=*)
1115 sharedstatedir=$ac_optarg ;;
1117 -site | --site | --sit)
1118 ac_prev=site ;;
1119 -site=* | --site=* | --sit=*)
1120 site=$ac_optarg ;;
1122 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1123 ac_prev=srcdir ;;
1124 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1125 srcdir=$ac_optarg ;;
1127 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1128 | --syscon | --sysco | --sysc | --sys | --sy)
1129 ac_prev=sysconfdir ;;
1130 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1131 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1132 sysconfdir=$ac_optarg ;;
1134 -target | --target | --targe | --targ | --tar | --ta | --t)
1135 ac_prev=target_alias ;;
1136 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1137 target_alias=$ac_optarg ;;
1139 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1140 verbose=yes ;;
1142 -version | --version | --versio | --versi | --vers | -V)
1143 ac_init_version=: ;;
1145 -with-* | --with-*)
1146 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1147 # Reject names that are not valid shell variable names.
1148 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1149 as_fn_error "invalid package name: $ac_useropt"
1150 ac_useropt_orig=$ac_useropt
1151 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1152 case $ac_user_opts in
1154 "with_$ac_useropt"
1155 "*) ;;
1156 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1157 ac_unrecognized_sep=', ';;
1158 esac
1159 eval with_$ac_useropt=\$ac_optarg ;;
1161 -without-* | --without-*)
1162 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1163 # Reject names that are not valid shell variable names.
1164 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1165 as_fn_error "invalid package name: $ac_useropt"
1166 ac_useropt_orig=$ac_useropt
1167 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1168 case $ac_user_opts in
1170 "with_$ac_useropt"
1171 "*) ;;
1172 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1173 ac_unrecognized_sep=', ';;
1174 esac
1175 eval with_$ac_useropt=no ;;
1177 --x)
1178 # Obsolete; use --with-x.
1179 with_x=yes ;;
1181 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1182 | --x-incl | --x-inc | --x-in | --x-i)
1183 ac_prev=x_includes ;;
1184 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1185 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1186 x_includes=$ac_optarg ;;
1188 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1189 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1190 ac_prev=x_libraries ;;
1191 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1192 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1193 x_libraries=$ac_optarg ;;
1195 -*) as_fn_error "unrecognized option: \`$ac_option'
1196 Try \`$0 --help' for more information."
1199 *=*)
1200 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1201 # Reject names that are not valid shell variable names.
1202 case $ac_envvar in #(
1203 '' | [0-9]* | *[!_$as_cr_alnum]* )
1204 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1205 esac
1206 eval $ac_envvar=\$ac_optarg
1207 export $ac_envvar ;;
1210 # FIXME: should be removed in autoconf 3.0.
1211 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1212 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1213 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1214 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1217 esac
1218 done
1220 if test -n "$ac_prev"; then
1221 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1222 as_fn_error "missing argument to $ac_option"
1225 if test -n "$ac_unrecognized_opts"; then
1226 case $enable_option_checking in
1227 no) ;;
1228 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1229 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1230 esac
1233 # Check all directory arguments for consistency.
1234 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1235 datadir sysconfdir sharedstatedir localstatedir includedir \
1236 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1237 libdir localedir mandir
1239 eval ac_val=\$$ac_var
1240 # Remove trailing slashes.
1241 case $ac_val in
1242 */ )
1243 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1244 eval $ac_var=\$ac_val;;
1245 esac
1246 # Be sure to have absolute directory names.
1247 case $ac_val in
1248 [\\/$]* | ?:[\\/]* ) continue;;
1249 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1250 esac
1251 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1252 done
1254 # There might be people who depend on the old broken behavior: `$host'
1255 # used to hold the argument of --host etc.
1256 # FIXME: To remove some day.
1257 build=$build_alias
1258 host=$host_alias
1259 target=$target_alias
1261 # FIXME: To remove some day.
1262 if test "x$host_alias" != x; then
1263 if test "x$build_alias" = x; then
1264 cross_compiling=maybe
1265 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1266 If a cross compiler is detected then cross compile mode will be used." >&2
1267 elif test "x$build_alias" != "x$host_alias"; then
1268 cross_compiling=yes
1272 ac_tool_prefix=
1273 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1275 test "$silent" = yes && exec 6>/dev/null
1278 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1279 ac_ls_di=`ls -di .` &&
1280 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1281 as_fn_error "working directory cannot be determined"
1282 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1283 as_fn_error "pwd does not report name of working directory"
1286 # Find the source files, if location was not specified.
1287 if test -z "$srcdir"; then
1288 ac_srcdir_defaulted=yes
1289 # Try the directory containing this script, then the parent directory.
1290 ac_confdir=`$as_dirname -- "$as_myself" ||
1291 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1292 X"$as_myself" : 'X\(//\)[^/]' \| \
1293 X"$as_myself" : 'X\(//\)$' \| \
1294 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1295 $as_echo X"$as_myself" |
1296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1297 s//\1/
1300 /^X\(\/\/\)[^/].*/{
1301 s//\1/
1304 /^X\(\/\/\)$/{
1305 s//\1/
1308 /^X\(\/\).*/{
1309 s//\1/
1312 s/.*/./; q'`
1313 srcdir=$ac_confdir
1314 if test ! -r "$srcdir/$ac_unique_file"; then
1315 srcdir=..
1317 else
1318 ac_srcdir_defaulted=no
1320 if test ! -r "$srcdir/$ac_unique_file"; then
1321 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1322 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1324 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1325 ac_abs_confdir=`(
1326 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1327 pwd)`
1328 # When building in place, set srcdir=.
1329 if test "$ac_abs_confdir" = "$ac_pwd"; then
1330 srcdir=.
1332 # Remove unnecessary trailing slashes from srcdir.
1333 # Double slashes in file names in object file debugging info
1334 # mess up M-x gdb in Emacs.
1335 case $srcdir in
1336 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1337 esac
1338 for ac_var in $ac_precious_vars; do
1339 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1340 eval ac_env_${ac_var}_value=\$${ac_var}
1341 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1342 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1343 done
1346 # Report the --help message.
1348 if test "$ac_init_help" = "long"; then
1349 # Omit some internal or obsolete options to make the list less imposing.
1350 # This message is too long to be a string in the A/UX 3.1 sh.
1351 cat <<_ACEOF
1352 \`configure' configures GNU Offloading and Multi Processing Runtime Library 1.0 to adapt to many kinds of systems.
1354 Usage: $0 [OPTION]... [VAR=VALUE]...
1356 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1357 VAR=VALUE. See below for descriptions of some of the useful variables.
1359 Defaults for the options are specified in brackets.
1361 Configuration:
1362 -h, --help display this help and exit
1363 --help=short display options specific to this package
1364 --help=recursive display the short help of all the included packages
1365 -V, --version display version information and exit
1366 -q, --quiet, --silent do not print \`checking...' messages
1367 --cache-file=FILE cache test results in FILE [disabled]
1368 -C, --config-cache alias for \`--cache-file=config.cache'
1369 -n, --no-create do not create output files
1370 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1372 Installation directories:
1373 --prefix=PREFIX install architecture-independent files in PREFIX
1374 [$ac_default_prefix]
1375 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1376 [PREFIX]
1378 By default, \`make install' will install all the files in
1379 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1380 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1381 for instance \`--prefix=\$HOME'.
1383 For better control, use the options below.
1385 Fine tuning of the installation directories:
1386 --bindir=DIR user executables [EPREFIX/bin]
1387 --sbindir=DIR system admin executables [EPREFIX/sbin]
1388 --libexecdir=DIR program executables [EPREFIX/libexec]
1389 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1390 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1391 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1392 --libdir=DIR object code libraries [EPREFIX/lib]
1393 --includedir=DIR C header files [PREFIX/include]
1394 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1395 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1396 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1397 --infodir=DIR info documentation [DATAROOTDIR/info]
1398 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1399 --mandir=DIR man documentation [DATAROOTDIR/man]
1400 --docdir=DIR documentation root [DATAROOTDIR/doc/libgomp]
1401 --htmldir=DIR html documentation [DOCDIR]
1402 --dvidir=DIR dvi documentation [DOCDIR]
1403 --pdfdir=DIR pdf documentation [DOCDIR]
1404 --psdir=DIR ps documentation [DOCDIR]
1405 _ACEOF
1407 cat <<\_ACEOF
1409 Program names:
1410 --program-prefix=PREFIX prepend PREFIX to installed program names
1411 --program-suffix=SUFFIX append SUFFIX to installed program names
1412 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1414 System types:
1415 --build=BUILD configure for building on BUILD [guessed]
1416 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1417 --target=TARGET configure for building compilers for TARGET [HOST]
1418 _ACEOF
1421 if test -n "$ac_init_help"; then
1422 case $ac_init_help in
1423 short | recursive ) echo "Configuration of GNU Offloading and Multi Processing Runtime Library 1.0:";;
1424 esac
1425 cat <<\_ACEOF
1427 Optional Features:
1428 --disable-option-checking ignore unrecognized --enable/--with options
1429 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1430 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1431 --enable-version-specific-runtime-libs
1432 Specify that runtime libraries should be installed
1433 in a compiler-specific directory [default=no]
1434 --enable-generated-files-in-srcdir
1435 put copies of generated files in source dir intended
1436 for creating source tarballs for users without
1437 texinfo bison or flex. [default=no]
1438 --enable-multilib build many library versions (default)
1439 --disable-dependency-tracking speeds up one-time build
1440 --enable-dependency-tracking do not reject slow dependency extractors
1441 --enable-shared[=PKGS] build shared libraries [default=yes]
1442 --enable-static[=PKGS] build static libraries [default=yes]
1443 --enable-fast-install[=PKGS]
1444 optimize for fast installation [default=yes]
1445 --disable-libtool-lock avoid locking (might break parallel builds)
1446 --enable-maintainer-mode enable make rules and dependencies not useful
1447 (and sometimes confusing) to the casual installer
1448 --enable-linux-futex use the Linux futex system call [default=default]
1449 --enable-tls Use thread-local storage [default=yes]
1450 --enable-symvers=STYLE enables symbol versioning of the shared library
1451 [default=yes]
1453 Optional Packages:
1454 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1455 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1456 --with-pic try to use only PIC/non-PIC objects [default=use
1457 both]
1458 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1459 --with-cuda-driver=PATH specify prefix directory for installed CUDA driver
1460 package. Equivalent to
1461 --with-cuda-driver-include=PATH/include plus
1462 --with-cuda-driver-lib=PATH/lib
1463 --with-cuda-driver-include=PATH
1464 specify directory for installed CUDA driver include
1465 files
1466 --with-cuda-driver-lib=PATH
1467 specify directory for the installed CUDA driver
1468 library
1469 --with-hsa-runtime=PATH specify prefix directory for installed HSA run-time
1470 package. Equivalent to
1471 --with-hsa-runtime-include=PATH/include plus
1472 --with-hsa-runtime-lib=PATH/lib
1473 --with-hsa-runtime-include=PATH
1474 specify directory for installed HSA run-time include
1475 files
1476 --with-hsa-runtime-lib=PATH
1477 specify directory for the installed HSA run-time
1478 library
1480 Some influential environment variables:
1481 CC C compiler command
1482 CFLAGS C compiler flags
1483 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1484 nonstandard directory <lib dir>
1485 LIBS libraries to pass to the linker, e.g. -l<library>
1486 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1487 you have headers in a nonstandard directory <include dir>
1488 CPP C preprocessor
1489 FC Fortran compiler command
1490 FCFLAGS Fortran compiler flags
1492 Use these variables to override the choices made by `configure' or to help
1493 it to find libraries and programs with nonstandard names/locations.
1495 Report bugs to the package provider.
1496 GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
1497 General help using GNU software: <http://www.gnu.org/gethelp/>.
1498 _ACEOF
1499 ac_status=$?
1502 if test "$ac_init_help" = "recursive"; then
1503 # If there are subdirs, report their specific --help.
1504 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1505 test -d "$ac_dir" ||
1506 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1507 continue
1508 ac_builddir=.
1510 case "$ac_dir" in
1511 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1513 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1514 # A ".." for each directory in $ac_dir_suffix.
1515 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1516 case $ac_top_builddir_sub in
1517 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1518 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1519 esac ;;
1520 esac
1521 ac_abs_top_builddir=$ac_pwd
1522 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1523 # for backward compatibility:
1524 ac_top_builddir=$ac_top_build_prefix
1526 case $srcdir in
1527 .) # We are building in place.
1528 ac_srcdir=.
1529 ac_top_srcdir=$ac_top_builddir_sub
1530 ac_abs_top_srcdir=$ac_pwd ;;
1531 [\\/]* | ?:[\\/]* ) # Absolute name.
1532 ac_srcdir=$srcdir$ac_dir_suffix;
1533 ac_top_srcdir=$srcdir
1534 ac_abs_top_srcdir=$srcdir ;;
1535 *) # Relative name.
1536 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1537 ac_top_srcdir=$ac_top_build_prefix$srcdir
1538 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1539 esac
1540 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1542 cd "$ac_dir" || { ac_status=$?; continue; }
1543 # Check for guested configure.
1544 if test -f "$ac_srcdir/configure.gnu"; then
1545 echo &&
1546 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1547 elif test -f "$ac_srcdir/configure"; then
1548 echo &&
1549 $SHELL "$ac_srcdir/configure" --help=recursive
1550 else
1551 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1552 fi || ac_status=$?
1553 cd "$ac_pwd" || { ac_status=$?; break; }
1554 done
1557 test -n "$ac_init_help" && exit $ac_status
1558 if $ac_init_version; then
1559 cat <<\_ACEOF
1560 GNU Offloading and Multi Processing Runtime Library configure 1.0
1561 generated by GNU Autoconf 2.64
1563 Copyright (C) 2009 Free Software Foundation, Inc.
1564 This configure script is free software; the Free Software Foundation
1565 gives unlimited permission to copy, distribute and modify it.
1566 _ACEOF
1567 exit
1570 ## ------------------------ ##
1571 ## Autoconf initialization. ##
1572 ## ------------------------ ##
1574 # ac_fn_c_try_compile LINENO
1575 # --------------------------
1576 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1577 ac_fn_c_try_compile ()
1579 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1580 rm -f conftest.$ac_objext
1581 if { { ac_try="$ac_compile"
1582 case "(($ac_try" in
1583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1584 *) ac_try_echo=$ac_try;;
1585 esac
1586 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1587 $as_echo "$ac_try_echo"; } >&5
1588 (eval "$ac_compile") 2>conftest.err
1589 ac_status=$?
1590 if test -s conftest.err; then
1591 grep -v '^ *+' conftest.err >conftest.er1
1592 cat conftest.er1 >&5
1593 mv -f conftest.er1 conftest.err
1595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1596 test $ac_status = 0; } && {
1597 test -z "$ac_c_werror_flag" ||
1598 test ! -s conftest.err
1599 } && test -s conftest.$ac_objext; then :
1600 ac_retval=0
1601 else
1602 $as_echo "$as_me: failed program was:" >&5
1603 sed 's/^/| /' conftest.$ac_ext >&5
1605 ac_retval=1
1607 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1608 return $ac_retval
1610 } # ac_fn_c_try_compile
1612 # ac_fn_c_try_link LINENO
1613 # -----------------------
1614 # Try to link conftest.$ac_ext, and return whether this succeeded.
1615 ac_fn_c_try_link ()
1617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618 rm -f conftest.$ac_objext conftest$ac_exeext
1619 if { { ac_try="$ac_link"
1620 case "(($ac_try" in
1621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1622 *) ac_try_echo=$ac_try;;
1623 esac
1624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1625 $as_echo "$ac_try_echo"; } >&5
1626 (eval "$ac_link") 2>conftest.err
1627 ac_status=$?
1628 if test -s conftest.err; then
1629 grep -v '^ *+' conftest.err >conftest.er1
1630 cat conftest.er1 >&5
1631 mv -f conftest.er1 conftest.err
1633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1634 test $ac_status = 0; } && {
1635 test -z "$ac_c_werror_flag" ||
1636 test ! -s conftest.err
1637 } && test -s conftest$ac_exeext && {
1638 test "$cross_compiling" = yes ||
1639 $as_test_x conftest$ac_exeext
1640 }; then :
1641 ac_retval=0
1642 else
1643 $as_echo "$as_me: failed program was:" >&5
1644 sed 's/^/| /' conftest.$ac_ext >&5
1646 ac_retval=1
1648 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1649 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1650 # interfere with the next link command; also delete a directory that is
1651 # left behind by Apple's compiler. We do this before executing the actions.
1652 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1653 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1654 return $ac_retval
1656 } # ac_fn_c_try_link
1658 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1659 # -------------------------------------------------------
1660 # Tests whether HEADER exists and can be compiled using the include files in
1661 # INCLUDES, setting the cache variable VAR accordingly.
1662 ac_fn_c_check_header_compile ()
1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1666 $as_echo_n "checking for $2... " >&6; }
1667 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1668 $as_echo_n "(cached) " >&6
1669 else
1670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1671 /* end confdefs.h. */
1673 #include <$2>
1674 _ACEOF
1675 if ac_fn_c_try_compile "$LINENO"; then :
1676 eval "$3=yes"
1677 else
1678 eval "$3=no"
1680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1682 eval ac_res=\$$3
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1684 $as_echo "$ac_res" >&6; }
1685 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1687 } # ac_fn_c_check_header_compile
1689 # ac_fn_c_try_cpp LINENO
1690 # ----------------------
1691 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1692 ac_fn_c_try_cpp ()
1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695 if { { ac_try="$ac_cpp conftest.$ac_ext"
1696 case "(($ac_try" in
1697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698 *) ac_try_echo=$ac_try;;
1699 esac
1700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701 $as_echo "$ac_try_echo"; } >&5
1702 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1703 ac_status=$?
1704 if test -s conftest.err; then
1705 grep -v '^ *+' conftest.err >conftest.er1
1706 cat conftest.er1 >&5
1707 mv -f conftest.er1 conftest.err
1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710 test $ac_status = 0; } >/dev/null && {
1711 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1712 test ! -s conftest.err
1713 }; then :
1714 ac_retval=0
1715 else
1716 $as_echo "$as_me: failed program was:" >&5
1717 sed 's/^/| /' conftest.$ac_ext >&5
1719 ac_retval=1
1721 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1722 return $ac_retval
1724 } # ac_fn_c_try_cpp
1726 # ac_fn_c_try_run LINENO
1727 # ----------------------
1728 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1729 # that executables *can* be run.
1730 ac_fn_c_try_run ()
1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733 if { { ac_try="$ac_link"
1734 case "(($ac_try" in
1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736 *) ac_try_echo=$ac_try;;
1737 esac
1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 $as_echo "$ac_try_echo"; } >&5
1740 (eval "$ac_link") 2>&5
1741 ac_status=$?
1742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1744 { { case "(($ac_try" in
1745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1746 *) ac_try_echo=$ac_try;;
1747 esac
1748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1749 $as_echo "$ac_try_echo"; } >&5
1750 (eval "$ac_try") 2>&5
1751 ac_status=$?
1752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753 test $ac_status = 0; }; }; then :
1754 ac_retval=0
1755 else
1756 $as_echo "$as_me: program exited with status $ac_status" >&5
1757 $as_echo "$as_me: failed program was:" >&5
1758 sed 's/^/| /' conftest.$ac_ext >&5
1760 ac_retval=$ac_status
1762 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1763 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1764 return $ac_retval
1766 } # ac_fn_c_try_run
1768 # ac_fn_c_check_func LINENO FUNC VAR
1769 # ----------------------------------
1770 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1771 ac_fn_c_check_func ()
1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1775 $as_echo_n "checking for $2... " >&6; }
1776 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1777 $as_echo_n "(cached) " >&6
1778 else
1779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1780 /* end confdefs.h. */
1781 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1782 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1783 #define $2 innocuous_$2
1785 /* System header to define __stub macros and hopefully few prototypes,
1786 which can conflict with char $2 (); below.
1787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1788 <limits.h> exists even on freestanding compilers. */
1790 #ifdef __STDC__
1791 # include <limits.h>
1792 #else
1793 # include <assert.h>
1794 #endif
1796 #undef $2
1798 /* Override any GCC internal prototype to avoid an error.
1799 Use char because int might match the return type of a GCC
1800 builtin and then its argument prototype would still apply. */
1801 #ifdef __cplusplus
1802 extern "C"
1803 #endif
1804 char $2 ();
1805 /* The GNU C library defines this for functions which it implements
1806 to always fail with ENOSYS. Some functions are actually named
1807 something starting with __ and the normal name is an alias. */
1808 #if defined __stub_$2 || defined __stub___$2
1809 choke me
1810 #endif
1813 main ()
1815 return $2 ();
1817 return 0;
1819 _ACEOF
1820 if ac_fn_c_try_link "$LINENO"; then :
1821 eval "$3=yes"
1822 else
1823 eval "$3=no"
1825 rm -f core conftest.err conftest.$ac_objext \
1826 conftest$ac_exeext conftest.$ac_ext
1828 eval ac_res=\$$3
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1830 $as_echo "$ac_res" >&6; }
1831 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1833 } # ac_fn_c_check_func
1835 # ac_fn_fc_try_compile LINENO
1836 # ---------------------------
1837 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1838 ac_fn_fc_try_compile ()
1840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841 rm -f conftest.$ac_objext
1842 if { { ac_try="$ac_compile"
1843 case "(($ac_try" in
1844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1845 *) ac_try_echo=$ac_try;;
1846 esac
1847 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1848 $as_echo "$ac_try_echo"; } >&5
1849 (eval "$ac_compile") 2>conftest.err
1850 ac_status=$?
1851 if test -s conftest.err; then
1852 grep -v '^ *+' conftest.err >conftest.er1
1853 cat conftest.er1 >&5
1854 mv -f conftest.er1 conftest.err
1856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1857 test $ac_status = 0; } && {
1858 test -z "$ac_fc_werror_flag" ||
1859 test ! -s conftest.err
1860 } && test -s conftest.$ac_objext; then :
1861 ac_retval=0
1862 else
1863 $as_echo "$as_me: failed program was:" >&5
1864 sed 's/^/| /' conftest.$ac_ext >&5
1866 ac_retval=1
1868 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1869 return $ac_retval
1871 } # ac_fn_fc_try_compile
1873 # ac_fn_fc_try_link LINENO
1874 # ------------------------
1875 # Try to link conftest.$ac_ext, and return whether this succeeded.
1876 ac_fn_fc_try_link ()
1878 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1879 rm -f conftest.$ac_objext conftest$ac_exeext
1880 if { { ac_try="$ac_link"
1881 case "(($ac_try" in
1882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1883 *) ac_try_echo=$ac_try;;
1884 esac
1885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1886 $as_echo "$ac_try_echo"; } >&5
1887 (eval "$ac_link") 2>conftest.err
1888 ac_status=$?
1889 if test -s conftest.err; then
1890 grep -v '^ *+' conftest.err >conftest.er1
1891 cat conftest.er1 >&5
1892 mv -f conftest.er1 conftest.err
1894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1895 test $ac_status = 0; } && {
1896 test -z "$ac_fc_werror_flag" ||
1897 test ! -s conftest.err
1898 } && test -s conftest$ac_exeext && {
1899 test "$cross_compiling" = yes ||
1900 $as_test_x conftest$ac_exeext
1901 }; then :
1902 ac_retval=0
1903 else
1904 $as_echo "$as_me: failed program was:" >&5
1905 sed 's/^/| /' conftest.$ac_ext >&5
1907 ac_retval=1
1909 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1910 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1911 # interfere with the next link command; also delete a directory that is
1912 # left behind by Apple's compiler. We do this before executing the actions.
1913 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1914 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1915 return $ac_retval
1917 } # ac_fn_fc_try_link
1919 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1920 # -------------------------------------------------------
1921 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1922 # the include files in INCLUDES and setting the cache variable VAR
1923 # accordingly.
1924 ac_fn_c_check_header_mongrel ()
1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1929 $as_echo_n "checking for $2... " >&6; }
1930 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1931 $as_echo_n "(cached) " >&6
1933 eval ac_res=\$$3
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1935 $as_echo "$ac_res" >&6; }
1936 else
1937 # Is the header compilable?
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1939 $as_echo_n "checking $2 usability... " >&6; }
1940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1941 /* end confdefs.h. */
1943 #include <$2>
1944 _ACEOF
1945 if ac_fn_c_try_compile "$LINENO"; then :
1946 ac_header_compiler=yes
1947 else
1948 ac_header_compiler=no
1950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1952 $as_echo "$ac_header_compiler" >&6; }
1954 # Is the header present?
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1956 $as_echo_n "checking $2 presence... " >&6; }
1957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958 /* end confdefs.h. */
1959 #include <$2>
1960 _ACEOF
1961 if ac_fn_c_try_cpp "$LINENO"; then :
1962 ac_header_preproc=yes
1963 else
1964 ac_header_preproc=no
1966 rm -f conftest.err conftest.$ac_ext
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1968 $as_echo "$ac_header_preproc" >&6; }
1970 # So? What about this header?
1971 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1972 yes:no: )
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1974 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1976 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1978 no:yes:* )
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1980 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1982 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1984 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1986 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1988 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1990 esac
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1992 $as_echo_n "checking for $2... " >&6; }
1993 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1994 $as_echo_n "(cached) " >&6
1995 else
1996 eval "$3=\$ac_header_compiler"
1998 eval ac_res=\$$3
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2000 $as_echo "$ac_res" >&6; }
2002 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2004 } # ac_fn_c_check_header_mongrel
2006 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2007 # -------------------------------------------
2008 # Tests whether TYPE exists after having included INCLUDES, setting cache
2009 # variable VAR accordingly.
2010 ac_fn_c_check_type ()
2012 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2014 $as_echo_n "checking for $2... " >&6; }
2015 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2016 $as_echo_n "(cached) " >&6
2017 else
2018 eval "$3=no"
2019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2020 /* end confdefs.h. */
2023 main ()
2025 if (sizeof ($2))
2026 return 0;
2028 return 0;
2030 _ACEOF
2031 if ac_fn_c_try_compile "$LINENO"; then :
2032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033 /* end confdefs.h. */
2036 main ()
2038 if (sizeof (($2)))
2039 return 0;
2041 return 0;
2043 _ACEOF
2044 if ac_fn_c_try_compile "$LINENO"; then :
2046 else
2047 eval "$3=yes"
2049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2053 eval ac_res=\$$3
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2055 $as_echo "$ac_res" >&6; }
2056 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2058 } # ac_fn_c_check_type
2060 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2061 # --------------------------------------------
2062 # Tries to find the compile-time value of EXPR in a program that includes
2063 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2064 # computed
2065 ac_fn_c_compute_int ()
2067 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2068 if test "$cross_compiling" = yes; then
2069 # Depending upon the size, compute the lo and hi bounds.
2070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2071 /* end confdefs.h. */
2074 main ()
2076 static int test_array [1 - 2 * !(($2) >= 0)];
2077 test_array [0] = 0
2080 return 0;
2082 _ACEOF
2083 if ac_fn_c_try_compile "$LINENO"; then :
2084 ac_lo=0 ac_mid=0
2085 while :; do
2086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2087 /* end confdefs.h. */
2090 main ()
2092 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2093 test_array [0] = 0
2096 return 0;
2098 _ACEOF
2099 if ac_fn_c_try_compile "$LINENO"; then :
2100 ac_hi=$ac_mid; break
2101 else
2102 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2103 if test $ac_lo -le $ac_mid; then
2104 ac_lo= ac_hi=
2105 break
2107 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2110 done
2111 else
2112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2113 /* end confdefs.h. */
2116 main ()
2118 static int test_array [1 - 2 * !(($2) < 0)];
2119 test_array [0] = 0
2122 return 0;
2124 _ACEOF
2125 if ac_fn_c_try_compile "$LINENO"; then :
2126 ac_hi=-1 ac_mid=-1
2127 while :; do
2128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2129 /* end confdefs.h. */
2132 main ()
2134 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2135 test_array [0] = 0
2138 return 0;
2140 _ACEOF
2141 if ac_fn_c_try_compile "$LINENO"; then :
2142 ac_lo=$ac_mid; break
2143 else
2144 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2145 if test $ac_mid -le $ac_hi; then
2146 ac_lo= ac_hi=
2147 break
2149 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2152 done
2153 else
2154 ac_lo= ac_hi=
2156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2159 # Binary search between lo and hi bounds.
2160 while test "x$ac_lo" != "x$ac_hi"; do
2161 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2163 /* end confdefs.h. */
2166 main ()
2168 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2169 test_array [0] = 0
2172 return 0;
2174 _ACEOF
2175 if ac_fn_c_try_compile "$LINENO"; then :
2176 ac_hi=$ac_mid
2177 else
2178 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2181 done
2182 case $ac_lo in #((
2183 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2184 '') ac_retval=1 ;;
2185 esac
2186 else
2187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2188 /* end confdefs.h. */
2190 static long int longval () { return $2; }
2191 static unsigned long int ulongval () { return $2; }
2192 #include <stdio.h>
2193 #include <stdlib.h>
2195 main ()
2198 FILE *f = fopen ("conftest.val", "w");
2199 if (! f)
2200 return 1;
2201 if (($2) < 0)
2203 long int i = longval ();
2204 if (i != ($2))
2205 return 1;
2206 fprintf (f, "%ld", i);
2208 else
2210 unsigned long int i = ulongval ();
2211 if (i != ($2))
2212 return 1;
2213 fprintf (f, "%lu", i);
2215 /* Do not output a trailing newline, as this causes \r\n confusion
2216 on some platforms. */
2217 return ferror (f) || fclose (f) != 0;
2220 return 0;
2222 _ACEOF
2223 if ac_fn_c_try_run "$LINENO"; then :
2224 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2225 else
2226 ac_retval=1
2228 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2229 conftest.$ac_objext conftest.beam conftest.$ac_ext
2230 rm -f conftest.val
2233 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2234 return $ac_retval
2236 } # ac_fn_c_compute_int
2237 cat >config.log <<_ACEOF
2238 This file contains any messages produced by compilers while
2239 running configure, to aid debugging if configure makes a mistake.
2241 It was created by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
2242 generated by GNU Autoconf 2.64. Invocation command line was
2244 $ $0 $@
2246 _ACEOF
2247 exec 5>>config.log
2249 cat <<_ASUNAME
2250 ## --------- ##
2251 ## Platform. ##
2252 ## --------- ##
2254 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2255 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2256 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2257 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2258 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2260 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2261 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2263 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2264 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2265 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2266 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2267 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2268 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2269 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2271 _ASUNAME
2273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2274 for as_dir in $PATH
2276 IFS=$as_save_IFS
2277 test -z "$as_dir" && as_dir=.
2278 $as_echo "PATH: $as_dir"
2279 done
2280 IFS=$as_save_IFS
2282 } >&5
2284 cat >&5 <<_ACEOF
2287 ## ----------- ##
2288 ## Core tests. ##
2289 ## ----------- ##
2291 _ACEOF
2294 # Keep a trace of the command line.
2295 # Strip out --no-create and --no-recursion so they do not pile up.
2296 # Strip out --silent because we don't want to record it for future runs.
2297 # Also quote any args containing shell meta-characters.
2298 # Make two passes to allow for proper duplicate-argument suppression.
2299 ac_configure_args=
2300 ac_configure_args0=
2301 ac_configure_args1=
2302 ac_must_keep_next=false
2303 for ac_pass in 1 2
2305 for ac_arg
2307 case $ac_arg in
2308 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2309 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2310 | -silent | --silent | --silen | --sile | --sil)
2311 continue ;;
2312 *\'*)
2313 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2314 esac
2315 case $ac_pass in
2316 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2318 as_fn_append ac_configure_args1 " '$ac_arg'"
2319 if test $ac_must_keep_next = true; then
2320 ac_must_keep_next=false # Got value, back to normal.
2321 else
2322 case $ac_arg in
2323 *=* | --config-cache | -C | -disable-* | --disable-* \
2324 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2325 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2326 | -with-* | --with-* | -without-* | --without-* | --x)
2327 case "$ac_configure_args0 " in
2328 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2329 esac
2331 -* ) ac_must_keep_next=true ;;
2332 esac
2334 as_fn_append ac_configure_args " '$ac_arg'"
2336 esac
2337 done
2338 done
2339 { ac_configure_args0=; unset ac_configure_args0;}
2340 { ac_configure_args1=; unset ac_configure_args1;}
2342 # When interrupted or exit'd, cleanup temporary files, and complete
2343 # config.log. We remove comments because anyway the quotes in there
2344 # would cause problems or look ugly.
2345 # WARNING: Use '\'' to represent an apostrophe within the trap.
2346 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2347 trap 'exit_status=$?
2348 # Save into config.log some information that might help in debugging.
2350 echo
2352 cat <<\_ASBOX
2353 ## ---------------- ##
2354 ## Cache variables. ##
2355 ## ---------------- ##
2356 _ASBOX
2357 echo
2358 # The following way of writing the cache mishandles newlines in values,
2360 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2361 eval ac_val=\$$ac_var
2362 case $ac_val in #(
2363 *${as_nl}*)
2364 case $ac_var in #(
2365 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2366 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2367 esac
2368 case $ac_var in #(
2369 _ | IFS | as_nl) ;; #(
2370 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2371 *) { eval $ac_var=; unset $ac_var;} ;;
2372 esac ;;
2373 esac
2374 done
2375 (set) 2>&1 |
2376 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2377 *${as_nl}ac_space=\ *)
2378 sed -n \
2379 "s/'\''/'\''\\\\'\'''\''/g;
2380 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2381 ;; #(
2383 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2385 esac |
2386 sort
2388 echo
2390 cat <<\_ASBOX
2391 ## ----------------- ##
2392 ## Output variables. ##
2393 ## ----------------- ##
2394 _ASBOX
2395 echo
2396 for ac_var in $ac_subst_vars
2398 eval ac_val=\$$ac_var
2399 case $ac_val in
2400 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2401 esac
2402 $as_echo "$ac_var='\''$ac_val'\''"
2403 done | sort
2404 echo
2406 if test -n "$ac_subst_files"; then
2407 cat <<\_ASBOX
2408 ## ------------------- ##
2409 ## File substitutions. ##
2410 ## ------------------- ##
2411 _ASBOX
2412 echo
2413 for ac_var in $ac_subst_files
2415 eval ac_val=\$$ac_var
2416 case $ac_val in
2417 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2418 esac
2419 $as_echo "$ac_var='\''$ac_val'\''"
2420 done | sort
2421 echo
2424 if test -s confdefs.h; then
2425 cat <<\_ASBOX
2426 ## ----------- ##
2427 ## confdefs.h. ##
2428 ## ----------- ##
2429 _ASBOX
2430 echo
2431 cat confdefs.h
2432 echo
2434 test "$ac_signal" != 0 &&
2435 $as_echo "$as_me: caught signal $ac_signal"
2436 $as_echo "$as_me: exit $exit_status"
2437 } >&5
2438 rm -f core *.core core.conftest.* &&
2439 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2440 exit $exit_status
2442 for ac_signal in 1 2 13 15; do
2443 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2444 done
2445 ac_signal=0
2447 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2448 rm -f -r conftest* confdefs.h
2450 $as_echo "/* confdefs.h */" > confdefs.h
2452 # Predefined preprocessor variables.
2454 cat >>confdefs.h <<_ACEOF
2455 #define PACKAGE_NAME "$PACKAGE_NAME"
2456 _ACEOF
2458 cat >>confdefs.h <<_ACEOF
2459 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2460 _ACEOF
2462 cat >>confdefs.h <<_ACEOF
2463 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2464 _ACEOF
2466 cat >>confdefs.h <<_ACEOF
2467 #define PACKAGE_STRING "$PACKAGE_STRING"
2468 _ACEOF
2470 cat >>confdefs.h <<_ACEOF
2471 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2472 _ACEOF
2474 cat >>confdefs.h <<_ACEOF
2475 #define PACKAGE_URL "$PACKAGE_URL"
2476 _ACEOF
2479 # Let the site file select an alternate cache file if it wants to.
2480 # Prefer an explicitly selected file to automatically selected ones.
2481 ac_site_file1=NONE
2482 ac_site_file2=NONE
2483 if test -n "$CONFIG_SITE"; then
2484 ac_site_file1=$CONFIG_SITE
2485 elif test "x$prefix" != xNONE; then
2486 ac_site_file1=$prefix/share/config.site
2487 ac_site_file2=$prefix/etc/config.site
2488 else
2489 ac_site_file1=$ac_default_prefix/share/config.site
2490 ac_site_file2=$ac_default_prefix/etc/config.site
2492 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2494 test "x$ac_site_file" = xNONE && continue
2495 if test -r "$ac_site_file"; then
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2497 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2498 sed 's/^/| /' "$ac_site_file" >&5
2499 . "$ac_site_file"
2501 done
2503 if test -r "$cache_file"; then
2504 # Some versions of bash will fail to source /dev/null (special
2505 # files actually), so we avoid doing that.
2506 if test -f "$cache_file"; then
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2508 $as_echo "$as_me: loading cache $cache_file" >&6;}
2509 case $cache_file in
2510 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2511 *) . "./$cache_file";;
2512 esac
2514 else
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2516 $as_echo "$as_me: creating cache $cache_file" >&6;}
2517 >$cache_file
2520 as_fn_append ac_header_list " unistd.h"
2521 as_fn_append ac_func_list " secure_getenv"
2522 as_fn_append ac_func_list " __secure_getenv"
2523 as_fn_append ac_func_list " getuid"
2524 as_fn_append ac_func_list " geteuid"
2525 as_fn_append ac_func_list " getgid"
2526 as_fn_append ac_func_list " getegid"
2527 # Check that the precious variables saved in the cache have kept the same
2528 # value.
2529 ac_cache_corrupted=false
2530 for ac_var in $ac_precious_vars; do
2531 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2532 eval ac_new_set=\$ac_env_${ac_var}_set
2533 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2534 eval ac_new_val=\$ac_env_${ac_var}_value
2535 case $ac_old_set,$ac_new_set in
2536 set,)
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2538 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2539 ac_cache_corrupted=: ;;
2540 ,set)
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2542 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2543 ac_cache_corrupted=: ;;
2544 ,);;
2546 if test "x$ac_old_val" != "x$ac_new_val"; then
2547 # differences in whitespace do not lead to failure.
2548 ac_old_val_w=`echo x $ac_old_val`
2549 ac_new_val_w=`echo x $ac_new_val`
2550 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2552 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2553 ac_cache_corrupted=:
2554 else
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2556 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2557 eval $ac_var=\$ac_old_val
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2560 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2562 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2563 fi;;
2564 esac
2565 # Pass precious variables to config.status.
2566 if test "$ac_new_set" = set; then
2567 case $ac_new_val in
2568 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2569 *) ac_arg=$ac_var=$ac_new_val ;;
2570 esac
2571 case " $ac_configure_args " in
2572 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2573 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2574 esac
2576 done
2577 if $ac_cache_corrupted; then
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2579 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2581 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2582 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2584 ## -------------------- ##
2585 ## Main body of script. ##
2586 ## -------------------- ##
2588 ac_ext=c
2589 ac_cpp='$CPP $CPPFLAGS'
2590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2598 ac_config_headers="$ac_config_headers config.h"
2601 # -------
2602 # Options
2603 # -------
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2606 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2607 # Check whether --enable-version-specific-runtime-libs was given.
2608 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2609 enableval=$enable_version_specific_runtime_libs;
2610 case "$enableval" in
2611 yes|no) ;;
2612 *) as_fn_error "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2613 esac
2615 else
2616 enable_version_specific_runtime_libs=no
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2621 $as_echo "$enable_version_specific_runtime_libs" >&6; }
2623 # We would like our source tree to be readonly. However when releases or
2624 # pre-releases are generated, the flex/bison generated files as well as the
2625 # various formats of manuals need to be included along with the rest of the
2626 # sources. Therefore we have --enable-generated-files-in-srcdir to do
2627 # just that.
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2629 $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2630 # Check whether --enable-generated-files-in-srcdir was given.
2631 if test "${enable_generated_files_in_srcdir+set}" = set; then :
2632 enableval=$enable_generated_files_in_srcdir;
2633 case "$enableval" in
2634 yes|no) ;;
2635 *) as_fn_error "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2636 esac
2638 else
2639 enable_generated_files_in_srcdir=no
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2644 $as_echo "$enable_generated_files_in_srcdir" >&6; }
2645 if test "$enable_generated_files_in_srcdir" = yes; then
2646 GENINSRC_TRUE=
2647 GENINSRC_FALSE='#'
2648 else
2649 GENINSRC_TRUE='#'
2650 GENINSRC_FALSE=
2655 # -------
2656 # -------
2658 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2660 # You will slowly go insane if you do not grok the following fact: when
2661 # building this library, the top-level /target/ becomes the library's /host/.
2663 # configure then causes --target to default to --host, exactly like any
2664 # other package using autoconf. Therefore, 'target' and 'host' will
2665 # always be the same. This makes sense both for native and cross compilers
2666 # just think about it for a little while. :-)
2668 # Also, if this library is being configured as part of a cross compiler, the
2669 # top-level configure script will pass the "real" host as $with_cross_host.
2671 # Do not delete or change the following two lines. For why, see
2672 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2673 ac_aux_dir=
2674 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2675 for ac_t in install-sh install.sh shtool; do
2676 if test -f "$ac_dir/$ac_t"; then
2677 ac_aux_dir=$ac_dir
2678 ac_install_sh="$ac_aux_dir/$ac_t -c"
2679 break 2
2681 done
2682 done
2683 if test -z "$ac_aux_dir"; then
2684 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2687 # These three variables are undocumented and unsupported,
2688 # and are intended to be withdrawn in a future Autoconf release.
2689 # They can cause serious problems if a builder's source tree is in a directory
2690 # whose full name contains unusual characters.
2691 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2692 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2693 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2696 # Make sure we can run config.sub.
2697 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2698 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2701 $as_echo_n "checking build system type... " >&6; }
2702 if test "${ac_cv_build+set}" = set; then :
2703 $as_echo_n "(cached) " >&6
2704 else
2705 ac_build_alias=$build_alias
2706 test "x$ac_build_alias" = x &&
2707 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2708 test "x$ac_build_alias" = x &&
2709 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2710 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2711 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2715 $as_echo "$ac_cv_build" >&6; }
2716 case $ac_cv_build in
2717 *-*-*) ;;
2718 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2719 esac
2720 build=$ac_cv_build
2721 ac_save_IFS=$IFS; IFS='-'
2722 set x $ac_cv_build
2723 shift
2724 build_cpu=$1
2725 build_vendor=$2
2726 shift; shift
2727 # Remember, the first character of IFS is used to create $*,
2728 # except with old shells:
2729 build_os=$*
2730 IFS=$ac_save_IFS
2731 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2735 $as_echo_n "checking host system type... " >&6; }
2736 if test "${ac_cv_host+set}" = set; then :
2737 $as_echo_n "(cached) " >&6
2738 else
2739 if test "x$host_alias" = x; then
2740 ac_cv_host=$ac_cv_build
2741 else
2742 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2743 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2748 $as_echo "$ac_cv_host" >&6; }
2749 case $ac_cv_host in
2750 *-*-*) ;;
2751 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2752 esac
2753 host=$ac_cv_host
2754 ac_save_IFS=$IFS; IFS='-'
2755 set x $ac_cv_host
2756 shift
2757 host_cpu=$1
2758 host_vendor=$2
2759 shift; shift
2760 # Remember, the first character of IFS is used to create $*,
2761 # except with old shells:
2762 host_os=$*
2763 IFS=$ac_save_IFS
2764 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2768 $as_echo_n "checking target system type... " >&6; }
2769 if test "${ac_cv_target+set}" = set; then :
2770 $as_echo_n "(cached) " >&6
2771 else
2772 if test "x$target_alias" = x; then
2773 ac_cv_target=$ac_cv_host
2774 else
2775 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2776 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2781 $as_echo "$ac_cv_target" >&6; }
2782 case $ac_cv_target in
2783 *-*-*) ;;
2784 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2785 esac
2786 target=$ac_cv_target
2787 ac_save_IFS=$IFS; IFS='-'
2788 set x $ac_cv_target
2789 shift
2790 target_cpu=$1
2791 target_vendor=$2
2792 shift; shift
2793 # Remember, the first character of IFS is used to create $*,
2794 # except with old shells:
2795 target_os=$*
2796 IFS=$ac_save_IFS
2797 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2800 # The aliases save the names the user supplied, while $host etc.
2801 # will get canonicalized.
2802 test -n "$target_alias" &&
2803 test "$program_prefix$program_suffix$program_transform_name" = \
2804 NONENONEs,x,x, &&
2805 program_prefix=${target_alias}-
2807 target_alias=${target_alias-$host_alias}
2809 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2810 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2811 # 1.9.0: minimum required version
2812 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2813 # of other PACKAGE_* variables will, however, and there's nothing
2814 # we can do about that; they come from AC_INIT).
2815 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2816 # file in the top srcdir, etc, etc), so stop complaining.
2817 # no-dist: we don't want 'dist' and related rules.
2818 # -Wall: turns on all automake warnings...
2819 # -Wno-portability: ...except this one, since GNU make is required.
2820 # -Wno-override: ... and this one, since we do want this in testsuite.
2821 am__api_version='1.11'
2823 # Find a good install program. We prefer a C program (faster),
2824 # so one script is as good as another. But avoid the broken or
2825 # incompatible versions:
2826 # SysV /etc/install, /usr/sbin/install
2827 # SunOS /usr/etc/install
2828 # IRIX /sbin/install
2829 # AIX /bin/install
2830 # AmigaOS /C/install, which installs bootblocks on floppy discs
2831 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2832 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2833 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2834 # OS/2's system install, which has a completely different semantic
2835 # ./install, which can be erroneously created by make from ./install.sh.
2836 # Reject install programs that cannot install multiple files.
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2838 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2839 if test -z "$INSTALL"; then
2840 if test "${ac_cv_path_install+set}" = set; then :
2841 $as_echo_n "(cached) " >&6
2842 else
2843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844 for as_dir in $PATH
2846 IFS=$as_save_IFS
2847 test -z "$as_dir" && as_dir=.
2848 # Account for people who put trailing slashes in PATH elements.
2849 case $as_dir/ in #((
2850 ./ | .// | /[cC]/* | \
2851 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2852 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2853 /usr/ucb/* ) ;;
2855 # OSF1 and SCO ODT 3.0 have their own names for install.
2856 # Don't use installbsd from OSF since it installs stuff as root
2857 # by default.
2858 for ac_prog in ginstall scoinst install; do
2859 for ac_exec_ext in '' $ac_executable_extensions; do
2860 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2861 if test $ac_prog = install &&
2862 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2863 # AIX install. It has an incompatible calling convention.
2865 elif test $ac_prog = install &&
2866 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2867 # program-specific install script used by HP pwplus--don't use.
2869 else
2870 rm -rf conftest.one conftest.two conftest.dir
2871 echo one > conftest.one
2872 echo two > conftest.two
2873 mkdir conftest.dir
2874 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2875 test -s conftest.one && test -s conftest.two &&
2876 test -s conftest.dir/conftest.one &&
2877 test -s conftest.dir/conftest.two
2878 then
2879 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2880 break 3
2884 done
2885 done
2887 esac
2889 done
2890 IFS=$as_save_IFS
2892 rm -rf conftest.one conftest.two conftest.dir
2895 if test "${ac_cv_path_install+set}" = set; then
2896 INSTALL=$ac_cv_path_install
2897 else
2898 # As a last resort, use the slow shell script. Don't cache a
2899 # value for INSTALL within a source directory, because that will
2900 # break other packages using the cache if that directory is
2901 # removed, or if the value is a relative name.
2902 INSTALL=$ac_install_sh
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2906 $as_echo "$INSTALL" >&6; }
2908 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2909 # It thinks the first close brace ends the variable substitution.
2910 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2912 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2914 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2917 $as_echo_n "checking whether build environment is sane... " >&6; }
2918 # Just in case
2919 sleep 1
2920 echo timestamp > conftest.file
2921 # Reject unsafe characters in $srcdir or the absolute working directory
2922 # name. Accept space and tab only in the latter.
2923 am_lf='
2925 case `pwd` in
2926 *[\\\"\#\$\&\'\`$am_lf]*)
2927 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2928 esac
2929 case $srcdir in
2930 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2931 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2932 esac
2934 # Do `set' in a subshell so we don't clobber the current shell's
2935 # arguments. Must try -L first in case configure is actually a
2936 # symlink; some systems play weird games with the mod time of symlinks
2937 # (eg FreeBSD returns the mod time of the symlink's containing
2938 # directory).
2939 if (
2940 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2941 if test "$*" = "X"; then
2942 # -L didn't work.
2943 set X `ls -t "$srcdir/configure" conftest.file`
2945 rm -f conftest.file
2946 if test "$*" != "X $srcdir/configure conftest.file" \
2947 && test "$*" != "X conftest.file $srcdir/configure"; then
2949 # If neither matched, then we have a broken ls. This can happen
2950 # if, for instance, CONFIG_SHELL is bash and it inherits a
2951 # broken ls alias from the environment. This has actually
2952 # happened. Such a system could not be considered "sane".
2953 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2954 alias in your environment" "$LINENO" 5
2957 test "$2" = conftest.file
2959 then
2960 # Ok.
2962 else
2963 as_fn_error "newly created file is older than distributed files!
2964 Check your system clock" "$LINENO" 5
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2967 $as_echo "yes" >&6; }
2968 test "$program_prefix" != NONE &&
2969 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2970 # Use a double $ so make ignores it.
2971 test "$program_suffix" != NONE &&
2972 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2973 # Double any \ or $.
2974 # By default was `s,x,x', remove it if useless.
2975 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2976 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2978 # expand $ac_aux_dir to an absolute path
2979 am_aux_dir=`cd $ac_aux_dir && pwd`
2981 if test x"${MISSING+set}" != xset; then
2982 case $am_aux_dir in
2983 *\ * | *\ *)
2984 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2986 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2987 esac
2989 # Use eval to expand $SHELL
2990 if eval "$MISSING --run true"; then
2991 am_missing_run="$MISSING --run "
2992 else
2993 am_missing_run=
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2995 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2998 if test x"${install_sh}" != xset; then
2999 case $am_aux_dir in
3000 *\ * | *\ *)
3001 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3003 install_sh="\${SHELL} $am_aux_dir/install-sh"
3004 esac
3007 # Installed binaries are usually stripped using `strip' when the user
3008 # run `make install-strip'. However `strip' might not be the right
3009 # tool to use in cross-compilation environments, therefore Automake
3010 # will honor the `STRIP' environment variable to overrule this program.
3011 if test "$cross_compiling" != no; then
3012 if test -n "$ac_tool_prefix"; then
3013 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3014 set dummy ${ac_tool_prefix}strip; ac_word=$2
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3016 $as_echo_n "checking for $ac_word... " >&6; }
3017 if test "${ac_cv_prog_STRIP+set}" = set; then :
3018 $as_echo_n "(cached) " >&6
3019 else
3020 if test -n "$STRIP"; then
3021 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3022 else
3023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3024 for as_dir in $PATH
3026 IFS=$as_save_IFS
3027 test -z "$as_dir" && as_dir=.
3028 for ac_exec_ext in '' $ac_executable_extensions; do
3029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3030 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3032 break 2
3034 done
3035 done
3036 IFS=$as_save_IFS
3040 STRIP=$ac_cv_prog_STRIP
3041 if test -n "$STRIP"; then
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3043 $as_echo "$STRIP" >&6; }
3044 else
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3046 $as_echo "no" >&6; }
3051 if test -z "$ac_cv_prog_STRIP"; then
3052 ac_ct_STRIP=$STRIP
3053 # Extract the first word of "strip", so it can be a program name with args.
3054 set dummy strip; ac_word=$2
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3056 $as_echo_n "checking for $ac_word... " >&6; }
3057 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3058 $as_echo_n "(cached) " >&6
3059 else
3060 if test -n "$ac_ct_STRIP"; then
3061 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3062 else
3063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3064 for as_dir in $PATH
3066 IFS=$as_save_IFS
3067 test -z "$as_dir" && as_dir=.
3068 for ac_exec_ext in '' $ac_executable_extensions; do
3069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3070 ac_cv_prog_ac_ct_STRIP="strip"
3071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3072 break 2
3074 done
3075 done
3076 IFS=$as_save_IFS
3080 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3081 if test -n "$ac_ct_STRIP"; then
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3083 $as_echo "$ac_ct_STRIP" >&6; }
3084 else
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3086 $as_echo "no" >&6; }
3089 if test "x$ac_ct_STRIP" = x; then
3090 STRIP=":"
3091 else
3092 case $cross_compiling:$ac_tool_warned in
3093 yes:)
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3095 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3096 ac_tool_warned=yes ;;
3097 esac
3098 STRIP=$ac_ct_STRIP
3100 else
3101 STRIP="$ac_cv_prog_STRIP"
3105 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3108 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3109 if test -z "$MKDIR_P"; then
3110 if test "${ac_cv_path_mkdir+set}" = set; then :
3111 $as_echo_n "(cached) " >&6
3112 else
3113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3114 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3116 IFS=$as_save_IFS
3117 test -z "$as_dir" && as_dir=.
3118 for ac_prog in mkdir gmkdir; do
3119 for ac_exec_ext in '' $ac_executable_extensions; do
3120 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3121 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3122 'mkdir (GNU coreutils) '* | \
3123 'mkdir (coreutils) '* | \
3124 'mkdir (fileutils) '4.1*)
3125 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3126 break 3;;
3127 esac
3128 done
3129 done
3130 done
3131 IFS=$as_save_IFS
3135 if test "${ac_cv_path_mkdir+set}" = set; then
3136 MKDIR_P="$ac_cv_path_mkdir -p"
3137 else
3138 # As a last resort, use the slow shell script. Don't cache a
3139 # value for MKDIR_P within a source directory, because that will
3140 # break other packages using the cache if that directory is
3141 # removed, or if the value is a relative name.
3142 test -d ./--version && rmdir ./--version
3143 MKDIR_P="$ac_install_sh -d"
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3147 $as_echo "$MKDIR_P" >&6; }
3149 mkdir_p="$MKDIR_P"
3150 case $mkdir_p in
3151 [\\/$]* | ?:[\\/]*) ;;
3152 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3153 esac
3155 for ac_prog in gawk mawk nawk awk
3157 # Extract the first word of "$ac_prog", so it can be a program name with args.
3158 set dummy $ac_prog; ac_word=$2
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3160 $as_echo_n "checking for $ac_word... " >&6; }
3161 if test "${ac_cv_prog_AWK+set}" = set; then :
3162 $as_echo_n "(cached) " >&6
3163 else
3164 if test -n "$AWK"; then
3165 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3166 else
3167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3168 for as_dir in $PATH
3170 IFS=$as_save_IFS
3171 test -z "$as_dir" && as_dir=.
3172 for ac_exec_ext in '' $ac_executable_extensions; do
3173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3174 ac_cv_prog_AWK="$ac_prog"
3175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3176 break 2
3178 done
3179 done
3180 IFS=$as_save_IFS
3184 AWK=$ac_cv_prog_AWK
3185 if test -n "$AWK"; then
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3187 $as_echo "$AWK" >&6; }
3188 else
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3190 $as_echo "no" >&6; }
3194 test -n "$AWK" && break
3195 done
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3198 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3199 set x ${MAKE-make}
3200 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3201 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3202 $as_echo_n "(cached) " >&6
3203 else
3204 cat >conftest.make <<\_ACEOF
3205 SHELL = /bin/sh
3206 all:
3207 @echo '@@@%%%=$(MAKE)=@@@%%%'
3208 _ACEOF
3209 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3210 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3211 *@@@%%%=?*=@@@%%%*)
3212 eval ac_cv_prog_make_${ac_make}_set=yes;;
3214 eval ac_cv_prog_make_${ac_make}_set=no;;
3215 esac
3216 rm -f conftest.make
3218 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3220 $as_echo "yes" >&6; }
3221 SET_MAKE=
3222 else
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3224 $as_echo "no" >&6; }
3225 SET_MAKE="MAKE=${MAKE-make}"
3228 rm -rf .tst 2>/dev/null
3229 mkdir .tst 2>/dev/null
3230 if test -d .tst; then
3231 am__leading_dot=.
3232 else
3233 am__leading_dot=_
3235 rmdir .tst 2>/dev/null
3237 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3238 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3239 # is not polluted with repeated "-I."
3240 am__isrc=' -I$(srcdir)'
3241 # test to see if srcdir already configured
3242 if test -f $srcdir/config.status; then
3243 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3247 # test whether we have cygpath
3248 if test -z "$CYGPATH_W"; then
3249 if (cygpath --version) >/dev/null 2>/dev/null; then
3250 CYGPATH_W='cygpath -w'
3251 else
3252 CYGPATH_W=echo
3257 # Define the identity of the package.
3258 PACKAGE='libgomp'
3259 VERSION='1.0'
3262 cat >>confdefs.h <<_ACEOF
3263 #define PACKAGE "$PACKAGE"
3264 _ACEOF
3267 cat >>confdefs.h <<_ACEOF
3268 #define VERSION "$VERSION"
3269 _ACEOF
3271 # Some tools Automake needs.
3273 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3276 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3279 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3282 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3285 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3287 # We need awk for the "check" target. The system "awk" is bad on
3288 # some platforms.
3289 # Always define AMTAR for backward compatibility. Yes, it's still used
3290 # in the wild :-( We should find a proper way to deprecate it ...
3291 AMTAR='$${TAR-tar}'
3293 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3299 # Default to --enable-multilib
3300 # Check whether --enable-multilib was given.
3301 if test "${enable_multilib+set}" = set; then :
3302 enableval=$enable_multilib; case "$enableval" in
3303 yes) multilib=yes ;;
3304 no) multilib=no ;;
3305 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3306 esac
3307 else
3308 multilib=yes
3312 # We may get other options which we leave undocumented:
3313 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3314 # See config-ml.in if you want the gory details.
3316 if test "$srcdir" = "."; then
3317 if test "$with_target_subdir" != "."; then
3318 multi_basedir="$srcdir/$with_multisrctop../.."
3319 else
3320 multi_basedir="$srcdir/$with_multisrctop.."
3322 else
3323 multi_basedir="$srcdir/.."
3327 # Even if the default multilib is not a cross compilation,
3328 # it may be that some of the other multilibs are.
3329 if test $cross_compiling = no && test $multilib = yes \
3330 && test "x${with_multisubdir}" != x ; then
3331 cross_compiling=maybe
3334 ac_config_commands="$ac_config_commands default-1"
3337 # Calculate toolexeclibdir
3338 # Also toolexecdir, though it's only used in toolexeclibdir
3339 case ${enable_version_specific_runtime_libs} in
3340 yes)
3341 # Need the gcc compiler version to know where to install libraries
3342 # and header files if --enable-version-specific-runtime-libs option
3343 # is selected.
3344 toolexecdir='$(libdir)/gcc/$(target_alias)'
3345 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3348 if test -n "$with_cross_host" &&
3349 test x"$with_cross_host" != x"no"; then
3350 # Install a library built with a cross compiler in tooldir, not libdir.
3351 toolexecdir='$(exec_prefix)/$(target_alias)'
3352 toolexeclibdir='$(toolexecdir)/lib'
3353 else
3354 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3355 toolexeclibdir='$(libdir)'
3357 multi_os_directory=`$CC -print-multi-os-directory`
3358 case $multi_os_directory in
3359 .) ;; # Avoid trailing /.
3360 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3361 esac
3363 esac
3367 # Check the compiler.
3368 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3369 # We must force CC to /not/ be precious variables; otherwise
3370 # the wrong, non-multilib-adjusted value will be used in multilibs.
3371 # As a side effect, we have to subst CFLAGS ourselves.
3375 ac_ext=c
3376 ac_cpp='$CPP $CPPFLAGS'
3377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3380 if test -n "$ac_tool_prefix"; then
3381 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3382 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3384 $as_echo_n "checking for $ac_word... " >&6; }
3385 if test "${ac_cv_prog_CC+set}" = set; then :
3386 $as_echo_n "(cached) " >&6
3387 else
3388 if test -n "$CC"; then
3389 ac_cv_prog_CC="$CC" # Let the user override the test.
3390 else
3391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3392 for as_dir in $PATH
3394 IFS=$as_save_IFS
3395 test -z "$as_dir" && as_dir=.
3396 for ac_exec_ext in '' $ac_executable_extensions; do
3397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3398 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3400 break 2
3402 done
3403 done
3404 IFS=$as_save_IFS
3408 CC=$ac_cv_prog_CC
3409 if test -n "$CC"; then
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3411 $as_echo "$CC" >&6; }
3412 else
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3414 $as_echo "no" >&6; }
3419 if test -z "$ac_cv_prog_CC"; then
3420 ac_ct_CC=$CC
3421 # Extract the first word of "gcc", so it can be a program name with args.
3422 set dummy gcc; ac_word=$2
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3424 $as_echo_n "checking for $ac_word... " >&6; }
3425 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3426 $as_echo_n "(cached) " >&6
3427 else
3428 if test -n "$ac_ct_CC"; then
3429 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3430 else
3431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3432 for as_dir in $PATH
3434 IFS=$as_save_IFS
3435 test -z "$as_dir" && as_dir=.
3436 for ac_exec_ext in '' $ac_executable_extensions; do
3437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3438 ac_cv_prog_ac_ct_CC="gcc"
3439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3440 break 2
3442 done
3443 done
3444 IFS=$as_save_IFS
3448 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3449 if test -n "$ac_ct_CC"; then
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3451 $as_echo "$ac_ct_CC" >&6; }
3452 else
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3454 $as_echo "no" >&6; }
3457 if test "x$ac_ct_CC" = x; then
3458 CC=""
3459 else
3460 case $cross_compiling:$ac_tool_warned in
3461 yes:)
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3463 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3464 ac_tool_warned=yes ;;
3465 esac
3466 CC=$ac_ct_CC
3468 else
3469 CC="$ac_cv_prog_CC"
3472 if test -z "$CC"; then
3473 if test -n "$ac_tool_prefix"; then
3474 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3475 set dummy ${ac_tool_prefix}cc; ac_word=$2
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3477 $as_echo_n "checking for $ac_word... " >&6; }
3478 if test "${ac_cv_prog_CC+set}" = set; then :
3479 $as_echo_n "(cached) " >&6
3480 else
3481 if test -n "$CC"; then
3482 ac_cv_prog_CC="$CC" # Let the user override the test.
3483 else
3484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3485 for as_dir in $PATH
3487 IFS=$as_save_IFS
3488 test -z "$as_dir" && as_dir=.
3489 for ac_exec_ext in '' $ac_executable_extensions; do
3490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3491 ac_cv_prog_CC="${ac_tool_prefix}cc"
3492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3493 break 2
3495 done
3496 done
3497 IFS=$as_save_IFS
3501 CC=$ac_cv_prog_CC
3502 if test -n "$CC"; then
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3504 $as_echo "$CC" >&6; }
3505 else
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3507 $as_echo "no" >&6; }
3513 if test -z "$CC"; then
3514 # Extract the first word of "cc", so it can be a program name with args.
3515 set dummy cc; ac_word=$2
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3517 $as_echo_n "checking for $ac_word... " >&6; }
3518 if test "${ac_cv_prog_CC+set}" = set; then :
3519 $as_echo_n "(cached) " >&6
3520 else
3521 if test -n "$CC"; then
3522 ac_cv_prog_CC="$CC" # Let the user override the test.
3523 else
3524 ac_prog_rejected=no
3525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3526 for as_dir in $PATH
3528 IFS=$as_save_IFS
3529 test -z "$as_dir" && as_dir=.
3530 for ac_exec_ext in '' $ac_executable_extensions; do
3531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3532 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3533 ac_prog_rejected=yes
3534 continue
3536 ac_cv_prog_CC="cc"
3537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3538 break 2
3540 done
3541 done
3542 IFS=$as_save_IFS
3544 if test $ac_prog_rejected = yes; then
3545 # We found a bogon in the path, so make sure we never use it.
3546 set dummy $ac_cv_prog_CC
3547 shift
3548 if test $# != 0; then
3549 # We chose a different compiler from the bogus one.
3550 # However, it has the same basename, so the bogon will be chosen
3551 # first if we set CC to just the basename; use the full file name.
3552 shift
3553 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3558 CC=$ac_cv_prog_CC
3559 if test -n "$CC"; then
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3561 $as_echo "$CC" >&6; }
3562 else
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3564 $as_echo "no" >&6; }
3569 if test -z "$CC"; then
3570 if test -n "$ac_tool_prefix"; then
3571 for ac_prog in cl.exe
3573 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3574 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3576 $as_echo_n "checking for $ac_word... " >&6; }
3577 if test "${ac_cv_prog_CC+set}" = set; then :
3578 $as_echo_n "(cached) " >&6
3579 else
3580 if test -n "$CC"; then
3581 ac_cv_prog_CC="$CC" # Let the user override the test.
3582 else
3583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3584 for as_dir in $PATH
3586 IFS=$as_save_IFS
3587 test -z "$as_dir" && as_dir=.
3588 for ac_exec_ext in '' $ac_executable_extensions; do
3589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3590 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3592 break 2
3594 done
3595 done
3596 IFS=$as_save_IFS
3600 CC=$ac_cv_prog_CC
3601 if test -n "$CC"; then
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3603 $as_echo "$CC" >&6; }
3604 else
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3606 $as_echo "no" >&6; }
3610 test -n "$CC" && break
3611 done
3613 if test -z "$CC"; then
3614 ac_ct_CC=$CC
3615 for ac_prog in cl.exe
3617 # Extract the first word of "$ac_prog", so it can be a program name with args.
3618 set dummy $ac_prog; ac_word=$2
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3620 $as_echo_n "checking for $ac_word... " >&6; }
3621 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3622 $as_echo_n "(cached) " >&6
3623 else
3624 if test -n "$ac_ct_CC"; then
3625 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3626 else
3627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3628 for as_dir in $PATH
3630 IFS=$as_save_IFS
3631 test -z "$as_dir" && as_dir=.
3632 for ac_exec_ext in '' $ac_executable_extensions; do
3633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3634 ac_cv_prog_ac_ct_CC="$ac_prog"
3635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3636 break 2
3638 done
3639 done
3640 IFS=$as_save_IFS
3644 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3645 if test -n "$ac_ct_CC"; then
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3647 $as_echo "$ac_ct_CC" >&6; }
3648 else
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3650 $as_echo "no" >&6; }
3654 test -n "$ac_ct_CC" && break
3655 done
3657 if test "x$ac_ct_CC" = x; then
3658 CC=""
3659 else
3660 case $cross_compiling:$ac_tool_warned in
3661 yes:)
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3663 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3664 ac_tool_warned=yes ;;
3665 esac
3666 CC=$ac_ct_CC
3673 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3674 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3675 as_fn_error "no acceptable C compiler found in \$PATH
3676 See \`config.log' for more details." "$LINENO" 5; }
3678 # Provide some information about the compiler.
3679 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3680 set X $ac_compile
3681 ac_compiler=$2
3682 for ac_option in --version -v -V -qversion; do
3683 { { ac_try="$ac_compiler $ac_option >&5"
3684 case "(($ac_try" in
3685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3686 *) ac_try_echo=$ac_try;;
3687 esac
3688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3689 $as_echo "$ac_try_echo"; } >&5
3690 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3691 ac_status=$?
3692 if test -s conftest.err; then
3693 sed '10a\
3694 ... rest of stderr output deleted ...
3695 10q' conftest.err >conftest.er1
3696 cat conftest.er1 >&5
3697 rm -f conftest.er1 conftest.err
3699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3700 test $ac_status = 0; }
3701 done
3703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3704 /* end confdefs.h. */
3707 main ()
3711 return 0;
3713 _ACEOF
3714 ac_clean_files_save=$ac_clean_files
3715 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3716 # Try to create an executable without -o first, disregard a.out.
3717 # It will help us diagnose broken compilers, and finding out an intuition
3718 # of exeext.
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3720 $as_echo_n "checking for C compiler default output file name... " >&6; }
3721 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3723 # The possible output files:
3724 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3726 ac_rmfiles=
3727 for ac_file in $ac_files
3729 case $ac_file in
3730 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3731 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3732 esac
3733 done
3734 rm -f $ac_rmfiles
3736 if { { ac_try="$ac_link_default"
3737 case "(($ac_try" in
3738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3739 *) ac_try_echo=$ac_try;;
3740 esac
3741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3742 $as_echo "$ac_try_echo"; } >&5
3743 (eval "$ac_link_default") 2>&5
3744 ac_status=$?
3745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3746 test $ac_status = 0; }; then :
3747 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3748 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3749 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3750 # so that the user can short-circuit this test for compilers unknown to
3751 # Autoconf.
3752 for ac_file in $ac_files ''
3754 test -f "$ac_file" || continue
3755 case $ac_file in
3756 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3758 [ab].out )
3759 # We found the default executable, but exeext='' is most
3760 # certainly right.
3761 break;;
3762 *.* )
3763 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3764 then :; else
3765 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3767 # We set ac_cv_exeext here because the later test for it is not
3768 # safe: cross compilers may not add the suffix if given an `-o'
3769 # argument, so we may need to know it at that point already.
3770 # Even if this section looks crufty: it has the advantage of
3771 # actually working.
3772 break;;
3774 break;;
3775 esac
3776 done
3777 test "$ac_cv_exeext" = no && ac_cv_exeext=
3779 else
3780 ac_file=''
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3783 $as_echo "$ac_file" >&6; }
3784 if test -z "$ac_file"; then :
3785 $as_echo "$as_me: failed program was:" >&5
3786 sed 's/^/| /' conftest.$ac_ext >&5
3788 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3789 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3790 { as_fn_set_status 77
3791 as_fn_error "C compiler cannot create executables
3792 See \`config.log' for more details." "$LINENO" 5; }; }
3794 ac_exeext=$ac_cv_exeext
3796 # Check that the compiler produces executables we can run. If not, either
3797 # the compiler is broken, or we cross compile.
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3799 $as_echo_n "checking whether the C compiler works... " >&6; }
3800 # If not cross compiling, check that we can run a simple program.
3801 if test "$cross_compiling" != yes; then
3802 if { ac_try='./$ac_file'
3803 { { case "(($ac_try" in
3804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3805 *) ac_try_echo=$ac_try;;
3806 esac
3807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3808 $as_echo "$ac_try_echo"; } >&5
3809 (eval "$ac_try") 2>&5
3810 ac_status=$?
3811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3812 test $ac_status = 0; }; }; then
3813 cross_compiling=no
3814 else
3815 if test "$cross_compiling" = maybe; then
3816 cross_compiling=yes
3817 else
3818 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3819 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3820 as_fn_error "cannot run C compiled programs.
3821 If you meant to cross compile, use \`--host'.
3822 See \`config.log' for more details." "$LINENO" 5; }
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3827 $as_echo "yes" >&6; }
3829 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3830 ac_clean_files=$ac_clean_files_save
3831 # Check that the compiler produces executables we can run. If not, either
3832 # the compiler is broken, or we cross compile.
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3834 $as_echo_n "checking whether we are cross compiling... " >&6; }
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3836 $as_echo "$cross_compiling" >&6; }
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3839 $as_echo_n "checking for suffix of executables... " >&6; }
3840 if { { ac_try="$ac_link"
3841 case "(($ac_try" in
3842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3843 *) ac_try_echo=$ac_try;;
3844 esac
3845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3846 $as_echo "$ac_try_echo"; } >&5
3847 (eval "$ac_link") 2>&5
3848 ac_status=$?
3849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3850 test $ac_status = 0; }; then :
3851 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3852 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3853 # work properly (i.e., refer to `conftest.exe'), while it won't with
3854 # `rm'.
3855 for ac_file in conftest.exe conftest conftest.*; do
3856 test -f "$ac_file" || continue
3857 case $ac_file in
3858 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3859 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3860 break;;
3861 * ) break;;
3862 esac
3863 done
3864 else
3865 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3866 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3867 as_fn_error "cannot compute suffix of executables: cannot compile and link
3868 See \`config.log' for more details." "$LINENO" 5; }
3870 rm -f conftest$ac_cv_exeext
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3872 $as_echo "$ac_cv_exeext" >&6; }
3874 rm -f conftest.$ac_ext
3875 EXEEXT=$ac_cv_exeext
3876 ac_exeext=$EXEEXT
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3878 $as_echo_n "checking for suffix of object files... " >&6; }
3879 if test "${ac_cv_objext+set}" = set; then :
3880 $as_echo_n "(cached) " >&6
3881 else
3882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3883 /* end confdefs.h. */
3886 main ()
3890 return 0;
3892 _ACEOF
3893 rm -f conftest.o conftest.obj
3894 if { { ac_try="$ac_compile"
3895 case "(($ac_try" in
3896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3897 *) ac_try_echo=$ac_try;;
3898 esac
3899 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3900 $as_echo "$ac_try_echo"; } >&5
3901 (eval "$ac_compile") 2>&5
3902 ac_status=$?
3903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3904 test $ac_status = 0; }; then :
3905 for ac_file in conftest.o conftest.obj conftest.*; do
3906 test -f "$ac_file" || continue;
3907 case $ac_file in
3908 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3909 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3910 break;;
3911 esac
3912 done
3913 else
3914 $as_echo "$as_me: failed program was:" >&5
3915 sed 's/^/| /' conftest.$ac_ext >&5
3917 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3918 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3919 as_fn_error "cannot compute suffix of object files: cannot compile
3920 See \`config.log' for more details." "$LINENO" 5; }
3922 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3925 $as_echo "$ac_cv_objext" >&6; }
3926 OBJEXT=$ac_cv_objext
3927 ac_objext=$OBJEXT
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3929 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3930 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3931 $as_echo_n "(cached) " >&6
3932 else
3933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3934 /* end confdefs.h. */
3937 main ()
3939 #ifndef __GNUC__
3940 choke me
3941 #endif
3944 return 0;
3946 _ACEOF
3947 if ac_fn_c_try_compile "$LINENO"; then :
3948 ac_compiler_gnu=yes
3949 else
3950 ac_compiler_gnu=no
3952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3953 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3957 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3958 if test $ac_compiler_gnu = yes; then
3959 GCC=yes
3960 else
3961 GCC=
3963 ac_test_CFLAGS=${CFLAGS+set}
3964 ac_save_CFLAGS=$CFLAGS
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3966 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3967 if test "${ac_cv_prog_cc_g+set}" = set; then :
3968 $as_echo_n "(cached) " >&6
3969 else
3970 ac_save_c_werror_flag=$ac_c_werror_flag
3971 ac_c_werror_flag=yes
3972 ac_cv_prog_cc_g=no
3973 CFLAGS="-g"
3974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3975 /* end confdefs.h. */
3978 main ()
3982 return 0;
3984 _ACEOF
3985 if ac_fn_c_try_compile "$LINENO"; then :
3986 ac_cv_prog_cc_g=yes
3987 else
3988 CFLAGS=""
3989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3990 /* end confdefs.h. */
3993 main ()
3997 return 0;
3999 _ACEOF
4000 if ac_fn_c_try_compile "$LINENO"; then :
4002 else
4003 ac_c_werror_flag=$ac_save_c_werror_flag
4004 CFLAGS="-g"
4005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4006 /* end confdefs.h. */
4009 main ()
4013 return 0;
4015 _ACEOF
4016 if ac_fn_c_try_compile "$LINENO"; then :
4017 ac_cv_prog_cc_g=yes
4019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4024 ac_c_werror_flag=$ac_save_c_werror_flag
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4027 $as_echo "$ac_cv_prog_cc_g" >&6; }
4028 if test "$ac_test_CFLAGS" = set; then
4029 CFLAGS=$ac_save_CFLAGS
4030 elif test $ac_cv_prog_cc_g = yes; then
4031 if test "$GCC" = yes; then
4032 CFLAGS="-g -O2"
4033 else
4034 CFLAGS="-g"
4036 else
4037 if test "$GCC" = yes; then
4038 CFLAGS="-O2"
4039 else
4040 CFLAGS=
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4044 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4045 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4046 $as_echo_n "(cached) " >&6
4047 else
4048 ac_cv_prog_cc_c89=no
4049 ac_save_CC=$CC
4050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4051 /* end confdefs.h. */
4052 #include <stdarg.h>
4053 #include <stdio.h>
4054 #include <sys/types.h>
4055 #include <sys/stat.h>
4056 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4057 struct buf { int x; };
4058 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4059 static char *e (p, i)
4060 char **p;
4061 int i;
4063 return p[i];
4065 static char *f (char * (*g) (char **, int), char **p, ...)
4067 char *s;
4068 va_list v;
4069 va_start (v,p);
4070 s = g (p, va_arg (v,int));
4071 va_end (v);
4072 return s;
4075 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4076 function prototypes and stuff, but not '\xHH' hex character constants.
4077 These don't provoke an error unfortunately, instead are silently treated
4078 as 'x'. The following induces an error, until -std is added to get
4079 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4080 array size at least. It's necessary to write '\x00'==0 to get something
4081 that's true only with -std. */
4082 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4084 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4085 inside strings and character constants. */
4086 #define FOO(x) 'x'
4087 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4089 int test (int i, double x);
4090 struct s1 {int (*f) (int a);};
4091 struct s2 {int (*f) (double a);};
4092 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4093 int argc;
4094 char **argv;
4096 main ()
4098 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4100 return 0;
4102 _ACEOF
4103 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4104 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4106 CC="$ac_save_CC $ac_arg"
4107 if ac_fn_c_try_compile "$LINENO"; then :
4108 ac_cv_prog_cc_c89=$ac_arg
4110 rm -f core conftest.err conftest.$ac_objext
4111 test "x$ac_cv_prog_cc_c89" != "xno" && break
4112 done
4113 rm -f conftest.$ac_ext
4114 CC=$ac_save_CC
4117 # AC_CACHE_VAL
4118 case "x$ac_cv_prog_cc_c89" in
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4121 $as_echo "none needed" >&6; } ;;
4122 xno)
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4124 $as_echo "unsupported" >&6; } ;;
4126 CC="$CC $ac_cv_prog_cc_c89"
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4128 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4129 esac
4130 if test "x$ac_cv_prog_cc_c89" != xno; then :
4134 ac_ext=c
4135 ac_cpp='$CPP $CPPFLAGS'
4136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4139 DEPDIR="${am__leading_dot}deps"
4141 ac_config_commands="$ac_config_commands depfiles"
4144 am_make=${MAKE-make}
4145 cat > confinc << 'END'
4146 am__doit:
4147 @echo this is the am__doit target
4148 .PHONY: am__doit
4150 # If we don't find an include directive, just comment out the code.
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4152 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4153 am__include="#"
4154 am__quote=
4155 _am_result=none
4156 # First try GNU make style include.
4157 echo "include confinc" > confmf
4158 # Ignore all kinds of additional output from `make'.
4159 case `$am_make -s -f confmf 2> /dev/null` in #(
4160 *the\ am__doit\ target*)
4161 am__include=include
4162 am__quote=
4163 _am_result=GNU
4165 esac
4166 # Now try BSD make style include.
4167 if test "$am__include" = "#"; then
4168 echo '.include "confinc"' > confmf
4169 case `$am_make -s -f confmf 2> /dev/null` in #(
4170 *the\ am__doit\ target*)
4171 am__include=.include
4172 am__quote="\""
4173 _am_result=BSD
4175 esac
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4180 $as_echo "$_am_result" >&6; }
4181 rm -f confinc confmf
4183 # Check whether --enable-dependency-tracking was given.
4184 if test "${enable_dependency_tracking+set}" = set; then :
4185 enableval=$enable_dependency_tracking;
4188 if test "x$enable_dependency_tracking" != xno; then
4189 am_depcomp="$ac_aux_dir/depcomp"
4190 AMDEPBACKSLASH='\'
4191 am__nodep='_no'
4193 if test "x$enable_dependency_tracking" != xno; then
4194 AMDEP_TRUE=
4195 AMDEP_FALSE='#'
4196 else
4197 AMDEP_TRUE='#'
4198 AMDEP_FALSE=
4203 depcc="$CC" am_compiler_list=
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4206 $as_echo_n "checking dependency style of $depcc... " >&6; }
4207 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4208 $as_echo_n "(cached) " >&6
4209 else
4210 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4211 # We make a subdir and do the tests there. Otherwise we can end up
4212 # making bogus files that we don't know about and never remove. For
4213 # instance it was reported that on HP-UX the gcc test will end up
4214 # making a dummy file named `D' -- because `-MD' means `put the output
4215 # in D'.
4216 rm -rf conftest.dir
4217 mkdir conftest.dir
4218 # Copy depcomp to subdir because otherwise we won't find it if we're
4219 # using a relative directory.
4220 cp "$am_depcomp" conftest.dir
4221 cd conftest.dir
4222 # We will build objects and dependencies in a subdirectory because
4223 # it helps to detect inapplicable dependency modes. For instance
4224 # both Tru64's cc and ICC support -MD to output dependencies as a
4225 # side effect of compilation, but ICC will put the dependencies in
4226 # the current directory while Tru64 will put them in the object
4227 # directory.
4228 mkdir sub
4230 am_cv_CC_dependencies_compiler_type=none
4231 if test "$am_compiler_list" = ""; then
4232 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4234 am__universal=false
4235 case " $depcc " in #(
4236 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4237 esac
4239 for depmode in $am_compiler_list; do
4240 # Setup a source with many dependencies, because some compilers
4241 # like to wrap large dependency lists on column 80 (with \), and
4242 # we should not choose a depcomp mode which is confused by this.
4244 # We need to recreate these files for each test, as the compiler may
4245 # overwrite some of them when testing with obscure command lines.
4246 # This happens at least with the AIX C compiler.
4247 : > sub/conftest.c
4248 for i in 1 2 3 4 5 6; do
4249 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4250 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4251 # Solaris 8's {/usr,}/bin/sh.
4252 touch sub/conftst$i.h
4253 done
4254 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4256 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4257 # mode. It turns out that the SunPro C++ compiler does not properly
4258 # handle `-M -o', and we need to detect this. Also, some Intel
4259 # versions had trouble with output in subdirs
4260 am__obj=sub/conftest.${OBJEXT-o}
4261 am__minus_obj="-o $am__obj"
4262 case $depmode in
4263 gcc)
4264 # This depmode causes a compiler race in universal mode.
4265 test "$am__universal" = false || continue
4267 nosideeffect)
4268 # after this tag, mechanisms are not by side-effect, so they'll
4269 # only be used when explicitly requested
4270 if test "x$enable_dependency_tracking" = xyes; then
4271 continue
4272 else
4273 break
4276 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4277 # This compiler won't grok `-c -o', but also, the minuso test has
4278 # not run yet. These depmodes are late enough in the game, and
4279 # so weak that their functioning should not be impacted.
4280 am__obj=conftest.${OBJEXT-o}
4281 am__minus_obj=
4283 none) break ;;
4284 esac
4285 if depmode=$depmode \
4286 source=sub/conftest.c object=$am__obj \
4287 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4288 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4289 >/dev/null 2>conftest.err &&
4290 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4291 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4292 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4293 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4294 # icc doesn't choke on unknown options, it will just issue warnings
4295 # or remarks (even with -Werror). So we grep stderr for any message
4296 # that says an option was ignored or not supported.
4297 # When given -MP, icc 7.0 and 7.1 complain thusly:
4298 # icc: Command line warning: ignoring option '-M'; no argument required
4299 # The diagnosis changed in icc 8.0:
4300 # icc: Command line remark: option '-MP' not supported
4301 if (grep 'ignoring option' conftest.err ||
4302 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4303 am_cv_CC_dependencies_compiler_type=$depmode
4304 break
4307 done
4309 cd ..
4310 rm -rf conftest.dir
4311 else
4312 am_cv_CC_dependencies_compiler_type=none
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4317 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4318 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4321 test "x$enable_dependency_tracking" != xno \
4322 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4323 am__fastdepCC_TRUE=
4324 am__fastdepCC_FALSE='#'
4325 else
4326 am__fastdepCC_TRUE='#'
4327 am__fastdepCC_FALSE=
4335 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
4336 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
4337 # in both places for now and restore CFLAGS at the end of config.
4338 save_CFLAGS="$CFLAGS"
4340 # Add -Wall -Werror if we are using GCC.
4341 if test "x$GCC" = "xyes"; then
4342 XCFLAGS="$XCFLAGS -Wall -Werror"
4345 # Find other programs we need.
4346 if test -n "$ac_tool_prefix"; then
4347 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4348 set dummy ${ac_tool_prefix}ar; ac_word=$2
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4350 $as_echo_n "checking for $ac_word... " >&6; }
4351 if test "${ac_cv_prog_AR+set}" = set; then :
4352 $as_echo_n "(cached) " >&6
4353 else
4354 if test -n "$AR"; then
4355 ac_cv_prog_AR="$AR" # Let the user override the test.
4356 else
4357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4358 for as_dir in $PATH
4360 IFS=$as_save_IFS
4361 test -z "$as_dir" && as_dir=.
4362 for ac_exec_ext in '' $ac_executable_extensions; do
4363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4364 ac_cv_prog_AR="${ac_tool_prefix}ar"
4365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4366 break 2
4368 done
4369 done
4370 IFS=$as_save_IFS
4374 AR=$ac_cv_prog_AR
4375 if test -n "$AR"; then
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4377 $as_echo "$AR" >&6; }
4378 else
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4380 $as_echo "no" >&6; }
4385 if test -z "$ac_cv_prog_AR"; then
4386 ac_ct_AR=$AR
4387 # Extract the first word of "ar", so it can be a program name with args.
4388 set dummy ar; ac_word=$2
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4390 $as_echo_n "checking for $ac_word... " >&6; }
4391 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4392 $as_echo_n "(cached) " >&6
4393 else
4394 if test -n "$ac_ct_AR"; then
4395 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4396 else
4397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398 for as_dir in $PATH
4400 IFS=$as_save_IFS
4401 test -z "$as_dir" && as_dir=.
4402 for ac_exec_ext in '' $ac_executable_extensions; do
4403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4404 ac_cv_prog_ac_ct_AR="ar"
4405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4406 break 2
4408 done
4409 done
4410 IFS=$as_save_IFS
4414 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4415 if test -n "$ac_ct_AR"; then
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4417 $as_echo "$ac_ct_AR" >&6; }
4418 else
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4420 $as_echo "no" >&6; }
4423 if test "x$ac_ct_AR" = x; then
4424 AR=""
4425 else
4426 case $cross_compiling:$ac_tool_warned in
4427 yes:)
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4429 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4430 ac_tool_warned=yes ;;
4431 esac
4432 AR=$ac_ct_AR
4434 else
4435 AR="$ac_cv_prog_AR"
4438 if test -n "$ac_tool_prefix"; then
4439 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4440 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4442 $as_echo_n "checking for $ac_word... " >&6; }
4443 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4444 $as_echo_n "(cached) " >&6
4445 else
4446 if test -n "$RANLIB"; then
4447 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4448 else
4449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4450 for as_dir in $PATH
4452 IFS=$as_save_IFS
4453 test -z "$as_dir" && as_dir=.
4454 for ac_exec_ext in '' $ac_executable_extensions; do
4455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4456 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4458 break 2
4460 done
4461 done
4462 IFS=$as_save_IFS
4466 RANLIB=$ac_cv_prog_RANLIB
4467 if test -n "$RANLIB"; then
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4469 $as_echo "$RANLIB" >&6; }
4470 else
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4472 $as_echo "no" >&6; }
4477 if test -z "$ac_cv_prog_RANLIB"; then
4478 ac_ct_RANLIB=$RANLIB
4479 # Extract the first word of "ranlib", so it can be a program name with args.
4480 set dummy ranlib; ac_word=$2
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4482 $as_echo_n "checking for $ac_word... " >&6; }
4483 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4484 $as_echo_n "(cached) " >&6
4485 else
4486 if test -n "$ac_ct_RANLIB"; then
4487 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4488 else
4489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4490 for as_dir in $PATH
4492 IFS=$as_save_IFS
4493 test -z "$as_dir" && as_dir=.
4494 for ac_exec_ext in '' $ac_executable_extensions; do
4495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4496 ac_cv_prog_ac_ct_RANLIB="ranlib"
4497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4498 break 2
4500 done
4501 done
4502 IFS=$as_save_IFS
4506 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4507 if test -n "$ac_ct_RANLIB"; then
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4509 $as_echo "$ac_ct_RANLIB" >&6; }
4510 else
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4512 $as_echo "no" >&6; }
4515 if test "x$ac_ct_RANLIB" = x; then
4516 RANLIB="ranlib-not-found-in-path-error"
4517 else
4518 case $cross_compiling:$ac_tool_warned in
4519 yes:)
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4521 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4522 ac_tool_warned=yes ;;
4523 esac
4524 RANLIB=$ac_ct_RANLIB
4526 else
4527 RANLIB="$ac_cv_prog_RANLIB"
4530 # Extract the first word of "perl", so it can be a program name with args.
4531 set dummy perl; ac_word=$2
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4533 $as_echo_n "checking for $ac_word... " >&6; }
4534 if test "${ac_cv_path_PERL+set}" = set; then :
4535 $as_echo_n "(cached) " >&6
4536 else
4537 case $PERL in
4538 [\\/]* | ?:[\\/]*)
4539 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4543 for as_dir in $PATH
4545 IFS=$as_save_IFS
4546 test -z "$as_dir" && as_dir=.
4547 for ac_exec_ext in '' $ac_executable_extensions; do
4548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4549 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4551 break 2
4553 done
4554 done
4555 IFS=$as_save_IFS
4557 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
4559 esac
4561 PERL=$ac_cv_path_PERL
4562 if test -n "$PERL"; then
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4564 $as_echo "$PERL" >&6; }
4565 else
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4567 $as_echo "no" >&6; }
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4572 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4573 set x ${MAKE-make}
4574 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4575 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4576 $as_echo_n "(cached) " >&6
4577 else
4578 cat >conftest.make <<\_ACEOF
4579 SHELL = /bin/sh
4580 all:
4581 @echo '@@@%%%=$(MAKE)=@@@%%%'
4582 _ACEOF
4583 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4584 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4585 *@@@%%%=?*=@@@%%%*)
4586 eval ac_cv_prog_make_${ac_make}_set=yes;;
4588 eval ac_cv_prog_make_${ac_make}_set=no;;
4589 esac
4590 rm -f conftest.make
4592 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4594 $as_echo "yes" >&6; }
4595 SET_MAKE=
4596 else
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4598 $as_echo "no" >&6; }
4599 SET_MAKE="MAKE=${MAKE-make}"
4604 # See if makeinfo has been installed and is modern enough
4605 # that we can use it.
4607 # Extract the first word of "makeinfo", so it can be a program name with args.
4608 set dummy makeinfo; ac_word=$2
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4610 $as_echo_n "checking for $ac_word... " >&6; }
4611 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
4612 $as_echo_n "(cached) " >&6
4613 else
4614 if test -n "$MAKEINFO"; then
4615 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4616 else
4617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4618 for as_dir in $PATH
4620 IFS=$as_save_IFS
4621 test -z "$as_dir" && as_dir=.
4622 for ac_exec_ext in '' $ac_executable_extensions; do
4623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4624 ac_cv_prog_MAKEINFO="makeinfo"
4625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4626 break 2
4628 done
4629 done
4630 IFS=$as_save_IFS
4634 MAKEINFO=$ac_cv_prog_MAKEINFO
4635 if test -n "$MAKEINFO"; then
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4637 $as_echo "$MAKEINFO" >&6; }
4638 else
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4640 $as_echo "no" >&6; }
4644 if test -n "$MAKEINFO"; then
4645 # Found it, now check the version.
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
4647 $as_echo_n "checking for modern makeinfo... " >&6; }
4648 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
4649 $as_echo_n "(cached) " >&6
4650 else
4651 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
4652 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4654 case $ac_prog_version in
4655 '') gcc_cv_prog_makeinfo_modern=no;;
4656 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
4657 *) gcc_cv_prog_makeinfo_modern=no;;
4658 esac
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
4662 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
4663 else
4664 gcc_cv_prog_makeinfo_modern=no
4666 if test $gcc_cv_prog_makeinfo_modern = no; then
4667 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
4670 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
4671 BUILD_INFO_TRUE=
4672 BUILD_INFO_FALSE='#'
4673 else
4674 BUILD_INFO_TRUE='#'
4675 BUILD_INFO_FALSE=
4680 # Configure libtool
4681 case `pwd` in
4682 *\ * | *\ *)
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4684 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4685 esac
4689 macro_version='2.2.7a'
4690 macro_revision='1.3134'
4704 ltmain="$ac_aux_dir/ltmain.sh"
4706 # Backslashify metacharacters that are still active within
4707 # double-quoted strings.
4708 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4710 # Same as above, but do not quote variable references.
4711 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4713 # Sed substitution to delay expansion of an escaped shell variable in a
4714 # double_quote_subst'ed string.
4715 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4717 # Sed substitution to delay expansion of an escaped single quote.
4718 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4720 # Sed substitution to avoid accidental globbing in evaled expressions
4721 no_glob_subst='s/\*/\\\*/g'
4723 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4724 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4725 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4728 $as_echo_n "checking how to print strings... " >&6; }
4729 # Test print first, because it will be a builtin if present.
4730 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4731 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4732 ECHO='print -r --'
4733 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4734 ECHO='printf %s\n'
4735 else
4736 # Use this function as a fallback that always works.
4737 func_fallback_echo ()
4739 eval 'cat <<_LTECHO_EOF
4741 _LTECHO_EOF'
4743 ECHO='func_fallback_echo'
4746 # func_echo_all arg...
4747 # Invoke $ECHO with all args, space-separated.
4748 func_echo_all ()
4750 $ECHO ""
4753 case "$ECHO" in
4754 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4755 $as_echo "printf" >&6; } ;;
4756 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4757 $as_echo "print -r" >&6; } ;;
4758 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4759 $as_echo "cat" >&6; } ;;
4760 esac
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4776 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4777 if test "${ac_cv_path_SED+set}" = set; then :
4778 $as_echo_n "(cached) " >&6
4779 else
4780 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4781 for ac_i in 1 2 3 4 5 6 7; do
4782 ac_script="$ac_script$as_nl$ac_script"
4783 done
4784 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4785 { ac_script=; unset ac_script;}
4786 if test -z "$SED"; then
4787 ac_path_SED_found=false
4788 # Loop through the user's path and test for each of PROGNAME-LIST
4789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790 for as_dir in $PATH
4792 IFS=$as_save_IFS
4793 test -z "$as_dir" && as_dir=.
4794 for ac_prog in sed gsed; do
4795 for ac_exec_ext in '' $ac_executable_extensions; do
4796 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4797 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4798 # Check for GNU ac_path_SED and select it if it is found.
4799 # Check for GNU $ac_path_SED
4800 case `"$ac_path_SED" --version 2>&1` in
4801 *GNU*)
4802 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4804 ac_count=0
4805 $as_echo_n 0123456789 >"conftest.in"
4806 while :
4808 cat "conftest.in" "conftest.in" >"conftest.tmp"
4809 mv "conftest.tmp" "conftest.in"
4810 cp "conftest.in" "conftest.nl"
4811 $as_echo '' >> "conftest.nl"
4812 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4813 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4814 as_fn_arith $ac_count + 1 && ac_count=$as_val
4815 if test $ac_count -gt ${ac_path_SED_max-0}; then
4816 # Best one so far, save it but keep looking for a better one
4817 ac_cv_path_SED="$ac_path_SED"
4818 ac_path_SED_max=$ac_count
4820 # 10*(2^10) chars as input seems more than enough
4821 test $ac_count -gt 10 && break
4822 done
4823 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4824 esac
4826 $ac_path_SED_found && break 3
4827 done
4828 done
4829 done
4830 IFS=$as_save_IFS
4831 if test -z "$ac_cv_path_SED"; then
4832 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4834 else
4835 ac_cv_path_SED=$SED
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4840 $as_echo "$ac_cv_path_SED" >&6; }
4841 SED="$ac_cv_path_SED"
4842 rm -f conftest.sed
4844 test -z "$SED" && SED=sed
4845 Xsed="$SED -e 1s/^X//"
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4858 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4859 if test "${ac_cv_path_GREP+set}" = set; then :
4860 $as_echo_n "(cached) " >&6
4861 else
4862 if test -z "$GREP"; then
4863 ac_path_GREP_found=false
4864 # Loop through the user's path and test for each of PROGNAME-LIST
4865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4866 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4868 IFS=$as_save_IFS
4869 test -z "$as_dir" && as_dir=.
4870 for ac_prog in grep ggrep; do
4871 for ac_exec_ext in '' $ac_executable_extensions; do
4872 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4873 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4874 # Check for GNU ac_path_GREP and select it if it is found.
4875 # Check for GNU $ac_path_GREP
4876 case `"$ac_path_GREP" --version 2>&1` in
4877 *GNU*)
4878 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4880 ac_count=0
4881 $as_echo_n 0123456789 >"conftest.in"
4882 while :
4884 cat "conftest.in" "conftest.in" >"conftest.tmp"
4885 mv "conftest.tmp" "conftest.in"
4886 cp "conftest.in" "conftest.nl"
4887 $as_echo 'GREP' >> "conftest.nl"
4888 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4889 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4890 as_fn_arith $ac_count + 1 && ac_count=$as_val
4891 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4892 # Best one so far, save it but keep looking for a better one
4893 ac_cv_path_GREP="$ac_path_GREP"
4894 ac_path_GREP_max=$ac_count
4896 # 10*(2^10) chars as input seems more than enough
4897 test $ac_count -gt 10 && break
4898 done
4899 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4900 esac
4902 $ac_path_GREP_found && break 3
4903 done
4904 done
4905 done
4906 IFS=$as_save_IFS
4907 if test -z "$ac_cv_path_GREP"; then
4908 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4910 else
4911 ac_cv_path_GREP=$GREP
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4916 $as_echo "$ac_cv_path_GREP" >&6; }
4917 GREP="$ac_cv_path_GREP"
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4921 $as_echo_n "checking for egrep... " >&6; }
4922 if test "${ac_cv_path_EGREP+set}" = set; then :
4923 $as_echo_n "(cached) " >&6
4924 else
4925 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4926 then ac_cv_path_EGREP="$GREP -E"
4927 else
4928 if test -z "$EGREP"; then
4929 ac_path_EGREP_found=false
4930 # Loop through the user's path and test for each of PROGNAME-LIST
4931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4932 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4934 IFS=$as_save_IFS
4935 test -z "$as_dir" && as_dir=.
4936 for ac_prog in egrep; do
4937 for ac_exec_ext in '' $ac_executable_extensions; do
4938 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4939 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4940 # Check for GNU ac_path_EGREP and select it if it is found.
4941 # Check for GNU $ac_path_EGREP
4942 case `"$ac_path_EGREP" --version 2>&1` in
4943 *GNU*)
4944 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4946 ac_count=0
4947 $as_echo_n 0123456789 >"conftest.in"
4948 while :
4950 cat "conftest.in" "conftest.in" >"conftest.tmp"
4951 mv "conftest.tmp" "conftest.in"
4952 cp "conftest.in" "conftest.nl"
4953 $as_echo 'EGREP' >> "conftest.nl"
4954 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4955 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4956 as_fn_arith $ac_count + 1 && ac_count=$as_val
4957 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4958 # Best one so far, save it but keep looking for a better one
4959 ac_cv_path_EGREP="$ac_path_EGREP"
4960 ac_path_EGREP_max=$ac_count
4962 # 10*(2^10) chars as input seems more than enough
4963 test $ac_count -gt 10 && break
4964 done
4965 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4966 esac
4968 $ac_path_EGREP_found && break 3
4969 done
4970 done
4971 done
4972 IFS=$as_save_IFS
4973 if test -z "$ac_cv_path_EGREP"; then
4974 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4976 else
4977 ac_cv_path_EGREP=$EGREP
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4983 $as_echo "$ac_cv_path_EGREP" >&6; }
4984 EGREP="$ac_cv_path_EGREP"
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4988 $as_echo_n "checking for fgrep... " >&6; }
4989 if test "${ac_cv_path_FGREP+set}" = set; then :
4990 $as_echo_n "(cached) " >&6
4991 else
4992 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4993 then ac_cv_path_FGREP="$GREP -F"
4994 else
4995 if test -z "$FGREP"; then
4996 ac_path_FGREP_found=false
4997 # Loop through the user's path and test for each of PROGNAME-LIST
4998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4999 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5001 IFS=$as_save_IFS
5002 test -z "$as_dir" && as_dir=.
5003 for ac_prog in fgrep; do
5004 for ac_exec_ext in '' $ac_executable_extensions; do
5005 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5006 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5007 # Check for GNU ac_path_FGREP and select it if it is found.
5008 # Check for GNU $ac_path_FGREP
5009 case `"$ac_path_FGREP" --version 2>&1` in
5010 *GNU*)
5011 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5013 ac_count=0
5014 $as_echo_n 0123456789 >"conftest.in"
5015 while :
5017 cat "conftest.in" "conftest.in" >"conftest.tmp"
5018 mv "conftest.tmp" "conftest.in"
5019 cp "conftest.in" "conftest.nl"
5020 $as_echo 'FGREP' >> "conftest.nl"
5021 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5022 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5023 as_fn_arith $ac_count + 1 && ac_count=$as_val
5024 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5025 # Best one so far, save it but keep looking for a better one
5026 ac_cv_path_FGREP="$ac_path_FGREP"
5027 ac_path_FGREP_max=$ac_count
5029 # 10*(2^10) chars as input seems more than enough
5030 test $ac_count -gt 10 && break
5031 done
5032 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5033 esac
5035 $ac_path_FGREP_found && break 3
5036 done
5037 done
5038 done
5039 IFS=$as_save_IFS
5040 if test -z "$ac_cv_path_FGREP"; then
5041 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5043 else
5044 ac_cv_path_FGREP=$FGREP
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5050 $as_echo "$ac_cv_path_FGREP" >&6; }
5051 FGREP="$ac_cv_path_FGREP"
5054 test -z "$GREP" && GREP=grep
5074 # Check whether --with-gnu-ld was given.
5075 if test "${with_gnu_ld+set}" = set; then :
5076 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5077 else
5078 with_gnu_ld=no
5081 ac_prog=ld
5082 if test "$GCC" = yes; then
5083 # Check if gcc -print-prog-name=ld gives a path.
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5085 $as_echo_n "checking for ld used by $CC... " >&6; }
5086 case $host in
5087 *-*-mingw*)
5088 # gcc leaves a trailing carriage return which upsets mingw
5089 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5091 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5092 esac
5093 case $ac_prog in
5094 # Accept absolute paths.
5095 [\\/]* | ?:[\\/]*)
5096 re_direlt='/[^/][^/]*/\.\./'
5097 # Canonicalize the pathname of ld
5098 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5099 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5100 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5101 done
5102 test -z "$LD" && LD="$ac_prog"
5105 # If it fails, then pretend we aren't using GCC.
5106 ac_prog=ld
5109 # If it is relative, then search for the first ld in PATH.
5110 with_gnu_ld=unknown
5112 esac
5113 elif test "$with_gnu_ld" = yes; then
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5115 $as_echo_n "checking for GNU ld... " >&6; }
5116 else
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5118 $as_echo_n "checking for non-GNU ld... " >&6; }
5120 if test "${lt_cv_path_LD+set}" = set; then :
5121 $as_echo_n "(cached) " >&6
5122 else
5123 if test -z "$LD"; then
5124 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5125 for ac_dir in $PATH; do
5126 IFS="$lt_save_ifs"
5127 test -z "$ac_dir" && ac_dir=.
5128 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5129 lt_cv_path_LD="$ac_dir/$ac_prog"
5130 # Check to see if the program is GNU ld. I'd rather use --version,
5131 # but apparently some variants of GNU ld only accept -v.
5132 # Break only if it was the GNU/non-GNU ld that we prefer.
5133 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5134 *GNU* | *'with BFD'*)
5135 test "$with_gnu_ld" != no && break
5138 test "$with_gnu_ld" != yes && break
5140 esac
5142 done
5143 IFS="$lt_save_ifs"
5144 else
5145 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5149 LD="$lt_cv_path_LD"
5150 if test -n "$LD"; then
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5152 $as_echo "$LD" >&6; }
5153 else
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5155 $as_echo "no" >&6; }
5157 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5159 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5160 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5161 $as_echo_n "(cached) " >&6
5162 else
5163 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5164 case `$LD -v 2>&1 </dev/null` in
5165 *GNU* | *'with BFD'*)
5166 lt_cv_prog_gnu_ld=yes
5169 lt_cv_prog_gnu_ld=no
5171 esac
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5174 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5175 with_gnu_ld=$lt_cv_prog_gnu_ld
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5186 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5187 if test "${lt_cv_path_NM+set}" = set; then :
5188 $as_echo_n "(cached) " >&6
5189 else
5190 if test -n "$NM"; then
5191 # Let the user override the test.
5192 lt_cv_path_NM="$NM"
5193 else
5194 lt_nm_to_check="${ac_tool_prefix}nm"
5195 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5196 lt_nm_to_check="$lt_nm_to_check nm"
5198 for lt_tmp_nm in $lt_nm_to_check; do
5199 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5200 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5201 IFS="$lt_save_ifs"
5202 test -z "$ac_dir" && ac_dir=.
5203 tmp_nm="$ac_dir/$lt_tmp_nm"
5204 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5205 # Check to see if the nm accepts a BSD-compat flag.
5206 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5207 # nm: unknown option "B" ignored
5208 # Tru64's nm complains that /dev/null is an invalid object file
5209 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5210 */dev/null* | *'Invalid file or object type'*)
5211 lt_cv_path_NM="$tmp_nm -B"
5212 break
5215 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5216 */dev/null*)
5217 lt_cv_path_NM="$tmp_nm -p"
5218 break
5221 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5222 continue # so that we can try to find one that supports BSD flags
5224 esac
5226 esac
5228 done
5229 IFS="$lt_save_ifs"
5230 done
5231 : ${lt_cv_path_NM=no}
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5235 $as_echo "$lt_cv_path_NM" >&6; }
5236 if test "$lt_cv_path_NM" != "no"; then
5237 NM="$lt_cv_path_NM"
5238 else
5239 # Didn't find any BSD compatible name lister, look for dumpbin.
5240 if test -n "$DUMPBIN"; then :
5241 # Let the user override the test.
5242 else
5243 if test -n "$ac_tool_prefix"; then
5244 for ac_prog in dumpbin "link -dump"
5246 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5247 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5249 $as_echo_n "checking for $ac_word... " >&6; }
5250 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5251 $as_echo_n "(cached) " >&6
5252 else
5253 if test -n "$DUMPBIN"; then
5254 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5255 else
5256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5257 for as_dir in $PATH
5259 IFS=$as_save_IFS
5260 test -z "$as_dir" && as_dir=.
5261 for ac_exec_ext in '' $ac_executable_extensions; do
5262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5263 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5265 break 2
5267 done
5268 done
5269 IFS=$as_save_IFS
5273 DUMPBIN=$ac_cv_prog_DUMPBIN
5274 if test -n "$DUMPBIN"; then
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5276 $as_echo "$DUMPBIN" >&6; }
5277 else
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5279 $as_echo "no" >&6; }
5283 test -n "$DUMPBIN" && break
5284 done
5286 if test -z "$DUMPBIN"; then
5287 ac_ct_DUMPBIN=$DUMPBIN
5288 for ac_prog in dumpbin "link -dump"
5290 # Extract the first word of "$ac_prog", so it can be a program name with args.
5291 set dummy $ac_prog; ac_word=$2
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5293 $as_echo_n "checking for $ac_word... " >&6; }
5294 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5295 $as_echo_n "(cached) " >&6
5296 else
5297 if test -n "$ac_ct_DUMPBIN"; then
5298 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5299 else
5300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5301 for as_dir in $PATH
5303 IFS=$as_save_IFS
5304 test -z "$as_dir" && as_dir=.
5305 for ac_exec_ext in '' $ac_executable_extensions; do
5306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5307 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5309 break 2
5311 done
5312 done
5313 IFS=$as_save_IFS
5317 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5318 if test -n "$ac_ct_DUMPBIN"; then
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5320 $as_echo "$ac_ct_DUMPBIN" >&6; }
5321 else
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5323 $as_echo "no" >&6; }
5327 test -n "$ac_ct_DUMPBIN" && break
5328 done
5330 if test "x$ac_ct_DUMPBIN" = x; then
5331 DUMPBIN=":"
5332 else
5333 case $cross_compiling:$ac_tool_warned in
5334 yes:)
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5336 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5337 ac_tool_warned=yes ;;
5338 esac
5339 DUMPBIN=$ac_ct_DUMPBIN
5343 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5344 *COFF*)
5345 DUMPBIN="$DUMPBIN -symbols"
5348 DUMPBIN=:
5350 esac
5353 if test "$DUMPBIN" != ":"; then
5354 NM="$DUMPBIN"
5357 test -z "$NM" && NM=nm
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5365 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5366 if test "${lt_cv_nm_interface+set}" = set; then :
5367 $as_echo_n "(cached) " >&6
5368 else
5369 lt_cv_nm_interface="BSD nm"
5370 echo "int some_variable = 0;" > conftest.$ac_ext
5371 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5372 (eval "$ac_compile" 2>conftest.err)
5373 cat conftest.err >&5
5374 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5375 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5376 cat conftest.err >&5
5377 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5378 cat conftest.out >&5
5379 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5380 lt_cv_nm_interface="MS dumpbin"
5382 rm -f conftest*
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5385 $as_echo "$lt_cv_nm_interface" >&6; }
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5388 $as_echo_n "checking whether ln -s works... " >&6; }
5389 LN_S=$as_ln_s
5390 if test "$LN_S" = "ln -s"; then
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5392 $as_echo "yes" >&6; }
5393 else
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5395 $as_echo "no, using $LN_S" >&6; }
5398 # find the maximum length of command line arguments
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5400 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5401 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5402 $as_echo_n "(cached) " >&6
5403 else
5405 teststring="ABCD"
5407 case $build_os in
5408 msdosdjgpp*)
5409 # On DJGPP, this test can blow up pretty badly due to problems in libc
5410 # (any single argument exceeding 2000 bytes causes a buffer overrun
5411 # during glob expansion). Even if it were fixed, the result of this
5412 # check would be larger than it should be.
5413 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5416 gnu*)
5417 # Under GNU Hurd, this test is not required because there is
5418 # no limit to the length of command line arguments.
5419 # Libtool will interpret -1 as no limit whatsoever
5420 lt_cv_sys_max_cmd_len=-1;
5423 cygwin* | mingw* | cegcc*)
5424 # On Win9x/ME, this test blows up -- it succeeds, but takes
5425 # about 5 minutes as the teststring grows exponentially.
5426 # Worse, since 9x/ME are not pre-emptively multitasking,
5427 # you end up with a "frozen" computer, even though with patience
5428 # the test eventually succeeds (with a max line length of 256k).
5429 # Instead, let's just punt: use the minimum linelength reported by
5430 # all of the supported platforms: 8192 (on NT/2K/XP).
5431 lt_cv_sys_max_cmd_len=8192;
5434 mint*)
5435 # On MiNT this can take a long time and run out of memory.
5436 lt_cv_sys_max_cmd_len=8192;
5439 amigaos*)
5440 # On AmigaOS with pdksh, this test takes hours, literally.
5441 # So we just punt and use a minimum line length of 8192.
5442 lt_cv_sys_max_cmd_len=8192;
5445 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5446 # This has been around since 386BSD, at least. Likely further.
5447 if test -x /sbin/sysctl; then
5448 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5449 elif test -x /usr/sbin/sysctl; then
5450 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5451 else
5452 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5454 # And add a safety zone
5455 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5456 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5459 interix*)
5460 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5461 lt_cv_sys_max_cmd_len=196608
5464 osf*)
5465 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5466 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5467 # nice to cause kernel panics so lets avoid the loop below.
5468 # First set a reasonable default.
5469 lt_cv_sys_max_cmd_len=16384
5471 if test -x /sbin/sysconfig; then
5472 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5473 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5474 esac
5477 sco3.2v5*)
5478 lt_cv_sys_max_cmd_len=102400
5480 sysv5* | sco5v6* | sysv4.2uw2*)
5481 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5482 if test -n "$kargmax"; then
5483 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5484 else
5485 lt_cv_sys_max_cmd_len=32768
5489 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5490 if test -n "$lt_cv_sys_max_cmd_len"; then
5491 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5492 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5493 else
5494 # Make teststring a little bigger before we do anything with it.
5495 # a 1K string should be a reasonable start.
5496 for i in 1 2 3 4 5 6 7 8 ; do
5497 teststring=$teststring$teststring
5498 done
5499 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5500 # If test is not a shell built-in, we'll probably end up computing a
5501 # maximum length that is only half of the actual maximum length, but
5502 # we can't tell.
5503 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5504 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5505 test $i != 17 # 1/2 MB should be enough
5507 i=`expr $i + 1`
5508 teststring=$teststring$teststring
5509 done
5510 # Only check the string length outside the loop.
5511 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5512 teststring=
5513 # Add a significant safety factor because C++ compilers can tack on
5514 # massive amounts of additional arguments before passing them to the
5515 # linker. It appears as though 1/2 is a usable value.
5516 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5519 esac
5523 if test -n $lt_cv_sys_max_cmd_len ; then
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5525 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5526 else
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5528 $as_echo "none" >&6; }
5530 max_cmd_len=$lt_cv_sys_max_cmd_len
5537 : ${CP="cp -f"}
5538 : ${MV="mv -f"}
5539 : ${RM="rm -f"}
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5542 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5543 # Try some XSI features
5544 xsi_shell=no
5545 ( _lt_dummy="a/b/c"
5546 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5547 = c,a/b,, \
5548 && eval 'test $(( 1 + 1 )) -eq 2 \
5549 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5550 && xsi_shell=yes
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5552 $as_echo "$xsi_shell" >&6; }
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5556 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5557 lt_shell_append=no
5558 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5559 >/dev/null 2>&1 \
5560 && lt_shell_append=yes
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5562 $as_echo "$lt_shell_append" >&6; }
5565 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5566 lt_unset=unset
5567 else
5568 lt_unset=false
5575 # test EBCDIC or ASCII
5576 case `echo X|tr X '\101'` in
5577 A) # ASCII based system
5578 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5579 lt_SP2NL='tr \040 \012'
5580 lt_NL2SP='tr \015\012 \040\040'
5582 *) # EBCDIC based system
5583 lt_SP2NL='tr \100 \n'
5584 lt_NL2SP='tr \r\n \100\100'
5586 esac
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5597 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5598 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5599 $as_echo_n "(cached) " >&6
5600 else
5601 lt_cv_ld_reload_flag='-r'
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5604 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5605 reload_flag=$lt_cv_ld_reload_flag
5606 case $reload_flag in
5607 "" | " "*) ;;
5608 *) reload_flag=" $reload_flag" ;;
5609 esac
5610 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5611 case $host_os in
5612 darwin*)
5613 if test "$GCC" = yes; then
5614 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5615 else
5616 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5619 esac
5629 if test -n "$ac_tool_prefix"; then
5630 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5631 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5633 $as_echo_n "checking for $ac_word... " >&6; }
5634 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5635 $as_echo_n "(cached) " >&6
5636 else
5637 if test -n "$OBJDUMP"; then
5638 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5639 else
5640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5641 for as_dir in $PATH
5643 IFS=$as_save_IFS
5644 test -z "$as_dir" && as_dir=.
5645 for ac_exec_ext in '' $ac_executable_extensions; do
5646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5647 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5649 break 2
5651 done
5652 done
5653 IFS=$as_save_IFS
5657 OBJDUMP=$ac_cv_prog_OBJDUMP
5658 if test -n "$OBJDUMP"; then
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5660 $as_echo "$OBJDUMP" >&6; }
5661 else
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5663 $as_echo "no" >&6; }
5668 if test -z "$ac_cv_prog_OBJDUMP"; then
5669 ac_ct_OBJDUMP=$OBJDUMP
5670 # Extract the first word of "objdump", so it can be a program name with args.
5671 set dummy objdump; ac_word=$2
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5673 $as_echo_n "checking for $ac_word... " >&6; }
5674 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5675 $as_echo_n "(cached) " >&6
5676 else
5677 if test -n "$ac_ct_OBJDUMP"; then
5678 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5679 else
5680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5681 for as_dir in $PATH
5683 IFS=$as_save_IFS
5684 test -z "$as_dir" && as_dir=.
5685 for ac_exec_ext in '' $ac_executable_extensions; do
5686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5687 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5689 break 2
5691 done
5692 done
5693 IFS=$as_save_IFS
5697 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5698 if test -n "$ac_ct_OBJDUMP"; then
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5700 $as_echo "$ac_ct_OBJDUMP" >&6; }
5701 else
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5703 $as_echo "no" >&6; }
5706 if test "x$ac_ct_OBJDUMP" = x; then
5707 OBJDUMP="false"
5708 else
5709 case $cross_compiling:$ac_tool_warned in
5710 yes:)
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5712 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5713 ac_tool_warned=yes ;;
5714 esac
5715 OBJDUMP=$ac_ct_OBJDUMP
5717 else
5718 OBJDUMP="$ac_cv_prog_OBJDUMP"
5721 test -z "$OBJDUMP" && OBJDUMP=objdump
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5732 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5733 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5734 $as_echo_n "(cached) " >&6
5735 else
5736 lt_cv_file_magic_cmd='$MAGIC_CMD'
5737 lt_cv_file_magic_test_file=
5738 lt_cv_deplibs_check_method='unknown'
5739 # Need to set the preceding variable on all platforms that support
5740 # interlibrary dependencies.
5741 # 'none' -- dependencies not supported.
5742 # `unknown' -- same as none, but documents that we really don't know.
5743 # 'pass_all' -- all dependencies passed with no checks.
5744 # 'test_compile' -- check by making test program.
5745 # 'file_magic [[regex]]' -- check by looking for files in library path
5746 # which responds to the $file_magic_cmd with a given extended regex.
5747 # If you have `file' or equivalent on your system and you're not sure
5748 # whether `pass_all' will *always* work, you probably want this one.
5750 case $host_os in
5751 aix[4-9]*)
5752 lt_cv_deplibs_check_method=pass_all
5755 beos*)
5756 lt_cv_deplibs_check_method=pass_all
5759 bsdi[45]*)
5760 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5761 lt_cv_file_magic_cmd='/usr/bin/file -L'
5762 lt_cv_file_magic_test_file=/shlib/libc.so
5765 cygwin*)
5766 # func_win32_libid is a shell function defined in ltmain.sh
5767 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5768 lt_cv_file_magic_cmd='func_win32_libid'
5771 mingw* | pw32*)
5772 # Base MSYS/MinGW do not provide the 'file' command needed by
5773 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5774 # unless we find 'file', for example because we are cross-compiling.
5775 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5776 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5777 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5778 lt_cv_file_magic_cmd='func_win32_libid'
5779 else
5780 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5781 lt_cv_file_magic_cmd='$OBJDUMP -f'
5785 cegcc*)
5786 # use the weaker test based on 'objdump'. See mingw*.
5787 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5788 lt_cv_file_magic_cmd='$OBJDUMP -f'
5791 darwin* | rhapsody*)
5792 lt_cv_deplibs_check_method=pass_all
5795 freebsd* | dragonfly*)
5796 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5797 case $host_cpu in
5798 i*86 )
5799 # Not sure whether the presence of OpenBSD here was a mistake.
5800 # Let's accept both of them until this is cleared up.
5801 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5802 lt_cv_file_magic_cmd=/usr/bin/file
5803 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5805 esac
5806 else
5807 lt_cv_deplibs_check_method=pass_all
5811 gnu*)
5812 lt_cv_deplibs_check_method=pass_all
5815 haiku*)
5816 lt_cv_deplibs_check_method=pass_all
5819 hpux10.20* | hpux11*)
5820 lt_cv_file_magic_cmd=/usr/bin/file
5821 case $host_cpu in
5822 ia64*)
5823 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5824 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5826 hppa*64*)
5827 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]'
5828 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5831 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5832 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5834 esac
5837 interix[3-9]*)
5838 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5839 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5842 irix5* | irix6* | nonstopux*)
5843 case $LD in
5844 *-32|*"-32 ") libmagic=32-bit;;
5845 *-n32|*"-n32 ") libmagic=N32;;
5846 *-64|*"-64 ") libmagic=64-bit;;
5847 *) libmagic=never-match;;
5848 esac
5849 lt_cv_deplibs_check_method=pass_all
5852 # This must be Linux ELF.
5853 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5854 lt_cv_deplibs_check_method=pass_all
5857 netbsd*)
5858 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5859 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5860 else
5861 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5865 newos6*)
5866 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5867 lt_cv_file_magic_cmd=/usr/bin/file
5868 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5871 *nto* | *qnx*)
5872 lt_cv_deplibs_check_method=pass_all
5875 openbsd*)
5876 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5877 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5878 else
5879 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5883 osf3* | osf4* | osf5*)
5884 lt_cv_deplibs_check_method=pass_all
5887 rdos*)
5888 lt_cv_deplibs_check_method=pass_all
5891 solaris*)
5892 lt_cv_deplibs_check_method=pass_all
5895 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5896 lt_cv_deplibs_check_method=pass_all
5899 sysv4 | sysv4.3*)
5900 case $host_vendor in
5901 motorola)
5902 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]'
5903 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5905 ncr)
5906 lt_cv_deplibs_check_method=pass_all
5908 sequent)
5909 lt_cv_file_magic_cmd='/bin/file'
5910 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5912 sni)
5913 lt_cv_file_magic_cmd='/bin/file'
5914 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5915 lt_cv_file_magic_test_file=/lib/libc.so
5917 siemens)
5918 lt_cv_deplibs_check_method=pass_all
5921 lt_cv_deplibs_check_method=pass_all
5923 esac
5926 tpf*)
5927 lt_cv_deplibs_check_method=pass_all
5929 esac
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5933 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5934 file_magic_cmd=$lt_cv_file_magic_cmd
5935 deplibs_check_method=$lt_cv_deplibs_check_method
5936 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5949 if test -n "$ac_tool_prefix"; then
5950 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5951 set dummy ${ac_tool_prefix}ar; ac_word=$2
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5953 $as_echo_n "checking for $ac_word... " >&6; }
5954 if test "${ac_cv_prog_AR+set}" = set; then :
5955 $as_echo_n "(cached) " >&6
5956 else
5957 if test -n "$AR"; then
5958 ac_cv_prog_AR="$AR" # Let the user override the test.
5959 else
5960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5961 for as_dir in $PATH
5963 IFS=$as_save_IFS
5964 test -z "$as_dir" && as_dir=.
5965 for ac_exec_ext in '' $ac_executable_extensions; do
5966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5967 ac_cv_prog_AR="${ac_tool_prefix}ar"
5968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5969 break 2
5971 done
5972 done
5973 IFS=$as_save_IFS
5977 AR=$ac_cv_prog_AR
5978 if test -n "$AR"; then
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5980 $as_echo "$AR" >&6; }
5981 else
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5983 $as_echo "no" >&6; }
5988 if test -z "$ac_cv_prog_AR"; then
5989 ac_ct_AR=$AR
5990 # Extract the first word of "ar", so it can be a program name with args.
5991 set dummy ar; ac_word=$2
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5993 $as_echo_n "checking for $ac_word... " >&6; }
5994 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5995 $as_echo_n "(cached) " >&6
5996 else
5997 if test -n "$ac_ct_AR"; then
5998 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5999 else
6000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6001 for as_dir in $PATH
6003 IFS=$as_save_IFS
6004 test -z "$as_dir" && as_dir=.
6005 for ac_exec_ext in '' $ac_executable_extensions; do
6006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6007 ac_cv_prog_ac_ct_AR="ar"
6008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6009 break 2
6011 done
6012 done
6013 IFS=$as_save_IFS
6017 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6018 if test -n "$ac_ct_AR"; then
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6020 $as_echo "$ac_ct_AR" >&6; }
6021 else
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6023 $as_echo "no" >&6; }
6026 if test "x$ac_ct_AR" = x; then
6027 AR="false"
6028 else
6029 case $cross_compiling:$ac_tool_warned in
6030 yes:)
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6032 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6033 ac_tool_warned=yes ;;
6034 esac
6035 AR=$ac_ct_AR
6037 else
6038 AR="$ac_cv_prog_AR"
6041 test -z "$AR" && AR=ar
6042 test -z "$AR_FLAGS" && AR_FLAGS=cru
6054 if test -n "$ac_tool_prefix"; then
6055 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6056 set dummy ${ac_tool_prefix}strip; ac_word=$2
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6058 $as_echo_n "checking for $ac_word... " >&6; }
6059 if test "${ac_cv_prog_STRIP+set}" = set; then :
6060 $as_echo_n "(cached) " >&6
6061 else
6062 if test -n "$STRIP"; then
6063 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6064 else
6065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6066 for as_dir in $PATH
6068 IFS=$as_save_IFS
6069 test -z "$as_dir" && as_dir=.
6070 for ac_exec_ext in '' $ac_executable_extensions; do
6071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6072 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6074 break 2
6076 done
6077 done
6078 IFS=$as_save_IFS
6082 STRIP=$ac_cv_prog_STRIP
6083 if test -n "$STRIP"; then
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6085 $as_echo "$STRIP" >&6; }
6086 else
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6088 $as_echo "no" >&6; }
6093 if test -z "$ac_cv_prog_STRIP"; then
6094 ac_ct_STRIP=$STRIP
6095 # Extract the first word of "strip", so it can be a program name with args.
6096 set dummy strip; ac_word=$2
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6098 $as_echo_n "checking for $ac_word... " >&6; }
6099 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6100 $as_echo_n "(cached) " >&6
6101 else
6102 if test -n "$ac_ct_STRIP"; then
6103 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6104 else
6105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6106 for as_dir in $PATH
6108 IFS=$as_save_IFS
6109 test -z "$as_dir" && as_dir=.
6110 for ac_exec_ext in '' $ac_executable_extensions; do
6111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6112 ac_cv_prog_ac_ct_STRIP="strip"
6113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6114 break 2
6116 done
6117 done
6118 IFS=$as_save_IFS
6122 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6123 if test -n "$ac_ct_STRIP"; then
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6125 $as_echo "$ac_ct_STRIP" >&6; }
6126 else
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6128 $as_echo "no" >&6; }
6131 if test "x$ac_ct_STRIP" = x; then
6132 STRIP=":"
6133 else
6134 case $cross_compiling:$ac_tool_warned in
6135 yes:)
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6137 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6138 ac_tool_warned=yes ;;
6139 esac
6140 STRIP=$ac_ct_STRIP
6142 else
6143 STRIP="$ac_cv_prog_STRIP"
6146 test -z "$STRIP" && STRIP=:
6153 if test -n "$ac_tool_prefix"; then
6154 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6155 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6157 $as_echo_n "checking for $ac_word... " >&6; }
6158 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6159 $as_echo_n "(cached) " >&6
6160 else
6161 if test -n "$RANLIB"; then
6162 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6163 else
6164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6165 for as_dir in $PATH
6167 IFS=$as_save_IFS
6168 test -z "$as_dir" && as_dir=.
6169 for ac_exec_ext in '' $ac_executable_extensions; do
6170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6171 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6173 break 2
6175 done
6176 done
6177 IFS=$as_save_IFS
6181 RANLIB=$ac_cv_prog_RANLIB
6182 if test -n "$RANLIB"; then
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6184 $as_echo "$RANLIB" >&6; }
6185 else
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6187 $as_echo "no" >&6; }
6192 if test -z "$ac_cv_prog_RANLIB"; then
6193 ac_ct_RANLIB=$RANLIB
6194 # Extract the first word of "ranlib", so it can be a program name with args.
6195 set dummy ranlib; ac_word=$2
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6197 $as_echo_n "checking for $ac_word... " >&6; }
6198 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6199 $as_echo_n "(cached) " >&6
6200 else
6201 if test -n "$ac_ct_RANLIB"; then
6202 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6203 else
6204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6205 for as_dir in $PATH
6207 IFS=$as_save_IFS
6208 test -z "$as_dir" && as_dir=.
6209 for ac_exec_ext in '' $ac_executable_extensions; do
6210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6211 ac_cv_prog_ac_ct_RANLIB="ranlib"
6212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6213 break 2
6215 done
6216 done
6217 IFS=$as_save_IFS
6221 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6222 if test -n "$ac_ct_RANLIB"; then
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6224 $as_echo "$ac_ct_RANLIB" >&6; }
6225 else
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6227 $as_echo "no" >&6; }
6230 if test "x$ac_ct_RANLIB" = x; then
6231 RANLIB=":"
6232 else
6233 case $cross_compiling:$ac_tool_warned in
6234 yes:)
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6236 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6237 ac_tool_warned=yes ;;
6238 esac
6239 RANLIB=$ac_ct_RANLIB
6241 else
6242 RANLIB="$ac_cv_prog_RANLIB"
6245 test -z "$RANLIB" && RANLIB=:
6252 # Determine commands to create old-style static archives.
6253 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6254 old_postinstall_cmds='chmod 644 $oldlib'
6255 old_postuninstall_cmds=
6257 if test -n "$RANLIB"; then
6258 case $host_os in
6259 openbsd*)
6260 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6263 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6265 esac
6266 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6269 case $host_os in
6270 darwin*)
6271 lock_old_archive_extraction=yes ;;
6273 lock_old_archive_extraction=no ;;
6274 esac
6314 # If no C compiler was specified, use CC.
6315 LTCC=${LTCC-"$CC"}
6317 # If no C compiler flags were specified, use CFLAGS.
6318 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6320 # Allow CC to be a program name with arguments.
6321 compiler=$CC
6324 # Check for command to grab the raw symbol name followed by C symbol from nm.
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6326 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6327 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6328 $as_echo_n "(cached) " >&6
6329 else
6331 # These are sane defaults that work on at least a few old systems.
6332 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6334 # Character class describing NM global symbol codes.
6335 symcode='[BCDEGRST]'
6337 # Regexp to match symbols that can be accessed directly from C.
6338 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6340 # Define system-specific variables.
6341 case $host_os in
6342 aix*)
6343 symcode='[BCDT]'
6345 cygwin* | mingw* | pw32* | cegcc*)
6346 symcode='[ABCDGISTW]'
6348 hpux*)
6349 if test "$host_cpu" = ia64; then
6350 symcode='[ABCDEGRST]'
6353 irix* | nonstopux*)
6354 symcode='[BCDEGRST]'
6356 osf*)
6357 symcode='[BCDEGQRST]'
6359 solaris*)
6360 symcode='[BDRT]'
6362 sco3.2v5*)
6363 symcode='[DT]'
6365 sysv4.2uw2*)
6366 symcode='[DT]'
6368 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6369 symcode='[ABDT]'
6371 sysv4)
6372 symcode='[DFNSTU]'
6374 esac
6376 # If we're using GNU nm, then use its standard symbol codes.
6377 case `$NM -V 2>&1` in
6378 *GNU* | *'with BFD'*)
6379 symcode='[ABCDGIRSTW]' ;;
6380 esac
6382 # Transform an extracted symbol line into a proper C declaration.
6383 # Some systems (esp. on ia64) link data and code symbols differently,
6384 # so use this general approach.
6385 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6387 # Transform an extracted symbol line into symbol name and symbol address
6388 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6389 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'"
6391 # Handle CRLF in mingw tool chain
6392 opt_cr=
6393 case $build_os in
6394 mingw*)
6395 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6397 esac
6399 # Try without a prefix underscore, then with it.
6400 for ac_symprfx in "" "_"; do
6402 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6403 symxfrm="\\1 $ac_symprfx\\2 \\2"
6405 # Write the raw and C identifiers.
6406 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6407 # Fake it for dumpbin and say T for any non-static function
6408 # and D for any global variable.
6409 # Also find C++ and __fastcall symbols from MSVC++,
6410 # which start with @ or ?.
6411 lt_cv_sys_global_symbol_pipe="$AWK '"\
6412 " {last_section=section; section=\$ 3};"\
6413 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6414 " \$ 0!~/External *\|/{next};"\
6415 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6416 " {if(hide[section]) next};"\
6417 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6418 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6419 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6420 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6421 " ' prfx=^$ac_symprfx"
6422 else
6423 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6426 # Check to see that the pipe works correctly.
6427 pipe_works=no
6429 rm -f conftest*
6430 cat > conftest.$ac_ext <<_LT_EOF
6431 #ifdef __cplusplus
6432 extern "C" {
6433 #endif
6434 char nm_test_var;
6435 void nm_test_func(void);
6436 void nm_test_func(void){}
6437 #ifdef __cplusplus
6439 #endif
6440 int main(){nm_test_var='a';nm_test_func();return(0);}
6441 _LT_EOF
6443 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6444 (eval $ac_compile) 2>&5
6445 ac_status=$?
6446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6447 test $ac_status = 0; }; then
6448 # Now try to grab the symbols.
6449 nlist=conftest.nm
6450 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6451 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6452 ac_status=$?
6453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6454 test $ac_status = 0; } && test -s "$nlist"; then
6455 # Try sorting and uniquifying the output.
6456 if sort "$nlist" | uniq > "$nlist"T; then
6457 mv -f "$nlist"T "$nlist"
6458 else
6459 rm -f "$nlist"T
6462 # Make sure that we snagged all the symbols we need.
6463 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6464 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6465 cat <<_LT_EOF > conftest.$ac_ext
6466 #ifdef __cplusplus
6467 extern "C" {
6468 #endif
6470 _LT_EOF
6471 # Now generate the symbol file.
6472 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6474 cat <<_LT_EOF >> conftest.$ac_ext
6476 /* The mapping between symbol names and symbols. */
6477 const struct {
6478 const char *name;
6479 void *address;
6481 lt__PROGRAM__LTX_preloaded_symbols[] =
6483 { "@PROGRAM@", (void *) 0 },
6484 _LT_EOF
6485 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6486 cat <<\_LT_EOF >> conftest.$ac_ext
6487 {0, (void *) 0}
6490 /* This works around a problem in FreeBSD linker */
6491 #ifdef FREEBSD_WORKAROUND
6492 static const void *lt_preloaded_setup() {
6493 return lt__PROGRAM__LTX_preloaded_symbols;
6495 #endif
6497 #ifdef __cplusplus
6499 #endif
6500 _LT_EOF
6501 # Now try linking the two files.
6502 mv conftest.$ac_objext conftstm.$ac_objext
6503 lt_save_LIBS="$LIBS"
6504 lt_save_CFLAGS="$CFLAGS"
6505 LIBS="conftstm.$ac_objext"
6506 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6507 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6508 (eval $ac_link) 2>&5
6509 ac_status=$?
6510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6511 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6512 pipe_works=yes
6514 LIBS="$lt_save_LIBS"
6515 CFLAGS="$lt_save_CFLAGS"
6516 else
6517 echo "cannot find nm_test_func in $nlist" >&5
6519 else
6520 echo "cannot find nm_test_var in $nlist" >&5
6522 else
6523 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6525 else
6526 echo "$progname: failed program was:" >&5
6527 cat conftest.$ac_ext >&5
6529 rm -rf conftest* conftst*
6531 # Do not use the global_symbol_pipe unless it works.
6532 if test "$pipe_works" = yes; then
6533 break
6534 else
6535 lt_cv_sys_global_symbol_pipe=
6537 done
6541 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6542 lt_cv_sys_global_symbol_to_cdecl=
6544 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6546 $as_echo "failed" >&6; }
6547 else
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6549 $as_echo "ok" >&6; }
6574 # Check whether --enable-libtool-lock was given.
6575 if test "${enable_libtool_lock+set}" = set; then :
6576 enableval=$enable_libtool_lock;
6579 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6581 # Some flags need to be propagated to the compiler or linker for good
6582 # libtool support.
6583 case $host in
6584 ia64-*-hpux*)
6585 # Find out which ABI we are using.
6586 echo 'int i;' > conftest.$ac_ext
6587 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6588 (eval $ac_compile) 2>&5
6589 ac_status=$?
6590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6591 test $ac_status = 0; }; then
6592 case `/usr/bin/file conftest.$ac_objext` in
6593 *ELF-32*)
6594 HPUX_IA64_MODE="32"
6596 *ELF-64*)
6597 HPUX_IA64_MODE="64"
6599 esac
6601 rm -rf conftest*
6603 *-*-irix6*)
6604 # Find out which ABI we are using.
6605 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6606 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6607 (eval $ac_compile) 2>&5
6608 ac_status=$?
6609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6610 test $ac_status = 0; }; then
6611 if test "$lt_cv_prog_gnu_ld" = yes; then
6612 case `/usr/bin/file conftest.$ac_objext` in
6613 *32-bit*)
6614 LD="${LD-ld} -melf32bsmip"
6616 *N32*)
6617 LD="${LD-ld} -melf32bmipn32"
6619 *64-bit*)
6620 LD="${LD-ld} -melf64bmip"
6622 esac
6623 else
6624 case `/usr/bin/file conftest.$ac_objext` in
6625 *32-bit*)
6626 LD="${LD-ld} -32"
6628 *N32*)
6629 LD="${LD-ld} -n32"
6631 *64-bit*)
6632 LD="${LD-ld} -64"
6634 esac
6637 rm -rf conftest*
6640 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6641 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6642 # Find out which ABI we are using.
6643 echo 'int i;' > conftest.$ac_ext
6644 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6645 (eval $ac_compile) 2>&5
6646 ac_status=$?
6647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6648 test $ac_status = 0; }; then
6649 case `/usr/bin/file conftest.o` in
6650 *32-bit*)
6651 case $host in
6652 x86_64-*kfreebsd*-gnu)
6653 LD="${LD-ld} -m elf_i386_fbsd"
6655 x86_64-*linux*)
6656 case `/usr/bin/file conftest.o` in
6657 *x86-64*)
6658 LD="${LD-ld} -m elf32_x86_64"
6661 LD="${LD-ld} -m elf_i386"
6663 esac
6665 powerpc64le-*linux*)
6666 LD="${LD-ld} -m elf32lppclinux"
6668 powerpc64-*linux*)
6669 LD="${LD-ld} -m elf32ppclinux"
6671 s390x-*linux*)
6672 LD="${LD-ld} -m elf_s390"
6674 sparc64-*linux*)
6675 LD="${LD-ld} -m elf32_sparc"
6677 esac
6679 *64-bit*)
6680 case $host in
6681 x86_64-*kfreebsd*-gnu)
6682 LD="${LD-ld} -m elf_x86_64_fbsd"
6684 x86_64-*linux*)
6685 LD="${LD-ld} -m elf_x86_64"
6687 powerpcle-*linux*)
6688 LD="${LD-ld} -m elf64lppc"
6690 powerpc-*linux*)
6691 LD="${LD-ld} -m elf64ppc"
6693 s390*-*linux*|s390*-*tpf*)
6694 LD="${LD-ld} -m elf64_s390"
6696 sparc*-*linux*)
6697 LD="${LD-ld} -m elf64_sparc"
6699 esac
6701 esac
6703 rm -rf conftest*
6706 *-*-sco3.2v5*)
6707 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6708 SAVE_CFLAGS="$CFLAGS"
6709 CFLAGS="$CFLAGS -belf"
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6711 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6712 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6713 $as_echo_n "(cached) " >&6
6714 else
6715 ac_ext=c
6716 ac_cpp='$CPP $CPPFLAGS'
6717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6722 /* end confdefs.h. */
6725 main ()
6729 return 0;
6731 _ACEOF
6732 if ac_fn_c_try_link "$LINENO"; then :
6733 lt_cv_cc_needs_belf=yes
6734 else
6735 lt_cv_cc_needs_belf=no
6737 rm -f core conftest.err conftest.$ac_objext \
6738 conftest$ac_exeext conftest.$ac_ext
6739 ac_ext=c
6740 ac_cpp='$CPP $CPPFLAGS'
6741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6747 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6748 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6749 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6750 CFLAGS="$SAVE_CFLAGS"
6753 sparc*-*solaris*)
6754 # Find out which ABI we are using.
6755 echo 'int i;' > conftest.$ac_ext
6756 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6757 (eval $ac_compile) 2>&5
6758 ac_status=$?
6759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6760 test $ac_status = 0; }; then
6761 case `/usr/bin/file conftest.o` in
6762 *64-bit*)
6763 case $lt_cv_prog_gnu_ld in
6764 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6766 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6767 LD="${LD-ld} -64"
6770 esac
6772 esac
6774 rm -rf conftest*
6776 esac
6778 need_locks="$enable_libtool_lock"
6781 case $host_os in
6782 rhapsody* | darwin*)
6783 if test -n "$ac_tool_prefix"; then
6784 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6785 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6787 $as_echo_n "checking for $ac_word... " >&6; }
6788 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6789 $as_echo_n "(cached) " >&6
6790 else
6791 if test -n "$DSYMUTIL"; then
6792 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6793 else
6794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6795 for as_dir in $PATH
6797 IFS=$as_save_IFS
6798 test -z "$as_dir" && as_dir=.
6799 for ac_exec_ext in '' $ac_executable_extensions; do
6800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6801 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6803 break 2
6805 done
6806 done
6807 IFS=$as_save_IFS
6811 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6812 if test -n "$DSYMUTIL"; then
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6814 $as_echo "$DSYMUTIL" >&6; }
6815 else
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6817 $as_echo "no" >&6; }
6822 if test -z "$ac_cv_prog_DSYMUTIL"; then
6823 ac_ct_DSYMUTIL=$DSYMUTIL
6824 # Extract the first word of "dsymutil", so it can be a program name with args.
6825 set dummy dsymutil; ac_word=$2
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6827 $as_echo_n "checking for $ac_word... " >&6; }
6828 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6829 $as_echo_n "(cached) " >&6
6830 else
6831 if test -n "$ac_ct_DSYMUTIL"; then
6832 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6833 else
6834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6835 for as_dir in $PATH
6837 IFS=$as_save_IFS
6838 test -z "$as_dir" && as_dir=.
6839 for ac_exec_ext in '' $ac_executable_extensions; do
6840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6841 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6843 break 2
6845 done
6846 done
6847 IFS=$as_save_IFS
6851 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6852 if test -n "$ac_ct_DSYMUTIL"; then
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6854 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6855 else
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6857 $as_echo "no" >&6; }
6860 if test "x$ac_ct_DSYMUTIL" = x; then
6861 DSYMUTIL=":"
6862 else
6863 case $cross_compiling:$ac_tool_warned in
6864 yes:)
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6866 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6867 ac_tool_warned=yes ;;
6868 esac
6869 DSYMUTIL=$ac_ct_DSYMUTIL
6871 else
6872 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6875 if test -n "$ac_tool_prefix"; then
6876 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6877 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6879 $as_echo_n "checking for $ac_word... " >&6; }
6880 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6881 $as_echo_n "(cached) " >&6
6882 else
6883 if test -n "$NMEDIT"; then
6884 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6885 else
6886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6887 for as_dir in $PATH
6889 IFS=$as_save_IFS
6890 test -z "$as_dir" && as_dir=.
6891 for ac_exec_ext in '' $ac_executable_extensions; do
6892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6893 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6895 break 2
6897 done
6898 done
6899 IFS=$as_save_IFS
6903 NMEDIT=$ac_cv_prog_NMEDIT
6904 if test -n "$NMEDIT"; then
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6906 $as_echo "$NMEDIT" >&6; }
6907 else
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6909 $as_echo "no" >&6; }
6914 if test -z "$ac_cv_prog_NMEDIT"; then
6915 ac_ct_NMEDIT=$NMEDIT
6916 # Extract the first word of "nmedit", so it can be a program name with args.
6917 set dummy nmedit; ac_word=$2
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6919 $as_echo_n "checking for $ac_word... " >&6; }
6920 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6921 $as_echo_n "(cached) " >&6
6922 else
6923 if test -n "$ac_ct_NMEDIT"; then
6924 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6925 else
6926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6927 for as_dir in $PATH
6929 IFS=$as_save_IFS
6930 test -z "$as_dir" && as_dir=.
6931 for ac_exec_ext in '' $ac_executable_extensions; do
6932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6933 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6935 break 2
6937 done
6938 done
6939 IFS=$as_save_IFS
6943 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6944 if test -n "$ac_ct_NMEDIT"; then
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6946 $as_echo "$ac_ct_NMEDIT" >&6; }
6947 else
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6949 $as_echo "no" >&6; }
6952 if test "x$ac_ct_NMEDIT" = x; then
6953 NMEDIT=":"
6954 else
6955 case $cross_compiling:$ac_tool_warned in
6956 yes:)
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6958 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6959 ac_tool_warned=yes ;;
6960 esac
6961 NMEDIT=$ac_ct_NMEDIT
6963 else
6964 NMEDIT="$ac_cv_prog_NMEDIT"
6967 if test -n "$ac_tool_prefix"; then
6968 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6969 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6971 $as_echo_n "checking for $ac_word... " >&6; }
6972 if test "${ac_cv_prog_LIPO+set}" = set; then :
6973 $as_echo_n "(cached) " >&6
6974 else
6975 if test -n "$LIPO"; then
6976 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6977 else
6978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6979 for as_dir in $PATH
6981 IFS=$as_save_IFS
6982 test -z "$as_dir" && as_dir=.
6983 for ac_exec_ext in '' $ac_executable_extensions; do
6984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6985 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6987 break 2
6989 done
6990 done
6991 IFS=$as_save_IFS
6995 LIPO=$ac_cv_prog_LIPO
6996 if test -n "$LIPO"; then
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6998 $as_echo "$LIPO" >&6; }
6999 else
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7001 $as_echo "no" >&6; }
7006 if test -z "$ac_cv_prog_LIPO"; then
7007 ac_ct_LIPO=$LIPO
7008 # Extract the first word of "lipo", so it can be a program name with args.
7009 set dummy lipo; ac_word=$2
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7011 $as_echo_n "checking for $ac_word... " >&6; }
7012 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7013 $as_echo_n "(cached) " >&6
7014 else
7015 if test -n "$ac_ct_LIPO"; then
7016 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7017 else
7018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7019 for as_dir in $PATH
7021 IFS=$as_save_IFS
7022 test -z "$as_dir" && as_dir=.
7023 for ac_exec_ext in '' $ac_executable_extensions; do
7024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7025 ac_cv_prog_ac_ct_LIPO="lipo"
7026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7027 break 2
7029 done
7030 done
7031 IFS=$as_save_IFS
7035 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7036 if test -n "$ac_ct_LIPO"; then
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7038 $as_echo "$ac_ct_LIPO" >&6; }
7039 else
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7041 $as_echo "no" >&6; }
7044 if test "x$ac_ct_LIPO" = x; then
7045 LIPO=":"
7046 else
7047 case $cross_compiling:$ac_tool_warned in
7048 yes:)
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7050 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7051 ac_tool_warned=yes ;;
7052 esac
7053 LIPO=$ac_ct_LIPO
7055 else
7056 LIPO="$ac_cv_prog_LIPO"
7059 if test -n "$ac_tool_prefix"; then
7060 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7061 set dummy ${ac_tool_prefix}otool; ac_word=$2
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7063 $as_echo_n "checking for $ac_word... " >&6; }
7064 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7065 $as_echo_n "(cached) " >&6
7066 else
7067 if test -n "$OTOOL"; then
7068 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7069 else
7070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7071 for as_dir in $PATH
7073 IFS=$as_save_IFS
7074 test -z "$as_dir" && as_dir=.
7075 for ac_exec_ext in '' $ac_executable_extensions; do
7076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7077 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7079 break 2
7081 done
7082 done
7083 IFS=$as_save_IFS
7087 OTOOL=$ac_cv_prog_OTOOL
7088 if test -n "$OTOOL"; then
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7090 $as_echo "$OTOOL" >&6; }
7091 else
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7093 $as_echo "no" >&6; }
7098 if test -z "$ac_cv_prog_OTOOL"; then
7099 ac_ct_OTOOL=$OTOOL
7100 # Extract the first word of "otool", so it can be a program name with args.
7101 set dummy otool; ac_word=$2
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7103 $as_echo_n "checking for $ac_word... " >&6; }
7104 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7105 $as_echo_n "(cached) " >&6
7106 else
7107 if test -n "$ac_ct_OTOOL"; then
7108 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7109 else
7110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7111 for as_dir in $PATH
7113 IFS=$as_save_IFS
7114 test -z "$as_dir" && as_dir=.
7115 for ac_exec_ext in '' $ac_executable_extensions; do
7116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7117 ac_cv_prog_ac_ct_OTOOL="otool"
7118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7119 break 2
7121 done
7122 done
7123 IFS=$as_save_IFS
7127 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7128 if test -n "$ac_ct_OTOOL"; then
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7130 $as_echo "$ac_ct_OTOOL" >&6; }
7131 else
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7133 $as_echo "no" >&6; }
7136 if test "x$ac_ct_OTOOL" = x; then
7137 OTOOL=":"
7138 else
7139 case $cross_compiling:$ac_tool_warned in
7140 yes:)
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7142 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7143 ac_tool_warned=yes ;;
7144 esac
7145 OTOOL=$ac_ct_OTOOL
7147 else
7148 OTOOL="$ac_cv_prog_OTOOL"
7151 if test -n "$ac_tool_prefix"; then
7152 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7153 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7155 $as_echo_n "checking for $ac_word... " >&6; }
7156 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7157 $as_echo_n "(cached) " >&6
7158 else
7159 if test -n "$OTOOL64"; then
7160 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7161 else
7162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7163 for as_dir in $PATH
7165 IFS=$as_save_IFS
7166 test -z "$as_dir" && as_dir=.
7167 for ac_exec_ext in '' $ac_executable_extensions; do
7168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7169 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7171 break 2
7173 done
7174 done
7175 IFS=$as_save_IFS
7179 OTOOL64=$ac_cv_prog_OTOOL64
7180 if test -n "$OTOOL64"; then
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7182 $as_echo "$OTOOL64" >&6; }
7183 else
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7185 $as_echo "no" >&6; }
7190 if test -z "$ac_cv_prog_OTOOL64"; then
7191 ac_ct_OTOOL64=$OTOOL64
7192 # Extract the first word of "otool64", so it can be a program name with args.
7193 set dummy otool64; ac_word=$2
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7195 $as_echo_n "checking for $ac_word... " >&6; }
7196 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7197 $as_echo_n "(cached) " >&6
7198 else
7199 if test -n "$ac_ct_OTOOL64"; then
7200 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7201 else
7202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7203 for as_dir in $PATH
7205 IFS=$as_save_IFS
7206 test -z "$as_dir" && as_dir=.
7207 for ac_exec_ext in '' $ac_executable_extensions; do
7208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7209 ac_cv_prog_ac_ct_OTOOL64="otool64"
7210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7211 break 2
7213 done
7214 done
7215 IFS=$as_save_IFS
7219 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7220 if test -n "$ac_ct_OTOOL64"; then
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7222 $as_echo "$ac_ct_OTOOL64" >&6; }
7223 else
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7225 $as_echo "no" >&6; }
7228 if test "x$ac_ct_OTOOL64" = x; then
7229 OTOOL64=":"
7230 else
7231 case $cross_compiling:$ac_tool_warned in
7232 yes:)
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7234 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7235 ac_tool_warned=yes ;;
7236 esac
7237 OTOOL64=$ac_ct_OTOOL64
7239 else
7240 OTOOL64="$ac_cv_prog_OTOOL64"
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7270 $as_echo_n "checking for -single_module linker flag... " >&6; }
7271 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7272 $as_echo_n "(cached) " >&6
7273 else
7274 lt_cv_apple_cc_single_mod=no
7275 if test -z "${LT_MULTI_MODULE}"; then
7276 # By default we will add the -single_module flag. You can override
7277 # by either setting the environment variable LT_MULTI_MODULE
7278 # non-empty at configure time, or by adding -multi_module to the
7279 # link flags.
7280 rm -rf libconftest.dylib*
7281 echo "int foo(void){return 1;}" > conftest.c
7282 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7283 -dynamiclib -Wl,-single_module conftest.c" >&5
7284 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7285 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7286 _lt_result=$?
7287 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7288 lt_cv_apple_cc_single_mod=yes
7289 else
7290 cat conftest.err >&5
7292 rm -rf libconftest.dylib*
7293 rm -f conftest.*
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7297 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7299 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7300 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7301 $as_echo_n "(cached) " >&6
7302 else
7303 lt_cv_ld_exported_symbols_list=no
7304 save_LDFLAGS=$LDFLAGS
7305 echo "_main" > conftest.sym
7306 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7308 /* end confdefs.h. */
7311 main ()
7315 return 0;
7317 _ACEOF
7318 if ac_fn_c_try_link "$LINENO"; then :
7319 lt_cv_ld_exported_symbols_list=yes
7320 else
7321 lt_cv_ld_exported_symbols_list=no
7323 rm -f core conftest.err conftest.$ac_objext \
7324 conftest$ac_exeext conftest.$ac_ext
7325 LDFLAGS="$save_LDFLAGS"
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7329 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7331 $as_echo_n "checking for -force_load linker flag... " >&6; }
7332 if test "${lt_cv_ld_force_load+set}" = set; then :
7333 $as_echo_n "(cached) " >&6
7334 else
7335 lt_cv_ld_force_load=no
7336 cat > conftest.c << _LT_EOF
7337 int forced_loaded() { return 2;}
7338 _LT_EOF
7339 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7340 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7341 echo "$AR cru libconftest.a conftest.o" >&5
7342 $AR cru libconftest.a conftest.o 2>&5
7343 cat > conftest.c << _LT_EOF
7344 int main() { return 0;}
7345 _LT_EOF
7346 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7347 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7348 _lt_result=$?
7349 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7350 lt_cv_ld_force_load=yes
7351 else
7352 cat conftest.err >&5
7354 rm -f conftest.err libconftest.a conftest conftest.c
7355 rm -rf conftest.dSYM
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7359 $as_echo "$lt_cv_ld_force_load" >&6; }
7360 case $host_os in
7361 rhapsody* | darwin1.[012])
7362 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7363 darwin1.*)
7364 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7365 darwin*) # darwin 5.x on
7366 # if running on 10.5 or later, the deployment target defaults
7367 # to the OS version, if on x86, and 10.4, the deployment
7368 # target defaults to 10.4. Don't you love it?
7369 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7370 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7371 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7372 10.[012][,.]*)
7373 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7374 10.*)
7375 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7376 esac
7378 esac
7379 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7380 _lt_dar_single_mod='$single_module'
7382 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7383 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7384 else
7385 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7387 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7388 _lt_dsymutil='~$DSYMUTIL $lib || :'
7389 else
7390 _lt_dsymutil=
7393 esac
7395 ac_ext=c
7396 ac_cpp='$CPP $CPPFLAGS'
7397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7401 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7402 # On Suns, sometimes $CPP names a directory.
7403 if test -n "$CPP" && test -d "$CPP"; then
7404 CPP=
7406 if test -z "$CPP"; then
7407 if test "${ac_cv_prog_CPP+set}" = set; then :
7408 $as_echo_n "(cached) " >&6
7409 else
7410 # Double quotes because CPP needs to be expanded
7411 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7413 ac_preproc_ok=false
7414 for ac_c_preproc_warn_flag in '' yes
7416 # Use a header file that comes with gcc, so configuring glibc
7417 # with a fresh cross-compiler works.
7418 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7419 # <limits.h> exists even on freestanding compilers.
7420 # On the NeXT, cc -E runs the code through the compiler's parser,
7421 # not just through cpp. "Syntax error" is here to catch this case.
7422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7423 /* end confdefs.h. */
7424 #ifdef __STDC__
7425 # include <limits.h>
7426 #else
7427 # include <assert.h>
7428 #endif
7429 Syntax error
7430 _ACEOF
7431 if ac_fn_c_try_cpp "$LINENO"; then :
7433 else
7434 # Broken: fails on valid input.
7435 continue
7437 rm -f conftest.err conftest.$ac_ext
7439 # OK, works on sane cases. Now check whether nonexistent headers
7440 # can be detected and how.
7441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7442 /* end confdefs.h. */
7443 #include <ac_nonexistent.h>
7444 _ACEOF
7445 if ac_fn_c_try_cpp "$LINENO"; then :
7446 # Broken: success on invalid input.
7447 continue
7448 else
7449 # Passes both tests.
7450 ac_preproc_ok=:
7451 break
7453 rm -f conftest.err conftest.$ac_ext
7455 done
7456 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7457 rm -f conftest.err conftest.$ac_ext
7458 if $ac_preproc_ok; then :
7459 break
7462 done
7463 ac_cv_prog_CPP=$CPP
7466 CPP=$ac_cv_prog_CPP
7467 else
7468 ac_cv_prog_CPP=$CPP
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7471 $as_echo "$CPP" >&6; }
7472 ac_preproc_ok=false
7473 for ac_c_preproc_warn_flag in '' yes
7475 # Use a header file that comes with gcc, so configuring glibc
7476 # with a fresh cross-compiler works.
7477 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7478 # <limits.h> exists even on freestanding compilers.
7479 # On the NeXT, cc -E runs the code through the compiler's parser,
7480 # not just through cpp. "Syntax error" is here to catch this case.
7481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7482 /* end confdefs.h. */
7483 #ifdef __STDC__
7484 # include <limits.h>
7485 #else
7486 # include <assert.h>
7487 #endif
7488 Syntax error
7489 _ACEOF
7490 if ac_fn_c_try_cpp "$LINENO"; then :
7492 else
7493 # Broken: fails on valid input.
7494 continue
7496 rm -f conftest.err conftest.$ac_ext
7498 # OK, works on sane cases. Now check whether nonexistent headers
7499 # can be detected and how.
7500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7501 /* end confdefs.h. */
7502 #include <ac_nonexistent.h>
7503 _ACEOF
7504 if ac_fn_c_try_cpp "$LINENO"; then :
7505 # Broken: success on invalid input.
7506 continue
7507 else
7508 # Passes both tests.
7509 ac_preproc_ok=:
7510 break
7512 rm -f conftest.err conftest.$ac_ext
7514 done
7515 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7516 rm -f conftest.err conftest.$ac_ext
7517 if $ac_preproc_ok; then :
7519 else
7520 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7521 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7522 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7523 See \`config.log' for more details." "$LINENO" 5; }
7526 ac_ext=c
7527 ac_cpp='$CPP $CPPFLAGS'
7528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7534 $as_echo_n "checking for ANSI C header files... " >&6; }
7535 if test "${ac_cv_header_stdc+set}" = set; then :
7536 $as_echo_n "(cached) " >&6
7537 else
7538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7539 /* end confdefs.h. */
7540 #include <stdlib.h>
7541 #include <stdarg.h>
7542 #include <string.h>
7543 #include <float.h>
7546 main ()
7550 return 0;
7552 _ACEOF
7553 if ac_fn_c_try_compile "$LINENO"; then :
7554 ac_cv_header_stdc=yes
7555 else
7556 ac_cv_header_stdc=no
7558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7560 if test $ac_cv_header_stdc = yes; then
7561 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7563 /* end confdefs.h. */
7564 #include <string.h>
7566 _ACEOF
7567 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7568 $EGREP "memchr" >/dev/null 2>&1; then :
7570 else
7571 ac_cv_header_stdc=no
7573 rm -f conftest*
7577 if test $ac_cv_header_stdc = yes; then
7578 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7580 /* end confdefs.h. */
7581 #include <stdlib.h>
7583 _ACEOF
7584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7585 $EGREP "free" >/dev/null 2>&1; then :
7587 else
7588 ac_cv_header_stdc=no
7590 rm -f conftest*
7594 if test $ac_cv_header_stdc = yes; then
7595 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7596 if test "$cross_compiling" = yes; then :
7598 else
7599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7600 /* end confdefs.h. */
7601 #include <ctype.h>
7602 #include <stdlib.h>
7603 #if ((' ' & 0x0FF) == 0x020)
7604 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7605 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7606 #else
7607 # define ISLOWER(c) \
7608 (('a' <= (c) && (c) <= 'i') \
7609 || ('j' <= (c) && (c) <= 'r') \
7610 || ('s' <= (c) && (c) <= 'z'))
7611 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7612 #endif
7614 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7616 main ()
7618 int i;
7619 for (i = 0; i < 256; i++)
7620 if (XOR (islower (i), ISLOWER (i))
7621 || toupper (i) != TOUPPER (i))
7622 return 2;
7623 return 0;
7625 _ACEOF
7626 if ac_fn_c_try_run "$LINENO"; then :
7628 else
7629 ac_cv_header_stdc=no
7631 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7632 conftest.$ac_objext conftest.beam conftest.$ac_ext
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7638 $as_echo "$ac_cv_header_stdc" >&6; }
7639 if test $ac_cv_header_stdc = yes; then
7641 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7645 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7646 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7647 inttypes.h stdint.h unistd.h
7648 do :
7649 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7650 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7652 eval as_val=\$$as_ac_Header
7653 if test "x$as_val" = x""yes; then :
7654 cat >>confdefs.h <<_ACEOF
7655 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7656 _ACEOF
7660 done
7663 for ac_header in dlfcn.h
7664 do :
7665 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7667 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7668 cat >>confdefs.h <<_ACEOF
7669 #define HAVE_DLFCN_H 1
7670 _ACEOF
7674 done
7680 # Set options
7684 enable_dlopen=no
7687 enable_win32_dll=no
7690 # Check whether --enable-shared was given.
7691 if test "${enable_shared+set}" = set; then :
7692 enableval=$enable_shared; p=${PACKAGE-default}
7693 case $enableval in
7694 yes) enable_shared=yes ;;
7695 no) enable_shared=no ;;
7697 enable_shared=no
7698 # Look at the argument we got. We use all the common list separators.
7699 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7700 for pkg in $enableval; do
7701 IFS="$lt_save_ifs"
7702 if test "X$pkg" = "X$p"; then
7703 enable_shared=yes
7705 done
7706 IFS="$lt_save_ifs"
7708 esac
7709 else
7710 enable_shared=yes
7721 # Check whether --enable-static was given.
7722 if test "${enable_static+set}" = set; then :
7723 enableval=$enable_static; p=${PACKAGE-default}
7724 case $enableval in
7725 yes) enable_static=yes ;;
7726 no) enable_static=no ;;
7728 enable_static=no
7729 # Look at the argument we got. We use all the common list separators.
7730 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7731 for pkg in $enableval; do
7732 IFS="$lt_save_ifs"
7733 if test "X$pkg" = "X$p"; then
7734 enable_static=yes
7736 done
7737 IFS="$lt_save_ifs"
7739 esac
7740 else
7741 enable_static=yes
7753 # Check whether --with-pic was given.
7754 if test "${with_pic+set}" = set; then :
7755 withval=$with_pic; pic_mode="$withval"
7756 else
7757 pic_mode=default
7761 test -z "$pic_mode" && pic_mode=default
7769 # Check whether --enable-fast-install was given.
7770 if test "${enable_fast_install+set}" = set; then :
7771 enableval=$enable_fast_install; p=${PACKAGE-default}
7772 case $enableval in
7773 yes) enable_fast_install=yes ;;
7774 no) enable_fast_install=no ;;
7776 enable_fast_install=no
7777 # Look at the argument we got. We use all the common list separators.
7778 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7779 for pkg in $enableval; do
7780 IFS="$lt_save_ifs"
7781 if test "X$pkg" = "X$p"; then
7782 enable_fast_install=yes
7784 done
7785 IFS="$lt_save_ifs"
7787 esac
7788 else
7789 enable_fast_install=yes
7802 # This can be used to rebuild libtool when needed
7803 LIBTOOL_DEPS="$ltmain"
7805 # Always use our own libtool.
7806 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7833 test -z "$LN_S" && LN_S="ln -s"
7848 if test -n "${ZSH_VERSION+set}" ; then
7849 setopt NO_GLOB_SUBST
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7853 $as_echo_n "checking for objdir... " >&6; }
7854 if test "${lt_cv_objdir+set}" = set; then :
7855 $as_echo_n "(cached) " >&6
7856 else
7857 rm -f .libs 2>/dev/null
7858 mkdir .libs 2>/dev/null
7859 if test -d .libs; then
7860 lt_cv_objdir=.libs
7861 else
7862 # MS-DOS does not allow filenames that begin with a dot.
7863 lt_cv_objdir=_libs
7865 rmdir .libs 2>/dev/null
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7868 $as_echo "$lt_cv_objdir" >&6; }
7869 objdir=$lt_cv_objdir
7875 cat >>confdefs.h <<_ACEOF
7876 #define LT_OBJDIR "$lt_cv_objdir/"
7877 _ACEOF
7882 case $host_os in
7883 aix3*)
7884 # AIX sometimes has problems with the GCC collect2 program. For some
7885 # reason, if we set the COLLECT_NAMES environment variable, the problems
7886 # vanish in a puff of smoke.
7887 if test "X${COLLECT_NAMES+set}" != Xset; then
7888 COLLECT_NAMES=
7889 export COLLECT_NAMES
7892 esac
7894 # Global variables:
7895 ofile=libtool
7896 can_build_shared=yes
7898 # All known linkers require a `.a' archive for static linking (except MSVC,
7899 # which needs '.lib').
7900 libext=a
7902 with_gnu_ld="$lt_cv_prog_gnu_ld"
7904 old_CC="$CC"
7905 old_CFLAGS="$CFLAGS"
7907 # Set sane defaults for various variables
7908 test -z "$CC" && CC=cc
7909 test -z "$LTCC" && LTCC=$CC
7910 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7911 test -z "$LD" && LD=ld
7912 test -z "$ac_objext" && ac_objext=o
7914 for cc_temp in $compiler""; do
7915 case $cc_temp in
7916 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7917 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7918 \-*) ;;
7919 *) break;;
7920 esac
7921 done
7922 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7925 # Only perform the check for file, if the check method requires it
7926 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7927 case $deplibs_check_method in
7928 file_magic*)
7929 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7931 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7932 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7933 $as_echo_n "(cached) " >&6
7934 else
7935 case $MAGIC_CMD in
7936 [\\/*] | ?:[\\/]*)
7937 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7940 lt_save_MAGIC_CMD="$MAGIC_CMD"
7941 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7942 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7943 for ac_dir in $ac_dummy; do
7944 IFS="$lt_save_ifs"
7945 test -z "$ac_dir" && ac_dir=.
7946 if test -f $ac_dir/${ac_tool_prefix}file; then
7947 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7948 if test -n "$file_magic_test_file"; then
7949 case $deplibs_check_method in
7950 "file_magic "*)
7951 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7952 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7953 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7954 $EGREP "$file_magic_regex" > /dev/null; then
7956 else
7957 cat <<_LT_EOF 1>&2
7959 *** Warning: the command libtool uses to detect shared libraries,
7960 *** $file_magic_cmd, produces output that libtool cannot recognize.
7961 *** The result is that libtool may fail to recognize shared libraries
7962 *** as such. This will affect the creation of libtool libraries that
7963 *** depend on shared libraries, but programs linked with such libtool
7964 *** libraries will work regardless of this problem. Nevertheless, you
7965 *** may want to report the problem to your system manager and/or to
7966 *** bug-libtool@gnu.org
7968 _LT_EOF
7969 fi ;;
7970 esac
7972 break
7974 done
7975 IFS="$lt_save_ifs"
7976 MAGIC_CMD="$lt_save_MAGIC_CMD"
7978 esac
7981 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7982 if test -n "$MAGIC_CMD"; then
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7984 $as_echo "$MAGIC_CMD" >&6; }
7985 else
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7987 $as_echo "no" >&6; }
7994 if test -z "$lt_cv_path_MAGIC_CMD"; then
7995 if test -n "$ac_tool_prefix"; then
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7997 $as_echo_n "checking for file... " >&6; }
7998 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7999 $as_echo_n "(cached) " >&6
8000 else
8001 case $MAGIC_CMD in
8002 [\\/*] | ?:[\\/]*)
8003 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8006 lt_save_MAGIC_CMD="$MAGIC_CMD"
8007 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8008 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8009 for ac_dir in $ac_dummy; do
8010 IFS="$lt_save_ifs"
8011 test -z "$ac_dir" && ac_dir=.
8012 if test -f $ac_dir/file; then
8013 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8014 if test -n "$file_magic_test_file"; then
8015 case $deplibs_check_method in
8016 "file_magic "*)
8017 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8018 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8019 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8020 $EGREP "$file_magic_regex" > /dev/null; then
8022 else
8023 cat <<_LT_EOF 1>&2
8025 *** Warning: the command libtool uses to detect shared libraries,
8026 *** $file_magic_cmd, produces output that libtool cannot recognize.
8027 *** The result is that libtool may fail to recognize shared libraries
8028 *** as such. This will affect the creation of libtool libraries that
8029 *** depend on shared libraries, but programs linked with such libtool
8030 *** libraries will work regardless of this problem. Nevertheless, you
8031 *** may want to report the problem to your system manager and/or to
8032 *** bug-libtool@gnu.org
8034 _LT_EOF
8035 fi ;;
8036 esac
8038 break
8040 done
8041 IFS="$lt_save_ifs"
8042 MAGIC_CMD="$lt_save_MAGIC_CMD"
8044 esac
8047 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8048 if test -n "$MAGIC_CMD"; then
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8050 $as_echo "$MAGIC_CMD" >&6; }
8051 else
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8053 $as_echo "no" >&6; }
8057 else
8058 MAGIC_CMD=:
8064 esac
8066 # Use C for the default configuration in the libtool script
8068 lt_save_CC="$CC"
8069 ac_ext=c
8070 ac_cpp='$CPP $CPPFLAGS'
8071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8076 # Source file extension for C test sources.
8077 ac_ext=c
8079 # Object file extension for compiled C test sources.
8080 objext=o
8081 objext=$objext
8083 # Code to be used in simple compile tests
8084 lt_simple_compile_test_code="int some_variable = 0;"
8086 # Code to be used in simple link tests
8087 lt_simple_link_test_code='int main(){return(0);}'
8095 # If no C compiler was specified, use CC.
8096 LTCC=${LTCC-"$CC"}
8098 # If no C compiler flags were specified, use CFLAGS.
8099 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8101 # Allow CC to be a program name with arguments.
8102 compiler=$CC
8104 # Save the default compiler, since it gets overwritten when the other
8105 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8106 compiler_DEFAULT=$CC
8108 # save warnings/boilerplate of simple test code
8109 ac_outfile=conftest.$ac_objext
8110 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8111 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8112 _lt_compiler_boilerplate=`cat conftest.err`
8113 $RM conftest*
8115 ac_outfile=conftest.$ac_objext
8116 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8117 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8118 _lt_linker_boilerplate=`cat conftest.err`
8119 $RM -r conftest*
8122 ## CAVEAT EMPTOR:
8123 ## There is no encapsulation within the following macros, do not change
8124 ## the running order or otherwise move them around unless you know exactly
8125 ## what you are doing...
8126 if test -n "$compiler"; then
8128 lt_prog_compiler_no_builtin_flag=
8130 if test "$GCC" = yes; then
8131 case $cc_basename in
8132 nvcc*)
8133 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8135 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8136 esac
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8139 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8140 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8141 $as_echo_n "(cached) " >&6
8142 else
8143 lt_cv_prog_compiler_rtti_exceptions=no
8144 ac_outfile=conftest.$ac_objext
8145 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8146 lt_compiler_flag="-fno-rtti -fno-exceptions"
8147 # Insert the option either (1) after the last *FLAGS variable, or
8148 # (2) before a word containing "conftest.", or (3) at the end.
8149 # Note that $ac_compile itself does not contain backslashes and begins
8150 # with a dollar sign (not a hyphen), so the echo should work correctly.
8151 # The option is referenced via a variable to avoid confusing sed.
8152 lt_compile=`echo "$ac_compile" | $SED \
8153 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8154 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8155 -e 's:$: $lt_compiler_flag:'`
8156 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8157 (eval "$lt_compile" 2>conftest.err)
8158 ac_status=$?
8159 cat conftest.err >&5
8160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161 if (exit $ac_status) && test -s "$ac_outfile"; then
8162 # The compiler can only warn and ignore the option if not recognized
8163 # So say no if there are warnings other than the usual output.
8164 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8165 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8166 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8167 lt_cv_prog_compiler_rtti_exceptions=yes
8170 $RM conftest*
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8174 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8176 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8177 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8178 else
8189 lt_prog_compiler_wl=
8190 lt_prog_compiler_pic=
8191 lt_prog_compiler_static=
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8194 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8196 if test "$GCC" = yes; then
8197 lt_prog_compiler_wl='-Wl,'
8198 lt_prog_compiler_static='-static'
8200 case $host_os in
8201 aix*)
8202 # All AIX code is PIC.
8203 if test "$host_cpu" = ia64; then
8204 # AIX 5 now supports IA64 processor
8205 lt_prog_compiler_static='-Bstatic'
8207 lt_prog_compiler_pic='-fPIC'
8210 amigaos*)
8211 case $host_cpu in
8212 powerpc)
8213 # see comment about AmigaOS4 .so support
8214 lt_prog_compiler_pic='-fPIC'
8216 m68k)
8217 # FIXME: we need at least 68020 code to build shared libraries, but
8218 # adding the `-m68020' flag to GCC prevents building anything better,
8219 # like `-m68040'.
8220 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8222 esac
8225 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8226 # PIC is the default for these OSes.
8229 mingw* | cygwin* | pw32* | os2* | cegcc*)
8230 # This hack is so that the source file can tell whether it is being
8231 # built for inclusion in a dll (and should export symbols for example).
8232 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8233 # (--disable-auto-import) libraries
8234 lt_prog_compiler_pic='-DDLL_EXPORT'
8237 darwin* | rhapsody*)
8238 # PIC is the default on this platform
8239 # Common symbols not allowed in MH_DYLIB files
8240 lt_prog_compiler_pic='-fno-common'
8243 haiku*)
8244 # PIC is the default for Haiku.
8245 # The "-static" flag exists, but is broken.
8246 lt_prog_compiler_static=
8249 hpux*)
8250 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8251 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8252 # sets the default TLS model and affects inlining.
8253 case $host_cpu in
8254 hppa*64*)
8255 # +Z the default
8258 lt_prog_compiler_pic='-fPIC'
8260 esac
8263 interix[3-9]*)
8264 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8265 # Instead, we relocate shared libraries at runtime.
8268 msdosdjgpp*)
8269 # Just because we use GCC doesn't mean we suddenly get shared libraries
8270 # on systems that don't support them.
8271 lt_prog_compiler_can_build_shared=no
8272 enable_shared=no
8275 *nto* | *qnx*)
8276 # QNX uses GNU C++, but need to define -shared option too, otherwise
8277 # it will coredump.
8278 lt_prog_compiler_pic='-fPIC -shared'
8281 sysv4*MP*)
8282 if test -d /usr/nec; then
8283 lt_prog_compiler_pic=-Kconform_pic
8288 lt_prog_compiler_pic='-fPIC'
8290 esac
8292 case $cc_basename in
8293 nvcc*) # Cuda Compiler Driver 2.2
8294 lt_prog_compiler_wl='-Xlinker '
8295 lt_prog_compiler_pic='-Xcompiler -fPIC'
8297 esac
8298 else
8299 # PORTME Check for flag to pass linker flags through the system compiler.
8300 case $host_os in
8301 aix*)
8302 lt_prog_compiler_wl='-Wl,'
8303 if test "$host_cpu" = ia64; then
8304 # AIX 5 now supports IA64 processor
8305 lt_prog_compiler_static='-Bstatic'
8306 else
8307 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8311 mingw* | cygwin* | pw32* | os2* | cegcc*)
8312 # This hack is so that the source file can tell whether it is being
8313 # built for inclusion in a dll (and should export symbols for example).
8314 lt_prog_compiler_pic='-DDLL_EXPORT'
8317 hpux9* | hpux10* | hpux11*)
8318 lt_prog_compiler_wl='-Wl,'
8319 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8320 # not for PA HP-UX.
8321 case $host_cpu in
8322 hppa*64*|ia64*)
8323 # +Z the default
8326 lt_prog_compiler_pic='+Z'
8328 esac
8329 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8330 lt_prog_compiler_static='${wl}-a ${wl}archive'
8333 irix5* | irix6* | nonstopux*)
8334 lt_prog_compiler_wl='-Wl,'
8335 # PIC (with -KPIC) is the default.
8336 lt_prog_compiler_static='-non_shared'
8339 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8340 case $cc_basename in
8341 # old Intel for x86_64 which still supported -KPIC.
8342 ecc*)
8343 lt_prog_compiler_wl='-Wl,'
8344 lt_prog_compiler_pic='-KPIC'
8345 lt_prog_compiler_static='-static'
8347 # icc used to be incompatible with GCC.
8348 # ICC 10 doesn't accept -KPIC any more.
8349 icc* | ifort*)
8350 lt_prog_compiler_wl='-Wl,'
8351 lt_prog_compiler_pic='-fPIC'
8352 lt_prog_compiler_static='-static'
8354 # Lahey Fortran 8.1.
8355 lf95*)
8356 lt_prog_compiler_wl='-Wl,'
8357 lt_prog_compiler_pic='--shared'
8358 lt_prog_compiler_static='--static'
8360 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8361 # Portland Group compilers (*not* the Pentium gcc compiler,
8362 # which looks to be a dead project)
8363 lt_prog_compiler_wl='-Wl,'
8364 lt_prog_compiler_pic='-fpic'
8365 lt_prog_compiler_static='-Bstatic'
8367 ccc*)
8368 lt_prog_compiler_wl='-Wl,'
8369 # All Alpha code is PIC.
8370 lt_prog_compiler_static='-non_shared'
8372 xl* | bgxl* | bgf* | mpixl*)
8373 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8374 lt_prog_compiler_wl='-Wl,'
8375 lt_prog_compiler_pic='-qpic'
8376 lt_prog_compiler_static='-qstaticlink'
8379 case `$CC -V 2>&1 | sed 5q` in
8380 *Sun\ F* | *Sun*Fortran*)
8381 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8382 lt_prog_compiler_pic='-KPIC'
8383 lt_prog_compiler_static='-Bstatic'
8384 lt_prog_compiler_wl=''
8386 *Sun\ C*)
8387 # Sun C 5.9
8388 lt_prog_compiler_pic='-KPIC'
8389 lt_prog_compiler_static='-Bstatic'
8390 lt_prog_compiler_wl='-Wl,'
8392 esac
8394 esac
8397 newsos6)
8398 lt_prog_compiler_pic='-KPIC'
8399 lt_prog_compiler_static='-Bstatic'
8402 *nto* | *qnx*)
8403 # QNX uses GNU C++, but need to define -shared option too, otherwise
8404 # it will coredump.
8405 lt_prog_compiler_pic='-fPIC -shared'
8408 osf3* | osf4* | osf5*)
8409 lt_prog_compiler_wl='-Wl,'
8410 # All OSF/1 code is PIC.
8411 lt_prog_compiler_static='-non_shared'
8414 rdos*)
8415 lt_prog_compiler_static='-non_shared'
8418 solaris*)
8419 lt_prog_compiler_pic='-KPIC'
8420 lt_prog_compiler_static='-Bstatic'
8421 case $cc_basename in
8422 f77* | f90* | f95*)
8423 lt_prog_compiler_wl='-Qoption ld ';;
8425 lt_prog_compiler_wl='-Wl,';;
8426 esac
8429 sunos4*)
8430 lt_prog_compiler_wl='-Qoption ld '
8431 lt_prog_compiler_pic='-PIC'
8432 lt_prog_compiler_static='-Bstatic'
8435 sysv4 | sysv4.2uw2* | sysv4.3*)
8436 lt_prog_compiler_wl='-Wl,'
8437 lt_prog_compiler_pic='-KPIC'
8438 lt_prog_compiler_static='-Bstatic'
8441 sysv4*MP*)
8442 if test -d /usr/nec ;then
8443 lt_prog_compiler_pic='-Kconform_pic'
8444 lt_prog_compiler_static='-Bstatic'
8448 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8449 lt_prog_compiler_wl='-Wl,'
8450 lt_prog_compiler_pic='-KPIC'
8451 lt_prog_compiler_static='-Bstatic'
8454 unicos*)
8455 lt_prog_compiler_wl='-Wl,'
8456 lt_prog_compiler_can_build_shared=no
8459 uts4*)
8460 lt_prog_compiler_pic='-pic'
8461 lt_prog_compiler_static='-Bstatic'
8465 lt_prog_compiler_can_build_shared=no
8467 esac
8470 case $host_os in
8471 # For platforms which do not support PIC, -DPIC is meaningless:
8472 *djgpp*)
8473 lt_prog_compiler_pic=
8476 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8478 esac
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8480 $as_echo "$lt_prog_compiler_pic" >&6; }
8488 # Check to make sure the PIC flag actually works.
8490 if test -n "$lt_prog_compiler_pic"; then
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8492 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8493 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8494 $as_echo_n "(cached) " >&6
8495 else
8496 lt_cv_prog_compiler_pic_works=no
8497 ac_outfile=conftest.$ac_objext
8498 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8499 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8500 # Insert the option either (1) after the last *FLAGS variable, or
8501 # (2) before a word containing "conftest.", or (3) at the end.
8502 # Note that $ac_compile itself does not contain backslashes and begins
8503 # with a dollar sign (not a hyphen), so the echo should work correctly.
8504 # The option is referenced via a variable to avoid confusing sed.
8505 lt_compile=`echo "$ac_compile" | $SED \
8506 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8507 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8508 -e 's:$: $lt_compiler_flag:'`
8509 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8510 (eval "$lt_compile" 2>conftest.err)
8511 ac_status=$?
8512 cat conftest.err >&5
8513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514 if (exit $ac_status) && test -s "$ac_outfile"; then
8515 # The compiler can only warn and ignore the option if not recognized
8516 # So say no if there are warnings other than the usual output.
8517 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8518 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8519 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8520 lt_cv_prog_compiler_pic_works=yes
8523 $RM conftest*
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8527 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8529 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8530 case $lt_prog_compiler_pic in
8531 "" | " "*) ;;
8532 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8533 esac
8534 else
8535 lt_prog_compiler_pic=
8536 lt_prog_compiler_can_build_shared=no
8547 # Check to make sure the static flag actually works.
8549 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8551 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8552 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8553 $as_echo_n "(cached) " >&6
8554 else
8555 lt_cv_prog_compiler_static_works=no
8556 save_LDFLAGS="$LDFLAGS"
8557 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8558 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8559 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8560 # The linker can only warn and ignore the option if not recognized
8561 # So say no if there are warnings
8562 if test -s conftest.err; then
8563 # Append any errors to the config.log.
8564 cat conftest.err 1>&5
8565 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8566 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8567 if diff conftest.exp conftest.er2 >/dev/null; then
8568 lt_cv_prog_compiler_static_works=yes
8570 else
8571 lt_cv_prog_compiler_static_works=yes
8574 $RM -r conftest*
8575 LDFLAGS="$save_LDFLAGS"
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8579 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8581 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8583 else
8584 lt_prog_compiler_static=
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8594 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8595 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8596 $as_echo_n "(cached) " >&6
8597 else
8598 lt_cv_prog_compiler_c_o=no
8599 $RM -r conftest 2>/dev/null
8600 mkdir conftest
8601 cd conftest
8602 mkdir out
8603 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8605 lt_compiler_flag="-o out/conftest2.$ac_objext"
8606 # Insert the option either (1) after the last *FLAGS variable, or
8607 # (2) before a word containing "conftest.", or (3) at the end.
8608 # Note that $ac_compile itself does not contain backslashes and begins
8609 # with a dollar sign (not a hyphen), so the echo should work correctly.
8610 lt_compile=`echo "$ac_compile" | $SED \
8611 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8612 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8613 -e 's:$: $lt_compiler_flag:'`
8614 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8615 (eval "$lt_compile" 2>out/conftest.err)
8616 ac_status=$?
8617 cat out/conftest.err >&5
8618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8620 then
8621 # The compiler can only warn and ignore the option if not recognized
8622 # So say no if there are warnings
8623 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8624 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8625 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8626 lt_cv_prog_compiler_c_o=yes
8629 chmod u+w . 2>&5
8630 $RM conftest*
8631 # SGI C++ compiler will create directory out/ii_files/ for
8632 # template instantiation
8633 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8634 $RM out/* && rmdir out
8635 cd ..
8636 $RM -r conftest
8637 $RM conftest*
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8641 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8649 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8650 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8651 $as_echo_n "(cached) " >&6
8652 else
8653 lt_cv_prog_compiler_c_o=no
8654 $RM -r conftest 2>/dev/null
8655 mkdir conftest
8656 cd conftest
8657 mkdir out
8658 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8660 lt_compiler_flag="-o out/conftest2.$ac_objext"
8661 # Insert the option either (1) after the last *FLAGS variable, or
8662 # (2) before a word containing "conftest.", or (3) at the end.
8663 # Note that $ac_compile itself does not contain backslashes and begins
8664 # with a dollar sign (not a hyphen), so the echo should work correctly.
8665 lt_compile=`echo "$ac_compile" | $SED \
8666 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8667 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8668 -e 's:$: $lt_compiler_flag:'`
8669 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8670 (eval "$lt_compile" 2>out/conftest.err)
8671 ac_status=$?
8672 cat out/conftest.err >&5
8673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8675 then
8676 # The compiler can only warn and ignore the option if not recognized
8677 # So say no if there are warnings
8678 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8679 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8680 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8681 lt_cv_prog_compiler_c_o=yes
8684 chmod u+w . 2>&5
8685 $RM conftest*
8686 # SGI C++ compiler will create directory out/ii_files/ for
8687 # template instantiation
8688 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8689 $RM out/* && rmdir out
8690 cd ..
8691 $RM -r conftest
8692 $RM conftest*
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8696 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8701 hard_links="nottested"
8702 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8703 # do not overwrite the value of need_locks provided by the user
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8705 $as_echo_n "checking if we can lock with hard links... " >&6; }
8706 hard_links=yes
8707 $RM conftest*
8708 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8709 touch conftest.a
8710 ln conftest.a conftest.b 2>&5 || hard_links=no
8711 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8713 $as_echo "$hard_links" >&6; }
8714 if test "$hard_links" = no; then
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8716 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8717 need_locks=warn
8719 else
8720 need_locks=no
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8729 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8731 runpath_var=
8732 allow_undefined_flag=
8733 always_export_symbols=no
8734 archive_cmds=
8735 archive_expsym_cmds=
8736 compiler_needs_object=no
8737 enable_shared_with_static_runtimes=no
8738 export_dynamic_flag_spec=
8739 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8740 hardcode_automatic=no
8741 hardcode_direct=no
8742 hardcode_direct_absolute=no
8743 hardcode_libdir_flag_spec=
8744 hardcode_libdir_flag_spec_ld=
8745 hardcode_libdir_separator=
8746 hardcode_minus_L=no
8747 hardcode_shlibpath_var=unsupported
8748 inherit_rpath=no
8749 link_all_deplibs=unknown
8750 module_cmds=
8751 module_expsym_cmds=
8752 old_archive_from_new_cmds=
8753 old_archive_from_expsyms_cmds=
8754 thread_safe_flag_spec=
8755 whole_archive_flag_spec=
8756 # include_expsyms should be a list of space-separated symbols to be *always*
8757 # included in the symbol list
8758 include_expsyms=
8759 # exclude_expsyms can be an extended regexp of symbols to exclude
8760 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8761 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8762 # as well as any symbol that contains `d'.
8763 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8764 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8765 # platforms (ab)use it in PIC code, but their linkers get confused if
8766 # the symbol is explicitly referenced. Since portable code cannot
8767 # rely on this symbol name, it's probably fine to never include it in
8768 # preloaded symbol tables.
8769 # Exclude shared library initialization/finalization symbols.
8770 extract_expsyms_cmds=
8772 case $host_os in
8773 cygwin* | mingw* | pw32* | cegcc*)
8774 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8775 # When not using gcc, we currently assume that we are using
8776 # Microsoft Visual C++.
8777 if test "$GCC" != yes; then
8778 with_gnu_ld=no
8781 interix*)
8782 # we just hope/assume this is gcc and not c89 (= MSVC++)
8783 with_gnu_ld=yes
8785 openbsd*)
8786 with_gnu_ld=no
8788 esac
8790 ld_shlibs=yes
8792 # On some targets, GNU ld is compatible enough with the native linker
8793 # that we're better off using the native interface for both.
8794 lt_use_gnu_ld_interface=no
8795 if test "$with_gnu_ld" = yes; then
8796 case $host_os in
8797 aix*)
8798 # The AIX port of GNU ld has always aspired to compatibility
8799 # with the native linker. However, as the warning in the GNU ld
8800 # block says, versions before 2.19.5* couldn't really create working
8801 # shared libraries, regardless of the interface used.
8802 case `$LD -v 2>&1` in
8803 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8804 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8805 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8807 lt_use_gnu_ld_interface=yes
8809 esac
8812 lt_use_gnu_ld_interface=yes
8814 esac
8817 if test "$lt_use_gnu_ld_interface" = yes; then
8818 # If archive_cmds runs LD, not CC, wlarc should be empty
8819 wlarc='${wl}'
8821 # Set some defaults for GNU ld with shared library support. These
8822 # are reset later if shared libraries are not supported. Putting them
8823 # here allows them to be overridden if necessary.
8824 runpath_var=LD_RUN_PATH
8825 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8826 export_dynamic_flag_spec='${wl}--export-dynamic'
8827 # ancient GNU ld didn't support --whole-archive et. al.
8828 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8829 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8830 else
8831 whole_archive_flag_spec=
8833 supports_anon_versioning=no
8834 case `$LD -v 2>&1` in
8835 *GNU\ gold*) supports_anon_versioning=yes ;;
8836 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8837 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8838 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8839 *\ 2.11.*) ;; # other 2.11 versions
8840 *) supports_anon_versioning=yes ;;
8841 esac
8843 # See if GNU ld supports shared libraries.
8844 case $host_os in
8845 aix[3-9]*)
8846 # On AIX/PPC, the GNU linker is very broken
8847 if test "$host_cpu" != ia64; then
8848 ld_shlibs=no
8849 cat <<_LT_EOF 1>&2
8851 *** Warning: the GNU linker, at least up to release 2.19, is reported
8852 *** to be unable to reliably create shared libraries on AIX.
8853 *** Therefore, libtool is disabling shared libraries support. If you
8854 *** really care for shared libraries, you may want to install binutils
8855 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8856 *** You will then need to restart the configuration process.
8858 _LT_EOF
8862 amigaos*)
8863 case $host_cpu in
8864 powerpc)
8865 # see comment about AmigaOS4 .so support
8866 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8867 archive_expsym_cmds=''
8869 m68k)
8870 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)'
8871 hardcode_libdir_flag_spec='-L$libdir'
8872 hardcode_minus_L=yes
8874 esac
8877 beos*)
8878 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8879 allow_undefined_flag=unsupported
8880 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8881 # support --undefined. This deserves some investigation. FIXME
8882 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8883 else
8884 ld_shlibs=no
8888 cygwin* | mingw* | pw32* | cegcc*)
8889 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8890 # as there is no search path for DLLs.
8891 hardcode_libdir_flag_spec='-L$libdir'
8892 export_dynamic_flag_spec='${wl}--export-all-symbols'
8893 allow_undefined_flag=unsupported
8894 always_export_symbols=no
8895 enable_shared_with_static_runtimes=yes
8896 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8898 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8899 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8900 # If the export-symbols file already is a .def file (1st line
8901 # is EXPORTS), use it as is; otherwise, prepend...
8902 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8903 cp $export_symbols $output_objdir/$soname.def;
8904 else
8905 echo EXPORTS > $output_objdir/$soname.def;
8906 cat $export_symbols >> $output_objdir/$soname.def;
8908 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8909 else
8910 ld_shlibs=no
8914 haiku*)
8915 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8916 link_all_deplibs=yes
8919 interix[3-9]*)
8920 hardcode_direct=no
8921 hardcode_shlibpath_var=no
8922 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8923 export_dynamic_flag_spec='${wl}-E'
8924 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8925 # Instead, shared libraries are loaded at an image base (0x10000000 by
8926 # default) and relocated if they conflict, which is a slow very memory
8927 # consuming and fragmenting process. To avoid this, we pick a random,
8928 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8929 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8930 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8931 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'
8934 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8935 tmp_diet=no
8936 if test "$host_os" = linux-dietlibc; then
8937 case $cc_basename in
8938 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8939 esac
8941 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8942 && test "$tmp_diet" = no
8943 then
8944 tmp_addflag=' $pic_flag'
8945 tmp_sharedflag='-shared'
8946 case $cc_basename,$host_cpu in
8947 pgcc*) # Portland Group C compiler
8948 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'
8949 tmp_addflag=' $pic_flag'
8951 pgf77* | pgf90* | pgf95* | pgfortran*)
8952 # Portland Group f77 and f90 compilers
8953 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'
8954 tmp_addflag=' $pic_flag -Mnomain' ;;
8955 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8956 tmp_addflag=' -i_dynamic' ;;
8957 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8958 tmp_addflag=' -i_dynamic -nofor_main' ;;
8959 ifc* | ifort*) # Intel Fortran compiler
8960 tmp_addflag=' -nofor_main' ;;
8961 lf95*) # Lahey Fortran 8.1
8962 whole_archive_flag_spec=
8963 tmp_sharedflag='--shared' ;;
8964 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8965 tmp_sharedflag='-qmkshrobj'
8966 tmp_addflag= ;;
8967 nvcc*) # Cuda Compiler Driver 2.2
8968 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'
8969 compiler_needs_object=yes
8971 esac
8972 case `$CC -V 2>&1 | sed 5q` in
8973 *Sun\ C*) # Sun C 5.9
8974 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'
8975 compiler_needs_object=yes
8976 tmp_sharedflag='-G' ;;
8977 *Sun\ F*) # Sun Fortran 8.3
8978 tmp_sharedflag='-G' ;;
8979 esac
8980 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8982 if test "x$supports_anon_versioning" = xyes; then
8983 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8984 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8985 echo "local: *; };" >> $output_objdir/$libname.ver~
8986 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8989 case $cc_basename in
8990 xlf* | bgf* | bgxlf* | mpixlf*)
8991 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8992 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8993 hardcode_libdir_flag_spec=
8994 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8995 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8996 if test "x$supports_anon_versioning" = xyes; then
8997 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8998 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8999 echo "local: *; };" >> $output_objdir/$libname.ver~
9000 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9003 esac
9004 else
9005 ld_shlibs=no
9009 netbsd*)
9010 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9011 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9012 wlarc=
9013 else
9014 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9015 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9019 solaris*)
9020 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9021 ld_shlibs=no
9022 cat <<_LT_EOF 1>&2
9024 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9025 *** create shared libraries on Solaris systems. Therefore, libtool
9026 *** is disabling shared libraries support. We urge you to upgrade GNU
9027 *** binutils to release 2.9.1 or newer. Another option is to modify
9028 *** your PATH or compiler configuration so that the native linker is
9029 *** used, and then restart.
9031 _LT_EOF
9032 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9033 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9034 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9035 else
9036 ld_shlibs=no
9040 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9041 case `$LD -v 2>&1` in
9042 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9043 ld_shlibs=no
9044 cat <<_LT_EOF 1>&2
9046 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9047 *** reliably create shared libraries on SCO systems. Therefore, libtool
9048 *** is disabling shared libraries support. We urge you to upgrade GNU
9049 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9050 *** your PATH or compiler configuration so that the native linker is
9051 *** used, and then restart.
9053 _LT_EOF
9056 # For security reasons, it is highly recommended that you always
9057 # use absolute paths for naming shared libraries, and exclude the
9058 # DT_RUNPATH tag from executables and libraries. But doing so
9059 # requires that you compile everything twice, which is a pain.
9060 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9061 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9062 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9063 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9064 else
9065 ld_shlibs=no
9068 esac
9071 sunos4*)
9072 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9073 wlarc=
9074 hardcode_direct=yes
9075 hardcode_shlibpath_var=no
9079 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9080 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9081 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9082 else
9083 ld_shlibs=no
9086 esac
9088 if test "$ld_shlibs" = no; then
9089 runpath_var=
9090 hardcode_libdir_flag_spec=
9091 export_dynamic_flag_spec=
9092 whole_archive_flag_spec=
9094 else
9095 # PORTME fill in a description of your system's linker (not GNU ld)
9096 case $host_os in
9097 aix3*)
9098 allow_undefined_flag=unsupported
9099 always_export_symbols=yes
9100 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'
9101 # Note: this linker hardcodes the directories in LIBPATH if there
9102 # are no directories specified by -L.
9103 hardcode_minus_L=yes
9104 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9105 # Neither direct hardcoding nor static linking is supported with a
9106 # broken collect2.
9107 hardcode_direct=unsupported
9111 aix[4-9]*)
9112 if test "$host_cpu" = ia64; then
9113 # On IA64, the linker does run time linking by default, so we don't
9114 # have to do anything special.
9115 aix_use_runtimelinking=no
9116 exp_sym_flag='-Bexport'
9117 no_entry_flag=""
9118 else
9119 # If we're using GNU nm, then we don't want the "-C" option.
9120 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9121 # Also, AIX nm treats weak defined symbols like other global
9122 # defined symbols, whereas GNU nm marks them as "W".
9123 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9124 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'
9125 else
9126 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'
9128 aix_use_runtimelinking=no
9130 # Test if we are trying to use run time linking or normal
9131 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9132 # need to do runtime linking.
9133 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9134 for ld_flag in $LDFLAGS; do
9135 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9136 aix_use_runtimelinking=yes
9137 break
9139 done
9141 esac
9143 exp_sym_flag='-bexport'
9144 no_entry_flag='-bnoentry'
9147 # When large executables or shared objects are built, AIX ld can
9148 # have problems creating the table of contents. If linking a library
9149 # or program results in "error TOC overflow" add -mminimal-toc to
9150 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9151 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9153 archive_cmds=''
9154 hardcode_direct=yes
9155 hardcode_direct_absolute=yes
9156 hardcode_libdir_separator=':'
9157 link_all_deplibs=yes
9158 file_list_spec='${wl}-f,'
9160 if test "$GCC" = yes; then
9161 case $host_os in aix4.[012]|aix4.[012].*)
9162 # We only want to do this on AIX 4.2 and lower, the check
9163 # below for broken collect2 doesn't work under 4.3+
9164 collect2name=`${CC} -print-prog-name=collect2`
9165 if test -f "$collect2name" &&
9166 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9167 then
9168 # We have reworked collect2
9170 else
9171 # We have old collect2
9172 hardcode_direct=unsupported
9173 # It fails to find uninstalled libraries when the uninstalled
9174 # path is not listed in the libpath. Setting hardcode_minus_L
9175 # to unsupported forces relinking
9176 hardcode_minus_L=yes
9177 hardcode_libdir_flag_spec='-L$libdir'
9178 hardcode_libdir_separator=
9181 esac
9182 shared_flag='-shared'
9183 if test "$aix_use_runtimelinking" = yes; then
9184 shared_flag="$shared_flag "'${wl}-G'
9186 else
9187 # not using gcc
9188 if test "$host_cpu" = ia64; then
9189 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9190 # chokes on -Wl,-G. The following line is correct:
9191 shared_flag='-G'
9192 else
9193 if test "$aix_use_runtimelinking" = yes; then
9194 shared_flag='${wl}-G'
9195 else
9196 shared_flag='${wl}-bM:SRE'
9201 export_dynamic_flag_spec='${wl}-bexpall'
9202 # It seems that -bexpall does not export symbols beginning with
9203 # underscore (_), so it is better to generate a list of symbols to export.
9204 always_export_symbols=yes
9205 if test "$aix_use_runtimelinking" = yes; then
9206 # Warning - without using the other runtime loading flags (-brtl),
9207 # -berok will link without error, but may produce a broken library.
9208 allow_undefined_flag='-berok'
9209 # Determine the default libpath from the value encoded in an
9210 # empty executable.
9211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9212 /* end confdefs.h. */
9215 main ()
9219 return 0;
9221 _ACEOF
9222 if ac_fn_c_try_link "$LINENO"; then :
9224 lt_aix_libpath_sed='
9225 /Import File Strings/,/^$/ {
9226 /^0/ {
9227 s/^0 *\(.*\)$/\1/
9231 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9232 # Check for a 64-bit object if we didn't find anything.
9233 if test -z "$aix_libpath"; then
9234 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9237 rm -f core conftest.err conftest.$ac_objext \
9238 conftest$ac_exeext conftest.$ac_ext
9239 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9241 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9242 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"
9243 else
9244 if test "$host_cpu" = ia64; then
9245 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9246 allow_undefined_flag="-z nodefs"
9247 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"
9248 else
9249 # Determine the default libpath from the value encoded in an
9250 # empty executable.
9251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9252 /* end confdefs.h. */
9255 main ()
9259 return 0;
9261 _ACEOF
9262 if ac_fn_c_try_link "$LINENO"; then :
9264 lt_aix_libpath_sed='
9265 /Import File Strings/,/^$/ {
9266 /^0/ {
9267 s/^0 *\(.*\)$/\1/
9271 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9272 # Check for a 64-bit object if we didn't find anything.
9273 if test -z "$aix_libpath"; then
9274 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9277 rm -f core conftest.err conftest.$ac_objext \
9278 conftest$ac_exeext conftest.$ac_ext
9279 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9281 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9282 # Warning - without using the other run time loading flags,
9283 # -berok will link without error, but may produce a broken library.
9284 no_undefined_flag=' ${wl}-bernotok'
9285 allow_undefined_flag=' ${wl}-berok'
9286 if test "$with_gnu_ld" = yes; then
9287 # We only use this code for GNU lds that support --whole-archive.
9288 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9289 else
9290 # Exported symbols can be pulled into shared objects from archives
9291 whole_archive_flag_spec='$convenience'
9293 archive_cmds_need_lc=yes
9294 # This is similar to how AIX traditionally builds its shared libraries.
9295 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'
9300 amigaos*)
9301 case $host_cpu in
9302 powerpc)
9303 # see comment about AmigaOS4 .so support
9304 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9305 archive_expsym_cmds=''
9307 m68k)
9308 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)'
9309 hardcode_libdir_flag_spec='-L$libdir'
9310 hardcode_minus_L=yes
9312 esac
9315 bsdi[45]*)
9316 export_dynamic_flag_spec=-rdynamic
9319 cygwin* | mingw* | pw32* | cegcc*)
9320 # When not using gcc, we currently assume that we are using
9321 # Microsoft Visual C++.
9322 # hardcode_libdir_flag_spec is actually meaningless, as there is
9323 # no search path for DLLs.
9324 hardcode_libdir_flag_spec=' '
9325 allow_undefined_flag=unsupported
9326 # Tell ltmain to make .lib files, not .a files.
9327 libext=lib
9328 # Tell ltmain to make .dll files, not .so files.
9329 shrext_cmds=".dll"
9330 # FIXME: Setting linknames here is a bad hack.
9331 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9332 # The linker will automatically build a .lib file if we build a DLL.
9333 old_archive_from_new_cmds='true'
9334 # FIXME: Should let the user specify the lib program.
9335 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9336 fix_srcfile_path='`cygpath -w "$srcfile"`'
9337 enable_shared_with_static_runtimes=yes
9340 darwin* | rhapsody*)
9343 archive_cmds_need_lc=no
9344 hardcode_direct=no
9345 hardcode_automatic=yes
9346 hardcode_shlibpath_var=unsupported
9347 if test "$lt_cv_ld_force_load" = "yes"; then
9348 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\"`'
9349 else
9350 whole_archive_flag_spec=''
9352 link_all_deplibs=yes
9353 allow_undefined_flag="$_lt_dar_allow_undefined"
9354 case $cc_basename in
9355 ifort*) _lt_dar_can_shared=yes ;;
9356 *) _lt_dar_can_shared=$GCC ;;
9357 esac
9358 if test "$_lt_dar_can_shared" = "yes"; then
9359 output_verbose_link_cmd=func_echo_all
9360 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9361 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9362 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}"
9363 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}"
9365 else
9366 ld_shlibs=no
9371 dgux*)
9372 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9373 hardcode_libdir_flag_spec='-L$libdir'
9374 hardcode_shlibpath_var=no
9377 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9378 # support. Future versions do this automatically, but an explicit c++rt0.o
9379 # does not break anything, and helps significantly (at the cost of a little
9380 # extra space).
9381 freebsd2.2*)
9382 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9383 hardcode_libdir_flag_spec='-R$libdir'
9384 hardcode_direct=yes
9385 hardcode_shlibpath_var=no
9388 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9389 freebsd2.*)
9390 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9391 hardcode_direct=yes
9392 hardcode_minus_L=yes
9393 hardcode_shlibpath_var=no
9396 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9397 freebsd* | dragonfly*)
9398 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9399 hardcode_libdir_flag_spec='-R$libdir'
9400 hardcode_direct=yes
9401 hardcode_shlibpath_var=no
9404 hpux9*)
9405 if test "$GCC" = yes; then
9406 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'
9407 else
9408 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'
9410 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9411 hardcode_libdir_separator=:
9412 hardcode_direct=yes
9414 # hardcode_minus_L: Not really in the search PATH,
9415 # but as the default location of the library.
9416 hardcode_minus_L=yes
9417 export_dynamic_flag_spec='${wl}-E'
9420 hpux10*)
9421 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9422 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9423 else
9424 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9426 if test "$with_gnu_ld" = no; then
9427 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9428 hardcode_libdir_flag_spec_ld='+b $libdir'
9429 hardcode_libdir_separator=:
9430 hardcode_direct=yes
9431 hardcode_direct_absolute=yes
9432 export_dynamic_flag_spec='${wl}-E'
9433 # hardcode_minus_L: Not really in the search PATH,
9434 # but as the default location of the library.
9435 hardcode_minus_L=yes
9439 hpux11*)
9440 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9441 case $host_cpu in
9442 hppa*64*)
9443 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9445 ia64*)
9446 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9449 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9451 esac
9452 else
9453 case $host_cpu in
9454 hppa*64*)
9455 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9457 ia64*)
9458 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9462 # Older versions of the 11.00 compiler do not understand -b yet
9463 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9465 $as_echo_n "checking if $CC understands -b... " >&6; }
9466 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9467 $as_echo_n "(cached) " >&6
9468 else
9469 lt_cv_prog_compiler__b=no
9470 save_LDFLAGS="$LDFLAGS"
9471 LDFLAGS="$LDFLAGS -b"
9472 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9473 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9474 # The linker can only warn and ignore the option if not recognized
9475 # So say no if there are warnings
9476 if test -s conftest.err; then
9477 # Append any errors to the config.log.
9478 cat conftest.err 1>&5
9479 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9480 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9481 if diff conftest.exp conftest.er2 >/dev/null; then
9482 lt_cv_prog_compiler__b=yes
9484 else
9485 lt_cv_prog_compiler__b=yes
9488 $RM -r conftest*
9489 LDFLAGS="$save_LDFLAGS"
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9493 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9495 if test x"$lt_cv_prog_compiler__b" = xyes; then
9496 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9497 else
9498 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9502 esac
9504 if test "$with_gnu_ld" = no; then
9505 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9506 hardcode_libdir_separator=:
9508 case $host_cpu in
9509 hppa*64*|ia64*)
9510 hardcode_direct=no
9511 hardcode_shlibpath_var=no
9514 hardcode_direct=yes
9515 hardcode_direct_absolute=yes
9516 export_dynamic_flag_spec='${wl}-E'
9518 # hardcode_minus_L: Not really in the search PATH,
9519 # but as the default location of the library.
9520 hardcode_minus_L=yes
9522 esac
9526 irix5* | irix6* | nonstopux*)
9527 if test "$GCC" = yes; then
9528 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'
9529 # Try to use the -exported_symbol ld option, if it does not
9530 # work, assume that -exports_file does not work either and
9531 # implicitly export all symbols.
9532 save_LDFLAGS="$LDFLAGS"
9533 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9535 /* end confdefs.h. */
9536 int foo(void) {}
9537 _ACEOF
9538 if ac_fn_c_try_link "$LINENO"; then :
9539 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'
9542 rm -f core conftest.err conftest.$ac_objext \
9543 conftest$ac_exeext conftest.$ac_ext
9544 LDFLAGS="$save_LDFLAGS"
9545 else
9546 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'
9547 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'
9549 archive_cmds_need_lc='no'
9550 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9551 hardcode_libdir_separator=:
9552 inherit_rpath=yes
9553 link_all_deplibs=yes
9556 netbsd*)
9557 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9558 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9559 else
9560 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9562 hardcode_libdir_flag_spec='-R$libdir'
9563 hardcode_direct=yes
9564 hardcode_shlibpath_var=no
9567 newsos6)
9568 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9569 hardcode_direct=yes
9570 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9571 hardcode_libdir_separator=:
9572 hardcode_shlibpath_var=no
9575 *nto* | *qnx*)
9578 openbsd*)
9579 if test -f /usr/libexec/ld.so; then
9580 hardcode_direct=yes
9581 hardcode_shlibpath_var=no
9582 hardcode_direct_absolute=yes
9583 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9584 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9585 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9586 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9587 export_dynamic_flag_spec='${wl}-E'
9588 else
9589 case $host_os in
9590 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9591 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9592 hardcode_libdir_flag_spec='-R$libdir'
9595 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9596 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9598 esac
9600 else
9601 ld_shlibs=no
9605 os2*)
9606 hardcode_libdir_flag_spec='-L$libdir'
9607 hardcode_minus_L=yes
9608 allow_undefined_flag=unsupported
9609 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'
9610 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9613 osf3*)
9614 if test "$GCC" = yes; then
9615 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9616 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'
9617 else
9618 allow_undefined_flag=' -expect_unresolved \*'
9619 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'
9621 archive_cmds_need_lc='no'
9622 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9623 hardcode_libdir_separator=:
9626 osf4* | osf5*) # as osf3* with the addition of -msym flag
9627 if test "$GCC" = yes; then
9628 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9629 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'
9630 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9631 else
9632 allow_undefined_flag=' -expect_unresolved \*'
9633 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'
9634 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~
9635 $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'
9637 # Both c and cxx compiler support -rpath directly
9638 hardcode_libdir_flag_spec='-rpath $libdir'
9640 archive_cmds_need_lc='no'
9641 hardcode_libdir_separator=:
9644 solaris*)
9645 no_undefined_flag=' -z defs'
9646 if test "$GCC" = yes; then
9647 wlarc='${wl}'
9648 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9649 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9650 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9651 else
9652 case `$CC -V 2>&1` in
9653 *"Compilers 5.0"*)
9654 wlarc=''
9655 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9656 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9657 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9660 wlarc='${wl}'
9661 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9662 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9663 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9665 esac
9667 hardcode_libdir_flag_spec='-R$libdir'
9668 hardcode_shlibpath_var=no
9669 case $host_os in
9670 solaris2.[0-5] | solaris2.[0-5].*) ;;
9672 # The compiler driver will combine and reorder linker options,
9673 # but understands `-z linker_flag'. GCC discards it without `$wl',
9674 # but is careful enough not to reorder.
9675 # Supported since Solaris 2.6 (maybe 2.5.1?)
9676 if test "$GCC" = yes; then
9677 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9678 else
9679 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9682 esac
9683 link_all_deplibs=yes
9686 sunos4*)
9687 if test "x$host_vendor" = xsequent; then
9688 # Use $CC to link under sequent, because it throws in some extra .o
9689 # files that make .init and .fini sections work.
9690 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9691 else
9692 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9694 hardcode_libdir_flag_spec='-L$libdir'
9695 hardcode_direct=yes
9696 hardcode_minus_L=yes
9697 hardcode_shlibpath_var=no
9700 sysv4)
9701 case $host_vendor in
9702 sni)
9703 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9704 hardcode_direct=yes # is this really true???
9706 siemens)
9707 ## LD is ld it makes a PLAMLIB
9708 ## CC just makes a GrossModule.
9709 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9710 reload_cmds='$CC -r -o $output$reload_objs'
9711 hardcode_direct=no
9713 motorola)
9714 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9715 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9717 esac
9718 runpath_var='LD_RUN_PATH'
9719 hardcode_shlibpath_var=no
9722 sysv4.3*)
9723 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9724 hardcode_shlibpath_var=no
9725 export_dynamic_flag_spec='-Bexport'
9728 sysv4*MP*)
9729 if test -d /usr/nec; then
9730 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9731 hardcode_shlibpath_var=no
9732 runpath_var=LD_RUN_PATH
9733 hardcode_runpath_var=yes
9734 ld_shlibs=yes
9738 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9739 no_undefined_flag='${wl}-z,text'
9740 archive_cmds_need_lc=no
9741 hardcode_shlibpath_var=no
9742 runpath_var='LD_RUN_PATH'
9744 if test "$GCC" = yes; then
9745 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9746 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9747 else
9748 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9749 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9753 sysv5* | sco3.2v5* | sco5v6*)
9754 # Note: We can NOT use -z defs as we might desire, because we do not
9755 # link with -lc, and that would cause any symbols used from libc to
9756 # always be unresolved, which means just about no library would
9757 # ever link correctly. If we're not using GNU ld we use -z text
9758 # though, which does catch some bad symbols but isn't as heavy-handed
9759 # as -z defs.
9760 no_undefined_flag='${wl}-z,text'
9761 allow_undefined_flag='${wl}-z,nodefs'
9762 archive_cmds_need_lc=no
9763 hardcode_shlibpath_var=no
9764 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9765 hardcode_libdir_separator=':'
9766 link_all_deplibs=yes
9767 export_dynamic_flag_spec='${wl}-Bexport'
9768 runpath_var='LD_RUN_PATH'
9770 if test "$GCC" = yes; then
9771 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9772 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9773 else
9774 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9775 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9779 uts4*)
9780 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9781 hardcode_libdir_flag_spec='-L$libdir'
9782 hardcode_shlibpath_var=no
9786 ld_shlibs=no
9788 esac
9790 if test x$host_vendor = xsni; then
9791 case $host in
9792 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9793 export_dynamic_flag_spec='${wl}-Blargedynsym'
9795 esac
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9800 $as_echo "$ld_shlibs" >&6; }
9801 test "$ld_shlibs" = no && can_build_shared=no
9803 with_gnu_ld=$with_gnu_ld
9820 # Do we need to explicitly link libc?
9822 case "x$archive_cmds_need_lc" in
9823 x|xyes)
9824 # Assume -lc should be added
9825 archive_cmds_need_lc=yes
9827 if test "$enable_shared" = yes && test "$GCC" = yes; then
9828 case $archive_cmds in
9829 *'~'*)
9830 # FIXME: we may have to deal with multi-command sequences.
9832 '$CC '*)
9833 # Test whether the compiler implicitly links with -lc since on some
9834 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9835 # to ld, don't add -lc before -lgcc.
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9837 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9838 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9839 $as_echo_n "(cached) " >&6
9840 else
9841 $RM conftest*
9842 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9844 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9845 (eval $ac_compile) 2>&5
9846 ac_status=$?
9847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9848 test $ac_status = 0; } 2>conftest.err; then
9849 soname=conftest
9850 lib=conftest
9851 libobjs=conftest.$ac_objext
9852 deplibs=
9853 wl=$lt_prog_compiler_wl
9854 pic_flag=$lt_prog_compiler_pic
9855 compiler_flags=-v
9856 linker_flags=-v
9857 verstring=
9858 output_objdir=.
9859 libname=conftest
9860 lt_save_allow_undefined_flag=$allow_undefined_flag
9861 allow_undefined_flag=
9862 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9863 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9864 ac_status=$?
9865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9866 test $ac_status = 0; }
9867 then
9868 lt_cv_archive_cmds_need_lc=no
9869 else
9870 lt_cv_archive_cmds_need_lc=yes
9872 allow_undefined_flag=$lt_save_allow_undefined_flag
9873 else
9874 cat conftest.err 1>&5
9876 $RM conftest*
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9880 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9881 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9883 esac
9886 esac
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10045 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10047 if test "$GCC" = yes; then
10048 case $host_os in
10049 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10050 *) lt_awk_arg="/^libraries:/" ;;
10051 esac
10052 case $host_os in
10053 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10054 *) lt_sed_strip_eq="s,=/,/,g" ;;
10055 esac
10056 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10057 case $lt_search_path_spec in
10058 *\;*)
10059 # if the path contains ";" then we assume it to be the separator
10060 # otherwise default to the standard path separator (i.e. ":") - it is
10061 # assumed that no part of a normal pathname contains ";" but that should
10062 # okay in the real world where ";" in dirpaths is itself problematic.
10063 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10066 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10068 esac
10069 # Ok, now we have the path, separated by spaces, we can step through it
10070 # and add multilib dir if necessary.
10071 lt_tmp_lt_search_path_spec=
10072 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10073 for lt_sys_path in $lt_search_path_spec; do
10074 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10075 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10076 else
10077 test -d "$lt_sys_path" && \
10078 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10080 done
10081 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10082 BEGIN {RS=" "; FS="/|\n";} {
10083 lt_foo="";
10084 lt_count=0;
10085 for (lt_i = NF; lt_i > 0; lt_i--) {
10086 if ($lt_i != "" && $lt_i != ".") {
10087 if ($lt_i == "..") {
10088 lt_count++;
10089 } else {
10090 if (lt_count == 0) {
10091 lt_foo="/" $lt_i lt_foo;
10092 } else {
10093 lt_count--;
10098 if (lt_foo != "") { lt_freq[lt_foo]++; }
10099 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10101 # AWK program above erroneously prepends '/' to C:/dos/paths
10102 # for these hosts.
10103 case $host_os in
10104 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10105 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10106 esac
10107 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10108 else
10109 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10111 library_names_spec=
10112 libname_spec='lib$name'
10113 soname_spec=
10114 shrext_cmds=".so"
10115 postinstall_cmds=
10116 postuninstall_cmds=
10117 finish_cmds=
10118 finish_eval=
10119 shlibpath_var=
10120 shlibpath_overrides_runpath=unknown
10121 version_type=none
10122 dynamic_linker="$host_os ld.so"
10123 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10124 need_lib_prefix=unknown
10125 hardcode_into_libs=no
10127 # when you set need_version to no, make sure it does not cause -set_version
10128 # flags to be left without arguments
10129 need_version=unknown
10131 case $host_os in
10132 aix3*)
10133 version_type=linux
10134 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10135 shlibpath_var=LIBPATH
10137 # AIX 3 has no versioning support, so we append a major version to the name.
10138 soname_spec='${libname}${release}${shared_ext}$major'
10141 aix[4-9]*)
10142 version_type=linux
10143 need_lib_prefix=no
10144 need_version=no
10145 hardcode_into_libs=yes
10146 if test "$host_cpu" = ia64; then
10147 # AIX 5 supports IA64
10148 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10149 shlibpath_var=LD_LIBRARY_PATH
10150 else
10151 # With GCC up to 2.95.x, collect2 would create an import file
10152 # for dependence libraries. The import file would start with
10153 # the line `#! .'. This would cause the generated library to
10154 # depend on `.', always an invalid library. This was fixed in
10155 # development snapshots of GCC prior to 3.0.
10156 case $host_os in
10157 aix4 | aix4.[01] | aix4.[01].*)
10158 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10159 echo ' yes '
10160 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10162 else
10163 can_build_shared=no
10166 esac
10167 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10168 # soname into executable. Probably we can add versioning support to
10169 # collect2, so additional links can be useful in future.
10170 if test "$aix_use_runtimelinking" = yes; then
10171 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10172 # instead of lib<name>.a to let people know that these are not
10173 # typical AIX shared libraries.
10174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10175 else
10176 # We preserve .a as extension for shared libraries through AIX4.2
10177 # and later when we are not doing run time linking.
10178 library_names_spec='${libname}${release}.a $libname.a'
10179 soname_spec='${libname}${release}${shared_ext}$major'
10181 shlibpath_var=LIBPATH
10185 amigaos*)
10186 case $host_cpu in
10187 powerpc)
10188 # Since July 2007 AmigaOS4 officially supports .so libraries.
10189 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10192 m68k)
10193 library_names_spec='$libname.ixlibrary $libname.a'
10194 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10195 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'
10197 esac
10200 beos*)
10201 library_names_spec='${libname}${shared_ext}'
10202 dynamic_linker="$host_os ld.so"
10203 shlibpath_var=LIBRARY_PATH
10206 bsdi[45]*)
10207 version_type=linux
10208 need_version=no
10209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10210 soname_spec='${libname}${release}${shared_ext}$major'
10211 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10212 shlibpath_var=LD_LIBRARY_PATH
10213 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10214 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10215 # the default ld.so.conf also contains /usr/contrib/lib and
10216 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10217 # libtool to hard-code these into programs
10220 cygwin* | mingw* | pw32* | cegcc*)
10221 version_type=windows
10222 shrext_cmds=".dll"
10223 need_version=no
10224 need_lib_prefix=no
10226 case $GCC,$host_os in
10227 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10228 library_names_spec='$libname.dll.a'
10229 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10230 postinstall_cmds='base_file=`basename \${file}`~
10231 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10232 dldir=$destdir/`dirname \$dlpath`~
10233 test -d \$dldir || mkdir -p \$dldir~
10234 $install_prog $dir/$dlname \$dldir/$dlname~
10235 chmod a+x \$dldir/$dlname~
10236 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10237 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10239 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10240 dlpath=$dir/\$dldll~
10241 $RM \$dlpath'
10242 shlibpath_overrides_runpath=yes
10244 case $host_os in
10245 cygwin*)
10246 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10247 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10249 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10251 mingw* | cegcc*)
10252 # MinGW DLLs use traditional 'lib' prefix
10253 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10255 pw32*)
10256 # pw32 DLLs use 'pw' prefix rather than 'lib'
10257 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10259 esac
10263 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10265 esac
10266 dynamic_linker='Win32 ld.exe'
10267 # FIXME: first we should search . and the directory the executable is in
10268 shlibpath_var=PATH
10271 darwin* | rhapsody*)
10272 dynamic_linker="$host_os dyld"
10273 version_type=darwin
10274 need_lib_prefix=no
10275 need_version=no
10276 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10277 soname_spec='${libname}${release}${major}$shared_ext'
10278 shlibpath_overrides_runpath=yes
10279 shlibpath_var=DYLD_LIBRARY_PATH
10280 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10282 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10283 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10286 dgux*)
10287 version_type=linux
10288 need_lib_prefix=no
10289 need_version=no
10290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10291 soname_spec='${libname}${release}${shared_ext}$major'
10292 shlibpath_var=LD_LIBRARY_PATH
10295 freebsd* | dragonfly*)
10296 # DragonFly does not have aout. When/if they implement a new
10297 # versioning mechanism, adjust this.
10298 if test -x /usr/bin/objformat; then
10299 objformat=`/usr/bin/objformat`
10300 else
10301 case $host_os in
10302 freebsd[23].*) objformat=aout ;;
10303 *) objformat=elf ;;
10304 esac
10306 version_type=freebsd-$objformat
10307 case $version_type in
10308 freebsd-elf*)
10309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10310 need_version=no
10311 need_lib_prefix=no
10313 freebsd-*)
10314 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10315 need_version=yes
10317 esac
10318 shlibpath_var=LD_LIBRARY_PATH
10319 case $host_os in
10320 freebsd2.*)
10321 shlibpath_overrides_runpath=yes
10323 freebsd3.[01]* | freebsdelf3.[01]*)
10324 shlibpath_overrides_runpath=yes
10325 hardcode_into_libs=yes
10327 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10328 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10329 shlibpath_overrides_runpath=no
10330 hardcode_into_libs=yes
10332 *) # from 4.6 on, and DragonFly
10333 shlibpath_overrides_runpath=yes
10334 hardcode_into_libs=yes
10336 esac
10339 gnu*)
10340 version_type=linux
10341 need_lib_prefix=no
10342 need_version=no
10343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10344 soname_spec='${libname}${release}${shared_ext}$major'
10345 shlibpath_var=LD_LIBRARY_PATH
10346 hardcode_into_libs=yes
10349 haiku*)
10350 version_type=linux
10351 need_lib_prefix=no
10352 need_version=no
10353 dynamic_linker="$host_os runtime_loader"
10354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10355 soname_spec='${libname}${release}${shared_ext}$major'
10356 shlibpath_var=LIBRARY_PATH
10357 shlibpath_overrides_runpath=yes
10358 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10359 hardcode_into_libs=yes
10362 hpux9* | hpux10* | hpux11*)
10363 # Give a soname corresponding to the major version so that dld.sl refuses to
10364 # link against other versions.
10365 version_type=sunos
10366 need_lib_prefix=no
10367 need_version=no
10368 case $host_cpu in
10369 ia64*)
10370 shrext_cmds='.so'
10371 hardcode_into_libs=yes
10372 dynamic_linker="$host_os dld.so"
10373 shlibpath_var=LD_LIBRARY_PATH
10374 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10376 soname_spec='${libname}${release}${shared_ext}$major'
10377 if test "X$HPUX_IA64_MODE" = X32; then
10378 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10379 else
10380 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10382 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10384 hppa*64*)
10385 shrext_cmds='.sl'
10386 hardcode_into_libs=yes
10387 dynamic_linker="$host_os dld.sl"
10388 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10389 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10391 soname_spec='${libname}${release}${shared_ext}$major'
10392 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10393 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10396 shrext_cmds='.sl'
10397 dynamic_linker="$host_os dld.sl"
10398 shlibpath_var=SHLIB_PATH
10399 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10401 soname_spec='${libname}${release}${shared_ext}$major'
10403 esac
10404 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10405 postinstall_cmds='chmod 555 $lib'
10406 # or fails outright, so override atomically:
10407 install_override_mode=555
10410 interix[3-9]*)
10411 version_type=linux
10412 need_lib_prefix=no
10413 need_version=no
10414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10415 soname_spec='${libname}${release}${shared_ext}$major'
10416 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10417 shlibpath_var=LD_LIBRARY_PATH
10418 shlibpath_overrides_runpath=no
10419 hardcode_into_libs=yes
10422 irix5* | irix6* | nonstopux*)
10423 case $host_os in
10424 nonstopux*) version_type=nonstopux ;;
10426 if test "$lt_cv_prog_gnu_ld" = yes; then
10427 version_type=linux
10428 else
10429 version_type=irix
10430 fi ;;
10431 esac
10432 need_lib_prefix=no
10433 need_version=no
10434 soname_spec='${libname}${release}${shared_ext}$major'
10435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10436 case $host_os in
10437 irix5* | nonstopux*)
10438 libsuff= shlibsuff=
10441 case $LD in # libtool.m4 will add one of these switches to LD
10442 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10443 libsuff= shlibsuff= libmagic=32-bit;;
10444 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10445 libsuff=32 shlibsuff=N32 libmagic=N32;;
10446 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10447 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10448 *) libsuff= shlibsuff= libmagic=never-match;;
10449 esac
10451 esac
10452 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10453 shlibpath_overrides_runpath=no
10454 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10455 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10456 hardcode_into_libs=yes
10459 # No shared lib support for Linux oldld, aout, or coff.
10460 linux*oldld* | linux*aout* | linux*coff*)
10461 dynamic_linker=no
10464 # This must be Linux ELF.
10465 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10466 version_type=linux
10467 need_lib_prefix=no
10468 need_version=no
10469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10470 soname_spec='${libname}${release}${shared_ext}$major'
10471 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10472 shlibpath_var=LD_LIBRARY_PATH
10473 shlibpath_overrides_runpath=no
10475 # Some binutils ld are patched to set DT_RUNPATH
10476 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10477 $as_echo_n "(cached) " >&6
10478 else
10479 lt_cv_shlibpath_overrides_runpath=no
10480 save_LDFLAGS=$LDFLAGS
10481 save_libdir=$libdir
10482 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10483 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10485 /* end confdefs.h. */
10488 main ()
10492 return 0;
10494 _ACEOF
10495 if ac_fn_c_try_link "$LINENO"; then :
10496 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10497 lt_cv_shlibpath_overrides_runpath=yes
10500 rm -f core conftest.err conftest.$ac_objext \
10501 conftest$ac_exeext conftest.$ac_ext
10502 LDFLAGS=$save_LDFLAGS
10503 libdir=$save_libdir
10507 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10509 # This implies no fast_install, which is unacceptable.
10510 # Some rework will be needed to allow for fast_install
10511 # before this can be enabled.
10512 hardcode_into_libs=yes
10514 # Append ld.so.conf contents to the search path
10515 if test -f /etc/ld.so.conf; then
10516 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' ' '`
10517 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10520 # We used to test for /lib/ld.so.1 and disable shared libraries on
10521 # powerpc, because MkLinux only supported shared libraries with the
10522 # GNU dynamic linker. Since this was broken with cross compilers,
10523 # most powerpc-linux boxes support dynamic linking these days and
10524 # people can always --disable-shared, the test was removed, and we
10525 # assume the GNU/Linux dynamic linker is in use.
10526 dynamic_linker='GNU/Linux ld.so'
10529 netbsd*)
10530 version_type=sunos
10531 need_lib_prefix=no
10532 need_version=no
10533 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10535 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10536 dynamic_linker='NetBSD (a.out) ld.so'
10537 else
10538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10539 soname_spec='${libname}${release}${shared_ext}$major'
10540 dynamic_linker='NetBSD ld.elf_so'
10542 shlibpath_var=LD_LIBRARY_PATH
10543 shlibpath_overrides_runpath=yes
10544 hardcode_into_libs=yes
10547 newsos6)
10548 version_type=linux
10549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10550 shlibpath_var=LD_LIBRARY_PATH
10551 shlibpath_overrides_runpath=yes
10554 *nto* | *qnx*)
10555 version_type=qnx
10556 need_lib_prefix=no
10557 need_version=no
10558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10559 soname_spec='${libname}${release}${shared_ext}$major'
10560 shlibpath_var=LD_LIBRARY_PATH
10561 shlibpath_overrides_runpath=no
10562 hardcode_into_libs=yes
10563 dynamic_linker='ldqnx.so'
10566 openbsd*)
10567 version_type=sunos
10568 sys_lib_dlsearch_path_spec="/usr/lib"
10569 need_lib_prefix=no
10570 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10571 case $host_os in
10572 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10573 *) need_version=no ;;
10574 esac
10575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10576 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10577 shlibpath_var=LD_LIBRARY_PATH
10578 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10579 case $host_os in
10580 openbsd2.[89] | openbsd2.[89].*)
10581 shlibpath_overrides_runpath=no
10584 shlibpath_overrides_runpath=yes
10586 esac
10587 else
10588 shlibpath_overrides_runpath=yes
10592 os2*)
10593 libname_spec='$name'
10594 shrext_cmds=".dll"
10595 need_lib_prefix=no
10596 library_names_spec='$libname${shared_ext} $libname.a'
10597 dynamic_linker='OS/2 ld.exe'
10598 shlibpath_var=LIBPATH
10601 osf3* | osf4* | osf5*)
10602 version_type=osf
10603 need_lib_prefix=no
10604 need_version=no
10605 soname_spec='${libname}${release}${shared_ext}$major'
10606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10607 shlibpath_var=LD_LIBRARY_PATH
10608 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10609 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10612 rdos*)
10613 dynamic_linker=no
10616 solaris*)
10617 version_type=linux
10618 need_lib_prefix=no
10619 need_version=no
10620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10621 soname_spec='${libname}${release}${shared_ext}$major'
10622 shlibpath_var=LD_LIBRARY_PATH
10623 shlibpath_overrides_runpath=yes
10624 hardcode_into_libs=yes
10625 # ldd complains unless libraries are executable
10626 postinstall_cmds='chmod +x $lib'
10629 sunos4*)
10630 version_type=sunos
10631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10632 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10633 shlibpath_var=LD_LIBRARY_PATH
10634 shlibpath_overrides_runpath=yes
10635 if test "$with_gnu_ld" = yes; then
10636 need_lib_prefix=no
10638 need_version=yes
10641 sysv4 | sysv4.3*)
10642 version_type=linux
10643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10644 soname_spec='${libname}${release}${shared_ext}$major'
10645 shlibpath_var=LD_LIBRARY_PATH
10646 case $host_vendor in
10647 sni)
10648 shlibpath_overrides_runpath=no
10649 need_lib_prefix=no
10650 runpath_var=LD_RUN_PATH
10652 siemens)
10653 need_lib_prefix=no
10655 motorola)
10656 need_lib_prefix=no
10657 need_version=no
10658 shlibpath_overrides_runpath=no
10659 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10661 esac
10664 sysv4*MP*)
10665 if test -d /usr/nec ;then
10666 version_type=linux
10667 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10668 soname_spec='$libname${shared_ext}.$major'
10669 shlibpath_var=LD_LIBRARY_PATH
10673 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10674 version_type=freebsd-elf
10675 need_lib_prefix=no
10676 need_version=no
10677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10678 soname_spec='${libname}${release}${shared_ext}$major'
10679 shlibpath_var=LD_LIBRARY_PATH
10680 shlibpath_overrides_runpath=yes
10681 hardcode_into_libs=yes
10682 if test "$with_gnu_ld" = yes; then
10683 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10684 else
10685 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10686 case $host_os in
10687 sco3.2v5*)
10688 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10690 esac
10692 sys_lib_dlsearch_path_spec='/usr/lib'
10695 tpf*)
10696 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10697 version_type=linux
10698 need_lib_prefix=no
10699 need_version=no
10700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10701 shlibpath_var=LD_LIBRARY_PATH
10702 shlibpath_overrides_runpath=no
10703 hardcode_into_libs=yes
10706 uts4*)
10707 version_type=linux
10708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10709 soname_spec='${libname}${release}${shared_ext}$major'
10710 shlibpath_var=LD_LIBRARY_PATH
10714 dynamic_linker=no
10716 esac
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10718 $as_echo "$dynamic_linker" >&6; }
10719 test "$dynamic_linker" = no && can_build_shared=no
10721 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10722 if test "$GCC" = yes; then
10723 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10726 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10727 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10729 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10730 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10825 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10826 hardcode_action=
10827 if test -n "$hardcode_libdir_flag_spec" ||
10828 test -n "$runpath_var" ||
10829 test "X$hardcode_automatic" = "Xyes" ; then
10831 # We can hardcode non-existent directories.
10832 if test "$hardcode_direct" != no &&
10833 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10834 # have to relink, otherwise we might link with an installed library
10835 # when we should be linking with a yet-to-be-installed one
10836 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10837 test "$hardcode_minus_L" != no; then
10838 # Linking always hardcodes the temporary library directory.
10839 hardcode_action=relink
10840 else
10841 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10842 hardcode_action=immediate
10844 else
10845 # We cannot hardcode anything, or else we can only hardcode existing
10846 # directories.
10847 hardcode_action=unsupported
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10850 $as_echo "$hardcode_action" >&6; }
10852 if test "$hardcode_action" = relink ||
10853 test "$inherit_rpath" = yes; then
10854 # Fast installation is not supported
10855 enable_fast_install=no
10856 elif test "$shlibpath_overrides_runpath" = yes ||
10857 test "$enable_shared" = no; then
10858 # Fast installation is not necessary
10859 enable_fast_install=needless
10867 if test "x$enable_dlopen" != xyes; then
10868 enable_dlopen=unknown
10869 enable_dlopen_self=unknown
10870 enable_dlopen_self_static=unknown
10871 else
10872 lt_cv_dlopen=no
10873 lt_cv_dlopen_libs=
10875 case $host_os in
10876 beos*)
10877 lt_cv_dlopen="load_add_on"
10878 lt_cv_dlopen_libs=
10879 lt_cv_dlopen_self=yes
10882 mingw* | pw32* | cegcc*)
10883 lt_cv_dlopen="LoadLibrary"
10884 lt_cv_dlopen_libs=
10887 cygwin*)
10888 lt_cv_dlopen="dlopen"
10889 lt_cv_dlopen_libs=
10892 darwin*)
10893 # if libdl is installed we need to link against it
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10895 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10896 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10897 $as_echo_n "(cached) " >&6
10898 else
10899 ac_check_lib_save_LIBS=$LIBS
10900 LIBS="-ldl $LIBS"
10901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10902 /* end confdefs.h. */
10904 /* Override any GCC internal prototype to avoid an error.
10905 Use char because int might match the return type of a GCC
10906 builtin and then its argument prototype would still apply. */
10907 #ifdef __cplusplus
10908 extern "C"
10909 #endif
10910 char dlopen ();
10912 main ()
10914 return dlopen ();
10916 return 0;
10918 _ACEOF
10919 if ac_fn_c_try_link "$LINENO"; then :
10920 ac_cv_lib_dl_dlopen=yes
10921 else
10922 ac_cv_lib_dl_dlopen=no
10924 rm -f core conftest.err conftest.$ac_objext \
10925 conftest$ac_exeext conftest.$ac_ext
10926 LIBS=$ac_check_lib_save_LIBS
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10929 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10930 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10931 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10932 else
10934 lt_cv_dlopen="dyld"
10935 lt_cv_dlopen_libs=
10936 lt_cv_dlopen_self=yes
10943 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10944 if test "x$ac_cv_func_shl_load" = x""yes; then :
10945 lt_cv_dlopen="shl_load"
10946 else
10947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10948 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10949 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10950 $as_echo_n "(cached) " >&6
10951 else
10952 ac_check_lib_save_LIBS=$LIBS
10953 LIBS="-ldld $LIBS"
10954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10955 /* end confdefs.h. */
10957 /* Override any GCC internal prototype to avoid an error.
10958 Use char because int might match the return type of a GCC
10959 builtin and then its argument prototype would still apply. */
10960 #ifdef __cplusplus
10961 extern "C"
10962 #endif
10963 char shl_load ();
10965 main ()
10967 return shl_load ();
10969 return 0;
10971 _ACEOF
10972 if ac_fn_c_try_link "$LINENO"; then :
10973 ac_cv_lib_dld_shl_load=yes
10974 else
10975 ac_cv_lib_dld_shl_load=no
10977 rm -f core conftest.err conftest.$ac_objext \
10978 conftest$ac_exeext conftest.$ac_ext
10979 LIBS=$ac_check_lib_save_LIBS
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10982 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10983 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10984 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10985 else
10986 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10987 if test "x$ac_cv_func_dlopen" = x""yes; then :
10988 lt_cv_dlopen="dlopen"
10989 else
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10991 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10992 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10993 $as_echo_n "(cached) " >&6
10994 else
10995 ac_check_lib_save_LIBS=$LIBS
10996 LIBS="-ldl $LIBS"
10997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10998 /* end confdefs.h. */
11000 /* Override any GCC internal prototype to avoid an error.
11001 Use char because int might match the return type of a GCC
11002 builtin and then its argument prototype would still apply. */
11003 #ifdef __cplusplus
11004 extern "C"
11005 #endif
11006 char dlopen ();
11008 main ()
11010 return dlopen ();
11012 return 0;
11014 _ACEOF
11015 if ac_fn_c_try_link "$LINENO"; then :
11016 ac_cv_lib_dl_dlopen=yes
11017 else
11018 ac_cv_lib_dl_dlopen=no
11020 rm -f core conftest.err conftest.$ac_objext \
11021 conftest$ac_exeext conftest.$ac_ext
11022 LIBS=$ac_check_lib_save_LIBS
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11025 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11026 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11027 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11028 else
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11030 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11031 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11032 $as_echo_n "(cached) " >&6
11033 else
11034 ac_check_lib_save_LIBS=$LIBS
11035 LIBS="-lsvld $LIBS"
11036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11037 /* end confdefs.h. */
11039 /* Override any GCC internal prototype to avoid an error.
11040 Use char because int might match the return type of a GCC
11041 builtin and then its argument prototype would still apply. */
11042 #ifdef __cplusplus
11043 extern "C"
11044 #endif
11045 char dlopen ();
11047 main ()
11049 return dlopen ();
11051 return 0;
11053 _ACEOF
11054 if ac_fn_c_try_link "$LINENO"; then :
11055 ac_cv_lib_svld_dlopen=yes
11056 else
11057 ac_cv_lib_svld_dlopen=no
11059 rm -f core conftest.err conftest.$ac_objext \
11060 conftest$ac_exeext conftest.$ac_ext
11061 LIBS=$ac_check_lib_save_LIBS
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11064 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11065 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11066 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11067 else
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11069 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11070 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11071 $as_echo_n "(cached) " >&6
11072 else
11073 ac_check_lib_save_LIBS=$LIBS
11074 LIBS="-ldld $LIBS"
11075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11076 /* end confdefs.h. */
11078 /* Override any GCC internal prototype to avoid an error.
11079 Use char because int might match the return type of a GCC
11080 builtin and then its argument prototype would still apply. */
11081 #ifdef __cplusplus
11082 extern "C"
11083 #endif
11084 char dld_link ();
11086 main ()
11088 return dld_link ();
11090 return 0;
11092 _ACEOF
11093 if ac_fn_c_try_link "$LINENO"; then :
11094 ac_cv_lib_dld_dld_link=yes
11095 else
11096 ac_cv_lib_dld_dld_link=no
11098 rm -f core conftest.err conftest.$ac_objext \
11099 conftest$ac_exeext conftest.$ac_ext
11100 LIBS=$ac_check_lib_save_LIBS
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11103 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11104 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11105 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11124 esac
11126 if test "x$lt_cv_dlopen" != xno; then
11127 enable_dlopen=yes
11128 else
11129 enable_dlopen=no
11132 case $lt_cv_dlopen in
11133 dlopen)
11134 save_CPPFLAGS="$CPPFLAGS"
11135 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11137 save_LDFLAGS="$LDFLAGS"
11138 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11140 save_LIBS="$LIBS"
11141 LIBS="$lt_cv_dlopen_libs $LIBS"
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11144 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11145 if test "${lt_cv_dlopen_self+set}" = set; then :
11146 $as_echo_n "(cached) " >&6
11147 else
11148 if test "$cross_compiling" = yes; then :
11149 lt_cv_dlopen_self=cross
11150 else
11151 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11152 lt_status=$lt_dlunknown
11153 cat > conftest.$ac_ext <<_LT_EOF
11154 #line 11154 "configure"
11155 #include "confdefs.h"
11157 #if HAVE_DLFCN_H
11158 #include <dlfcn.h>
11159 #endif
11161 #include <stdio.h>
11163 #ifdef RTLD_GLOBAL
11164 # define LT_DLGLOBAL RTLD_GLOBAL
11165 #else
11166 # ifdef DL_GLOBAL
11167 # define LT_DLGLOBAL DL_GLOBAL
11168 # else
11169 # define LT_DLGLOBAL 0
11170 # endif
11171 #endif
11173 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11174 find out it does not work in some platform. */
11175 #ifndef LT_DLLAZY_OR_NOW
11176 # ifdef RTLD_LAZY
11177 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11178 # else
11179 # ifdef DL_LAZY
11180 # define LT_DLLAZY_OR_NOW DL_LAZY
11181 # else
11182 # ifdef RTLD_NOW
11183 # define LT_DLLAZY_OR_NOW RTLD_NOW
11184 # else
11185 # ifdef DL_NOW
11186 # define LT_DLLAZY_OR_NOW DL_NOW
11187 # else
11188 # define LT_DLLAZY_OR_NOW 0
11189 # endif
11190 # endif
11191 # endif
11192 # endif
11193 #endif
11195 /* When -fvisbility=hidden is used, assume the code has been annotated
11196 correspondingly for the symbols needed. */
11197 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11198 void fnord () __attribute__((visibility("default")));
11199 #endif
11201 void fnord () { int i=42; }
11202 int main ()
11204 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11205 int status = $lt_dlunknown;
11207 if (self)
11209 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11210 else
11212 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11213 else puts (dlerror ());
11215 /* dlclose (self); */
11217 else
11218 puts (dlerror ());
11220 return status;
11222 _LT_EOF
11223 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11224 (eval $ac_link) 2>&5
11225 ac_status=$?
11226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11227 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11228 (./conftest; exit; ) >&5 2>/dev/null
11229 lt_status=$?
11230 case x$lt_status in
11231 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11232 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11233 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11234 esac
11235 else :
11236 # compilation failed
11237 lt_cv_dlopen_self=no
11240 rm -fr conftest*
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11245 $as_echo "$lt_cv_dlopen_self" >&6; }
11247 if test "x$lt_cv_dlopen_self" = xyes; then
11248 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11250 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11251 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11252 $as_echo_n "(cached) " >&6
11253 else
11254 if test "$cross_compiling" = yes; then :
11255 lt_cv_dlopen_self_static=cross
11256 else
11257 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11258 lt_status=$lt_dlunknown
11259 cat > conftest.$ac_ext <<_LT_EOF
11260 #line 11260 "configure"
11261 #include "confdefs.h"
11263 #if HAVE_DLFCN_H
11264 #include <dlfcn.h>
11265 #endif
11267 #include <stdio.h>
11269 #ifdef RTLD_GLOBAL
11270 # define LT_DLGLOBAL RTLD_GLOBAL
11271 #else
11272 # ifdef DL_GLOBAL
11273 # define LT_DLGLOBAL DL_GLOBAL
11274 # else
11275 # define LT_DLGLOBAL 0
11276 # endif
11277 #endif
11279 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11280 find out it does not work in some platform. */
11281 #ifndef LT_DLLAZY_OR_NOW
11282 # ifdef RTLD_LAZY
11283 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11284 # else
11285 # ifdef DL_LAZY
11286 # define LT_DLLAZY_OR_NOW DL_LAZY
11287 # else
11288 # ifdef RTLD_NOW
11289 # define LT_DLLAZY_OR_NOW RTLD_NOW
11290 # else
11291 # ifdef DL_NOW
11292 # define LT_DLLAZY_OR_NOW DL_NOW
11293 # else
11294 # define LT_DLLAZY_OR_NOW 0
11295 # endif
11296 # endif
11297 # endif
11298 # endif
11299 #endif
11301 /* When -fvisbility=hidden is used, assume the code has been annotated
11302 correspondingly for the symbols needed. */
11303 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11304 void fnord () __attribute__((visibility("default")));
11305 #endif
11307 void fnord () { int i=42; }
11308 int main ()
11310 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11311 int status = $lt_dlunknown;
11313 if (self)
11315 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11316 else
11318 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11319 else puts (dlerror ());
11321 /* dlclose (self); */
11323 else
11324 puts (dlerror ());
11326 return status;
11328 _LT_EOF
11329 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11330 (eval $ac_link) 2>&5
11331 ac_status=$?
11332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11333 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11334 (./conftest; exit; ) >&5 2>/dev/null
11335 lt_status=$?
11336 case x$lt_status in
11337 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11338 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11339 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11340 esac
11341 else :
11342 # compilation failed
11343 lt_cv_dlopen_self_static=no
11346 rm -fr conftest*
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11351 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11354 CPPFLAGS="$save_CPPFLAGS"
11355 LDFLAGS="$save_LDFLAGS"
11356 LIBS="$save_LIBS"
11358 esac
11360 case $lt_cv_dlopen_self in
11361 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11362 *) enable_dlopen_self=unknown ;;
11363 esac
11365 case $lt_cv_dlopen_self_static in
11366 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11367 *) enable_dlopen_self_static=unknown ;;
11368 esac
11387 striplib=
11388 old_striplib=
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11390 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11391 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11392 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11393 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11395 $as_echo "yes" >&6; }
11396 else
11397 # FIXME - insert some real tests, host_os isn't really good enough
11398 case $host_os in
11399 darwin*)
11400 if test -n "$STRIP" ; then
11401 striplib="$STRIP -x"
11402 old_striplib="$STRIP -S"
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11404 $as_echo "yes" >&6; }
11405 else
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11407 $as_echo "no" >&6; }
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11412 $as_echo "no" >&6; }
11414 esac
11428 # Report which library types will actually be built
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11430 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11432 $as_echo "$can_build_shared" >&6; }
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11435 $as_echo_n "checking whether to build shared libraries... " >&6; }
11436 test "$can_build_shared" = "no" && enable_shared=no
11438 # On AIX, shared libraries and static libraries use the same namespace, and
11439 # are all built from PIC.
11440 case $host_os in
11441 aix3*)
11442 test "$enable_shared" = yes && enable_static=no
11443 if test -n "$RANLIB"; then
11444 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11445 postinstall_cmds='$RANLIB $lib'
11449 aix[4-9]*)
11450 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11451 test "$enable_shared" = yes && enable_static=no
11454 esac
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11456 $as_echo "$enable_shared" >&6; }
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11459 $as_echo_n "checking whether to build static libraries... " >&6; }
11460 # Make sure either enable_shared or enable_static is yes.
11461 test "$enable_shared" = yes || enable_static=yes
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11463 $as_echo "$enable_static" >&6; }
11469 ac_ext=c
11470 ac_cpp='$CPP $CPPFLAGS'
11471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11475 CC="$lt_save_CC"
11489 ac_config_commands="$ac_config_commands libtool"
11494 # Only expand once:
11500 case $host in
11501 *-cygwin* | *-mingw*)
11502 # 'host' will be top-level target in the case of a target lib,
11503 # we must compare to with_cross_host to decide if this is a native
11504 # or cross-compiler and select where to install dlls appropriately.
11505 if test -n "$with_cross_host" &&
11506 test x"$with_cross_host" != x"no"; then
11507 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
11508 else
11509 lt_host_flags='-no-undefined -bindir "$(bindir)"';
11513 lt_host_flags=
11515 esac
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11524 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11525 # Check whether --enable-maintainer-mode was given.
11526 if test "${enable_maintainer_mode+set}" = set; then :
11527 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11528 else
11529 USE_MAINTAINER_MODE=no
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11533 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11534 if test $USE_MAINTAINER_MODE = yes; then
11535 MAINTAINER_MODE_TRUE=
11536 MAINTAINER_MODE_FALSE='#'
11537 else
11538 MAINTAINER_MODE_TRUE='#'
11539 MAINTAINER_MODE_FALSE=
11542 MAINT=$MAINTAINER_MODE_TRUE
11546 # Create a spec file, so that compile/link tests don't fail
11547 test -f libgfortran.spec || touch libgfortran.spec
11548 FCFLAGS="$FCFLAGS -L."
11550 # We need gfortran to compile parts of the library
11551 # We can't use AC_PROG_FC because it expects a fully working gfortran.
11552 #AC_PROG_FC(gfortran)
11553 case `echo $GFORTRAN` in
11554 -* | no* )
11555 FC=no ;;
11557 set dummy $GFORTRAN; ac_word=$2
11558 if test -x "$ac_word"; then
11559 FC="$GFORTRAN"
11560 else
11561 FC=no
11562 fi ;;
11563 esac
11564 ac_ext=${ac_fc_srcext-f}
11565 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11566 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11567 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11568 if test -n "$ac_tool_prefix"; then
11569 for ac_prog in gfortran
11571 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11572 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11574 $as_echo_n "checking for $ac_word... " >&6; }
11575 if test "${ac_cv_prog_FC+set}" = set; then :
11576 $as_echo_n "(cached) " >&6
11577 else
11578 if test -n "$FC"; then
11579 ac_cv_prog_FC="$FC" # Let the user override the test.
11580 else
11581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11582 for as_dir in $PATH
11584 IFS=$as_save_IFS
11585 test -z "$as_dir" && as_dir=.
11586 for ac_exec_ext in '' $ac_executable_extensions; do
11587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11588 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
11589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11590 break 2
11592 done
11593 done
11594 IFS=$as_save_IFS
11598 FC=$ac_cv_prog_FC
11599 if test -n "$FC"; then
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
11601 $as_echo "$FC" >&6; }
11602 else
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11604 $as_echo "no" >&6; }
11608 test -n "$FC" && break
11609 done
11611 if test -z "$FC"; then
11612 ac_ct_FC=$FC
11613 for ac_prog in gfortran
11615 # Extract the first word of "$ac_prog", so it can be a program name with args.
11616 set dummy $ac_prog; ac_word=$2
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11618 $as_echo_n "checking for $ac_word... " >&6; }
11619 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
11620 $as_echo_n "(cached) " >&6
11621 else
11622 if test -n "$ac_ct_FC"; then
11623 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
11624 else
11625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11626 for as_dir in $PATH
11628 IFS=$as_save_IFS
11629 test -z "$as_dir" && as_dir=.
11630 for ac_exec_ext in '' $ac_executable_extensions; do
11631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11632 ac_cv_prog_ac_ct_FC="$ac_prog"
11633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11634 break 2
11636 done
11637 done
11638 IFS=$as_save_IFS
11642 ac_ct_FC=$ac_cv_prog_ac_ct_FC
11643 if test -n "$ac_ct_FC"; then
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
11645 $as_echo "$ac_ct_FC" >&6; }
11646 else
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11648 $as_echo "no" >&6; }
11652 test -n "$ac_ct_FC" && break
11653 done
11655 if test "x$ac_ct_FC" = x; then
11656 FC=""
11657 else
11658 case $cross_compiling:$ac_tool_warned in
11659 yes:)
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11661 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11662 ac_tool_warned=yes ;;
11663 esac
11664 FC=$ac_ct_FC
11669 # Provide some information about the compiler.
11670 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
11671 set X $ac_compile
11672 ac_compiler=$2
11673 for ac_option in --version -v -V -qversion; do
11674 { { ac_try="$ac_compiler $ac_option >&5"
11675 case "(($ac_try" in
11676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11677 *) ac_try_echo=$ac_try;;
11678 esac
11679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11680 $as_echo "$ac_try_echo"; } >&5
11681 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11682 ac_status=$?
11683 if test -s conftest.err; then
11684 sed '10a\
11685 ... rest of stderr output deleted ...
11686 10q' conftest.err >conftest.er1
11687 cat conftest.er1 >&5
11688 rm -f conftest.er1 conftest.err
11690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11691 test $ac_status = 0; }
11692 done
11693 rm -f a.out
11695 # If we don't use `.F' as extension, the preprocessor is not run on the
11696 # input file. (Note that this only needs to work for GNU compilers.)
11697 ac_save_ext=$ac_ext
11698 ac_ext=F
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
11700 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
11701 if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
11702 $as_echo_n "(cached) " >&6
11703 else
11704 cat > conftest.$ac_ext <<_ACEOF
11705 program main
11706 #ifndef __GNUC__
11707 choke me
11708 #endif
11711 _ACEOF
11712 if ac_fn_fc_try_compile "$LINENO"; then :
11713 ac_compiler_gnu=yes
11714 else
11715 ac_compiler_gnu=no
11717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11718 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
11722 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
11723 ac_ext=$ac_save_ext
11724 ac_test_FCFLAGS=${FCFLAGS+set}
11725 ac_save_FCFLAGS=$FCFLAGS
11726 FCFLAGS=
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
11728 $as_echo_n "checking whether $FC accepts -g... " >&6; }
11729 if test "${ac_cv_prog_fc_g+set}" = set; then :
11730 $as_echo_n "(cached) " >&6
11731 else
11732 FCFLAGS=-g
11733 cat > conftest.$ac_ext <<_ACEOF
11734 program main
11737 _ACEOF
11738 if ac_fn_fc_try_compile "$LINENO"; then :
11739 ac_cv_prog_fc_g=yes
11740 else
11741 ac_cv_prog_fc_g=no
11743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
11747 $as_echo "$ac_cv_prog_fc_g" >&6; }
11748 if test "$ac_test_FCFLAGS" = set; then
11749 FCFLAGS=$ac_save_FCFLAGS
11750 elif test $ac_cv_prog_fc_g = yes; then
11751 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11752 FCFLAGS="-g -O2"
11753 else
11754 FCFLAGS="-g"
11756 else
11757 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11758 FCFLAGS="-O2"
11759 else
11760 FCFLAGS=
11764 ac_ext=c
11765 ac_cpp='$CPP $CPPFLAGS'
11766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11770 ac_ext=${ac_fc_srcext-f}
11771 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11772 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11773 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11776 if test -z "$FC" || test "X$FC" = "Xno"; then
11777 _lt_disable_FC=yes
11780 archive_cmds_need_lc_FC=no
11781 allow_undefined_flag_FC=
11782 always_export_symbols_FC=no
11783 archive_expsym_cmds_FC=
11784 export_dynamic_flag_spec_FC=
11785 hardcode_direct_FC=no
11786 hardcode_direct_absolute_FC=no
11787 hardcode_libdir_flag_spec_FC=
11788 hardcode_libdir_flag_spec_ld_FC=
11789 hardcode_libdir_separator_FC=
11790 hardcode_minus_L_FC=no
11791 hardcode_automatic_FC=no
11792 inherit_rpath_FC=no
11793 module_cmds_FC=
11794 module_expsym_cmds_FC=
11795 link_all_deplibs_FC=unknown
11796 old_archive_cmds_FC=$old_archive_cmds
11797 reload_flag_FC=$reload_flag
11798 reload_cmds_FC=$reload_cmds
11799 no_undefined_flag_FC=
11800 whole_archive_flag_spec_FC=
11801 enable_shared_with_static_runtimes_FC=no
11803 # Source file extension for fc test sources.
11804 ac_ext=${ac_fc_srcext-f}
11806 # Object file extension for compiled fc test sources.
11807 objext=o
11808 objext_FC=$objext
11810 # No sense in running all these tests if we already determined that
11811 # the FC compiler isn't working. Some variables (like enable_shared)
11812 # are currently assumed to apply to all compilers on this platform,
11813 # and will be corrupted by setting them based on a non-working compiler.
11814 if test "$_lt_disable_FC" != yes; then
11815 # Code to be used in simple compile tests
11816 lt_simple_compile_test_code="\
11817 subroutine t
11818 return
11822 # Code to be used in simple link tests
11823 lt_simple_link_test_code="\
11824 program t
11828 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11835 # If no C compiler was specified, use CC.
11836 LTCC=${LTCC-"$CC"}
11838 # If no C compiler flags were specified, use CFLAGS.
11839 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11841 # Allow CC to be a program name with arguments.
11842 compiler=$CC
11845 # save warnings/boilerplate of simple test code
11846 ac_outfile=conftest.$ac_objext
11847 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11848 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11849 _lt_compiler_boilerplate=`cat conftest.err`
11850 $RM conftest*
11852 ac_outfile=conftest.$ac_objext
11853 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11854 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11855 _lt_linker_boilerplate=`cat conftest.err`
11856 $RM -r conftest*
11859 # Allow CC to be a program name with arguments.
11860 lt_save_CC="$CC"
11861 lt_save_GCC=$GCC
11862 CC=${FC-"f95"}
11863 compiler=$CC
11864 GCC=$ac_cv_fc_compiler_gnu
11866 compiler_FC=$CC
11867 for cc_temp in $compiler""; do
11868 case $cc_temp in
11869 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11870 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11871 \-*) ;;
11872 *) break;;
11873 esac
11874 done
11875 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11878 if test -n "$compiler"; then
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11880 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11882 $as_echo "$can_build_shared" >&6; }
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11885 $as_echo_n "checking whether to build shared libraries... " >&6; }
11886 test "$can_build_shared" = "no" && enable_shared=no
11888 # On AIX, shared libraries and static libraries use the same namespace, and
11889 # are all built from PIC.
11890 case $host_os in
11891 aix3*)
11892 test "$enable_shared" = yes && enable_static=no
11893 if test -n "$RANLIB"; then
11894 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11895 postinstall_cmds='$RANLIB $lib'
11898 aix[4-9]*)
11899 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11900 test "$enable_shared" = yes && enable_static=no
11903 esac
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11905 $as_echo "$enable_shared" >&6; }
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11908 $as_echo_n "checking whether to build static libraries... " >&6; }
11909 # Make sure either enable_shared or enable_static is yes.
11910 test "$enable_shared" = yes || enable_static=yes
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11912 $as_echo "$enable_static" >&6; }
11914 GCC_FC="$ac_cv_fc_compiler_gnu"
11915 LD_FC="$LD"
11917 ## CAVEAT EMPTOR:
11918 ## There is no encapsulation within the following macros, do not change
11919 ## the running order or otherwise move them around unless you know exactly
11920 ## what you are doing...
11921 # Dependencies to place before and after the object being linked:
11922 predep_objects_FC=
11923 postdep_objects_FC=
11924 predeps_FC=
11925 postdeps_FC=
11926 compiler_lib_search_path_FC=
11928 cat > conftest.$ac_ext <<_LT_EOF
11929 subroutine foo
11930 implicit none
11931 integer a
11933 return
11935 _LT_EOF
11937 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11938 (eval $ac_compile) 2>&5
11939 ac_status=$?
11940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11941 test $ac_status = 0; }; then
11942 # Parse the compiler output and extract the necessary
11943 # objects, libraries and library flags.
11945 # Sentinel used to keep track of whether or not we are before
11946 # the conftest object file.
11947 pre_test_object_deps_done=no
11949 for p in `eval "$output_verbose_link_cmd"`; do
11950 case $p in
11952 -L* | -R* | -l*)
11953 # Some compilers place space between "-{L,R}" and the path.
11954 # Remove the space.
11955 if test $p = "-L" ||
11956 test $p = "-R"; then
11957 prev=$p
11958 continue
11959 else
11960 prev=
11963 if test "$pre_test_object_deps_done" = no; then
11964 case $p in
11965 -L* | -R*)
11966 # Internal compiler library paths should come after those
11967 # provided the user. The postdeps already come after the
11968 # user supplied libs so there is no need to process them.
11969 if test -z "$compiler_lib_search_path_FC"; then
11970 compiler_lib_search_path_FC="${prev}${p}"
11971 else
11972 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
11975 # The "-l" case would never come before the object being
11976 # linked, so don't bother handling this case.
11977 esac
11978 else
11979 if test -z "$postdeps_FC"; then
11980 postdeps_FC="${prev}${p}"
11981 else
11982 postdeps_FC="${postdeps_FC} ${prev}${p}"
11987 *.$objext)
11988 # This assumes that the test object file only shows up
11989 # once in the compiler output.
11990 if test "$p" = "conftest.$objext"; then
11991 pre_test_object_deps_done=yes
11992 continue
11995 if test "$pre_test_object_deps_done" = no; then
11996 if test -z "$predep_objects_FC"; then
11997 predep_objects_FC="$p"
11998 else
11999 predep_objects_FC="$predep_objects_FC $p"
12001 else
12002 if test -z "$postdep_objects_FC"; then
12003 postdep_objects_FC="$p"
12004 else
12005 postdep_objects_FC="$postdep_objects_FC $p"
12010 *) ;; # Ignore the rest.
12012 esac
12013 done
12015 # Clean up.
12016 rm -f a.out a.exe
12017 else
12018 echo "libtool.m4: error: problem compiling FC test program"
12021 $RM -f confest.$objext
12023 # PORTME: override above test on systems where it is broken
12026 case " $postdeps_FC " in
12027 *" -lc "*) archive_cmds_need_lc_FC=no ;;
12028 esac
12029 compiler_lib_search_dirs_FC=
12030 if test -n "${compiler_lib_search_path_FC}"; then
12031 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12064 lt_prog_compiler_wl_FC=
12065 lt_prog_compiler_pic_FC=
12066 lt_prog_compiler_static_FC=
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12069 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12071 if test "$GCC" = yes; then
12072 lt_prog_compiler_wl_FC='-Wl,'
12073 lt_prog_compiler_static_FC='-static'
12075 case $host_os in
12076 aix*)
12077 # All AIX code is PIC.
12078 if test "$host_cpu" = ia64; then
12079 # AIX 5 now supports IA64 processor
12080 lt_prog_compiler_static_FC='-Bstatic'
12082 lt_prog_compiler_pic_FC='-fPIC'
12085 amigaos*)
12086 case $host_cpu in
12087 powerpc)
12088 # see comment about AmigaOS4 .so support
12089 lt_prog_compiler_pic_FC='-fPIC'
12091 m68k)
12092 # FIXME: we need at least 68020 code to build shared libraries, but
12093 # adding the `-m68020' flag to GCC prevents building anything better,
12094 # like `-m68040'.
12095 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
12097 esac
12100 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12101 # PIC is the default for these OSes.
12104 mingw* | cygwin* | pw32* | os2* | cegcc*)
12105 # This hack is so that the source file can tell whether it is being
12106 # built for inclusion in a dll (and should export symbols for example).
12107 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12108 # (--disable-auto-import) libraries
12109 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12112 darwin* | rhapsody*)
12113 # PIC is the default on this platform
12114 # Common symbols not allowed in MH_DYLIB files
12115 lt_prog_compiler_pic_FC='-fno-common'
12118 haiku*)
12119 # PIC is the default for Haiku.
12120 # The "-static" flag exists, but is broken.
12121 lt_prog_compiler_static_FC=
12124 hpux*)
12125 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12126 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12127 # sets the default TLS model and affects inlining.
12128 case $host_cpu in
12129 hppa*64*)
12130 # +Z the default
12133 lt_prog_compiler_pic_FC='-fPIC'
12135 esac
12138 interix[3-9]*)
12139 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12140 # Instead, we relocate shared libraries at runtime.
12143 msdosdjgpp*)
12144 # Just because we use GCC doesn't mean we suddenly get shared libraries
12145 # on systems that don't support them.
12146 lt_prog_compiler_can_build_shared_FC=no
12147 enable_shared=no
12150 *nto* | *qnx*)
12151 # QNX uses GNU C++, but need to define -shared option too, otherwise
12152 # it will coredump.
12153 lt_prog_compiler_pic_FC='-fPIC -shared'
12156 sysv4*MP*)
12157 if test -d /usr/nec; then
12158 lt_prog_compiler_pic_FC=-Kconform_pic
12163 lt_prog_compiler_pic_FC='-fPIC'
12165 esac
12167 case $cc_basename in
12168 nvcc*) # Cuda Compiler Driver 2.2
12169 lt_prog_compiler_wl_FC='-Xlinker '
12170 lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
12172 esac
12173 else
12174 # PORTME Check for flag to pass linker flags through the system compiler.
12175 case $host_os in
12176 aix*)
12177 lt_prog_compiler_wl_FC='-Wl,'
12178 if test "$host_cpu" = ia64; then
12179 # AIX 5 now supports IA64 processor
12180 lt_prog_compiler_static_FC='-Bstatic'
12181 else
12182 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
12186 mingw* | cygwin* | pw32* | os2* | cegcc*)
12187 # This hack is so that the source file can tell whether it is being
12188 # built for inclusion in a dll (and should export symbols for example).
12189 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12192 hpux9* | hpux10* | hpux11*)
12193 lt_prog_compiler_wl_FC='-Wl,'
12194 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12195 # not for PA HP-UX.
12196 case $host_cpu in
12197 hppa*64*|ia64*)
12198 # +Z the default
12201 lt_prog_compiler_pic_FC='+Z'
12203 esac
12204 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12205 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
12208 irix5* | irix6* | nonstopux*)
12209 lt_prog_compiler_wl_FC='-Wl,'
12210 # PIC (with -KPIC) is the default.
12211 lt_prog_compiler_static_FC='-non_shared'
12214 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12215 case $cc_basename in
12216 # old Intel for x86_64 which still supported -KPIC.
12217 ecc*)
12218 lt_prog_compiler_wl_FC='-Wl,'
12219 lt_prog_compiler_pic_FC='-KPIC'
12220 lt_prog_compiler_static_FC='-static'
12222 # icc used to be incompatible with GCC.
12223 # ICC 10 doesn't accept -KPIC any more.
12224 icc* | ifort*)
12225 lt_prog_compiler_wl_FC='-Wl,'
12226 lt_prog_compiler_pic_FC='-fPIC'
12227 lt_prog_compiler_static_FC='-static'
12229 # Lahey Fortran 8.1.
12230 lf95*)
12231 lt_prog_compiler_wl_FC='-Wl,'
12232 lt_prog_compiler_pic_FC='--shared'
12233 lt_prog_compiler_static_FC='--static'
12235 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12236 # Portland Group compilers (*not* the Pentium gcc compiler,
12237 # which looks to be a dead project)
12238 lt_prog_compiler_wl_FC='-Wl,'
12239 lt_prog_compiler_pic_FC='-fpic'
12240 lt_prog_compiler_static_FC='-Bstatic'
12242 ccc*)
12243 lt_prog_compiler_wl_FC='-Wl,'
12244 # All Alpha code is PIC.
12245 lt_prog_compiler_static_FC='-non_shared'
12247 xl* | bgxl* | bgf* | mpixl*)
12248 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12249 lt_prog_compiler_wl_FC='-Wl,'
12250 lt_prog_compiler_pic_FC='-qpic'
12251 lt_prog_compiler_static_FC='-qstaticlink'
12254 case `$CC -V 2>&1 | sed 5q` in
12255 *Sun\ F* | *Sun*Fortran*)
12256 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12257 lt_prog_compiler_pic_FC='-KPIC'
12258 lt_prog_compiler_static_FC='-Bstatic'
12259 lt_prog_compiler_wl_FC=''
12261 *Sun\ C*)
12262 # Sun C 5.9
12263 lt_prog_compiler_pic_FC='-KPIC'
12264 lt_prog_compiler_static_FC='-Bstatic'
12265 lt_prog_compiler_wl_FC='-Wl,'
12267 esac
12269 esac
12272 newsos6)
12273 lt_prog_compiler_pic_FC='-KPIC'
12274 lt_prog_compiler_static_FC='-Bstatic'
12277 *nto* | *qnx*)
12278 # QNX uses GNU C++, but need to define -shared option too, otherwise
12279 # it will coredump.
12280 lt_prog_compiler_pic_FC='-fPIC -shared'
12283 osf3* | osf4* | osf5*)
12284 lt_prog_compiler_wl_FC='-Wl,'
12285 # All OSF/1 code is PIC.
12286 lt_prog_compiler_static_FC='-non_shared'
12289 rdos*)
12290 lt_prog_compiler_static_FC='-non_shared'
12293 solaris*)
12294 lt_prog_compiler_pic_FC='-KPIC'
12295 lt_prog_compiler_static_FC='-Bstatic'
12296 case $cc_basename in
12297 f77* | f90* | f95*)
12298 lt_prog_compiler_wl_FC='-Qoption ld ';;
12300 lt_prog_compiler_wl_FC='-Wl,';;
12301 esac
12304 sunos4*)
12305 lt_prog_compiler_wl_FC='-Qoption ld '
12306 lt_prog_compiler_pic_FC='-PIC'
12307 lt_prog_compiler_static_FC='-Bstatic'
12310 sysv4 | sysv4.2uw2* | sysv4.3*)
12311 lt_prog_compiler_wl_FC='-Wl,'
12312 lt_prog_compiler_pic_FC='-KPIC'
12313 lt_prog_compiler_static_FC='-Bstatic'
12316 sysv4*MP*)
12317 if test -d /usr/nec ;then
12318 lt_prog_compiler_pic_FC='-Kconform_pic'
12319 lt_prog_compiler_static_FC='-Bstatic'
12323 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12324 lt_prog_compiler_wl_FC='-Wl,'
12325 lt_prog_compiler_pic_FC='-KPIC'
12326 lt_prog_compiler_static_FC='-Bstatic'
12329 unicos*)
12330 lt_prog_compiler_wl_FC='-Wl,'
12331 lt_prog_compiler_can_build_shared_FC=no
12334 uts4*)
12335 lt_prog_compiler_pic_FC='-pic'
12336 lt_prog_compiler_static_FC='-Bstatic'
12340 lt_prog_compiler_can_build_shared_FC=no
12342 esac
12345 case $host_os in
12346 # For platforms which do not support PIC, -DPIC is meaningless:
12347 *djgpp*)
12348 lt_prog_compiler_pic_FC=
12351 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
12353 esac
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
12355 $as_echo "$lt_prog_compiler_pic_FC" >&6; }
12360 # Check to make sure the PIC flag actually works.
12362 if test -n "$lt_prog_compiler_pic_FC"; then
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
12364 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
12365 if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then :
12366 $as_echo_n "(cached) " >&6
12367 else
12368 lt_cv_prog_compiler_pic_works_FC=no
12369 ac_outfile=conftest.$ac_objext
12370 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12371 lt_compiler_flag="$lt_prog_compiler_pic_FC"
12372 # Insert the option either (1) after the last *FLAGS variable, or
12373 # (2) before a word containing "conftest.", or (3) at the end.
12374 # Note that $ac_compile itself does not contain backslashes and begins
12375 # with a dollar sign (not a hyphen), so the echo should work correctly.
12376 # The option is referenced via a variable to avoid confusing sed.
12377 lt_compile=`echo "$ac_compile" | $SED \
12378 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12379 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12380 -e 's:$: $lt_compiler_flag:'`
12381 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12382 (eval "$lt_compile" 2>conftest.err)
12383 ac_status=$?
12384 cat conftest.err >&5
12385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386 if (exit $ac_status) && test -s "$ac_outfile"; then
12387 # The compiler can only warn and ignore the option if not recognized
12388 # So say no if there are warnings other than the usual output.
12389 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12390 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12391 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12392 lt_cv_prog_compiler_pic_works_FC=yes
12395 $RM conftest*
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
12399 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
12401 if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
12402 case $lt_prog_compiler_pic_FC in
12403 "" | " "*) ;;
12404 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
12405 esac
12406 else
12407 lt_prog_compiler_pic_FC=
12408 lt_prog_compiler_can_build_shared_FC=no
12416 # Check to make sure the static flag actually works.
12418 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12420 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12421 if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then :
12422 $as_echo_n "(cached) " >&6
12423 else
12424 lt_cv_prog_compiler_static_works_FC=no
12425 save_LDFLAGS="$LDFLAGS"
12426 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12427 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12428 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12429 # The linker can only warn and ignore the option if not recognized
12430 # So say no if there are warnings
12431 if test -s conftest.err; then
12432 # Append any errors to the config.log.
12433 cat conftest.err 1>&5
12434 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12435 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12436 if diff conftest.exp conftest.er2 >/dev/null; then
12437 lt_cv_prog_compiler_static_works_FC=yes
12439 else
12440 lt_cv_prog_compiler_static_works_FC=yes
12443 $RM -r conftest*
12444 LDFLAGS="$save_LDFLAGS"
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
12448 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
12450 if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
12452 else
12453 lt_prog_compiler_static_FC=
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12460 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12461 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
12462 $as_echo_n "(cached) " >&6
12463 else
12464 lt_cv_prog_compiler_c_o_FC=no
12465 $RM -r conftest 2>/dev/null
12466 mkdir conftest
12467 cd conftest
12468 mkdir out
12469 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12471 lt_compiler_flag="-o out/conftest2.$ac_objext"
12472 # Insert the option either (1) after the last *FLAGS variable, or
12473 # (2) before a word containing "conftest.", or (3) at the end.
12474 # Note that $ac_compile itself does not contain backslashes and begins
12475 # with a dollar sign (not a hyphen), so the echo should work correctly.
12476 lt_compile=`echo "$ac_compile" | $SED \
12477 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12478 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12479 -e 's:$: $lt_compiler_flag:'`
12480 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12481 (eval "$lt_compile" 2>out/conftest.err)
12482 ac_status=$?
12483 cat out/conftest.err >&5
12484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12486 then
12487 # The compiler can only warn and ignore the option if not recognized
12488 # So say no if there are warnings
12489 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12490 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12491 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12492 lt_cv_prog_compiler_c_o_FC=yes
12495 chmod u+w . 2>&5
12496 $RM conftest*
12497 # SGI C++ compiler will create directory out/ii_files/ for
12498 # template instantiation
12499 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12500 $RM out/* && rmdir out
12501 cd ..
12502 $RM -r conftest
12503 $RM conftest*
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12507 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12512 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12513 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
12514 $as_echo_n "(cached) " >&6
12515 else
12516 lt_cv_prog_compiler_c_o_FC=no
12517 $RM -r conftest 2>/dev/null
12518 mkdir conftest
12519 cd conftest
12520 mkdir out
12521 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12523 lt_compiler_flag="-o out/conftest2.$ac_objext"
12524 # Insert the option either (1) after the last *FLAGS variable, or
12525 # (2) before a word containing "conftest.", or (3) at the end.
12526 # Note that $ac_compile itself does not contain backslashes and begins
12527 # with a dollar sign (not a hyphen), so the echo should work correctly.
12528 lt_compile=`echo "$ac_compile" | $SED \
12529 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12530 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12531 -e 's:$: $lt_compiler_flag:'`
12532 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12533 (eval "$lt_compile" 2>out/conftest.err)
12534 ac_status=$?
12535 cat out/conftest.err >&5
12536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12538 then
12539 # The compiler can only warn and ignore the option if not recognized
12540 # So say no if there are warnings
12541 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12542 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12543 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12544 lt_cv_prog_compiler_c_o_FC=yes
12547 chmod u+w . 2>&5
12548 $RM conftest*
12549 # SGI C++ compiler will create directory out/ii_files/ for
12550 # template instantiation
12551 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12552 $RM out/* && rmdir out
12553 cd ..
12554 $RM -r conftest
12555 $RM conftest*
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12559 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12564 hard_links="nottested"
12565 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
12566 # do not overwrite the value of need_locks provided by the user
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12568 $as_echo_n "checking if we can lock with hard links... " >&6; }
12569 hard_links=yes
12570 $RM conftest*
12571 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12572 touch conftest.a
12573 ln conftest.a conftest.b 2>&5 || hard_links=no
12574 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12576 $as_echo "$hard_links" >&6; }
12577 if test "$hard_links" = no; then
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12579 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12580 need_locks=warn
12582 else
12583 need_locks=no
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12589 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12591 runpath_var=
12592 allow_undefined_flag_FC=
12593 always_export_symbols_FC=no
12594 archive_cmds_FC=
12595 archive_expsym_cmds_FC=
12596 compiler_needs_object_FC=no
12597 enable_shared_with_static_runtimes_FC=no
12598 export_dynamic_flag_spec_FC=
12599 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12600 hardcode_automatic_FC=no
12601 hardcode_direct_FC=no
12602 hardcode_direct_absolute_FC=no
12603 hardcode_libdir_flag_spec_FC=
12604 hardcode_libdir_flag_spec_ld_FC=
12605 hardcode_libdir_separator_FC=
12606 hardcode_minus_L_FC=no
12607 hardcode_shlibpath_var_FC=unsupported
12608 inherit_rpath_FC=no
12609 link_all_deplibs_FC=unknown
12610 module_cmds_FC=
12611 module_expsym_cmds_FC=
12612 old_archive_from_new_cmds_FC=
12613 old_archive_from_expsyms_cmds_FC=
12614 thread_safe_flag_spec_FC=
12615 whole_archive_flag_spec_FC=
12616 # include_expsyms should be a list of space-separated symbols to be *always*
12617 # included in the symbol list
12618 include_expsyms_FC=
12619 # exclude_expsyms can be an extended regexp of symbols to exclude
12620 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12621 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12622 # as well as any symbol that contains `d'.
12623 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12624 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12625 # platforms (ab)use it in PIC code, but their linkers get confused if
12626 # the symbol is explicitly referenced. Since portable code cannot
12627 # rely on this symbol name, it's probably fine to never include it in
12628 # preloaded symbol tables.
12629 # Exclude shared library initialization/finalization symbols.
12630 extract_expsyms_cmds=
12632 case $host_os in
12633 cygwin* | mingw* | pw32* | cegcc*)
12634 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12635 # When not using gcc, we currently assume that we are using
12636 # Microsoft Visual C++.
12637 if test "$GCC" != yes; then
12638 with_gnu_ld=no
12641 interix*)
12642 # we just hope/assume this is gcc and not c89 (= MSVC++)
12643 with_gnu_ld=yes
12645 openbsd*)
12646 with_gnu_ld=no
12648 esac
12650 ld_shlibs_FC=yes
12652 # On some targets, GNU ld is compatible enough with the native linker
12653 # that we're better off using the native interface for both.
12654 lt_use_gnu_ld_interface=no
12655 if test "$with_gnu_ld" = yes; then
12656 case $host_os in
12657 aix*)
12658 # The AIX port of GNU ld has always aspired to compatibility
12659 # with the native linker. However, as the warning in the GNU ld
12660 # block says, versions before 2.19.5* couldn't really create working
12661 # shared libraries, regardless of the interface used.
12662 case `$LD -v 2>&1` in
12663 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12664 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12665 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12667 lt_use_gnu_ld_interface=yes
12669 esac
12672 lt_use_gnu_ld_interface=yes
12674 esac
12677 if test "$lt_use_gnu_ld_interface" = yes; then
12678 # If archive_cmds runs LD, not CC, wlarc should be empty
12679 wlarc='${wl}'
12681 # Set some defaults for GNU ld with shared library support. These
12682 # are reset later if shared libraries are not supported. Putting them
12683 # here allows them to be overridden if necessary.
12684 runpath_var=LD_RUN_PATH
12685 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12686 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
12687 # ancient GNU ld didn't support --whole-archive et. al.
12688 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12689 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12690 else
12691 whole_archive_flag_spec_FC=
12693 supports_anon_versioning=no
12694 case `$LD -v 2>&1` in
12695 *GNU\ gold*) supports_anon_versioning=yes ;;
12696 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12697 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12698 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12699 *\ 2.11.*) ;; # other 2.11 versions
12700 *) supports_anon_versioning=yes ;;
12701 esac
12703 # See if GNU ld supports shared libraries.
12704 case $host_os in
12705 aix[3-9]*)
12706 # On AIX/PPC, the GNU linker is very broken
12707 if test "$host_cpu" != ia64; then
12708 ld_shlibs_FC=no
12709 cat <<_LT_EOF 1>&2
12711 *** Warning: the GNU linker, at least up to release 2.19, is reported
12712 *** to be unable to reliably create shared libraries on AIX.
12713 *** Therefore, libtool is disabling shared libraries support. If you
12714 *** really care for shared libraries, you may want to install binutils
12715 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12716 *** You will then need to restart the configuration process.
12718 _LT_EOF
12722 amigaos*)
12723 case $host_cpu in
12724 powerpc)
12725 # see comment about AmigaOS4 .so support
12726 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12727 archive_expsym_cmds_FC=''
12729 m68k)
12730 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)'
12731 hardcode_libdir_flag_spec_FC='-L$libdir'
12732 hardcode_minus_L_FC=yes
12734 esac
12737 beos*)
12738 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12739 allow_undefined_flag_FC=unsupported
12740 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12741 # support --undefined. This deserves some investigation. FIXME
12742 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12743 else
12744 ld_shlibs_FC=no
12748 cygwin* | mingw* | pw32* | cegcc*)
12749 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
12750 # as there is no search path for DLLs.
12751 hardcode_libdir_flag_spec_FC='-L$libdir'
12752 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
12753 allow_undefined_flag_FC=unsupported
12754 always_export_symbols_FC=no
12755 enable_shared_with_static_runtimes_FC=yes
12756 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12758 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12759 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12760 # If the export-symbols file already is a .def file (1st line
12761 # is EXPORTS), use it as is; otherwise, prepend...
12762 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12763 cp $export_symbols $output_objdir/$soname.def;
12764 else
12765 echo EXPORTS > $output_objdir/$soname.def;
12766 cat $export_symbols >> $output_objdir/$soname.def;
12768 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12769 else
12770 ld_shlibs_FC=no
12774 haiku*)
12775 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12776 link_all_deplibs_FC=yes
12779 interix[3-9]*)
12780 hardcode_direct_FC=no
12781 hardcode_shlibpath_var_FC=no
12782 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
12783 export_dynamic_flag_spec_FC='${wl}-E'
12784 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12785 # Instead, shared libraries are loaded at an image base (0x10000000 by
12786 # default) and relocated if they conflict, which is a slow very memory
12787 # consuming and fragmenting process. To avoid this, we pick a random,
12788 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12789 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12790 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'
12791 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'
12794 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12795 tmp_diet=no
12796 if test "$host_os" = linux-dietlibc; then
12797 case $cc_basename in
12798 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12799 esac
12801 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12802 && test "$tmp_diet" = no
12803 then
12804 tmp_addflag=' $pic_flag'
12805 tmp_sharedflag='-shared'
12806 case $cc_basename,$host_cpu in
12807 pgcc*) # Portland Group C compiler
12808 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'
12809 tmp_addflag=' $pic_flag'
12811 pgf77* | pgf90* | pgf95* | pgfortran*)
12812 # Portland Group f77 and f90 compilers
12813 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'
12814 tmp_addflag=' $pic_flag -Mnomain' ;;
12815 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12816 tmp_addflag=' -i_dynamic' ;;
12817 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12818 tmp_addflag=' -i_dynamic -nofor_main' ;;
12819 ifc* | ifort*) # Intel Fortran compiler
12820 tmp_addflag=' -nofor_main' ;;
12821 lf95*) # Lahey Fortran 8.1
12822 whole_archive_flag_spec_FC=
12823 tmp_sharedflag='--shared' ;;
12824 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12825 tmp_sharedflag='-qmkshrobj'
12826 tmp_addflag= ;;
12827 nvcc*) # Cuda Compiler Driver 2.2
12828 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'
12829 compiler_needs_object_FC=yes
12831 esac
12832 case `$CC -V 2>&1 | sed 5q` in
12833 *Sun\ C*) # Sun C 5.9
12834 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'
12835 compiler_needs_object_FC=yes
12836 tmp_sharedflag='-G' ;;
12837 *Sun\ F*) # Sun Fortran 8.3
12838 tmp_sharedflag='-G' ;;
12839 esac
12840 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12842 if test "x$supports_anon_versioning" = xyes; then
12843 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
12844 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12845 echo "local: *; };" >> $output_objdir/$libname.ver~
12846 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12849 case $cc_basename in
12850 xlf* | bgf* | bgxlf* | mpixlf*)
12851 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12852 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
12853 hardcode_libdir_flag_spec_FC=
12854 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
12855 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12856 if test "x$supports_anon_versioning" = xyes; then
12857 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
12858 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12859 echo "local: *; };" >> $output_objdir/$libname.ver~
12860 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12863 esac
12864 else
12865 ld_shlibs_FC=no
12869 netbsd*)
12870 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12871 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12872 wlarc=
12873 else
12874 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12875 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12879 solaris*)
12880 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12881 ld_shlibs_FC=no
12882 cat <<_LT_EOF 1>&2
12884 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12885 *** create shared libraries on Solaris systems. Therefore, libtool
12886 *** is disabling shared libraries support. We urge you to upgrade GNU
12887 *** binutils to release 2.9.1 or newer. Another option is to modify
12888 *** your PATH or compiler configuration so that the native linker is
12889 *** used, and then restart.
12891 _LT_EOF
12892 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12893 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12894 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12895 else
12896 ld_shlibs_FC=no
12900 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12901 case `$LD -v 2>&1` in
12902 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12903 ld_shlibs_FC=no
12904 cat <<_LT_EOF 1>&2
12906 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12907 *** reliably create shared libraries on SCO systems. Therefore, libtool
12908 *** is disabling shared libraries support. We urge you to upgrade GNU
12909 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12910 *** your PATH or compiler configuration so that the native linker is
12911 *** used, and then restart.
12913 _LT_EOF
12916 # For security reasons, it is highly recommended that you always
12917 # use absolute paths for naming shared libraries, and exclude the
12918 # DT_RUNPATH tag from executables and libraries. But doing so
12919 # requires that you compile everything twice, which is a pain.
12920 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12921 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12922 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12923 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12924 else
12925 ld_shlibs_FC=no
12928 esac
12931 sunos4*)
12932 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12933 wlarc=
12934 hardcode_direct_FC=yes
12935 hardcode_shlibpath_var_FC=no
12939 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12940 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12941 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12942 else
12943 ld_shlibs_FC=no
12946 esac
12948 if test "$ld_shlibs_FC" = no; then
12949 runpath_var=
12950 hardcode_libdir_flag_spec_FC=
12951 export_dynamic_flag_spec_FC=
12952 whole_archive_flag_spec_FC=
12954 else
12955 # PORTME fill in a description of your system's linker (not GNU ld)
12956 case $host_os in
12957 aix3*)
12958 allow_undefined_flag_FC=unsupported
12959 always_export_symbols_FC=yes
12960 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'
12961 # Note: this linker hardcodes the directories in LIBPATH if there
12962 # are no directories specified by -L.
12963 hardcode_minus_L_FC=yes
12964 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12965 # Neither direct hardcoding nor static linking is supported with a
12966 # broken collect2.
12967 hardcode_direct_FC=unsupported
12971 aix[4-9]*)
12972 if test "$host_cpu" = ia64; then
12973 # On IA64, the linker does run time linking by default, so we don't
12974 # have to do anything special.
12975 aix_use_runtimelinking=no
12976 exp_sym_flag='-Bexport'
12977 no_entry_flag=""
12978 else
12979 # If we're using GNU nm, then we don't want the "-C" option.
12980 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12981 # Also, AIX nm treats weak defined symbols like other global
12982 # defined symbols, whereas GNU nm marks them as "W".
12983 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12984 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'
12985 else
12986 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'
12988 aix_use_runtimelinking=no
12990 # Test if we are trying to use run time linking or normal
12991 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12992 # need to do runtime linking.
12993 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12994 for ld_flag in $LDFLAGS; do
12995 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12996 aix_use_runtimelinking=yes
12997 break
12999 done
13001 esac
13003 exp_sym_flag='-bexport'
13004 no_entry_flag='-bnoentry'
13007 # When large executables or shared objects are built, AIX ld can
13008 # have problems creating the table of contents. If linking a library
13009 # or program results in "error TOC overflow" add -mminimal-toc to
13010 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13011 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13013 archive_cmds_FC=''
13014 hardcode_direct_FC=yes
13015 hardcode_direct_absolute_FC=yes
13016 hardcode_libdir_separator_FC=':'
13017 link_all_deplibs_FC=yes
13018 file_list_spec_FC='${wl}-f,'
13020 if test "$GCC" = yes; then
13021 case $host_os in aix4.[012]|aix4.[012].*)
13022 # We only want to do this on AIX 4.2 and lower, the check
13023 # below for broken collect2 doesn't work under 4.3+
13024 collect2name=`${CC} -print-prog-name=collect2`
13025 if test -f "$collect2name" &&
13026 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13027 then
13028 # We have reworked collect2
13030 else
13031 # We have old collect2
13032 hardcode_direct_FC=unsupported
13033 # It fails to find uninstalled libraries when the uninstalled
13034 # path is not listed in the libpath. Setting hardcode_minus_L
13035 # to unsupported forces relinking
13036 hardcode_minus_L_FC=yes
13037 hardcode_libdir_flag_spec_FC='-L$libdir'
13038 hardcode_libdir_separator_FC=
13041 esac
13042 shared_flag='-shared'
13043 if test "$aix_use_runtimelinking" = yes; then
13044 shared_flag="$shared_flag "'${wl}-G'
13046 else
13047 # not using gcc
13048 if test "$host_cpu" = ia64; then
13049 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13050 # chokes on -Wl,-G. The following line is correct:
13051 shared_flag='-G'
13052 else
13053 if test "$aix_use_runtimelinking" = yes; then
13054 shared_flag='${wl}-G'
13055 else
13056 shared_flag='${wl}-bM:SRE'
13061 export_dynamic_flag_spec_FC='${wl}-bexpall'
13062 # It seems that -bexpall does not export symbols beginning with
13063 # underscore (_), so it is better to generate a list of symbols to export.
13064 always_export_symbols_FC=yes
13065 if test "$aix_use_runtimelinking" = yes; then
13066 # Warning - without using the other runtime loading flags (-brtl),
13067 # -berok will link without error, but may produce a broken library.
13068 allow_undefined_flag_FC='-berok'
13069 # Determine the default libpath from the value encoded in an
13070 # empty executable.
13071 cat > conftest.$ac_ext <<_ACEOF
13072 program main
13075 _ACEOF
13076 if ac_fn_fc_try_link "$LINENO"; then :
13078 lt_aix_libpath_sed='
13079 /Import File Strings/,/^$/ {
13080 /^0/ {
13081 s/^0 *\(.*\)$/\1/
13085 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13086 # Check for a 64-bit object if we didn't find anything.
13087 if test -z "$aix_libpath"; then
13088 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13091 rm -f core conftest.err conftest.$ac_objext \
13092 conftest$ac_exeext conftest.$ac_ext
13093 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13095 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13096 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"
13097 else
13098 if test "$host_cpu" = ia64; then
13099 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
13100 allow_undefined_flag_FC="-z nodefs"
13101 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"
13102 else
13103 # Determine the default libpath from the value encoded in an
13104 # empty executable.
13105 cat > conftest.$ac_ext <<_ACEOF
13106 program main
13109 _ACEOF
13110 if ac_fn_fc_try_link "$LINENO"; then :
13112 lt_aix_libpath_sed='
13113 /Import File Strings/,/^$/ {
13114 /^0/ {
13115 s/^0 *\(.*\)$/\1/
13119 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13120 # Check for a 64-bit object if we didn't find anything.
13121 if test -z "$aix_libpath"; then
13122 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13125 rm -f core conftest.err conftest.$ac_objext \
13126 conftest$ac_exeext conftest.$ac_ext
13127 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13129 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13130 # Warning - without using the other run time loading flags,
13131 # -berok will link without error, but may produce a broken library.
13132 no_undefined_flag_FC=' ${wl}-bernotok'
13133 allow_undefined_flag_FC=' ${wl}-berok'
13134 if test "$with_gnu_ld" = yes; then
13135 # We only use this code for GNU lds that support --whole-archive.
13136 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13137 else
13138 # Exported symbols can be pulled into shared objects from archives
13139 whole_archive_flag_spec_FC='$convenience'
13141 archive_cmds_need_lc_FC=yes
13142 # This is similar to how AIX traditionally builds its shared libraries.
13143 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'
13148 amigaos*)
13149 case $host_cpu in
13150 powerpc)
13151 # see comment about AmigaOS4 .so support
13152 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13153 archive_expsym_cmds_FC=''
13155 m68k)
13156 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)'
13157 hardcode_libdir_flag_spec_FC='-L$libdir'
13158 hardcode_minus_L_FC=yes
13160 esac
13163 bsdi[45]*)
13164 export_dynamic_flag_spec_FC=-rdynamic
13167 cygwin* | mingw* | pw32* | cegcc*)
13168 # When not using gcc, we currently assume that we are using
13169 # Microsoft Visual C++.
13170 # hardcode_libdir_flag_spec is actually meaningless, as there is
13171 # no search path for DLLs.
13172 hardcode_libdir_flag_spec_FC=' '
13173 allow_undefined_flag_FC=unsupported
13174 # Tell ltmain to make .lib files, not .a files.
13175 libext=lib
13176 # Tell ltmain to make .dll files, not .so files.
13177 shrext_cmds=".dll"
13178 # FIXME: Setting linknames here is a bad hack.
13179 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13180 # The linker will automatically build a .lib file if we build a DLL.
13181 old_archive_from_new_cmds_FC='true'
13182 # FIXME: Should let the user specify the lib program.
13183 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
13184 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
13185 enable_shared_with_static_runtimes_FC=yes
13188 darwin* | rhapsody*)
13191 archive_cmds_need_lc_FC=no
13192 hardcode_direct_FC=no
13193 hardcode_automatic_FC=yes
13194 hardcode_shlibpath_var_FC=unsupported
13195 if test "$lt_cv_ld_force_load" = "yes"; then
13196 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\"`'
13197 else
13198 whole_archive_flag_spec_FC=''
13200 link_all_deplibs_FC=yes
13201 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
13202 case $cc_basename in
13203 ifort*) _lt_dar_can_shared=yes ;;
13204 *) _lt_dar_can_shared=$GCC ;;
13205 esac
13206 if test "$_lt_dar_can_shared" = "yes"; then
13207 output_verbose_link_cmd=func_echo_all
13208 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}"
13209 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13210 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}"
13211 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}"
13213 else
13214 ld_shlibs_FC=no
13219 dgux*)
13220 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13221 hardcode_libdir_flag_spec_FC='-L$libdir'
13222 hardcode_shlibpath_var_FC=no
13225 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13226 # support. Future versions do this automatically, but an explicit c++rt0.o
13227 # does not break anything, and helps significantly (at the cost of a little
13228 # extra space).
13229 freebsd2.2*)
13230 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13231 hardcode_libdir_flag_spec_FC='-R$libdir'
13232 hardcode_direct_FC=yes
13233 hardcode_shlibpath_var_FC=no
13236 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13237 freebsd2.*)
13238 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13239 hardcode_direct_FC=yes
13240 hardcode_minus_L_FC=yes
13241 hardcode_shlibpath_var_FC=no
13244 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13245 freebsd* | dragonfly*)
13246 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13247 hardcode_libdir_flag_spec_FC='-R$libdir'
13248 hardcode_direct_FC=yes
13249 hardcode_shlibpath_var_FC=no
13252 hpux9*)
13253 if test "$GCC" = yes; then
13254 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'
13255 else
13256 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'
13258 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13259 hardcode_libdir_separator_FC=:
13260 hardcode_direct_FC=yes
13262 # hardcode_minus_L: Not really in the search PATH,
13263 # but as the default location of the library.
13264 hardcode_minus_L_FC=yes
13265 export_dynamic_flag_spec_FC='${wl}-E'
13268 hpux10*)
13269 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13270 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13271 else
13272 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13274 if test "$with_gnu_ld" = no; then
13275 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13276 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
13277 hardcode_libdir_separator_FC=:
13278 hardcode_direct_FC=yes
13279 hardcode_direct_absolute_FC=yes
13280 export_dynamic_flag_spec_FC='${wl}-E'
13281 # hardcode_minus_L: Not really in the search PATH,
13282 # but as the default location of the library.
13283 hardcode_minus_L_FC=yes
13287 hpux11*)
13288 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13289 case $host_cpu in
13290 hppa*64*)
13291 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13293 ia64*)
13294 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13297 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13299 esac
13300 else
13301 case $host_cpu in
13302 hppa*64*)
13303 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13305 ia64*)
13306 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13309 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13311 esac
13313 if test "$with_gnu_ld" = no; then
13314 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13315 hardcode_libdir_separator_FC=:
13317 case $host_cpu in
13318 hppa*64*|ia64*)
13319 hardcode_direct_FC=no
13320 hardcode_shlibpath_var_FC=no
13323 hardcode_direct_FC=yes
13324 hardcode_direct_absolute_FC=yes
13325 export_dynamic_flag_spec_FC='${wl}-E'
13327 # hardcode_minus_L: Not really in the search PATH,
13328 # but as the default location of the library.
13329 hardcode_minus_L_FC=yes
13331 esac
13335 irix5* | irix6* | nonstopux*)
13336 if test "$GCC" = yes; then
13337 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'
13338 # Try to use the -exported_symbol ld option, if it does not
13339 # work, assume that -exports_file does not work either and
13340 # implicitly export all symbols.
13341 save_LDFLAGS="$LDFLAGS"
13342 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13343 cat > conftest.$ac_ext <<_ACEOF
13344 int foo(void) {}
13345 _ACEOF
13346 if ac_fn_fc_try_link "$LINENO"; then :
13347 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'
13350 rm -f core conftest.err conftest.$ac_objext \
13351 conftest$ac_exeext conftest.$ac_ext
13352 LDFLAGS="$save_LDFLAGS"
13353 else
13354 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'
13355 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'
13357 archive_cmds_need_lc_FC='no'
13358 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13359 hardcode_libdir_separator_FC=:
13360 inherit_rpath_FC=yes
13361 link_all_deplibs_FC=yes
13364 netbsd*)
13365 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13366 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13367 else
13368 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13370 hardcode_libdir_flag_spec_FC='-R$libdir'
13371 hardcode_direct_FC=yes
13372 hardcode_shlibpath_var_FC=no
13375 newsos6)
13376 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13377 hardcode_direct_FC=yes
13378 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13379 hardcode_libdir_separator_FC=:
13380 hardcode_shlibpath_var_FC=no
13383 *nto* | *qnx*)
13386 openbsd*)
13387 if test -f /usr/libexec/ld.so; then
13388 hardcode_direct_FC=yes
13389 hardcode_shlibpath_var_FC=no
13390 hardcode_direct_absolute_FC=yes
13391 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13392 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13393 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13394 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13395 export_dynamic_flag_spec_FC='${wl}-E'
13396 else
13397 case $host_os in
13398 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13399 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13400 hardcode_libdir_flag_spec_FC='-R$libdir'
13403 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13404 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13406 esac
13408 else
13409 ld_shlibs_FC=no
13413 os2*)
13414 hardcode_libdir_flag_spec_FC='-L$libdir'
13415 hardcode_minus_L_FC=yes
13416 allow_undefined_flag_FC=unsupported
13417 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'
13418 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13421 osf3*)
13422 if test "$GCC" = yes; then
13423 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13424 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'
13425 else
13426 allow_undefined_flag_FC=' -expect_unresolved \*'
13427 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'
13429 archive_cmds_need_lc_FC='no'
13430 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13431 hardcode_libdir_separator_FC=:
13434 osf4* | osf5*) # as osf3* with the addition of -msym flag
13435 if test "$GCC" = yes; then
13436 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13437 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'
13438 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13439 else
13440 allow_undefined_flag_FC=' -expect_unresolved \*'
13441 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'
13442 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~
13443 $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'
13445 # Both c and cxx compiler support -rpath directly
13446 hardcode_libdir_flag_spec_FC='-rpath $libdir'
13448 archive_cmds_need_lc_FC='no'
13449 hardcode_libdir_separator_FC=:
13452 solaris*)
13453 no_undefined_flag_FC=' -z defs'
13454 if test "$GCC" = yes; then
13455 wlarc='${wl}'
13456 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13457 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13458 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13459 else
13460 case `$CC -V 2>&1` in
13461 *"Compilers 5.0"*)
13462 wlarc=''
13463 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13464 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13465 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13468 wlarc='${wl}'
13469 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13470 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13471 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13473 esac
13475 hardcode_libdir_flag_spec_FC='-R$libdir'
13476 hardcode_shlibpath_var_FC=no
13477 case $host_os in
13478 solaris2.[0-5] | solaris2.[0-5].*) ;;
13480 # The compiler driver will combine and reorder linker options,
13481 # but understands `-z linker_flag'. GCC discards it without `$wl',
13482 # but is careful enough not to reorder.
13483 # Supported since Solaris 2.6 (maybe 2.5.1?)
13484 if test "$GCC" = yes; then
13485 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13486 else
13487 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
13490 esac
13491 link_all_deplibs_FC=yes
13494 sunos4*)
13495 if test "x$host_vendor" = xsequent; then
13496 # Use $CC to link under sequent, because it throws in some extra .o
13497 # files that make .init and .fini sections work.
13498 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13499 else
13500 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13502 hardcode_libdir_flag_spec_FC='-L$libdir'
13503 hardcode_direct_FC=yes
13504 hardcode_minus_L_FC=yes
13505 hardcode_shlibpath_var_FC=no
13508 sysv4)
13509 case $host_vendor in
13510 sni)
13511 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13512 hardcode_direct_FC=yes # is this really true???
13514 siemens)
13515 ## LD is ld it makes a PLAMLIB
13516 ## CC just makes a GrossModule.
13517 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13518 reload_cmds_FC='$CC -r -o $output$reload_objs'
13519 hardcode_direct_FC=no
13521 motorola)
13522 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13523 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
13525 esac
13526 runpath_var='LD_RUN_PATH'
13527 hardcode_shlibpath_var_FC=no
13530 sysv4.3*)
13531 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13532 hardcode_shlibpath_var_FC=no
13533 export_dynamic_flag_spec_FC='-Bexport'
13536 sysv4*MP*)
13537 if test -d /usr/nec; then
13538 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13539 hardcode_shlibpath_var_FC=no
13540 runpath_var=LD_RUN_PATH
13541 hardcode_runpath_var=yes
13542 ld_shlibs_FC=yes
13546 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13547 no_undefined_flag_FC='${wl}-z,text'
13548 archive_cmds_need_lc_FC=no
13549 hardcode_shlibpath_var_FC=no
13550 runpath_var='LD_RUN_PATH'
13552 if test "$GCC" = yes; then
13553 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13554 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13555 else
13556 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13557 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13561 sysv5* | sco3.2v5* | sco5v6*)
13562 # Note: We can NOT use -z defs as we might desire, because we do not
13563 # link with -lc, and that would cause any symbols used from libc to
13564 # always be unresolved, which means just about no library would
13565 # ever link correctly. If we're not using GNU ld we use -z text
13566 # though, which does catch some bad symbols but isn't as heavy-handed
13567 # as -z defs.
13568 no_undefined_flag_FC='${wl}-z,text'
13569 allow_undefined_flag_FC='${wl}-z,nodefs'
13570 archive_cmds_need_lc_FC=no
13571 hardcode_shlibpath_var_FC=no
13572 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
13573 hardcode_libdir_separator_FC=':'
13574 link_all_deplibs_FC=yes
13575 export_dynamic_flag_spec_FC='${wl}-Bexport'
13576 runpath_var='LD_RUN_PATH'
13578 if test "$GCC" = yes; then
13579 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13580 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13581 else
13582 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13583 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13587 uts4*)
13588 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13589 hardcode_libdir_flag_spec_FC='-L$libdir'
13590 hardcode_shlibpath_var_FC=no
13594 ld_shlibs_FC=no
13596 esac
13598 if test x$host_vendor = xsni; then
13599 case $host in
13600 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13601 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
13603 esac
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
13608 $as_echo "$ld_shlibs_FC" >&6; }
13609 test "$ld_shlibs_FC" = no && can_build_shared=no
13611 with_gnu_ld_FC=$with_gnu_ld
13619 # Do we need to explicitly link libc?
13621 case "x$archive_cmds_need_lc_FC" in
13622 x|xyes)
13623 # Assume -lc should be added
13624 archive_cmds_need_lc_FC=yes
13626 if test "$enable_shared" = yes && test "$GCC" = yes; then
13627 case $archive_cmds_FC in
13628 *'~'*)
13629 # FIXME: we may have to deal with multi-command sequences.
13631 '$CC '*)
13632 # Test whether the compiler implicitly links with -lc since on some
13633 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13634 # to ld, don't add -lc before -lgcc.
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13636 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13637 if test "${lt_cv_archive_cmds_need_lc_FC+set}" = set; then :
13638 $as_echo_n "(cached) " >&6
13639 else
13640 $RM conftest*
13641 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13643 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13644 (eval $ac_compile) 2>&5
13645 ac_status=$?
13646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13647 test $ac_status = 0; } 2>conftest.err; then
13648 soname=conftest
13649 lib=conftest
13650 libobjs=conftest.$ac_objext
13651 deplibs=
13652 wl=$lt_prog_compiler_wl_FC
13653 pic_flag=$lt_prog_compiler_pic_FC
13654 compiler_flags=-v
13655 linker_flags=-v
13656 verstring=
13657 output_objdir=.
13658 libname=conftest
13659 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
13660 allow_undefined_flag_FC=
13661 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13662 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13663 ac_status=$?
13664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13665 test $ac_status = 0; }
13666 then
13667 lt_cv_archive_cmds_need_lc_FC=no
13668 else
13669 lt_cv_archive_cmds_need_lc_FC=yes
13671 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
13672 else
13673 cat conftest.err 1>&5
13675 $RM conftest*
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
13679 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
13680 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
13682 esac
13685 esac
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13751 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13753 library_names_spec=
13754 libname_spec='lib$name'
13755 soname_spec=
13756 shrext_cmds=".so"
13757 postinstall_cmds=
13758 postuninstall_cmds=
13759 finish_cmds=
13760 finish_eval=
13761 shlibpath_var=
13762 shlibpath_overrides_runpath=unknown
13763 version_type=none
13764 dynamic_linker="$host_os ld.so"
13765 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13766 need_lib_prefix=unknown
13767 hardcode_into_libs=no
13769 # when you set need_version to no, make sure it does not cause -set_version
13770 # flags to be left without arguments
13771 need_version=unknown
13773 case $host_os in
13774 aix3*)
13775 version_type=linux
13776 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13777 shlibpath_var=LIBPATH
13779 # AIX 3 has no versioning support, so we append a major version to the name.
13780 soname_spec='${libname}${release}${shared_ext}$major'
13783 aix[4-9]*)
13784 version_type=linux
13785 need_lib_prefix=no
13786 need_version=no
13787 hardcode_into_libs=yes
13788 if test "$host_cpu" = ia64; then
13789 # AIX 5 supports IA64
13790 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13791 shlibpath_var=LD_LIBRARY_PATH
13792 else
13793 # With GCC up to 2.95.x, collect2 would create an import file
13794 # for dependence libraries. The import file would start with
13795 # the line `#! .'. This would cause the generated library to
13796 # depend on `.', always an invalid library. This was fixed in
13797 # development snapshots of GCC prior to 3.0.
13798 case $host_os in
13799 aix4 | aix4.[01] | aix4.[01].*)
13800 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13801 echo ' yes '
13802 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13804 else
13805 can_build_shared=no
13808 esac
13809 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13810 # soname into executable. Probably we can add versioning support to
13811 # collect2, so additional links can be useful in future.
13812 if test "$aix_use_runtimelinking" = yes; then
13813 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13814 # instead of lib<name>.a to let people know that these are not
13815 # typical AIX shared libraries.
13816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13817 else
13818 # We preserve .a as extension for shared libraries through AIX4.2
13819 # and later when we are not doing run time linking.
13820 library_names_spec='${libname}${release}.a $libname.a'
13821 soname_spec='${libname}${release}${shared_ext}$major'
13823 shlibpath_var=LIBPATH
13827 amigaos*)
13828 case $host_cpu in
13829 powerpc)
13830 # Since July 2007 AmigaOS4 officially supports .so libraries.
13831 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13834 m68k)
13835 library_names_spec='$libname.ixlibrary $libname.a'
13836 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13837 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'
13839 esac
13842 beos*)
13843 library_names_spec='${libname}${shared_ext}'
13844 dynamic_linker="$host_os ld.so"
13845 shlibpath_var=LIBRARY_PATH
13848 bsdi[45]*)
13849 version_type=linux
13850 need_version=no
13851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13852 soname_spec='${libname}${release}${shared_ext}$major'
13853 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13854 shlibpath_var=LD_LIBRARY_PATH
13855 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13856 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13857 # the default ld.so.conf also contains /usr/contrib/lib and
13858 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13859 # libtool to hard-code these into programs
13862 cygwin* | mingw* | pw32* | cegcc*)
13863 version_type=windows
13864 shrext_cmds=".dll"
13865 need_version=no
13866 need_lib_prefix=no
13868 case $GCC,$host_os in
13869 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13870 library_names_spec='$libname.dll.a'
13871 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13872 postinstall_cmds='base_file=`basename \${file}`~
13873 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13874 dldir=$destdir/`dirname \$dlpath`~
13875 test -d \$dldir || mkdir -p \$dldir~
13876 $install_prog $dir/$dlname \$dldir/$dlname~
13877 chmod a+x \$dldir/$dlname~
13878 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13879 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13881 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13882 dlpath=$dir/\$dldll~
13883 $RM \$dlpath'
13884 shlibpath_overrides_runpath=yes
13886 case $host_os in
13887 cygwin*)
13888 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13889 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13892 mingw* | cegcc*)
13893 # MinGW DLLs use traditional 'lib' prefix
13894 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13896 pw32*)
13897 # pw32 DLLs use 'pw' prefix rather than 'lib'
13898 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13900 esac
13904 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13906 esac
13907 dynamic_linker='Win32 ld.exe'
13908 # FIXME: first we should search . and the directory the executable is in
13909 shlibpath_var=PATH
13912 darwin* | rhapsody*)
13913 dynamic_linker="$host_os dyld"
13914 version_type=darwin
13915 need_lib_prefix=no
13916 need_version=no
13917 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13918 soname_spec='${libname}${release}${major}$shared_ext'
13919 shlibpath_overrides_runpath=yes
13920 shlibpath_var=DYLD_LIBRARY_PATH
13921 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13923 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13926 dgux*)
13927 version_type=linux
13928 need_lib_prefix=no
13929 need_version=no
13930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13931 soname_spec='${libname}${release}${shared_ext}$major'
13932 shlibpath_var=LD_LIBRARY_PATH
13935 freebsd* | dragonfly*)
13936 # DragonFly does not have aout. When/if they implement a new
13937 # versioning mechanism, adjust this.
13938 if test -x /usr/bin/objformat; then
13939 objformat=`/usr/bin/objformat`
13940 else
13941 case $host_os in
13942 freebsd[23].*) objformat=aout ;;
13943 *) objformat=elf ;;
13944 esac
13946 version_type=freebsd-$objformat
13947 case $version_type in
13948 freebsd-elf*)
13949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13950 need_version=no
13951 need_lib_prefix=no
13953 freebsd-*)
13954 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13955 need_version=yes
13957 esac
13958 shlibpath_var=LD_LIBRARY_PATH
13959 case $host_os in
13960 freebsd2.*)
13961 shlibpath_overrides_runpath=yes
13963 freebsd3.[01]* | freebsdelf3.[01]*)
13964 shlibpath_overrides_runpath=yes
13965 hardcode_into_libs=yes
13967 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13968 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13969 shlibpath_overrides_runpath=no
13970 hardcode_into_libs=yes
13972 *) # from 4.6 on, and DragonFly
13973 shlibpath_overrides_runpath=yes
13974 hardcode_into_libs=yes
13976 esac
13979 gnu*)
13980 version_type=linux
13981 need_lib_prefix=no
13982 need_version=no
13983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13984 soname_spec='${libname}${release}${shared_ext}$major'
13985 shlibpath_var=LD_LIBRARY_PATH
13986 hardcode_into_libs=yes
13989 haiku*)
13990 version_type=linux
13991 need_lib_prefix=no
13992 need_version=no
13993 dynamic_linker="$host_os runtime_loader"
13994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13995 soname_spec='${libname}${release}${shared_ext}$major'
13996 shlibpath_var=LIBRARY_PATH
13997 shlibpath_overrides_runpath=yes
13998 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
13999 hardcode_into_libs=yes
14002 hpux9* | hpux10* | hpux11*)
14003 # Give a soname corresponding to the major version so that dld.sl refuses to
14004 # link against other versions.
14005 version_type=sunos
14006 need_lib_prefix=no
14007 need_version=no
14008 case $host_cpu in
14009 ia64*)
14010 shrext_cmds='.so'
14011 hardcode_into_libs=yes
14012 dynamic_linker="$host_os dld.so"
14013 shlibpath_var=LD_LIBRARY_PATH
14014 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14016 soname_spec='${libname}${release}${shared_ext}$major'
14017 if test "X$HPUX_IA64_MODE" = X32; then
14018 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14019 else
14020 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14022 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14024 hppa*64*)
14025 shrext_cmds='.sl'
14026 hardcode_into_libs=yes
14027 dynamic_linker="$host_os dld.sl"
14028 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14029 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14031 soname_spec='${libname}${release}${shared_ext}$major'
14032 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14033 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14036 shrext_cmds='.sl'
14037 dynamic_linker="$host_os dld.sl"
14038 shlibpath_var=SHLIB_PATH
14039 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14041 soname_spec='${libname}${release}${shared_ext}$major'
14043 esac
14044 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14045 postinstall_cmds='chmod 555 $lib'
14046 # or fails outright, so override atomically:
14047 install_override_mode=555
14050 interix[3-9]*)
14051 version_type=linux
14052 need_lib_prefix=no
14053 need_version=no
14054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14055 soname_spec='${libname}${release}${shared_ext}$major'
14056 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14057 shlibpath_var=LD_LIBRARY_PATH
14058 shlibpath_overrides_runpath=no
14059 hardcode_into_libs=yes
14062 irix5* | irix6* | nonstopux*)
14063 case $host_os in
14064 nonstopux*) version_type=nonstopux ;;
14066 if test "$lt_cv_prog_gnu_ld" = yes; then
14067 version_type=linux
14068 else
14069 version_type=irix
14070 fi ;;
14071 esac
14072 need_lib_prefix=no
14073 need_version=no
14074 soname_spec='${libname}${release}${shared_ext}$major'
14075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14076 case $host_os in
14077 irix5* | nonstopux*)
14078 libsuff= shlibsuff=
14081 case $LD in # libtool.m4 will add one of these switches to LD
14082 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14083 libsuff= shlibsuff= libmagic=32-bit;;
14084 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14085 libsuff=32 shlibsuff=N32 libmagic=N32;;
14086 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14087 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14088 *) libsuff= shlibsuff= libmagic=never-match;;
14089 esac
14091 esac
14092 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14093 shlibpath_overrides_runpath=no
14094 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14095 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14096 hardcode_into_libs=yes
14099 # No shared lib support for Linux oldld, aout, or coff.
14100 linux*oldld* | linux*aout* | linux*coff*)
14101 dynamic_linker=no
14104 # This must be Linux ELF.
14105 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14106 version_type=linux
14107 need_lib_prefix=no
14108 need_version=no
14109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14110 soname_spec='${libname}${release}${shared_ext}$major'
14111 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14112 shlibpath_var=LD_LIBRARY_PATH
14113 shlibpath_overrides_runpath=no
14115 # Some binutils ld are patched to set DT_RUNPATH
14116 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14117 $as_echo_n "(cached) " >&6
14118 else
14119 lt_cv_shlibpath_overrides_runpath=no
14120 save_LDFLAGS=$LDFLAGS
14121 save_libdir=$libdir
14122 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
14123 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
14124 cat > conftest.$ac_ext <<_ACEOF
14125 program main
14128 _ACEOF
14129 if ac_fn_fc_try_link "$LINENO"; then :
14130 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14131 lt_cv_shlibpath_overrides_runpath=yes
14134 rm -f core conftest.err conftest.$ac_objext \
14135 conftest$ac_exeext conftest.$ac_ext
14136 LDFLAGS=$save_LDFLAGS
14137 libdir=$save_libdir
14141 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14143 # This implies no fast_install, which is unacceptable.
14144 # Some rework will be needed to allow for fast_install
14145 # before this can be enabled.
14146 hardcode_into_libs=yes
14148 # Append ld.so.conf contents to the search path
14149 if test -f /etc/ld.so.conf; then
14150 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' ' '`
14151 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14154 # We used to test for /lib/ld.so.1 and disable shared libraries on
14155 # powerpc, because MkLinux only supported shared libraries with the
14156 # GNU dynamic linker. Since this was broken with cross compilers,
14157 # most powerpc-linux boxes support dynamic linking these days and
14158 # people can always --disable-shared, the test was removed, and we
14159 # assume the GNU/Linux dynamic linker is in use.
14160 dynamic_linker='GNU/Linux ld.so'
14163 netbsd*)
14164 version_type=sunos
14165 need_lib_prefix=no
14166 need_version=no
14167 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14169 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14170 dynamic_linker='NetBSD (a.out) ld.so'
14171 else
14172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14173 soname_spec='${libname}${release}${shared_ext}$major'
14174 dynamic_linker='NetBSD ld.elf_so'
14176 shlibpath_var=LD_LIBRARY_PATH
14177 shlibpath_overrides_runpath=yes
14178 hardcode_into_libs=yes
14181 newsos6)
14182 version_type=linux
14183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14184 shlibpath_var=LD_LIBRARY_PATH
14185 shlibpath_overrides_runpath=yes
14188 *nto* | *qnx*)
14189 version_type=qnx
14190 need_lib_prefix=no
14191 need_version=no
14192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14193 soname_spec='${libname}${release}${shared_ext}$major'
14194 shlibpath_var=LD_LIBRARY_PATH
14195 shlibpath_overrides_runpath=no
14196 hardcode_into_libs=yes
14197 dynamic_linker='ldqnx.so'
14200 openbsd*)
14201 version_type=sunos
14202 sys_lib_dlsearch_path_spec="/usr/lib"
14203 need_lib_prefix=no
14204 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14205 case $host_os in
14206 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14207 *) need_version=no ;;
14208 esac
14209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14210 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14211 shlibpath_var=LD_LIBRARY_PATH
14212 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14213 case $host_os in
14214 openbsd2.[89] | openbsd2.[89].*)
14215 shlibpath_overrides_runpath=no
14218 shlibpath_overrides_runpath=yes
14220 esac
14221 else
14222 shlibpath_overrides_runpath=yes
14226 os2*)
14227 libname_spec='$name'
14228 shrext_cmds=".dll"
14229 need_lib_prefix=no
14230 library_names_spec='$libname${shared_ext} $libname.a'
14231 dynamic_linker='OS/2 ld.exe'
14232 shlibpath_var=LIBPATH
14235 osf3* | osf4* | osf5*)
14236 version_type=osf
14237 need_lib_prefix=no
14238 need_version=no
14239 soname_spec='${libname}${release}${shared_ext}$major'
14240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14241 shlibpath_var=LD_LIBRARY_PATH
14242 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14243 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14246 rdos*)
14247 dynamic_linker=no
14250 solaris*)
14251 version_type=linux
14252 need_lib_prefix=no
14253 need_version=no
14254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14255 soname_spec='${libname}${release}${shared_ext}$major'
14256 shlibpath_var=LD_LIBRARY_PATH
14257 shlibpath_overrides_runpath=yes
14258 hardcode_into_libs=yes
14259 # ldd complains unless libraries are executable
14260 postinstall_cmds='chmod +x $lib'
14263 sunos4*)
14264 version_type=sunos
14265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14266 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14267 shlibpath_var=LD_LIBRARY_PATH
14268 shlibpath_overrides_runpath=yes
14269 if test "$with_gnu_ld" = yes; then
14270 need_lib_prefix=no
14272 need_version=yes
14275 sysv4 | sysv4.3*)
14276 version_type=linux
14277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14278 soname_spec='${libname}${release}${shared_ext}$major'
14279 shlibpath_var=LD_LIBRARY_PATH
14280 case $host_vendor in
14281 sni)
14282 shlibpath_overrides_runpath=no
14283 need_lib_prefix=no
14284 runpath_var=LD_RUN_PATH
14286 siemens)
14287 need_lib_prefix=no
14289 motorola)
14290 need_lib_prefix=no
14291 need_version=no
14292 shlibpath_overrides_runpath=no
14293 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14295 esac
14298 sysv4*MP*)
14299 if test -d /usr/nec ;then
14300 version_type=linux
14301 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14302 soname_spec='$libname${shared_ext}.$major'
14303 shlibpath_var=LD_LIBRARY_PATH
14307 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14308 version_type=freebsd-elf
14309 need_lib_prefix=no
14310 need_version=no
14311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14312 soname_spec='${libname}${release}${shared_ext}$major'
14313 shlibpath_var=LD_LIBRARY_PATH
14314 shlibpath_overrides_runpath=yes
14315 hardcode_into_libs=yes
14316 if test "$with_gnu_ld" = yes; then
14317 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14318 else
14319 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14320 case $host_os in
14321 sco3.2v5*)
14322 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14324 esac
14326 sys_lib_dlsearch_path_spec='/usr/lib'
14329 tpf*)
14330 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14331 version_type=linux
14332 need_lib_prefix=no
14333 need_version=no
14334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14335 shlibpath_var=LD_LIBRARY_PATH
14336 shlibpath_overrides_runpath=no
14337 hardcode_into_libs=yes
14340 uts4*)
14341 version_type=linux
14342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14343 soname_spec='${libname}${release}${shared_ext}$major'
14344 shlibpath_var=LD_LIBRARY_PATH
14348 dynamic_linker=no
14350 esac
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14352 $as_echo "$dynamic_linker" >&6; }
14353 test "$dynamic_linker" = no && can_build_shared=no
14355 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14356 if test "$GCC" = yes; then
14357 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14360 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14361 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14363 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14364 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14405 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14406 hardcode_action_FC=
14407 if test -n "$hardcode_libdir_flag_spec_FC" ||
14408 test -n "$runpath_var_FC" ||
14409 test "X$hardcode_automatic_FC" = "Xyes" ; then
14411 # We can hardcode non-existent directories.
14412 if test "$hardcode_direct_FC" != no &&
14413 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14414 # have to relink, otherwise we might link with an installed library
14415 # when we should be linking with a yet-to-be-installed one
14416 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
14417 test "$hardcode_minus_L_FC" != no; then
14418 # Linking always hardcodes the temporary library directory.
14419 hardcode_action_FC=relink
14420 else
14421 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14422 hardcode_action_FC=immediate
14424 else
14425 # We cannot hardcode anything, or else we can only hardcode existing
14426 # directories.
14427 hardcode_action_FC=unsupported
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
14430 $as_echo "$hardcode_action_FC" >&6; }
14432 if test "$hardcode_action_FC" = relink ||
14433 test "$inherit_rpath_FC" = yes; then
14434 # Fast installation is not supported
14435 enable_fast_install=no
14436 elif test "$shlibpath_overrides_runpath" = yes ||
14437 test "$enable_shared" = no; then
14438 # Fast installation is not necessary
14439 enable_fast_install=needless
14448 fi # test -n "$compiler"
14450 GCC=$lt_save_GCC
14451 CC="$lt_save_CC"
14452 fi # test "$_lt_disable_FC" != yes
14454 ac_ext=c
14455 ac_cpp='$CPP $CPPFLAGS'
14456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14461 FCFLAGS="$FCFLAGS -Wall -L../libgfortran"
14463 # For libtool versioning info, format is CURRENT:REVISION:AGE
14464 libtool_VERSION=1:0:0
14467 # Check header files.
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14469 $as_echo_n "checking for ANSI C header files... " >&6; }
14470 if test "${ac_cv_header_stdc+set}" = set; then :
14471 $as_echo_n "(cached) " >&6
14472 else
14473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14474 /* end confdefs.h. */
14475 #include <stdlib.h>
14476 #include <stdarg.h>
14477 #include <string.h>
14478 #include <float.h>
14481 main ()
14485 return 0;
14487 _ACEOF
14488 if ac_fn_c_try_compile "$LINENO"; then :
14489 ac_cv_header_stdc=yes
14490 else
14491 ac_cv_header_stdc=no
14493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14495 if test $ac_cv_header_stdc = yes; then
14496 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14498 /* end confdefs.h. */
14499 #include <string.h>
14501 _ACEOF
14502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14503 $EGREP "memchr" >/dev/null 2>&1; then :
14505 else
14506 ac_cv_header_stdc=no
14508 rm -f conftest*
14512 if test $ac_cv_header_stdc = yes; then
14513 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14515 /* end confdefs.h. */
14516 #include <stdlib.h>
14518 _ACEOF
14519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14520 $EGREP "free" >/dev/null 2>&1; then :
14522 else
14523 ac_cv_header_stdc=no
14525 rm -f conftest*
14529 if test $ac_cv_header_stdc = yes; then
14530 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14531 if test "$cross_compiling" = yes; then :
14533 else
14534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14535 /* end confdefs.h. */
14536 #include <ctype.h>
14537 #include <stdlib.h>
14538 #if ((' ' & 0x0FF) == 0x020)
14539 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14540 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14541 #else
14542 # define ISLOWER(c) \
14543 (('a' <= (c) && (c) <= 'i') \
14544 || ('j' <= (c) && (c) <= 'r') \
14545 || ('s' <= (c) && (c) <= 'z'))
14546 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14547 #endif
14549 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14551 main ()
14553 int i;
14554 for (i = 0; i < 256; i++)
14555 if (XOR (islower (i), ISLOWER (i))
14556 || toupper (i) != TOUPPER (i))
14557 return 2;
14558 return 0;
14560 _ACEOF
14561 if ac_fn_c_try_run "$LINENO"; then :
14563 else
14564 ac_cv_header_stdc=no
14566 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14567 conftest.$ac_objext conftest.beam conftest.$ac_ext
14572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14573 $as_echo "$ac_cv_header_stdc" >&6; }
14574 if test $ac_cv_header_stdc = yes; then
14576 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14581 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14582 if test "${ac_cv_header_time+set}" = set; then :
14583 $as_echo_n "(cached) " >&6
14584 else
14585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14586 /* end confdefs.h. */
14587 #include <sys/types.h>
14588 #include <sys/time.h>
14589 #include <time.h>
14592 main ()
14594 if ((struct tm *) 0)
14595 return 0;
14597 return 0;
14599 _ACEOF
14600 if ac_fn_c_try_compile "$LINENO"; then :
14601 ac_cv_header_time=yes
14602 else
14603 ac_cv_header_time=no
14605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14608 $as_echo "$ac_cv_header_time" >&6; }
14609 if test $ac_cv_header_time = yes; then
14611 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
14616 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
14617 if test "${gcc_cv_header_string+set}" = set; then :
14618 $as_echo_n "(cached) " >&6
14619 else
14620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14621 /* end confdefs.h. */
14622 #include <string.h>
14623 #include <strings.h>
14625 main ()
14629 return 0;
14631 _ACEOF
14632 if ac_fn_c_try_compile "$LINENO"; then :
14633 gcc_cv_header_string=yes
14634 else
14635 gcc_cv_header_string=no
14637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
14640 $as_echo "$gcc_cv_header_string" >&6; }
14641 if test $gcc_cv_header_string = yes; then
14643 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
14647 for ac_header in pthread.h unistd.h semaphore.h sys/loadavg.h sys/sysctl.h sys/time.h
14648 do :
14649 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14650 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14651 eval as_val=\$$as_ac_Header
14652 if test "x$as_val" = x""yes; then :
14653 cat >>confdefs.h <<_ACEOF
14654 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14655 _ACEOF
14659 done
14664 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
14666 acx_cv_header_stdint=stddef.h
14667 acx_cv_header_stdint_kind="(already complete)"
14668 for i in stdint.h $inttype_headers; do
14669 unset ac_cv_type_uintptr_t
14670 unset ac_cv_type_uintmax_t
14671 unset ac_cv_type_int_least32_t
14672 unset ac_cv_type_int_fast32_t
14673 unset ac_cv_type_uint64_t
14674 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
14675 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
14676 #include <$i>
14678 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
14679 acx_cv_header_stdint=$i
14680 else
14681 continue
14684 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
14685 #include <$i>
14687 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
14689 else
14690 acx_cv_header_stdint_kind="(mostly complete)"
14693 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
14694 #include <$i>
14696 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
14698 else
14699 acx_cv_header_stdint_kind="(mostly complete)"
14702 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
14703 #include <$i>
14705 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
14707 else
14708 acx_cv_header_stdint_kind="(mostly complete)"
14711 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
14712 #include <$i>
14714 if test "x$ac_cv_type_uint64_t" = x""yes; then :
14716 else
14717 acx_cv_header_stdint_kind="(lacks uint64_t)"
14720 break
14721 done
14722 if test "$acx_cv_header_stdint" = stddef.h; then
14723 acx_cv_header_stdint_kind="(lacks uintmax_t)"
14724 for i in stdint.h $inttype_headers; do
14725 unset ac_cv_type_uintptr_t
14726 unset ac_cv_type_uint32_t
14727 unset ac_cv_type_uint64_t
14728 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
14729 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
14730 #include <$i>
14732 if test "x$ac_cv_type_uint32_t" = x""yes; then :
14733 acx_cv_header_stdint=$i
14734 else
14735 continue
14738 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
14739 #include <$i>
14741 if test "x$ac_cv_type_uint64_t" = x""yes; then :
14745 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
14746 #include <$i>
14748 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
14752 break
14753 done
14755 if test "$acx_cv_header_stdint" = stddef.h; then
14756 acx_cv_header_stdint_kind="(u_intXX_t style)"
14757 for i in sys/types.h $inttype_headers; do
14758 unset ac_cv_type_u_int32_t
14759 unset ac_cv_type_u_int64_t
14760 $as_echo_n "looking for u_intXX_t types in $i, " >&6
14761 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
14762 #include <$i>
14764 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
14765 acx_cv_header_stdint=$i
14766 else
14767 continue
14770 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
14771 #include <$i>
14773 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
14777 break
14778 done
14780 if test "$acx_cv_header_stdint" = stddef.h; then
14781 acx_cv_header_stdint_kind="(using manual detection)"
14784 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
14785 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
14786 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
14787 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
14788 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
14790 # ----------------- Summarize what we found so far
14792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
14793 $as_echo_n "checking what to include in gstdint.h... " >&6; }
14795 case `$as_basename -- gstdint.h ||
14796 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
14797 Xgstdint.h : 'X\(//\)$' \| \
14798 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
14799 $as_echo X/gstdint.h |
14800 sed '/^.*\/\([^/][^/]*\)\/*$/{
14801 s//\1/
14804 /^X\/\(\/\/\)$/{
14805 s//\1/
14808 /^X\/\(\/\).*/{
14809 s//\1/
14812 s/.*/./; q'` in
14813 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
14814 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14815 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
14816 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14817 *) ;;
14818 esac
14820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
14821 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
14823 # ----------------- done included file, check C basic types --------
14825 # Lacking an uintptr_t? Test size of void *
14826 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
14827 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
14828 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14829 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14830 # This bug is HP SR number 8606223364.
14831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
14832 $as_echo_n "checking size of void *... " >&6; }
14833 if test "${ac_cv_sizeof_void_p+set}" = set; then :
14834 $as_echo_n "(cached) " >&6
14835 else
14836 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
14838 else
14839 if test "$ac_cv_type_void_p" = yes; then
14840 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14841 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14842 { as_fn_set_status 77
14843 as_fn_error "cannot compute sizeof (void *)
14844 See \`config.log' for more details." "$LINENO" 5; }; }
14845 else
14846 ac_cv_sizeof_void_p=0
14851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
14852 $as_echo "$ac_cv_sizeof_void_p" >&6; }
14856 cat >>confdefs.h <<_ACEOF
14857 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14858 _ACEOF
14861 esac
14863 # Lacking an uint64_t? Test size of long
14864 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
14865 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
14866 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14867 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14868 # This bug is HP SR number 8606223364.
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
14870 $as_echo_n "checking size of long... " >&6; }
14871 if test "${ac_cv_sizeof_long+set}" = set; then :
14872 $as_echo_n "(cached) " >&6
14873 else
14874 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
14876 else
14877 if test "$ac_cv_type_long" = yes; then
14878 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14879 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14880 { as_fn_set_status 77
14881 as_fn_error "cannot compute sizeof (long)
14882 See \`config.log' for more details." "$LINENO" 5; }; }
14883 else
14884 ac_cv_sizeof_long=0
14889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
14890 $as_echo "$ac_cv_sizeof_long" >&6; }
14894 cat >>confdefs.h <<_ACEOF
14895 #define SIZEOF_LONG $ac_cv_sizeof_long
14896 _ACEOF
14899 esac
14901 if test $acx_cv_header_stdint = stddef.h; then
14902 # Lacking a good header? Test size of everything and deduce all types.
14903 # The cast to long int works around a bug in the HP C Compiler
14904 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14905 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14906 # This bug is HP SR number 8606223364.
14907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
14908 $as_echo_n "checking size of int... " >&6; }
14909 if test "${ac_cv_sizeof_int+set}" = set; then :
14910 $as_echo_n "(cached) " >&6
14911 else
14912 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
14914 else
14915 if test "$ac_cv_type_int" = yes; then
14916 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14917 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14918 { as_fn_set_status 77
14919 as_fn_error "cannot compute sizeof (int)
14920 See \`config.log' for more details." "$LINENO" 5; }; }
14921 else
14922 ac_cv_sizeof_int=0
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
14928 $as_echo "$ac_cv_sizeof_int" >&6; }
14932 cat >>confdefs.h <<_ACEOF
14933 #define SIZEOF_INT $ac_cv_sizeof_int
14934 _ACEOF
14937 # The cast to long int works around a bug in the HP C Compiler
14938 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14939 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14940 # This bug is HP SR number 8606223364.
14941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
14942 $as_echo_n "checking size of short... " >&6; }
14943 if test "${ac_cv_sizeof_short+set}" = set; then :
14944 $as_echo_n "(cached) " >&6
14945 else
14946 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
14948 else
14949 if test "$ac_cv_type_short" = yes; then
14950 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14951 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14952 { as_fn_set_status 77
14953 as_fn_error "cannot compute sizeof (short)
14954 See \`config.log' for more details." "$LINENO" 5; }; }
14955 else
14956 ac_cv_sizeof_short=0
14961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
14962 $as_echo "$ac_cv_sizeof_short" >&6; }
14966 cat >>confdefs.h <<_ACEOF
14967 #define SIZEOF_SHORT $ac_cv_sizeof_short
14968 _ACEOF
14971 # The cast to long int works around a bug in the HP C Compiler
14972 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14973 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14974 # This bug is HP SR number 8606223364.
14975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
14976 $as_echo_n "checking size of char... " >&6; }
14977 if test "${ac_cv_sizeof_char+set}" = set; then :
14978 $as_echo_n "(cached) " >&6
14979 else
14980 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
14982 else
14983 if test "$ac_cv_type_char" = yes; then
14984 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14985 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14986 { as_fn_set_status 77
14987 as_fn_error "cannot compute sizeof (char)
14988 See \`config.log' for more details." "$LINENO" 5; }; }
14989 else
14990 ac_cv_sizeof_char=0
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
14996 $as_echo "$ac_cv_sizeof_char" >&6; }
15000 cat >>confdefs.h <<_ACEOF
15001 #define SIZEOF_CHAR $ac_cv_sizeof_char
15002 _ACEOF
15006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
15007 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
15008 case "$ac_cv_sizeof_char" in
15009 1) acx_cv_type_int8_t=char ;;
15010 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
15011 esac
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
15013 $as_echo "$acx_cv_type_int8_t" >&6; }
15015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
15016 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
15017 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
15018 2:*) acx_cv_type_int16_t=int ;;
15019 *:2) acx_cv_type_int16_t=short ;;
15020 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
15021 esac
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
15023 $as_echo "$acx_cv_type_int16_t" >&6; }
15025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
15026 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
15027 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
15028 4:*) acx_cv_type_int32_t=int ;;
15029 *:4) acx_cv_type_int32_t=long ;;
15030 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
15031 esac
15032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
15033 $as_echo "$acx_cv_type_int32_t" >&6; }
15036 # These tests are here to make the output prettier
15038 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
15039 case "$ac_cv_sizeof_long" in
15040 8) acx_cv_type_int64_t=long ;;
15041 esac
15042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
15043 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
15045 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
15048 # Now we can use the above types
15050 if test "$ac_cv_type_uintptr_t" != yes; then
15051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
15052 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
15053 case $ac_cv_sizeof_void_p in
15054 2) acx_cv_type_intptr_t=int16_t ;;
15055 4) acx_cv_type_intptr_t=int32_t ;;
15056 8) acx_cv_type_intptr_t=int64_t ;;
15057 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
15058 esac
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
15060 $as_echo "$acx_cv_type_intptr_t" >&6; }
15063 # ----------------- done all checks, emit header -------------
15064 ac_config_commands="$ac_config_commands gstdint.h"
15069 XPCFLAGS=""
15070 case "$host" in
15071 *-*-rtems*)
15072 # RTEMS supports Pthreads, but the library is not available at GCC build time.
15074 nvptx*-*-*)
15075 # NVPTX does not support Pthreads, has its own code replacement.
15076 libgomp_use_pthreads=no
15077 # NVPTX is an accelerator-only target
15078 libgomp_offloaded_only=yes
15081 # Check to see if -pthread or -lpthread is needed. Prefer the former.
15082 # In case the pthread.h system header is not found, this test will fail.
15083 CFLAGS="$CFLAGS -pthread"
15084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15085 /* end confdefs.h. */
15086 #include <pthread.h>
15087 void *g(void *d) { return NULL; }
15089 main ()
15091 pthread_t t; pthread_create(&t,NULL,g,NULL);
15093 return 0;
15095 _ACEOF
15096 if ac_fn_c_try_link "$LINENO"; then :
15097 XPCFLAGS=" -Wc,-pthread"
15098 else
15099 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
15100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15101 /* end confdefs.h. */
15102 #include <pthread.h>
15103 void *g(void *d) { return NULL; }
15105 main ()
15107 pthread_t t; pthread_create(&t,NULL,g,NULL);
15109 return 0;
15111 _ACEOF
15112 if ac_fn_c_try_link "$LINENO"; then :
15114 else
15115 as_fn_error "Pthreads are required to build libgomp" "$LINENO" 5
15117 rm -f core conftest.err conftest.$ac_objext \
15118 conftest$ac_exeext conftest.$ac_ext
15120 rm -f core conftest.err conftest.$ac_objext \
15121 conftest$ac_exeext conftest.$ac_ext
15122 esac
15124 if test x$libgomp_use_pthreads != xno; then
15126 $as_echo "#define LIBGOMP_USE_PTHREADS 1" >>confdefs.h
15130 if test x$libgomp_offloaded_only = xyes; then
15132 $as_echo "#define LIBGOMP_OFFLOADED_ONLY 1" >>confdefs.h
15136 # Plugins for offload execution, configure.ac fragment. -*- mode: autoconf -*-
15138 # Copyright (C) 2014-2016 Free Software Foundation, Inc.
15140 # Contributed by Mentor Embedded.
15142 # This file is part of the GNU Offloading and Multi Processing Library
15143 # (libgomp).
15145 # Libgomp is free software; you can redistribute it and/or modify it
15146 # under the terms of the GNU General Public License as published by
15147 # the Free Software Foundation; either version 3, or (at your option)
15148 # any later version.
15150 # Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY
15151 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15152 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15153 # more details.
15155 # Under Section 7 of GPL version 3, you are granted additional
15156 # permissions described in the GCC Runtime Library Exception, version
15157 # 3.1, as published by the Free Software Foundation.
15159 # You should have received a copy of the GNU General Public License and
15160 # a copy of the GCC Runtime Library Exception along with this program;
15161 # see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
15162 # <http://www.gnu.org/licenses/>.
15164 offload_targets=
15166 plugin_support=yes
15167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
15168 $as_echo_n "checking for dlsym in -ldl... " >&6; }
15169 if test "${ac_cv_lib_dl_dlsym+set}" = set; then :
15170 $as_echo_n "(cached) " >&6
15171 else
15172 ac_check_lib_save_LIBS=$LIBS
15173 LIBS="-ldl $LIBS"
15174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15175 /* end confdefs.h. */
15177 /* Override any GCC internal prototype to avoid an error.
15178 Use char because int might match the return type of a GCC
15179 builtin and then its argument prototype would still apply. */
15180 #ifdef __cplusplus
15181 extern "C"
15182 #endif
15183 char dlsym ();
15185 main ()
15187 return dlsym ();
15189 return 0;
15191 _ACEOF
15192 if ac_fn_c_try_link "$LINENO"; then :
15193 ac_cv_lib_dl_dlsym=yes
15194 else
15195 ac_cv_lib_dl_dlsym=no
15197 rm -f core conftest.err conftest.$ac_objext \
15198 conftest$ac_exeext conftest.$ac_ext
15199 LIBS=$ac_check_lib_save_LIBS
15201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
15202 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
15203 if test "x$ac_cv_lib_dl_dlsym" = x""yes; then :
15204 cat >>confdefs.h <<_ACEOF
15205 #define HAVE_LIBDL 1
15206 _ACEOF
15208 LIBS="-ldl $LIBS"
15210 else
15211 plugin_support=no
15214 if test x"$plugin_support" = xyes; then
15216 $as_echo "#define PLUGIN_SUPPORT 1" >>confdefs.h
15218 elif test "x${enable_offload_targets-no}" != xno; then
15219 as_fn_error "Can't support offloading without support for plugins" "$LINENO" 5
15224 for ac_header in $ac_header_list
15225 do :
15226 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15227 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15229 eval as_val=\$$as_ac_Header
15230 if test "x$as_val" = x""yes; then :
15231 cat >>confdefs.h <<_ACEOF
15232 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15233 _ACEOF
15237 done
15245 for ac_func in $ac_func_list
15246 do :
15247 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15248 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15249 eval as_val=\$$as_ac_var
15250 if test "x$as_val" = x""yes; then :
15251 cat >>confdefs.h <<_ACEOF
15252 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15253 _ACEOF
15256 done
15273 # Look for the CUDA driver package.
15274 CUDA_DRIVER_INCLUDE=
15275 CUDA_DRIVER_LIB=
15278 CUDA_DRIVER_CPPFLAGS=
15279 CUDA_DRIVER_LDFLAGS=
15281 # Check whether --with-cuda-driver was given.
15282 if test "${with_cuda_driver+set}" = set; then :
15283 withval=$with_cuda_driver;
15287 # Check whether --with-cuda-driver-include was given.
15288 if test "${with_cuda_driver_include+set}" = set; then :
15289 withval=$with_cuda_driver_include;
15293 # Check whether --with-cuda-driver-lib was given.
15294 if test "${with_cuda_driver_lib+set}" = set; then :
15295 withval=$with_cuda_driver_lib;
15298 if test "x$with_cuda_driver" != x; then
15299 CUDA_DRIVER_INCLUDE=$with_cuda_driver/include
15300 CUDA_DRIVER_LIB=$with_cuda_driver/lib
15302 if test "x$with_cuda_driver_include" != x; then
15303 CUDA_DRIVER_INCLUDE=$with_cuda_driver_include
15305 if test "x$with_cuda_driver_lib" != x; then
15306 CUDA_DRIVER_LIB=$with_cuda_driver_lib
15308 if test "x$CUDA_DRIVER_INCLUDE" != x; then
15309 CUDA_DRIVER_CPPFLAGS=-I$CUDA_DRIVER_INCLUDE
15311 if test "x$CUDA_DRIVER_LIB" != x; then
15312 CUDA_DRIVER_LDFLAGS=-L$CUDA_DRIVER_LIB
15315 PLUGIN_NVPTX=0
15316 PLUGIN_NVPTX_CPPFLAGS=
15317 PLUGIN_NVPTX_LDFLAGS=
15318 PLUGIN_NVPTX_LIBS=
15324 # Look for HSA run-time, its includes and libraries
15326 HSA_RUNTIME_INCLUDE=
15327 HSA_RUNTIME_LIB=
15330 HSA_RUNTIME_CPPFLAGS=
15331 HSA_RUNTIME_LDFLAGS=
15334 # Check whether --with-hsa-runtime was given.
15335 if test "${with_hsa_runtime+set}" = set; then :
15336 withval=$with_hsa_runtime;
15340 # Check whether --with-hsa-runtime-include was given.
15341 if test "${with_hsa_runtime_include+set}" = set; then :
15342 withval=$with_hsa_runtime_include;
15346 # Check whether --with-hsa-runtime-lib was given.
15347 if test "${with_hsa_runtime_lib+set}" = set; then :
15348 withval=$with_hsa_runtime_lib;
15351 if test "x$with_hsa_runtime" != x; then
15352 HSA_RUNTIME_INCLUDE=$with_hsa_runtime/include
15353 HSA_RUNTIME_LIB=$with_hsa_runtime/lib
15355 if test "x$with_hsa_runtime_include" != x; then
15356 HSA_RUNTIME_INCLUDE=$with_hsa_runtime_include
15358 if test "x$with_hsa_runtime_lib" != x; then
15359 HSA_RUNTIME_LIB=$with_hsa_runtime_lib
15361 if test "x$HSA_RUNTIME_INCLUDE" != x; then
15362 HSA_RUNTIME_CPPFLAGS=-I$HSA_RUNTIME_INCLUDE
15364 if test "x$HSA_RUNTIME_LIB" != x; then
15365 HSA_RUNTIME_LDFLAGS=-L$HSA_RUNTIME_LIB
15368 PLUGIN_HSA=0
15369 PLUGIN_HSA_CPPFLAGS=
15370 PLUGIN_HSA_LDFLAGS=
15371 PLUGIN_HSA_LIBS=
15377 # Get offload targets and path to install tree of offloading compiler.
15378 offload_additional_options=
15379 offload_additional_lib_paths=
15382 if test x"$enable_offload_targets" != x; then
15383 for tgt in `echo $enable_offload_targets | sed -e 's#,# #g'`; do
15384 tgt_dir=`echo $tgt | grep '=' | sed 's/.*=//'`
15385 tgt=`echo $tgt | sed 's/=.*//'`
15386 tgt_name=
15387 case $tgt in
15388 *-intelmic-* | *-intelmicemul-*)
15389 tgt_name=intelmic
15391 nvptx*)
15392 tgt_name=nvptx
15393 PLUGIN_NVPTX=$tgt
15394 PLUGIN_NVPTX_CPPFLAGS=$CUDA_DRIVER_CPPFLAGS
15395 PLUGIN_NVPTX_LDFLAGS=$CUDA_DRIVER_LDFLAGS
15396 PLUGIN_NVPTX_LIBS='-lcuda'
15398 PLUGIN_NVPTX_save_CPPFLAGS=$CPPFLAGS
15399 CPPFLAGS="$PLUGIN_NVPTX_CPPFLAGS $CPPFLAGS"
15400 PLUGIN_NVPTX_save_LDFLAGS=$LDFLAGS
15401 LDFLAGS="$PLUGIN_NVPTX_LDFLAGS $LDFLAGS"
15402 PLUGIN_NVPTX_save_LIBS=$LIBS
15403 LIBS="$PLUGIN_NVPTX_LIBS $LIBS"
15404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15405 /* end confdefs.h. */
15406 #include "cuda.h"
15408 main ()
15410 CUresult r = cuCtxPushCurrent (NULL);
15412 return 0;
15414 _ACEOF
15415 if ac_fn_c_try_link "$LINENO"; then :
15416 PLUGIN_NVPTX=1
15418 rm -f core conftest.err conftest.$ac_objext \
15419 conftest$ac_exeext conftest.$ac_ext
15420 CPPFLAGS=$PLUGIN_NVPTX_save_CPPFLAGS
15421 LDFLAGS=$PLUGIN_NVPTX_save_LDFLAGS
15422 LIBS=$PLUGIN_NVPTX_save_LIBS
15423 case $PLUGIN_NVPTX in
15424 nvptx*)
15425 PLUGIN_NVPTX=0
15426 as_fn_error "CUDA driver package required for nvptx support" "$LINENO" 5
15428 esac
15430 hsa*)
15431 case "${target}" in
15432 x86_64-*-*)
15433 case " ${CC} ${CFLAGS} " in
15434 *" -m32 "*)
15435 PLUGIN_HSA=0
15438 tgt_name=hsa
15439 PLUGIN_HSA=$tgt
15440 PLUGIN_HSA_CPPFLAGS=$HSA_RUNTIME_CPPFLAGS
15441 PLUGIN_HSA_LDFLAGS="$HSA_RUNTIME_LDFLAGS"
15442 PLUGIN_HSA_LIBS="-ldl"
15444 PLUGIN_HSA_save_CPPFLAGS=$CPPFLAGS
15445 CPPFLAGS="$PLUGIN_HSA_CPPFLAGS $CPPFLAGS"
15446 PLUGIN_HSA_save_LDFLAGS=$LDFLAGS
15447 LDFLAGS="$PLUGIN_HSA_LDFLAGS $LDFLAGS"
15448 PLUGIN_HSA_save_LIBS=$LIBS
15449 LIBS="$PLUGIN_HSA_LIBS $LIBS"
15451 PLUGIN_HSA=1
15452 CPPFLAGS=$PLUGIN_HSA_save_CPPFLAGS
15453 LDFLAGS=$PLUGIN_HSA_save_LDFLAGS
15454 LIBS=$PLUGIN_HSA_save_LIBS
15455 case $PLUGIN_HSA in
15456 hsa*)
15457 HSA_PLUGIN=0
15458 as_fn_error "HSA run-time package required for HSA support" "$LINENO" 5
15460 esac
15462 esac
15464 *-*-*)
15465 PLUGIN_HSA=0
15467 esac
15470 as_fn_error "unknown offload target specified" "$LINENO" 5
15472 esac
15473 if test x"$tgt_name" = x; then
15474 # Don't configure libgomp for this offloading target if we don't build
15475 # the corresponding plugin.
15476 continue
15477 elif test x"$offload_targets" = x; then
15478 offload_targets=$tgt_name
15479 else
15480 offload_targets=$offload_targets,$tgt_name
15482 if test "$tgt_name" = hsa; then
15483 # Offloading compilation is all handled by the target compiler.
15485 elif test x"$tgt_dir" != x; then
15486 offload_additional_options="$offload_additional_options -B$tgt_dir/libexec/gcc/\$(target_alias)/\$(gcc_version) -B$tgt_dir/bin"
15487 offload_additional_lib_paths="$offload_additional_lib_paths:$tgt_dir/lib64:$tgt_dir/lib:$tgt_dir/lib32"
15488 else
15489 offload_additional_options="$offload_additional_options -B\$(libexecdir)/gcc/\$(target_alias)/\$(gcc_version) -B\$(bindir)"
15490 offload_additional_lib_paths="$offload_additional_lib_paths:$toolexeclibdir"
15492 done
15495 cat >>confdefs.h <<_ACEOF
15496 #define OFFLOAD_TARGETS "$offload_targets"
15497 _ACEOF
15499 if test $PLUGIN_NVPTX = 1; then
15500 PLUGIN_NVPTX_TRUE=
15501 PLUGIN_NVPTX_FALSE='#'
15502 else
15503 PLUGIN_NVPTX_TRUE='#'
15504 PLUGIN_NVPTX_FALSE=
15508 cat >>confdefs.h <<_ACEOF
15509 #define PLUGIN_NVPTX $PLUGIN_NVPTX
15510 _ACEOF
15512 if test $PLUGIN_HSA = 1; then
15513 PLUGIN_HSA_TRUE=
15514 PLUGIN_HSA_FALSE='#'
15515 else
15516 PLUGIN_HSA_TRUE='#'
15517 PLUGIN_HSA_FALSE=
15521 cat >>confdefs.h <<_ACEOF
15522 #define PLUGIN_HSA $PLUGIN_HSA
15523 _ACEOF
15526 if test "$HSA_RUNTIME_LIB" != ""; then
15527 HSA_RUNTIME_LIB="$HSA_RUNTIME_LIB/"
15531 cat >>confdefs.h <<_ACEOF
15532 #define HSA_RUNTIME_LIB "$HSA_RUNTIME_LIB"
15533 _ACEOF
15537 # Check for functions needed.
15538 for ac_func in getloadavg clock_gettime strtoull
15539 do :
15540 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15541 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15542 eval as_val=\$$as_ac_var
15543 if test "x$as_val" = x""yes; then :
15544 cat >>confdefs.h <<_ACEOF
15545 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15546 _ACEOF
15549 done
15552 # Check for broken semaphore implementation on darwin.
15553 # sem_init returns: sem_init error: Function not implemented.
15554 case "$host" in
15555 *-darwin*)
15557 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
15560 esac
15562 # RTEMS specific checks
15563 case "$host" in
15564 *-*-rtems*)
15565 ac_fn_c_check_type "$LINENO" "struct _Mutex_Control" "ac_cv_type_struct__Mutex_Control" "#include <sys/lock.h>
15567 if test "x$ac_cv_type_struct__Mutex_Control" = x""yes; then :
15569 cat >>confdefs.h <<_ACEOF
15570 #define HAVE_STRUCT__MUTEX_CONTROL 1
15571 _ACEOF
15577 esac
15579 # Check whether --enable-linux-futex was given.
15580 if test "${enable_linux_futex+set}" = set; then :
15581 enableval=$enable_linux_futex;
15582 case "$enableval" in
15583 yes|no|default) ;;
15584 *) as_fn_error "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
15585 esac
15587 else
15588 enable_linux_futex=default
15592 case "$target" in
15593 *-linux*)
15594 case "$enable_linux_futex" in
15595 default)
15596 # If headers don't have gettid/futex syscalls definition, then
15597 # default to no, otherwise there will be compile time failures.
15598 # Otherwise, default to yes. If we don't detect we are
15599 # compiled/linked against NPTL and not cross-compiling, check
15600 # if programs are run by default against NPTL and if not, issue
15601 # a warning.
15602 enable_linux_futex=no
15603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15604 /* end confdefs.h. */
15605 #include <sys/syscall.h>
15606 int lk;
15608 main ()
15610 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15612 return 0;
15614 _ACEOF
15615 if ac_fn_c_try_link "$LINENO"; then :
15616 save_LIBS="$LIBS"
15617 LIBS="-lpthread $LIBS"
15618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15619 /* end confdefs.h. */
15620 #ifndef _GNU_SOURCE
15621 #define _GNU_SOURCE 1
15622 #endif
15623 #include <pthread.h>
15624 pthread_t th; void *status;
15626 main ()
15628 pthread_tryjoin_np (th, &status);
15630 return 0;
15632 _ACEOF
15633 if ac_fn_c_try_link "$LINENO"; then :
15634 enable_linux_futex=yes
15635 else
15636 if test x$cross_compiling = xno; then
15637 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
15638 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
15639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
15640 If so, please configure with --disable-linux-futex" >&5
15641 $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
15642 If so, please configure with --disable-linux-futex" >&2;}
15645 enable_linux_futex=yes
15647 rm -f core conftest.err conftest.$ac_objext \
15648 conftest$ac_exeext conftest.$ac_ext
15649 LIBS="$save_LIBS"
15651 rm -f core conftest.err conftest.$ac_objext \
15652 conftest$ac_exeext conftest.$ac_ext
15654 yes)
15655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15656 /* end confdefs.h. */
15657 #include <sys/syscall.h>
15658 int lk;
15660 main ()
15662 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15664 return 0;
15666 _ACEOF
15667 if ac_fn_c_try_link "$LINENO"; then :
15669 else
15670 as_fn_error "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
15672 rm -f core conftest.err conftest.$ac_objext \
15673 conftest$ac_exeext conftest.$ac_ext
15675 esac
15678 enable_linux_futex=no
15680 esac
15681 if test x$enable_linux_futex = xyes; then
15686 # Check for pthread_{,attr_}[sg]etaffinity_np.
15687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15688 /* end confdefs.h. */
15689 #define _GNU_SOURCE
15690 #include <pthread.h>
15692 main ()
15694 cpu_set_t cpuset;
15695 pthread_attr_t attr;
15696 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15697 if (CPU_ISSET (0, &cpuset))
15698 CPU_SET (1, &cpuset);
15699 else
15700 CPU_ZERO (&cpuset);
15701 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15702 pthread_attr_init (&attr);
15703 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15704 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15706 return 0;
15708 _ACEOF
15709 if ac_fn_c_try_link "$LINENO"; then :
15711 $as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h
15714 rm -f core conftest.err conftest.$ac_objext \
15715 conftest$ac_exeext conftest.$ac_ext
15717 # At least for glibc, clock_gettime is in librt. But don't pull that
15718 # in if it still doesn't give us the function we want.
15719 if test $ac_cv_func_clock_gettime = no; then
15720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
15721 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
15722 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
15723 $as_echo_n "(cached) " >&6
15724 else
15725 ac_check_lib_save_LIBS=$LIBS
15726 LIBS="-lrt $LIBS"
15727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15728 /* end confdefs.h. */
15730 /* Override any GCC internal prototype to avoid an error.
15731 Use char because int might match the return type of a GCC
15732 builtin and then its argument prototype would still apply. */
15733 #ifdef __cplusplus
15734 extern "C"
15735 #endif
15736 char clock_gettime ();
15738 main ()
15740 return clock_gettime ();
15742 return 0;
15744 _ACEOF
15745 if ac_fn_c_try_link "$LINENO"; then :
15746 ac_cv_lib_rt_clock_gettime=yes
15747 else
15748 ac_cv_lib_rt_clock_gettime=no
15750 rm -f core conftest.err conftest.$ac_objext \
15751 conftest$ac_exeext conftest.$ac_ext
15752 LIBS=$ac_check_lib_save_LIBS
15754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
15755 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15756 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
15757 LIBS="-lrt $LIBS"
15759 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
15765 # See if we support thread-local storage.
15768 # Check whether --enable-tls was given.
15769 if test "${enable_tls+set}" = set; then :
15770 enableval=$enable_tls;
15771 case "$enableval" in
15772 yes|no) ;;
15773 *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
15774 esac
15776 else
15777 enable_tls=yes
15781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
15782 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
15783 if test "${gcc_cv_have_tls+set}" = set; then :
15784 $as_echo_n "(cached) " >&6
15785 else
15787 if test "$cross_compiling" = yes; then :
15788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15789 /* end confdefs.h. */
15790 __thread int a; int b; int main() { return a = b; }
15791 _ACEOF
15792 if ac_fn_c_try_link "$LINENO"; then :
15793 chktls_save_LDFLAGS="$LDFLAGS"
15794 case $host in
15795 *-*-linux*)
15796 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
15798 esac
15799 chktls_save_CFLAGS="$CFLAGS"
15800 CFLAGS="-fPIC $CFLAGS"
15801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15802 /* end confdefs.h. */
15803 int f() { return 0; }
15804 _ACEOF
15805 if ac_fn_c_try_link "$LINENO"; then :
15806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15807 /* end confdefs.h. */
15808 __thread int a; int b; int f() { return a = b; }
15809 _ACEOF
15810 if ac_fn_c_try_link "$LINENO"; then :
15811 gcc_cv_have_tls=yes
15812 else
15813 gcc_cv_have_tls=no
15815 rm -f core conftest.err conftest.$ac_objext \
15816 conftest$ac_exeext conftest.$ac_ext
15817 else
15818 gcc_cv_have_tls=yes
15820 rm -f core conftest.err conftest.$ac_objext \
15821 conftest$ac_exeext conftest.$ac_ext
15822 CFLAGS="$chktls_save_CFLAGS"
15823 LDFLAGS="$chktls_save_LDFLAGS"
15824 else
15825 gcc_cv_have_tls=no
15827 rm -f core conftest.err conftest.$ac_objext \
15828 conftest$ac_exeext conftest.$ac_ext
15831 else
15832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15833 /* end confdefs.h. */
15834 __thread int a; int b; int main() { return a = b; }
15835 _ACEOF
15836 if ac_fn_c_try_run "$LINENO"; then :
15837 chktls_save_LDFLAGS="$LDFLAGS"
15838 LDFLAGS="-static $LDFLAGS"
15839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15840 /* end confdefs.h. */
15841 int main() { return 0; }
15842 _ACEOF
15843 if ac_fn_c_try_link "$LINENO"; then :
15844 if test "$cross_compiling" = yes; then :
15845 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15846 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15847 as_fn_error "cannot run test program while cross compiling
15848 See \`config.log' for more details." "$LINENO" 5; }
15849 else
15850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15851 /* end confdefs.h. */
15852 __thread int a; int b; int main() { return a = b; }
15853 _ACEOF
15854 if ac_fn_c_try_run "$LINENO"; then :
15855 gcc_cv_have_tls=yes
15856 else
15857 gcc_cv_have_tls=no
15859 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15860 conftest.$ac_objext conftest.beam conftest.$ac_ext
15863 else
15864 gcc_cv_have_tls=yes
15866 rm -f core conftest.err conftest.$ac_objext \
15867 conftest$ac_exeext conftest.$ac_ext
15868 LDFLAGS="$chktls_save_LDFLAGS"
15869 if test $gcc_cv_have_tls = yes; then
15870 chktls_save_CFLAGS="$CFLAGS"
15871 thread_CFLAGS=failed
15872 for flag in '' '-pthread' '-lpthread'; do
15873 CFLAGS="$flag $chktls_save_CFLAGS"
15874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15875 /* end confdefs.h. */
15876 #include <pthread.h>
15877 void *g(void *d) { return NULL; }
15879 main ()
15881 pthread_t t; pthread_create(&t,NULL,g,NULL);
15883 return 0;
15885 _ACEOF
15886 if ac_fn_c_try_link "$LINENO"; then :
15887 thread_CFLAGS="$flag"
15889 rm -f core conftest.err conftest.$ac_objext \
15890 conftest$ac_exeext conftest.$ac_ext
15891 if test "X$thread_CFLAGS" != Xfailed; then
15892 break
15894 done
15895 CFLAGS="$chktls_save_CFLAGS"
15896 if test "X$thread_CFLAGS" != Xfailed; then
15897 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
15898 if test "$cross_compiling" = yes; then :
15899 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15900 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15901 as_fn_error "cannot run test program while cross compiling
15902 See \`config.log' for more details." "$LINENO" 5; }
15903 else
15904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15905 /* end confdefs.h. */
15906 #include <pthread.h>
15907 __thread int a;
15908 static int *volatile a_in_other_thread;
15909 static void *
15910 thread_func (void *arg)
15912 a_in_other_thread = &a;
15913 return (void *)0;
15916 main ()
15918 pthread_t thread;
15919 void *thread_retval;
15920 int *volatile a_in_main_thread;
15921 a_in_main_thread = &a;
15922 if (pthread_create (&thread, (pthread_attr_t *)0,
15923 thread_func, (void *)0))
15924 return 0;
15925 if (pthread_join (thread, &thread_retval))
15926 return 0;
15927 return (a_in_other_thread == a_in_main_thread);
15929 return 0;
15931 _ACEOF
15932 if ac_fn_c_try_run "$LINENO"; then :
15933 gcc_cv_have_tls=yes
15934 else
15935 gcc_cv_have_tls=no
15937 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15938 conftest.$ac_objext conftest.beam conftest.$ac_ext
15941 CFLAGS="$chktls_save_CFLAGS"
15944 else
15945 gcc_cv_have_tls=no
15947 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15948 conftest.$ac_objext conftest.beam conftest.$ac_ext
15952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
15953 $as_echo "$gcc_cv_have_tls" >&6; }
15954 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
15956 $as_echo "#define HAVE_TLS 1" >>confdefs.h
15960 # See if we have emulated thread-local storage.
15962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the thread-local storage support is from emutls" >&5
15963 $as_echo_n "checking whether the thread-local storage support is from emutls... " >&6; }
15964 if test "${gcc_cv_use_emutls+set}" = set; then :
15965 $as_echo_n "(cached) " >&6
15966 else
15968 gcc_cv_use_emutls=no
15969 echo '__thread int a; int b; int main() { return a = b; }' > conftest.c
15970 if { ac_try='${CC-cc} -Werror -S -o conftest.s conftest.c 1>&5'
15971 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15972 (eval $ac_try) 2>&5
15973 ac_status=$?
15974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15975 test $ac_status = 0; }; }; then
15976 if grep __emutls_get_address conftest.s > /dev/null; then
15977 gcc_cv_use_emutls=yes
15980 rm -f conftest.*
15983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_use_emutls" >&5
15984 $as_echo "$gcc_cv_use_emutls" >&6; }
15985 if test "$gcc_cv_use_emutls" = "yes" ; then
15987 $as_echo "#define USE_EMUTLS 1" >>confdefs.h
15991 # See what sort of export controls are available.
15993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
15994 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
15995 if test "${libgomp_cv_have_attribute_visibility+set}" = set; then :
15996 $as_echo_n "(cached) " >&6
15997 else
15999 save_CFLAGS="$CFLAGS"
16000 CFLAGS="$CFLAGS -Werror"
16001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16002 /* end confdefs.h. */
16003 void __attribute__((visibility("hidden"))) foo(void) { }
16005 main ()
16009 return 0;
16011 _ACEOF
16012 if ac_fn_c_try_compile "$LINENO"; then :
16013 libgomp_cv_have_attribute_visibility=yes
16014 else
16015 libgomp_cv_have_attribute_visibility=no
16017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16018 CFLAGS="$save_CFLAGS"
16020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_visibility" >&5
16021 $as_echo "$libgomp_cv_have_attribute_visibility" >&6; }
16022 if test $libgomp_cv_have_attribute_visibility = yes; then
16024 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
16028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
16029 $as_echo_n "checking whether the target supports dllexport... " >&6; }
16030 if test "${libgomp_cv_have_attribute_dllexport+set}" = set; then :
16031 $as_echo_n "(cached) " >&6
16032 else
16034 save_CFLAGS="$CFLAGS"
16035 CFLAGS="$CFLAGS -Werror"
16036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16037 /* end confdefs.h. */
16038 void __attribute__((dllexport)) foo(void) { }
16040 main ()
16044 return 0;
16046 _ACEOF
16047 if ac_fn_c_try_compile "$LINENO"; then :
16048 libgomp_cv_have_attribute_dllexport=yes
16049 else
16050 libgomp_cv_have_attribute_dllexport=no
16052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16053 CFLAGS="$save_CFLAGS"
16055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_dllexport" >&5
16056 $as_echo "$libgomp_cv_have_attribute_dllexport" >&6; }
16057 if test $libgomp_cv_have_attribute_dllexport = yes; then
16059 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
16063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
16064 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
16065 if test "${libgomp_cv_have_attribute_alias+set}" = set; then :
16066 $as_echo_n "(cached) " >&6
16067 else
16069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16070 /* end confdefs.h. */
16072 void foo(void) { }
16073 extern void bar(void) __attribute__((alias("foo")));
16075 main ()
16077 bar();
16079 return 0;
16081 _ACEOF
16082 if ac_fn_c_try_link "$LINENO"; then :
16083 libgomp_cv_have_attribute_alias=yes
16084 else
16085 libgomp_cv_have_attribute_alias=no
16087 rm -f core conftest.err conftest.$ac_objext \
16088 conftest$ac_exeext conftest.$ac_ext
16090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_alias" >&5
16091 $as_echo "$libgomp_cv_have_attribute_alias" >&6; }
16092 if test $libgomp_cv_have_attribute_alias = yes; then
16094 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
16099 # Check whether --with-gnu-ld was given.
16100 if test "${with_gnu_ld+set}" = set; then :
16101 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16102 else
16103 with_gnu_ld=no
16106 ac_prog=ld
16107 if test "$GCC" = yes; then
16108 # Check if gcc -print-prog-name=ld gives a path.
16109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16110 $as_echo_n "checking for ld used by $CC... " >&6; }
16111 case $host in
16112 *-*-mingw*)
16113 # gcc leaves a trailing carriage return which upsets mingw
16114 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16116 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16117 esac
16118 case $ac_prog in
16119 # Accept absolute paths.
16120 [\\/]* | ?:[\\/]*)
16121 re_direlt='/[^/][^/]*/\.\./'
16122 # Canonicalize the pathname of ld
16123 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16124 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16125 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16126 done
16127 test -z "$LD" && LD="$ac_prog"
16130 # If it fails, then pretend we aren't using GCC.
16131 ac_prog=ld
16134 # If it is relative, then search for the first ld in PATH.
16135 with_gnu_ld=unknown
16137 esac
16138 elif test "$with_gnu_ld" = yes; then
16139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16140 $as_echo_n "checking for GNU ld... " >&6; }
16141 else
16142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16143 $as_echo_n "checking for non-GNU ld... " >&6; }
16145 if test "${lt_cv_path_LD+set}" = set; then :
16146 $as_echo_n "(cached) " >&6
16147 else
16148 if test -z "$LD"; then
16149 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16150 for ac_dir in $PATH; do
16151 IFS="$lt_save_ifs"
16152 test -z "$ac_dir" && ac_dir=.
16153 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16154 lt_cv_path_LD="$ac_dir/$ac_prog"
16155 # Check to see if the program is GNU ld. I'd rather use --version,
16156 # but apparently some variants of GNU ld only accept -v.
16157 # Break only if it was the GNU/non-GNU ld that we prefer.
16158 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16159 *GNU* | *'with BFD'*)
16160 test "$with_gnu_ld" != no && break
16163 test "$with_gnu_ld" != yes && break
16165 esac
16167 done
16168 IFS="$lt_save_ifs"
16169 else
16170 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16174 LD="$lt_cv_path_LD"
16175 if test -n "$LD"; then
16176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16177 $as_echo "$LD" >&6; }
16178 else
16179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16180 $as_echo "no" >&6; }
16182 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
16183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16184 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16185 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
16186 $as_echo_n "(cached) " >&6
16187 else
16188 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16189 case `$LD -v 2>&1 </dev/null` in
16190 *GNU* | *'with BFD'*)
16191 lt_cv_prog_gnu_ld=yes
16194 lt_cv_prog_gnu_ld=no
16196 esac
16198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16199 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16200 with_gnu_ld=$lt_cv_prog_gnu_ld
16208 # If we're not using GNU ld, then there's no point in even trying these
16209 # tests. Check for that first. We should have already tested for gld
16210 # by now (in libtool), but require it now just to be safe...
16211 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
16212 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
16216 # The name set by libtool depends on the version of libtool. Shame on us
16217 # for depending on an impl detail, but c'est la vie. Older versions used
16218 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
16219 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
16220 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
16221 # set (hence we're using an older libtool), then set it.
16222 if test x${with_gnu_ld+set} != xset; then
16223 if test x${ac_cv_prog_gnu_ld+set} != xset; then
16224 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
16225 with_gnu_ld=no
16226 else
16227 with_gnu_ld=$ac_cv_prog_gnu_ld
16231 # Start by getting the version number. I think the libtool test already
16232 # does some of this, but throws away the result.
16233 libgomp_ld_is_gold=no
16234 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
16235 libgomp_ld_is_gold=yes
16238 ldver=`$LD --version 2>/dev/null |
16239 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'`
16241 libgomp_gnu_ld_version=`echo $ldver | \
16242 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
16244 # Set --gc-sections.
16245 if test "$with_gnu_ld" = "notbroken"; then
16246 # GNU ld it is! Joy and bunny rabbits!
16248 # All these tests are for C++; save the language and the compiler flags.
16249 # Need to do this so that g++ won't try to link in libstdc++
16250 ac_test_CFLAGS="${CFLAGS+set}"
16251 ac_save_CFLAGS="$CFLAGS"
16252 CFLAGS='-x c++ -Wl,--gc-sections'
16254 # Check for -Wl,--gc-sections
16255 # XXX This test is broken at the moment, as symbols required for linking
16256 # are now in libsupc++ (not built yet). In addition, this test has
16257 # cored on solaris in the past. In addition, --gc-sections doesn't
16258 # really work at the moment (keeps on discarding used sections, first
16259 # .eh_frame and now some of the glibc sections for iconv).
16260 # Bzzzzt. Thanks for playing, maybe next time.
16261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
16262 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
16263 if test "$cross_compiling" = yes; then :
16264 ac_sectionLDflags=yes
16265 else
16266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16267 /* end confdefs.h. */
16269 int main(void)
16271 try { throw 1; }
16272 catch (...) { };
16273 return 0;
16276 _ACEOF
16277 if ac_fn_c_try_run "$LINENO"; then :
16278 ac_sectionLDflags=yes
16279 else
16280 ac_sectionLDflags=no
16282 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16283 conftest.$ac_objext conftest.beam conftest.$ac_ext
16286 if test "$ac_test_CFLAGS" = set; then
16287 CFLAGS="$ac_save_CFLAGS"
16288 else
16289 # this is the suspicious part
16290 CFLAGS=''
16292 if test "$ac_sectionLDflags" = "yes"; then
16293 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
16295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
16296 $as_echo "$ac_sectionLDflags" >&6; }
16299 # Set linker optimization flags.
16300 if test x"$with_gnu_ld" = x"yes"; then
16301 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
16309 # Check whether --enable-symvers was given.
16310 if test "${enable_symvers+set}" = set; then :
16311 enableval=$enable_symvers;
16312 case "$enableval" in
16313 yes|no|gnu*|sun) ;;
16314 *) as_fn_error "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
16315 esac
16317 else
16318 enable_symvers=yes
16323 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
16324 # don't know enough about $LD to do tricks...
16327 # Turn a 'yes' into a suitable default.
16328 if test x$enable_symvers = xyes ; then
16329 # FIXME The following test is too strict, in theory.
16330 if test $enable_shared = no || test "x$LD" = x; then
16331 enable_symvers=no
16332 else
16333 if test $with_gnu_ld = yes ; then
16334 enable_symvers=gnu
16335 else
16336 case ${target_os} in
16337 # Sun symbol versioning exists since Solaris 2.5.
16338 solaris2.[5-9]* | solaris2.1[0-9]*)
16339 enable_symvers=sun ;;
16341 enable_symvers=no ;;
16342 esac
16347 # Check if 'sun' was requested on non-Solaris 2 platforms.
16348 if test x$enable_symvers = xsun ; then
16349 case ${target_os} in
16350 solaris2*)
16351 # All fine.
16354 # Unlikely to work.
16355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
16356 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
16357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
16358 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
16359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16360 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16361 enable_symvers=no
16363 esac
16366 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
16367 if test $enable_symvers != no; then
16368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
16369 $as_echo_n "checking for shared libgcc... " >&6; }
16370 ac_save_CFLAGS="$CFLAGS"
16371 CFLAGS=' -lgcc_s'
16372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16373 /* end confdefs.h. */
16376 main ()
16378 return 0;
16380 return 0;
16382 _ACEOF
16383 if ac_fn_c_try_link "$LINENO"; then :
16384 libgomp_shared_libgcc=yes
16385 else
16386 libgomp_shared_libgcc=no
16388 rm -f core conftest.err conftest.$ac_objext \
16389 conftest$ac_exeext conftest.$ac_ext
16390 CFLAGS="$ac_save_CFLAGS"
16391 if test $libgomp_shared_libgcc = no; then
16392 cat > conftest.c <<EOF
16393 int main (void) { return 0; }
16395 libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
16396 -shared -shared-libgcc -o conftest.so \
16397 conftest.c -v 2>&1 >/dev/null \
16398 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
16399 rm -f conftest.c conftest.so
16400 if test x${libgomp_libgcc_s_suffix+set} = xset; then
16401 CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
16402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16403 /* end confdefs.h. */
16406 main ()
16408 return 0;
16410 return 0;
16412 _ACEOF
16413 if ac_fn_c_try_link "$LINENO"; then :
16414 libgomp_shared_libgcc=yes
16416 rm -f core conftest.err conftest.$ac_objext \
16417 conftest$ac_exeext conftest.$ac_ext
16418 CFLAGS="$ac_save_CFLAGS"
16421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_shared_libgcc" >&5
16422 $as_echo "$libgomp_shared_libgcc" >&6; }
16425 # For GNU ld, we need at least this version. The format is described in
16426 # LIBGOMP_CHECK_LINKER_FEATURES above.
16427 libgomp_min_gnu_ld_version=21400
16428 # XXXXXXXXXXX libgomp_gnu_ld_version=21390
16430 # Check to see if unspecified "yes" value can win, given results above.
16431 # Change "yes" into either "no" or a style name.
16432 if test $enable_symvers != no && test $libgomp_shared_libgcc = yes; then
16433 if test $with_gnu_ld = yes; then
16434 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
16435 enable_symvers=gnu
16436 elif test $libgomp_ld_is_gold = yes ; then
16437 enable_symvers=gnu
16438 else
16439 # The right tools, the right setup, but too old. Fallbacks?
16440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
16441 $as_echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
16442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
16443 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
16444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
16445 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
16446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
16447 $as_echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
16448 if test $libgomp_gnu_ld_version -ge 21200 ; then
16449 # Globbing fix is present, proper block support is not.
16450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16451 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16452 enable_symvers=no
16453 else
16454 # 2.11 or older.
16455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16456 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16457 enable_symvers=no
16460 elif test $enable_symvers = sun; then
16461 : All interesting versions of Sun ld support sun style symbol versioning.
16462 else
16463 # just fail for now
16464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
16465 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
16466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
16467 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
16468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
16469 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
16470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16471 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16472 enable_symvers=no
16476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports .symver directive" >&5
16477 $as_echo_n "checking whether the target supports .symver directive... " >&6; }
16478 if test "${libgomp_cv_have_as_symver_directive+set}" = set; then :
16479 $as_echo_n "(cached) " >&6
16480 else
16482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16483 /* end confdefs.h. */
16484 void foo (void); __asm (".symver foo, bar@SYMVER");
16486 main ()
16490 return 0;
16492 _ACEOF
16493 if ac_fn_c_try_compile "$LINENO"; then :
16494 libgomp_cv_have_as_symver_directive=yes
16495 else
16496 libgomp_cv_have_as_symver_directive=no
16498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_as_symver_directive" >&5
16501 $as_echo "$libgomp_cv_have_as_symver_directive" >&6; }
16502 if test $libgomp_cv_have_as_symver_directive = yes; then
16504 $as_echo "#define HAVE_AS_SYMVER_DIRECTIVE 1" >>confdefs.h
16508 if test $enable_symvers != no; then
16509 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
16510 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
16511 else
16512 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
16513 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
16516 if test $enable_symvers = gnu; then
16517 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE=
16518 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
16519 else
16520 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
16521 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE=
16524 if test $enable_symvers = sun; then
16525 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE=
16526 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
16527 else
16528 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
16529 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE=
16532 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
16533 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
16535 if test $enable_symvers != no ; then
16536 case ${target_os} in
16537 # The Solaris 2 runtime linker doesn't support the GNU extension of
16538 # binding the same symbol to different versions
16539 solaris2*)
16541 # Other platforms with GNU symbol versioning (GNU/Linux, more?) do.
16544 $as_echo "#define HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT 1" >>confdefs.h
16547 esac
16551 if test $enable_symvers = gnu; then
16553 $as_echo "#define LIBGOMP_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
16557 # Get target configury.
16558 . ${srcdir}/configure.tgt
16559 CFLAGS="$save_CFLAGS $XCFLAGS"
16561 # Check for __sync_val_compare_and_swap, but only after the target has
16562 # had a chance to set XCFLAGS.
16564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
16565 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
16566 if test "${libgomp_cv_have_sync_builtins+set}" = set; then :
16567 $as_echo_n "(cached) " >&6
16568 else
16570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16571 /* end confdefs.h. */
16574 main ()
16576 int foo; __sync_val_compare_and_swap(&foo, 0, 1);
16578 return 0;
16580 _ACEOF
16581 if ac_fn_c_try_link "$LINENO"; then :
16582 libgomp_cv_have_sync_builtins=yes
16583 else
16584 libgomp_cv_have_sync_builtins=no
16586 rm -f core conftest.err conftest.$ac_objext \
16587 conftest$ac_exeext conftest.$ac_ext
16589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_sync_builtins" >&5
16590 $as_echo "$libgomp_cv_have_sync_builtins" >&6; }
16591 if test $libgomp_cv_have_sync_builtins = yes; then
16593 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
16597 XCFLAGS="$XCFLAGS$XPCFLAGS"
16603 # Cleanup and exit.
16604 CFLAGS="$save_CFLAGS"
16605 cat >confcache <<\_ACEOF
16606 # This file is a shell script that caches the results of configure
16607 # tests run on this system so they can be shared between configure
16608 # scripts and configure runs, see configure's option --config-cache.
16609 # It is not useful on other systems. If it contains results you don't
16610 # want to keep, you may remove or edit it.
16612 # config.status only pays attention to the cache file if you give it
16613 # the --recheck option to rerun configure.
16615 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16616 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16617 # following values.
16619 _ACEOF
16621 # The following way of writing the cache mishandles newlines in values,
16622 # but we know of no workaround that is simple, portable, and efficient.
16623 # So, we kill variables containing newlines.
16624 # Ultrix sh set writes to stderr and can't be redirected directly,
16625 # and sets the high bit in the cache file unless we assign to the vars.
16627 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16628 eval ac_val=\$$ac_var
16629 case $ac_val in #(
16630 *${as_nl}*)
16631 case $ac_var in #(
16632 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16633 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16634 esac
16635 case $ac_var in #(
16636 _ | IFS | as_nl) ;; #(
16637 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16638 *) { eval $ac_var=; unset $ac_var;} ;;
16639 esac ;;
16640 esac
16641 done
16643 (set) 2>&1 |
16644 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16645 *${as_nl}ac_space=\ *)
16646 # `set' does not quote correctly, so add quotes: double-quote
16647 # substitution turns \\\\ into \\, and sed turns \\ into \.
16648 sed -n \
16649 "s/'/'\\\\''/g;
16650 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16651 ;; #(
16653 # `set' quotes correctly as required by POSIX, so do not add quotes.
16654 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16656 esac |
16657 sort
16659 sed '
16660 /^ac_cv_env_/b end
16661 t clear
16662 :clear
16663 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16664 t end
16665 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16666 :end' >>confcache
16667 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16668 if test -w "$cache_file"; then
16669 test "x$cache_file" != "x/dev/null" &&
16670 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16671 $as_echo "$as_me: updating cache $cache_file" >&6;}
16672 cat confcache >$cache_file
16673 else
16674 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16675 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16678 rm -f confcache
16680 if test ${multilib} = yes; then
16681 multilib_arg="--enable-multilib"
16682 else
16683 multilib_arg=
16686 # Set up the set of libraries that we need to link against for libgomp.
16687 # Note that the GOMP_SELF_SPEC in gcc.c may force -pthread,
16688 # which will force linkage against -lpthread (or equivalent for the system).
16689 # That's not 100% ideal, but about the best we can do easily.
16690 if test $enable_shared = yes; then
16691 link_gomp="-lgomp %{static: $LIBS}"
16692 else
16693 link_gomp="-lgomp $LIBS"
16697 if test "$ac_cv_fc_compiler_gnu" = yes; then
16698 USE_FORTRAN_TRUE=
16699 USE_FORTRAN_FALSE='#'
16700 else
16701 USE_FORTRAN_TRUE='#'
16702 USE_FORTRAN_FALSE=
16706 # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
16707 # and export AC_COMPUTE_INT. If that happens, then we'll need to remove
16708 # the underscore here and update the PREREQ. If it doesn't, then we'll
16709 # need to copy this macro to our acinclude.m4.
16710 save_CFLAGS="$CFLAGS"
16711 for i in $config_path; do
16712 if test -f $srcdir/config/$i/omp-lock.h; then
16713 CFLAGS="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h"
16714 break
16716 done
16718 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_t)" "OMP_LOCK_SIZE" ""; then :
16720 else
16721 as_fn_error "unsupported system, cannot find sizeof (omp_lock_t)" "$LINENO" 5
16725 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_t)" "OMP_LOCK_ALIGN" ""; then :
16730 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_t)" "OMP_NEST_LOCK_SIZE" ""; then :
16735 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_t)" "OMP_NEST_LOCK_ALIGN" ""; then :
16740 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_25_t)" "OMP_LOCK_25_SIZE" ""; then :
16742 else
16743 as_fn_error "unsupported system, cannot find sizeof (omp_lock_25_t)" "$LINENO" 5
16747 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_25_t)" "OMP_LOCK_25_ALIGN" ""; then :
16752 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_SIZE" ""; then :
16757 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_ALIGN" ""; then :
16763 # If the lock fits in an integer, then arrange for Fortran to use that
16764 # integer. If it doesn't, then arrange for Fortran to use a pointer.
16765 # Except that we don't have a way at present to multi-lib the installed
16766 # Fortran modules, so we assume 8 bytes for pointers, regardless of the
16767 # actual target.
16768 OMP_LOCK_KIND=$OMP_LOCK_SIZE
16769 OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
16770 if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
16771 OMP_LOCK_KIND=8
16773 if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
16774 OMP_NEST_LOCK_KIND=8
16776 OMP_LOCK_25_KIND=$OMP_LOCK_25_SIZE
16777 OMP_NEST_LOCK_25_KIND=$OMP_NEST_LOCK_25_SIZE
16778 if test $OMP_LOCK_25_SIZE -gt 8 || test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then
16779 OMP_LOCK_25_KIND=8
16781 if test $OMP_NEST_LOCK_25_SIZE -gt 8 || test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then
16782 OMP_NEST_LOCK_25_KIND=8
16797 CFLAGS="$save_CFLAGS"
16799 ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
16801 ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
16803 ac_config_files="$ac_config_files testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in"
16805 cat >confcache <<\_ACEOF
16806 # This file is a shell script that caches the results of configure
16807 # tests run on this system so they can be shared between configure
16808 # scripts and configure runs, see configure's option --config-cache.
16809 # It is not useful on other systems. If it contains results you don't
16810 # want to keep, you may remove or edit it.
16812 # config.status only pays attention to the cache file if you give it
16813 # the --recheck option to rerun configure.
16815 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16816 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16817 # following values.
16819 _ACEOF
16821 # The following way of writing the cache mishandles newlines in values,
16822 # but we know of no workaround that is simple, portable, and efficient.
16823 # So, we kill variables containing newlines.
16824 # Ultrix sh set writes to stderr and can't be redirected directly,
16825 # and sets the high bit in the cache file unless we assign to the vars.
16827 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16828 eval ac_val=\$$ac_var
16829 case $ac_val in #(
16830 *${as_nl}*)
16831 case $ac_var in #(
16832 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16833 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16834 esac
16835 case $ac_var in #(
16836 _ | IFS | as_nl) ;; #(
16837 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16838 *) { eval $ac_var=; unset $ac_var;} ;;
16839 esac ;;
16840 esac
16841 done
16843 (set) 2>&1 |
16844 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16845 *${as_nl}ac_space=\ *)
16846 # `set' does not quote correctly, so add quotes: double-quote
16847 # substitution turns \\\\ into \\, and sed turns \\ into \.
16848 sed -n \
16849 "s/'/'\\\\''/g;
16850 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16851 ;; #(
16853 # `set' quotes correctly as required by POSIX, so do not add quotes.
16854 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16856 esac |
16857 sort
16859 sed '
16860 /^ac_cv_env_/b end
16861 t clear
16862 :clear
16863 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16864 t end
16865 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16866 :end' >>confcache
16867 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16868 if test -w "$cache_file"; then
16869 test "x$cache_file" != "x/dev/null" &&
16870 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16871 $as_echo "$as_me: updating cache $cache_file" >&6;}
16872 cat confcache >$cache_file
16873 else
16874 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16875 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16878 rm -f confcache
16880 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16881 # Let make expand exec_prefix.
16882 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16884 DEFS=-DHAVE_CONFIG_H
16886 ac_libobjs=
16887 ac_ltlibobjs=
16888 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16889 # 1. Remove the extension, and $U if already installed.
16890 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16891 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16892 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16893 # will be set to the directory where LIBOBJS objects are built.
16894 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16895 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16896 done
16897 LIBOBJS=$ac_libobjs
16899 LTLIBOBJS=$ac_ltlibobjs
16902 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
16903 as_fn_error "conditional \"GENINSRC\" was never defined.
16904 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16906 if test -n "$EXEEXT"; then
16907 am__EXEEXT_TRUE=
16908 am__EXEEXT_FALSE='#'
16909 else
16910 am__EXEEXT_TRUE='#'
16911 am__EXEEXT_FALSE=
16914 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16915 as_fn_error "conditional \"AMDEP\" was never defined.
16916 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16918 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16919 as_fn_error "conditional \"am__fastdepCC\" was never defined.
16920 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16922 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
16923 as_fn_error "conditional \"BUILD_INFO\" was never defined.
16924 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16926 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16927 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
16928 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16930 if test -z "${PLUGIN_NVPTX_TRUE}" && test -z "${PLUGIN_NVPTX_FALSE}"; then
16931 as_fn_error "conditional \"PLUGIN_NVPTX\" was never defined.
16932 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16934 if test -z "${PLUGIN_HSA_TRUE}" && test -z "${PLUGIN_HSA_FALSE}"; then
16935 as_fn_error "conditional \"PLUGIN_HSA\" was never defined.
16936 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16938 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
16939 as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
16940 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16942 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
16943 as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
16944 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16946 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
16947 as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
16948 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16950 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
16951 as_fn_error "conditional \"USE_FORTRAN\" was never defined.
16952 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16955 : ${CONFIG_STATUS=./config.status}
16956 ac_write_fail=0
16957 ac_clean_files_save=$ac_clean_files
16958 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16959 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16960 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16961 as_write_fail=0
16962 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16963 #! $SHELL
16964 # Generated by $as_me.
16965 # Run this file to recreate the current configuration.
16966 # Compiler output produced by configure, useful for debugging
16967 # configure, is in config.log if it exists.
16969 debug=false
16970 ac_cs_recheck=false
16971 ac_cs_silent=false
16973 SHELL=\${CONFIG_SHELL-$SHELL}
16974 export SHELL
16975 _ASEOF
16976 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16977 ## -------------------- ##
16978 ## M4sh Initialization. ##
16979 ## -------------------- ##
16981 # Be more Bourne compatible
16982 DUALCASE=1; export DUALCASE # for MKS sh
16983 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16984 emulate sh
16985 NULLCMD=:
16986 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16987 # is contrary to our usage. Disable this feature.
16988 alias -g '${1+"$@"}'='"$@"'
16989 setopt NO_GLOB_SUBST
16990 else
16991 case `(set -o) 2>/dev/null` in #(
16992 *posix*) :
16993 set -o posix ;; #(
16994 *) :
16996 esac
17000 as_nl='
17002 export as_nl
17003 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17004 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17005 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17006 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17007 # Prefer a ksh shell builtin over an external printf program on Solaris,
17008 # but without wasting forks for bash or zsh.
17009 if test -z "$BASH_VERSION$ZSH_VERSION" \
17010 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17011 as_echo='print -r --'
17012 as_echo_n='print -rn --'
17013 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17014 as_echo='printf %s\n'
17015 as_echo_n='printf %s'
17016 else
17017 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17018 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17019 as_echo_n='/usr/ucb/echo -n'
17020 else
17021 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17022 as_echo_n_body='eval
17023 arg=$1;
17024 case $arg in #(
17025 *"$as_nl"*)
17026 expr "X$arg" : "X\\(.*\\)$as_nl";
17027 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17028 esac;
17029 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17031 export as_echo_n_body
17032 as_echo_n='sh -c $as_echo_n_body as_echo'
17034 export as_echo_body
17035 as_echo='sh -c $as_echo_body as_echo'
17038 # The user is always right.
17039 if test "${PATH_SEPARATOR+set}" != set; then
17040 PATH_SEPARATOR=:
17041 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17042 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17043 PATH_SEPARATOR=';'
17048 # IFS
17049 # We need space, tab and new line, in precisely that order. Quoting is
17050 # there to prevent editors from complaining about space-tab.
17051 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17052 # splitting by setting IFS to empty value.)
17053 IFS=" "" $as_nl"
17055 # Find who we are. Look in the path if we contain no directory separator.
17056 case $0 in #((
17057 *[\\/]* ) as_myself=$0 ;;
17058 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17059 for as_dir in $PATH
17061 IFS=$as_save_IFS
17062 test -z "$as_dir" && as_dir=.
17063 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17064 done
17065 IFS=$as_save_IFS
17068 esac
17069 # We did not find ourselves, most probably we were run as `sh COMMAND'
17070 # in which case we are not to be found in the path.
17071 if test "x$as_myself" = x; then
17072 as_myself=$0
17074 if test ! -f "$as_myself"; then
17075 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17076 exit 1
17079 # Unset variables that we do not need and which cause bugs (e.g. in
17080 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17081 # suppresses any "Segmentation fault" message there. '((' could
17082 # trigger a bug in pdksh 5.2.14.
17083 for as_var in BASH_ENV ENV MAIL MAILPATH
17084 do eval test x\${$as_var+set} = xset \
17085 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17086 done
17087 PS1='$ '
17088 PS2='> '
17089 PS4='+ '
17091 # NLS nuisances.
17092 LC_ALL=C
17093 export LC_ALL
17094 LANGUAGE=C
17095 export LANGUAGE
17097 # CDPATH.
17098 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17101 # as_fn_error ERROR [LINENO LOG_FD]
17102 # ---------------------------------
17103 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17104 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17105 # script with status $?, using 1 if that was 0.
17106 as_fn_error ()
17108 as_status=$?; test $as_status -eq 0 && as_status=1
17109 if test "$3"; then
17110 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17111 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
17113 $as_echo "$as_me: error: $1" >&2
17114 as_fn_exit $as_status
17115 } # as_fn_error
17118 # as_fn_set_status STATUS
17119 # -----------------------
17120 # Set $? to STATUS, without forking.
17121 as_fn_set_status ()
17123 return $1
17124 } # as_fn_set_status
17126 # as_fn_exit STATUS
17127 # -----------------
17128 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17129 as_fn_exit ()
17131 set +e
17132 as_fn_set_status $1
17133 exit $1
17134 } # as_fn_exit
17136 # as_fn_unset VAR
17137 # ---------------
17138 # Portably unset VAR.
17139 as_fn_unset ()
17141 { eval $1=; unset $1;}
17143 as_unset=as_fn_unset
17144 # as_fn_append VAR VALUE
17145 # ----------------------
17146 # Append the text in VALUE to the end of the definition contained in VAR. Take
17147 # advantage of any shell optimizations that allow amortized linear growth over
17148 # repeated appends, instead of the typical quadratic growth present in naive
17149 # implementations.
17150 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17151 eval 'as_fn_append ()
17153 eval $1+=\$2
17155 else
17156 as_fn_append ()
17158 eval $1=\$$1\$2
17160 fi # as_fn_append
17162 # as_fn_arith ARG...
17163 # ------------------
17164 # Perform arithmetic evaluation on the ARGs, and store the result in the
17165 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17166 # must be portable across $(()) and expr.
17167 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17168 eval 'as_fn_arith ()
17170 as_val=$(( $* ))
17172 else
17173 as_fn_arith ()
17175 as_val=`expr "$@" || test $? -eq 1`
17177 fi # as_fn_arith
17180 if expr a : '\(a\)' >/dev/null 2>&1 &&
17181 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17182 as_expr=expr
17183 else
17184 as_expr=false
17187 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17188 as_basename=basename
17189 else
17190 as_basename=false
17193 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17194 as_dirname=dirname
17195 else
17196 as_dirname=false
17199 as_me=`$as_basename -- "$0" ||
17200 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17201 X"$0" : 'X\(//\)$' \| \
17202 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17203 $as_echo X/"$0" |
17204 sed '/^.*\/\([^/][^/]*\)\/*$/{
17205 s//\1/
17208 /^X\/\(\/\/\)$/{
17209 s//\1/
17212 /^X\/\(\/\).*/{
17213 s//\1/
17216 s/.*/./; q'`
17218 # Avoid depending upon Character Ranges.
17219 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17220 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17221 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17222 as_cr_digits='0123456789'
17223 as_cr_alnum=$as_cr_Letters$as_cr_digits
17225 ECHO_C= ECHO_N= ECHO_T=
17226 case `echo -n x` in #(((((
17227 -n*)
17228 case `echo 'xy\c'` in
17229 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17230 xy) ECHO_C='\c';;
17231 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17232 ECHO_T=' ';;
17233 esac;;
17235 ECHO_N='-n';;
17236 esac
17238 rm -f conf$$ conf$$.exe conf$$.file
17239 if test -d conf$$.dir; then
17240 rm -f conf$$.dir/conf$$.file
17241 else
17242 rm -f conf$$.dir
17243 mkdir conf$$.dir 2>/dev/null
17245 if (echo >conf$$.file) 2>/dev/null; then
17246 if ln -s conf$$.file conf$$ 2>/dev/null; then
17247 as_ln_s='ln -s'
17248 # ... but there are two gotchas:
17249 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17250 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17251 # In both cases, we have to default to `cp -p'.
17252 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17253 as_ln_s='cp -p'
17254 elif ln conf$$.file conf$$ 2>/dev/null; then
17255 as_ln_s=ln
17256 else
17257 as_ln_s='cp -p'
17259 else
17260 as_ln_s='cp -p'
17262 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17263 rmdir conf$$.dir 2>/dev/null
17266 # as_fn_mkdir_p
17267 # -------------
17268 # Create "$as_dir" as a directory, including parents if necessary.
17269 as_fn_mkdir_p ()
17272 case $as_dir in #(
17273 -*) as_dir=./$as_dir;;
17274 esac
17275 test -d "$as_dir" || eval $as_mkdir_p || {
17276 as_dirs=
17277 while :; do
17278 case $as_dir in #(
17279 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17280 *) as_qdir=$as_dir;;
17281 esac
17282 as_dirs="'$as_qdir' $as_dirs"
17283 as_dir=`$as_dirname -- "$as_dir" ||
17284 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17285 X"$as_dir" : 'X\(//\)[^/]' \| \
17286 X"$as_dir" : 'X\(//\)$' \| \
17287 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17288 $as_echo X"$as_dir" |
17289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17290 s//\1/
17293 /^X\(\/\/\)[^/].*/{
17294 s//\1/
17297 /^X\(\/\/\)$/{
17298 s//\1/
17301 /^X\(\/\).*/{
17302 s//\1/
17305 s/.*/./; q'`
17306 test -d "$as_dir" && break
17307 done
17308 test -z "$as_dirs" || eval "mkdir $as_dirs"
17309 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
17312 } # as_fn_mkdir_p
17313 if mkdir -p . 2>/dev/null; then
17314 as_mkdir_p='mkdir -p "$as_dir"'
17315 else
17316 test -d ./-p && rmdir ./-p
17317 as_mkdir_p=false
17320 if test -x / >/dev/null 2>&1; then
17321 as_test_x='test -x'
17322 else
17323 if ls -dL / >/dev/null 2>&1; then
17324 as_ls_L_option=L
17325 else
17326 as_ls_L_option=
17328 as_test_x='
17329 eval sh -c '\''
17330 if test -d "$1"; then
17331 test -d "$1/.";
17332 else
17333 case $1 in #(
17334 -*)set "./$1";;
17335 esac;
17336 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17337 ???[sx]*):;;*)false;;esac;fi
17338 '\'' sh
17341 as_executable_p=$as_test_x
17343 # Sed expression to map a string onto a valid CPP name.
17344 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17346 # Sed expression to map a string onto a valid variable name.
17347 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17350 exec 6>&1
17351 ## ----------------------------------- ##
17352 ## Main body of $CONFIG_STATUS script. ##
17353 ## ----------------------------------- ##
17354 _ASEOF
17355 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17357 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17358 # Save the log message, to keep $0 and so on meaningful, and to
17359 # report actual input values of CONFIG_FILES etc. instead of their
17360 # values after options handling.
17361 ac_log="
17362 This file was extended by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
17363 generated by GNU Autoconf 2.64. Invocation command line was
17365 CONFIG_FILES = $CONFIG_FILES
17366 CONFIG_HEADERS = $CONFIG_HEADERS
17367 CONFIG_LINKS = $CONFIG_LINKS
17368 CONFIG_COMMANDS = $CONFIG_COMMANDS
17369 $ $0 $@
17371 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17374 _ACEOF
17376 case $ac_config_files in *"
17377 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17378 esac
17380 case $ac_config_headers in *"
17381 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17382 esac
17385 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17386 # Files that config.status was made for.
17387 config_files="$ac_config_files"
17388 config_headers="$ac_config_headers"
17389 config_commands="$ac_config_commands"
17391 _ACEOF
17393 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17394 ac_cs_usage="\
17395 \`$as_me' instantiates files and other configuration actions
17396 from templates according to the current configuration. Unless the files
17397 and actions are specified as TAGs, all are instantiated by default.
17399 Usage: $0 [OPTION]... [TAG]...
17401 -h, --help print this help, then exit
17402 -V, --version print version number and configuration settings, then exit
17403 -q, --quiet, --silent
17404 do not print progress messages
17405 -d, --debug don't remove temporary files
17406 --recheck update $as_me by reconfiguring in the same conditions
17407 --file=FILE[:TEMPLATE]
17408 instantiate the configuration file FILE
17409 --header=FILE[:TEMPLATE]
17410 instantiate the configuration header FILE
17412 Configuration files:
17413 $config_files
17415 Configuration headers:
17416 $config_headers
17418 Configuration commands:
17419 $config_commands
17421 Report bugs to the package provider.
17422 GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
17423 General help using GNU software: <http://www.gnu.org/gethelp/>."
17425 _ACEOF
17426 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17427 ac_cs_version="\\
17428 GNU Offloading and Multi Processing Runtime Library config.status 1.0
17429 configured by $0, generated by GNU Autoconf 2.64,
17430 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17432 Copyright (C) 2009 Free Software Foundation, Inc.
17433 This config.status script is free software; the Free Software Foundation
17434 gives unlimited permission to copy, distribute and modify it."
17436 ac_pwd='$ac_pwd'
17437 srcdir='$srcdir'
17438 INSTALL='$INSTALL'
17439 MKDIR_P='$MKDIR_P'
17440 AWK='$AWK'
17441 test -n "\$AWK" || AWK=awk
17442 _ACEOF
17444 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17445 # The default lists apply if the user does not specify any file.
17446 ac_need_defaults=:
17447 while test $# != 0
17449 case $1 in
17450 --*=*)
17451 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17452 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17453 ac_shift=:
17456 ac_option=$1
17457 ac_optarg=$2
17458 ac_shift=shift
17460 esac
17462 case $ac_option in
17463 # Handling of the options.
17464 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17465 ac_cs_recheck=: ;;
17466 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17467 $as_echo "$ac_cs_version"; exit ;;
17468 --debug | --debu | --deb | --de | --d | -d )
17469 debug=: ;;
17470 --file | --fil | --fi | --f )
17471 $ac_shift
17472 case $ac_optarg in
17473 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17474 esac
17475 as_fn_append CONFIG_FILES " '$ac_optarg'"
17476 ac_need_defaults=false;;
17477 --header | --heade | --head | --hea )
17478 $ac_shift
17479 case $ac_optarg in
17480 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17481 esac
17482 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17483 ac_need_defaults=false;;
17484 --he | --h)
17485 # Conflict between --help and --header
17486 as_fn_error "ambiguous option: \`$1'
17487 Try \`$0 --help' for more information.";;
17488 --help | --hel | -h )
17489 $as_echo "$ac_cs_usage"; exit ;;
17490 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17491 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17492 ac_cs_silent=: ;;
17494 # This is an error.
17495 -*) as_fn_error "unrecognized option: \`$1'
17496 Try \`$0 --help' for more information." ;;
17498 *) as_fn_append ac_config_targets " $1"
17499 ac_need_defaults=false ;;
17501 esac
17502 shift
17503 done
17505 ac_configure_extra_args=
17507 if $ac_cs_silent; then
17508 exec 6>/dev/null
17509 ac_configure_extra_args="$ac_configure_extra_args --silent"
17512 _ACEOF
17513 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17514 if \$ac_cs_recheck; then
17515 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17516 shift
17517 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17518 CONFIG_SHELL='$SHELL'
17519 export CONFIG_SHELL
17520 exec "\$@"
17523 _ACEOF
17524 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17525 exec 5>>config.log
17527 echo
17528 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17529 ## Running $as_me. ##
17530 _ASBOX
17531 $as_echo "$ac_log"
17532 } >&5
17534 _ACEOF
17535 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17537 # INIT-COMMANDS
17540 srcdir="$srcdir"
17541 host="$host"
17542 target="$target"
17543 with_multisubdir="$with_multisubdir"
17544 with_multisrctop="$with_multisrctop"
17545 with_target_subdir="$with_target_subdir"
17546 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17547 multi_basedir="$multi_basedir"
17548 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17549 CC="$CC"
17550 CXX="$CXX"
17551 GFORTRAN="$GFORTRAN"
17552 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17555 # The HP-UX ksh and POSIX shell print the target directory to stdout
17556 # if CDPATH is set.
17557 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17559 sed_quote_subst='$sed_quote_subst'
17560 double_quote_subst='$double_quote_subst'
17561 delay_variable_subst='$delay_variable_subst'
17562 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17563 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17564 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17565 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17566 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17567 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17568 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17569 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17570 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17571 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17572 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17573 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17574 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17575 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17576 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17577 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17578 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17579 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17580 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17581 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17582 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17583 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17584 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17585 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17586 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17587 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17588 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17589 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17590 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17591 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17592 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17593 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17594 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17595 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17596 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17597 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17598 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17599 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17600 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17601 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17602 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17603 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17604 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17605 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17606 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17607 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17608 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17609 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17610 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"`'
17611 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17612 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17613 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17614 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17615 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17616 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17617 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17618 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17619 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17620 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17621 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17622 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17623 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17624 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17625 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17626 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17627 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17628 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17629 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17630 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17631 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17632 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17633 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17634 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17635 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17636 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17637 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17638 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17639 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17640 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17641 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17642 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17643 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17644 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17645 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17646 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17647 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17648 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17649 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17650 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17651 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17652 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17653 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17654 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17655 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17656 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17657 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17658 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17659 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17660 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17661 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17662 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17663 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17664 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17665 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17666 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17667 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17668 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17669 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17670 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17671 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17672 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17673 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17674 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17675 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17676 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17677 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17678 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17679 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17680 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17681 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17682 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17683 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17684 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17685 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17686 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17687 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17688 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
17689 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
17690 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
17691 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17692 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
17693 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
17694 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
17695 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
17696 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
17697 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
17698 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
17699 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
17700 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
17701 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17702 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17703 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
17704 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
17705 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
17706 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17707 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17708 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
17709 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17710 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
17711 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17712 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17713 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17714 hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
17715 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
17716 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
17717 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
17718 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
17719 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
17720 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
17721 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
17722 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
17723 fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
17724 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
17725 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
17726 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17727 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17728 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
17729 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
17730 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
17731 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
17732 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
17733 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
17734 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
17735 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
17736 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
17738 LTCC='$LTCC'
17739 LTCFLAGS='$LTCFLAGS'
17740 compiler='$compiler_DEFAULT'
17742 # A function that is used when there is no print builtin or printf.
17743 func_fallback_echo ()
17745 eval 'cat <<_LTECHO_EOF
17747 _LTECHO_EOF'
17750 # Quote evaled strings.
17751 for var in SHELL \
17752 ECHO \
17753 SED \
17754 GREP \
17755 EGREP \
17756 FGREP \
17757 LD \
17758 NM \
17759 LN_S \
17760 lt_SP2NL \
17761 lt_NL2SP \
17762 reload_flag \
17763 OBJDUMP \
17764 deplibs_check_method \
17765 file_magic_cmd \
17766 AR \
17767 AR_FLAGS \
17768 STRIP \
17769 RANLIB \
17770 CC \
17771 CFLAGS \
17772 compiler \
17773 lt_cv_sys_global_symbol_pipe \
17774 lt_cv_sys_global_symbol_to_cdecl \
17775 lt_cv_sys_global_symbol_to_c_name_address \
17776 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17777 lt_prog_compiler_no_builtin_flag \
17778 lt_prog_compiler_wl \
17779 lt_prog_compiler_pic \
17780 lt_prog_compiler_static \
17781 lt_cv_prog_compiler_c_o \
17782 need_locks \
17783 DSYMUTIL \
17784 NMEDIT \
17785 LIPO \
17786 OTOOL \
17787 OTOOL64 \
17788 shrext_cmds \
17789 export_dynamic_flag_spec \
17790 whole_archive_flag_spec \
17791 compiler_needs_object \
17792 with_gnu_ld \
17793 allow_undefined_flag \
17794 no_undefined_flag \
17795 hardcode_libdir_flag_spec \
17796 hardcode_libdir_flag_spec_ld \
17797 hardcode_libdir_separator \
17798 fix_srcfile_path \
17799 exclude_expsyms \
17800 include_expsyms \
17801 file_list_spec \
17802 variables_saved_for_relink \
17803 libname_spec \
17804 library_names_spec \
17805 soname_spec \
17806 install_override_mode \
17807 finish_eval \
17808 old_striplib \
17809 striplib \
17810 compiler_lib_search_dirs \
17811 predep_objects \
17812 postdep_objects \
17813 predeps \
17814 postdeps \
17815 compiler_lib_search_path \
17816 LD_FC \
17817 reload_flag_FC \
17818 compiler_FC \
17819 lt_prog_compiler_no_builtin_flag_FC \
17820 lt_prog_compiler_wl_FC \
17821 lt_prog_compiler_pic_FC \
17822 lt_prog_compiler_static_FC \
17823 lt_cv_prog_compiler_c_o_FC \
17824 export_dynamic_flag_spec_FC \
17825 whole_archive_flag_spec_FC \
17826 compiler_needs_object_FC \
17827 with_gnu_ld_FC \
17828 allow_undefined_flag_FC \
17829 no_undefined_flag_FC \
17830 hardcode_libdir_flag_spec_FC \
17831 hardcode_libdir_flag_spec_ld_FC \
17832 hardcode_libdir_separator_FC \
17833 fix_srcfile_path_FC \
17834 exclude_expsyms_FC \
17835 include_expsyms_FC \
17836 file_list_spec_FC \
17837 compiler_lib_search_dirs_FC \
17838 predep_objects_FC \
17839 postdep_objects_FC \
17840 predeps_FC \
17841 postdeps_FC \
17842 compiler_lib_search_path_FC; do
17843 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17844 *[\\\\\\\`\\"\\\$]*)
17845 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17848 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17850 esac
17851 done
17853 # Double-quote double-evaled strings.
17854 for var in reload_cmds \
17855 old_postinstall_cmds \
17856 old_postuninstall_cmds \
17857 old_archive_cmds \
17858 extract_expsyms_cmds \
17859 old_archive_from_new_cmds \
17860 old_archive_from_expsyms_cmds \
17861 archive_cmds \
17862 archive_expsym_cmds \
17863 module_cmds \
17864 module_expsym_cmds \
17865 export_symbols_cmds \
17866 prelink_cmds \
17867 postinstall_cmds \
17868 postuninstall_cmds \
17869 finish_cmds \
17870 sys_lib_search_path_spec \
17871 sys_lib_dlsearch_path_spec \
17872 reload_cmds_FC \
17873 old_archive_cmds_FC \
17874 old_archive_from_new_cmds_FC \
17875 old_archive_from_expsyms_cmds_FC \
17876 archive_cmds_FC \
17877 archive_expsym_cmds_FC \
17878 module_cmds_FC \
17879 module_expsym_cmds_FC \
17880 export_symbols_cmds_FC \
17881 prelink_cmds_FC; do
17882 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17883 *[\\\\\\\`\\"\\\$]*)
17884 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17887 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17889 esac
17890 done
17892 ac_aux_dir='$ac_aux_dir'
17893 xsi_shell='$xsi_shell'
17894 lt_shell_append='$lt_shell_append'
17896 # See if we are running on zsh, and set the options which allow our
17897 # commands through without removal of \ escapes INIT.
17898 if test -n "\${ZSH_VERSION+set}" ; then
17899 setopt NO_GLOB_SUBST
17903 PACKAGE='$PACKAGE'
17904 VERSION='$VERSION'
17905 TIMESTAMP='$TIMESTAMP'
17906 RM='$RM'
17907 ofile='$ofile'
17914 GCC="$GCC"
17915 CC="$CC"
17916 acx_cv_header_stdint="$acx_cv_header_stdint"
17917 acx_cv_type_int8_t="$acx_cv_type_int8_t"
17918 acx_cv_type_int16_t="$acx_cv_type_int16_t"
17919 acx_cv_type_int32_t="$acx_cv_type_int32_t"
17920 acx_cv_type_int64_t="$acx_cv_type_int64_t"
17921 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
17922 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
17923 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
17924 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
17925 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
17926 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
17927 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
17928 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
17929 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
17932 _ACEOF
17934 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17936 # Handling of arguments.
17937 for ac_config_target in $ac_config_targets
17939 case $ac_config_target in
17940 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17941 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17942 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17943 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17944 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
17945 "omp.h") CONFIG_FILES="$CONFIG_FILES omp.h" ;;
17946 "omp_lib.h") CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
17947 "omp_lib.f90") CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
17948 "libgomp_f.h") CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
17949 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17950 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17951 "libgomp.spec") CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
17952 "testsuite/libgomp-test-support.pt.exp") CONFIG_FILES="$CONFIG_FILES testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in" ;;
17954 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17955 esac
17956 done
17959 # If the user did not use the arguments to specify the items to instantiate,
17960 # then the envvar interface is used. Set only those that are not.
17961 # We use the long form for the default assignment because of an extremely
17962 # bizarre bug on SunOS 4.1.3.
17963 if $ac_need_defaults; then
17964 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17965 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17966 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17969 # Have a temporary directory for convenience. Make it in the build tree
17970 # simply because there is no reason against having it here, and in addition,
17971 # creating and moving files from /tmp can sometimes cause problems.
17972 # Hook for its removal unless debugging.
17973 # Note that there is a small window in which the directory will not be cleaned:
17974 # after its creation but before its name has been assigned to `$tmp'.
17975 $debug ||
17977 tmp=
17978 trap 'exit_status=$?
17979 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17981 trap 'as_fn_exit 1' 1 2 13 15
17983 # Create a (secure) tmp directory for tmp files.
17986 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17987 test -n "$tmp" && test -d "$tmp"
17988 } ||
17990 tmp=./conf$$-$RANDOM
17991 (umask 077 && mkdir "$tmp")
17992 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17994 # Set up the scripts for CONFIG_FILES section.
17995 # No need to generate them if there are no CONFIG_FILES.
17996 # This happens for instance with `./config.status config.h'.
17997 if test -n "$CONFIG_FILES"; then
18000 ac_cr=`echo X | tr X '\015'`
18001 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18002 # But we know of no other shell where ac_cr would be empty at this
18003 # point, so we can use a bashism as a fallback.
18004 if test "x$ac_cr" = x; then
18005 eval ac_cr=\$\'\\r\'
18007 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18008 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18009 ac_cs_awk_cr='\r'
18010 else
18011 ac_cs_awk_cr=$ac_cr
18014 echo 'BEGIN {' >"$tmp/subs1.awk" &&
18015 _ACEOF
18019 echo "cat >conf$$subs.awk <<_ACEOF" &&
18020 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18021 echo "_ACEOF"
18022 } >conf$$subs.sh ||
18023 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18024 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18025 ac_delim='%!_!# '
18026 for ac_last_try in false false false false false :; do
18027 . ./conf$$subs.sh ||
18028 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18030 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18031 if test $ac_delim_n = $ac_delim_num; then
18032 break
18033 elif $ac_last_try; then
18034 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18035 else
18036 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18038 done
18039 rm -f conf$$subs.sh
18041 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18042 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18043 _ACEOF
18044 sed -n '
18046 s/^/S["/; s/!.*/"]=/
18049 s/^[^!]*!//
18050 :repl
18051 t repl
18052 s/'"$ac_delim"'$//
18053 t delim
18056 s/\(.\{148\}\).*/\1/
18057 t more1
18058 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18061 b repl
18062 :more1
18063 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18066 s/.\{148\}//
18067 t nl
18068 :delim
18070 s/\(.\{148\}\).*/\1/
18071 t more2
18072 s/["\\]/\\&/g; s/^/"/; s/$/"/
18075 :more2
18076 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18079 s/.\{148\}//
18080 t delim
18081 ' <conf$$subs.awk | sed '
18082 /^[^""]/{
18084 s/\n//
18086 ' >>$CONFIG_STATUS || ac_write_fail=1
18087 rm -f conf$$subs.awk
18088 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18089 _ACAWK
18090 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18091 for (key in S) S_is_set[key] = 1
18092 FS = "\a"
18096 line = $ 0
18097 nfields = split(line, field, "@")
18098 substed = 0
18099 len = length(field[1])
18100 for (i = 2; i < nfields; i++) {
18101 key = field[i]
18102 keylen = length(key)
18103 if (S_is_set[key]) {
18104 value = S[key]
18105 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18106 len += length(value) + length(field[++i])
18107 substed = 1
18108 } else
18109 len += 1 + keylen
18112 print line
18115 _ACAWK
18116 _ACEOF
18117 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18118 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18119 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18120 else
18122 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18123 || as_fn_error "could not setup config files machinery" "$LINENO" 5
18124 _ACEOF
18126 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18127 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18128 # trailing colons and then remove the whole line if VPATH becomes empty
18129 # (actually we leave an empty line to preserve line numbers).
18130 if test "x$srcdir" = x.; then
18131 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18132 s/:*\$(srcdir):*/:/
18133 s/:*\${srcdir}:*/:/
18134 s/:*@srcdir@:*/:/
18135 s/^\([^=]*=[ ]*\):*/\1/
18136 s/:*$//
18137 s/^[^=]*=[ ]*$//
18141 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18142 fi # test -n "$CONFIG_FILES"
18144 # Set up the scripts for CONFIG_HEADERS section.
18145 # No need to generate them if there are no CONFIG_HEADERS.
18146 # This happens for instance with `./config.status Makefile'.
18147 if test -n "$CONFIG_HEADERS"; then
18148 cat >"$tmp/defines.awk" <<\_ACAWK ||
18149 BEGIN {
18150 _ACEOF
18152 # Transform confdefs.h into an awk script `defines.awk', embedded as
18153 # here-document in config.status, that substitutes the proper values into
18154 # config.h.in to produce config.h.
18156 # Create a delimiter string that does not exist in confdefs.h, to ease
18157 # handling of long lines.
18158 ac_delim='%!_!# '
18159 for ac_last_try in false false :; do
18160 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18161 if test -z "$ac_t"; then
18162 break
18163 elif $ac_last_try; then
18164 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
18165 else
18166 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18168 done
18170 # For the awk script, D is an array of macro values keyed by name,
18171 # likewise P contains macro parameters if any. Preserve backslash
18172 # newline sequences.
18174 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18175 sed -n '
18176 s/.\{148\}/&'"$ac_delim"'/g
18177 t rset
18178 :rset
18179 s/^[ ]*#[ ]*define[ ][ ]*/ /
18180 t def
18182 :def
18183 s/\\$//
18184 t bsnl
18185 s/["\\]/\\&/g
18186 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18187 D["\1"]=" \3"/p
18188 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18190 :bsnl
18191 s/["\\]/\\&/g
18192 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18193 D["\1"]=" \3\\\\\\n"\\/p
18194 t cont
18195 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18196 t cont
18198 :cont
18200 s/.\{148\}/&'"$ac_delim"'/g
18201 t clear
18202 :clear
18203 s/\\$//
18204 t bsnlc
18205 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18207 :bsnlc
18208 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18209 b cont
18210 ' <confdefs.h | sed '
18211 s/'"$ac_delim"'/"\\\
18212 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18214 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18215 for (key in D) D_is_set[key] = 1
18216 FS = "\a"
18218 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18219 line = \$ 0
18220 split(line, arg, " ")
18221 if (arg[1] == "#") {
18222 defundef = arg[2]
18223 mac1 = arg[3]
18224 } else {
18225 defundef = substr(arg[1], 2)
18226 mac1 = arg[2]
18228 split(mac1, mac2, "(") #)
18229 macro = mac2[1]
18230 prefix = substr(line, 1, index(line, defundef) - 1)
18231 if (D_is_set[macro]) {
18232 # Preserve the white space surrounding the "#".
18233 print prefix "define", macro P[macro] D[macro]
18234 next
18235 } else {
18236 # Replace #undef with comments. This is necessary, for example,
18237 # in the case of _POSIX_SOURCE, which is predefined and required
18238 # on some systems where configure will not decide to define it.
18239 if (defundef == "undef") {
18240 print "/*", prefix defundef, macro, "*/"
18241 next
18245 { print }
18246 _ACAWK
18247 _ACEOF
18248 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18249 as_fn_error "could not setup config headers machinery" "$LINENO" 5
18250 fi # test -n "$CONFIG_HEADERS"
18253 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18254 shift
18255 for ac_tag
18257 case $ac_tag in
18258 :[FHLC]) ac_mode=$ac_tag; continue;;
18259 esac
18260 case $ac_mode$ac_tag in
18261 :[FHL]*:*);;
18262 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
18263 :[FH]-) ac_tag=-:-;;
18264 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18265 esac
18266 ac_save_IFS=$IFS
18267 IFS=:
18268 set x $ac_tag
18269 IFS=$ac_save_IFS
18270 shift
18271 ac_file=$1
18272 shift
18274 case $ac_mode in
18275 :L) ac_source=$1;;
18276 :[FH])
18277 ac_file_inputs=
18278 for ac_f
18280 case $ac_f in
18281 -) ac_f="$tmp/stdin";;
18282 *) # Look for the file first in the build tree, then in the source tree
18283 # (if the path is not absolute). The absolute path cannot be DOS-style,
18284 # because $ac_f cannot contain `:'.
18285 test -f "$ac_f" ||
18286 case $ac_f in
18287 [\\/$]*) false;;
18288 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18289 esac ||
18290 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18291 esac
18292 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18293 as_fn_append ac_file_inputs " '$ac_f'"
18294 done
18296 # Let's still pretend it is `configure' which instantiates (i.e., don't
18297 # use $as_me), people would be surprised to read:
18298 # /* config.h. Generated by config.status. */
18299 configure_input='Generated from '`
18300 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18301 `' by configure.'
18302 if test x"$ac_file" != x-; then
18303 configure_input="$ac_file. $configure_input"
18304 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18305 $as_echo "$as_me: creating $ac_file" >&6;}
18307 # Neutralize special characters interpreted by sed in replacement strings.
18308 case $configure_input in #(
18309 *\&* | *\|* | *\\* )
18310 ac_sed_conf_input=`$as_echo "$configure_input" |
18311 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18312 *) ac_sed_conf_input=$configure_input;;
18313 esac
18315 case $ac_tag in
18316 *:-:* | *:-) cat >"$tmp/stdin" \
18317 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
18318 esac
18320 esac
18322 ac_dir=`$as_dirname -- "$ac_file" ||
18323 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18324 X"$ac_file" : 'X\(//\)[^/]' \| \
18325 X"$ac_file" : 'X\(//\)$' \| \
18326 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18327 $as_echo X"$ac_file" |
18328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18329 s//\1/
18332 /^X\(\/\/\)[^/].*/{
18333 s//\1/
18336 /^X\(\/\/\)$/{
18337 s//\1/
18340 /^X\(\/\).*/{
18341 s//\1/
18344 s/.*/./; q'`
18345 as_dir="$ac_dir"; as_fn_mkdir_p
18346 ac_builddir=.
18348 case "$ac_dir" in
18349 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18351 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18352 # A ".." for each directory in $ac_dir_suffix.
18353 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18354 case $ac_top_builddir_sub in
18355 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18356 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18357 esac ;;
18358 esac
18359 ac_abs_top_builddir=$ac_pwd
18360 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18361 # for backward compatibility:
18362 ac_top_builddir=$ac_top_build_prefix
18364 case $srcdir in
18365 .) # We are building in place.
18366 ac_srcdir=.
18367 ac_top_srcdir=$ac_top_builddir_sub
18368 ac_abs_top_srcdir=$ac_pwd ;;
18369 [\\/]* | ?:[\\/]* ) # Absolute name.
18370 ac_srcdir=$srcdir$ac_dir_suffix;
18371 ac_top_srcdir=$srcdir
18372 ac_abs_top_srcdir=$srcdir ;;
18373 *) # Relative name.
18374 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18375 ac_top_srcdir=$ac_top_build_prefix$srcdir
18376 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18377 esac
18378 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18381 case $ac_mode in
18384 # CONFIG_FILE
18387 case $INSTALL in
18388 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18389 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18390 esac
18391 ac_MKDIR_P=$MKDIR_P
18392 case $MKDIR_P in
18393 [\\/$]* | ?:[\\/]* ) ;;
18394 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18395 esac
18396 _ACEOF
18398 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18399 # If the template does not know about datarootdir, expand it.
18400 # FIXME: This hack should be removed a few years after 2.60.
18401 ac_datarootdir_hack=; ac_datarootdir_seen=
18402 ac_sed_dataroot='
18403 /datarootdir/ {
18407 /@datadir@/p
18408 /@docdir@/p
18409 /@infodir@/p
18410 /@localedir@/p
18411 /@mandir@/p'
18412 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18413 *datarootdir*) ac_datarootdir_seen=yes;;
18414 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18416 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18417 _ACEOF
18418 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18419 ac_datarootdir_hack='
18420 s&@datadir@&$datadir&g
18421 s&@docdir@&$docdir&g
18422 s&@infodir@&$infodir&g
18423 s&@localedir@&$localedir&g
18424 s&@mandir@&$mandir&g
18425 s&\\\${datarootdir}&$datarootdir&g' ;;
18426 esac
18427 _ACEOF
18429 # Neutralize VPATH when `$srcdir' = `.'.
18430 # Shell code in configure.ac might set extrasub.
18431 # FIXME: do we really want to maintain this feature?
18432 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18433 ac_sed_extra="$ac_vpsub
18434 $extrasub
18435 _ACEOF
18436 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18438 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18439 s|@configure_input@|$ac_sed_conf_input|;t t
18440 s&@top_builddir@&$ac_top_builddir_sub&;t t
18441 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18442 s&@srcdir@&$ac_srcdir&;t t
18443 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18444 s&@top_srcdir@&$ac_top_srcdir&;t t
18445 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18446 s&@builddir@&$ac_builddir&;t t
18447 s&@abs_builddir@&$ac_abs_builddir&;t t
18448 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18449 s&@INSTALL@&$ac_INSTALL&;t t
18450 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18451 $ac_datarootdir_hack
18453 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18454 || as_fn_error "could not create $ac_file" "$LINENO" 5
18456 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18457 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18458 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18460 which seems to be undefined. Please make sure it is defined." >&5
18461 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18462 which seems to be undefined. Please make sure it is defined." >&2;}
18464 rm -f "$tmp/stdin"
18465 case $ac_file in
18466 -) cat "$tmp/out" && rm -f "$tmp/out";;
18467 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18468 esac \
18469 || as_fn_error "could not create $ac_file" "$LINENO" 5
18473 # CONFIG_HEADER
18475 if test x"$ac_file" != x-; then
18477 $as_echo "/* $configure_input */" \
18478 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18479 } >"$tmp/config.h" \
18480 || as_fn_error "could not create $ac_file" "$LINENO" 5
18481 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18482 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18483 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18484 else
18485 rm -f "$ac_file"
18486 mv "$tmp/config.h" "$ac_file" \
18487 || as_fn_error "could not create $ac_file" "$LINENO" 5
18489 else
18490 $as_echo "/* $configure_input */" \
18491 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18492 || as_fn_error "could not create -" "$LINENO" 5
18494 # Compute "$ac_file"'s index in $config_headers.
18495 _am_arg="$ac_file"
18496 _am_stamp_count=1
18497 for _am_header in $config_headers :; do
18498 case $_am_header in
18499 $_am_arg | $_am_arg:* )
18500 break ;;
18502 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18503 esac
18504 done
18505 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18506 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18507 X"$_am_arg" : 'X\(//\)[^/]' \| \
18508 X"$_am_arg" : 'X\(//\)$' \| \
18509 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18510 $as_echo X"$_am_arg" |
18511 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18512 s//\1/
18515 /^X\(\/\/\)[^/].*/{
18516 s//\1/
18519 /^X\(\/\/\)$/{
18520 s//\1/
18523 /^X\(\/\).*/{
18524 s//\1/
18527 s/.*/./; q'`/stamp-h$_am_stamp_count
18530 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18531 $as_echo "$as_me: executing $ac_file commands" >&6;}
18533 esac
18536 case $ac_file$ac_mode in
18537 "default-1":C)
18538 # Only add multilib support code if we just rebuilt the top-level
18539 # Makefile.
18540 case " $CONFIG_FILES " in
18541 *" Makefile "*)
18542 ac_file=Makefile . ${multi_basedir}/config-ml.in
18544 esac ;;
18545 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18546 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18547 # are listed without --file. Let's play safe and only enable the eval
18548 # if we detect the quoting.
18549 case $CONFIG_FILES in
18550 *\'*) eval set x "$CONFIG_FILES" ;;
18551 *) set x $CONFIG_FILES ;;
18552 esac
18553 shift
18554 for mf
18556 # Strip MF so we end up with the name of the file.
18557 mf=`echo "$mf" | sed -e 's/:.*$//'`
18558 # Check whether this is an Automake generated Makefile or not.
18559 # We used to match only the files named `Makefile.in', but
18560 # some people rename them; so instead we look at the file content.
18561 # Grep'ing the first line is not enough: some people post-process
18562 # each Makefile.in and add a new line on top of each file to say so.
18563 # Grep'ing the whole file is not good either: AIX grep has a line
18564 # limit of 2048, but all sed's we know have understand at least 4000.
18565 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18566 dirpart=`$as_dirname -- "$mf" ||
18567 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18568 X"$mf" : 'X\(//\)[^/]' \| \
18569 X"$mf" : 'X\(//\)$' \| \
18570 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18571 $as_echo X"$mf" |
18572 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18573 s//\1/
18576 /^X\(\/\/\)[^/].*/{
18577 s//\1/
18580 /^X\(\/\/\)$/{
18581 s//\1/
18584 /^X\(\/\).*/{
18585 s//\1/
18588 s/.*/./; q'`
18589 else
18590 continue
18592 # Extract the definition of DEPDIR, am__include, and am__quote
18593 # from the Makefile without running `make'.
18594 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18595 test -z "$DEPDIR" && continue
18596 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18597 test -z "am__include" && continue
18598 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18599 # When using ansi2knr, U may be empty or an underscore; expand it
18600 U=`sed -n 's/^U = //p' < "$mf"`
18601 # Find all dependency output files, they are included files with
18602 # $(DEPDIR) in their names. We invoke sed twice because it is the
18603 # simplest approach to changing $(DEPDIR) to its actual value in the
18604 # expansion.
18605 for file in `sed -n "
18606 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18607 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18608 # Make sure the directory exists.
18609 test -f "$dirpart/$file" && continue
18610 fdir=`$as_dirname -- "$file" ||
18611 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18612 X"$file" : 'X\(//\)[^/]' \| \
18613 X"$file" : 'X\(//\)$' \| \
18614 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18615 $as_echo X"$file" |
18616 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18617 s//\1/
18620 /^X\(\/\/\)[^/].*/{
18621 s//\1/
18624 /^X\(\/\/\)$/{
18625 s//\1/
18628 /^X\(\/\).*/{
18629 s//\1/
18632 s/.*/./; q'`
18633 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18634 # echo "creating $dirpart/$file"
18635 echo '# dummy' > "$dirpart/$file"
18636 done
18637 done
18640 "libtool":C)
18642 # See if we are running on zsh, and set the options which allow our
18643 # commands through without removal of \ escapes.
18644 if test -n "${ZSH_VERSION+set}" ; then
18645 setopt NO_GLOB_SUBST
18648 cfgfile="${ofile}T"
18649 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18650 $RM "$cfgfile"
18652 cat <<_LT_EOF >> "$cfgfile"
18653 #! $SHELL
18655 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18656 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18657 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18658 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18660 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18661 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18662 # Written by Gordon Matzigkeit, 1996
18664 # This file is part of GNU Libtool.
18666 # GNU Libtool is free software; you can redistribute it and/or
18667 # modify it under the terms of the GNU General Public License as
18668 # published by the Free Software Foundation; either version 2 of
18669 # the License, or (at your option) any later version.
18671 # As a special exception to the GNU General Public License,
18672 # if you distribute this file as part of a program or library that
18673 # is built using GNU Libtool, you may include this file under the
18674 # same distribution terms that you use for the rest of that program.
18676 # GNU Libtool is distributed in the hope that it will be useful,
18677 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18678 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18679 # GNU General Public License for more details.
18681 # You should have received a copy of the GNU General Public License
18682 # along with GNU Libtool; see the file COPYING. If not, a copy
18683 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18684 # obtained by writing to the Free Software Foundation, Inc.,
18685 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18688 # The names of the tagged configurations supported by this script.
18689 available_tags="FC "
18691 # ### BEGIN LIBTOOL CONFIG
18693 # Which release of libtool.m4 was used?
18694 macro_version=$macro_version
18695 macro_revision=$macro_revision
18697 # Whether or not to build shared libraries.
18698 build_libtool_libs=$enable_shared
18700 # Whether or not to build static libraries.
18701 build_old_libs=$enable_static
18703 # What type of objects to build.
18704 pic_mode=$pic_mode
18706 # Whether or not to optimize for fast installation.
18707 fast_install=$enable_fast_install
18709 # Shell to use when invoking shell scripts.
18710 SHELL=$lt_SHELL
18712 # An echo program that protects backslashes.
18713 ECHO=$lt_ECHO
18715 # The host system.
18716 host_alias=$host_alias
18717 host=$host
18718 host_os=$host_os
18720 # The build system.
18721 build_alias=$build_alias
18722 build=$build
18723 build_os=$build_os
18725 # A sed program that does not truncate output.
18726 SED=$lt_SED
18728 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18729 Xsed="\$SED -e 1s/^X//"
18731 # A grep program that handles long lines.
18732 GREP=$lt_GREP
18734 # An ERE matcher.
18735 EGREP=$lt_EGREP
18737 # A literal string matcher.
18738 FGREP=$lt_FGREP
18740 # A BSD- or MS-compatible name lister.
18741 NM=$lt_NM
18743 # Whether we need soft or hard links.
18744 LN_S=$lt_LN_S
18746 # What is the maximum length of a command?
18747 max_cmd_len=$max_cmd_len
18749 # Object file suffix (normally "o").
18750 objext=$ac_objext
18752 # Executable file suffix (normally "").
18753 exeext=$exeext
18755 # whether the shell understands "unset".
18756 lt_unset=$lt_unset
18758 # turn spaces into newlines.
18759 SP2NL=$lt_lt_SP2NL
18761 # turn newlines into spaces.
18762 NL2SP=$lt_lt_NL2SP
18764 # An object symbol dumper.
18765 OBJDUMP=$lt_OBJDUMP
18767 # Method to check whether dependent libraries are shared objects.
18768 deplibs_check_method=$lt_deplibs_check_method
18770 # Command to use when deplibs_check_method == "file_magic".
18771 file_magic_cmd=$lt_file_magic_cmd
18773 # The archiver.
18774 AR=$lt_AR
18775 AR_FLAGS=$lt_AR_FLAGS
18777 # A symbol stripping program.
18778 STRIP=$lt_STRIP
18780 # Commands used to install an old-style archive.
18781 RANLIB=$lt_RANLIB
18782 old_postinstall_cmds=$lt_old_postinstall_cmds
18783 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18785 # Whether to use a lock for old archive extraction.
18786 lock_old_archive_extraction=$lock_old_archive_extraction
18788 # A C compiler.
18789 LTCC=$lt_CC
18791 # LTCC compiler flags.
18792 LTCFLAGS=$lt_CFLAGS
18794 # Take the output of nm and produce a listing of raw symbols and C names.
18795 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18797 # Transform the output of nm in a proper C declaration.
18798 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18800 # Transform the output of nm in a C name address pair.
18801 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18803 # Transform the output of nm in a C name address pair when lib prefix is needed.
18804 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18806 # The name of the directory that contains temporary libtool files.
18807 objdir=$objdir
18809 # Used to examine libraries when file_magic_cmd begins with "file".
18810 MAGIC_CMD=$MAGIC_CMD
18812 # Must we lock files when doing compilation?
18813 need_locks=$lt_need_locks
18815 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18816 DSYMUTIL=$lt_DSYMUTIL
18818 # Tool to change global to local symbols on Mac OS X.
18819 NMEDIT=$lt_NMEDIT
18821 # Tool to manipulate fat objects and archives on Mac OS X.
18822 LIPO=$lt_LIPO
18824 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18825 OTOOL=$lt_OTOOL
18827 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18828 OTOOL64=$lt_OTOOL64
18830 # Old archive suffix (normally "a").
18831 libext=$libext
18833 # Shared library suffix (normally ".so").
18834 shrext_cmds=$lt_shrext_cmds
18836 # The commands to extract the exported symbol list from a shared archive.
18837 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18839 # Variables whose values should be saved in libtool wrapper scripts and
18840 # restored at link time.
18841 variables_saved_for_relink=$lt_variables_saved_for_relink
18843 # Do we need the "lib" prefix for modules?
18844 need_lib_prefix=$need_lib_prefix
18846 # Do we need a version for libraries?
18847 need_version=$need_version
18849 # Library versioning type.
18850 version_type=$version_type
18852 # Shared library runtime path variable.
18853 runpath_var=$runpath_var
18855 # Shared library path variable.
18856 shlibpath_var=$shlibpath_var
18858 # Is shlibpath searched before the hard-coded library search path?
18859 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18861 # Format of library name prefix.
18862 libname_spec=$lt_libname_spec
18864 # List of archive names. First name is the real one, the rest are links.
18865 # The last name is the one that the linker finds with -lNAME
18866 library_names_spec=$lt_library_names_spec
18868 # The coded name of the library, if different from the real name.
18869 soname_spec=$lt_soname_spec
18871 # Permission mode override for installation of shared libraries.
18872 install_override_mode=$lt_install_override_mode
18874 # Command to use after installation of a shared archive.
18875 postinstall_cmds=$lt_postinstall_cmds
18877 # Command to use after uninstallation of a shared archive.
18878 postuninstall_cmds=$lt_postuninstall_cmds
18880 # Commands used to finish a libtool library installation in a directory.
18881 finish_cmds=$lt_finish_cmds
18883 # As "finish_cmds", except a single script fragment to be evaled but
18884 # not shown.
18885 finish_eval=$lt_finish_eval
18887 # Whether we should hardcode library paths into libraries.
18888 hardcode_into_libs=$hardcode_into_libs
18890 # Compile-time system search path for libraries.
18891 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18893 # Run-time system search path for libraries.
18894 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18896 # Whether dlopen is supported.
18897 dlopen_support=$enable_dlopen
18899 # Whether dlopen of programs is supported.
18900 dlopen_self=$enable_dlopen_self
18902 # Whether dlopen of statically linked programs is supported.
18903 dlopen_self_static=$enable_dlopen_self_static
18905 # Commands to strip libraries.
18906 old_striplib=$lt_old_striplib
18907 striplib=$lt_striplib
18910 # The linker used to build libraries.
18911 LD=$lt_LD
18913 # How to create reloadable object files.
18914 reload_flag=$lt_reload_flag
18915 reload_cmds=$lt_reload_cmds
18917 # Commands used to build an old-style archive.
18918 old_archive_cmds=$lt_old_archive_cmds
18920 # A language specific compiler.
18921 CC=$lt_compiler
18923 # Is the compiler the GNU compiler?
18924 with_gcc=$GCC
18926 # Compiler flag to turn off builtin functions.
18927 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18929 # How to pass a linker flag through the compiler.
18930 wl=$lt_lt_prog_compiler_wl
18932 # Additional compiler flags for building library objects.
18933 pic_flag=$lt_lt_prog_compiler_pic
18935 # Compiler flag to prevent dynamic linking.
18936 link_static_flag=$lt_lt_prog_compiler_static
18938 # Does compiler simultaneously support -c and -o options?
18939 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18941 # Whether or not to add -lc for building shared libraries.
18942 build_libtool_need_lc=$archive_cmds_need_lc
18944 # Whether or not to disallow shared libs when runtime libs are static.
18945 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18947 # Compiler flag to allow reflexive dlopens.
18948 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18950 # Compiler flag to generate shared objects directly from archives.
18951 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18953 # Whether the compiler copes with passing no objects directly.
18954 compiler_needs_object=$lt_compiler_needs_object
18956 # Create an old-style archive from a shared archive.
18957 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18959 # Create a temporary old-style archive to link instead of a shared archive.
18960 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18962 # Commands used to build a shared archive.
18963 archive_cmds=$lt_archive_cmds
18964 archive_expsym_cmds=$lt_archive_expsym_cmds
18966 # Commands used to build a loadable module if different from building
18967 # a shared archive.
18968 module_cmds=$lt_module_cmds
18969 module_expsym_cmds=$lt_module_expsym_cmds
18971 # Whether we are building with GNU ld or not.
18972 with_gnu_ld=$lt_with_gnu_ld
18974 # Flag that allows shared libraries with undefined symbols to be built.
18975 allow_undefined_flag=$lt_allow_undefined_flag
18977 # Flag that enforces no undefined symbols.
18978 no_undefined_flag=$lt_no_undefined_flag
18980 # Flag to hardcode \$libdir into a binary during linking.
18981 # This must work even if \$libdir does not exist
18982 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18984 # If ld is used when linking, flag to hardcode \$libdir into a binary
18985 # during linking. This must work even if \$libdir does not exist.
18986 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18988 # Whether we need a single "-rpath" flag with a separated argument.
18989 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18991 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18992 # DIR into the resulting binary.
18993 hardcode_direct=$hardcode_direct
18995 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18996 # DIR into the resulting binary and the resulting library dependency is
18997 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18998 # library is relocated.
18999 hardcode_direct_absolute=$hardcode_direct_absolute
19001 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19002 # into the resulting binary.
19003 hardcode_minus_L=$hardcode_minus_L
19005 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19006 # into the resulting binary.
19007 hardcode_shlibpath_var=$hardcode_shlibpath_var
19009 # Set to "yes" if building a shared library automatically hardcodes DIR
19010 # into the library and all subsequent libraries and executables linked
19011 # against it.
19012 hardcode_automatic=$hardcode_automatic
19014 # Set to yes if linker adds runtime paths of dependent libraries
19015 # to runtime path list.
19016 inherit_rpath=$inherit_rpath
19018 # Whether libtool must link a program against all its dependency libraries.
19019 link_all_deplibs=$link_all_deplibs
19021 # Fix the shell variable \$srcfile for the compiler.
19022 fix_srcfile_path=$lt_fix_srcfile_path
19024 # Set to "yes" if exported symbols are required.
19025 always_export_symbols=$always_export_symbols
19027 # The commands to list exported symbols.
19028 export_symbols_cmds=$lt_export_symbols_cmds
19030 # Symbols that should not be listed in the preloaded symbols.
19031 exclude_expsyms=$lt_exclude_expsyms
19033 # Symbols that must always be exported.
19034 include_expsyms=$lt_include_expsyms
19036 # Commands necessary for linking programs (against libraries) with templates.
19037 prelink_cmds=$lt_prelink_cmds
19039 # Specify filename containing input files.
19040 file_list_spec=$lt_file_list_spec
19042 # How to hardcode a shared library path into an executable.
19043 hardcode_action=$hardcode_action
19045 # The directories searched by this compiler when creating a shared library.
19046 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19048 # Dependencies to place before and after the objects being linked to
19049 # create a shared library.
19050 predep_objects=$lt_predep_objects
19051 postdep_objects=$lt_postdep_objects
19052 predeps=$lt_predeps
19053 postdeps=$lt_postdeps
19055 # The library search path used internally by the compiler when linking
19056 # a shared library.
19057 compiler_lib_search_path=$lt_compiler_lib_search_path
19059 # ### END LIBTOOL CONFIG
19061 _LT_EOF
19063 case $host_os in
19064 aix3*)
19065 cat <<\_LT_EOF >> "$cfgfile"
19066 # AIX sometimes has problems with the GCC collect2 program. For some
19067 # reason, if we set the COLLECT_NAMES environment variable, the problems
19068 # vanish in a puff of smoke.
19069 if test "X${COLLECT_NAMES+set}" != Xset; then
19070 COLLECT_NAMES=
19071 export COLLECT_NAMES
19073 _LT_EOF
19075 esac
19078 ltmain="$ac_aux_dir/ltmain.sh"
19081 # We use sed instead of cat because bash on DJGPP gets confused if
19082 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19083 # text mode, it properly converts lines to CR/LF. This bash problem
19084 # is reportedly fixed, but why not run on old versions too?
19085 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19086 || (rm -f "$cfgfile"; exit 1)
19088 case $xsi_shell in
19089 yes)
19090 cat << \_LT_EOF >> "$cfgfile"
19092 # func_dirname file append nondir_replacement
19093 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19094 # otherwise set result to NONDIR_REPLACEMENT.
19095 func_dirname ()
19097 case ${1} in
19098 */*) func_dirname_result="${1%/*}${2}" ;;
19099 * ) func_dirname_result="${3}" ;;
19100 esac
19103 # func_basename file
19104 func_basename ()
19106 func_basename_result="${1##*/}"
19109 # func_dirname_and_basename file append nondir_replacement
19110 # perform func_basename and func_dirname in a single function
19111 # call:
19112 # dirname: Compute the dirname of FILE. If nonempty,
19113 # add APPEND to the result, otherwise set result
19114 # to NONDIR_REPLACEMENT.
19115 # value returned in "$func_dirname_result"
19116 # basename: Compute filename of FILE.
19117 # value retuned in "$func_basename_result"
19118 # Implementation must be kept synchronized with func_dirname
19119 # and func_basename. For efficiency, we do not delegate to
19120 # those functions but instead duplicate the functionality here.
19121 func_dirname_and_basename ()
19123 case ${1} in
19124 */*) func_dirname_result="${1%/*}${2}" ;;
19125 * ) func_dirname_result="${3}" ;;
19126 esac
19127 func_basename_result="${1##*/}"
19130 # func_stripname prefix suffix name
19131 # strip PREFIX and SUFFIX off of NAME.
19132 # PREFIX and SUFFIX must not contain globbing or regex special
19133 # characters, hashes, percent signs, but SUFFIX may contain a leading
19134 # dot (in which case that matches only a dot).
19135 func_stripname ()
19137 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19138 # positional parameters, so assign one to ordinary parameter first.
19139 func_stripname_result=${3}
19140 func_stripname_result=${func_stripname_result#"${1}"}
19141 func_stripname_result=${func_stripname_result%"${2}"}
19144 # func_opt_split
19145 func_opt_split ()
19147 func_opt_split_opt=${1%%=*}
19148 func_opt_split_arg=${1#*=}
19151 # func_lo2o object
19152 func_lo2o ()
19154 case ${1} in
19155 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19156 *) func_lo2o_result=${1} ;;
19157 esac
19160 # func_xform libobj-or-source
19161 func_xform ()
19163 func_xform_result=${1%.*}.lo
19166 # func_arith arithmetic-term...
19167 func_arith ()
19169 func_arith_result=$(( $* ))
19172 # func_len string
19173 # STRING may not start with a hyphen.
19174 func_len ()
19176 func_len_result=${#1}
19179 _LT_EOF
19181 *) # Bourne compatible functions.
19182 cat << \_LT_EOF >> "$cfgfile"
19184 # func_dirname file append nondir_replacement
19185 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19186 # otherwise set result to NONDIR_REPLACEMENT.
19187 func_dirname ()
19189 # Extract subdirectory from the argument.
19190 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19191 if test "X$func_dirname_result" = "X${1}"; then
19192 func_dirname_result="${3}"
19193 else
19194 func_dirname_result="$func_dirname_result${2}"
19198 # func_basename file
19199 func_basename ()
19201 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19205 # func_stripname prefix suffix name
19206 # strip PREFIX and SUFFIX off of NAME.
19207 # PREFIX and SUFFIX must not contain globbing or regex special
19208 # characters, hashes, percent signs, but SUFFIX may contain a leading
19209 # dot (in which case that matches only a dot).
19210 # func_strip_suffix prefix name
19211 func_stripname ()
19213 case ${2} in
19214 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19215 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19216 esac
19219 # sed scripts:
19220 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19221 my_sed_long_arg='1s/^-[^=]*=//'
19223 # func_opt_split
19224 func_opt_split ()
19226 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19227 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19230 # func_lo2o object
19231 func_lo2o ()
19233 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19236 # func_xform libobj-or-source
19237 func_xform ()
19239 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19242 # func_arith arithmetic-term...
19243 func_arith ()
19245 func_arith_result=`expr "$@"`
19248 # func_len string
19249 # STRING may not start with a hyphen.
19250 func_len ()
19252 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19255 _LT_EOF
19256 esac
19258 case $lt_shell_append in
19259 yes)
19260 cat << \_LT_EOF >> "$cfgfile"
19262 # func_append var value
19263 # Append VALUE to the end of shell variable VAR.
19264 func_append ()
19266 eval "$1+=\$2"
19268 _LT_EOF
19271 cat << \_LT_EOF >> "$cfgfile"
19273 # func_append var value
19274 # Append VALUE to the end of shell variable VAR.
19275 func_append ()
19277 eval "$1=\$$1\$2"
19280 _LT_EOF
19282 esac
19285 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19286 || (rm -f "$cfgfile"; exit 1)
19288 mv -f "$cfgfile" "$ofile" ||
19289 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19290 chmod +x "$ofile"
19293 cat <<_LT_EOF >> "$ofile"
19295 # ### BEGIN LIBTOOL TAG CONFIG: FC
19297 # The linker used to build libraries.
19298 LD=$lt_LD_FC
19300 # How to create reloadable object files.
19301 reload_flag=$lt_reload_flag_FC
19302 reload_cmds=$lt_reload_cmds_FC
19304 # Commands used to build an old-style archive.
19305 old_archive_cmds=$lt_old_archive_cmds_FC
19307 # A language specific compiler.
19308 CC=$lt_compiler_FC
19310 # Is the compiler the GNU compiler?
19311 with_gcc=$GCC_FC
19313 # Compiler flag to turn off builtin functions.
19314 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
19316 # How to pass a linker flag through the compiler.
19317 wl=$lt_lt_prog_compiler_wl_FC
19319 # Additional compiler flags for building library objects.
19320 pic_flag=$lt_lt_prog_compiler_pic_FC
19322 # Compiler flag to prevent dynamic linking.
19323 link_static_flag=$lt_lt_prog_compiler_static_FC
19325 # Does compiler simultaneously support -c and -o options?
19326 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
19328 # Whether or not to add -lc for building shared libraries.
19329 build_libtool_need_lc=$archive_cmds_need_lc_FC
19331 # Whether or not to disallow shared libs when runtime libs are static.
19332 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
19334 # Compiler flag to allow reflexive dlopens.
19335 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
19337 # Compiler flag to generate shared objects directly from archives.
19338 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
19340 # Whether the compiler copes with passing no objects directly.
19341 compiler_needs_object=$lt_compiler_needs_object_FC
19343 # Create an old-style archive from a shared archive.
19344 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
19346 # Create a temporary old-style archive to link instead of a shared archive.
19347 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
19349 # Commands used to build a shared archive.
19350 archive_cmds=$lt_archive_cmds_FC
19351 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
19353 # Commands used to build a loadable module if different from building
19354 # a shared archive.
19355 module_cmds=$lt_module_cmds_FC
19356 module_expsym_cmds=$lt_module_expsym_cmds_FC
19358 # Whether we are building with GNU ld or not.
19359 with_gnu_ld=$lt_with_gnu_ld_FC
19361 # Flag that allows shared libraries with undefined symbols to be built.
19362 allow_undefined_flag=$lt_allow_undefined_flag_FC
19364 # Flag that enforces no undefined symbols.
19365 no_undefined_flag=$lt_no_undefined_flag_FC
19367 # Flag to hardcode \$libdir into a binary during linking.
19368 # This must work even if \$libdir does not exist
19369 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
19371 # If ld is used when linking, flag to hardcode \$libdir into a binary
19372 # during linking. This must work even if \$libdir does not exist.
19373 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
19375 # Whether we need a single "-rpath" flag with a separated argument.
19376 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
19378 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19379 # DIR into the resulting binary.
19380 hardcode_direct=$hardcode_direct_FC
19382 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19383 # DIR into the resulting binary and the resulting library dependency is
19384 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19385 # library is relocated.
19386 hardcode_direct_absolute=$hardcode_direct_absolute_FC
19388 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19389 # into the resulting binary.
19390 hardcode_minus_L=$hardcode_minus_L_FC
19392 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19393 # into the resulting binary.
19394 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
19396 # Set to "yes" if building a shared library automatically hardcodes DIR
19397 # into the library and all subsequent libraries and executables linked
19398 # against it.
19399 hardcode_automatic=$hardcode_automatic_FC
19401 # Set to yes if linker adds runtime paths of dependent libraries
19402 # to runtime path list.
19403 inherit_rpath=$inherit_rpath_FC
19405 # Whether libtool must link a program against all its dependency libraries.
19406 link_all_deplibs=$link_all_deplibs_FC
19408 # Fix the shell variable \$srcfile for the compiler.
19409 fix_srcfile_path=$lt_fix_srcfile_path_FC
19411 # Set to "yes" if exported symbols are required.
19412 always_export_symbols=$always_export_symbols_FC
19414 # The commands to list exported symbols.
19415 export_symbols_cmds=$lt_export_symbols_cmds_FC
19417 # Symbols that should not be listed in the preloaded symbols.
19418 exclude_expsyms=$lt_exclude_expsyms_FC
19420 # Symbols that must always be exported.
19421 include_expsyms=$lt_include_expsyms_FC
19423 # Commands necessary for linking programs (against libraries) with templates.
19424 prelink_cmds=$lt_prelink_cmds_FC
19426 # Specify filename containing input files.
19427 file_list_spec=$lt_file_list_spec_FC
19429 # How to hardcode a shared library path into an executable.
19430 hardcode_action=$hardcode_action_FC
19432 # The directories searched by this compiler when creating a shared library.
19433 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
19435 # Dependencies to place before and after the objects being linked to
19436 # create a shared library.
19437 predep_objects=$lt_predep_objects_FC
19438 postdep_objects=$lt_postdep_objects_FC
19439 predeps=$lt_predeps_FC
19440 postdeps=$lt_postdeps_FC
19442 # The library search path used internally by the compiler when linking
19443 # a shared library.
19444 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
19446 # ### END LIBTOOL TAG CONFIG: FC
19447 _LT_EOF
19450 "gstdint.h":C)
19451 if test "$GCC" = yes; then
19452 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
19453 else
19454 echo "/* generated for $CC */" > tmp-stdint.h
19457 sed 's/^ *//' >> tmp-stdint.h <<EOF
19459 #ifndef GCC_GENERATED_STDINT_H
19460 #define GCC_GENERATED_STDINT_H 1
19462 #include <sys/types.h>
19465 if test "$acx_cv_header_stdint" != stdint.h; then
19466 echo "#include <stddef.h>" >> tmp-stdint.h
19468 if test "$acx_cv_header_stdint" != stddef.h; then
19469 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
19472 sed 's/^ *//' >> tmp-stdint.h <<EOF
19473 /* glibc uses these symbols as guards to prevent redefinitions. */
19474 #ifdef __int8_t_defined
19475 #define _INT8_T
19476 #define _INT16_T
19477 #define _INT32_T
19478 #endif
19479 #ifdef __uint32_t_defined
19480 #define _UINT32_T
19481 #endif
19485 # ----------------- done header, emit basic int types -------------
19486 if test "$acx_cv_header_stdint" = stddef.h; then
19487 sed 's/^ *//' >> tmp-stdint.h <<EOF
19489 #ifndef _UINT8_T
19490 #define _UINT8_T
19491 #ifndef __uint8_t_defined
19492 #define __uint8_t_defined
19493 #ifndef uint8_t
19494 typedef unsigned $acx_cv_type_int8_t uint8_t;
19495 #endif
19496 #endif
19497 #endif
19499 #ifndef _UINT16_T
19500 #define _UINT16_T
19501 #ifndef __uint16_t_defined
19502 #define __uint16_t_defined
19503 #ifndef uint16_t
19504 typedef unsigned $acx_cv_type_int16_t uint16_t;
19505 #endif
19506 #endif
19507 #endif
19509 #ifndef _UINT32_T
19510 #define _UINT32_T
19511 #ifndef __uint32_t_defined
19512 #define __uint32_t_defined
19513 #ifndef uint32_t
19514 typedef unsigned $acx_cv_type_int32_t uint32_t;
19515 #endif
19516 #endif
19517 #endif
19519 #ifndef _INT8_T
19520 #define _INT8_T
19521 #ifndef __int8_t_defined
19522 #define __int8_t_defined
19523 #ifndef int8_t
19524 typedef $acx_cv_type_int8_t int8_t;
19525 #endif
19526 #endif
19527 #endif
19529 #ifndef _INT16_T
19530 #define _INT16_T
19531 #ifndef __int16_t_defined
19532 #define __int16_t_defined
19533 #ifndef int16_t
19534 typedef $acx_cv_type_int16_t int16_t;
19535 #endif
19536 #endif
19537 #endif
19539 #ifndef _INT32_T
19540 #define _INT32_T
19541 #ifndef __int32_t_defined
19542 #define __int32_t_defined
19543 #ifndef int32_t
19544 typedef $acx_cv_type_int32_t int32_t;
19545 #endif
19546 #endif
19547 #endif
19549 elif test "$ac_cv_type_u_int32_t" = yes; then
19550 sed 's/^ *//' >> tmp-stdint.h <<EOF
19552 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
19553 #ifndef _INT8_T
19554 #define _INT8_T
19555 #endif
19556 #ifndef _INT16_T
19557 #define _INT16_T
19558 #endif
19559 #ifndef _INT32_T
19560 #define _INT32_T
19561 #endif
19563 #ifndef _UINT8_T
19564 #define _UINT8_T
19565 #ifndef __uint8_t_defined
19566 #define __uint8_t_defined
19567 #ifndef uint8_t
19568 typedef u_int8_t uint8_t;
19569 #endif
19570 #endif
19571 #endif
19573 #ifndef _UINT16_T
19574 #define _UINT16_T
19575 #ifndef __uint16_t_defined
19576 #define __uint16_t_defined
19577 #ifndef uint16_t
19578 typedef u_int16_t uint16_t;
19579 #endif
19580 #endif
19581 #endif
19583 #ifndef _UINT32_T
19584 #define _UINT32_T
19585 #ifndef __uint32_t_defined
19586 #define __uint32_t_defined
19587 #ifndef uint32_t
19588 typedef u_int32_t uint32_t;
19589 #endif
19590 #endif
19591 #endif
19593 else
19594 sed 's/^ *//' >> tmp-stdint.h <<EOF
19596 /* Some systems have guard macros to prevent redefinitions, define them. */
19597 #ifndef _INT8_T
19598 #define _INT8_T
19599 #endif
19600 #ifndef _INT16_T
19601 #define _INT16_T
19602 #endif
19603 #ifndef _INT32_T
19604 #define _INT32_T
19605 #endif
19606 #ifndef _UINT8_T
19607 #define _UINT8_T
19608 #endif
19609 #ifndef _UINT16_T
19610 #define _UINT16_T
19611 #endif
19612 #ifndef _UINT32_T
19613 #define _UINT32_T
19614 #endif
19618 # ------------- done basic int types, emit int64_t types ------------
19619 if test "$ac_cv_type_uint64_t" = yes; then
19620 sed 's/^ *//' >> tmp-stdint.h <<EOF
19622 /* system headers have good uint64_t and int64_t */
19623 #ifndef _INT64_T
19624 #define _INT64_T
19625 #endif
19626 #ifndef _UINT64_T
19627 #define _UINT64_T
19628 #endif
19630 elif test "$ac_cv_type_u_int64_t" = yes; then
19631 sed 's/^ *//' >> tmp-stdint.h <<EOF
19633 /* system headers have an u_int64_t (and int64_t) */
19634 #ifndef _INT64_T
19635 #define _INT64_T
19636 #endif
19637 #ifndef _UINT64_T
19638 #define _UINT64_T
19639 #ifndef __uint64_t_defined
19640 #define __uint64_t_defined
19641 #ifndef uint64_t
19642 typedef u_int64_t uint64_t;
19643 #endif
19644 #endif
19645 #endif
19647 elif test -n "$acx_cv_type_int64_t"; then
19648 sed 's/^ *//' >> tmp-stdint.h <<EOF
19650 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
19651 #ifndef _INT64_T
19652 #define _INT64_T
19653 #ifndef int64_t
19654 typedef $acx_cv_type_int64_t int64_t;
19655 #endif
19656 #endif
19657 #ifndef _UINT64_T
19658 #define _UINT64_T
19659 #ifndef __uint64_t_defined
19660 #define __uint64_t_defined
19661 #ifndef uint64_t
19662 typedef unsigned $acx_cv_type_int64_t uint64_t;
19663 #endif
19664 #endif
19665 #endif
19667 else
19668 sed 's/^ *//' >> tmp-stdint.h <<EOF
19670 /* some common heuristics for int64_t, using compiler-specific tests */
19671 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
19672 #ifndef _INT64_T
19673 #define _INT64_T
19674 #ifndef __int64_t_defined
19675 #ifndef int64_t
19676 typedef long long int64_t;
19677 #endif
19678 #endif
19679 #endif
19680 #ifndef _UINT64_T
19681 #define _UINT64_T
19682 #ifndef uint64_t
19683 typedef unsigned long long uint64_t;
19684 #endif
19685 #endif
19687 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
19688 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
19689 does not implement __extension__. But that compiler doesn't define
19690 __GNUC_MINOR__. */
19691 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
19692 # define __extension__
19693 # endif
19695 # ifndef _INT64_T
19696 # define _INT64_T
19697 # ifndef int64_t
19698 __extension__ typedef long long int64_t;
19699 # endif
19700 # endif
19701 # ifndef _UINT64_T
19702 # define _UINT64_T
19703 # ifndef uint64_t
19704 __extension__ typedef unsigned long long uint64_t;
19705 # endif
19706 # endif
19708 #elif !defined __STRICT_ANSI__
19709 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
19711 # ifndef _INT64_T
19712 # define _INT64_T
19713 # ifndef int64_t
19714 typedef __int64 int64_t;
19715 # endif
19716 # endif
19717 # ifndef _UINT64_T
19718 # define _UINT64_T
19719 # ifndef uint64_t
19720 typedef unsigned __int64 uint64_t;
19721 # endif
19722 # endif
19723 # endif /* compiler */
19725 #endif /* ANSI version */
19729 # ------------- done int64_t types, emit intptr types ------------
19730 if test "$ac_cv_type_uintptr_t" != yes; then
19731 sed 's/^ *//' >> tmp-stdint.h <<EOF
19733 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
19734 #ifndef __uintptr_t_defined
19735 #ifndef uintptr_t
19736 typedef u$acx_cv_type_intptr_t uintptr_t;
19737 #endif
19738 #endif
19739 #ifndef __intptr_t_defined
19740 #ifndef intptr_t
19741 typedef $acx_cv_type_intptr_t intptr_t;
19742 #endif
19743 #endif
19747 # ------------- done intptr types, emit int_least types ------------
19748 if test "$ac_cv_type_int_least32_t" != yes; then
19749 sed 's/^ *//' >> tmp-stdint.h <<EOF
19751 /* Define int_least types */
19752 typedef int8_t int_least8_t;
19753 typedef int16_t int_least16_t;
19754 typedef int32_t int_least32_t;
19755 #ifdef _INT64_T
19756 typedef int64_t int_least64_t;
19757 #endif
19759 typedef uint8_t uint_least8_t;
19760 typedef uint16_t uint_least16_t;
19761 typedef uint32_t uint_least32_t;
19762 #ifdef _UINT64_T
19763 typedef uint64_t uint_least64_t;
19764 #endif
19768 # ------------- done intptr types, emit int_fast types ------------
19769 if test "$ac_cv_type_int_fast32_t" != yes; then
19770 sed 's/^ *//' >> tmp-stdint.h <<EOF
19772 /* Define int_fast types. short is often slow */
19773 typedef int8_t int_fast8_t;
19774 typedef int int_fast16_t;
19775 typedef int32_t int_fast32_t;
19776 #ifdef _INT64_T
19777 typedef int64_t int_fast64_t;
19778 #endif
19780 typedef uint8_t uint_fast8_t;
19781 typedef unsigned int uint_fast16_t;
19782 typedef uint32_t uint_fast32_t;
19783 #ifdef _UINT64_T
19784 typedef uint64_t uint_fast64_t;
19785 #endif
19789 if test "$ac_cv_type_uintmax_t" != yes; then
19790 sed 's/^ *//' >> tmp-stdint.h <<EOF
19792 /* Define intmax based on what we found */
19793 #ifndef intmax_t
19794 #ifdef _INT64_T
19795 typedef int64_t intmax_t;
19796 #else
19797 typedef long intmax_t;
19798 #endif
19799 #endif
19800 #ifndef uintmax_t
19801 #ifdef _UINT64_T
19802 typedef uint64_t uintmax_t;
19803 #else
19804 typedef unsigned long uintmax_t;
19805 #endif
19806 #endif
19810 sed 's/^ *//' >> tmp-stdint.h <<EOF
19812 #endif /* GCC_GENERATED_STDINT_H */
19815 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
19816 rm -f tmp-stdint.h
19817 else
19818 mv -f tmp-stdint.h gstdint.h
19823 esac
19824 done # for ac_tag
19827 as_fn_exit 0
19828 _ACEOF
19829 ac_clean_files=$ac_clean_files_save
19831 test $ac_write_fail = 0 ||
19832 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19835 # configure is writing to config.log, and then calls config.status.
19836 # config.status does its own redirection, appending to config.log.
19837 # Unfortunately, on DOS this fails, as config.log is still kept open
19838 # by configure, so config.status won't be able to write to it; its
19839 # output is simply discarded. So we exec the FD to /dev/null,
19840 # effectively closing config.log, so it can be properly (re)opened and
19841 # appended to by config.status. When coming back to configure, we
19842 # need to make the FD available again.
19843 if test "$no_create" != yes; then
19844 ac_cs_success=:
19845 ac_config_status_args=
19846 test "$silent" = yes &&
19847 ac_config_status_args="$ac_config_status_args --quiet"
19848 exec 5>/dev/null
19849 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19850 exec 5>>config.log
19851 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19852 # would make configure fail if this is the last instruction.
19853 $ac_cs_success || as_fn_exit $?
19855 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19857 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}