2017-09-13 Richard Biener <rguenther@suse.de>
[official-gcc.git] / libgomp / configure
blobb7e9f40b85292526e136f272c42897eea8086015
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for GNU Offloading and Multi Processing Runtime Library 1.0.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
173 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
174 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
175 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 PATH=/empty FPATH=/empty; export PATH FPATH
178 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
179 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
180 test \$(( 1 + 1 )) = 2 || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME='GNU Offloading and Multi Processing Runtime Library'
558 PACKAGE_TARNAME='libgomp'
559 PACKAGE_VERSION='1.0'
560 PACKAGE_STRING='GNU Offloading and Multi Processing Runtime Library 1.0'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL='http://www.gnu.org/software/libgomp/'
564 # Factoring default headers for most tests.
565 ac_includes_default="\
566 #include <stdio.h>
567 #ifdef HAVE_SYS_TYPES_H
568 # include <sys/types.h>
569 #endif
570 #ifdef HAVE_SYS_STAT_H
571 # include <sys/stat.h>
572 #endif
573 #ifdef STDC_HEADERS
574 # include <stdlib.h>
575 # include <stddef.h>
576 #else
577 # ifdef HAVE_STDLIB_H
578 # include <stdlib.h>
579 # endif
580 #endif
581 #ifdef HAVE_STRING_H
582 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
583 # include <memory.h>
584 # endif
585 # include <string.h>
586 #endif
587 #ifdef HAVE_STRINGS_H
588 # include <strings.h>
589 #endif
590 #ifdef HAVE_INTTYPES_H
591 # include <inttypes.h>
592 #endif
593 #ifdef HAVE_STDINT_H
594 # include <stdint.h>
595 #endif
596 #ifdef HAVE_UNISTD_H
597 # include <unistd.h>
598 #endif"
600 ac_header_list=
601 ac_func_list=
602 ac_subst_vars='am__EXEEXT_FALSE
603 am__EXEEXT_TRUE
604 LTLIBOBJS
605 LIBOBJS
606 get_gcc_base_ver
607 OMP_NEST_LOCK_25_KIND
608 OMP_LOCK_25_KIND
609 OMP_NEST_LOCK_25_ALIGN
610 OMP_NEST_LOCK_25_SIZE
611 OMP_LOCK_25_ALIGN
612 OMP_LOCK_25_SIZE
613 OMP_NEST_LOCK_KIND
614 OMP_LOCK_KIND
615 OMP_NEST_LOCK_ALIGN
616 OMP_NEST_LOCK_SIZE
617 OMP_LOCK_ALIGN
618 OMP_LOCK_SIZE
619 USE_FORTRAN_FALSE
620 USE_FORTRAN_TRUE
621 link_gomp
622 XLDFLAGS
623 XCFLAGS
624 config_path
625 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
626 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
627 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
628 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
629 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
630 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
631 OPT_LDFLAGS
632 SECTION_LDFLAGS
633 PLUGIN_HSA_FALSE
634 PLUGIN_HSA_TRUE
635 PLUGIN_NVPTX_FALSE
636 PLUGIN_NVPTX_TRUE
637 offload_additional_lib_paths
638 offload_additional_options
639 PLUGIN_HSA_LIBS
640 PLUGIN_HSA_LDFLAGS
641 PLUGIN_HSA_CPPFLAGS
642 PLUGIN_HSA
643 HSA_RUNTIME_LIB
644 HSA_RUNTIME_INCLUDE
645 PLUGIN_NVPTX_LIBS
646 PLUGIN_NVPTX_LDFLAGS
647 PLUGIN_NVPTX_CPPFLAGS
648 PLUGIN_NVPTX
649 CUDA_DRIVER_LIB
650 CUDA_DRIVER_INCLUDE
651 offload_targets
652 libtool_VERSION
653 ac_ct_FC
654 FCFLAGS
656 MAINT
657 MAINTAINER_MODE_FALSE
658 MAINTAINER_MODE_TRUE
659 enable_static
660 enable_shared
661 lt_host_flags
663 OTOOL64
664 OTOOL
665 LIPO
666 NMEDIT
667 DSYMUTIL
668 OBJDUMP
669 LN_S
671 ac_ct_DUMPBIN
672 DUMPBIN
674 FGREP
675 EGREP
676 GREP
678 LIBTOOL
679 BUILD_INFO_FALSE
680 BUILD_INFO_TRUE
681 PERL
682 RANLIB
684 am__fastdepCC_FALSE
685 am__fastdepCC_TRUE
686 CCDEPMODE
687 am__nodep
688 AMDEPBACKSLASH
689 AMDEP_FALSE
690 AMDEP_TRUE
691 am__quote
692 am__include
693 DEPDIR
694 OBJEXT
695 EXEEXT
696 ac_ct_CC
697 CPPFLAGS
698 LDFLAGS
699 CFLAGS
701 toolexeclibdir
702 toolexecdir
703 multi_basedir
704 am__untar
705 am__tar
706 AMTAR
707 am__leading_dot
708 SET_MAKE
710 mkdir_p
711 MKDIR_P
712 INSTALL_STRIP_PROGRAM
713 STRIP
714 install_sh
715 MAKEINFO
716 AUTOHEADER
717 AUTOMAKE
718 AUTOCONF
719 ACLOCAL
720 VERSION
721 PACKAGE
722 CYGPATH_W
723 am__isrc
724 INSTALL_DATA
725 INSTALL_SCRIPT
726 INSTALL_PROGRAM
727 target_os
728 target_vendor
729 target_cpu
730 target
731 host_os
732 host_vendor
733 host_cpu
734 host
735 build_os
736 build_vendor
737 build_cpu
738 build
739 GENINSRC_FALSE
740 GENINSRC_TRUE
741 target_alias
742 host_alias
743 build_alias
744 LIBS
745 ECHO_T
746 ECHO_N
747 ECHO_C
748 DEFS
749 mandir
750 localedir
751 libdir
752 psdir
753 pdfdir
754 dvidir
755 htmldir
756 infodir
757 docdir
758 oldincludedir
759 includedir
760 localstatedir
761 sharedstatedir
762 sysconfdir
763 datadir
764 datarootdir
765 libexecdir
766 sbindir
767 bindir
768 program_transform_name
769 prefix
770 exec_prefix
771 PACKAGE_URL
772 PACKAGE_BUGREPORT
773 PACKAGE_STRING
774 PACKAGE_VERSION
775 PACKAGE_TARNAME
776 PACKAGE_NAME
777 PATH_SEPARATOR
778 SHELL'
779 ac_subst_files=''
780 ac_user_opts='
781 enable_option_checking
782 enable_version_specific_runtime_libs
783 enable_generated_files_in_srcdir
784 enable_multilib
785 enable_dependency_tracking
786 enable_shared
787 enable_static
788 with_pic
789 enable_fast_install
790 with_gnu_ld
791 enable_libtool_lock
792 enable_maintainer_mode
793 with_cuda_driver
794 with_cuda_driver_include
795 with_cuda_driver_lib
796 with_hsa_runtime
797 with_hsa_runtime_include
798 with_hsa_runtime_lib
799 enable_linux_futex
800 enable_tls
801 enable_symvers
802 with_gcc_major_version_only
804 ac_precious_vars='build_alias
805 host_alias
806 target_alias
808 CPPFLAGS
810 FCFLAGS
811 LDFLAGS
812 LIBS'
815 # Initialize some variables set by options.
816 ac_init_help=
817 ac_init_version=false
818 ac_unrecognized_opts=
819 ac_unrecognized_sep=
820 # The variables have the same names as the options, with
821 # dashes changed to underlines.
822 cache_file=/dev/null
823 exec_prefix=NONE
824 no_create=
825 no_recursion=
826 prefix=NONE
827 program_prefix=NONE
828 program_suffix=NONE
829 program_transform_name=s,x,x,
830 silent=
831 site=
832 srcdir=
833 verbose=
834 x_includes=NONE
835 x_libraries=NONE
837 # Installation directory options.
838 # These are left unexpanded so users can "make install exec_prefix=/foo"
839 # and all the variables that are supposed to be based on exec_prefix
840 # by default will actually change.
841 # Use braces instead of parens because sh, perl, etc. also accept them.
842 # (The list follows the same order as the GNU Coding Standards.)
843 bindir='${exec_prefix}/bin'
844 sbindir='${exec_prefix}/sbin'
845 libexecdir='${exec_prefix}/libexec'
846 datarootdir='${prefix}/share'
847 datadir='${datarootdir}'
848 sysconfdir='${prefix}/etc'
849 sharedstatedir='${prefix}/com'
850 localstatedir='${prefix}/var'
851 includedir='${prefix}/include'
852 oldincludedir='/usr/include'
853 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
854 infodir='${datarootdir}/info'
855 htmldir='${docdir}'
856 dvidir='${docdir}'
857 pdfdir='${docdir}'
858 psdir='${docdir}'
859 libdir='${exec_prefix}/lib'
860 localedir='${datarootdir}/locale'
861 mandir='${datarootdir}/man'
863 ac_prev=
864 ac_dashdash=
865 for ac_option
867 # If the previous option needs an argument, assign it.
868 if test -n "$ac_prev"; then
869 eval $ac_prev=\$ac_option
870 ac_prev=
871 continue
874 case $ac_option in
875 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
876 *) ac_optarg=yes ;;
877 esac
879 # Accept the important Cygnus configure options, so we can diagnose typos.
881 case $ac_dashdash$ac_option in
883 ac_dashdash=yes ;;
885 -bindir | --bindir | --bindi | --bind | --bin | --bi)
886 ac_prev=bindir ;;
887 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
888 bindir=$ac_optarg ;;
890 -build | --build | --buil | --bui | --bu)
891 ac_prev=build_alias ;;
892 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
893 build_alias=$ac_optarg ;;
895 -cache-file | --cache-file | --cache-fil | --cache-fi \
896 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
897 ac_prev=cache_file ;;
898 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
899 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
900 cache_file=$ac_optarg ;;
902 --config-cache | -C)
903 cache_file=config.cache ;;
905 -datadir | --datadir | --datadi | --datad)
906 ac_prev=datadir ;;
907 -datadir=* | --datadir=* | --datadi=* | --datad=*)
908 datadir=$ac_optarg ;;
910 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
911 | --dataroo | --dataro | --datar)
912 ac_prev=datarootdir ;;
913 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
914 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
915 datarootdir=$ac_optarg ;;
917 -disable-* | --disable-*)
918 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
919 # Reject names that are not valid shell variable names.
920 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
921 as_fn_error "invalid feature name: $ac_useropt"
922 ac_useropt_orig=$ac_useropt
923 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
924 case $ac_user_opts in
926 "enable_$ac_useropt"
927 "*) ;;
928 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
929 ac_unrecognized_sep=', ';;
930 esac
931 eval enable_$ac_useropt=no ;;
933 -docdir | --docdir | --docdi | --doc | --do)
934 ac_prev=docdir ;;
935 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
936 docdir=$ac_optarg ;;
938 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
939 ac_prev=dvidir ;;
940 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
941 dvidir=$ac_optarg ;;
943 -enable-* | --enable-*)
944 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
945 # Reject names that are not valid shell variable names.
946 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
947 as_fn_error "invalid feature name: $ac_useropt"
948 ac_useropt_orig=$ac_useropt
949 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
950 case $ac_user_opts in
952 "enable_$ac_useropt"
953 "*) ;;
954 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
955 ac_unrecognized_sep=', ';;
956 esac
957 eval enable_$ac_useropt=\$ac_optarg ;;
959 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
960 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
961 | --exec | --exe | --ex)
962 ac_prev=exec_prefix ;;
963 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
964 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
965 | --exec=* | --exe=* | --ex=*)
966 exec_prefix=$ac_optarg ;;
968 -gas | --gas | --ga | --g)
969 # Obsolete; use --with-gas.
970 with_gas=yes ;;
972 -help | --help | --hel | --he | -h)
973 ac_init_help=long ;;
974 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
975 ac_init_help=recursive ;;
976 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
977 ac_init_help=short ;;
979 -host | --host | --hos | --ho)
980 ac_prev=host_alias ;;
981 -host=* | --host=* | --hos=* | --ho=*)
982 host_alias=$ac_optarg ;;
984 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
985 ac_prev=htmldir ;;
986 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
987 | --ht=*)
988 htmldir=$ac_optarg ;;
990 -includedir | --includedir | --includedi | --included | --include \
991 | --includ | --inclu | --incl | --inc)
992 ac_prev=includedir ;;
993 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
994 | --includ=* | --inclu=* | --incl=* | --inc=*)
995 includedir=$ac_optarg ;;
997 -infodir | --infodir | --infodi | --infod | --info | --inf)
998 ac_prev=infodir ;;
999 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1000 infodir=$ac_optarg ;;
1002 -libdir | --libdir | --libdi | --libd)
1003 ac_prev=libdir ;;
1004 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1005 libdir=$ac_optarg ;;
1007 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1008 | --libexe | --libex | --libe)
1009 ac_prev=libexecdir ;;
1010 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1011 | --libexe=* | --libex=* | --libe=*)
1012 libexecdir=$ac_optarg ;;
1014 -localedir | --localedir | --localedi | --localed | --locale)
1015 ac_prev=localedir ;;
1016 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1017 localedir=$ac_optarg ;;
1019 -localstatedir | --localstatedir | --localstatedi | --localstated \
1020 | --localstate | --localstat | --localsta | --localst | --locals)
1021 ac_prev=localstatedir ;;
1022 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1023 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1024 localstatedir=$ac_optarg ;;
1026 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1027 ac_prev=mandir ;;
1028 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1029 mandir=$ac_optarg ;;
1031 -nfp | --nfp | --nf)
1032 # Obsolete; use --without-fp.
1033 with_fp=no ;;
1035 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1036 | --no-cr | --no-c | -n)
1037 no_create=yes ;;
1039 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1040 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1041 no_recursion=yes ;;
1043 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1044 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1045 | --oldin | --oldi | --old | --ol | --o)
1046 ac_prev=oldincludedir ;;
1047 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1048 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1049 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1050 oldincludedir=$ac_optarg ;;
1052 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1053 ac_prev=prefix ;;
1054 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1055 prefix=$ac_optarg ;;
1057 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1058 | --program-pre | --program-pr | --program-p)
1059 ac_prev=program_prefix ;;
1060 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1061 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1062 program_prefix=$ac_optarg ;;
1064 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1065 | --program-suf | --program-su | --program-s)
1066 ac_prev=program_suffix ;;
1067 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1068 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1069 program_suffix=$ac_optarg ;;
1071 -program-transform-name | --program-transform-name \
1072 | --program-transform-nam | --program-transform-na \
1073 | --program-transform-n | --program-transform- \
1074 | --program-transform | --program-transfor \
1075 | --program-transfo | --program-transf \
1076 | --program-trans | --program-tran \
1077 | --progr-tra | --program-tr | --program-t)
1078 ac_prev=program_transform_name ;;
1079 -program-transform-name=* | --program-transform-name=* \
1080 | --program-transform-nam=* | --program-transform-na=* \
1081 | --program-transform-n=* | --program-transform-=* \
1082 | --program-transform=* | --program-transfor=* \
1083 | --program-transfo=* | --program-transf=* \
1084 | --program-trans=* | --program-tran=* \
1085 | --progr-tra=* | --program-tr=* | --program-t=*)
1086 program_transform_name=$ac_optarg ;;
1088 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1089 ac_prev=pdfdir ;;
1090 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1091 pdfdir=$ac_optarg ;;
1093 -psdir | --psdir | --psdi | --psd | --ps)
1094 ac_prev=psdir ;;
1095 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1096 psdir=$ac_optarg ;;
1098 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1099 | -silent | --silent | --silen | --sile | --sil)
1100 silent=yes ;;
1102 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1103 ac_prev=sbindir ;;
1104 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1105 | --sbi=* | --sb=*)
1106 sbindir=$ac_optarg ;;
1108 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1109 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1110 | --sharedst | --shareds | --shared | --share | --shar \
1111 | --sha | --sh)
1112 ac_prev=sharedstatedir ;;
1113 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1114 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1115 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1116 | --sha=* | --sh=*)
1117 sharedstatedir=$ac_optarg ;;
1119 -site | --site | --sit)
1120 ac_prev=site ;;
1121 -site=* | --site=* | --sit=*)
1122 site=$ac_optarg ;;
1124 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1125 ac_prev=srcdir ;;
1126 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1127 srcdir=$ac_optarg ;;
1129 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1130 | --syscon | --sysco | --sysc | --sys | --sy)
1131 ac_prev=sysconfdir ;;
1132 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1133 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1134 sysconfdir=$ac_optarg ;;
1136 -target | --target | --targe | --targ | --tar | --ta | --t)
1137 ac_prev=target_alias ;;
1138 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1139 target_alias=$ac_optarg ;;
1141 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1142 verbose=yes ;;
1144 -version | --version | --versio | --versi | --vers | -V)
1145 ac_init_version=: ;;
1147 -with-* | --with-*)
1148 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1149 # Reject names that are not valid shell variable names.
1150 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1151 as_fn_error "invalid package name: $ac_useropt"
1152 ac_useropt_orig=$ac_useropt
1153 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1154 case $ac_user_opts in
1156 "with_$ac_useropt"
1157 "*) ;;
1158 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1159 ac_unrecognized_sep=', ';;
1160 esac
1161 eval with_$ac_useropt=\$ac_optarg ;;
1163 -without-* | --without-*)
1164 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1165 # Reject names that are not valid shell variable names.
1166 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1167 as_fn_error "invalid package name: $ac_useropt"
1168 ac_useropt_orig=$ac_useropt
1169 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1170 case $ac_user_opts in
1172 "with_$ac_useropt"
1173 "*) ;;
1174 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1175 ac_unrecognized_sep=', ';;
1176 esac
1177 eval with_$ac_useropt=no ;;
1179 --x)
1180 # Obsolete; use --with-x.
1181 with_x=yes ;;
1183 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1184 | --x-incl | --x-inc | --x-in | --x-i)
1185 ac_prev=x_includes ;;
1186 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1187 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1188 x_includes=$ac_optarg ;;
1190 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1191 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1192 ac_prev=x_libraries ;;
1193 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1194 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1195 x_libraries=$ac_optarg ;;
1197 -*) as_fn_error "unrecognized option: \`$ac_option'
1198 Try \`$0 --help' for more information."
1201 *=*)
1202 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1203 # Reject names that are not valid shell variable names.
1204 case $ac_envvar in #(
1205 '' | [0-9]* | *[!_$as_cr_alnum]* )
1206 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1207 esac
1208 eval $ac_envvar=\$ac_optarg
1209 export $ac_envvar ;;
1212 # FIXME: should be removed in autoconf 3.0.
1213 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1214 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1215 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1216 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1219 esac
1220 done
1222 if test -n "$ac_prev"; then
1223 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1224 as_fn_error "missing argument to $ac_option"
1227 if test -n "$ac_unrecognized_opts"; then
1228 case $enable_option_checking in
1229 no) ;;
1230 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1231 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1232 esac
1235 # Check all directory arguments for consistency.
1236 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1237 datadir sysconfdir sharedstatedir localstatedir includedir \
1238 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1239 libdir localedir mandir
1241 eval ac_val=\$$ac_var
1242 # Remove trailing slashes.
1243 case $ac_val in
1244 */ )
1245 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1246 eval $ac_var=\$ac_val;;
1247 esac
1248 # Be sure to have absolute directory names.
1249 case $ac_val in
1250 [\\/$]* | ?:[\\/]* ) continue;;
1251 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1252 esac
1253 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1254 done
1256 # There might be people who depend on the old broken behavior: `$host'
1257 # used to hold the argument of --host etc.
1258 # FIXME: To remove some day.
1259 build=$build_alias
1260 host=$host_alias
1261 target=$target_alias
1263 # FIXME: To remove some day.
1264 if test "x$host_alias" != x; then
1265 if test "x$build_alias" = x; then
1266 cross_compiling=maybe
1267 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1268 If a cross compiler is detected then cross compile mode will be used." >&2
1269 elif test "x$build_alias" != "x$host_alias"; then
1270 cross_compiling=yes
1274 ac_tool_prefix=
1275 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1277 test "$silent" = yes && exec 6>/dev/null
1280 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1281 ac_ls_di=`ls -di .` &&
1282 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1283 as_fn_error "working directory cannot be determined"
1284 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1285 as_fn_error "pwd does not report name of working directory"
1288 # Find the source files, if location was not specified.
1289 if test -z "$srcdir"; then
1290 ac_srcdir_defaulted=yes
1291 # Try the directory containing this script, then the parent directory.
1292 ac_confdir=`$as_dirname -- "$as_myself" ||
1293 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1294 X"$as_myself" : 'X\(//\)[^/]' \| \
1295 X"$as_myself" : 'X\(//\)$' \| \
1296 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1297 $as_echo X"$as_myself" |
1298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1299 s//\1/
1302 /^X\(\/\/\)[^/].*/{
1303 s//\1/
1306 /^X\(\/\/\)$/{
1307 s//\1/
1310 /^X\(\/\).*/{
1311 s//\1/
1314 s/.*/./; q'`
1315 srcdir=$ac_confdir
1316 if test ! -r "$srcdir/$ac_unique_file"; then
1317 srcdir=..
1319 else
1320 ac_srcdir_defaulted=no
1322 if test ! -r "$srcdir/$ac_unique_file"; then
1323 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1324 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1326 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1327 ac_abs_confdir=`(
1328 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1329 pwd)`
1330 # When building in place, set srcdir=.
1331 if test "$ac_abs_confdir" = "$ac_pwd"; then
1332 srcdir=.
1334 # Remove unnecessary trailing slashes from srcdir.
1335 # Double slashes in file names in object file debugging info
1336 # mess up M-x gdb in Emacs.
1337 case $srcdir in
1338 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1339 esac
1340 for ac_var in $ac_precious_vars; do
1341 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1342 eval ac_env_${ac_var}_value=\$${ac_var}
1343 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1344 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1345 done
1348 # Report the --help message.
1350 if test "$ac_init_help" = "long"; then
1351 # Omit some internal or obsolete options to make the list less imposing.
1352 # This message is too long to be a string in the A/UX 3.1 sh.
1353 cat <<_ACEOF
1354 \`configure' configures GNU Offloading and Multi Processing Runtime Library 1.0 to adapt to many kinds of systems.
1356 Usage: $0 [OPTION]... [VAR=VALUE]...
1358 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1359 VAR=VALUE. See below for descriptions of some of the useful variables.
1361 Defaults for the options are specified in brackets.
1363 Configuration:
1364 -h, --help display this help and exit
1365 --help=short display options specific to this package
1366 --help=recursive display the short help of all the included packages
1367 -V, --version display version information and exit
1368 -q, --quiet, --silent do not print \`checking...' messages
1369 --cache-file=FILE cache test results in FILE [disabled]
1370 -C, --config-cache alias for \`--cache-file=config.cache'
1371 -n, --no-create do not create output files
1372 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1374 Installation directories:
1375 --prefix=PREFIX install architecture-independent files in PREFIX
1376 [$ac_default_prefix]
1377 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1378 [PREFIX]
1380 By default, \`make install' will install all the files in
1381 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1382 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1383 for instance \`--prefix=\$HOME'.
1385 For better control, use the options below.
1387 Fine tuning of the installation directories:
1388 --bindir=DIR user executables [EPREFIX/bin]
1389 --sbindir=DIR system admin executables [EPREFIX/sbin]
1390 --libexecdir=DIR program executables [EPREFIX/libexec]
1391 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1392 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1393 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1394 --libdir=DIR object code libraries [EPREFIX/lib]
1395 --includedir=DIR C header files [PREFIX/include]
1396 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1397 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1398 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1399 --infodir=DIR info documentation [DATAROOTDIR/info]
1400 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1401 --mandir=DIR man documentation [DATAROOTDIR/man]
1402 --docdir=DIR documentation root [DATAROOTDIR/doc/libgomp]
1403 --htmldir=DIR html documentation [DOCDIR]
1404 --dvidir=DIR dvi documentation [DOCDIR]
1405 --pdfdir=DIR pdf documentation [DOCDIR]
1406 --psdir=DIR ps documentation [DOCDIR]
1407 _ACEOF
1409 cat <<\_ACEOF
1411 Program names:
1412 --program-prefix=PREFIX prepend PREFIX to installed program names
1413 --program-suffix=SUFFIX append SUFFIX to installed program names
1414 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1416 System types:
1417 --build=BUILD configure for building on BUILD [guessed]
1418 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1419 --target=TARGET configure for building compilers for TARGET [HOST]
1420 _ACEOF
1423 if test -n "$ac_init_help"; then
1424 case $ac_init_help in
1425 short | recursive ) echo "Configuration of GNU Offloading and Multi Processing Runtime Library 1.0:";;
1426 esac
1427 cat <<\_ACEOF
1429 Optional Features:
1430 --disable-option-checking ignore unrecognized --enable/--with options
1431 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1432 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1433 --enable-version-specific-runtime-libs
1434 Specify that runtime libraries should be installed
1435 in a compiler-specific directory [default=no]
1436 --enable-generated-files-in-srcdir
1437 put copies of generated files in source dir intended
1438 for creating source tarballs for users without
1439 texinfo bison or flex. [default=no]
1440 --enable-multilib build many library versions (default)
1441 --disable-dependency-tracking speeds up one-time build
1442 --enable-dependency-tracking do not reject slow dependency extractors
1443 --enable-shared[=PKGS] build shared libraries [default=yes]
1444 --enable-static[=PKGS] build static libraries [default=yes]
1445 --enable-fast-install[=PKGS]
1446 optimize for fast installation [default=yes]
1447 --disable-libtool-lock avoid locking (might break parallel builds)
1448 --enable-maintainer-mode enable make rules and dependencies not useful
1449 (and sometimes confusing) to the casual installer
1450 --enable-linux-futex use the Linux futex system call [default=default]
1451 --enable-tls Use thread-local storage [default=yes]
1452 --enable-symvers=STYLE enables symbol versioning of the shared library
1453 [default=yes]
1455 Optional Packages:
1456 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1457 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1458 --with-pic try to use only PIC/non-PIC objects [default=use
1459 both]
1460 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1461 --with-cuda-driver=PATH specify prefix directory for installed CUDA driver
1462 package. Equivalent to
1463 --with-cuda-driver-include=PATH/include plus
1464 --with-cuda-driver-lib=PATH/lib
1465 --with-cuda-driver-include=PATH
1466 specify directory for installed CUDA driver include
1467 files
1468 --with-cuda-driver-lib=PATH
1469 specify directory for the installed CUDA driver
1470 library
1471 --with-hsa-runtime=PATH specify prefix directory for installed HSA run-time
1472 package. Equivalent to
1473 --with-hsa-runtime-include=PATH/include plus
1474 --with-hsa-runtime-lib=PATH/lib
1475 --with-hsa-runtime-include=PATH
1476 specify directory for installed HSA run-time include
1477 files
1478 --with-hsa-runtime-lib=PATH
1479 specify directory for the installed HSA run-time
1480 library
1481 --with-gcc-major-version-only
1482 use only GCC major number in filesystem paths
1484 Some influential environment variables:
1485 CC C compiler command
1486 CFLAGS C compiler flags
1487 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1488 nonstandard directory <lib dir>
1489 LIBS libraries to pass to the linker, e.g. -l<library>
1490 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1491 you have headers in a nonstandard directory <include dir>
1492 CPP C preprocessor
1493 FC Fortran compiler command
1494 FCFLAGS Fortran compiler flags
1496 Use these variables to override the choices made by `configure' or to help
1497 it to find libraries and programs with nonstandard names/locations.
1499 Report bugs to the package provider.
1500 GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
1501 General help using GNU software: <http://www.gnu.org/gethelp/>.
1502 _ACEOF
1503 ac_status=$?
1506 if test "$ac_init_help" = "recursive"; then
1507 # If there are subdirs, report their specific --help.
1508 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1509 test -d "$ac_dir" ||
1510 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1511 continue
1512 ac_builddir=.
1514 case "$ac_dir" in
1515 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1518 # A ".." for each directory in $ac_dir_suffix.
1519 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1520 case $ac_top_builddir_sub in
1521 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1523 esac ;;
1524 esac
1525 ac_abs_top_builddir=$ac_pwd
1526 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1527 # for backward compatibility:
1528 ac_top_builddir=$ac_top_build_prefix
1530 case $srcdir in
1531 .) # We are building in place.
1532 ac_srcdir=.
1533 ac_top_srcdir=$ac_top_builddir_sub
1534 ac_abs_top_srcdir=$ac_pwd ;;
1535 [\\/]* | ?:[\\/]* ) # Absolute name.
1536 ac_srcdir=$srcdir$ac_dir_suffix;
1537 ac_top_srcdir=$srcdir
1538 ac_abs_top_srcdir=$srcdir ;;
1539 *) # Relative name.
1540 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1541 ac_top_srcdir=$ac_top_build_prefix$srcdir
1542 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1543 esac
1544 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1546 cd "$ac_dir" || { ac_status=$?; continue; }
1547 # Check for guested configure.
1548 if test -f "$ac_srcdir/configure.gnu"; then
1549 echo &&
1550 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1551 elif test -f "$ac_srcdir/configure"; then
1552 echo &&
1553 $SHELL "$ac_srcdir/configure" --help=recursive
1554 else
1555 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1556 fi || ac_status=$?
1557 cd "$ac_pwd" || { ac_status=$?; break; }
1558 done
1561 test -n "$ac_init_help" && exit $ac_status
1562 if $ac_init_version; then
1563 cat <<\_ACEOF
1564 GNU Offloading and Multi Processing Runtime Library configure 1.0
1565 generated by GNU Autoconf 2.64
1567 Copyright (C) 2009 Free Software Foundation, Inc.
1568 This configure script is free software; the Free Software Foundation
1569 gives unlimited permission to copy, distribute and modify it.
1570 _ACEOF
1571 exit
1574 ## ------------------------ ##
1575 ## Autoconf initialization. ##
1576 ## ------------------------ ##
1578 # ac_fn_c_try_compile LINENO
1579 # --------------------------
1580 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1581 ac_fn_c_try_compile ()
1583 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1584 rm -f conftest.$ac_objext
1585 if { { ac_try="$ac_compile"
1586 case "(($ac_try" in
1587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1588 *) ac_try_echo=$ac_try;;
1589 esac
1590 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1591 $as_echo "$ac_try_echo"; } >&5
1592 (eval "$ac_compile") 2>conftest.err
1593 ac_status=$?
1594 if test -s conftest.err; then
1595 grep -v '^ *+' conftest.err >conftest.er1
1596 cat conftest.er1 >&5
1597 mv -f conftest.er1 conftest.err
1599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1600 test $ac_status = 0; } && {
1601 test -z "$ac_c_werror_flag" ||
1602 test ! -s conftest.err
1603 } && test -s conftest.$ac_objext; then :
1604 ac_retval=0
1605 else
1606 $as_echo "$as_me: failed program was:" >&5
1607 sed 's/^/| /' conftest.$ac_ext >&5
1609 ac_retval=1
1611 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1612 return $ac_retval
1614 } # ac_fn_c_try_compile
1616 # ac_fn_c_try_link LINENO
1617 # -----------------------
1618 # Try to link conftest.$ac_ext, and return whether this succeeded.
1619 ac_fn_c_try_link ()
1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622 rm -f conftest.$ac_objext conftest$ac_exeext
1623 if { { ac_try="$ac_link"
1624 case "(($ac_try" in
1625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1626 *) ac_try_echo=$ac_try;;
1627 esac
1628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1629 $as_echo "$ac_try_echo"; } >&5
1630 (eval "$ac_link") 2>conftest.err
1631 ac_status=$?
1632 if test -s conftest.err; then
1633 grep -v '^ *+' conftest.err >conftest.er1
1634 cat conftest.er1 >&5
1635 mv -f conftest.er1 conftest.err
1637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1638 test $ac_status = 0; } && {
1639 test -z "$ac_c_werror_flag" ||
1640 test ! -s conftest.err
1641 } && test -s conftest$ac_exeext && {
1642 test "$cross_compiling" = yes ||
1643 $as_test_x conftest$ac_exeext
1644 }; then :
1645 ac_retval=0
1646 else
1647 $as_echo "$as_me: failed program was:" >&5
1648 sed 's/^/| /' conftest.$ac_ext >&5
1650 ac_retval=1
1652 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1653 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1654 # interfere with the next link command; also delete a directory that is
1655 # left behind by Apple's compiler. We do this before executing the actions.
1656 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1657 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1658 return $ac_retval
1660 } # ac_fn_c_try_link
1662 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1663 # -------------------------------------------------------
1664 # Tests whether HEADER exists and can be compiled using the include files in
1665 # INCLUDES, setting the cache variable VAR accordingly.
1666 ac_fn_c_check_header_compile ()
1668 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1670 $as_echo_n "checking for $2... " >&6; }
1671 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1672 $as_echo_n "(cached) " >&6
1673 else
1674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1675 /* end confdefs.h. */
1677 #include <$2>
1678 _ACEOF
1679 if ac_fn_c_try_compile "$LINENO"; then :
1680 eval "$3=yes"
1681 else
1682 eval "$3=no"
1684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1686 eval ac_res=\$$3
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1688 $as_echo "$ac_res" >&6; }
1689 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1691 } # ac_fn_c_check_header_compile
1693 # ac_fn_c_try_cpp LINENO
1694 # ----------------------
1695 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1696 ac_fn_c_try_cpp ()
1698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699 if { { ac_try="$ac_cpp conftest.$ac_ext"
1700 case "(($ac_try" in
1701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1702 *) ac_try_echo=$ac_try;;
1703 esac
1704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1705 $as_echo "$ac_try_echo"; } >&5
1706 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1707 ac_status=$?
1708 if test -s conftest.err; then
1709 grep -v '^ *+' conftest.err >conftest.er1
1710 cat conftest.er1 >&5
1711 mv -f conftest.er1 conftest.err
1713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1714 test $ac_status = 0; } >/dev/null && {
1715 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1716 test ! -s conftest.err
1717 }; then :
1718 ac_retval=0
1719 else
1720 $as_echo "$as_me: failed program was:" >&5
1721 sed 's/^/| /' conftest.$ac_ext >&5
1723 ac_retval=1
1725 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1726 return $ac_retval
1728 } # ac_fn_c_try_cpp
1730 # ac_fn_c_try_run LINENO
1731 # ----------------------
1732 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1733 # that executables *can* be run.
1734 ac_fn_c_try_run ()
1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737 if { { ac_try="$ac_link"
1738 case "(($ac_try" in
1739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1740 *) ac_try_echo=$ac_try;;
1741 esac
1742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1743 $as_echo "$ac_try_echo"; } >&5
1744 (eval "$ac_link") 2>&5
1745 ac_status=$?
1746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1748 { { case "(($ac_try" in
1749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1750 *) ac_try_echo=$ac_try;;
1751 esac
1752 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1753 $as_echo "$ac_try_echo"; } >&5
1754 (eval "$ac_try") 2>&5
1755 ac_status=$?
1756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757 test $ac_status = 0; }; }; then :
1758 ac_retval=0
1759 else
1760 $as_echo "$as_me: program exited with status $ac_status" >&5
1761 $as_echo "$as_me: failed program was:" >&5
1762 sed 's/^/| /' conftest.$ac_ext >&5
1764 ac_retval=$ac_status
1766 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1767 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1768 return $ac_retval
1770 } # ac_fn_c_try_run
1772 # ac_fn_c_check_func LINENO FUNC VAR
1773 # ----------------------------------
1774 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1775 ac_fn_c_check_func ()
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1779 $as_echo_n "checking for $2... " >&6; }
1780 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1781 $as_echo_n "(cached) " >&6
1782 else
1783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1784 /* end confdefs.h. */
1785 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1787 #define $2 innocuous_$2
1789 /* System header to define __stub macros and hopefully few prototypes,
1790 which can conflict with char $2 (); below.
1791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1792 <limits.h> exists even on freestanding compilers. */
1794 #ifdef __STDC__
1795 # include <limits.h>
1796 #else
1797 # include <assert.h>
1798 #endif
1800 #undef $2
1802 /* Override any GCC internal prototype to avoid an error.
1803 Use char because int might match the return type of a GCC
1804 builtin and then its argument prototype would still apply. */
1805 #ifdef __cplusplus
1806 extern "C"
1807 #endif
1808 char $2 ();
1809 /* The GNU C library defines this for functions which it implements
1810 to always fail with ENOSYS. Some functions are actually named
1811 something starting with __ and the normal name is an alias. */
1812 #if defined __stub_$2 || defined __stub___$2
1813 choke me
1814 #endif
1817 main ()
1819 return $2 ();
1821 return 0;
1823 _ACEOF
1824 if ac_fn_c_try_link "$LINENO"; then :
1825 eval "$3=yes"
1826 else
1827 eval "$3=no"
1829 rm -f core conftest.err conftest.$ac_objext \
1830 conftest$ac_exeext conftest.$ac_ext
1832 eval ac_res=\$$3
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1834 $as_echo "$ac_res" >&6; }
1835 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1837 } # ac_fn_c_check_func
1839 # ac_fn_fc_try_compile LINENO
1840 # ---------------------------
1841 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1842 ac_fn_fc_try_compile ()
1844 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845 rm -f conftest.$ac_objext
1846 if { { ac_try="$ac_compile"
1847 case "(($ac_try" in
1848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1849 *) ac_try_echo=$ac_try;;
1850 esac
1851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1852 $as_echo "$ac_try_echo"; } >&5
1853 (eval "$ac_compile") 2>conftest.err
1854 ac_status=$?
1855 if test -s conftest.err; then
1856 grep -v '^ *+' conftest.err >conftest.er1
1857 cat conftest.er1 >&5
1858 mv -f conftest.er1 conftest.err
1860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1861 test $ac_status = 0; } && {
1862 test -z "$ac_fc_werror_flag" ||
1863 test ! -s conftest.err
1864 } && test -s conftest.$ac_objext; then :
1865 ac_retval=0
1866 else
1867 $as_echo "$as_me: failed program was:" >&5
1868 sed 's/^/| /' conftest.$ac_ext >&5
1870 ac_retval=1
1872 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1873 return $ac_retval
1875 } # ac_fn_fc_try_compile
1877 # ac_fn_fc_try_link LINENO
1878 # ------------------------
1879 # Try to link conftest.$ac_ext, and return whether this succeeded.
1880 ac_fn_fc_try_link ()
1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883 rm -f conftest.$ac_objext conftest$ac_exeext
1884 if { { ac_try="$ac_link"
1885 case "(($ac_try" in
1886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1887 *) ac_try_echo=$ac_try;;
1888 esac
1889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1890 $as_echo "$ac_try_echo"; } >&5
1891 (eval "$ac_link") 2>conftest.err
1892 ac_status=$?
1893 if test -s conftest.err; then
1894 grep -v '^ *+' conftest.err >conftest.er1
1895 cat conftest.er1 >&5
1896 mv -f conftest.er1 conftest.err
1898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1899 test $ac_status = 0; } && {
1900 test -z "$ac_fc_werror_flag" ||
1901 test ! -s conftest.err
1902 } && test -s conftest$ac_exeext && {
1903 test "$cross_compiling" = yes ||
1904 $as_test_x conftest$ac_exeext
1905 }; then :
1906 ac_retval=0
1907 else
1908 $as_echo "$as_me: failed program was:" >&5
1909 sed 's/^/| /' conftest.$ac_ext >&5
1911 ac_retval=1
1913 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1914 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1915 # interfere with the next link command; also delete a directory that is
1916 # left behind by Apple's compiler. We do this before executing the actions.
1917 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1918 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1919 return $ac_retval
1921 } # ac_fn_fc_try_link
1923 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1924 # -------------------------------------------------------
1925 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1926 # the include files in INCLUDES and setting the cache variable VAR
1927 # accordingly.
1928 ac_fn_c_check_header_mongrel ()
1930 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1933 $as_echo_n "checking for $2... " >&6; }
1934 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1935 $as_echo_n "(cached) " >&6
1937 eval ac_res=\$$3
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1939 $as_echo "$ac_res" >&6; }
1940 else
1941 # Is the header compilable?
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1943 $as_echo_n "checking $2 usability... " >&6; }
1944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1945 /* end confdefs.h. */
1947 #include <$2>
1948 _ACEOF
1949 if ac_fn_c_try_compile "$LINENO"; then :
1950 ac_header_compiler=yes
1951 else
1952 ac_header_compiler=no
1954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1956 $as_echo "$ac_header_compiler" >&6; }
1958 # Is the header present?
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1960 $as_echo_n "checking $2 presence... " >&6; }
1961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1962 /* end confdefs.h. */
1963 #include <$2>
1964 _ACEOF
1965 if ac_fn_c_try_cpp "$LINENO"; then :
1966 ac_header_preproc=yes
1967 else
1968 ac_header_preproc=no
1970 rm -f conftest.err conftest.$ac_ext
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1972 $as_echo "$ac_header_preproc" >&6; }
1974 # So? What about this header?
1975 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1976 yes:no: )
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1978 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1980 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1982 no:yes:* )
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1984 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1986 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1988 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1990 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1992 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1994 esac
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1996 $as_echo_n "checking for $2... " >&6; }
1997 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1998 $as_echo_n "(cached) " >&6
1999 else
2000 eval "$3=\$ac_header_compiler"
2002 eval ac_res=\$$3
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2004 $as_echo "$ac_res" >&6; }
2006 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2008 } # ac_fn_c_check_header_mongrel
2010 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2011 # -------------------------------------------
2012 # Tests whether TYPE exists after having included INCLUDES, setting cache
2013 # variable VAR accordingly.
2014 ac_fn_c_check_type ()
2016 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2018 $as_echo_n "checking for $2... " >&6; }
2019 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2020 $as_echo_n "(cached) " >&6
2021 else
2022 eval "$3=no"
2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024 /* end confdefs.h. */
2027 main ()
2029 if (sizeof ($2))
2030 return 0;
2032 return 0;
2034 _ACEOF
2035 if ac_fn_c_try_compile "$LINENO"; then :
2036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2037 /* end confdefs.h. */
2040 main ()
2042 if (sizeof (($2)))
2043 return 0;
2045 return 0;
2047 _ACEOF
2048 if ac_fn_c_try_compile "$LINENO"; then :
2050 else
2051 eval "$3=yes"
2053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2057 eval ac_res=\$$3
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2059 $as_echo "$ac_res" >&6; }
2060 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2062 } # ac_fn_c_check_type
2064 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2065 # --------------------------------------------
2066 # Tries to find the compile-time value of EXPR in a program that includes
2067 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2068 # computed
2069 ac_fn_c_compute_int ()
2071 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2072 if test "$cross_compiling" = yes; then
2073 # Depending upon the size, compute the lo and hi bounds.
2074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2075 /* end confdefs.h. */
2078 main ()
2080 static int test_array [1 - 2 * !(($2) >= 0)];
2081 test_array [0] = 0
2084 return 0;
2086 _ACEOF
2087 if ac_fn_c_try_compile "$LINENO"; then :
2088 ac_lo=0 ac_mid=0
2089 while :; do
2090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091 /* end confdefs.h. */
2094 main ()
2096 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2097 test_array [0] = 0
2100 return 0;
2102 _ACEOF
2103 if ac_fn_c_try_compile "$LINENO"; then :
2104 ac_hi=$ac_mid; break
2105 else
2106 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2107 if test $ac_lo -le $ac_mid; then
2108 ac_lo= ac_hi=
2109 break
2111 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2114 done
2115 else
2116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2117 /* end confdefs.h. */
2120 main ()
2122 static int test_array [1 - 2 * !(($2) < 0)];
2123 test_array [0] = 0
2126 return 0;
2128 _ACEOF
2129 if ac_fn_c_try_compile "$LINENO"; then :
2130 ac_hi=-1 ac_mid=-1
2131 while :; do
2132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2133 /* end confdefs.h. */
2136 main ()
2138 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2139 test_array [0] = 0
2142 return 0;
2144 _ACEOF
2145 if ac_fn_c_try_compile "$LINENO"; then :
2146 ac_lo=$ac_mid; break
2147 else
2148 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2149 if test $ac_mid -le $ac_hi; then
2150 ac_lo= ac_hi=
2151 break
2153 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2156 done
2157 else
2158 ac_lo= ac_hi=
2160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2163 # Binary search between lo and hi bounds.
2164 while test "x$ac_lo" != "x$ac_hi"; do
2165 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2167 /* end confdefs.h. */
2170 main ()
2172 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2173 test_array [0] = 0
2176 return 0;
2178 _ACEOF
2179 if ac_fn_c_try_compile "$LINENO"; then :
2180 ac_hi=$ac_mid
2181 else
2182 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2185 done
2186 case $ac_lo in #((
2187 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2188 '') ac_retval=1 ;;
2189 esac
2190 else
2191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2192 /* end confdefs.h. */
2194 static long int longval () { return $2; }
2195 static unsigned long int ulongval () { return $2; }
2196 #include <stdio.h>
2197 #include <stdlib.h>
2199 main ()
2202 FILE *f = fopen ("conftest.val", "w");
2203 if (! f)
2204 return 1;
2205 if (($2) < 0)
2207 long int i = longval ();
2208 if (i != ($2))
2209 return 1;
2210 fprintf (f, "%ld", i);
2212 else
2214 unsigned long int i = ulongval ();
2215 if (i != ($2))
2216 return 1;
2217 fprintf (f, "%lu", i);
2219 /* Do not output a trailing newline, as this causes \r\n confusion
2220 on some platforms. */
2221 return ferror (f) || fclose (f) != 0;
2224 return 0;
2226 _ACEOF
2227 if ac_fn_c_try_run "$LINENO"; then :
2228 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2229 else
2230 ac_retval=1
2232 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2233 conftest.$ac_objext conftest.beam conftest.$ac_ext
2234 rm -f conftest.val
2237 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2238 return $ac_retval
2240 } # ac_fn_c_compute_int
2241 cat >config.log <<_ACEOF
2242 This file contains any messages produced by compilers while
2243 running configure, to aid debugging if configure makes a mistake.
2245 It was created by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
2246 generated by GNU Autoconf 2.64. Invocation command line was
2248 $ $0 $@
2250 _ACEOF
2251 exec 5>>config.log
2253 cat <<_ASUNAME
2254 ## --------- ##
2255 ## Platform. ##
2256 ## --------- ##
2258 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2259 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2260 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2261 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2262 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2264 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2265 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2267 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2268 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2269 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2270 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2271 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2272 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2273 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2275 _ASUNAME
2277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2278 for as_dir in $PATH
2280 IFS=$as_save_IFS
2281 test -z "$as_dir" && as_dir=.
2282 $as_echo "PATH: $as_dir"
2283 done
2284 IFS=$as_save_IFS
2286 } >&5
2288 cat >&5 <<_ACEOF
2291 ## ----------- ##
2292 ## Core tests. ##
2293 ## ----------- ##
2295 _ACEOF
2298 # Keep a trace of the command line.
2299 # Strip out --no-create and --no-recursion so they do not pile up.
2300 # Strip out --silent because we don't want to record it for future runs.
2301 # Also quote any args containing shell meta-characters.
2302 # Make two passes to allow for proper duplicate-argument suppression.
2303 ac_configure_args=
2304 ac_configure_args0=
2305 ac_configure_args1=
2306 ac_must_keep_next=false
2307 for ac_pass in 1 2
2309 for ac_arg
2311 case $ac_arg in
2312 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2313 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2314 | -silent | --silent | --silen | --sile | --sil)
2315 continue ;;
2316 *\'*)
2317 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2318 esac
2319 case $ac_pass in
2320 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2322 as_fn_append ac_configure_args1 " '$ac_arg'"
2323 if test $ac_must_keep_next = true; then
2324 ac_must_keep_next=false # Got value, back to normal.
2325 else
2326 case $ac_arg in
2327 *=* | --config-cache | -C | -disable-* | --disable-* \
2328 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2329 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2330 | -with-* | --with-* | -without-* | --without-* | --x)
2331 case "$ac_configure_args0 " in
2332 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2333 esac
2335 -* ) ac_must_keep_next=true ;;
2336 esac
2338 as_fn_append ac_configure_args " '$ac_arg'"
2340 esac
2341 done
2342 done
2343 { ac_configure_args0=; unset ac_configure_args0;}
2344 { ac_configure_args1=; unset ac_configure_args1;}
2346 # When interrupted or exit'd, cleanup temporary files, and complete
2347 # config.log. We remove comments because anyway the quotes in there
2348 # would cause problems or look ugly.
2349 # WARNING: Use '\'' to represent an apostrophe within the trap.
2350 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2351 trap 'exit_status=$?
2352 # Save into config.log some information that might help in debugging.
2354 echo
2356 cat <<\_ASBOX
2357 ## ---------------- ##
2358 ## Cache variables. ##
2359 ## ---------------- ##
2360 _ASBOX
2361 echo
2362 # The following way of writing the cache mishandles newlines in values,
2364 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2365 eval ac_val=\$$ac_var
2366 case $ac_val in #(
2367 *${as_nl}*)
2368 case $ac_var in #(
2369 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2370 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2371 esac
2372 case $ac_var in #(
2373 _ | IFS | as_nl) ;; #(
2374 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2375 *) { eval $ac_var=; unset $ac_var;} ;;
2376 esac ;;
2377 esac
2378 done
2379 (set) 2>&1 |
2380 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2381 *${as_nl}ac_space=\ *)
2382 sed -n \
2383 "s/'\''/'\''\\\\'\'''\''/g;
2384 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2385 ;; #(
2387 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2389 esac |
2390 sort
2392 echo
2394 cat <<\_ASBOX
2395 ## ----------------- ##
2396 ## Output variables. ##
2397 ## ----------------- ##
2398 _ASBOX
2399 echo
2400 for ac_var in $ac_subst_vars
2402 eval ac_val=\$$ac_var
2403 case $ac_val in
2404 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2405 esac
2406 $as_echo "$ac_var='\''$ac_val'\''"
2407 done | sort
2408 echo
2410 if test -n "$ac_subst_files"; then
2411 cat <<\_ASBOX
2412 ## ------------------- ##
2413 ## File substitutions. ##
2414 ## ------------------- ##
2415 _ASBOX
2416 echo
2417 for ac_var in $ac_subst_files
2419 eval ac_val=\$$ac_var
2420 case $ac_val in
2421 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2422 esac
2423 $as_echo "$ac_var='\''$ac_val'\''"
2424 done | sort
2425 echo
2428 if test -s confdefs.h; then
2429 cat <<\_ASBOX
2430 ## ----------- ##
2431 ## confdefs.h. ##
2432 ## ----------- ##
2433 _ASBOX
2434 echo
2435 cat confdefs.h
2436 echo
2438 test "$ac_signal" != 0 &&
2439 $as_echo "$as_me: caught signal $ac_signal"
2440 $as_echo "$as_me: exit $exit_status"
2441 } >&5
2442 rm -f core *.core core.conftest.* &&
2443 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2444 exit $exit_status
2446 for ac_signal in 1 2 13 15; do
2447 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2448 done
2449 ac_signal=0
2451 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2452 rm -f -r conftest* confdefs.h
2454 $as_echo "/* confdefs.h */" > confdefs.h
2456 # Predefined preprocessor variables.
2458 cat >>confdefs.h <<_ACEOF
2459 #define PACKAGE_NAME "$PACKAGE_NAME"
2460 _ACEOF
2462 cat >>confdefs.h <<_ACEOF
2463 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2464 _ACEOF
2466 cat >>confdefs.h <<_ACEOF
2467 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2468 _ACEOF
2470 cat >>confdefs.h <<_ACEOF
2471 #define PACKAGE_STRING "$PACKAGE_STRING"
2472 _ACEOF
2474 cat >>confdefs.h <<_ACEOF
2475 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2476 _ACEOF
2478 cat >>confdefs.h <<_ACEOF
2479 #define PACKAGE_URL "$PACKAGE_URL"
2480 _ACEOF
2483 # Let the site file select an alternate cache file if it wants to.
2484 # Prefer an explicitly selected file to automatically selected ones.
2485 ac_site_file1=NONE
2486 ac_site_file2=NONE
2487 if test -n "$CONFIG_SITE"; then
2488 ac_site_file1=$CONFIG_SITE
2489 elif test "x$prefix" != xNONE; then
2490 ac_site_file1=$prefix/share/config.site
2491 ac_site_file2=$prefix/etc/config.site
2492 else
2493 ac_site_file1=$ac_default_prefix/share/config.site
2494 ac_site_file2=$ac_default_prefix/etc/config.site
2496 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2498 test "x$ac_site_file" = xNONE && continue
2499 if test -r "$ac_site_file"; then
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2501 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2502 sed 's/^/| /' "$ac_site_file" >&5
2503 . "$ac_site_file"
2505 done
2507 if test -r "$cache_file"; then
2508 # Some versions of bash will fail to source /dev/null (special
2509 # files actually), so we avoid doing that.
2510 if test -f "$cache_file"; then
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2512 $as_echo "$as_me: loading cache $cache_file" >&6;}
2513 case $cache_file in
2514 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2515 *) . "./$cache_file";;
2516 esac
2518 else
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2520 $as_echo "$as_me: creating cache $cache_file" >&6;}
2521 >$cache_file
2524 as_fn_append ac_header_list " unistd.h"
2525 as_fn_append ac_func_list " secure_getenv"
2526 as_fn_append ac_func_list " __secure_getenv"
2527 as_fn_append ac_func_list " getuid"
2528 as_fn_append ac_func_list " geteuid"
2529 as_fn_append ac_func_list " getgid"
2530 as_fn_append ac_func_list " getegid"
2531 # Check that the precious variables saved in the cache have kept the same
2532 # value.
2533 ac_cache_corrupted=false
2534 for ac_var in $ac_precious_vars; do
2535 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2536 eval ac_new_set=\$ac_env_${ac_var}_set
2537 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2538 eval ac_new_val=\$ac_env_${ac_var}_value
2539 case $ac_old_set,$ac_new_set in
2540 set,)
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2542 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2543 ac_cache_corrupted=: ;;
2544 ,set)
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2546 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2547 ac_cache_corrupted=: ;;
2548 ,);;
2550 if test "x$ac_old_val" != "x$ac_new_val"; then
2551 # differences in whitespace do not lead to failure.
2552 ac_old_val_w=`echo x $ac_old_val`
2553 ac_new_val_w=`echo x $ac_new_val`
2554 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2556 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2557 ac_cache_corrupted=:
2558 else
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2560 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2561 eval $ac_var=\$ac_old_val
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2564 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2566 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2567 fi;;
2568 esac
2569 # Pass precious variables to config.status.
2570 if test "$ac_new_set" = set; then
2571 case $ac_new_val in
2572 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2573 *) ac_arg=$ac_var=$ac_new_val ;;
2574 esac
2575 case " $ac_configure_args " in
2576 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2577 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2578 esac
2580 done
2581 if $ac_cache_corrupted; then
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2583 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2585 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2586 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2588 ## -------------------- ##
2589 ## Main body of script. ##
2590 ## -------------------- ##
2592 ac_ext=c
2593 ac_cpp='$CPP $CPPFLAGS'
2594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2602 ac_config_headers="$ac_config_headers config.h"
2605 # -------
2606 # Options
2607 # -------
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2610 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2611 # Check whether --enable-version-specific-runtime-libs was given.
2612 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2613 enableval=$enable_version_specific_runtime_libs;
2614 case "$enableval" in
2615 yes|no) ;;
2616 *) as_fn_error "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2617 esac
2619 else
2620 enable_version_specific_runtime_libs=no
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2625 $as_echo "$enable_version_specific_runtime_libs" >&6; }
2627 # We would like our source tree to be readonly. However when releases or
2628 # pre-releases are generated, the flex/bison generated files as well as the
2629 # various formats of manuals need to be included along with the rest of the
2630 # sources. Therefore we have --enable-generated-files-in-srcdir to do
2631 # just that.
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2633 $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2634 # Check whether --enable-generated-files-in-srcdir was given.
2635 if test "${enable_generated_files_in_srcdir+set}" = set; then :
2636 enableval=$enable_generated_files_in_srcdir;
2637 case "$enableval" in
2638 yes|no) ;;
2639 *) as_fn_error "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2640 esac
2642 else
2643 enable_generated_files_in_srcdir=no
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2648 $as_echo "$enable_generated_files_in_srcdir" >&6; }
2649 if test "$enable_generated_files_in_srcdir" = yes; then
2650 GENINSRC_TRUE=
2651 GENINSRC_FALSE='#'
2652 else
2653 GENINSRC_TRUE='#'
2654 GENINSRC_FALSE=
2659 # -------
2660 # -------
2662 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2664 # You will slowly go insane if you do not grok the following fact: when
2665 # building this library, the top-level /target/ becomes the library's /host/.
2667 # configure then causes --target to default to --host, exactly like any
2668 # other package using autoconf. Therefore, 'target' and 'host' will
2669 # always be the same. This makes sense both for native and cross compilers
2670 # just think about it for a little while. :-)
2672 # Also, if this library is being configured as part of a cross compiler, the
2673 # top-level configure script will pass the "real" host as $with_cross_host.
2675 # Do not delete or change the following two lines. For why, see
2676 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2677 ac_aux_dir=
2678 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2679 for ac_t in install-sh install.sh shtool; do
2680 if test -f "$ac_dir/$ac_t"; then
2681 ac_aux_dir=$ac_dir
2682 ac_install_sh="$ac_aux_dir/$ac_t -c"
2683 break 2
2685 done
2686 done
2687 if test -z "$ac_aux_dir"; then
2688 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2691 # These three variables are undocumented and unsupported,
2692 # and are intended to be withdrawn in a future Autoconf release.
2693 # They can cause serious problems if a builder's source tree is in a directory
2694 # whose full name contains unusual characters.
2695 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2696 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2697 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2700 # Make sure we can run config.sub.
2701 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2702 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2705 $as_echo_n "checking build system type... " >&6; }
2706 if test "${ac_cv_build+set}" = set; then :
2707 $as_echo_n "(cached) " >&6
2708 else
2709 ac_build_alias=$build_alias
2710 test "x$ac_build_alias" = x &&
2711 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2712 test "x$ac_build_alias" = x &&
2713 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2714 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2715 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2719 $as_echo "$ac_cv_build" >&6; }
2720 case $ac_cv_build in
2721 *-*-*) ;;
2722 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2723 esac
2724 build=$ac_cv_build
2725 ac_save_IFS=$IFS; IFS='-'
2726 set x $ac_cv_build
2727 shift
2728 build_cpu=$1
2729 build_vendor=$2
2730 shift; shift
2731 # Remember, the first character of IFS is used to create $*,
2732 # except with old shells:
2733 build_os=$*
2734 IFS=$ac_save_IFS
2735 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2739 $as_echo_n "checking host system type... " >&6; }
2740 if test "${ac_cv_host+set}" = set; then :
2741 $as_echo_n "(cached) " >&6
2742 else
2743 if test "x$host_alias" = x; then
2744 ac_cv_host=$ac_cv_build
2745 else
2746 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2747 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2752 $as_echo "$ac_cv_host" >&6; }
2753 case $ac_cv_host in
2754 *-*-*) ;;
2755 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2756 esac
2757 host=$ac_cv_host
2758 ac_save_IFS=$IFS; IFS='-'
2759 set x $ac_cv_host
2760 shift
2761 host_cpu=$1
2762 host_vendor=$2
2763 shift; shift
2764 # Remember, the first character of IFS is used to create $*,
2765 # except with old shells:
2766 host_os=$*
2767 IFS=$ac_save_IFS
2768 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2772 $as_echo_n "checking target system type... " >&6; }
2773 if test "${ac_cv_target+set}" = set; then :
2774 $as_echo_n "(cached) " >&6
2775 else
2776 if test "x$target_alias" = x; then
2777 ac_cv_target=$ac_cv_host
2778 else
2779 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2780 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2785 $as_echo "$ac_cv_target" >&6; }
2786 case $ac_cv_target in
2787 *-*-*) ;;
2788 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2789 esac
2790 target=$ac_cv_target
2791 ac_save_IFS=$IFS; IFS='-'
2792 set x $ac_cv_target
2793 shift
2794 target_cpu=$1
2795 target_vendor=$2
2796 shift; shift
2797 # Remember, the first character of IFS is used to create $*,
2798 # except with old shells:
2799 target_os=$*
2800 IFS=$ac_save_IFS
2801 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2804 # The aliases save the names the user supplied, while $host etc.
2805 # will get canonicalized.
2806 test -n "$target_alias" &&
2807 test "$program_prefix$program_suffix$program_transform_name" = \
2808 NONENONEs,x,x, &&
2809 program_prefix=${target_alias}-
2811 target_alias=${target_alias-$host_alias}
2813 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2814 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2815 # 1.9.0: minimum required version
2816 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2817 # of other PACKAGE_* variables will, however, and there's nothing
2818 # we can do about that; they come from AC_INIT).
2819 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2820 # file in the top srcdir, etc, etc), so stop complaining.
2821 # no-dist: we don't want 'dist' and related rules.
2822 # -Wall: turns on all automake warnings...
2823 # -Wno-portability: ...except this one, since GNU make is required.
2824 # -Wno-override: ... and this one, since we do want this in testsuite.
2825 am__api_version='1.11'
2827 # Find a good install program. We prefer a C program (faster),
2828 # so one script is as good as another. But avoid the broken or
2829 # incompatible versions:
2830 # SysV /etc/install, /usr/sbin/install
2831 # SunOS /usr/etc/install
2832 # IRIX /sbin/install
2833 # AIX /bin/install
2834 # AmigaOS /C/install, which installs bootblocks on floppy discs
2835 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2836 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2837 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2838 # OS/2's system install, which has a completely different semantic
2839 # ./install, which can be erroneously created by make from ./install.sh.
2840 # Reject install programs that cannot install multiple files.
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2842 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2843 if test -z "$INSTALL"; then
2844 if test "${ac_cv_path_install+set}" = set; then :
2845 $as_echo_n "(cached) " >&6
2846 else
2847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848 for as_dir in $PATH
2850 IFS=$as_save_IFS
2851 test -z "$as_dir" && as_dir=.
2852 # Account for people who put trailing slashes in PATH elements.
2853 case $as_dir/ in #((
2854 ./ | .// | /[cC]/* | \
2855 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2856 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2857 /usr/ucb/* ) ;;
2859 # OSF1 and SCO ODT 3.0 have their own names for install.
2860 # Don't use installbsd from OSF since it installs stuff as root
2861 # by default.
2862 for ac_prog in ginstall scoinst install; do
2863 for ac_exec_ext in '' $ac_executable_extensions; do
2864 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2865 if test $ac_prog = install &&
2866 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2867 # AIX install. It has an incompatible calling convention.
2869 elif test $ac_prog = install &&
2870 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2871 # program-specific install script used by HP pwplus--don't use.
2873 else
2874 rm -rf conftest.one conftest.two conftest.dir
2875 echo one > conftest.one
2876 echo two > conftest.two
2877 mkdir conftest.dir
2878 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2879 test -s conftest.one && test -s conftest.two &&
2880 test -s conftest.dir/conftest.one &&
2881 test -s conftest.dir/conftest.two
2882 then
2883 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2884 break 3
2888 done
2889 done
2891 esac
2893 done
2894 IFS=$as_save_IFS
2896 rm -rf conftest.one conftest.two conftest.dir
2899 if test "${ac_cv_path_install+set}" = set; then
2900 INSTALL=$ac_cv_path_install
2901 else
2902 # As a last resort, use the slow shell script. Don't cache a
2903 # value for INSTALL within a source directory, because that will
2904 # break other packages using the cache if that directory is
2905 # removed, or if the value is a relative name.
2906 INSTALL=$ac_install_sh
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2910 $as_echo "$INSTALL" >&6; }
2912 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2913 # It thinks the first close brace ends the variable substitution.
2914 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2916 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2918 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2921 $as_echo_n "checking whether build environment is sane... " >&6; }
2922 # Just in case
2923 sleep 1
2924 echo timestamp > conftest.file
2925 # Reject unsafe characters in $srcdir or the absolute working directory
2926 # name. Accept space and tab only in the latter.
2927 am_lf='
2929 case `pwd` in
2930 *[\\\"\#\$\&\'\`$am_lf]*)
2931 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2932 esac
2933 case $srcdir in
2934 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2935 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2936 esac
2938 # Do `set' in a subshell so we don't clobber the current shell's
2939 # arguments. Must try -L first in case configure is actually a
2940 # symlink; some systems play weird games with the mod time of symlinks
2941 # (eg FreeBSD returns the mod time of the symlink's containing
2942 # directory).
2943 if (
2944 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2945 if test "$*" = "X"; then
2946 # -L didn't work.
2947 set X `ls -t "$srcdir/configure" conftest.file`
2949 rm -f conftest.file
2950 if test "$*" != "X $srcdir/configure conftest.file" \
2951 && test "$*" != "X conftest.file $srcdir/configure"; then
2953 # If neither matched, then we have a broken ls. This can happen
2954 # if, for instance, CONFIG_SHELL is bash and it inherits a
2955 # broken ls alias from the environment. This has actually
2956 # happened. Such a system could not be considered "sane".
2957 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2958 alias in your environment" "$LINENO" 5
2961 test "$2" = conftest.file
2963 then
2964 # Ok.
2966 else
2967 as_fn_error "newly created file is older than distributed files!
2968 Check your system clock" "$LINENO" 5
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2971 $as_echo "yes" >&6; }
2972 test "$program_prefix" != NONE &&
2973 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2974 # Use a double $ so make ignores it.
2975 test "$program_suffix" != NONE &&
2976 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2977 # Double any \ or $.
2978 # By default was `s,x,x', remove it if useless.
2979 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2980 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2982 # expand $ac_aux_dir to an absolute path
2983 am_aux_dir=`cd $ac_aux_dir && pwd`
2985 if test x"${MISSING+set}" != xset; then
2986 case $am_aux_dir in
2987 *\ * | *\ *)
2988 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2990 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2991 esac
2993 # Use eval to expand $SHELL
2994 if eval "$MISSING --run true"; then
2995 am_missing_run="$MISSING --run "
2996 else
2997 am_missing_run=
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2999 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3002 if test x"${install_sh}" != xset; then
3003 case $am_aux_dir in
3004 *\ * | *\ *)
3005 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3007 install_sh="\${SHELL} $am_aux_dir/install-sh"
3008 esac
3011 # Installed binaries are usually stripped using `strip' when the user
3012 # run `make install-strip'. However `strip' might not be the right
3013 # tool to use in cross-compilation environments, therefore Automake
3014 # will honor the `STRIP' environment variable to overrule this program.
3015 if test "$cross_compiling" != no; then
3016 if test -n "$ac_tool_prefix"; then
3017 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3018 set dummy ${ac_tool_prefix}strip; ac_word=$2
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3020 $as_echo_n "checking for $ac_word... " >&6; }
3021 if test "${ac_cv_prog_STRIP+set}" = set; then :
3022 $as_echo_n "(cached) " >&6
3023 else
3024 if test -n "$STRIP"; then
3025 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3026 else
3027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3028 for as_dir in $PATH
3030 IFS=$as_save_IFS
3031 test -z "$as_dir" && as_dir=.
3032 for ac_exec_ext in '' $ac_executable_extensions; do
3033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3034 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3036 break 2
3038 done
3039 done
3040 IFS=$as_save_IFS
3044 STRIP=$ac_cv_prog_STRIP
3045 if test -n "$STRIP"; then
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3047 $as_echo "$STRIP" >&6; }
3048 else
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3050 $as_echo "no" >&6; }
3055 if test -z "$ac_cv_prog_STRIP"; then
3056 ac_ct_STRIP=$STRIP
3057 # Extract the first word of "strip", so it can be a program name with args.
3058 set dummy strip; ac_word=$2
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3060 $as_echo_n "checking for $ac_word... " >&6; }
3061 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3062 $as_echo_n "(cached) " >&6
3063 else
3064 if test -n "$ac_ct_STRIP"; then
3065 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3066 else
3067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3068 for as_dir in $PATH
3070 IFS=$as_save_IFS
3071 test -z "$as_dir" && as_dir=.
3072 for ac_exec_ext in '' $ac_executable_extensions; do
3073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3074 ac_cv_prog_ac_ct_STRIP="strip"
3075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3076 break 2
3078 done
3079 done
3080 IFS=$as_save_IFS
3084 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3085 if test -n "$ac_ct_STRIP"; then
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3087 $as_echo "$ac_ct_STRIP" >&6; }
3088 else
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3090 $as_echo "no" >&6; }
3093 if test "x$ac_ct_STRIP" = x; then
3094 STRIP=":"
3095 else
3096 case $cross_compiling:$ac_tool_warned in
3097 yes:)
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3099 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3100 ac_tool_warned=yes ;;
3101 esac
3102 STRIP=$ac_ct_STRIP
3104 else
3105 STRIP="$ac_cv_prog_STRIP"
3109 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3112 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3113 if test -z "$MKDIR_P"; then
3114 if test "${ac_cv_path_mkdir+set}" = set; then :
3115 $as_echo_n "(cached) " >&6
3116 else
3117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3118 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3120 IFS=$as_save_IFS
3121 test -z "$as_dir" && as_dir=.
3122 for ac_prog in mkdir gmkdir; do
3123 for ac_exec_ext in '' $ac_executable_extensions; do
3124 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3125 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3126 'mkdir (GNU coreutils) '* | \
3127 'mkdir (coreutils) '* | \
3128 'mkdir (fileutils) '4.1*)
3129 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3130 break 3;;
3131 esac
3132 done
3133 done
3134 done
3135 IFS=$as_save_IFS
3139 if test "${ac_cv_path_mkdir+set}" = set; then
3140 MKDIR_P="$ac_cv_path_mkdir -p"
3141 else
3142 # As a last resort, use the slow shell script. Don't cache a
3143 # value for MKDIR_P within a source directory, because that will
3144 # break other packages using the cache if that directory is
3145 # removed, or if the value is a relative name.
3146 test -d ./--version && rmdir ./--version
3147 MKDIR_P="$ac_install_sh -d"
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3151 $as_echo "$MKDIR_P" >&6; }
3153 mkdir_p="$MKDIR_P"
3154 case $mkdir_p in
3155 [\\/$]* | ?:[\\/]*) ;;
3156 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3157 esac
3159 for ac_prog in gawk mawk nawk awk
3161 # Extract the first word of "$ac_prog", so it can be a program name with args.
3162 set dummy $ac_prog; ac_word=$2
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3164 $as_echo_n "checking for $ac_word... " >&6; }
3165 if test "${ac_cv_prog_AWK+set}" = set; then :
3166 $as_echo_n "(cached) " >&6
3167 else
3168 if test -n "$AWK"; then
3169 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3170 else
3171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3172 for as_dir in $PATH
3174 IFS=$as_save_IFS
3175 test -z "$as_dir" && as_dir=.
3176 for ac_exec_ext in '' $ac_executable_extensions; do
3177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3178 ac_cv_prog_AWK="$ac_prog"
3179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3180 break 2
3182 done
3183 done
3184 IFS=$as_save_IFS
3188 AWK=$ac_cv_prog_AWK
3189 if test -n "$AWK"; then
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3191 $as_echo "$AWK" >&6; }
3192 else
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3194 $as_echo "no" >&6; }
3198 test -n "$AWK" && break
3199 done
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3202 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3203 set x ${MAKE-make}
3204 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3205 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3206 $as_echo_n "(cached) " >&6
3207 else
3208 cat >conftest.make <<\_ACEOF
3209 SHELL = /bin/sh
3210 all:
3211 @echo '@@@%%%=$(MAKE)=@@@%%%'
3212 _ACEOF
3213 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3214 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3215 *@@@%%%=?*=@@@%%%*)
3216 eval ac_cv_prog_make_${ac_make}_set=yes;;
3218 eval ac_cv_prog_make_${ac_make}_set=no;;
3219 esac
3220 rm -f conftest.make
3222 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3224 $as_echo "yes" >&6; }
3225 SET_MAKE=
3226 else
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3228 $as_echo "no" >&6; }
3229 SET_MAKE="MAKE=${MAKE-make}"
3232 rm -rf .tst 2>/dev/null
3233 mkdir .tst 2>/dev/null
3234 if test -d .tst; then
3235 am__leading_dot=.
3236 else
3237 am__leading_dot=_
3239 rmdir .tst 2>/dev/null
3241 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3242 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3243 # is not polluted with repeated "-I."
3244 am__isrc=' -I$(srcdir)'
3245 # test to see if srcdir already configured
3246 if test -f $srcdir/config.status; then
3247 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3251 # test whether we have cygpath
3252 if test -z "$CYGPATH_W"; then
3253 if (cygpath --version) >/dev/null 2>/dev/null; then
3254 CYGPATH_W='cygpath -w'
3255 else
3256 CYGPATH_W=echo
3261 # Define the identity of the package.
3262 PACKAGE='libgomp'
3263 VERSION='1.0'
3266 cat >>confdefs.h <<_ACEOF
3267 #define PACKAGE "$PACKAGE"
3268 _ACEOF
3271 cat >>confdefs.h <<_ACEOF
3272 #define VERSION "$VERSION"
3273 _ACEOF
3275 # Some tools Automake needs.
3277 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3280 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3283 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3286 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3289 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3291 # We need awk for the "check" target. The system "awk" is bad on
3292 # some platforms.
3293 # Always define AMTAR for backward compatibility. Yes, it's still used
3294 # in the wild :-( We should find a proper way to deprecate it ...
3295 AMTAR='$${TAR-tar}'
3297 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3303 # Default to --enable-multilib
3304 # Check whether --enable-multilib was given.
3305 if test "${enable_multilib+set}" = set; then :
3306 enableval=$enable_multilib; case "$enableval" in
3307 yes) multilib=yes ;;
3308 no) multilib=no ;;
3309 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3310 esac
3311 else
3312 multilib=yes
3316 # We may get other options which we leave undocumented:
3317 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3318 # See config-ml.in if you want the gory details.
3320 if test "$srcdir" = "."; then
3321 if test "$with_target_subdir" != "."; then
3322 multi_basedir="$srcdir/$with_multisrctop../.."
3323 else
3324 multi_basedir="$srcdir/$with_multisrctop.."
3326 else
3327 multi_basedir="$srcdir/.."
3331 # Even if the default multilib is not a cross compilation,
3332 # it may be that some of the other multilibs are.
3333 if test $cross_compiling = no && test $multilib = yes \
3334 && test "x${with_multisubdir}" != x ; then
3335 cross_compiling=maybe
3338 ac_config_commands="$ac_config_commands default-1"
3341 # Calculate toolexeclibdir
3342 # Also toolexecdir, though it's only used in toolexeclibdir
3343 case ${enable_version_specific_runtime_libs} in
3344 yes)
3345 # Need the gcc compiler version to know where to install libraries
3346 # and header files if --enable-version-specific-runtime-libs option
3347 # is selected.
3348 toolexecdir='$(libdir)/gcc/$(target_alias)'
3349 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3352 if test -n "$with_cross_host" &&
3353 test x"$with_cross_host" != x"no"; then
3354 # Install a library built with a cross compiler in tooldir, not libdir.
3355 toolexecdir='$(exec_prefix)/$(target_alias)'
3356 toolexeclibdir='$(toolexecdir)/lib'
3357 else
3358 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3359 toolexeclibdir='$(libdir)'
3361 multi_os_directory=`$CC -print-multi-os-directory`
3362 case $multi_os_directory in
3363 .) ;; # Avoid trailing /.
3364 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3365 esac
3367 esac
3371 # Check the compiler.
3372 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3373 # We must force CC to /not/ be precious variables; otherwise
3374 # the wrong, non-multilib-adjusted value will be used in multilibs.
3375 # As a side effect, we have to subst CFLAGS ourselves.
3379 ac_ext=c
3380 ac_cpp='$CPP $CPPFLAGS'
3381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3384 if test -n "$ac_tool_prefix"; then
3385 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3386 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3388 $as_echo_n "checking for $ac_word... " >&6; }
3389 if test "${ac_cv_prog_CC+set}" = set; then :
3390 $as_echo_n "(cached) " >&6
3391 else
3392 if test -n "$CC"; then
3393 ac_cv_prog_CC="$CC" # Let the user override the test.
3394 else
3395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3396 for as_dir in $PATH
3398 IFS=$as_save_IFS
3399 test -z "$as_dir" && as_dir=.
3400 for ac_exec_ext in '' $ac_executable_extensions; do
3401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3402 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3404 break 2
3406 done
3407 done
3408 IFS=$as_save_IFS
3412 CC=$ac_cv_prog_CC
3413 if test -n "$CC"; then
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3415 $as_echo "$CC" >&6; }
3416 else
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3418 $as_echo "no" >&6; }
3423 if test -z "$ac_cv_prog_CC"; then
3424 ac_ct_CC=$CC
3425 # Extract the first word of "gcc", so it can be a program name with args.
3426 set dummy gcc; ac_word=$2
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3428 $as_echo_n "checking for $ac_word... " >&6; }
3429 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3430 $as_echo_n "(cached) " >&6
3431 else
3432 if test -n "$ac_ct_CC"; then
3433 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3434 else
3435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3436 for as_dir in $PATH
3438 IFS=$as_save_IFS
3439 test -z "$as_dir" && as_dir=.
3440 for ac_exec_ext in '' $ac_executable_extensions; do
3441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3442 ac_cv_prog_ac_ct_CC="gcc"
3443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3444 break 2
3446 done
3447 done
3448 IFS=$as_save_IFS
3452 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3453 if test -n "$ac_ct_CC"; then
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3455 $as_echo "$ac_ct_CC" >&6; }
3456 else
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3458 $as_echo "no" >&6; }
3461 if test "x$ac_ct_CC" = x; then
3462 CC=""
3463 else
3464 case $cross_compiling:$ac_tool_warned in
3465 yes:)
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3467 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3468 ac_tool_warned=yes ;;
3469 esac
3470 CC=$ac_ct_CC
3472 else
3473 CC="$ac_cv_prog_CC"
3476 if test -z "$CC"; then
3477 if test -n "$ac_tool_prefix"; then
3478 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3479 set dummy ${ac_tool_prefix}cc; ac_word=$2
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3481 $as_echo_n "checking for $ac_word... " >&6; }
3482 if test "${ac_cv_prog_CC+set}" = set; then :
3483 $as_echo_n "(cached) " >&6
3484 else
3485 if test -n "$CC"; then
3486 ac_cv_prog_CC="$CC" # Let the user override the test.
3487 else
3488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3489 for as_dir in $PATH
3491 IFS=$as_save_IFS
3492 test -z "$as_dir" && as_dir=.
3493 for ac_exec_ext in '' $ac_executable_extensions; do
3494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3495 ac_cv_prog_CC="${ac_tool_prefix}cc"
3496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3497 break 2
3499 done
3500 done
3501 IFS=$as_save_IFS
3505 CC=$ac_cv_prog_CC
3506 if test -n "$CC"; then
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3508 $as_echo "$CC" >&6; }
3509 else
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3511 $as_echo "no" >&6; }
3517 if test -z "$CC"; then
3518 # Extract the first word of "cc", so it can be a program name with args.
3519 set dummy cc; ac_word=$2
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3521 $as_echo_n "checking for $ac_word... " >&6; }
3522 if test "${ac_cv_prog_CC+set}" = set; then :
3523 $as_echo_n "(cached) " >&6
3524 else
3525 if test -n "$CC"; then
3526 ac_cv_prog_CC="$CC" # Let the user override the test.
3527 else
3528 ac_prog_rejected=no
3529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3530 for as_dir in $PATH
3532 IFS=$as_save_IFS
3533 test -z "$as_dir" && as_dir=.
3534 for ac_exec_ext in '' $ac_executable_extensions; do
3535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3536 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3537 ac_prog_rejected=yes
3538 continue
3540 ac_cv_prog_CC="cc"
3541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3542 break 2
3544 done
3545 done
3546 IFS=$as_save_IFS
3548 if test $ac_prog_rejected = yes; then
3549 # We found a bogon in the path, so make sure we never use it.
3550 set dummy $ac_cv_prog_CC
3551 shift
3552 if test $# != 0; then
3553 # We chose a different compiler from the bogus one.
3554 # However, it has the same basename, so the bogon will be chosen
3555 # first if we set CC to just the basename; use the full file name.
3556 shift
3557 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3562 CC=$ac_cv_prog_CC
3563 if test -n "$CC"; then
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3565 $as_echo "$CC" >&6; }
3566 else
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3568 $as_echo "no" >&6; }
3573 if test -z "$CC"; then
3574 if test -n "$ac_tool_prefix"; then
3575 for ac_prog in cl.exe
3577 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3578 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3580 $as_echo_n "checking for $ac_word... " >&6; }
3581 if test "${ac_cv_prog_CC+set}" = set; then :
3582 $as_echo_n "(cached) " >&6
3583 else
3584 if test -n "$CC"; then
3585 ac_cv_prog_CC="$CC" # Let the user override the test.
3586 else
3587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3588 for as_dir in $PATH
3590 IFS=$as_save_IFS
3591 test -z "$as_dir" && as_dir=.
3592 for ac_exec_ext in '' $ac_executable_extensions; do
3593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3594 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3596 break 2
3598 done
3599 done
3600 IFS=$as_save_IFS
3604 CC=$ac_cv_prog_CC
3605 if test -n "$CC"; then
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3607 $as_echo "$CC" >&6; }
3608 else
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3610 $as_echo "no" >&6; }
3614 test -n "$CC" && break
3615 done
3617 if test -z "$CC"; then
3618 ac_ct_CC=$CC
3619 for ac_prog in cl.exe
3621 # Extract the first word of "$ac_prog", so it can be a program name with args.
3622 set dummy $ac_prog; ac_word=$2
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3624 $as_echo_n "checking for $ac_word... " >&6; }
3625 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3626 $as_echo_n "(cached) " >&6
3627 else
3628 if test -n "$ac_ct_CC"; then
3629 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3630 else
3631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3632 for as_dir in $PATH
3634 IFS=$as_save_IFS
3635 test -z "$as_dir" && as_dir=.
3636 for ac_exec_ext in '' $ac_executable_extensions; do
3637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3638 ac_cv_prog_ac_ct_CC="$ac_prog"
3639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3640 break 2
3642 done
3643 done
3644 IFS=$as_save_IFS
3648 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3649 if test -n "$ac_ct_CC"; then
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3651 $as_echo "$ac_ct_CC" >&6; }
3652 else
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3654 $as_echo "no" >&6; }
3658 test -n "$ac_ct_CC" && break
3659 done
3661 if test "x$ac_ct_CC" = x; then
3662 CC=""
3663 else
3664 case $cross_compiling:$ac_tool_warned in
3665 yes:)
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3667 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3668 ac_tool_warned=yes ;;
3669 esac
3670 CC=$ac_ct_CC
3677 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3678 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3679 as_fn_error "no acceptable C compiler found in \$PATH
3680 See \`config.log' for more details." "$LINENO" 5; }
3682 # Provide some information about the compiler.
3683 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3684 set X $ac_compile
3685 ac_compiler=$2
3686 for ac_option in --version -v -V -qversion; do
3687 { { ac_try="$ac_compiler $ac_option >&5"
3688 case "(($ac_try" in
3689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3690 *) ac_try_echo=$ac_try;;
3691 esac
3692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3693 $as_echo "$ac_try_echo"; } >&5
3694 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3695 ac_status=$?
3696 if test -s conftest.err; then
3697 sed '10a\
3698 ... rest of stderr output deleted ...
3699 10q' conftest.err >conftest.er1
3700 cat conftest.er1 >&5
3701 rm -f conftest.er1 conftest.err
3703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3704 test $ac_status = 0; }
3705 done
3707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708 /* end confdefs.h. */
3711 main ()
3715 return 0;
3717 _ACEOF
3718 ac_clean_files_save=$ac_clean_files
3719 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3720 # Try to create an executable without -o first, disregard a.out.
3721 # It will help us diagnose broken compilers, and finding out an intuition
3722 # of exeext.
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3724 $as_echo_n "checking for C compiler default output file name... " >&6; }
3725 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3727 # The possible output files:
3728 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3730 ac_rmfiles=
3731 for ac_file in $ac_files
3733 case $ac_file in
3734 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3735 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3736 esac
3737 done
3738 rm -f $ac_rmfiles
3740 if { { ac_try="$ac_link_default"
3741 case "(($ac_try" in
3742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3743 *) ac_try_echo=$ac_try;;
3744 esac
3745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3746 $as_echo "$ac_try_echo"; } >&5
3747 (eval "$ac_link_default") 2>&5
3748 ac_status=$?
3749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3750 test $ac_status = 0; }; then :
3751 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3752 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3753 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3754 # so that the user can short-circuit this test for compilers unknown to
3755 # Autoconf.
3756 for ac_file in $ac_files ''
3758 test -f "$ac_file" || continue
3759 case $ac_file in
3760 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3762 [ab].out )
3763 # We found the default executable, but exeext='' is most
3764 # certainly right.
3765 break;;
3766 *.* )
3767 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3768 then :; else
3769 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3771 # We set ac_cv_exeext here because the later test for it is not
3772 # safe: cross compilers may not add the suffix if given an `-o'
3773 # argument, so we may need to know it at that point already.
3774 # Even if this section looks crufty: it has the advantage of
3775 # actually working.
3776 break;;
3778 break;;
3779 esac
3780 done
3781 test "$ac_cv_exeext" = no && ac_cv_exeext=
3783 else
3784 ac_file=''
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3787 $as_echo "$ac_file" >&6; }
3788 if test -z "$ac_file"; then :
3789 $as_echo "$as_me: failed program was:" >&5
3790 sed 's/^/| /' conftest.$ac_ext >&5
3792 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3793 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3794 { as_fn_set_status 77
3795 as_fn_error "C compiler cannot create executables
3796 See \`config.log' for more details." "$LINENO" 5; }; }
3798 ac_exeext=$ac_cv_exeext
3800 # Check that the compiler produces executables we can run. If not, either
3801 # the compiler is broken, or we cross compile.
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3803 $as_echo_n "checking whether the C compiler works... " >&6; }
3804 # If not cross compiling, check that we can run a simple program.
3805 if test "$cross_compiling" != yes; then
3806 if { ac_try='./$ac_file'
3807 { { case "(($ac_try" in
3808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3809 *) ac_try_echo=$ac_try;;
3810 esac
3811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3812 $as_echo "$ac_try_echo"; } >&5
3813 (eval "$ac_try") 2>&5
3814 ac_status=$?
3815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3816 test $ac_status = 0; }; }; then
3817 cross_compiling=no
3818 else
3819 if test "$cross_compiling" = maybe; then
3820 cross_compiling=yes
3821 else
3822 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3823 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3824 as_fn_error "cannot run C compiled programs.
3825 If you meant to cross compile, use \`--host'.
3826 See \`config.log' for more details." "$LINENO" 5; }
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3831 $as_echo "yes" >&6; }
3833 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3834 ac_clean_files=$ac_clean_files_save
3835 # Check that the compiler produces executables we can run. If not, either
3836 # the compiler is broken, or we cross compile.
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3838 $as_echo_n "checking whether we are cross compiling... " >&6; }
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3840 $as_echo "$cross_compiling" >&6; }
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3843 $as_echo_n "checking for suffix of executables... " >&6; }
3844 if { { ac_try="$ac_link"
3845 case "(($ac_try" in
3846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3847 *) ac_try_echo=$ac_try;;
3848 esac
3849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3850 $as_echo "$ac_try_echo"; } >&5
3851 (eval "$ac_link") 2>&5
3852 ac_status=$?
3853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3854 test $ac_status = 0; }; then :
3855 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3856 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3857 # work properly (i.e., refer to `conftest.exe'), while it won't with
3858 # `rm'.
3859 for ac_file in conftest.exe conftest conftest.*; do
3860 test -f "$ac_file" || continue
3861 case $ac_file in
3862 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3863 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3864 break;;
3865 * ) break;;
3866 esac
3867 done
3868 else
3869 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3870 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3871 as_fn_error "cannot compute suffix of executables: cannot compile and link
3872 See \`config.log' for more details." "$LINENO" 5; }
3874 rm -f conftest$ac_cv_exeext
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3876 $as_echo "$ac_cv_exeext" >&6; }
3878 rm -f conftest.$ac_ext
3879 EXEEXT=$ac_cv_exeext
3880 ac_exeext=$EXEEXT
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3882 $as_echo_n "checking for suffix of object files... " >&6; }
3883 if test "${ac_cv_objext+set}" = set; then :
3884 $as_echo_n "(cached) " >&6
3885 else
3886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3887 /* end confdefs.h. */
3890 main ()
3894 return 0;
3896 _ACEOF
3897 rm -f conftest.o conftest.obj
3898 if { { ac_try="$ac_compile"
3899 case "(($ac_try" in
3900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3901 *) ac_try_echo=$ac_try;;
3902 esac
3903 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3904 $as_echo "$ac_try_echo"; } >&5
3905 (eval "$ac_compile") 2>&5
3906 ac_status=$?
3907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3908 test $ac_status = 0; }; then :
3909 for ac_file in conftest.o conftest.obj conftest.*; do
3910 test -f "$ac_file" || continue;
3911 case $ac_file in
3912 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3913 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3914 break;;
3915 esac
3916 done
3917 else
3918 $as_echo "$as_me: failed program was:" >&5
3919 sed 's/^/| /' conftest.$ac_ext >&5
3921 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3922 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3923 as_fn_error "cannot compute suffix of object files: cannot compile
3924 See \`config.log' for more details." "$LINENO" 5; }
3926 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3929 $as_echo "$ac_cv_objext" >&6; }
3930 OBJEXT=$ac_cv_objext
3931 ac_objext=$OBJEXT
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3933 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3934 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3935 $as_echo_n "(cached) " >&6
3936 else
3937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3938 /* end confdefs.h. */
3941 main ()
3943 #ifndef __GNUC__
3944 choke me
3945 #endif
3948 return 0;
3950 _ACEOF
3951 if ac_fn_c_try_compile "$LINENO"; then :
3952 ac_compiler_gnu=yes
3953 else
3954 ac_compiler_gnu=no
3956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3957 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3961 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3962 if test $ac_compiler_gnu = yes; then
3963 GCC=yes
3964 else
3965 GCC=
3967 ac_test_CFLAGS=${CFLAGS+set}
3968 ac_save_CFLAGS=$CFLAGS
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3970 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3971 if test "${ac_cv_prog_cc_g+set}" = set; then :
3972 $as_echo_n "(cached) " >&6
3973 else
3974 ac_save_c_werror_flag=$ac_c_werror_flag
3975 ac_c_werror_flag=yes
3976 ac_cv_prog_cc_g=no
3977 CFLAGS="-g"
3978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3979 /* end confdefs.h. */
3982 main ()
3986 return 0;
3988 _ACEOF
3989 if ac_fn_c_try_compile "$LINENO"; then :
3990 ac_cv_prog_cc_g=yes
3991 else
3992 CFLAGS=""
3993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3994 /* end confdefs.h. */
3997 main ()
4001 return 0;
4003 _ACEOF
4004 if ac_fn_c_try_compile "$LINENO"; then :
4006 else
4007 ac_c_werror_flag=$ac_save_c_werror_flag
4008 CFLAGS="-g"
4009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4010 /* end confdefs.h. */
4013 main ()
4017 return 0;
4019 _ACEOF
4020 if ac_fn_c_try_compile "$LINENO"; then :
4021 ac_cv_prog_cc_g=yes
4023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4028 ac_c_werror_flag=$ac_save_c_werror_flag
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4031 $as_echo "$ac_cv_prog_cc_g" >&6; }
4032 if test "$ac_test_CFLAGS" = set; then
4033 CFLAGS=$ac_save_CFLAGS
4034 elif test $ac_cv_prog_cc_g = yes; then
4035 if test "$GCC" = yes; then
4036 CFLAGS="-g -O2"
4037 else
4038 CFLAGS="-g"
4040 else
4041 if test "$GCC" = yes; then
4042 CFLAGS="-O2"
4043 else
4044 CFLAGS=
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4048 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4049 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4050 $as_echo_n "(cached) " >&6
4051 else
4052 ac_cv_prog_cc_c89=no
4053 ac_save_CC=$CC
4054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4055 /* end confdefs.h. */
4056 #include <stdarg.h>
4057 #include <stdio.h>
4058 #include <sys/types.h>
4059 #include <sys/stat.h>
4060 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4061 struct buf { int x; };
4062 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4063 static char *e (p, i)
4064 char **p;
4065 int i;
4067 return p[i];
4069 static char *f (char * (*g) (char **, int), char **p, ...)
4071 char *s;
4072 va_list v;
4073 va_start (v,p);
4074 s = g (p, va_arg (v,int));
4075 va_end (v);
4076 return s;
4079 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4080 function prototypes and stuff, but not '\xHH' hex character constants.
4081 These don't provoke an error unfortunately, instead are silently treated
4082 as 'x'. The following induces an error, until -std is added to get
4083 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4084 array size at least. It's necessary to write '\x00'==0 to get something
4085 that's true only with -std. */
4086 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4088 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4089 inside strings and character constants. */
4090 #define FOO(x) 'x'
4091 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4093 int test (int i, double x);
4094 struct s1 {int (*f) (int a);};
4095 struct s2 {int (*f) (double a);};
4096 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4097 int argc;
4098 char **argv;
4100 main ()
4102 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4104 return 0;
4106 _ACEOF
4107 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4108 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4110 CC="$ac_save_CC $ac_arg"
4111 if ac_fn_c_try_compile "$LINENO"; then :
4112 ac_cv_prog_cc_c89=$ac_arg
4114 rm -f core conftest.err conftest.$ac_objext
4115 test "x$ac_cv_prog_cc_c89" != "xno" && break
4116 done
4117 rm -f conftest.$ac_ext
4118 CC=$ac_save_CC
4121 # AC_CACHE_VAL
4122 case "x$ac_cv_prog_cc_c89" in
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4125 $as_echo "none needed" >&6; } ;;
4126 xno)
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4128 $as_echo "unsupported" >&6; } ;;
4130 CC="$CC $ac_cv_prog_cc_c89"
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4132 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4133 esac
4134 if test "x$ac_cv_prog_cc_c89" != xno; then :
4138 ac_ext=c
4139 ac_cpp='$CPP $CPPFLAGS'
4140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4143 DEPDIR="${am__leading_dot}deps"
4145 ac_config_commands="$ac_config_commands depfiles"
4148 am_make=${MAKE-make}
4149 cat > confinc << 'END'
4150 am__doit:
4151 @echo this is the am__doit target
4152 .PHONY: am__doit
4154 # If we don't find an include directive, just comment out the code.
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4156 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4157 am__include="#"
4158 am__quote=
4159 _am_result=none
4160 # First try GNU make style include.
4161 echo "include confinc" > confmf
4162 # Ignore all kinds of additional output from `make'.
4163 case `$am_make -s -f confmf 2> /dev/null` in #(
4164 *the\ am__doit\ target*)
4165 am__include=include
4166 am__quote=
4167 _am_result=GNU
4169 esac
4170 # Now try BSD make style include.
4171 if test "$am__include" = "#"; then
4172 echo '.include "confinc"' > confmf
4173 case `$am_make -s -f confmf 2> /dev/null` in #(
4174 *the\ am__doit\ target*)
4175 am__include=.include
4176 am__quote="\""
4177 _am_result=BSD
4179 esac
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4184 $as_echo "$_am_result" >&6; }
4185 rm -f confinc confmf
4187 # Check whether --enable-dependency-tracking was given.
4188 if test "${enable_dependency_tracking+set}" = set; then :
4189 enableval=$enable_dependency_tracking;
4192 if test "x$enable_dependency_tracking" != xno; then
4193 am_depcomp="$ac_aux_dir/depcomp"
4194 AMDEPBACKSLASH='\'
4195 am__nodep='_no'
4197 if test "x$enable_dependency_tracking" != xno; then
4198 AMDEP_TRUE=
4199 AMDEP_FALSE='#'
4200 else
4201 AMDEP_TRUE='#'
4202 AMDEP_FALSE=
4207 depcc="$CC" am_compiler_list=
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4210 $as_echo_n "checking dependency style of $depcc... " >&6; }
4211 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4212 $as_echo_n "(cached) " >&6
4213 else
4214 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4215 # We make a subdir and do the tests there. Otherwise we can end up
4216 # making bogus files that we don't know about and never remove. For
4217 # instance it was reported that on HP-UX the gcc test will end up
4218 # making a dummy file named `D' -- because `-MD' means `put the output
4219 # in D'.
4220 rm -rf conftest.dir
4221 mkdir conftest.dir
4222 # Copy depcomp to subdir because otherwise we won't find it if we're
4223 # using a relative directory.
4224 cp "$am_depcomp" conftest.dir
4225 cd conftest.dir
4226 # We will build objects and dependencies in a subdirectory because
4227 # it helps to detect inapplicable dependency modes. For instance
4228 # both Tru64's cc and ICC support -MD to output dependencies as a
4229 # side effect of compilation, but ICC will put the dependencies in
4230 # the current directory while Tru64 will put them in the object
4231 # directory.
4232 mkdir sub
4234 am_cv_CC_dependencies_compiler_type=none
4235 if test "$am_compiler_list" = ""; then
4236 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4238 am__universal=false
4239 case " $depcc " in #(
4240 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4241 esac
4243 for depmode in $am_compiler_list; do
4244 # Setup a source with many dependencies, because some compilers
4245 # like to wrap large dependency lists on column 80 (with \), and
4246 # we should not choose a depcomp mode which is confused by this.
4248 # We need to recreate these files for each test, as the compiler may
4249 # overwrite some of them when testing with obscure command lines.
4250 # This happens at least with the AIX C compiler.
4251 : > sub/conftest.c
4252 for i in 1 2 3 4 5 6; do
4253 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4254 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4255 # Solaris 8's {/usr,}/bin/sh.
4256 touch sub/conftst$i.h
4257 done
4258 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4260 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4261 # mode. It turns out that the SunPro C++ compiler does not properly
4262 # handle `-M -o', and we need to detect this. Also, some Intel
4263 # versions had trouble with output in subdirs
4264 am__obj=sub/conftest.${OBJEXT-o}
4265 am__minus_obj="-o $am__obj"
4266 case $depmode in
4267 gcc)
4268 # This depmode causes a compiler race in universal mode.
4269 test "$am__universal" = false || continue
4271 nosideeffect)
4272 # after this tag, mechanisms are not by side-effect, so they'll
4273 # only be used when explicitly requested
4274 if test "x$enable_dependency_tracking" = xyes; then
4275 continue
4276 else
4277 break
4280 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4281 # This compiler won't grok `-c -o', but also, the minuso test has
4282 # not run yet. These depmodes are late enough in the game, and
4283 # so weak that their functioning should not be impacted.
4284 am__obj=conftest.${OBJEXT-o}
4285 am__minus_obj=
4287 none) break ;;
4288 esac
4289 if depmode=$depmode \
4290 source=sub/conftest.c object=$am__obj \
4291 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4292 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4293 >/dev/null 2>conftest.err &&
4294 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4295 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4296 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4297 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4298 # icc doesn't choke on unknown options, it will just issue warnings
4299 # or remarks (even with -Werror). So we grep stderr for any message
4300 # that says an option was ignored or not supported.
4301 # When given -MP, icc 7.0 and 7.1 complain thusly:
4302 # icc: Command line warning: ignoring option '-M'; no argument required
4303 # The diagnosis changed in icc 8.0:
4304 # icc: Command line remark: option '-MP' not supported
4305 if (grep 'ignoring option' conftest.err ||
4306 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4307 am_cv_CC_dependencies_compiler_type=$depmode
4308 break
4311 done
4313 cd ..
4314 rm -rf conftest.dir
4315 else
4316 am_cv_CC_dependencies_compiler_type=none
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4321 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4322 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4325 test "x$enable_dependency_tracking" != xno \
4326 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4327 am__fastdepCC_TRUE=
4328 am__fastdepCC_FALSE='#'
4329 else
4330 am__fastdepCC_TRUE='#'
4331 am__fastdepCC_FALSE=
4339 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
4340 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
4341 # in both places for now and restore CFLAGS at the end of config.
4342 save_CFLAGS="$CFLAGS"
4344 # Add -Wall -Werror if we are using GCC.
4345 if test "x$GCC" = "xyes"; then
4346 XCFLAGS="$XCFLAGS -Wall -Werror"
4349 # Find other programs we need.
4350 if test -n "$ac_tool_prefix"; then
4351 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4352 set dummy ${ac_tool_prefix}ar; ac_word=$2
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4354 $as_echo_n "checking for $ac_word... " >&6; }
4355 if test "${ac_cv_prog_AR+set}" = set; then :
4356 $as_echo_n "(cached) " >&6
4357 else
4358 if test -n "$AR"; then
4359 ac_cv_prog_AR="$AR" # Let the user override the test.
4360 else
4361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4362 for as_dir in $PATH
4364 IFS=$as_save_IFS
4365 test -z "$as_dir" && as_dir=.
4366 for ac_exec_ext in '' $ac_executable_extensions; do
4367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4368 ac_cv_prog_AR="${ac_tool_prefix}ar"
4369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4370 break 2
4372 done
4373 done
4374 IFS=$as_save_IFS
4378 AR=$ac_cv_prog_AR
4379 if test -n "$AR"; then
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4381 $as_echo "$AR" >&6; }
4382 else
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4384 $as_echo "no" >&6; }
4389 if test -z "$ac_cv_prog_AR"; then
4390 ac_ct_AR=$AR
4391 # Extract the first word of "ar", so it can be a program name with args.
4392 set dummy ar; ac_word=$2
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4394 $as_echo_n "checking for $ac_word... " >&6; }
4395 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4396 $as_echo_n "(cached) " >&6
4397 else
4398 if test -n "$ac_ct_AR"; then
4399 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4400 else
4401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4402 for as_dir in $PATH
4404 IFS=$as_save_IFS
4405 test -z "$as_dir" && as_dir=.
4406 for ac_exec_ext in '' $ac_executable_extensions; do
4407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4408 ac_cv_prog_ac_ct_AR="ar"
4409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4410 break 2
4412 done
4413 done
4414 IFS=$as_save_IFS
4418 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4419 if test -n "$ac_ct_AR"; then
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4421 $as_echo "$ac_ct_AR" >&6; }
4422 else
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4424 $as_echo "no" >&6; }
4427 if test "x$ac_ct_AR" = x; then
4428 AR=""
4429 else
4430 case $cross_compiling:$ac_tool_warned in
4431 yes:)
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4433 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4434 ac_tool_warned=yes ;;
4435 esac
4436 AR=$ac_ct_AR
4438 else
4439 AR="$ac_cv_prog_AR"
4442 if test -n "$ac_tool_prefix"; then
4443 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4444 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4446 $as_echo_n "checking for $ac_word... " >&6; }
4447 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4448 $as_echo_n "(cached) " >&6
4449 else
4450 if test -n "$RANLIB"; then
4451 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4452 else
4453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4454 for as_dir in $PATH
4456 IFS=$as_save_IFS
4457 test -z "$as_dir" && as_dir=.
4458 for ac_exec_ext in '' $ac_executable_extensions; do
4459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4460 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4462 break 2
4464 done
4465 done
4466 IFS=$as_save_IFS
4470 RANLIB=$ac_cv_prog_RANLIB
4471 if test -n "$RANLIB"; then
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4473 $as_echo "$RANLIB" >&6; }
4474 else
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4476 $as_echo "no" >&6; }
4481 if test -z "$ac_cv_prog_RANLIB"; then
4482 ac_ct_RANLIB=$RANLIB
4483 # Extract the first word of "ranlib", so it can be a program name with args.
4484 set dummy ranlib; ac_word=$2
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4486 $as_echo_n "checking for $ac_word... " >&6; }
4487 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4488 $as_echo_n "(cached) " >&6
4489 else
4490 if test -n "$ac_ct_RANLIB"; then
4491 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4492 else
4493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4494 for as_dir in $PATH
4496 IFS=$as_save_IFS
4497 test -z "$as_dir" && as_dir=.
4498 for ac_exec_ext in '' $ac_executable_extensions; do
4499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4500 ac_cv_prog_ac_ct_RANLIB="ranlib"
4501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4502 break 2
4504 done
4505 done
4506 IFS=$as_save_IFS
4510 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4511 if test -n "$ac_ct_RANLIB"; then
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4513 $as_echo "$ac_ct_RANLIB" >&6; }
4514 else
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4516 $as_echo "no" >&6; }
4519 if test "x$ac_ct_RANLIB" = x; then
4520 RANLIB="ranlib-not-found-in-path-error"
4521 else
4522 case $cross_compiling:$ac_tool_warned in
4523 yes:)
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4525 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4526 ac_tool_warned=yes ;;
4527 esac
4528 RANLIB=$ac_ct_RANLIB
4530 else
4531 RANLIB="$ac_cv_prog_RANLIB"
4534 # Extract the first word of "perl", so it can be a program name with args.
4535 set dummy perl; ac_word=$2
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4537 $as_echo_n "checking for $ac_word... " >&6; }
4538 if test "${ac_cv_path_PERL+set}" = set; then :
4539 $as_echo_n "(cached) " >&6
4540 else
4541 case $PERL in
4542 [\\/]* | ?:[\\/]*)
4543 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4547 for as_dir in $PATH
4549 IFS=$as_save_IFS
4550 test -z "$as_dir" && as_dir=.
4551 for ac_exec_ext in '' $ac_executable_extensions; do
4552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4553 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4555 break 2
4557 done
4558 done
4559 IFS=$as_save_IFS
4561 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
4563 esac
4565 PERL=$ac_cv_path_PERL
4566 if test -n "$PERL"; then
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4568 $as_echo "$PERL" >&6; }
4569 else
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4571 $as_echo "no" >&6; }
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4576 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4577 set x ${MAKE-make}
4578 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4579 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4580 $as_echo_n "(cached) " >&6
4581 else
4582 cat >conftest.make <<\_ACEOF
4583 SHELL = /bin/sh
4584 all:
4585 @echo '@@@%%%=$(MAKE)=@@@%%%'
4586 _ACEOF
4587 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4588 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4589 *@@@%%%=?*=@@@%%%*)
4590 eval ac_cv_prog_make_${ac_make}_set=yes;;
4592 eval ac_cv_prog_make_${ac_make}_set=no;;
4593 esac
4594 rm -f conftest.make
4596 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4598 $as_echo "yes" >&6; }
4599 SET_MAKE=
4600 else
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4602 $as_echo "no" >&6; }
4603 SET_MAKE="MAKE=${MAKE-make}"
4608 # See if makeinfo has been installed and is modern enough
4609 # that we can use it.
4611 # Extract the first word of "makeinfo", so it can be a program name with args.
4612 set dummy makeinfo; ac_word=$2
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4614 $as_echo_n "checking for $ac_word... " >&6; }
4615 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
4616 $as_echo_n "(cached) " >&6
4617 else
4618 if test -n "$MAKEINFO"; then
4619 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4620 else
4621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4622 for as_dir in $PATH
4624 IFS=$as_save_IFS
4625 test -z "$as_dir" && as_dir=.
4626 for ac_exec_ext in '' $ac_executable_extensions; do
4627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4628 ac_cv_prog_MAKEINFO="makeinfo"
4629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4630 break 2
4632 done
4633 done
4634 IFS=$as_save_IFS
4638 MAKEINFO=$ac_cv_prog_MAKEINFO
4639 if test -n "$MAKEINFO"; then
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4641 $as_echo "$MAKEINFO" >&6; }
4642 else
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4644 $as_echo "no" >&6; }
4648 if test -n "$MAKEINFO"; then
4649 # Found it, now check the version.
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
4651 $as_echo_n "checking for modern makeinfo... " >&6; }
4652 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
4653 $as_echo_n "(cached) " >&6
4654 else
4655 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
4656 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4658 case $ac_prog_version in
4659 '') gcc_cv_prog_makeinfo_modern=no;;
4660 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
4661 *) gcc_cv_prog_makeinfo_modern=no;;
4662 esac
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
4666 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
4667 else
4668 gcc_cv_prog_makeinfo_modern=no
4670 if test $gcc_cv_prog_makeinfo_modern = no; then
4671 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
4674 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
4675 BUILD_INFO_TRUE=
4676 BUILD_INFO_FALSE='#'
4677 else
4678 BUILD_INFO_TRUE='#'
4679 BUILD_INFO_FALSE=
4684 # Configure libtool
4685 case `pwd` in
4686 *\ * | *\ *)
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4688 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4689 esac
4693 macro_version='2.2.7a'
4694 macro_revision='1.3134'
4708 ltmain="$ac_aux_dir/ltmain.sh"
4710 # Backslashify metacharacters that are still active within
4711 # double-quoted strings.
4712 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4714 # Same as above, but do not quote variable references.
4715 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4717 # Sed substitution to delay expansion of an escaped shell variable in a
4718 # double_quote_subst'ed string.
4719 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4721 # Sed substitution to delay expansion of an escaped single quote.
4722 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4724 # Sed substitution to avoid accidental globbing in evaled expressions
4725 no_glob_subst='s/\*/\\\*/g'
4727 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4728 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4729 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4732 $as_echo_n "checking how to print strings... " >&6; }
4733 # Test print first, because it will be a builtin if present.
4734 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4735 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4736 ECHO='print -r --'
4737 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4738 ECHO='printf %s\n'
4739 else
4740 # Use this function as a fallback that always works.
4741 func_fallback_echo ()
4743 eval 'cat <<_LTECHO_EOF
4745 _LTECHO_EOF'
4747 ECHO='func_fallback_echo'
4750 # func_echo_all arg...
4751 # Invoke $ECHO with all args, space-separated.
4752 func_echo_all ()
4754 $ECHO ""
4757 case "$ECHO" in
4758 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4759 $as_echo "printf" >&6; } ;;
4760 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4761 $as_echo "print -r" >&6; } ;;
4762 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4763 $as_echo "cat" >&6; } ;;
4764 esac
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4780 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4781 if test "${ac_cv_path_SED+set}" = set; then :
4782 $as_echo_n "(cached) " >&6
4783 else
4784 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4785 for ac_i in 1 2 3 4 5 6 7; do
4786 ac_script="$ac_script$as_nl$ac_script"
4787 done
4788 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4789 { ac_script=; unset ac_script;}
4790 if test -z "$SED"; then
4791 ac_path_SED_found=false
4792 # Loop through the user's path and test for each of PROGNAME-LIST
4793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4794 for as_dir in $PATH
4796 IFS=$as_save_IFS
4797 test -z "$as_dir" && as_dir=.
4798 for ac_prog in sed gsed; do
4799 for ac_exec_ext in '' $ac_executable_extensions; do
4800 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4801 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4802 # Check for GNU ac_path_SED and select it if it is found.
4803 # Check for GNU $ac_path_SED
4804 case `"$ac_path_SED" --version 2>&1` in
4805 *GNU*)
4806 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4808 ac_count=0
4809 $as_echo_n 0123456789 >"conftest.in"
4810 while :
4812 cat "conftest.in" "conftest.in" >"conftest.tmp"
4813 mv "conftest.tmp" "conftest.in"
4814 cp "conftest.in" "conftest.nl"
4815 $as_echo '' >> "conftest.nl"
4816 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4817 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4818 as_fn_arith $ac_count + 1 && ac_count=$as_val
4819 if test $ac_count -gt ${ac_path_SED_max-0}; then
4820 # Best one so far, save it but keep looking for a better one
4821 ac_cv_path_SED="$ac_path_SED"
4822 ac_path_SED_max=$ac_count
4824 # 10*(2^10) chars as input seems more than enough
4825 test $ac_count -gt 10 && break
4826 done
4827 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4828 esac
4830 $ac_path_SED_found && break 3
4831 done
4832 done
4833 done
4834 IFS=$as_save_IFS
4835 if test -z "$ac_cv_path_SED"; then
4836 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4838 else
4839 ac_cv_path_SED=$SED
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4844 $as_echo "$ac_cv_path_SED" >&6; }
4845 SED="$ac_cv_path_SED"
4846 rm -f conftest.sed
4848 test -z "$SED" && SED=sed
4849 Xsed="$SED -e 1s/^X//"
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4862 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4863 if test "${ac_cv_path_GREP+set}" = set; then :
4864 $as_echo_n "(cached) " >&6
4865 else
4866 if test -z "$GREP"; then
4867 ac_path_GREP_found=false
4868 # Loop through the user's path and test for each of PROGNAME-LIST
4869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4872 IFS=$as_save_IFS
4873 test -z "$as_dir" && as_dir=.
4874 for ac_prog in grep ggrep; do
4875 for ac_exec_ext in '' $ac_executable_extensions; do
4876 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4877 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4878 # Check for GNU ac_path_GREP and select it if it is found.
4879 # Check for GNU $ac_path_GREP
4880 case `"$ac_path_GREP" --version 2>&1` in
4881 *GNU*)
4882 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4884 ac_count=0
4885 $as_echo_n 0123456789 >"conftest.in"
4886 while :
4888 cat "conftest.in" "conftest.in" >"conftest.tmp"
4889 mv "conftest.tmp" "conftest.in"
4890 cp "conftest.in" "conftest.nl"
4891 $as_echo 'GREP' >> "conftest.nl"
4892 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4893 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4894 as_fn_arith $ac_count + 1 && ac_count=$as_val
4895 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4896 # Best one so far, save it but keep looking for a better one
4897 ac_cv_path_GREP="$ac_path_GREP"
4898 ac_path_GREP_max=$ac_count
4900 # 10*(2^10) chars as input seems more than enough
4901 test $ac_count -gt 10 && break
4902 done
4903 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4904 esac
4906 $ac_path_GREP_found && break 3
4907 done
4908 done
4909 done
4910 IFS=$as_save_IFS
4911 if test -z "$ac_cv_path_GREP"; then
4912 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4914 else
4915 ac_cv_path_GREP=$GREP
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4920 $as_echo "$ac_cv_path_GREP" >&6; }
4921 GREP="$ac_cv_path_GREP"
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4925 $as_echo_n "checking for egrep... " >&6; }
4926 if test "${ac_cv_path_EGREP+set}" = set; then :
4927 $as_echo_n "(cached) " >&6
4928 else
4929 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4930 then ac_cv_path_EGREP="$GREP -E"
4931 else
4932 if test -z "$EGREP"; then
4933 ac_path_EGREP_found=false
4934 # Loop through the user's path and test for each of PROGNAME-LIST
4935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4936 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4938 IFS=$as_save_IFS
4939 test -z "$as_dir" && as_dir=.
4940 for ac_prog in egrep; do
4941 for ac_exec_ext in '' $ac_executable_extensions; do
4942 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4943 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4944 # Check for GNU ac_path_EGREP and select it if it is found.
4945 # Check for GNU $ac_path_EGREP
4946 case `"$ac_path_EGREP" --version 2>&1` in
4947 *GNU*)
4948 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4950 ac_count=0
4951 $as_echo_n 0123456789 >"conftest.in"
4952 while :
4954 cat "conftest.in" "conftest.in" >"conftest.tmp"
4955 mv "conftest.tmp" "conftest.in"
4956 cp "conftest.in" "conftest.nl"
4957 $as_echo 'EGREP' >> "conftest.nl"
4958 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4959 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4960 as_fn_arith $ac_count + 1 && ac_count=$as_val
4961 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4962 # Best one so far, save it but keep looking for a better one
4963 ac_cv_path_EGREP="$ac_path_EGREP"
4964 ac_path_EGREP_max=$ac_count
4966 # 10*(2^10) chars as input seems more than enough
4967 test $ac_count -gt 10 && break
4968 done
4969 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4970 esac
4972 $ac_path_EGREP_found && break 3
4973 done
4974 done
4975 done
4976 IFS=$as_save_IFS
4977 if test -z "$ac_cv_path_EGREP"; then
4978 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4980 else
4981 ac_cv_path_EGREP=$EGREP
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4987 $as_echo "$ac_cv_path_EGREP" >&6; }
4988 EGREP="$ac_cv_path_EGREP"
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4992 $as_echo_n "checking for fgrep... " >&6; }
4993 if test "${ac_cv_path_FGREP+set}" = set; then :
4994 $as_echo_n "(cached) " >&6
4995 else
4996 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4997 then ac_cv_path_FGREP="$GREP -F"
4998 else
4999 if test -z "$FGREP"; then
5000 ac_path_FGREP_found=false
5001 # Loop through the user's path and test for each of PROGNAME-LIST
5002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5003 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5005 IFS=$as_save_IFS
5006 test -z "$as_dir" && as_dir=.
5007 for ac_prog in fgrep; do
5008 for ac_exec_ext in '' $ac_executable_extensions; do
5009 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5010 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5011 # Check for GNU ac_path_FGREP and select it if it is found.
5012 # Check for GNU $ac_path_FGREP
5013 case `"$ac_path_FGREP" --version 2>&1` in
5014 *GNU*)
5015 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5017 ac_count=0
5018 $as_echo_n 0123456789 >"conftest.in"
5019 while :
5021 cat "conftest.in" "conftest.in" >"conftest.tmp"
5022 mv "conftest.tmp" "conftest.in"
5023 cp "conftest.in" "conftest.nl"
5024 $as_echo 'FGREP' >> "conftest.nl"
5025 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5026 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5027 as_fn_arith $ac_count + 1 && ac_count=$as_val
5028 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5029 # Best one so far, save it but keep looking for a better one
5030 ac_cv_path_FGREP="$ac_path_FGREP"
5031 ac_path_FGREP_max=$ac_count
5033 # 10*(2^10) chars as input seems more than enough
5034 test $ac_count -gt 10 && break
5035 done
5036 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5037 esac
5039 $ac_path_FGREP_found && break 3
5040 done
5041 done
5042 done
5043 IFS=$as_save_IFS
5044 if test -z "$ac_cv_path_FGREP"; then
5045 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5047 else
5048 ac_cv_path_FGREP=$FGREP
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5054 $as_echo "$ac_cv_path_FGREP" >&6; }
5055 FGREP="$ac_cv_path_FGREP"
5058 test -z "$GREP" && GREP=grep
5078 # Check whether --with-gnu-ld was given.
5079 if test "${with_gnu_ld+set}" = set; then :
5080 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5081 else
5082 with_gnu_ld=no
5085 ac_prog=ld
5086 if test "$GCC" = yes; then
5087 # Check if gcc -print-prog-name=ld gives a path.
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5089 $as_echo_n "checking for ld used by $CC... " >&6; }
5090 case $host in
5091 *-*-mingw*)
5092 # gcc leaves a trailing carriage return which upsets mingw
5093 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5095 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5096 esac
5097 case $ac_prog in
5098 # Accept absolute paths.
5099 [\\/]* | ?:[\\/]*)
5100 re_direlt='/[^/][^/]*/\.\./'
5101 # Canonicalize the pathname of ld
5102 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5103 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5104 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5105 done
5106 test -z "$LD" && LD="$ac_prog"
5109 # If it fails, then pretend we aren't using GCC.
5110 ac_prog=ld
5113 # If it is relative, then search for the first ld in PATH.
5114 with_gnu_ld=unknown
5116 esac
5117 elif test "$with_gnu_ld" = yes; then
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5119 $as_echo_n "checking for GNU ld... " >&6; }
5120 else
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5122 $as_echo_n "checking for non-GNU ld... " >&6; }
5124 if test "${lt_cv_path_LD+set}" = set; then :
5125 $as_echo_n "(cached) " >&6
5126 else
5127 if test -z "$LD"; then
5128 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5129 for ac_dir in $PATH; do
5130 IFS="$lt_save_ifs"
5131 test -z "$ac_dir" && ac_dir=.
5132 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5133 lt_cv_path_LD="$ac_dir/$ac_prog"
5134 # Check to see if the program is GNU ld. I'd rather use --version,
5135 # but apparently some variants of GNU ld only accept -v.
5136 # Break only if it was the GNU/non-GNU ld that we prefer.
5137 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5138 *GNU* | *'with BFD'*)
5139 test "$with_gnu_ld" != no && break
5142 test "$with_gnu_ld" != yes && break
5144 esac
5146 done
5147 IFS="$lt_save_ifs"
5148 else
5149 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5153 LD="$lt_cv_path_LD"
5154 if test -n "$LD"; then
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5156 $as_echo "$LD" >&6; }
5157 else
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5159 $as_echo "no" >&6; }
5161 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5163 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5164 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5165 $as_echo_n "(cached) " >&6
5166 else
5167 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5168 case `$LD -v 2>&1 </dev/null` in
5169 *GNU* | *'with BFD'*)
5170 lt_cv_prog_gnu_ld=yes
5173 lt_cv_prog_gnu_ld=no
5175 esac
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5178 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5179 with_gnu_ld=$lt_cv_prog_gnu_ld
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5190 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5191 if test "${lt_cv_path_NM+set}" = set; then :
5192 $as_echo_n "(cached) " >&6
5193 else
5194 if test -n "$NM"; then
5195 # Let the user override the test.
5196 lt_cv_path_NM="$NM"
5197 else
5198 lt_nm_to_check="${ac_tool_prefix}nm"
5199 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5200 lt_nm_to_check="$lt_nm_to_check nm"
5202 for lt_tmp_nm in $lt_nm_to_check; do
5203 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5204 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5205 IFS="$lt_save_ifs"
5206 test -z "$ac_dir" && ac_dir=.
5207 tmp_nm="$ac_dir/$lt_tmp_nm"
5208 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5209 # Check to see if the nm accepts a BSD-compat flag.
5210 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5211 # nm: unknown option "B" ignored
5212 # Tru64's nm complains that /dev/null is an invalid object file
5213 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5214 */dev/null* | *'Invalid file or object type'*)
5215 lt_cv_path_NM="$tmp_nm -B"
5216 break
5219 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5220 */dev/null*)
5221 lt_cv_path_NM="$tmp_nm -p"
5222 break
5225 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5226 continue # so that we can try to find one that supports BSD flags
5228 esac
5230 esac
5232 done
5233 IFS="$lt_save_ifs"
5234 done
5235 : ${lt_cv_path_NM=no}
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5239 $as_echo "$lt_cv_path_NM" >&6; }
5240 if test "$lt_cv_path_NM" != "no"; then
5241 NM="$lt_cv_path_NM"
5242 else
5243 # Didn't find any BSD compatible name lister, look for dumpbin.
5244 if test -n "$DUMPBIN"; then :
5245 # Let the user override the test.
5246 else
5247 if test -n "$ac_tool_prefix"; then
5248 for ac_prog in dumpbin "link -dump"
5250 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5251 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5253 $as_echo_n "checking for $ac_word... " >&6; }
5254 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5255 $as_echo_n "(cached) " >&6
5256 else
5257 if test -n "$DUMPBIN"; then
5258 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5259 else
5260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5261 for as_dir in $PATH
5263 IFS=$as_save_IFS
5264 test -z "$as_dir" && as_dir=.
5265 for ac_exec_ext in '' $ac_executable_extensions; do
5266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5267 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5269 break 2
5271 done
5272 done
5273 IFS=$as_save_IFS
5277 DUMPBIN=$ac_cv_prog_DUMPBIN
5278 if test -n "$DUMPBIN"; then
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5280 $as_echo "$DUMPBIN" >&6; }
5281 else
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5283 $as_echo "no" >&6; }
5287 test -n "$DUMPBIN" && break
5288 done
5290 if test -z "$DUMPBIN"; then
5291 ac_ct_DUMPBIN=$DUMPBIN
5292 for ac_prog in dumpbin "link -dump"
5294 # Extract the first word of "$ac_prog", so it can be a program name with args.
5295 set dummy $ac_prog; ac_word=$2
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5297 $as_echo_n "checking for $ac_word... " >&6; }
5298 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5299 $as_echo_n "(cached) " >&6
5300 else
5301 if test -n "$ac_ct_DUMPBIN"; then
5302 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5303 else
5304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5305 for as_dir in $PATH
5307 IFS=$as_save_IFS
5308 test -z "$as_dir" && as_dir=.
5309 for ac_exec_ext in '' $ac_executable_extensions; do
5310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5311 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5313 break 2
5315 done
5316 done
5317 IFS=$as_save_IFS
5321 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5322 if test -n "$ac_ct_DUMPBIN"; then
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5324 $as_echo "$ac_ct_DUMPBIN" >&6; }
5325 else
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5327 $as_echo "no" >&6; }
5331 test -n "$ac_ct_DUMPBIN" && break
5332 done
5334 if test "x$ac_ct_DUMPBIN" = x; then
5335 DUMPBIN=":"
5336 else
5337 case $cross_compiling:$ac_tool_warned in
5338 yes:)
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5340 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5341 ac_tool_warned=yes ;;
5342 esac
5343 DUMPBIN=$ac_ct_DUMPBIN
5347 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5348 *COFF*)
5349 DUMPBIN="$DUMPBIN -symbols"
5352 DUMPBIN=:
5354 esac
5357 if test "$DUMPBIN" != ":"; then
5358 NM="$DUMPBIN"
5361 test -z "$NM" && NM=nm
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5369 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5370 if test "${lt_cv_nm_interface+set}" = set; then :
5371 $as_echo_n "(cached) " >&6
5372 else
5373 lt_cv_nm_interface="BSD nm"
5374 echo "int some_variable = 0;" > conftest.$ac_ext
5375 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5376 (eval "$ac_compile" 2>conftest.err)
5377 cat conftest.err >&5
5378 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5379 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5380 cat conftest.err >&5
5381 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5382 cat conftest.out >&5
5383 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5384 lt_cv_nm_interface="MS dumpbin"
5386 rm -f conftest*
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5389 $as_echo "$lt_cv_nm_interface" >&6; }
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5392 $as_echo_n "checking whether ln -s works... " >&6; }
5393 LN_S=$as_ln_s
5394 if test "$LN_S" = "ln -s"; then
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5396 $as_echo "yes" >&6; }
5397 else
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5399 $as_echo "no, using $LN_S" >&6; }
5402 # find the maximum length of command line arguments
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5404 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5405 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5406 $as_echo_n "(cached) " >&6
5407 else
5409 teststring="ABCD"
5411 case $build_os in
5412 msdosdjgpp*)
5413 # On DJGPP, this test can blow up pretty badly due to problems in libc
5414 # (any single argument exceeding 2000 bytes causes a buffer overrun
5415 # during glob expansion). Even if it were fixed, the result of this
5416 # check would be larger than it should be.
5417 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5420 gnu*)
5421 # Under GNU Hurd, this test is not required because there is
5422 # no limit to the length of command line arguments.
5423 # Libtool will interpret -1 as no limit whatsoever
5424 lt_cv_sys_max_cmd_len=-1;
5427 cygwin* | mingw* | cegcc*)
5428 # On Win9x/ME, this test blows up -- it succeeds, but takes
5429 # about 5 minutes as the teststring grows exponentially.
5430 # Worse, since 9x/ME are not pre-emptively multitasking,
5431 # you end up with a "frozen" computer, even though with patience
5432 # the test eventually succeeds (with a max line length of 256k).
5433 # Instead, let's just punt: use the minimum linelength reported by
5434 # all of the supported platforms: 8192 (on NT/2K/XP).
5435 lt_cv_sys_max_cmd_len=8192;
5438 mint*)
5439 # On MiNT this can take a long time and run out of memory.
5440 lt_cv_sys_max_cmd_len=8192;
5443 amigaos*)
5444 # On AmigaOS with pdksh, this test takes hours, literally.
5445 # So we just punt and use a minimum line length of 8192.
5446 lt_cv_sys_max_cmd_len=8192;
5449 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5450 # This has been around since 386BSD, at least. Likely further.
5451 if test -x /sbin/sysctl; then
5452 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5453 elif test -x /usr/sbin/sysctl; then
5454 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5455 else
5456 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5458 # And add a safety zone
5459 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5460 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5463 interix*)
5464 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5465 lt_cv_sys_max_cmd_len=196608
5468 osf*)
5469 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5470 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5471 # nice to cause kernel panics so lets avoid the loop below.
5472 # First set a reasonable default.
5473 lt_cv_sys_max_cmd_len=16384
5475 if test -x /sbin/sysconfig; then
5476 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5477 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5478 esac
5481 sco3.2v5*)
5482 lt_cv_sys_max_cmd_len=102400
5484 sysv5* | sco5v6* | sysv4.2uw2*)
5485 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5486 if test -n "$kargmax"; then
5487 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5488 else
5489 lt_cv_sys_max_cmd_len=32768
5493 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5494 if test -n "$lt_cv_sys_max_cmd_len"; then
5495 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5496 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5497 else
5498 # Make teststring a little bigger before we do anything with it.
5499 # a 1K string should be a reasonable start.
5500 for i in 1 2 3 4 5 6 7 8 ; do
5501 teststring=$teststring$teststring
5502 done
5503 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5504 # If test is not a shell built-in, we'll probably end up computing a
5505 # maximum length that is only half of the actual maximum length, but
5506 # we can't tell.
5507 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5508 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5509 test $i != 17 # 1/2 MB should be enough
5511 i=`expr $i + 1`
5512 teststring=$teststring$teststring
5513 done
5514 # Only check the string length outside the loop.
5515 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5516 teststring=
5517 # Add a significant safety factor because C++ compilers can tack on
5518 # massive amounts of additional arguments before passing them to the
5519 # linker. It appears as though 1/2 is a usable value.
5520 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5523 esac
5527 if test -n $lt_cv_sys_max_cmd_len ; then
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5529 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5530 else
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5532 $as_echo "none" >&6; }
5534 max_cmd_len=$lt_cv_sys_max_cmd_len
5541 : ${CP="cp -f"}
5542 : ${MV="mv -f"}
5543 : ${RM="rm -f"}
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5546 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5547 # Try some XSI features
5548 xsi_shell=no
5549 ( _lt_dummy="a/b/c"
5550 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5551 = c,a/b,, \
5552 && eval 'test $(( 1 + 1 )) -eq 2 \
5553 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5554 && xsi_shell=yes
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5556 $as_echo "$xsi_shell" >&6; }
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5560 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5561 lt_shell_append=no
5562 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5563 >/dev/null 2>&1 \
5564 && lt_shell_append=yes
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5566 $as_echo "$lt_shell_append" >&6; }
5569 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5570 lt_unset=unset
5571 else
5572 lt_unset=false
5579 # test EBCDIC or ASCII
5580 case `echo X|tr X '\101'` in
5581 A) # ASCII based system
5582 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5583 lt_SP2NL='tr \040 \012'
5584 lt_NL2SP='tr \015\012 \040\040'
5586 *) # EBCDIC based system
5587 lt_SP2NL='tr \100 \n'
5588 lt_NL2SP='tr \r\n \100\100'
5590 esac
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5601 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5602 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5603 $as_echo_n "(cached) " >&6
5604 else
5605 lt_cv_ld_reload_flag='-r'
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5608 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5609 reload_flag=$lt_cv_ld_reload_flag
5610 case $reload_flag in
5611 "" | " "*) ;;
5612 *) reload_flag=" $reload_flag" ;;
5613 esac
5614 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5615 case $host_os in
5616 darwin*)
5617 if test "$GCC" = yes; then
5618 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5619 else
5620 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5623 esac
5633 if test -n "$ac_tool_prefix"; then
5634 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5635 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5637 $as_echo_n "checking for $ac_word... " >&6; }
5638 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5639 $as_echo_n "(cached) " >&6
5640 else
5641 if test -n "$OBJDUMP"; then
5642 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5643 else
5644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5645 for as_dir in $PATH
5647 IFS=$as_save_IFS
5648 test -z "$as_dir" && as_dir=.
5649 for ac_exec_ext in '' $ac_executable_extensions; do
5650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5651 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5653 break 2
5655 done
5656 done
5657 IFS=$as_save_IFS
5661 OBJDUMP=$ac_cv_prog_OBJDUMP
5662 if test -n "$OBJDUMP"; then
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5664 $as_echo "$OBJDUMP" >&6; }
5665 else
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5667 $as_echo "no" >&6; }
5672 if test -z "$ac_cv_prog_OBJDUMP"; then
5673 ac_ct_OBJDUMP=$OBJDUMP
5674 # Extract the first word of "objdump", so it can be a program name with args.
5675 set dummy objdump; ac_word=$2
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5677 $as_echo_n "checking for $ac_word... " >&6; }
5678 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5679 $as_echo_n "(cached) " >&6
5680 else
5681 if test -n "$ac_ct_OBJDUMP"; then
5682 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5683 else
5684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5685 for as_dir in $PATH
5687 IFS=$as_save_IFS
5688 test -z "$as_dir" && as_dir=.
5689 for ac_exec_ext in '' $ac_executable_extensions; do
5690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5691 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5693 break 2
5695 done
5696 done
5697 IFS=$as_save_IFS
5701 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5702 if test -n "$ac_ct_OBJDUMP"; then
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5704 $as_echo "$ac_ct_OBJDUMP" >&6; }
5705 else
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5707 $as_echo "no" >&6; }
5710 if test "x$ac_ct_OBJDUMP" = x; then
5711 OBJDUMP="false"
5712 else
5713 case $cross_compiling:$ac_tool_warned in
5714 yes:)
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5716 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5717 ac_tool_warned=yes ;;
5718 esac
5719 OBJDUMP=$ac_ct_OBJDUMP
5721 else
5722 OBJDUMP="$ac_cv_prog_OBJDUMP"
5725 test -z "$OBJDUMP" && OBJDUMP=objdump
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5736 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5737 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5738 $as_echo_n "(cached) " >&6
5739 else
5740 lt_cv_file_magic_cmd='$MAGIC_CMD'
5741 lt_cv_file_magic_test_file=
5742 lt_cv_deplibs_check_method='unknown'
5743 # Need to set the preceding variable on all platforms that support
5744 # interlibrary dependencies.
5745 # 'none' -- dependencies not supported.
5746 # `unknown' -- same as none, but documents that we really don't know.
5747 # 'pass_all' -- all dependencies passed with no checks.
5748 # 'test_compile' -- check by making test program.
5749 # 'file_magic [[regex]]' -- check by looking for files in library path
5750 # which responds to the $file_magic_cmd with a given extended regex.
5751 # If you have `file' or equivalent on your system and you're not sure
5752 # whether `pass_all' will *always* work, you probably want this one.
5754 case $host_os in
5755 aix[4-9]*)
5756 lt_cv_deplibs_check_method=pass_all
5759 beos*)
5760 lt_cv_deplibs_check_method=pass_all
5763 bsdi[45]*)
5764 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5765 lt_cv_file_magic_cmd='/usr/bin/file -L'
5766 lt_cv_file_magic_test_file=/shlib/libc.so
5769 cygwin*)
5770 # func_win32_libid is a shell function defined in ltmain.sh
5771 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5772 lt_cv_file_magic_cmd='func_win32_libid'
5775 mingw* | pw32*)
5776 # Base MSYS/MinGW do not provide the 'file' command needed by
5777 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5778 # unless we find 'file', for example because we are cross-compiling.
5779 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5780 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5781 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5782 lt_cv_file_magic_cmd='func_win32_libid'
5783 else
5784 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5785 lt_cv_file_magic_cmd='$OBJDUMP -f'
5789 cegcc*)
5790 # use the weaker test based on 'objdump'. See mingw*.
5791 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5792 lt_cv_file_magic_cmd='$OBJDUMP -f'
5795 darwin* | rhapsody*)
5796 lt_cv_deplibs_check_method=pass_all
5799 freebsd* | dragonfly*)
5800 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5801 case $host_cpu in
5802 i*86 )
5803 # Not sure whether the presence of OpenBSD here was a mistake.
5804 # Let's accept both of them until this is cleared up.
5805 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5806 lt_cv_file_magic_cmd=/usr/bin/file
5807 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5809 esac
5810 else
5811 lt_cv_deplibs_check_method=pass_all
5815 gnu*)
5816 lt_cv_deplibs_check_method=pass_all
5819 haiku*)
5820 lt_cv_deplibs_check_method=pass_all
5823 hpux10.20* | hpux11*)
5824 lt_cv_file_magic_cmd=/usr/bin/file
5825 case $host_cpu in
5826 ia64*)
5827 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5828 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5830 hppa*64*)
5831 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]'
5832 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5835 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5836 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5838 esac
5841 interix[3-9]*)
5842 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5843 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5846 irix5* | irix6* | nonstopux*)
5847 case $LD in
5848 *-32|*"-32 ") libmagic=32-bit;;
5849 *-n32|*"-n32 ") libmagic=N32;;
5850 *-64|*"-64 ") libmagic=64-bit;;
5851 *) libmagic=never-match;;
5852 esac
5853 lt_cv_deplibs_check_method=pass_all
5856 # This must be Linux ELF.
5857 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5858 lt_cv_deplibs_check_method=pass_all
5861 netbsd*)
5862 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5863 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5864 else
5865 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5869 newos6*)
5870 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5871 lt_cv_file_magic_cmd=/usr/bin/file
5872 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5875 *nto* | *qnx*)
5876 lt_cv_deplibs_check_method=pass_all
5879 openbsd*)
5880 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5881 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5882 else
5883 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5887 osf3* | osf4* | osf5*)
5888 lt_cv_deplibs_check_method=pass_all
5891 rdos*)
5892 lt_cv_deplibs_check_method=pass_all
5895 solaris*)
5896 lt_cv_deplibs_check_method=pass_all
5899 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5900 lt_cv_deplibs_check_method=pass_all
5903 sysv4 | sysv4.3*)
5904 case $host_vendor in
5905 motorola)
5906 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]'
5907 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5909 ncr)
5910 lt_cv_deplibs_check_method=pass_all
5912 sequent)
5913 lt_cv_file_magic_cmd='/bin/file'
5914 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5916 sni)
5917 lt_cv_file_magic_cmd='/bin/file'
5918 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5919 lt_cv_file_magic_test_file=/lib/libc.so
5921 siemens)
5922 lt_cv_deplibs_check_method=pass_all
5925 lt_cv_deplibs_check_method=pass_all
5927 esac
5930 tpf*)
5931 lt_cv_deplibs_check_method=pass_all
5933 esac
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5937 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5938 file_magic_cmd=$lt_cv_file_magic_cmd
5939 deplibs_check_method=$lt_cv_deplibs_check_method
5940 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5953 if test -n "$ac_tool_prefix"; then
5954 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5955 set dummy ${ac_tool_prefix}ar; ac_word=$2
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5957 $as_echo_n "checking for $ac_word... " >&6; }
5958 if test "${ac_cv_prog_AR+set}" = set; then :
5959 $as_echo_n "(cached) " >&6
5960 else
5961 if test -n "$AR"; then
5962 ac_cv_prog_AR="$AR" # Let the user override the test.
5963 else
5964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5965 for as_dir in $PATH
5967 IFS=$as_save_IFS
5968 test -z "$as_dir" && as_dir=.
5969 for ac_exec_ext in '' $ac_executable_extensions; do
5970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5971 ac_cv_prog_AR="${ac_tool_prefix}ar"
5972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5973 break 2
5975 done
5976 done
5977 IFS=$as_save_IFS
5981 AR=$ac_cv_prog_AR
5982 if test -n "$AR"; then
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5984 $as_echo "$AR" >&6; }
5985 else
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5987 $as_echo "no" >&6; }
5992 if test -z "$ac_cv_prog_AR"; then
5993 ac_ct_AR=$AR
5994 # Extract the first word of "ar", so it can be a program name with args.
5995 set dummy ar; ac_word=$2
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5997 $as_echo_n "checking for $ac_word... " >&6; }
5998 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5999 $as_echo_n "(cached) " >&6
6000 else
6001 if test -n "$ac_ct_AR"; then
6002 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6003 else
6004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6005 for as_dir in $PATH
6007 IFS=$as_save_IFS
6008 test -z "$as_dir" && as_dir=.
6009 for ac_exec_ext in '' $ac_executable_extensions; do
6010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6011 ac_cv_prog_ac_ct_AR="ar"
6012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6013 break 2
6015 done
6016 done
6017 IFS=$as_save_IFS
6021 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6022 if test -n "$ac_ct_AR"; then
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6024 $as_echo "$ac_ct_AR" >&6; }
6025 else
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6027 $as_echo "no" >&6; }
6030 if test "x$ac_ct_AR" = x; then
6031 AR="false"
6032 else
6033 case $cross_compiling:$ac_tool_warned in
6034 yes:)
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6036 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6037 ac_tool_warned=yes ;;
6038 esac
6039 AR=$ac_ct_AR
6041 else
6042 AR="$ac_cv_prog_AR"
6045 test -z "$AR" && AR=ar
6046 test -z "$AR_FLAGS" && AR_FLAGS=cru
6058 if test -n "$ac_tool_prefix"; then
6059 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6060 set dummy ${ac_tool_prefix}strip; ac_word=$2
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6062 $as_echo_n "checking for $ac_word... " >&6; }
6063 if test "${ac_cv_prog_STRIP+set}" = set; then :
6064 $as_echo_n "(cached) " >&6
6065 else
6066 if test -n "$STRIP"; then
6067 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6068 else
6069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6070 for as_dir in $PATH
6072 IFS=$as_save_IFS
6073 test -z "$as_dir" && as_dir=.
6074 for ac_exec_ext in '' $ac_executable_extensions; do
6075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6076 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6078 break 2
6080 done
6081 done
6082 IFS=$as_save_IFS
6086 STRIP=$ac_cv_prog_STRIP
6087 if test -n "$STRIP"; then
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6089 $as_echo "$STRIP" >&6; }
6090 else
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6092 $as_echo "no" >&6; }
6097 if test -z "$ac_cv_prog_STRIP"; then
6098 ac_ct_STRIP=$STRIP
6099 # Extract the first word of "strip", so it can be a program name with args.
6100 set dummy strip; ac_word=$2
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6102 $as_echo_n "checking for $ac_word... " >&6; }
6103 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6104 $as_echo_n "(cached) " >&6
6105 else
6106 if test -n "$ac_ct_STRIP"; then
6107 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6108 else
6109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6110 for as_dir in $PATH
6112 IFS=$as_save_IFS
6113 test -z "$as_dir" && as_dir=.
6114 for ac_exec_ext in '' $ac_executable_extensions; do
6115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6116 ac_cv_prog_ac_ct_STRIP="strip"
6117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6118 break 2
6120 done
6121 done
6122 IFS=$as_save_IFS
6126 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6127 if test -n "$ac_ct_STRIP"; then
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6129 $as_echo "$ac_ct_STRIP" >&6; }
6130 else
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6132 $as_echo "no" >&6; }
6135 if test "x$ac_ct_STRIP" = x; then
6136 STRIP=":"
6137 else
6138 case $cross_compiling:$ac_tool_warned in
6139 yes:)
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6141 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6142 ac_tool_warned=yes ;;
6143 esac
6144 STRIP=$ac_ct_STRIP
6146 else
6147 STRIP="$ac_cv_prog_STRIP"
6150 test -z "$STRIP" && STRIP=:
6157 if test -n "$ac_tool_prefix"; then
6158 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6159 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6161 $as_echo_n "checking for $ac_word... " >&6; }
6162 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6163 $as_echo_n "(cached) " >&6
6164 else
6165 if test -n "$RANLIB"; then
6166 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6167 else
6168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6169 for as_dir in $PATH
6171 IFS=$as_save_IFS
6172 test -z "$as_dir" && as_dir=.
6173 for ac_exec_ext in '' $ac_executable_extensions; do
6174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6175 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6177 break 2
6179 done
6180 done
6181 IFS=$as_save_IFS
6185 RANLIB=$ac_cv_prog_RANLIB
6186 if test -n "$RANLIB"; then
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6188 $as_echo "$RANLIB" >&6; }
6189 else
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6191 $as_echo "no" >&6; }
6196 if test -z "$ac_cv_prog_RANLIB"; then
6197 ac_ct_RANLIB=$RANLIB
6198 # Extract the first word of "ranlib", so it can be a program name with args.
6199 set dummy ranlib; ac_word=$2
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6201 $as_echo_n "checking for $ac_word... " >&6; }
6202 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6203 $as_echo_n "(cached) " >&6
6204 else
6205 if test -n "$ac_ct_RANLIB"; then
6206 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6207 else
6208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6209 for as_dir in $PATH
6211 IFS=$as_save_IFS
6212 test -z "$as_dir" && as_dir=.
6213 for ac_exec_ext in '' $ac_executable_extensions; do
6214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6215 ac_cv_prog_ac_ct_RANLIB="ranlib"
6216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6217 break 2
6219 done
6220 done
6221 IFS=$as_save_IFS
6225 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6226 if test -n "$ac_ct_RANLIB"; then
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6228 $as_echo "$ac_ct_RANLIB" >&6; }
6229 else
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6231 $as_echo "no" >&6; }
6234 if test "x$ac_ct_RANLIB" = x; then
6235 RANLIB=":"
6236 else
6237 case $cross_compiling:$ac_tool_warned in
6238 yes:)
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6240 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6241 ac_tool_warned=yes ;;
6242 esac
6243 RANLIB=$ac_ct_RANLIB
6245 else
6246 RANLIB="$ac_cv_prog_RANLIB"
6249 test -z "$RANLIB" && RANLIB=:
6256 # Determine commands to create old-style static archives.
6257 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6258 old_postinstall_cmds='chmod 644 $oldlib'
6259 old_postuninstall_cmds=
6261 if test -n "$RANLIB"; then
6262 case $host_os in
6263 openbsd*)
6264 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6267 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6269 esac
6270 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6273 case $host_os in
6274 darwin*)
6275 lock_old_archive_extraction=yes ;;
6277 lock_old_archive_extraction=no ;;
6278 esac
6318 # If no C compiler was specified, use CC.
6319 LTCC=${LTCC-"$CC"}
6321 # If no C compiler flags were specified, use CFLAGS.
6322 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6324 # Allow CC to be a program name with arguments.
6325 compiler=$CC
6328 # Check for command to grab the raw symbol name followed by C symbol from nm.
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6330 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6331 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6332 $as_echo_n "(cached) " >&6
6333 else
6335 # These are sane defaults that work on at least a few old systems.
6336 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6338 # Character class describing NM global symbol codes.
6339 symcode='[BCDEGRST]'
6341 # Regexp to match symbols that can be accessed directly from C.
6342 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6344 # Define system-specific variables.
6345 case $host_os in
6346 aix*)
6347 symcode='[BCDT]'
6349 cygwin* | mingw* | pw32* | cegcc*)
6350 symcode='[ABCDGISTW]'
6352 hpux*)
6353 if test "$host_cpu" = ia64; then
6354 symcode='[ABCDEGRST]'
6357 irix* | nonstopux*)
6358 symcode='[BCDEGRST]'
6360 osf*)
6361 symcode='[BCDEGQRST]'
6363 solaris*)
6364 symcode='[BDRT]'
6366 sco3.2v5*)
6367 symcode='[DT]'
6369 sysv4.2uw2*)
6370 symcode='[DT]'
6372 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6373 symcode='[ABDT]'
6375 sysv4)
6376 symcode='[DFNSTU]'
6378 esac
6380 # If we're using GNU nm, then use its standard symbol codes.
6381 case `$NM -V 2>&1` in
6382 *GNU* | *'with BFD'*)
6383 symcode='[ABCDGIRSTW]' ;;
6384 esac
6386 # Transform an extracted symbol line into a proper C declaration.
6387 # Some systems (esp. on ia64) link data and code symbols differently,
6388 # so use this general approach.
6389 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6391 # Transform an extracted symbol line into symbol name and symbol address
6392 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6393 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'"
6395 # Handle CRLF in mingw tool chain
6396 opt_cr=
6397 case $build_os in
6398 mingw*)
6399 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6401 esac
6403 # Try without a prefix underscore, then with it.
6404 for ac_symprfx in "" "_"; do
6406 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6407 symxfrm="\\1 $ac_symprfx\\2 \\2"
6409 # Write the raw and C identifiers.
6410 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6411 # Fake it for dumpbin and say T for any non-static function
6412 # and D for any global variable.
6413 # Also find C++ and __fastcall symbols from MSVC++,
6414 # which start with @ or ?.
6415 lt_cv_sys_global_symbol_pipe="$AWK '"\
6416 " {last_section=section; section=\$ 3};"\
6417 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6418 " \$ 0!~/External *\|/{next};"\
6419 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6420 " {if(hide[section]) next};"\
6421 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6422 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6423 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6424 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6425 " ' prfx=^$ac_symprfx"
6426 else
6427 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6430 # Check to see that the pipe works correctly.
6431 pipe_works=no
6433 rm -f conftest*
6434 cat > conftest.$ac_ext <<_LT_EOF
6435 #ifdef __cplusplus
6436 extern "C" {
6437 #endif
6438 char nm_test_var;
6439 void nm_test_func(void);
6440 void nm_test_func(void){}
6441 #ifdef __cplusplus
6443 #endif
6444 int main(){nm_test_var='a';nm_test_func();return(0);}
6445 _LT_EOF
6447 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6448 (eval $ac_compile) 2>&5
6449 ac_status=$?
6450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6451 test $ac_status = 0; }; then
6452 # Now try to grab the symbols.
6453 nlist=conftest.nm
6454 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6455 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6456 ac_status=$?
6457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6458 test $ac_status = 0; } && test -s "$nlist"; then
6459 # Try sorting and uniquifying the output.
6460 if sort "$nlist" | uniq > "$nlist"T; then
6461 mv -f "$nlist"T "$nlist"
6462 else
6463 rm -f "$nlist"T
6466 # Make sure that we snagged all the symbols we need.
6467 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6468 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6469 cat <<_LT_EOF > conftest.$ac_ext
6470 #ifdef __cplusplus
6471 extern "C" {
6472 #endif
6474 _LT_EOF
6475 # Now generate the symbol file.
6476 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6478 cat <<_LT_EOF >> conftest.$ac_ext
6480 /* The mapping between symbol names and symbols. */
6481 const struct {
6482 const char *name;
6483 void *address;
6485 lt__PROGRAM__LTX_preloaded_symbols[] =
6487 { "@PROGRAM@", (void *) 0 },
6488 _LT_EOF
6489 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6490 cat <<\_LT_EOF >> conftest.$ac_ext
6491 {0, (void *) 0}
6494 /* This works around a problem in FreeBSD linker */
6495 #ifdef FREEBSD_WORKAROUND
6496 static const void *lt_preloaded_setup() {
6497 return lt__PROGRAM__LTX_preloaded_symbols;
6499 #endif
6501 #ifdef __cplusplus
6503 #endif
6504 _LT_EOF
6505 # Now try linking the two files.
6506 mv conftest.$ac_objext conftstm.$ac_objext
6507 lt_save_LIBS="$LIBS"
6508 lt_save_CFLAGS="$CFLAGS"
6509 LIBS="conftstm.$ac_objext"
6510 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6511 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6512 (eval $ac_link) 2>&5
6513 ac_status=$?
6514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6515 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6516 pipe_works=yes
6518 LIBS="$lt_save_LIBS"
6519 CFLAGS="$lt_save_CFLAGS"
6520 else
6521 echo "cannot find nm_test_func in $nlist" >&5
6523 else
6524 echo "cannot find nm_test_var in $nlist" >&5
6526 else
6527 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6529 else
6530 echo "$progname: failed program was:" >&5
6531 cat conftest.$ac_ext >&5
6533 rm -rf conftest* conftst*
6535 # Do not use the global_symbol_pipe unless it works.
6536 if test "$pipe_works" = yes; then
6537 break
6538 else
6539 lt_cv_sys_global_symbol_pipe=
6541 done
6545 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6546 lt_cv_sys_global_symbol_to_cdecl=
6548 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6550 $as_echo "failed" >&6; }
6551 else
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6553 $as_echo "ok" >&6; }
6578 # Check whether --enable-libtool-lock was given.
6579 if test "${enable_libtool_lock+set}" = set; then :
6580 enableval=$enable_libtool_lock;
6583 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6585 # Some flags need to be propagated to the compiler or linker for good
6586 # libtool support.
6587 case $host in
6588 ia64-*-hpux*)
6589 # Find out which ABI we are using.
6590 echo 'int i;' > conftest.$ac_ext
6591 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6592 (eval $ac_compile) 2>&5
6593 ac_status=$?
6594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6595 test $ac_status = 0; }; then
6596 case `/usr/bin/file conftest.$ac_objext` in
6597 *ELF-32*)
6598 HPUX_IA64_MODE="32"
6600 *ELF-64*)
6601 HPUX_IA64_MODE="64"
6603 esac
6605 rm -rf conftest*
6607 *-*-irix6*)
6608 # Find out which ABI we are using.
6609 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6610 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6611 (eval $ac_compile) 2>&5
6612 ac_status=$?
6613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6614 test $ac_status = 0; }; then
6615 if test "$lt_cv_prog_gnu_ld" = yes; then
6616 case `/usr/bin/file conftest.$ac_objext` in
6617 *32-bit*)
6618 LD="${LD-ld} -melf32bsmip"
6620 *N32*)
6621 LD="${LD-ld} -melf32bmipn32"
6623 *64-bit*)
6624 LD="${LD-ld} -melf64bmip"
6626 esac
6627 else
6628 case `/usr/bin/file conftest.$ac_objext` in
6629 *32-bit*)
6630 LD="${LD-ld} -32"
6632 *N32*)
6633 LD="${LD-ld} -n32"
6635 *64-bit*)
6636 LD="${LD-ld} -64"
6638 esac
6641 rm -rf conftest*
6644 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6645 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6646 # Find out which ABI we are using.
6647 echo 'int i;' > conftest.$ac_ext
6648 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6649 (eval $ac_compile) 2>&5
6650 ac_status=$?
6651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6652 test $ac_status = 0; }; then
6653 case `/usr/bin/file conftest.o` in
6654 *32-bit*)
6655 case $host in
6656 x86_64-*kfreebsd*-gnu)
6657 LD="${LD-ld} -m elf_i386_fbsd"
6659 x86_64-*linux*)
6660 case `/usr/bin/file conftest.o` in
6661 *x86-64*)
6662 LD="${LD-ld} -m elf32_x86_64"
6665 LD="${LD-ld} -m elf_i386"
6667 esac
6669 powerpc64le-*linux*)
6670 LD="${LD-ld} -m elf32lppclinux"
6672 powerpc64-*linux*)
6673 LD="${LD-ld} -m elf32ppclinux"
6675 s390x-*linux*)
6676 LD="${LD-ld} -m elf_s390"
6678 sparc64-*linux*)
6679 LD="${LD-ld} -m elf32_sparc"
6681 esac
6683 *64-bit*)
6684 case $host in
6685 x86_64-*kfreebsd*-gnu)
6686 LD="${LD-ld} -m elf_x86_64_fbsd"
6688 x86_64-*linux*)
6689 LD="${LD-ld} -m elf_x86_64"
6691 powerpcle-*linux*)
6692 LD="${LD-ld} -m elf64lppc"
6694 powerpc-*linux*)
6695 LD="${LD-ld} -m elf64ppc"
6697 s390*-*linux*|s390*-*tpf*)
6698 LD="${LD-ld} -m elf64_s390"
6700 sparc*-*linux*)
6701 LD="${LD-ld} -m elf64_sparc"
6703 esac
6705 esac
6707 rm -rf conftest*
6710 *-*-sco3.2v5*)
6711 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6712 SAVE_CFLAGS="$CFLAGS"
6713 CFLAGS="$CFLAGS -belf"
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6715 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6716 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6717 $as_echo_n "(cached) " >&6
6718 else
6719 ac_ext=c
6720 ac_cpp='$CPP $CPPFLAGS'
6721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6726 /* end confdefs.h. */
6729 main ()
6733 return 0;
6735 _ACEOF
6736 if ac_fn_c_try_link "$LINENO"; then :
6737 lt_cv_cc_needs_belf=yes
6738 else
6739 lt_cv_cc_needs_belf=no
6741 rm -f core conftest.err conftest.$ac_objext \
6742 conftest$ac_exeext conftest.$ac_ext
6743 ac_ext=c
6744 ac_cpp='$CPP $CPPFLAGS'
6745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6751 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6752 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6753 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6754 CFLAGS="$SAVE_CFLAGS"
6757 sparc*-*solaris*)
6758 # Find out which ABI we are using.
6759 echo 'int i;' > conftest.$ac_ext
6760 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6761 (eval $ac_compile) 2>&5
6762 ac_status=$?
6763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6764 test $ac_status = 0; }; then
6765 case `/usr/bin/file conftest.o` in
6766 *64-bit*)
6767 case $lt_cv_prog_gnu_ld in
6768 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6770 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6771 LD="${LD-ld} -64"
6774 esac
6776 esac
6778 rm -rf conftest*
6780 esac
6782 need_locks="$enable_libtool_lock"
6785 case $host_os in
6786 rhapsody* | darwin*)
6787 if test -n "$ac_tool_prefix"; then
6788 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6789 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6791 $as_echo_n "checking for $ac_word... " >&6; }
6792 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6793 $as_echo_n "(cached) " >&6
6794 else
6795 if test -n "$DSYMUTIL"; then
6796 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6797 else
6798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6799 for as_dir in $PATH
6801 IFS=$as_save_IFS
6802 test -z "$as_dir" && as_dir=.
6803 for ac_exec_ext in '' $ac_executable_extensions; do
6804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6805 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6807 break 2
6809 done
6810 done
6811 IFS=$as_save_IFS
6815 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6816 if test -n "$DSYMUTIL"; then
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6818 $as_echo "$DSYMUTIL" >&6; }
6819 else
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6821 $as_echo "no" >&6; }
6826 if test -z "$ac_cv_prog_DSYMUTIL"; then
6827 ac_ct_DSYMUTIL=$DSYMUTIL
6828 # Extract the first word of "dsymutil", so it can be a program name with args.
6829 set dummy dsymutil; ac_word=$2
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6831 $as_echo_n "checking for $ac_word... " >&6; }
6832 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6833 $as_echo_n "(cached) " >&6
6834 else
6835 if test -n "$ac_ct_DSYMUTIL"; then
6836 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6837 else
6838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6839 for as_dir in $PATH
6841 IFS=$as_save_IFS
6842 test -z "$as_dir" && as_dir=.
6843 for ac_exec_ext in '' $ac_executable_extensions; do
6844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6845 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6847 break 2
6849 done
6850 done
6851 IFS=$as_save_IFS
6855 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6856 if test -n "$ac_ct_DSYMUTIL"; then
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6858 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6859 else
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6861 $as_echo "no" >&6; }
6864 if test "x$ac_ct_DSYMUTIL" = x; then
6865 DSYMUTIL=":"
6866 else
6867 case $cross_compiling:$ac_tool_warned in
6868 yes:)
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6870 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6871 ac_tool_warned=yes ;;
6872 esac
6873 DSYMUTIL=$ac_ct_DSYMUTIL
6875 else
6876 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6879 if test -n "$ac_tool_prefix"; then
6880 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6881 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6883 $as_echo_n "checking for $ac_word... " >&6; }
6884 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6885 $as_echo_n "(cached) " >&6
6886 else
6887 if test -n "$NMEDIT"; then
6888 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6889 else
6890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6891 for as_dir in $PATH
6893 IFS=$as_save_IFS
6894 test -z "$as_dir" && as_dir=.
6895 for ac_exec_ext in '' $ac_executable_extensions; do
6896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6897 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6899 break 2
6901 done
6902 done
6903 IFS=$as_save_IFS
6907 NMEDIT=$ac_cv_prog_NMEDIT
6908 if test -n "$NMEDIT"; then
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6910 $as_echo "$NMEDIT" >&6; }
6911 else
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6913 $as_echo "no" >&6; }
6918 if test -z "$ac_cv_prog_NMEDIT"; then
6919 ac_ct_NMEDIT=$NMEDIT
6920 # Extract the first word of "nmedit", so it can be a program name with args.
6921 set dummy nmedit; ac_word=$2
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6923 $as_echo_n "checking for $ac_word... " >&6; }
6924 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6925 $as_echo_n "(cached) " >&6
6926 else
6927 if test -n "$ac_ct_NMEDIT"; then
6928 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6929 else
6930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6931 for as_dir in $PATH
6933 IFS=$as_save_IFS
6934 test -z "$as_dir" && as_dir=.
6935 for ac_exec_ext in '' $ac_executable_extensions; do
6936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6937 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6939 break 2
6941 done
6942 done
6943 IFS=$as_save_IFS
6947 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6948 if test -n "$ac_ct_NMEDIT"; then
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6950 $as_echo "$ac_ct_NMEDIT" >&6; }
6951 else
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6953 $as_echo "no" >&6; }
6956 if test "x$ac_ct_NMEDIT" = x; then
6957 NMEDIT=":"
6958 else
6959 case $cross_compiling:$ac_tool_warned in
6960 yes:)
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6962 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6963 ac_tool_warned=yes ;;
6964 esac
6965 NMEDIT=$ac_ct_NMEDIT
6967 else
6968 NMEDIT="$ac_cv_prog_NMEDIT"
6971 if test -n "$ac_tool_prefix"; then
6972 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6973 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6975 $as_echo_n "checking for $ac_word... " >&6; }
6976 if test "${ac_cv_prog_LIPO+set}" = set; then :
6977 $as_echo_n "(cached) " >&6
6978 else
6979 if test -n "$LIPO"; then
6980 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6981 else
6982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6983 for as_dir in $PATH
6985 IFS=$as_save_IFS
6986 test -z "$as_dir" && as_dir=.
6987 for ac_exec_ext in '' $ac_executable_extensions; do
6988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6989 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6991 break 2
6993 done
6994 done
6995 IFS=$as_save_IFS
6999 LIPO=$ac_cv_prog_LIPO
7000 if test -n "$LIPO"; then
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7002 $as_echo "$LIPO" >&6; }
7003 else
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7005 $as_echo "no" >&6; }
7010 if test -z "$ac_cv_prog_LIPO"; then
7011 ac_ct_LIPO=$LIPO
7012 # Extract the first word of "lipo", so it can be a program name with args.
7013 set dummy lipo; ac_word=$2
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7015 $as_echo_n "checking for $ac_word... " >&6; }
7016 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7017 $as_echo_n "(cached) " >&6
7018 else
7019 if test -n "$ac_ct_LIPO"; then
7020 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7021 else
7022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7023 for as_dir in $PATH
7025 IFS=$as_save_IFS
7026 test -z "$as_dir" && as_dir=.
7027 for ac_exec_ext in '' $ac_executable_extensions; do
7028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7029 ac_cv_prog_ac_ct_LIPO="lipo"
7030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7031 break 2
7033 done
7034 done
7035 IFS=$as_save_IFS
7039 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7040 if test -n "$ac_ct_LIPO"; then
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7042 $as_echo "$ac_ct_LIPO" >&6; }
7043 else
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7045 $as_echo "no" >&6; }
7048 if test "x$ac_ct_LIPO" = x; then
7049 LIPO=":"
7050 else
7051 case $cross_compiling:$ac_tool_warned in
7052 yes:)
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7054 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7055 ac_tool_warned=yes ;;
7056 esac
7057 LIPO=$ac_ct_LIPO
7059 else
7060 LIPO="$ac_cv_prog_LIPO"
7063 if test -n "$ac_tool_prefix"; then
7064 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7065 set dummy ${ac_tool_prefix}otool; ac_word=$2
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7067 $as_echo_n "checking for $ac_word... " >&6; }
7068 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7069 $as_echo_n "(cached) " >&6
7070 else
7071 if test -n "$OTOOL"; then
7072 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7073 else
7074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7075 for as_dir in $PATH
7077 IFS=$as_save_IFS
7078 test -z "$as_dir" && as_dir=.
7079 for ac_exec_ext in '' $ac_executable_extensions; do
7080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7081 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7083 break 2
7085 done
7086 done
7087 IFS=$as_save_IFS
7091 OTOOL=$ac_cv_prog_OTOOL
7092 if test -n "$OTOOL"; then
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7094 $as_echo "$OTOOL" >&6; }
7095 else
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7097 $as_echo "no" >&6; }
7102 if test -z "$ac_cv_prog_OTOOL"; then
7103 ac_ct_OTOOL=$OTOOL
7104 # Extract the first word of "otool", so it can be a program name with args.
7105 set dummy otool; ac_word=$2
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7107 $as_echo_n "checking for $ac_word... " >&6; }
7108 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7109 $as_echo_n "(cached) " >&6
7110 else
7111 if test -n "$ac_ct_OTOOL"; then
7112 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7113 else
7114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7115 for as_dir in $PATH
7117 IFS=$as_save_IFS
7118 test -z "$as_dir" && as_dir=.
7119 for ac_exec_ext in '' $ac_executable_extensions; do
7120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7121 ac_cv_prog_ac_ct_OTOOL="otool"
7122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7123 break 2
7125 done
7126 done
7127 IFS=$as_save_IFS
7131 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7132 if test -n "$ac_ct_OTOOL"; then
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7134 $as_echo "$ac_ct_OTOOL" >&6; }
7135 else
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7137 $as_echo "no" >&6; }
7140 if test "x$ac_ct_OTOOL" = x; then
7141 OTOOL=":"
7142 else
7143 case $cross_compiling:$ac_tool_warned in
7144 yes:)
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7146 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7147 ac_tool_warned=yes ;;
7148 esac
7149 OTOOL=$ac_ct_OTOOL
7151 else
7152 OTOOL="$ac_cv_prog_OTOOL"
7155 if test -n "$ac_tool_prefix"; then
7156 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7157 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7159 $as_echo_n "checking for $ac_word... " >&6; }
7160 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7161 $as_echo_n "(cached) " >&6
7162 else
7163 if test -n "$OTOOL64"; then
7164 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7165 else
7166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7167 for as_dir in $PATH
7169 IFS=$as_save_IFS
7170 test -z "$as_dir" && as_dir=.
7171 for ac_exec_ext in '' $ac_executable_extensions; do
7172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7173 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7175 break 2
7177 done
7178 done
7179 IFS=$as_save_IFS
7183 OTOOL64=$ac_cv_prog_OTOOL64
7184 if test -n "$OTOOL64"; then
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7186 $as_echo "$OTOOL64" >&6; }
7187 else
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7189 $as_echo "no" >&6; }
7194 if test -z "$ac_cv_prog_OTOOL64"; then
7195 ac_ct_OTOOL64=$OTOOL64
7196 # Extract the first word of "otool64", so it can be a program name with args.
7197 set dummy otool64; ac_word=$2
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7199 $as_echo_n "checking for $ac_word... " >&6; }
7200 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7201 $as_echo_n "(cached) " >&6
7202 else
7203 if test -n "$ac_ct_OTOOL64"; then
7204 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7205 else
7206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7207 for as_dir in $PATH
7209 IFS=$as_save_IFS
7210 test -z "$as_dir" && as_dir=.
7211 for ac_exec_ext in '' $ac_executable_extensions; do
7212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7213 ac_cv_prog_ac_ct_OTOOL64="otool64"
7214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7215 break 2
7217 done
7218 done
7219 IFS=$as_save_IFS
7223 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7224 if test -n "$ac_ct_OTOOL64"; then
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7226 $as_echo "$ac_ct_OTOOL64" >&6; }
7227 else
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7229 $as_echo "no" >&6; }
7232 if test "x$ac_ct_OTOOL64" = x; then
7233 OTOOL64=":"
7234 else
7235 case $cross_compiling:$ac_tool_warned in
7236 yes:)
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7238 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7239 ac_tool_warned=yes ;;
7240 esac
7241 OTOOL64=$ac_ct_OTOOL64
7243 else
7244 OTOOL64="$ac_cv_prog_OTOOL64"
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7274 $as_echo_n "checking for -single_module linker flag... " >&6; }
7275 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7276 $as_echo_n "(cached) " >&6
7277 else
7278 lt_cv_apple_cc_single_mod=no
7279 if test -z "${LT_MULTI_MODULE}"; then
7280 # By default we will add the -single_module flag. You can override
7281 # by either setting the environment variable LT_MULTI_MODULE
7282 # non-empty at configure time, or by adding -multi_module to the
7283 # link flags.
7284 rm -rf libconftest.dylib*
7285 echo "int foo(void){return 1;}" > conftest.c
7286 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7287 -dynamiclib -Wl,-single_module conftest.c" >&5
7288 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7289 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7290 _lt_result=$?
7291 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7292 lt_cv_apple_cc_single_mod=yes
7293 else
7294 cat conftest.err >&5
7296 rm -rf libconftest.dylib*
7297 rm -f conftest.*
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7301 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7303 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7304 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7305 $as_echo_n "(cached) " >&6
7306 else
7307 lt_cv_ld_exported_symbols_list=no
7308 save_LDFLAGS=$LDFLAGS
7309 echo "_main" > conftest.sym
7310 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7312 /* end confdefs.h. */
7315 main ()
7319 return 0;
7321 _ACEOF
7322 if ac_fn_c_try_link "$LINENO"; then :
7323 lt_cv_ld_exported_symbols_list=yes
7324 else
7325 lt_cv_ld_exported_symbols_list=no
7327 rm -f core conftest.err conftest.$ac_objext \
7328 conftest$ac_exeext conftest.$ac_ext
7329 LDFLAGS="$save_LDFLAGS"
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7333 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7335 $as_echo_n "checking for -force_load linker flag... " >&6; }
7336 if test "${lt_cv_ld_force_load+set}" = set; then :
7337 $as_echo_n "(cached) " >&6
7338 else
7339 lt_cv_ld_force_load=no
7340 cat > conftest.c << _LT_EOF
7341 int forced_loaded() { return 2;}
7342 _LT_EOF
7343 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7344 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7345 echo "$AR cru libconftest.a conftest.o" >&5
7346 $AR cru libconftest.a conftest.o 2>&5
7347 cat > conftest.c << _LT_EOF
7348 int main() { return 0;}
7349 _LT_EOF
7350 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7351 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7352 _lt_result=$?
7353 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7354 lt_cv_ld_force_load=yes
7355 else
7356 cat conftest.err >&5
7358 rm -f conftest.err libconftest.a conftest conftest.c
7359 rm -rf conftest.dSYM
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7363 $as_echo "$lt_cv_ld_force_load" >&6; }
7364 case $host_os in
7365 rhapsody* | darwin1.[012])
7366 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7367 darwin1.*)
7368 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7369 darwin*) # darwin 5.x on
7370 # if running on 10.5 or later, the deployment target defaults
7371 # to the OS version, if on x86, and 10.4, the deployment
7372 # target defaults to 10.4. Don't you love it?
7373 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7374 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7375 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7376 10.[012][,.]*)
7377 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7378 10.*)
7379 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7380 esac
7382 esac
7383 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7384 _lt_dar_single_mod='$single_module'
7386 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7387 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7388 else
7389 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7391 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7392 _lt_dsymutil='~$DSYMUTIL $lib || :'
7393 else
7394 _lt_dsymutil=
7397 esac
7399 ac_ext=c
7400 ac_cpp='$CPP $CPPFLAGS'
7401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7405 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7406 # On Suns, sometimes $CPP names a directory.
7407 if test -n "$CPP" && test -d "$CPP"; then
7408 CPP=
7410 if test -z "$CPP"; then
7411 if test "${ac_cv_prog_CPP+set}" = set; then :
7412 $as_echo_n "(cached) " >&6
7413 else
7414 # Double quotes because CPP needs to be expanded
7415 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7417 ac_preproc_ok=false
7418 for ac_c_preproc_warn_flag in '' yes
7420 # Use a header file that comes with gcc, so configuring glibc
7421 # with a fresh cross-compiler works.
7422 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7423 # <limits.h> exists even on freestanding compilers.
7424 # On the NeXT, cc -E runs the code through the compiler's parser,
7425 # not just through cpp. "Syntax error" is here to catch this case.
7426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7427 /* end confdefs.h. */
7428 #ifdef __STDC__
7429 # include <limits.h>
7430 #else
7431 # include <assert.h>
7432 #endif
7433 Syntax error
7434 _ACEOF
7435 if ac_fn_c_try_cpp "$LINENO"; then :
7437 else
7438 # Broken: fails on valid input.
7439 continue
7441 rm -f conftest.err conftest.$ac_ext
7443 # OK, works on sane cases. Now check whether nonexistent headers
7444 # can be detected and how.
7445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7446 /* end confdefs.h. */
7447 #include <ac_nonexistent.h>
7448 _ACEOF
7449 if ac_fn_c_try_cpp "$LINENO"; then :
7450 # Broken: success on invalid input.
7451 continue
7452 else
7453 # Passes both tests.
7454 ac_preproc_ok=:
7455 break
7457 rm -f conftest.err conftest.$ac_ext
7459 done
7460 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7461 rm -f conftest.err conftest.$ac_ext
7462 if $ac_preproc_ok; then :
7463 break
7466 done
7467 ac_cv_prog_CPP=$CPP
7470 CPP=$ac_cv_prog_CPP
7471 else
7472 ac_cv_prog_CPP=$CPP
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7475 $as_echo "$CPP" >&6; }
7476 ac_preproc_ok=false
7477 for ac_c_preproc_warn_flag in '' yes
7479 # Use a header file that comes with gcc, so configuring glibc
7480 # with a fresh cross-compiler works.
7481 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7482 # <limits.h> exists even on freestanding compilers.
7483 # On the NeXT, cc -E runs the code through the compiler's parser,
7484 # not just through cpp. "Syntax error" is here to catch this case.
7485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7486 /* end confdefs.h. */
7487 #ifdef __STDC__
7488 # include <limits.h>
7489 #else
7490 # include <assert.h>
7491 #endif
7492 Syntax error
7493 _ACEOF
7494 if ac_fn_c_try_cpp "$LINENO"; then :
7496 else
7497 # Broken: fails on valid input.
7498 continue
7500 rm -f conftest.err conftest.$ac_ext
7502 # OK, works on sane cases. Now check whether nonexistent headers
7503 # can be detected and how.
7504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7505 /* end confdefs.h. */
7506 #include <ac_nonexistent.h>
7507 _ACEOF
7508 if ac_fn_c_try_cpp "$LINENO"; then :
7509 # Broken: success on invalid input.
7510 continue
7511 else
7512 # Passes both tests.
7513 ac_preproc_ok=:
7514 break
7516 rm -f conftest.err conftest.$ac_ext
7518 done
7519 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7520 rm -f conftest.err conftest.$ac_ext
7521 if $ac_preproc_ok; then :
7523 else
7524 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7526 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7527 See \`config.log' for more details." "$LINENO" 5; }
7530 ac_ext=c
7531 ac_cpp='$CPP $CPPFLAGS'
7532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7538 $as_echo_n "checking for ANSI C header files... " >&6; }
7539 if test "${ac_cv_header_stdc+set}" = set; then :
7540 $as_echo_n "(cached) " >&6
7541 else
7542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7543 /* end confdefs.h. */
7544 #include <stdlib.h>
7545 #include <stdarg.h>
7546 #include <string.h>
7547 #include <float.h>
7550 main ()
7554 return 0;
7556 _ACEOF
7557 if ac_fn_c_try_compile "$LINENO"; then :
7558 ac_cv_header_stdc=yes
7559 else
7560 ac_cv_header_stdc=no
7562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7564 if test $ac_cv_header_stdc = yes; then
7565 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7567 /* end confdefs.h. */
7568 #include <string.h>
7570 _ACEOF
7571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7572 $EGREP "memchr" >/dev/null 2>&1; then :
7574 else
7575 ac_cv_header_stdc=no
7577 rm -f conftest*
7581 if test $ac_cv_header_stdc = yes; then
7582 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7584 /* end confdefs.h. */
7585 #include <stdlib.h>
7587 _ACEOF
7588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7589 $EGREP "free" >/dev/null 2>&1; then :
7591 else
7592 ac_cv_header_stdc=no
7594 rm -f conftest*
7598 if test $ac_cv_header_stdc = yes; then
7599 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7600 if test "$cross_compiling" = yes; then :
7602 else
7603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7604 /* end confdefs.h. */
7605 #include <ctype.h>
7606 #include <stdlib.h>
7607 #if ((' ' & 0x0FF) == 0x020)
7608 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7609 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7610 #else
7611 # define ISLOWER(c) \
7612 (('a' <= (c) && (c) <= 'i') \
7613 || ('j' <= (c) && (c) <= 'r') \
7614 || ('s' <= (c) && (c) <= 'z'))
7615 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7616 #endif
7618 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7620 main ()
7622 int i;
7623 for (i = 0; i < 256; i++)
7624 if (XOR (islower (i), ISLOWER (i))
7625 || toupper (i) != TOUPPER (i))
7626 return 2;
7627 return 0;
7629 _ACEOF
7630 if ac_fn_c_try_run "$LINENO"; then :
7632 else
7633 ac_cv_header_stdc=no
7635 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7636 conftest.$ac_objext conftest.beam conftest.$ac_ext
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7642 $as_echo "$ac_cv_header_stdc" >&6; }
7643 if test $ac_cv_header_stdc = yes; then
7645 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7649 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7650 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7651 inttypes.h stdint.h unistd.h
7652 do :
7653 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7654 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7656 eval as_val=\$$as_ac_Header
7657 if test "x$as_val" = x""yes; then :
7658 cat >>confdefs.h <<_ACEOF
7659 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7660 _ACEOF
7664 done
7667 for ac_header in dlfcn.h
7668 do :
7669 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7671 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7672 cat >>confdefs.h <<_ACEOF
7673 #define HAVE_DLFCN_H 1
7674 _ACEOF
7678 done
7684 # Set options
7688 enable_dlopen=no
7691 enable_win32_dll=no
7694 # Check whether --enable-shared was given.
7695 if test "${enable_shared+set}" = set; then :
7696 enableval=$enable_shared; p=${PACKAGE-default}
7697 case $enableval in
7698 yes) enable_shared=yes ;;
7699 no) enable_shared=no ;;
7701 enable_shared=no
7702 # Look at the argument we got. We use all the common list separators.
7703 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7704 for pkg in $enableval; do
7705 IFS="$lt_save_ifs"
7706 if test "X$pkg" = "X$p"; then
7707 enable_shared=yes
7709 done
7710 IFS="$lt_save_ifs"
7712 esac
7713 else
7714 enable_shared=yes
7725 # Check whether --enable-static was given.
7726 if test "${enable_static+set}" = set; then :
7727 enableval=$enable_static; p=${PACKAGE-default}
7728 case $enableval in
7729 yes) enable_static=yes ;;
7730 no) enable_static=no ;;
7732 enable_static=no
7733 # Look at the argument we got. We use all the common list separators.
7734 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7735 for pkg in $enableval; do
7736 IFS="$lt_save_ifs"
7737 if test "X$pkg" = "X$p"; then
7738 enable_static=yes
7740 done
7741 IFS="$lt_save_ifs"
7743 esac
7744 else
7745 enable_static=yes
7757 # Check whether --with-pic was given.
7758 if test "${with_pic+set}" = set; then :
7759 withval=$with_pic; pic_mode="$withval"
7760 else
7761 pic_mode=default
7765 test -z "$pic_mode" && pic_mode=default
7773 # Check whether --enable-fast-install was given.
7774 if test "${enable_fast_install+set}" = set; then :
7775 enableval=$enable_fast_install; p=${PACKAGE-default}
7776 case $enableval in
7777 yes) enable_fast_install=yes ;;
7778 no) enable_fast_install=no ;;
7780 enable_fast_install=no
7781 # Look at the argument we got. We use all the common list separators.
7782 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7783 for pkg in $enableval; do
7784 IFS="$lt_save_ifs"
7785 if test "X$pkg" = "X$p"; then
7786 enable_fast_install=yes
7788 done
7789 IFS="$lt_save_ifs"
7791 esac
7792 else
7793 enable_fast_install=yes
7806 # This can be used to rebuild libtool when needed
7807 LIBTOOL_DEPS="$ltmain"
7809 # Always use our own libtool.
7810 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7837 test -z "$LN_S" && LN_S="ln -s"
7852 if test -n "${ZSH_VERSION+set}" ; then
7853 setopt NO_GLOB_SUBST
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7857 $as_echo_n "checking for objdir... " >&6; }
7858 if test "${lt_cv_objdir+set}" = set; then :
7859 $as_echo_n "(cached) " >&6
7860 else
7861 rm -f .libs 2>/dev/null
7862 mkdir .libs 2>/dev/null
7863 if test -d .libs; then
7864 lt_cv_objdir=.libs
7865 else
7866 # MS-DOS does not allow filenames that begin with a dot.
7867 lt_cv_objdir=_libs
7869 rmdir .libs 2>/dev/null
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7872 $as_echo "$lt_cv_objdir" >&6; }
7873 objdir=$lt_cv_objdir
7879 cat >>confdefs.h <<_ACEOF
7880 #define LT_OBJDIR "$lt_cv_objdir/"
7881 _ACEOF
7886 case $host_os in
7887 aix3*)
7888 # AIX sometimes has problems with the GCC collect2 program. For some
7889 # reason, if we set the COLLECT_NAMES environment variable, the problems
7890 # vanish in a puff of smoke.
7891 if test "X${COLLECT_NAMES+set}" != Xset; then
7892 COLLECT_NAMES=
7893 export COLLECT_NAMES
7896 esac
7898 # Global variables:
7899 ofile=libtool
7900 can_build_shared=yes
7902 # All known linkers require a `.a' archive for static linking (except MSVC,
7903 # which needs '.lib').
7904 libext=a
7906 with_gnu_ld="$lt_cv_prog_gnu_ld"
7908 old_CC="$CC"
7909 old_CFLAGS="$CFLAGS"
7911 # Set sane defaults for various variables
7912 test -z "$CC" && CC=cc
7913 test -z "$LTCC" && LTCC=$CC
7914 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7915 test -z "$LD" && LD=ld
7916 test -z "$ac_objext" && ac_objext=o
7918 for cc_temp in $compiler""; do
7919 case $cc_temp in
7920 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7921 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7922 \-*) ;;
7923 *) break;;
7924 esac
7925 done
7926 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7929 # Only perform the check for file, if the check method requires it
7930 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7931 case $deplibs_check_method in
7932 file_magic*)
7933 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7935 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7936 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7937 $as_echo_n "(cached) " >&6
7938 else
7939 case $MAGIC_CMD in
7940 [\\/*] | ?:[\\/]*)
7941 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7944 lt_save_MAGIC_CMD="$MAGIC_CMD"
7945 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7946 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7947 for ac_dir in $ac_dummy; do
7948 IFS="$lt_save_ifs"
7949 test -z "$ac_dir" && ac_dir=.
7950 if test -f $ac_dir/${ac_tool_prefix}file; then
7951 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7952 if test -n "$file_magic_test_file"; then
7953 case $deplibs_check_method in
7954 "file_magic "*)
7955 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7956 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7957 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7958 $EGREP "$file_magic_regex" > /dev/null; then
7960 else
7961 cat <<_LT_EOF 1>&2
7963 *** Warning: the command libtool uses to detect shared libraries,
7964 *** $file_magic_cmd, produces output that libtool cannot recognize.
7965 *** The result is that libtool may fail to recognize shared libraries
7966 *** as such. This will affect the creation of libtool libraries that
7967 *** depend on shared libraries, but programs linked with such libtool
7968 *** libraries will work regardless of this problem. Nevertheless, you
7969 *** may want to report the problem to your system manager and/or to
7970 *** bug-libtool@gnu.org
7972 _LT_EOF
7973 fi ;;
7974 esac
7976 break
7978 done
7979 IFS="$lt_save_ifs"
7980 MAGIC_CMD="$lt_save_MAGIC_CMD"
7982 esac
7985 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7986 if test -n "$MAGIC_CMD"; then
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7988 $as_echo "$MAGIC_CMD" >&6; }
7989 else
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7991 $as_echo "no" >&6; }
7998 if test -z "$lt_cv_path_MAGIC_CMD"; then
7999 if test -n "$ac_tool_prefix"; then
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8001 $as_echo_n "checking for file... " >&6; }
8002 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8003 $as_echo_n "(cached) " >&6
8004 else
8005 case $MAGIC_CMD in
8006 [\\/*] | ?:[\\/]*)
8007 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8010 lt_save_MAGIC_CMD="$MAGIC_CMD"
8011 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8012 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8013 for ac_dir in $ac_dummy; do
8014 IFS="$lt_save_ifs"
8015 test -z "$ac_dir" && ac_dir=.
8016 if test -f $ac_dir/file; then
8017 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8018 if test -n "$file_magic_test_file"; then
8019 case $deplibs_check_method in
8020 "file_magic "*)
8021 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8022 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8023 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8024 $EGREP "$file_magic_regex" > /dev/null; then
8026 else
8027 cat <<_LT_EOF 1>&2
8029 *** Warning: the command libtool uses to detect shared libraries,
8030 *** $file_magic_cmd, produces output that libtool cannot recognize.
8031 *** The result is that libtool may fail to recognize shared libraries
8032 *** as such. This will affect the creation of libtool libraries that
8033 *** depend on shared libraries, but programs linked with such libtool
8034 *** libraries will work regardless of this problem. Nevertheless, you
8035 *** may want to report the problem to your system manager and/or to
8036 *** bug-libtool@gnu.org
8038 _LT_EOF
8039 fi ;;
8040 esac
8042 break
8044 done
8045 IFS="$lt_save_ifs"
8046 MAGIC_CMD="$lt_save_MAGIC_CMD"
8048 esac
8051 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8052 if test -n "$MAGIC_CMD"; then
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8054 $as_echo "$MAGIC_CMD" >&6; }
8055 else
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8057 $as_echo "no" >&6; }
8061 else
8062 MAGIC_CMD=:
8068 esac
8070 # Use C for the default configuration in the libtool script
8072 lt_save_CC="$CC"
8073 ac_ext=c
8074 ac_cpp='$CPP $CPPFLAGS'
8075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8080 # Source file extension for C test sources.
8081 ac_ext=c
8083 # Object file extension for compiled C test sources.
8084 objext=o
8085 objext=$objext
8087 # Code to be used in simple compile tests
8088 lt_simple_compile_test_code="int some_variable = 0;"
8090 # Code to be used in simple link tests
8091 lt_simple_link_test_code='int main(){return(0);}'
8099 # If no C compiler was specified, use CC.
8100 LTCC=${LTCC-"$CC"}
8102 # If no C compiler flags were specified, use CFLAGS.
8103 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8105 # Allow CC to be a program name with arguments.
8106 compiler=$CC
8108 # Save the default compiler, since it gets overwritten when the other
8109 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8110 compiler_DEFAULT=$CC
8112 # save warnings/boilerplate of simple test code
8113 ac_outfile=conftest.$ac_objext
8114 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8115 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8116 _lt_compiler_boilerplate=`cat conftest.err`
8117 $RM conftest*
8119 ac_outfile=conftest.$ac_objext
8120 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8121 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8122 _lt_linker_boilerplate=`cat conftest.err`
8123 $RM -r conftest*
8126 ## CAVEAT EMPTOR:
8127 ## There is no encapsulation within the following macros, do not change
8128 ## the running order or otherwise move them around unless you know exactly
8129 ## what you are doing...
8130 if test -n "$compiler"; then
8132 lt_prog_compiler_no_builtin_flag=
8134 if test "$GCC" = yes; then
8135 case $cc_basename in
8136 nvcc*)
8137 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8139 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8140 esac
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8143 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8144 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8145 $as_echo_n "(cached) " >&6
8146 else
8147 lt_cv_prog_compiler_rtti_exceptions=no
8148 ac_outfile=conftest.$ac_objext
8149 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8150 lt_compiler_flag="-fno-rtti -fno-exceptions"
8151 # Insert the option either (1) after the last *FLAGS variable, or
8152 # (2) before a word containing "conftest.", or (3) at the end.
8153 # Note that $ac_compile itself does not contain backslashes and begins
8154 # with a dollar sign (not a hyphen), so the echo should work correctly.
8155 # The option is referenced via a variable to avoid confusing sed.
8156 lt_compile=`echo "$ac_compile" | $SED \
8157 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8158 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8159 -e 's:$: $lt_compiler_flag:'`
8160 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8161 (eval "$lt_compile" 2>conftest.err)
8162 ac_status=$?
8163 cat conftest.err >&5
8164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165 if (exit $ac_status) && test -s "$ac_outfile"; then
8166 # The compiler can only warn and ignore the option if not recognized
8167 # So say no if there are warnings other than the usual output.
8168 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8169 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8170 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8171 lt_cv_prog_compiler_rtti_exceptions=yes
8174 $RM conftest*
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8178 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8180 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8181 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8182 else
8193 lt_prog_compiler_wl=
8194 lt_prog_compiler_pic=
8195 lt_prog_compiler_static=
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8198 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8200 if test "$GCC" = yes; then
8201 lt_prog_compiler_wl='-Wl,'
8202 lt_prog_compiler_static='-static'
8204 case $host_os in
8205 aix*)
8206 # All AIX code is PIC.
8207 if test "$host_cpu" = ia64; then
8208 # AIX 5 now supports IA64 processor
8209 lt_prog_compiler_static='-Bstatic'
8211 lt_prog_compiler_pic='-fPIC'
8214 amigaos*)
8215 case $host_cpu in
8216 powerpc)
8217 # see comment about AmigaOS4 .so support
8218 lt_prog_compiler_pic='-fPIC'
8220 m68k)
8221 # FIXME: we need at least 68020 code to build shared libraries, but
8222 # adding the `-m68020' flag to GCC prevents building anything better,
8223 # like `-m68040'.
8224 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8226 esac
8229 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8230 # PIC is the default for these OSes.
8233 mingw* | cygwin* | pw32* | os2* | cegcc*)
8234 # This hack is so that the source file can tell whether it is being
8235 # built for inclusion in a dll (and should export symbols for example).
8236 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8237 # (--disable-auto-import) libraries
8238 lt_prog_compiler_pic='-DDLL_EXPORT'
8241 darwin* | rhapsody*)
8242 # PIC is the default on this platform
8243 # Common symbols not allowed in MH_DYLIB files
8244 lt_prog_compiler_pic='-fno-common'
8247 haiku*)
8248 # PIC is the default for Haiku.
8249 # The "-static" flag exists, but is broken.
8250 lt_prog_compiler_static=
8253 hpux*)
8254 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8255 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8256 # sets the default TLS model and affects inlining.
8257 case $host_cpu in
8258 hppa*64*)
8259 # +Z the default
8262 lt_prog_compiler_pic='-fPIC'
8264 esac
8267 interix[3-9]*)
8268 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8269 # Instead, we relocate shared libraries at runtime.
8272 msdosdjgpp*)
8273 # Just because we use GCC doesn't mean we suddenly get shared libraries
8274 # on systems that don't support them.
8275 lt_prog_compiler_can_build_shared=no
8276 enable_shared=no
8279 *nto* | *qnx*)
8280 # QNX uses GNU C++, but need to define -shared option too, otherwise
8281 # it will coredump.
8282 lt_prog_compiler_pic='-fPIC -shared'
8285 sysv4*MP*)
8286 if test -d /usr/nec; then
8287 lt_prog_compiler_pic=-Kconform_pic
8292 lt_prog_compiler_pic='-fPIC'
8294 esac
8296 case $cc_basename in
8297 nvcc*) # Cuda Compiler Driver 2.2
8298 lt_prog_compiler_wl='-Xlinker '
8299 lt_prog_compiler_pic='-Xcompiler -fPIC'
8301 esac
8302 else
8303 # PORTME Check for flag to pass linker flags through the system compiler.
8304 case $host_os in
8305 aix*)
8306 lt_prog_compiler_wl='-Wl,'
8307 if test "$host_cpu" = ia64; then
8308 # AIX 5 now supports IA64 processor
8309 lt_prog_compiler_static='-Bstatic'
8310 else
8311 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8315 mingw* | cygwin* | pw32* | os2* | cegcc*)
8316 # This hack is so that the source file can tell whether it is being
8317 # built for inclusion in a dll (and should export symbols for example).
8318 lt_prog_compiler_pic='-DDLL_EXPORT'
8321 hpux9* | hpux10* | hpux11*)
8322 lt_prog_compiler_wl='-Wl,'
8323 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8324 # not for PA HP-UX.
8325 case $host_cpu in
8326 hppa*64*|ia64*)
8327 # +Z the default
8330 lt_prog_compiler_pic='+Z'
8332 esac
8333 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8334 lt_prog_compiler_static='${wl}-a ${wl}archive'
8337 irix5* | irix6* | nonstopux*)
8338 lt_prog_compiler_wl='-Wl,'
8339 # PIC (with -KPIC) is the default.
8340 lt_prog_compiler_static='-non_shared'
8343 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8344 case $cc_basename in
8345 # old Intel for x86_64 which still supported -KPIC.
8346 ecc*)
8347 lt_prog_compiler_wl='-Wl,'
8348 lt_prog_compiler_pic='-KPIC'
8349 lt_prog_compiler_static='-static'
8351 # icc used to be incompatible with GCC.
8352 # ICC 10 doesn't accept -KPIC any more.
8353 icc* | ifort*)
8354 lt_prog_compiler_wl='-Wl,'
8355 lt_prog_compiler_pic='-fPIC'
8356 lt_prog_compiler_static='-static'
8358 # Lahey Fortran 8.1.
8359 lf95*)
8360 lt_prog_compiler_wl='-Wl,'
8361 lt_prog_compiler_pic='--shared'
8362 lt_prog_compiler_static='--static'
8364 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8365 # Portland Group compilers (*not* the Pentium gcc compiler,
8366 # which looks to be a dead project)
8367 lt_prog_compiler_wl='-Wl,'
8368 lt_prog_compiler_pic='-fpic'
8369 lt_prog_compiler_static='-Bstatic'
8371 ccc*)
8372 lt_prog_compiler_wl='-Wl,'
8373 # All Alpha code is PIC.
8374 lt_prog_compiler_static='-non_shared'
8376 xl* | bgxl* | bgf* | mpixl*)
8377 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8378 lt_prog_compiler_wl='-Wl,'
8379 lt_prog_compiler_pic='-qpic'
8380 lt_prog_compiler_static='-qstaticlink'
8383 case `$CC -V 2>&1 | sed 5q` in
8384 *Sun\ F* | *Sun*Fortran*)
8385 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8386 lt_prog_compiler_pic='-KPIC'
8387 lt_prog_compiler_static='-Bstatic'
8388 lt_prog_compiler_wl=''
8390 *Sun\ C*)
8391 # Sun C 5.9
8392 lt_prog_compiler_pic='-KPIC'
8393 lt_prog_compiler_static='-Bstatic'
8394 lt_prog_compiler_wl='-Wl,'
8396 esac
8398 esac
8401 newsos6)
8402 lt_prog_compiler_pic='-KPIC'
8403 lt_prog_compiler_static='-Bstatic'
8406 *nto* | *qnx*)
8407 # QNX uses GNU C++, but need to define -shared option too, otherwise
8408 # it will coredump.
8409 lt_prog_compiler_pic='-fPIC -shared'
8412 osf3* | osf4* | osf5*)
8413 lt_prog_compiler_wl='-Wl,'
8414 # All OSF/1 code is PIC.
8415 lt_prog_compiler_static='-non_shared'
8418 rdos*)
8419 lt_prog_compiler_static='-non_shared'
8422 solaris*)
8423 lt_prog_compiler_pic='-KPIC'
8424 lt_prog_compiler_static='-Bstatic'
8425 case $cc_basename in
8426 f77* | f90* | f95*)
8427 lt_prog_compiler_wl='-Qoption ld ';;
8429 lt_prog_compiler_wl='-Wl,';;
8430 esac
8433 sunos4*)
8434 lt_prog_compiler_wl='-Qoption ld '
8435 lt_prog_compiler_pic='-PIC'
8436 lt_prog_compiler_static='-Bstatic'
8439 sysv4 | sysv4.2uw2* | sysv4.3*)
8440 lt_prog_compiler_wl='-Wl,'
8441 lt_prog_compiler_pic='-KPIC'
8442 lt_prog_compiler_static='-Bstatic'
8445 sysv4*MP*)
8446 if test -d /usr/nec ;then
8447 lt_prog_compiler_pic='-Kconform_pic'
8448 lt_prog_compiler_static='-Bstatic'
8452 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8453 lt_prog_compiler_wl='-Wl,'
8454 lt_prog_compiler_pic='-KPIC'
8455 lt_prog_compiler_static='-Bstatic'
8458 unicos*)
8459 lt_prog_compiler_wl='-Wl,'
8460 lt_prog_compiler_can_build_shared=no
8463 uts4*)
8464 lt_prog_compiler_pic='-pic'
8465 lt_prog_compiler_static='-Bstatic'
8469 lt_prog_compiler_can_build_shared=no
8471 esac
8474 case $host_os in
8475 # For platforms which do not support PIC, -DPIC is meaningless:
8476 *djgpp*)
8477 lt_prog_compiler_pic=
8480 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8482 esac
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8484 $as_echo "$lt_prog_compiler_pic" >&6; }
8492 # Check to make sure the PIC flag actually works.
8494 if test -n "$lt_prog_compiler_pic"; then
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8496 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8497 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8498 $as_echo_n "(cached) " >&6
8499 else
8500 lt_cv_prog_compiler_pic_works=no
8501 ac_outfile=conftest.$ac_objext
8502 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8503 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8504 # Insert the option either (1) after the last *FLAGS variable, or
8505 # (2) before a word containing "conftest.", or (3) at the end.
8506 # Note that $ac_compile itself does not contain backslashes and begins
8507 # with a dollar sign (not a hyphen), so the echo should work correctly.
8508 # The option is referenced via a variable to avoid confusing sed.
8509 lt_compile=`echo "$ac_compile" | $SED \
8510 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8511 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8512 -e 's:$: $lt_compiler_flag:'`
8513 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8514 (eval "$lt_compile" 2>conftest.err)
8515 ac_status=$?
8516 cat conftest.err >&5
8517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518 if (exit $ac_status) && test -s "$ac_outfile"; then
8519 # The compiler can only warn and ignore the option if not recognized
8520 # So say no if there are warnings other than the usual output.
8521 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8522 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8523 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8524 lt_cv_prog_compiler_pic_works=yes
8527 $RM conftest*
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8531 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8533 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8534 case $lt_prog_compiler_pic in
8535 "" | " "*) ;;
8536 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8537 esac
8538 else
8539 lt_prog_compiler_pic=
8540 lt_prog_compiler_can_build_shared=no
8551 # Check to make sure the static flag actually works.
8553 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8555 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8556 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8557 $as_echo_n "(cached) " >&6
8558 else
8559 lt_cv_prog_compiler_static_works=no
8560 save_LDFLAGS="$LDFLAGS"
8561 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8562 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8563 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8564 # The linker can only warn and ignore the option if not recognized
8565 # So say no if there are warnings
8566 if test -s conftest.err; then
8567 # Append any errors to the config.log.
8568 cat conftest.err 1>&5
8569 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8570 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8571 if diff conftest.exp conftest.er2 >/dev/null; then
8572 lt_cv_prog_compiler_static_works=yes
8574 else
8575 lt_cv_prog_compiler_static_works=yes
8578 $RM -r conftest*
8579 LDFLAGS="$save_LDFLAGS"
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8583 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8585 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8587 else
8588 lt_prog_compiler_static=
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8598 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8599 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8600 $as_echo_n "(cached) " >&6
8601 else
8602 lt_cv_prog_compiler_c_o=no
8603 $RM -r conftest 2>/dev/null
8604 mkdir conftest
8605 cd conftest
8606 mkdir out
8607 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8609 lt_compiler_flag="-o out/conftest2.$ac_objext"
8610 # Insert the option either (1) after the last *FLAGS variable, or
8611 # (2) before a word containing "conftest.", or (3) at the end.
8612 # Note that $ac_compile itself does not contain backslashes and begins
8613 # with a dollar sign (not a hyphen), so the echo should work correctly.
8614 lt_compile=`echo "$ac_compile" | $SED \
8615 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8616 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8617 -e 's:$: $lt_compiler_flag:'`
8618 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8619 (eval "$lt_compile" 2>out/conftest.err)
8620 ac_status=$?
8621 cat out/conftest.err >&5
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8624 then
8625 # The compiler can only warn and ignore the option if not recognized
8626 # So say no if there are warnings
8627 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8628 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8629 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8630 lt_cv_prog_compiler_c_o=yes
8633 chmod u+w . 2>&5
8634 $RM conftest*
8635 # SGI C++ compiler will create directory out/ii_files/ for
8636 # template instantiation
8637 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8638 $RM out/* && rmdir out
8639 cd ..
8640 $RM -r conftest
8641 $RM conftest*
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8645 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8653 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8654 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8655 $as_echo_n "(cached) " >&6
8656 else
8657 lt_cv_prog_compiler_c_o=no
8658 $RM -r conftest 2>/dev/null
8659 mkdir conftest
8660 cd conftest
8661 mkdir out
8662 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8664 lt_compiler_flag="-o out/conftest2.$ac_objext"
8665 # Insert the option either (1) after the last *FLAGS variable, or
8666 # (2) before a word containing "conftest.", or (3) at the end.
8667 # Note that $ac_compile itself does not contain backslashes and begins
8668 # with a dollar sign (not a hyphen), so the echo should work correctly.
8669 lt_compile=`echo "$ac_compile" | $SED \
8670 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8671 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8672 -e 's:$: $lt_compiler_flag:'`
8673 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8674 (eval "$lt_compile" 2>out/conftest.err)
8675 ac_status=$?
8676 cat out/conftest.err >&5
8677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8678 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8679 then
8680 # The compiler can only warn and ignore the option if not recognized
8681 # So say no if there are warnings
8682 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8683 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8684 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8685 lt_cv_prog_compiler_c_o=yes
8688 chmod u+w . 2>&5
8689 $RM conftest*
8690 # SGI C++ compiler will create directory out/ii_files/ for
8691 # template instantiation
8692 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8693 $RM out/* && rmdir out
8694 cd ..
8695 $RM -r conftest
8696 $RM conftest*
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8700 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8705 hard_links="nottested"
8706 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8707 # do not overwrite the value of need_locks provided by the user
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8709 $as_echo_n "checking if we can lock with hard links... " >&6; }
8710 hard_links=yes
8711 $RM conftest*
8712 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8713 touch conftest.a
8714 ln conftest.a conftest.b 2>&5 || hard_links=no
8715 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8717 $as_echo "$hard_links" >&6; }
8718 if test "$hard_links" = no; then
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8720 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8721 need_locks=warn
8723 else
8724 need_locks=no
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8733 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8735 runpath_var=
8736 allow_undefined_flag=
8737 always_export_symbols=no
8738 archive_cmds=
8739 archive_expsym_cmds=
8740 compiler_needs_object=no
8741 enable_shared_with_static_runtimes=no
8742 export_dynamic_flag_spec=
8743 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8744 hardcode_automatic=no
8745 hardcode_direct=no
8746 hardcode_direct_absolute=no
8747 hardcode_libdir_flag_spec=
8748 hardcode_libdir_flag_spec_ld=
8749 hardcode_libdir_separator=
8750 hardcode_minus_L=no
8751 hardcode_shlibpath_var=unsupported
8752 inherit_rpath=no
8753 link_all_deplibs=unknown
8754 module_cmds=
8755 module_expsym_cmds=
8756 old_archive_from_new_cmds=
8757 old_archive_from_expsyms_cmds=
8758 thread_safe_flag_spec=
8759 whole_archive_flag_spec=
8760 # include_expsyms should be a list of space-separated symbols to be *always*
8761 # included in the symbol list
8762 include_expsyms=
8763 # exclude_expsyms can be an extended regexp of symbols to exclude
8764 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8765 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8766 # as well as any symbol that contains `d'.
8767 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8768 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8769 # platforms (ab)use it in PIC code, but their linkers get confused if
8770 # the symbol is explicitly referenced. Since portable code cannot
8771 # rely on this symbol name, it's probably fine to never include it in
8772 # preloaded symbol tables.
8773 # Exclude shared library initialization/finalization symbols.
8774 extract_expsyms_cmds=
8776 case $host_os in
8777 cygwin* | mingw* | pw32* | cegcc*)
8778 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8779 # When not using gcc, we currently assume that we are using
8780 # Microsoft Visual C++.
8781 if test "$GCC" != yes; then
8782 with_gnu_ld=no
8785 interix*)
8786 # we just hope/assume this is gcc and not c89 (= MSVC++)
8787 with_gnu_ld=yes
8789 openbsd*)
8790 with_gnu_ld=no
8792 esac
8794 ld_shlibs=yes
8796 # On some targets, GNU ld is compatible enough with the native linker
8797 # that we're better off using the native interface for both.
8798 lt_use_gnu_ld_interface=no
8799 if test "$with_gnu_ld" = yes; then
8800 case $host_os in
8801 aix*)
8802 # The AIX port of GNU ld has always aspired to compatibility
8803 # with the native linker. However, as the warning in the GNU ld
8804 # block says, versions before 2.19.5* couldn't really create working
8805 # shared libraries, regardless of the interface used.
8806 case `$LD -v 2>&1` in
8807 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8808 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8809 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8811 lt_use_gnu_ld_interface=yes
8813 esac
8816 lt_use_gnu_ld_interface=yes
8818 esac
8821 if test "$lt_use_gnu_ld_interface" = yes; then
8822 # If archive_cmds runs LD, not CC, wlarc should be empty
8823 wlarc='${wl}'
8825 # Set some defaults for GNU ld with shared library support. These
8826 # are reset later if shared libraries are not supported. Putting them
8827 # here allows them to be overridden if necessary.
8828 runpath_var=LD_RUN_PATH
8829 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8830 export_dynamic_flag_spec='${wl}--export-dynamic'
8831 # ancient GNU ld didn't support --whole-archive et. al.
8832 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8833 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8834 else
8835 whole_archive_flag_spec=
8837 supports_anon_versioning=no
8838 case `$LD -v 2>&1` in
8839 *GNU\ gold*) supports_anon_versioning=yes ;;
8840 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8841 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8842 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8843 *\ 2.11.*) ;; # other 2.11 versions
8844 *) supports_anon_versioning=yes ;;
8845 esac
8847 # See if GNU ld supports shared libraries.
8848 case $host_os in
8849 aix[3-9]*)
8850 # On AIX/PPC, the GNU linker is very broken
8851 if test "$host_cpu" != ia64; then
8852 ld_shlibs=no
8853 cat <<_LT_EOF 1>&2
8855 *** Warning: the GNU linker, at least up to release 2.19, is reported
8856 *** to be unable to reliably create shared libraries on AIX.
8857 *** Therefore, libtool is disabling shared libraries support. If you
8858 *** really care for shared libraries, you may want to install binutils
8859 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8860 *** You will then need to restart the configuration process.
8862 _LT_EOF
8866 amigaos*)
8867 case $host_cpu in
8868 powerpc)
8869 # see comment about AmigaOS4 .so support
8870 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8871 archive_expsym_cmds=''
8873 m68k)
8874 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)'
8875 hardcode_libdir_flag_spec='-L$libdir'
8876 hardcode_minus_L=yes
8878 esac
8881 beos*)
8882 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8883 allow_undefined_flag=unsupported
8884 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8885 # support --undefined. This deserves some investigation. FIXME
8886 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8887 else
8888 ld_shlibs=no
8892 cygwin* | mingw* | pw32* | cegcc*)
8893 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8894 # as there is no search path for DLLs.
8895 hardcode_libdir_flag_spec='-L$libdir'
8896 export_dynamic_flag_spec='${wl}--export-all-symbols'
8897 allow_undefined_flag=unsupported
8898 always_export_symbols=no
8899 enable_shared_with_static_runtimes=yes
8900 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8902 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8903 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8904 # If the export-symbols file already is a .def file (1st line
8905 # is EXPORTS), use it as is; otherwise, prepend...
8906 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8907 cp $export_symbols $output_objdir/$soname.def;
8908 else
8909 echo EXPORTS > $output_objdir/$soname.def;
8910 cat $export_symbols >> $output_objdir/$soname.def;
8912 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8913 else
8914 ld_shlibs=no
8918 haiku*)
8919 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8920 link_all_deplibs=yes
8923 interix[3-9]*)
8924 hardcode_direct=no
8925 hardcode_shlibpath_var=no
8926 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8927 export_dynamic_flag_spec='${wl}-E'
8928 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8929 # Instead, shared libraries are loaded at an image base (0x10000000 by
8930 # default) and relocated if they conflict, which is a slow very memory
8931 # consuming and fragmenting process. To avoid this, we pick a random,
8932 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8933 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8934 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8935 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'
8938 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8939 tmp_diet=no
8940 if test "$host_os" = linux-dietlibc; then
8941 case $cc_basename in
8942 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8943 esac
8945 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8946 && test "$tmp_diet" = no
8947 then
8948 tmp_addflag=' $pic_flag'
8949 tmp_sharedflag='-shared'
8950 case $cc_basename,$host_cpu in
8951 pgcc*) # Portland Group C compiler
8952 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'
8953 tmp_addflag=' $pic_flag'
8955 pgf77* | pgf90* | pgf95* | pgfortran*)
8956 # Portland Group f77 and f90 compilers
8957 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'
8958 tmp_addflag=' $pic_flag -Mnomain' ;;
8959 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8960 tmp_addflag=' -i_dynamic' ;;
8961 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8962 tmp_addflag=' -i_dynamic -nofor_main' ;;
8963 ifc* | ifort*) # Intel Fortran compiler
8964 tmp_addflag=' -nofor_main' ;;
8965 lf95*) # Lahey Fortran 8.1
8966 whole_archive_flag_spec=
8967 tmp_sharedflag='--shared' ;;
8968 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8969 tmp_sharedflag='-qmkshrobj'
8970 tmp_addflag= ;;
8971 nvcc*) # Cuda Compiler Driver 2.2
8972 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'
8973 compiler_needs_object=yes
8975 esac
8976 case `$CC -V 2>&1 | sed 5q` in
8977 *Sun\ C*) # Sun C 5.9
8978 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'
8979 compiler_needs_object=yes
8980 tmp_sharedflag='-G' ;;
8981 *Sun\ F*) # Sun Fortran 8.3
8982 tmp_sharedflag='-G' ;;
8983 esac
8984 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8986 if test "x$supports_anon_versioning" = xyes; then
8987 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8988 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8989 echo "local: *; };" >> $output_objdir/$libname.ver~
8990 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8993 case $cc_basename in
8994 xlf* | bgf* | bgxlf* | mpixlf*)
8995 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8996 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8997 hardcode_libdir_flag_spec=
8998 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8999 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9000 if test "x$supports_anon_versioning" = xyes; then
9001 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9002 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9003 echo "local: *; };" >> $output_objdir/$libname.ver~
9004 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9007 esac
9008 else
9009 ld_shlibs=no
9013 netbsd*)
9014 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9015 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9016 wlarc=
9017 else
9018 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9019 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9023 solaris*)
9024 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9025 ld_shlibs=no
9026 cat <<_LT_EOF 1>&2
9028 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9029 *** create shared libraries on Solaris systems. Therefore, libtool
9030 *** is disabling shared libraries support. We urge you to upgrade GNU
9031 *** binutils to release 2.9.1 or newer. Another option is to modify
9032 *** your PATH or compiler configuration so that the native linker is
9033 *** used, and then restart.
9035 _LT_EOF
9036 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9037 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9038 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9039 else
9040 ld_shlibs=no
9044 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9045 case `$LD -v 2>&1` in
9046 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9047 ld_shlibs=no
9048 cat <<_LT_EOF 1>&2
9050 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9051 *** reliably create shared libraries on SCO systems. Therefore, libtool
9052 *** is disabling shared libraries support. We urge you to upgrade GNU
9053 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9054 *** your PATH or compiler configuration so that the native linker is
9055 *** used, and then restart.
9057 _LT_EOF
9060 # For security reasons, it is highly recommended that you always
9061 # use absolute paths for naming shared libraries, and exclude the
9062 # DT_RUNPATH tag from executables and libraries. But doing so
9063 # requires that you compile everything twice, which is a pain.
9064 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9065 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9066 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9067 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9068 else
9069 ld_shlibs=no
9072 esac
9075 sunos4*)
9076 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9077 wlarc=
9078 hardcode_direct=yes
9079 hardcode_shlibpath_var=no
9083 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9084 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9085 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9086 else
9087 ld_shlibs=no
9090 esac
9092 if test "$ld_shlibs" = no; then
9093 runpath_var=
9094 hardcode_libdir_flag_spec=
9095 export_dynamic_flag_spec=
9096 whole_archive_flag_spec=
9098 else
9099 # PORTME fill in a description of your system's linker (not GNU ld)
9100 case $host_os in
9101 aix3*)
9102 allow_undefined_flag=unsupported
9103 always_export_symbols=yes
9104 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'
9105 # Note: this linker hardcodes the directories in LIBPATH if there
9106 # are no directories specified by -L.
9107 hardcode_minus_L=yes
9108 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9109 # Neither direct hardcoding nor static linking is supported with a
9110 # broken collect2.
9111 hardcode_direct=unsupported
9115 aix[4-9]*)
9116 if test "$host_cpu" = ia64; then
9117 # On IA64, the linker does run time linking by default, so we don't
9118 # have to do anything special.
9119 aix_use_runtimelinking=no
9120 exp_sym_flag='-Bexport'
9121 no_entry_flag=""
9122 else
9123 # If we're using GNU nm, then we don't want the "-C" option.
9124 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9125 # Also, AIX nm treats weak defined symbols like other global
9126 # defined symbols, whereas GNU nm marks them as "W".
9127 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9128 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'
9129 else
9130 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'
9132 aix_use_runtimelinking=no
9134 # Test if we are trying to use run time linking or normal
9135 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9136 # need to do runtime linking.
9137 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9138 for ld_flag in $LDFLAGS; do
9139 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9140 aix_use_runtimelinking=yes
9141 break
9143 done
9145 esac
9147 exp_sym_flag='-bexport'
9148 no_entry_flag='-bnoentry'
9151 # When large executables or shared objects are built, AIX ld can
9152 # have problems creating the table of contents. If linking a library
9153 # or program results in "error TOC overflow" add -mminimal-toc to
9154 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9155 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9157 archive_cmds=''
9158 hardcode_direct=yes
9159 hardcode_direct_absolute=yes
9160 hardcode_libdir_separator=':'
9161 link_all_deplibs=yes
9162 file_list_spec='${wl}-f,'
9164 if test "$GCC" = yes; then
9165 case $host_os in aix4.[012]|aix4.[012].*)
9166 # We only want to do this on AIX 4.2 and lower, the check
9167 # below for broken collect2 doesn't work under 4.3+
9168 collect2name=`${CC} -print-prog-name=collect2`
9169 if test -f "$collect2name" &&
9170 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9171 then
9172 # We have reworked collect2
9174 else
9175 # We have old collect2
9176 hardcode_direct=unsupported
9177 # It fails to find uninstalled libraries when the uninstalled
9178 # path is not listed in the libpath. Setting hardcode_minus_L
9179 # to unsupported forces relinking
9180 hardcode_minus_L=yes
9181 hardcode_libdir_flag_spec='-L$libdir'
9182 hardcode_libdir_separator=
9185 esac
9186 shared_flag='-shared'
9187 if test "$aix_use_runtimelinking" = yes; then
9188 shared_flag="$shared_flag "'${wl}-G'
9190 else
9191 # not using gcc
9192 if test "$host_cpu" = ia64; then
9193 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9194 # chokes on -Wl,-G. The following line is correct:
9195 shared_flag='-G'
9196 else
9197 if test "$aix_use_runtimelinking" = yes; then
9198 shared_flag='${wl}-G'
9199 else
9200 shared_flag='${wl}-bM:SRE'
9205 export_dynamic_flag_spec='${wl}-bexpall'
9206 # It seems that -bexpall does not export symbols beginning with
9207 # underscore (_), so it is better to generate a list of symbols to export.
9208 always_export_symbols=yes
9209 if test "$aix_use_runtimelinking" = yes; then
9210 # Warning - without using the other runtime loading flags (-brtl),
9211 # -berok will link without error, but may produce a broken library.
9212 allow_undefined_flag='-berok'
9213 # Determine the default libpath from the value encoded in an
9214 # empty executable.
9215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9216 /* end confdefs.h. */
9219 main ()
9223 return 0;
9225 _ACEOF
9226 if ac_fn_c_try_link "$LINENO"; then :
9228 lt_aix_libpath_sed='
9229 /Import File Strings/,/^$/ {
9230 /^0/ {
9231 s/^0 *\(.*\)$/\1/
9235 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9236 # Check for a 64-bit object if we didn't find anything.
9237 if test -z "$aix_libpath"; then
9238 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9241 rm -f core conftest.err conftest.$ac_objext \
9242 conftest$ac_exeext conftest.$ac_ext
9243 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9245 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9246 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"
9247 else
9248 if test "$host_cpu" = ia64; then
9249 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9250 allow_undefined_flag="-z nodefs"
9251 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"
9252 else
9253 # Determine the default libpath from the value encoded in an
9254 # empty executable.
9255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9256 /* end confdefs.h. */
9259 main ()
9263 return 0;
9265 _ACEOF
9266 if ac_fn_c_try_link "$LINENO"; then :
9268 lt_aix_libpath_sed='
9269 /Import File Strings/,/^$/ {
9270 /^0/ {
9271 s/^0 *\(.*\)$/\1/
9275 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9276 # Check for a 64-bit object if we didn't find anything.
9277 if test -z "$aix_libpath"; then
9278 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9281 rm -f core conftest.err conftest.$ac_objext \
9282 conftest$ac_exeext conftest.$ac_ext
9283 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9285 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9286 # Warning - without using the other run time loading flags,
9287 # -berok will link without error, but may produce a broken library.
9288 no_undefined_flag=' ${wl}-bernotok'
9289 allow_undefined_flag=' ${wl}-berok'
9290 if test "$with_gnu_ld" = yes; then
9291 # We only use this code for GNU lds that support --whole-archive.
9292 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9293 else
9294 # Exported symbols can be pulled into shared objects from archives
9295 whole_archive_flag_spec='$convenience'
9297 archive_cmds_need_lc=yes
9298 # This is similar to how AIX traditionally builds its shared libraries.
9299 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'
9304 amigaos*)
9305 case $host_cpu in
9306 powerpc)
9307 # see comment about AmigaOS4 .so support
9308 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9309 archive_expsym_cmds=''
9311 m68k)
9312 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)'
9313 hardcode_libdir_flag_spec='-L$libdir'
9314 hardcode_minus_L=yes
9316 esac
9319 bsdi[45]*)
9320 export_dynamic_flag_spec=-rdynamic
9323 cygwin* | mingw* | pw32* | cegcc*)
9324 # When not using gcc, we currently assume that we are using
9325 # Microsoft Visual C++.
9326 # hardcode_libdir_flag_spec is actually meaningless, as there is
9327 # no search path for DLLs.
9328 hardcode_libdir_flag_spec=' '
9329 allow_undefined_flag=unsupported
9330 # Tell ltmain to make .lib files, not .a files.
9331 libext=lib
9332 # Tell ltmain to make .dll files, not .so files.
9333 shrext_cmds=".dll"
9334 # FIXME: Setting linknames here is a bad hack.
9335 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9336 # The linker will automatically build a .lib file if we build a DLL.
9337 old_archive_from_new_cmds='true'
9338 # FIXME: Should let the user specify the lib program.
9339 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9340 fix_srcfile_path='`cygpath -w "$srcfile"`'
9341 enable_shared_with_static_runtimes=yes
9344 darwin* | rhapsody*)
9347 archive_cmds_need_lc=no
9348 hardcode_direct=no
9349 hardcode_automatic=yes
9350 hardcode_shlibpath_var=unsupported
9351 if test "$lt_cv_ld_force_load" = "yes"; then
9352 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\"`'
9353 else
9354 whole_archive_flag_spec=''
9356 link_all_deplibs=yes
9357 allow_undefined_flag="$_lt_dar_allow_undefined"
9358 case $cc_basename in
9359 ifort*) _lt_dar_can_shared=yes ;;
9360 *) _lt_dar_can_shared=$GCC ;;
9361 esac
9362 if test "$_lt_dar_can_shared" = "yes"; then
9363 output_verbose_link_cmd=func_echo_all
9364 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9365 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9366 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}"
9367 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}"
9369 else
9370 ld_shlibs=no
9375 dgux*)
9376 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9377 hardcode_libdir_flag_spec='-L$libdir'
9378 hardcode_shlibpath_var=no
9381 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9382 # support. Future versions do this automatically, but an explicit c++rt0.o
9383 # does not break anything, and helps significantly (at the cost of a little
9384 # extra space).
9385 freebsd2.2*)
9386 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9387 hardcode_libdir_flag_spec='-R$libdir'
9388 hardcode_direct=yes
9389 hardcode_shlibpath_var=no
9392 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9393 freebsd2.*)
9394 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9395 hardcode_direct=yes
9396 hardcode_minus_L=yes
9397 hardcode_shlibpath_var=no
9400 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9401 freebsd* | dragonfly*)
9402 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9403 hardcode_libdir_flag_spec='-R$libdir'
9404 hardcode_direct=yes
9405 hardcode_shlibpath_var=no
9408 hpux9*)
9409 if test "$GCC" = yes; then
9410 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'
9411 else
9412 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'
9414 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9415 hardcode_libdir_separator=:
9416 hardcode_direct=yes
9418 # hardcode_minus_L: Not really in the search PATH,
9419 # but as the default location of the library.
9420 hardcode_minus_L=yes
9421 export_dynamic_flag_spec='${wl}-E'
9424 hpux10*)
9425 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9426 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9427 else
9428 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9430 if test "$with_gnu_ld" = no; then
9431 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9432 hardcode_libdir_flag_spec_ld='+b $libdir'
9433 hardcode_libdir_separator=:
9434 hardcode_direct=yes
9435 hardcode_direct_absolute=yes
9436 export_dynamic_flag_spec='${wl}-E'
9437 # hardcode_minus_L: Not really in the search PATH,
9438 # but as the default location of the library.
9439 hardcode_minus_L=yes
9443 hpux11*)
9444 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9445 case $host_cpu in
9446 hppa*64*)
9447 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9449 ia64*)
9450 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9453 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9455 esac
9456 else
9457 case $host_cpu in
9458 hppa*64*)
9459 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9461 ia64*)
9462 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9466 # Older versions of the 11.00 compiler do not understand -b yet
9467 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9469 $as_echo_n "checking if $CC understands -b... " >&6; }
9470 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9471 $as_echo_n "(cached) " >&6
9472 else
9473 lt_cv_prog_compiler__b=no
9474 save_LDFLAGS="$LDFLAGS"
9475 LDFLAGS="$LDFLAGS -b"
9476 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9477 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9478 # The linker can only warn and ignore the option if not recognized
9479 # So say no if there are warnings
9480 if test -s conftest.err; then
9481 # Append any errors to the config.log.
9482 cat conftest.err 1>&5
9483 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9484 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9485 if diff conftest.exp conftest.er2 >/dev/null; then
9486 lt_cv_prog_compiler__b=yes
9488 else
9489 lt_cv_prog_compiler__b=yes
9492 $RM -r conftest*
9493 LDFLAGS="$save_LDFLAGS"
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9497 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9499 if test x"$lt_cv_prog_compiler__b" = xyes; then
9500 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9501 else
9502 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9506 esac
9508 if test "$with_gnu_ld" = no; then
9509 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9510 hardcode_libdir_separator=:
9512 case $host_cpu in
9513 hppa*64*|ia64*)
9514 hardcode_direct=no
9515 hardcode_shlibpath_var=no
9518 hardcode_direct=yes
9519 hardcode_direct_absolute=yes
9520 export_dynamic_flag_spec='${wl}-E'
9522 # hardcode_minus_L: Not really in the search PATH,
9523 # but as the default location of the library.
9524 hardcode_minus_L=yes
9526 esac
9530 irix5* | irix6* | nonstopux*)
9531 if test "$GCC" = yes; then
9532 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'
9533 # Try to use the -exported_symbol ld option, if it does not
9534 # work, assume that -exports_file does not work either and
9535 # implicitly export all symbols.
9536 save_LDFLAGS="$LDFLAGS"
9537 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9539 /* end confdefs.h. */
9540 int foo(void) {}
9541 _ACEOF
9542 if ac_fn_c_try_link "$LINENO"; then :
9543 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'
9546 rm -f core conftest.err conftest.$ac_objext \
9547 conftest$ac_exeext conftest.$ac_ext
9548 LDFLAGS="$save_LDFLAGS"
9549 else
9550 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'
9551 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'
9553 archive_cmds_need_lc='no'
9554 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9555 hardcode_libdir_separator=:
9556 inherit_rpath=yes
9557 link_all_deplibs=yes
9560 netbsd*)
9561 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9562 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9563 else
9564 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9566 hardcode_libdir_flag_spec='-R$libdir'
9567 hardcode_direct=yes
9568 hardcode_shlibpath_var=no
9571 newsos6)
9572 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9573 hardcode_direct=yes
9574 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9575 hardcode_libdir_separator=:
9576 hardcode_shlibpath_var=no
9579 *nto* | *qnx*)
9582 openbsd*)
9583 if test -f /usr/libexec/ld.so; then
9584 hardcode_direct=yes
9585 hardcode_shlibpath_var=no
9586 hardcode_direct_absolute=yes
9587 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9588 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9589 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9590 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9591 export_dynamic_flag_spec='${wl}-E'
9592 else
9593 case $host_os in
9594 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9595 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9596 hardcode_libdir_flag_spec='-R$libdir'
9599 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9600 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9602 esac
9604 else
9605 ld_shlibs=no
9609 os2*)
9610 hardcode_libdir_flag_spec='-L$libdir'
9611 hardcode_minus_L=yes
9612 allow_undefined_flag=unsupported
9613 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'
9614 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9617 osf3*)
9618 if test "$GCC" = yes; then
9619 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9620 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'
9621 else
9622 allow_undefined_flag=' -expect_unresolved \*'
9623 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'
9625 archive_cmds_need_lc='no'
9626 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9627 hardcode_libdir_separator=:
9630 osf4* | osf5*) # as osf3* with the addition of -msym flag
9631 if test "$GCC" = yes; then
9632 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9633 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'
9634 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9635 else
9636 allow_undefined_flag=' -expect_unresolved \*'
9637 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'
9638 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~
9639 $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'
9641 # Both c and cxx compiler support -rpath directly
9642 hardcode_libdir_flag_spec='-rpath $libdir'
9644 archive_cmds_need_lc='no'
9645 hardcode_libdir_separator=:
9648 solaris*)
9649 no_undefined_flag=' -z defs'
9650 if test "$GCC" = yes; then
9651 wlarc='${wl}'
9652 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9653 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9654 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9655 else
9656 case `$CC -V 2>&1` in
9657 *"Compilers 5.0"*)
9658 wlarc=''
9659 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9660 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9661 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9664 wlarc='${wl}'
9665 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9666 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9667 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9669 esac
9671 hardcode_libdir_flag_spec='-R$libdir'
9672 hardcode_shlibpath_var=no
9673 case $host_os in
9674 solaris2.[0-5] | solaris2.[0-5].*) ;;
9676 # The compiler driver will combine and reorder linker options,
9677 # but understands `-z linker_flag'. GCC discards it without `$wl',
9678 # but is careful enough not to reorder.
9679 # Supported since Solaris 2.6 (maybe 2.5.1?)
9680 if test "$GCC" = yes; then
9681 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9682 else
9683 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9686 esac
9687 link_all_deplibs=yes
9690 sunos4*)
9691 if test "x$host_vendor" = xsequent; then
9692 # Use $CC to link under sequent, because it throws in some extra .o
9693 # files that make .init and .fini sections work.
9694 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9695 else
9696 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9698 hardcode_libdir_flag_spec='-L$libdir'
9699 hardcode_direct=yes
9700 hardcode_minus_L=yes
9701 hardcode_shlibpath_var=no
9704 sysv4)
9705 case $host_vendor in
9706 sni)
9707 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9708 hardcode_direct=yes # is this really true???
9710 siemens)
9711 ## LD is ld it makes a PLAMLIB
9712 ## CC just makes a GrossModule.
9713 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9714 reload_cmds='$CC -r -o $output$reload_objs'
9715 hardcode_direct=no
9717 motorola)
9718 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9719 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9721 esac
9722 runpath_var='LD_RUN_PATH'
9723 hardcode_shlibpath_var=no
9726 sysv4.3*)
9727 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9728 hardcode_shlibpath_var=no
9729 export_dynamic_flag_spec='-Bexport'
9732 sysv4*MP*)
9733 if test -d /usr/nec; then
9734 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9735 hardcode_shlibpath_var=no
9736 runpath_var=LD_RUN_PATH
9737 hardcode_runpath_var=yes
9738 ld_shlibs=yes
9742 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9743 no_undefined_flag='${wl}-z,text'
9744 archive_cmds_need_lc=no
9745 hardcode_shlibpath_var=no
9746 runpath_var='LD_RUN_PATH'
9748 if test "$GCC" = yes; then
9749 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9750 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9751 else
9752 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9753 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9757 sysv5* | sco3.2v5* | sco5v6*)
9758 # Note: We can NOT use -z defs as we might desire, because we do not
9759 # link with -lc, and that would cause any symbols used from libc to
9760 # always be unresolved, which means just about no library would
9761 # ever link correctly. If we're not using GNU ld we use -z text
9762 # though, which does catch some bad symbols but isn't as heavy-handed
9763 # as -z defs.
9764 no_undefined_flag='${wl}-z,text'
9765 allow_undefined_flag='${wl}-z,nodefs'
9766 archive_cmds_need_lc=no
9767 hardcode_shlibpath_var=no
9768 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9769 hardcode_libdir_separator=':'
9770 link_all_deplibs=yes
9771 export_dynamic_flag_spec='${wl}-Bexport'
9772 runpath_var='LD_RUN_PATH'
9774 if test "$GCC" = yes; then
9775 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9776 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9777 else
9778 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9779 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9783 uts4*)
9784 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9785 hardcode_libdir_flag_spec='-L$libdir'
9786 hardcode_shlibpath_var=no
9790 ld_shlibs=no
9792 esac
9794 if test x$host_vendor = xsni; then
9795 case $host in
9796 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9797 export_dynamic_flag_spec='${wl}-Blargedynsym'
9799 esac
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9804 $as_echo "$ld_shlibs" >&6; }
9805 test "$ld_shlibs" = no && can_build_shared=no
9807 with_gnu_ld=$with_gnu_ld
9824 # Do we need to explicitly link libc?
9826 case "x$archive_cmds_need_lc" in
9827 x|xyes)
9828 # Assume -lc should be added
9829 archive_cmds_need_lc=yes
9831 if test "$enable_shared" = yes && test "$GCC" = yes; then
9832 case $archive_cmds in
9833 *'~'*)
9834 # FIXME: we may have to deal with multi-command sequences.
9836 '$CC '*)
9837 # Test whether the compiler implicitly links with -lc since on some
9838 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9839 # to ld, don't add -lc before -lgcc.
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9841 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9842 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9843 $as_echo_n "(cached) " >&6
9844 else
9845 $RM conftest*
9846 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9848 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9849 (eval $ac_compile) 2>&5
9850 ac_status=$?
9851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9852 test $ac_status = 0; } 2>conftest.err; then
9853 soname=conftest
9854 lib=conftest
9855 libobjs=conftest.$ac_objext
9856 deplibs=
9857 wl=$lt_prog_compiler_wl
9858 pic_flag=$lt_prog_compiler_pic
9859 compiler_flags=-v
9860 linker_flags=-v
9861 verstring=
9862 output_objdir=.
9863 libname=conftest
9864 lt_save_allow_undefined_flag=$allow_undefined_flag
9865 allow_undefined_flag=
9866 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9867 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9868 ac_status=$?
9869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9870 test $ac_status = 0; }
9871 then
9872 lt_cv_archive_cmds_need_lc=no
9873 else
9874 lt_cv_archive_cmds_need_lc=yes
9876 allow_undefined_flag=$lt_save_allow_undefined_flag
9877 else
9878 cat conftest.err 1>&5
9880 $RM conftest*
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9884 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9885 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9887 esac
9890 esac
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10049 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10051 if test "$GCC" = yes; then
10052 case $host_os in
10053 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10054 *) lt_awk_arg="/^libraries:/" ;;
10055 esac
10056 case $host_os in
10057 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10058 *) lt_sed_strip_eq="s,=/,/,g" ;;
10059 esac
10060 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10061 case $lt_search_path_spec in
10062 *\;*)
10063 # if the path contains ";" then we assume it to be the separator
10064 # otherwise default to the standard path separator (i.e. ":") - it is
10065 # assumed that no part of a normal pathname contains ";" but that should
10066 # okay in the real world where ";" in dirpaths is itself problematic.
10067 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10070 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10072 esac
10073 # Ok, now we have the path, separated by spaces, we can step through it
10074 # and add multilib dir if necessary.
10075 lt_tmp_lt_search_path_spec=
10076 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10077 for lt_sys_path in $lt_search_path_spec; do
10078 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10079 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10080 else
10081 test -d "$lt_sys_path" && \
10082 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10084 done
10085 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10086 BEGIN {RS=" "; FS="/|\n";} {
10087 lt_foo="";
10088 lt_count=0;
10089 for (lt_i = NF; lt_i > 0; lt_i--) {
10090 if ($lt_i != "" && $lt_i != ".") {
10091 if ($lt_i == "..") {
10092 lt_count++;
10093 } else {
10094 if (lt_count == 0) {
10095 lt_foo="/" $lt_i lt_foo;
10096 } else {
10097 lt_count--;
10102 if (lt_foo != "") { lt_freq[lt_foo]++; }
10103 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10105 # AWK program above erroneously prepends '/' to C:/dos/paths
10106 # for these hosts.
10107 case $host_os in
10108 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10109 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10110 esac
10111 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10112 else
10113 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10115 library_names_spec=
10116 libname_spec='lib$name'
10117 soname_spec=
10118 shrext_cmds=".so"
10119 postinstall_cmds=
10120 postuninstall_cmds=
10121 finish_cmds=
10122 finish_eval=
10123 shlibpath_var=
10124 shlibpath_overrides_runpath=unknown
10125 version_type=none
10126 dynamic_linker="$host_os ld.so"
10127 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10128 need_lib_prefix=unknown
10129 hardcode_into_libs=no
10131 # when you set need_version to no, make sure it does not cause -set_version
10132 # flags to be left without arguments
10133 need_version=unknown
10135 case $host_os in
10136 aix3*)
10137 version_type=linux
10138 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10139 shlibpath_var=LIBPATH
10141 # AIX 3 has no versioning support, so we append a major version to the name.
10142 soname_spec='${libname}${release}${shared_ext}$major'
10145 aix[4-9]*)
10146 version_type=linux
10147 need_lib_prefix=no
10148 need_version=no
10149 hardcode_into_libs=yes
10150 if test "$host_cpu" = ia64; then
10151 # AIX 5 supports IA64
10152 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10153 shlibpath_var=LD_LIBRARY_PATH
10154 else
10155 # With GCC up to 2.95.x, collect2 would create an import file
10156 # for dependence libraries. The import file would start with
10157 # the line `#! .'. This would cause the generated library to
10158 # depend on `.', always an invalid library. This was fixed in
10159 # development snapshots of GCC prior to 3.0.
10160 case $host_os in
10161 aix4 | aix4.[01] | aix4.[01].*)
10162 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10163 echo ' yes '
10164 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10166 else
10167 can_build_shared=no
10170 esac
10171 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10172 # soname into executable. Probably we can add versioning support to
10173 # collect2, so additional links can be useful in future.
10174 if test "$aix_use_runtimelinking" = yes; then
10175 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10176 # instead of lib<name>.a to let people know that these are not
10177 # typical AIX shared libraries.
10178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10179 else
10180 # We preserve .a as extension for shared libraries through AIX4.2
10181 # and later when we are not doing run time linking.
10182 library_names_spec='${libname}${release}.a $libname.a'
10183 soname_spec='${libname}${release}${shared_ext}$major'
10185 shlibpath_var=LIBPATH
10189 amigaos*)
10190 case $host_cpu in
10191 powerpc)
10192 # Since July 2007 AmigaOS4 officially supports .so libraries.
10193 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10196 m68k)
10197 library_names_spec='$libname.ixlibrary $libname.a'
10198 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10199 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'
10201 esac
10204 beos*)
10205 library_names_spec='${libname}${shared_ext}'
10206 dynamic_linker="$host_os ld.so"
10207 shlibpath_var=LIBRARY_PATH
10210 bsdi[45]*)
10211 version_type=linux
10212 need_version=no
10213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10214 soname_spec='${libname}${release}${shared_ext}$major'
10215 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10216 shlibpath_var=LD_LIBRARY_PATH
10217 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10218 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10219 # the default ld.so.conf also contains /usr/contrib/lib and
10220 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10221 # libtool to hard-code these into programs
10224 cygwin* | mingw* | pw32* | cegcc*)
10225 version_type=windows
10226 shrext_cmds=".dll"
10227 need_version=no
10228 need_lib_prefix=no
10230 case $GCC,$host_os in
10231 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10232 library_names_spec='$libname.dll.a'
10233 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10234 postinstall_cmds='base_file=`basename \${file}`~
10235 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10236 dldir=$destdir/`dirname \$dlpath`~
10237 test -d \$dldir || mkdir -p \$dldir~
10238 $install_prog $dir/$dlname \$dldir/$dlname~
10239 chmod a+x \$dldir/$dlname~
10240 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10241 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10243 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10244 dlpath=$dir/\$dldll~
10245 $RM \$dlpath'
10246 shlibpath_overrides_runpath=yes
10248 case $host_os in
10249 cygwin*)
10250 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10251 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10253 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10255 mingw* | cegcc*)
10256 # MinGW DLLs use traditional 'lib' prefix
10257 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10259 pw32*)
10260 # pw32 DLLs use 'pw' prefix rather than 'lib'
10261 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10263 esac
10267 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10269 esac
10270 dynamic_linker='Win32 ld.exe'
10271 # FIXME: first we should search . and the directory the executable is in
10272 shlibpath_var=PATH
10275 darwin* | rhapsody*)
10276 dynamic_linker="$host_os dyld"
10277 version_type=darwin
10278 need_lib_prefix=no
10279 need_version=no
10280 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10281 soname_spec='${libname}${release}${major}$shared_ext'
10282 shlibpath_overrides_runpath=yes
10283 shlibpath_var=DYLD_LIBRARY_PATH
10284 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10286 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10287 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10290 dgux*)
10291 version_type=linux
10292 need_lib_prefix=no
10293 need_version=no
10294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10295 soname_spec='${libname}${release}${shared_ext}$major'
10296 shlibpath_var=LD_LIBRARY_PATH
10299 freebsd* | dragonfly*)
10300 # DragonFly does not have aout. When/if they implement a new
10301 # versioning mechanism, adjust this.
10302 if test -x /usr/bin/objformat; then
10303 objformat=`/usr/bin/objformat`
10304 else
10305 case $host_os in
10306 freebsd[23].*) objformat=aout ;;
10307 *) objformat=elf ;;
10308 esac
10310 version_type=freebsd-$objformat
10311 case $version_type in
10312 freebsd-elf*)
10313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10314 need_version=no
10315 need_lib_prefix=no
10317 freebsd-*)
10318 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10319 need_version=yes
10321 esac
10322 shlibpath_var=LD_LIBRARY_PATH
10323 case $host_os in
10324 freebsd2.*)
10325 shlibpath_overrides_runpath=yes
10327 freebsd3.[01]* | freebsdelf3.[01]*)
10328 shlibpath_overrides_runpath=yes
10329 hardcode_into_libs=yes
10331 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10332 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10333 shlibpath_overrides_runpath=no
10334 hardcode_into_libs=yes
10336 *) # from 4.6 on, and DragonFly
10337 shlibpath_overrides_runpath=yes
10338 hardcode_into_libs=yes
10340 esac
10343 gnu*)
10344 version_type=linux
10345 need_lib_prefix=no
10346 need_version=no
10347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10348 soname_spec='${libname}${release}${shared_ext}$major'
10349 shlibpath_var=LD_LIBRARY_PATH
10350 hardcode_into_libs=yes
10353 haiku*)
10354 version_type=linux
10355 need_lib_prefix=no
10356 need_version=no
10357 dynamic_linker="$host_os runtime_loader"
10358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10359 soname_spec='${libname}${release}${shared_ext}$major'
10360 shlibpath_var=LIBRARY_PATH
10361 shlibpath_overrides_runpath=yes
10362 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10363 hardcode_into_libs=yes
10366 hpux9* | hpux10* | hpux11*)
10367 # Give a soname corresponding to the major version so that dld.sl refuses to
10368 # link against other versions.
10369 version_type=sunos
10370 need_lib_prefix=no
10371 need_version=no
10372 case $host_cpu in
10373 ia64*)
10374 shrext_cmds='.so'
10375 hardcode_into_libs=yes
10376 dynamic_linker="$host_os dld.so"
10377 shlibpath_var=LD_LIBRARY_PATH
10378 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10380 soname_spec='${libname}${release}${shared_ext}$major'
10381 if test "X$HPUX_IA64_MODE" = X32; then
10382 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10383 else
10384 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10386 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10388 hppa*64*)
10389 shrext_cmds='.sl'
10390 hardcode_into_libs=yes
10391 dynamic_linker="$host_os dld.sl"
10392 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10393 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10395 soname_spec='${libname}${release}${shared_ext}$major'
10396 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10397 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10400 shrext_cmds='.sl'
10401 dynamic_linker="$host_os dld.sl"
10402 shlibpath_var=SHLIB_PATH
10403 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10405 soname_spec='${libname}${release}${shared_ext}$major'
10407 esac
10408 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10409 postinstall_cmds='chmod 555 $lib'
10410 # or fails outright, so override atomically:
10411 install_override_mode=555
10414 interix[3-9]*)
10415 version_type=linux
10416 need_lib_prefix=no
10417 need_version=no
10418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10419 soname_spec='${libname}${release}${shared_ext}$major'
10420 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10421 shlibpath_var=LD_LIBRARY_PATH
10422 shlibpath_overrides_runpath=no
10423 hardcode_into_libs=yes
10426 irix5* | irix6* | nonstopux*)
10427 case $host_os in
10428 nonstopux*) version_type=nonstopux ;;
10430 if test "$lt_cv_prog_gnu_ld" = yes; then
10431 version_type=linux
10432 else
10433 version_type=irix
10434 fi ;;
10435 esac
10436 need_lib_prefix=no
10437 need_version=no
10438 soname_spec='${libname}${release}${shared_ext}$major'
10439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10440 case $host_os in
10441 irix5* | nonstopux*)
10442 libsuff= shlibsuff=
10445 case $LD in # libtool.m4 will add one of these switches to LD
10446 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10447 libsuff= shlibsuff= libmagic=32-bit;;
10448 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10449 libsuff=32 shlibsuff=N32 libmagic=N32;;
10450 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10451 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10452 *) libsuff= shlibsuff= libmagic=never-match;;
10453 esac
10455 esac
10456 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10457 shlibpath_overrides_runpath=no
10458 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10459 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10460 hardcode_into_libs=yes
10463 # No shared lib support for Linux oldld, aout, or coff.
10464 linux*oldld* | linux*aout* | linux*coff*)
10465 dynamic_linker=no
10468 # This must be Linux ELF.
10469 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10470 version_type=linux
10471 need_lib_prefix=no
10472 need_version=no
10473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10474 soname_spec='${libname}${release}${shared_ext}$major'
10475 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10476 shlibpath_var=LD_LIBRARY_PATH
10477 shlibpath_overrides_runpath=no
10479 # Some binutils ld are patched to set DT_RUNPATH
10480 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10481 $as_echo_n "(cached) " >&6
10482 else
10483 lt_cv_shlibpath_overrides_runpath=no
10484 save_LDFLAGS=$LDFLAGS
10485 save_libdir=$libdir
10486 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10487 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10489 /* end confdefs.h. */
10492 main ()
10496 return 0;
10498 _ACEOF
10499 if ac_fn_c_try_link "$LINENO"; then :
10500 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10501 lt_cv_shlibpath_overrides_runpath=yes
10504 rm -f core conftest.err conftest.$ac_objext \
10505 conftest$ac_exeext conftest.$ac_ext
10506 LDFLAGS=$save_LDFLAGS
10507 libdir=$save_libdir
10511 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10513 # This implies no fast_install, which is unacceptable.
10514 # Some rework will be needed to allow for fast_install
10515 # before this can be enabled.
10516 hardcode_into_libs=yes
10518 # Append ld.so.conf contents to the search path
10519 if test -f /etc/ld.so.conf; then
10520 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' ' '`
10521 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10524 # We used to test for /lib/ld.so.1 and disable shared libraries on
10525 # powerpc, because MkLinux only supported shared libraries with the
10526 # GNU dynamic linker. Since this was broken with cross compilers,
10527 # most powerpc-linux boxes support dynamic linking these days and
10528 # people can always --disable-shared, the test was removed, and we
10529 # assume the GNU/Linux dynamic linker is in use.
10530 dynamic_linker='GNU/Linux ld.so'
10533 netbsd*)
10534 version_type=sunos
10535 need_lib_prefix=no
10536 need_version=no
10537 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10539 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10540 dynamic_linker='NetBSD (a.out) ld.so'
10541 else
10542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10543 soname_spec='${libname}${release}${shared_ext}$major'
10544 dynamic_linker='NetBSD ld.elf_so'
10546 shlibpath_var=LD_LIBRARY_PATH
10547 shlibpath_overrides_runpath=yes
10548 hardcode_into_libs=yes
10551 newsos6)
10552 version_type=linux
10553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10554 shlibpath_var=LD_LIBRARY_PATH
10555 shlibpath_overrides_runpath=yes
10558 *nto* | *qnx*)
10559 version_type=qnx
10560 need_lib_prefix=no
10561 need_version=no
10562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10563 soname_spec='${libname}${release}${shared_ext}$major'
10564 shlibpath_var=LD_LIBRARY_PATH
10565 shlibpath_overrides_runpath=no
10566 hardcode_into_libs=yes
10567 dynamic_linker='ldqnx.so'
10570 openbsd*)
10571 version_type=sunos
10572 sys_lib_dlsearch_path_spec="/usr/lib"
10573 need_lib_prefix=no
10574 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10575 case $host_os in
10576 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10577 *) need_version=no ;;
10578 esac
10579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10580 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10581 shlibpath_var=LD_LIBRARY_PATH
10582 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10583 case $host_os in
10584 openbsd2.[89] | openbsd2.[89].*)
10585 shlibpath_overrides_runpath=no
10588 shlibpath_overrides_runpath=yes
10590 esac
10591 else
10592 shlibpath_overrides_runpath=yes
10596 os2*)
10597 libname_spec='$name'
10598 shrext_cmds=".dll"
10599 need_lib_prefix=no
10600 library_names_spec='$libname${shared_ext} $libname.a'
10601 dynamic_linker='OS/2 ld.exe'
10602 shlibpath_var=LIBPATH
10605 osf3* | osf4* | osf5*)
10606 version_type=osf
10607 need_lib_prefix=no
10608 need_version=no
10609 soname_spec='${libname}${release}${shared_ext}$major'
10610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10611 shlibpath_var=LD_LIBRARY_PATH
10612 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10613 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10616 rdos*)
10617 dynamic_linker=no
10620 solaris*)
10621 version_type=linux
10622 need_lib_prefix=no
10623 need_version=no
10624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10625 soname_spec='${libname}${release}${shared_ext}$major'
10626 shlibpath_var=LD_LIBRARY_PATH
10627 shlibpath_overrides_runpath=yes
10628 hardcode_into_libs=yes
10629 # ldd complains unless libraries are executable
10630 postinstall_cmds='chmod +x $lib'
10633 sunos4*)
10634 version_type=sunos
10635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10636 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10637 shlibpath_var=LD_LIBRARY_PATH
10638 shlibpath_overrides_runpath=yes
10639 if test "$with_gnu_ld" = yes; then
10640 need_lib_prefix=no
10642 need_version=yes
10645 sysv4 | sysv4.3*)
10646 version_type=linux
10647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10648 soname_spec='${libname}${release}${shared_ext}$major'
10649 shlibpath_var=LD_LIBRARY_PATH
10650 case $host_vendor in
10651 sni)
10652 shlibpath_overrides_runpath=no
10653 need_lib_prefix=no
10654 runpath_var=LD_RUN_PATH
10656 siemens)
10657 need_lib_prefix=no
10659 motorola)
10660 need_lib_prefix=no
10661 need_version=no
10662 shlibpath_overrides_runpath=no
10663 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10665 esac
10668 sysv4*MP*)
10669 if test -d /usr/nec ;then
10670 version_type=linux
10671 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10672 soname_spec='$libname${shared_ext}.$major'
10673 shlibpath_var=LD_LIBRARY_PATH
10677 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10678 version_type=freebsd-elf
10679 need_lib_prefix=no
10680 need_version=no
10681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10682 soname_spec='${libname}${release}${shared_ext}$major'
10683 shlibpath_var=LD_LIBRARY_PATH
10684 shlibpath_overrides_runpath=yes
10685 hardcode_into_libs=yes
10686 if test "$with_gnu_ld" = yes; then
10687 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10688 else
10689 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10690 case $host_os in
10691 sco3.2v5*)
10692 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10694 esac
10696 sys_lib_dlsearch_path_spec='/usr/lib'
10699 tpf*)
10700 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10701 version_type=linux
10702 need_lib_prefix=no
10703 need_version=no
10704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10705 shlibpath_var=LD_LIBRARY_PATH
10706 shlibpath_overrides_runpath=no
10707 hardcode_into_libs=yes
10710 uts4*)
10711 version_type=linux
10712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10713 soname_spec='${libname}${release}${shared_ext}$major'
10714 shlibpath_var=LD_LIBRARY_PATH
10718 dynamic_linker=no
10720 esac
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10722 $as_echo "$dynamic_linker" >&6; }
10723 test "$dynamic_linker" = no && can_build_shared=no
10725 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10726 if test "$GCC" = yes; then
10727 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10730 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10731 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10733 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10734 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10829 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10830 hardcode_action=
10831 if test -n "$hardcode_libdir_flag_spec" ||
10832 test -n "$runpath_var" ||
10833 test "X$hardcode_automatic" = "Xyes" ; then
10835 # We can hardcode non-existent directories.
10836 if test "$hardcode_direct" != no &&
10837 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10838 # have to relink, otherwise we might link with an installed library
10839 # when we should be linking with a yet-to-be-installed one
10840 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10841 test "$hardcode_minus_L" != no; then
10842 # Linking always hardcodes the temporary library directory.
10843 hardcode_action=relink
10844 else
10845 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10846 hardcode_action=immediate
10848 else
10849 # We cannot hardcode anything, or else we can only hardcode existing
10850 # directories.
10851 hardcode_action=unsupported
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10854 $as_echo "$hardcode_action" >&6; }
10856 if test "$hardcode_action" = relink ||
10857 test "$inherit_rpath" = yes; then
10858 # Fast installation is not supported
10859 enable_fast_install=no
10860 elif test "$shlibpath_overrides_runpath" = yes ||
10861 test "$enable_shared" = no; then
10862 # Fast installation is not necessary
10863 enable_fast_install=needless
10871 if test "x$enable_dlopen" != xyes; then
10872 enable_dlopen=unknown
10873 enable_dlopen_self=unknown
10874 enable_dlopen_self_static=unknown
10875 else
10876 lt_cv_dlopen=no
10877 lt_cv_dlopen_libs=
10879 case $host_os in
10880 beos*)
10881 lt_cv_dlopen="load_add_on"
10882 lt_cv_dlopen_libs=
10883 lt_cv_dlopen_self=yes
10886 mingw* | pw32* | cegcc*)
10887 lt_cv_dlopen="LoadLibrary"
10888 lt_cv_dlopen_libs=
10891 cygwin*)
10892 lt_cv_dlopen="dlopen"
10893 lt_cv_dlopen_libs=
10896 darwin*)
10897 # if libdl is installed we need to link against it
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10899 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10900 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10901 $as_echo_n "(cached) " >&6
10902 else
10903 ac_check_lib_save_LIBS=$LIBS
10904 LIBS="-ldl $LIBS"
10905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10906 /* end confdefs.h. */
10908 /* Override any GCC internal prototype to avoid an error.
10909 Use char because int might match the return type of a GCC
10910 builtin and then its argument prototype would still apply. */
10911 #ifdef __cplusplus
10912 extern "C"
10913 #endif
10914 char dlopen ();
10916 main ()
10918 return dlopen ();
10920 return 0;
10922 _ACEOF
10923 if ac_fn_c_try_link "$LINENO"; then :
10924 ac_cv_lib_dl_dlopen=yes
10925 else
10926 ac_cv_lib_dl_dlopen=no
10928 rm -f core conftest.err conftest.$ac_objext \
10929 conftest$ac_exeext conftest.$ac_ext
10930 LIBS=$ac_check_lib_save_LIBS
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10933 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10934 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10935 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10936 else
10938 lt_cv_dlopen="dyld"
10939 lt_cv_dlopen_libs=
10940 lt_cv_dlopen_self=yes
10947 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10948 if test "x$ac_cv_func_shl_load" = x""yes; then :
10949 lt_cv_dlopen="shl_load"
10950 else
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10952 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10953 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10954 $as_echo_n "(cached) " >&6
10955 else
10956 ac_check_lib_save_LIBS=$LIBS
10957 LIBS="-ldld $LIBS"
10958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10959 /* end confdefs.h. */
10961 /* Override any GCC internal prototype to avoid an error.
10962 Use char because int might match the return type of a GCC
10963 builtin and then its argument prototype would still apply. */
10964 #ifdef __cplusplus
10965 extern "C"
10966 #endif
10967 char shl_load ();
10969 main ()
10971 return shl_load ();
10973 return 0;
10975 _ACEOF
10976 if ac_fn_c_try_link "$LINENO"; then :
10977 ac_cv_lib_dld_shl_load=yes
10978 else
10979 ac_cv_lib_dld_shl_load=no
10981 rm -f core conftest.err conftest.$ac_objext \
10982 conftest$ac_exeext conftest.$ac_ext
10983 LIBS=$ac_check_lib_save_LIBS
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10986 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10987 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10988 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10989 else
10990 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10991 if test "x$ac_cv_func_dlopen" = x""yes; then :
10992 lt_cv_dlopen="dlopen"
10993 else
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10995 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10996 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10997 $as_echo_n "(cached) " >&6
10998 else
10999 ac_check_lib_save_LIBS=$LIBS
11000 LIBS="-ldl $LIBS"
11001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11002 /* end confdefs.h. */
11004 /* Override any GCC internal prototype to avoid an error.
11005 Use char because int might match the return type of a GCC
11006 builtin and then its argument prototype would still apply. */
11007 #ifdef __cplusplus
11008 extern "C"
11009 #endif
11010 char dlopen ();
11012 main ()
11014 return dlopen ();
11016 return 0;
11018 _ACEOF
11019 if ac_fn_c_try_link "$LINENO"; then :
11020 ac_cv_lib_dl_dlopen=yes
11021 else
11022 ac_cv_lib_dl_dlopen=no
11024 rm -f core conftest.err conftest.$ac_objext \
11025 conftest$ac_exeext conftest.$ac_ext
11026 LIBS=$ac_check_lib_save_LIBS
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11029 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11030 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11031 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11032 else
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11034 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11035 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11036 $as_echo_n "(cached) " >&6
11037 else
11038 ac_check_lib_save_LIBS=$LIBS
11039 LIBS="-lsvld $LIBS"
11040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11041 /* end confdefs.h. */
11043 /* Override any GCC internal prototype to avoid an error.
11044 Use char because int might match the return type of a GCC
11045 builtin and then its argument prototype would still apply. */
11046 #ifdef __cplusplus
11047 extern "C"
11048 #endif
11049 char dlopen ();
11051 main ()
11053 return dlopen ();
11055 return 0;
11057 _ACEOF
11058 if ac_fn_c_try_link "$LINENO"; then :
11059 ac_cv_lib_svld_dlopen=yes
11060 else
11061 ac_cv_lib_svld_dlopen=no
11063 rm -f core conftest.err conftest.$ac_objext \
11064 conftest$ac_exeext conftest.$ac_ext
11065 LIBS=$ac_check_lib_save_LIBS
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11068 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11069 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11070 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11071 else
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11073 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11074 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11075 $as_echo_n "(cached) " >&6
11076 else
11077 ac_check_lib_save_LIBS=$LIBS
11078 LIBS="-ldld $LIBS"
11079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11080 /* end confdefs.h. */
11082 /* Override any GCC internal prototype to avoid an error.
11083 Use char because int might match the return type of a GCC
11084 builtin and then its argument prototype would still apply. */
11085 #ifdef __cplusplus
11086 extern "C"
11087 #endif
11088 char dld_link ();
11090 main ()
11092 return dld_link ();
11094 return 0;
11096 _ACEOF
11097 if ac_fn_c_try_link "$LINENO"; then :
11098 ac_cv_lib_dld_dld_link=yes
11099 else
11100 ac_cv_lib_dld_dld_link=no
11102 rm -f core conftest.err conftest.$ac_objext \
11103 conftest$ac_exeext conftest.$ac_ext
11104 LIBS=$ac_check_lib_save_LIBS
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11107 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11108 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11109 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11128 esac
11130 if test "x$lt_cv_dlopen" != xno; then
11131 enable_dlopen=yes
11132 else
11133 enable_dlopen=no
11136 case $lt_cv_dlopen in
11137 dlopen)
11138 save_CPPFLAGS="$CPPFLAGS"
11139 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11141 save_LDFLAGS="$LDFLAGS"
11142 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11144 save_LIBS="$LIBS"
11145 LIBS="$lt_cv_dlopen_libs $LIBS"
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11148 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11149 if test "${lt_cv_dlopen_self+set}" = set; then :
11150 $as_echo_n "(cached) " >&6
11151 else
11152 if test "$cross_compiling" = yes; then :
11153 lt_cv_dlopen_self=cross
11154 else
11155 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11156 lt_status=$lt_dlunknown
11157 cat > conftest.$ac_ext <<_LT_EOF
11158 #line 11158 "configure"
11159 #include "confdefs.h"
11161 #if HAVE_DLFCN_H
11162 #include <dlfcn.h>
11163 #endif
11165 #include <stdio.h>
11167 #ifdef RTLD_GLOBAL
11168 # define LT_DLGLOBAL RTLD_GLOBAL
11169 #else
11170 # ifdef DL_GLOBAL
11171 # define LT_DLGLOBAL DL_GLOBAL
11172 # else
11173 # define LT_DLGLOBAL 0
11174 # endif
11175 #endif
11177 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11178 find out it does not work in some platform. */
11179 #ifndef LT_DLLAZY_OR_NOW
11180 # ifdef RTLD_LAZY
11181 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11182 # else
11183 # ifdef DL_LAZY
11184 # define LT_DLLAZY_OR_NOW DL_LAZY
11185 # else
11186 # ifdef RTLD_NOW
11187 # define LT_DLLAZY_OR_NOW RTLD_NOW
11188 # else
11189 # ifdef DL_NOW
11190 # define LT_DLLAZY_OR_NOW DL_NOW
11191 # else
11192 # define LT_DLLAZY_OR_NOW 0
11193 # endif
11194 # endif
11195 # endif
11196 # endif
11197 #endif
11199 /* When -fvisbility=hidden is used, assume the code has been annotated
11200 correspondingly for the symbols needed. */
11201 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11202 void fnord () __attribute__((visibility("default")));
11203 #endif
11205 void fnord () { int i=42; }
11206 int main ()
11208 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11209 int status = $lt_dlunknown;
11211 if (self)
11213 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11214 else
11216 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11217 else puts (dlerror ());
11219 /* dlclose (self); */
11221 else
11222 puts (dlerror ());
11224 return status;
11226 _LT_EOF
11227 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11228 (eval $ac_link) 2>&5
11229 ac_status=$?
11230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11231 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11232 (./conftest; exit; ) >&5 2>/dev/null
11233 lt_status=$?
11234 case x$lt_status in
11235 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11236 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11237 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11238 esac
11239 else :
11240 # compilation failed
11241 lt_cv_dlopen_self=no
11244 rm -fr conftest*
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11249 $as_echo "$lt_cv_dlopen_self" >&6; }
11251 if test "x$lt_cv_dlopen_self" = xyes; then
11252 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11254 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11255 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11256 $as_echo_n "(cached) " >&6
11257 else
11258 if test "$cross_compiling" = yes; then :
11259 lt_cv_dlopen_self_static=cross
11260 else
11261 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11262 lt_status=$lt_dlunknown
11263 cat > conftest.$ac_ext <<_LT_EOF
11264 #line 11264 "configure"
11265 #include "confdefs.h"
11267 #if HAVE_DLFCN_H
11268 #include <dlfcn.h>
11269 #endif
11271 #include <stdio.h>
11273 #ifdef RTLD_GLOBAL
11274 # define LT_DLGLOBAL RTLD_GLOBAL
11275 #else
11276 # ifdef DL_GLOBAL
11277 # define LT_DLGLOBAL DL_GLOBAL
11278 # else
11279 # define LT_DLGLOBAL 0
11280 # endif
11281 #endif
11283 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11284 find out it does not work in some platform. */
11285 #ifndef LT_DLLAZY_OR_NOW
11286 # ifdef RTLD_LAZY
11287 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11288 # else
11289 # ifdef DL_LAZY
11290 # define LT_DLLAZY_OR_NOW DL_LAZY
11291 # else
11292 # ifdef RTLD_NOW
11293 # define LT_DLLAZY_OR_NOW RTLD_NOW
11294 # else
11295 # ifdef DL_NOW
11296 # define LT_DLLAZY_OR_NOW DL_NOW
11297 # else
11298 # define LT_DLLAZY_OR_NOW 0
11299 # endif
11300 # endif
11301 # endif
11302 # endif
11303 #endif
11305 /* When -fvisbility=hidden is used, assume the code has been annotated
11306 correspondingly for the symbols needed. */
11307 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11308 void fnord () __attribute__((visibility("default")));
11309 #endif
11311 void fnord () { int i=42; }
11312 int main ()
11314 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11315 int status = $lt_dlunknown;
11317 if (self)
11319 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11320 else
11322 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11323 else puts (dlerror ());
11325 /* dlclose (self); */
11327 else
11328 puts (dlerror ());
11330 return status;
11332 _LT_EOF
11333 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11334 (eval $ac_link) 2>&5
11335 ac_status=$?
11336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11337 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11338 (./conftest; exit; ) >&5 2>/dev/null
11339 lt_status=$?
11340 case x$lt_status in
11341 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11342 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11343 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11344 esac
11345 else :
11346 # compilation failed
11347 lt_cv_dlopen_self_static=no
11350 rm -fr conftest*
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11355 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11358 CPPFLAGS="$save_CPPFLAGS"
11359 LDFLAGS="$save_LDFLAGS"
11360 LIBS="$save_LIBS"
11362 esac
11364 case $lt_cv_dlopen_self in
11365 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11366 *) enable_dlopen_self=unknown ;;
11367 esac
11369 case $lt_cv_dlopen_self_static in
11370 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11371 *) enable_dlopen_self_static=unknown ;;
11372 esac
11391 striplib=
11392 old_striplib=
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11394 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11395 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11396 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11397 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11399 $as_echo "yes" >&6; }
11400 else
11401 # FIXME - insert some real tests, host_os isn't really good enough
11402 case $host_os in
11403 darwin*)
11404 if test -n "$STRIP" ; then
11405 striplib="$STRIP -x"
11406 old_striplib="$STRIP -S"
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11408 $as_echo "yes" >&6; }
11409 else
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11411 $as_echo "no" >&6; }
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11416 $as_echo "no" >&6; }
11418 esac
11432 # Report which library types will actually be built
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11434 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11436 $as_echo "$can_build_shared" >&6; }
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11439 $as_echo_n "checking whether to build shared libraries... " >&6; }
11440 test "$can_build_shared" = "no" && enable_shared=no
11442 # On AIX, shared libraries and static libraries use the same namespace, and
11443 # are all built from PIC.
11444 case $host_os in
11445 aix3*)
11446 test "$enable_shared" = yes && enable_static=no
11447 if test -n "$RANLIB"; then
11448 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11449 postinstall_cmds='$RANLIB $lib'
11453 aix[4-9]*)
11454 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11455 test "$enable_shared" = yes && enable_static=no
11458 esac
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11460 $as_echo "$enable_shared" >&6; }
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11463 $as_echo_n "checking whether to build static libraries... " >&6; }
11464 # Make sure either enable_shared or enable_static is yes.
11465 test "$enable_shared" = yes || enable_static=yes
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11467 $as_echo "$enable_static" >&6; }
11473 ac_ext=c
11474 ac_cpp='$CPP $CPPFLAGS'
11475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11479 CC="$lt_save_CC"
11493 ac_config_commands="$ac_config_commands libtool"
11498 # Only expand once:
11504 case $host in
11505 *-cygwin* | *-mingw*)
11506 # 'host' will be top-level target in the case of a target lib,
11507 # we must compare to with_cross_host to decide if this is a native
11508 # or cross-compiler and select where to install dlls appropriately.
11509 if test -n "$with_cross_host" &&
11510 test x"$with_cross_host" != x"no"; then
11511 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
11512 else
11513 lt_host_flags='-no-undefined -bindir "$(bindir)"';
11517 lt_host_flags=
11519 esac
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11528 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11529 # Check whether --enable-maintainer-mode was given.
11530 if test "${enable_maintainer_mode+set}" = set; then :
11531 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11532 else
11533 USE_MAINTAINER_MODE=no
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11537 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11538 if test $USE_MAINTAINER_MODE = yes; then
11539 MAINTAINER_MODE_TRUE=
11540 MAINTAINER_MODE_FALSE='#'
11541 else
11542 MAINTAINER_MODE_TRUE='#'
11543 MAINTAINER_MODE_FALSE=
11546 MAINT=$MAINTAINER_MODE_TRUE
11550 # Create a spec file, so that compile/link tests don't fail
11551 test -f libgfortran.spec || touch libgfortran.spec
11552 FCFLAGS="$FCFLAGS -L."
11554 # We need gfortran to compile parts of the library
11555 # We can't use AC_PROG_FC because it expects a fully working gfortran.
11556 #AC_PROG_FC(gfortran)
11557 case `echo $GFORTRAN` in
11558 -* | no* )
11559 FC=no ;;
11561 set dummy $GFORTRAN; ac_word=$2
11562 if test -x "$ac_word"; then
11563 FC="$GFORTRAN"
11564 else
11565 FC=no
11566 fi ;;
11567 esac
11568 ac_ext=${ac_fc_srcext-f}
11569 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11570 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11571 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11572 if test -n "$ac_tool_prefix"; then
11573 for ac_prog in gfortran
11575 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11576 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11578 $as_echo_n "checking for $ac_word... " >&6; }
11579 if test "${ac_cv_prog_FC+set}" = set; then :
11580 $as_echo_n "(cached) " >&6
11581 else
11582 if test -n "$FC"; then
11583 ac_cv_prog_FC="$FC" # Let the user override the test.
11584 else
11585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11586 for as_dir in $PATH
11588 IFS=$as_save_IFS
11589 test -z "$as_dir" && as_dir=.
11590 for ac_exec_ext in '' $ac_executable_extensions; do
11591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11592 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
11593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11594 break 2
11596 done
11597 done
11598 IFS=$as_save_IFS
11602 FC=$ac_cv_prog_FC
11603 if test -n "$FC"; then
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
11605 $as_echo "$FC" >&6; }
11606 else
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11608 $as_echo "no" >&6; }
11612 test -n "$FC" && break
11613 done
11615 if test -z "$FC"; then
11616 ac_ct_FC=$FC
11617 for ac_prog in gfortran
11619 # Extract the first word of "$ac_prog", so it can be a program name with args.
11620 set dummy $ac_prog; ac_word=$2
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11622 $as_echo_n "checking for $ac_word... " >&6; }
11623 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
11624 $as_echo_n "(cached) " >&6
11625 else
11626 if test -n "$ac_ct_FC"; then
11627 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
11628 else
11629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11630 for as_dir in $PATH
11632 IFS=$as_save_IFS
11633 test -z "$as_dir" && as_dir=.
11634 for ac_exec_ext in '' $ac_executable_extensions; do
11635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11636 ac_cv_prog_ac_ct_FC="$ac_prog"
11637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11638 break 2
11640 done
11641 done
11642 IFS=$as_save_IFS
11646 ac_ct_FC=$ac_cv_prog_ac_ct_FC
11647 if test -n "$ac_ct_FC"; then
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
11649 $as_echo "$ac_ct_FC" >&6; }
11650 else
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11652 $as_echo "no" >&6; }
11656 test -n "$ac_ct_FC" && break
11657 done
11659 if test "x$ac_ct_FC" = x; then
11660 FC=""
11661 else
11662 case $cross_compiling:$ac_tool_warned in
11663 yes:)
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11665 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11666 ac_tool_warned=yes ;;
11667 esac
11668 FC=$ac_ct_FC
11673 # Provide some information about the compiler.
11674 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
11675 set X $ac_compile
11676 ac_compiler=$2
11677 for ac_option in --version -v -V -qversion; do
11678 { { ac_try="$ac_compiler $ac_option >&5"
11679 case "(($ac_try" in
11680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11681 *) ac_try_echo=$ac_try;;
11682 esac
11683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11684 $as_echo "$ac_try_echo"; } >&5
11685 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11686 ac_status=$?
11687 if test -s conftest.err; then
11688 sed '10a\
11689 ... rest of stderr output deleted ...
11690 10q' conftest.err >conftest.er1
11691 cat conftest.er1 >&5
11692 rm -f conftest.er1 conftest.err
11694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11695 test $ac_status = 0; }
11696 done
11697 rm -f a.out
11699 # If we don't use `.F' as extension, the preprocessor is not run on the
11700 # input file. (Note that this only needs to work for GNU compilers.)
11701 ac_save_ext=$ac_ext
11702 ac_ext=F
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
11704 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
11705 if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
11706 $as_echo_n "(cached) " >&6
11707 else
11708 cat > conftest.$ac_ext <<_ACEOF
11709 program main
11710 #ifndef __GNUC__
11711 choke me
11712 #endif
11715 _ACEOF
11716 if ac_fn_fc_try_compile "$LINENO"; then :
11717 ac_compiler_gnu=yes
11718 else
11719 ac_compiler_gnu=no
11721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11722 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
11726 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
11727 ac_ext=$ac_save_ext
11728 ac_test_FCFLAGS=${FCFLAGS+set}
11729 ac_save_FCFLAGS=$FCFLAGS
11730 FCFLAGS=
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
11732 $as_echo_n "checking whether $FC accepts -g... " >&6; }
11733 if test "${ac_cv_prog_fc_g+set}" = set; then :
11734 $as_echo_n "(cached) " >&6
11735 else
11736 FCFLAGS=-g
11737 cat > conftest.$ac_ext <<_ACEOF
11738 program main
11741 _ACEOF
11742 if ac_fn_fc_try_compile "$LINENO"; then :
11743 ac_cv_prog_fc_g=yes
11744 else
11745 ac_cv_prog_fc_g=no
11747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
11751 $as_echo "$ac_cv_prog_fc_g" >&6; }
11752 if test "$ac_test_FCFLAGS" = set; then
11753 FCFLAGS=$ac_save_FCFLAGS
11754 elif test $ac_cv_prog_fc_g = yes; then
11755 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11756 FCFLAGS="-g -O2"
11757 else
11758 FCFLAGS="-g"
11760 else
11761 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11762 FCFLAGS="-O2"
11763 else
11764 FCFLAGS=
11768 ac_ext=c
11769 ac_cpp='$CPP $CPPFLAGS'
11770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11774 ac_ext=${ac_fc_srcext-f}
11775 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11776 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11777 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11780 if test -z "$FC" || test "X$FC" = "Xno"; then
11781 _lt_disable_FC=yes
11784 archive_cmds_need_lc_FC=no
11785 allow_undefined_flag_FC=
11786 always_export_symbols_FC=no
11787 archive_expsym_cmds_FC=
11788 export_dynamic_flag_spec_FC=
11789 hardcode_direct_FC=no
11790 hardcode_direct_absolute_FC=no
11791 hardcode_libdir_flag_spec_FC=
11792 hardcode_libdir_flag_spec_ld_FC=
11793 hardcode_libdir_separator_FC=
11794 hardcode_minus_L_FC=no
11795 hardcode_automatic_FC=no
11796 inherit_rpath_FC=no
11797 module_cmds_FC=
11798 module_expsym_cmds_FC=
11799 link_all_deplibs_FC=unknown
11800 old_archive_cmds_FC=$old_archive_cmds
11801 reload_flag_FC=$reload_flag
11802 reload_cmds_FC=$reload_cmds
11803 no_undefined_flag_FC=
11804 whole_archive_flag_spec_FC=
11805 enable_shared_with_static_runtimes_FC=no
11807 # Source file extension for fc test sources.
11808 ac_ext=${ac_fc_srcext-f}
11810 # Object file extension for compiled fc test sources.
11811 objext=o
11812 objext_FC=$objext
11814 # No sense in running all these tests if we already determined that
11815 # the FC compiler isn't working. Some variables (like enable_shared)
11816 # are currently assumed to apply to all compilers on this platform,
11817 # and will be corrupted by setting them based on a non-working compiler.
11818 if test "$_lt_disable_FC" != yes; then
11819 # Code to be used in simple compile tests
11820 lt_simple_compile_test_code="\
11821 subroutine t
11822 return
11826 # Code to be used in simple link tests
11827 lt_simple_link_test_code="\
11828 program t
11832 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11839 # If no C compiler was specified, use CC.
11840 LTCC=${LTCC-"$CC"}
11842 # If no C compiler flags were specified, use CFLAGS.
11843 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11845 # Allow CC to be a program name with arguments.
11846 compiler=$CC
11849 # save warnings/boilerplate of simple test code
11850 ac_outfile=conftest.$ac_objext
11851 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11852 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11853 _lt_compiler_boilerplate=`cat conftest.err`
11854 $RM conftest*
11856 ac_outfile=conftest.$ac_objext
11857 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11858 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11859 _lt_linker_boilerplate=`cat conftest.err`
11860 $RM -r conftest*
11863 # Allow CC to be a program name with arguments.
11864 lt_save_CC="$CC"
11865 lt_save_GCC=$GCC
11866 CC=${FC-"f95"}
11867 compiler=$CC
11868 GCC=$ac_cv_fc_compiler_gnu
11870 compiler_FC=$CC
11871 for cc_temp in $compiler""; do
11872 case $cc_temp in
11873 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11874 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11875 \-*) ;;
11876 *) break;;
11877 esac
11878 done
11879 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11882 if test -n "$compiler"; then
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11884 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11886 $as_echo "$can_build_shared" >&6; }
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11889 $as_echo_n "checking whether to build shared libraries... " >&6; }
11890 test "$can_build_shared" = "no" && enable_shared=no
11892 # On AIX, shared libraries and static libraries use the same namespace, and
11893 # are all built from PIC.
11894 case $host_os in
11895 aix3*)
11896 test "$enable_shared" = yes && enable_static=no
11897 if test -n "$RANLIB"; then
11898 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11899 postinstall_cmds='$RANLIB $lib'
11902 aix[4-9]*)
11903 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11904 test "$enable_shared" = yes && enable_static=no
11907 esac
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11909 $as_echo "$enable_shared" >&6; }
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11912 $as_echo_n "checking whether to build static libraries... " >&6; }
11913 # Make sure either enable_shared or enable_static is yes.
11914 test "$enable_shared" = yes || enable_static=yes
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11916 $as_echo "$enable_static" >&6; }
11918 GCC_FC="$ac_cv_fc_compiler_gnu"
11919 LD_FC="$LD"
11921 ## CAVEAT EMPTOR:
11922 ## There is no encapsulation within the following macros, do not change
11923 ## the running order or otherwise move them around unless you know exactly
11924 ## what you are doing...
11925 # Dependencies to place before and after the object being linked:
11926 predep_objects_FC=
11927 postdep_objects_FC=
11928 predeps_FC=
11929 postdeps_FC=
11930 compiler_lib_search_path_FC=
11932 cat > conftest.$ac_ext <<_LT_EOF
11933 subroutine foo
11934 implicit none
11935 integer a
11937 return
11939 _LT_EOF
11941 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11942 (eval $ac_compile) 2>&5
11943 ac_status=$?
11944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11945 test $ac_status = 0; }; then
11946 # Parse the compiler output and extract the necessary
11947 # objects, libraries and library flags.
11949 # Sentinel used to keep track of whether or not we are before
11950 # the conftest object file.
11951 pre_test_object_deps_done=no
11953 for p in `eval "$output_verbose_link_cmd"`; do
11954 case $p in
11956 -L* | -R* | -l*)
11957 # Some compilers place space between "-{L,R}" and the path.
11958 # Remove the space.
11959 if test $p = "-L" ||
11960 test $p = "-R"; then
11961 prev=$p
11962 continue
11963 else
11964 prev=
11967 if test "$pre_test_object_deps_done" = no; then
11968 case $p in
11969 -L* | -R*)
11970 # Internal compiler library paths should come after those
11971 # provided the user. The postdeps already come after the
11972 # user supplied libs so there is no need to process them.
11973 if test -z "$compiler_lib_search_path_FC"; then
11974 compiler_lib_search_path_FC="${prev}${p}"
11975 else
11976 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
11979 # The "-l" case would never come before the object being
11980 # linked, so don't bother handling this case.
11981 esac
11982 else
11983 if test -z "$postdeps_FC"; then
11984 postdeps_FC="${prev}${p}"
11985 else
11986 postdeps_FC="${postdeps_FC} ${prev}${p}"
11991 *.$objext)
11992 # This assumes that the test object file only shows up
11993 # once in the compiler output.
11994 if test "$p" = "conftest.$objext"; then
11995 pre_test_object_deps_done=yes
11996 continue
11999 if test "$pre_test_object_deps_done" = no; then
12000 if test -z "$predep_objects_FC"; then
12001 predep_objects_FC="$p"
12002 else
12003 predep_objects_FC="$predep_objects_FC $p"
12005 else
12006 if test -z "$postdep_objects_FC"; then
12007 postdep_objects_FC="$p"
12008 else
12009 postdep_objects_FC="$postdep_objects_FC $p"
12014 *) ;; # Ignore the rest.
12016 esac
12017 done
12019 # Clean up.
12020 rm -f a.out a.exe
12021 else
12022 echo "libtool.m4: error: problem compiling FC test program"
12025 $RM -f confest.$objext
12027 # PORTME: override above test on systems where it is broken
12030 case " $postdeps_FC " in
12031 *" -lc "*) archive_cmds_need_lc_FC=no ;;
12032 esac
12033 compiler_lib_search_dirs_FC=
12034 if test -n "${compiler_lib_search_path_FC}"; then
12035 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12068 lt_prog_compiler_wl_FC=
12069 lt_prog_compiler_pic_FC=
12070 lt_prog_compiler_static_FC=
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12073 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12075 if test "$GCC" = yes; then
12076 lt_prog_compiler_wl_FC='-Wl,'
12077 lt_prog_compiler_static_FC='-static'
12079 case $host_os in
12080 aix*)
12081 # All AIX code is PIC.
12082 if test "$host_cpu" = ia64; then
12083 # AIX 5 now supports IA64 processor
12084 lt_prog_compiler_static_FC='-Bstatic'
12086 lt_prog_compiler_pic_FC='-fPIC'
12089 amigaos*)
12090 case $host_cpu in
12091 powerpc)
12092 # see comment about AmigaOS4 .so support
12093 lt_prog_compiler_pic_FC='-fPIC'
12095 m68k)
12096 # FIXME: we need at least 68020 code to build shared libraries, but
12097 # adding the `-m68020' flag to GCC prevents building anything better,
12098 # like `-m68040'.
12099 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
12101 esac
12104 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12105 # PIC is the default for these OSes.
12108 mingw* | cygwin* | pw32* | os2* | cegcc*)
12109 # This hack is so that the source file can tell whether it is being
12110 # built for inclusion in a dll (and should export symbols for example).
12111 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12112 # (--disable-auto-import) libraries
12113 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12116 darwin* | rhapsody*)
12117 # PIC is the default on this platform
12118 # Common symbols not allowed in MH_DYLIB files
12119 lt_prog_compiler_pic_FC='-fno-common'
12122 haiku*)
12123 # PIC is the default for Haiku.
12124 # The "-static" flag exists, but is broken.
12125 lt_prog_compiler_static_FC=
12128 hpux*)
12129 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12130 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12131 # sets the default TLS model and affects inlining.
12132 case $host_cpu in
12133 hppa*64*)
12134 # +Z the default
12137 lt_prog_compiler_pic_FC='-fPIC'
12139 esac
12142 interix[3-9]*)
12143 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12144 # Instead, we relocate shared libraries at runtime.
12147 msdosdjgpp*)
12148 # Just because we use GCC doesn't mean we suddenly get shared libraries
12149 # on systems that don't support them.
12150 lt_prog_compiler_can_build_shared_FC=no
12151 enable_shared=no
12154 *nto* | *qnx*)
12155 # QNX uses GNU C++, but need to define -shared option too, otherwise
12156 # it will coredump.
12157 lt_prog_compiler_pic_FC='-fPIC -shared'
12160 sysv4*MP*)
12161 if test -d /usr/nec; then
12162 lt_prog_compiler_pic_FC=-Kconform_pic
12167 lt_prog_compiler_pic_FC='-fPIC'
12169 esac
12171 case $cc_basename in
12172 nvcc*) # Cuda Compiler Driver 2.2
12173 lt_prog_compiler_wl_FC='-Xlinker '
12174 lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
12176 esac
12177 else
12178 # PORTME Check for flag to pass linker flags through the system compiler.
12179 case $host_os in
12180 aix*)
12181 lt_prog_compiler_wl_FC='-Wl,'
12182 if test "$host_cpu" = ia64; then
12183 # AIX 5 now supports IA64 processor
12184 lt_prog_compiler_static_FC='-Bstatic'
12185 else
12186 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
12190 mingw* | cygwin* | pw32* | os2* | cegcc*)
12191 # This hack is so that the source file can tell whether it is being
12192 # built for inclusion in a dll (and should export symbols for example).
12193 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12196 hpux9* | hpux10* | hpux11*)
12197 lt_prog_compiler_wl_FC='-Wl,'
12198 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12199 # not for PA HP-UX.
12200 case $host_cpu in
12201 hppa*64*|ia64*)
12202 # +Z the default
12205 lt_prog_compiler_pic_FC='+Z'
12207 esac
12208 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12209 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
12212 irix5* | irix6* | nonstopux*)
12213 lt_prog_compiler_wl_FC='-Wl,'
12214 # PIC (with -KPIC) is the default.
12215 lt_prog_compiler_static_FC='-non_shared'
12218 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12219 case $cc_basename in
12220 # old Intel for x86_64 which still supported -KPIC.
12221 ecc*)
12222 lt_prog_compiler_wl_FC='-Wl,'
12223 lt_prog_compiler_pic_FC='-KPIC'
12224 lt_prog_compiler_static_FC='-static'
12226 # icc used to be incompatible with GCC.
12227 # ICC 10 doesn't accept -KPIC any more.
12228 icc* | ifort*)
12229 lt_prog_compiler_wl_FC='-Wl,'
12230 lt_prog_compiler_pic_FC='-fPIC'
12231 lt_prog_compiler_static_FC='-static'
12233 # Lahey Fortran 8.1.
12234 lf95*)
12235 lt_prog_compiler_wl_FC='-Wl,'
12236 lt_prog_compiler_pic_FC='--shared'
12237 lt_prog_compiler_static_FC='--static'
12239 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12240 # Portland Group compilers (*not* the Pentium gcc compiler,
12241 # which looks to be a dead project)
12242 lt_prog_compiler_wl_FC='-Wl,'
12243 lt_prog_compiler_pic_FC='-fpic'
12244 lt_prog_compiler_static_FC='-Bstatic'
12246 ccc*)
12247 lt_prog_compiler_wl_FC='-Wl,'
12248 # All Alpha code is PIC.
12249 lt_prog_compiler_static_FC='-non_shared'
12251 xl* | bgxl* | bgf* | mpixl*)
12252 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12253 lt_prog_compiler_wl_FC='-Wl,'
12254 lt_prog_compiler_pic_FC='-qpic'
12255 lt_prog_compiler_static_FC='-qstaticlink'
12258 case `$CC -V 2>&1 | sed 5q` in
12259 *Sun\ F* | *Sun*Fortran*)
12260 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12261 lt_prog_compiler_pic_FC='-KPIC'
12262 lt_prog_compiler_static_FC='-Bstatic'
12263 lt_prog_compiler_wl_FC=''
12265 *Sun\ C*)
12266 # Sun C 5.9
12267 lt_prog_compiler_pic_FC='-KPIC'
12268 lt_prog_compiler_static_FC='-Bstatic'
12269 lt_prog_compiler_wl_FC='-Wl,'
12271 esac
12273 esac
12276 newsos6)
12277 lt_prog_compiler_pic_FC='-KPIC'
12278 lt_prog_compiler_static_FC='-Bstatic'
12281 *nto* | *qnx*)
12282 # QNX uses GNU C++, but need to define -shared option too, otherwise
12283 # it will coredump.
12284 lt_prog_compiler_pic_FC='-fPIC -shared'
12287 osf3* | osf4* | osf5*)
12288 lt_prog_compiler_wl_FC='-Wl,'
12289 # All OSF/1 code is PIC.
12290 lt_prog_compiler_static_FC='-non_shared'
12293 rdos*)
12294 lt_prog_compiler_static_FC='-non_shared'
12297 solaris*)
12298 lt_prog_compiler_pic_FC='-KPIC'
12299 lt_prog_compiler_static_FC='-Bstatic'
12300 case $cc_basename in
12301 f77* | f90* | f95*)
12302 lt_prog_compiler_wl_FC='-Qoption ld ';;
12304 lt_prog_compiler_wl_FC='-Wl,';;
12305 esac
12308 sunos4*)
12309 lt_prog_compiler_wl_FC='-Qoption ld '
12310 lt_prog_compiler_pic_FC='-PIC'
12311 lt_prog_compiler_static_FC='-Bstatic'
12314 sysv4 | sysv4.2uw2* | sysv4.3*)
12315 lt_prog_compiler_wl_FC='-Wl,'
12316 lt_prog_compiler_pic_FC='-KPIC'
12317 lt_prog_compiler_static_FC='-Bstatic'
12320 sysv4*MP*)
12321 if test -d /usr/nec ;then
12322 lt_prog_compiler_pic_FC='-Kconform_pic'
12323 lt_prog_compiler_static_FC='-Bstatic'
12327 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12328 lt_prog_compiler_wl_FC='-Wl,'
12329 lt_prog_compiler_pic_FC='-KPIC'
12330 lt_prog_compiler_static_FC='-Bstatic'
12333 unicos*)
12334 lt_prog_compiler_wl_FC='-Wl,'
12335 lt_prog_compiler_can_build_shared_FC=no
12338 uts4*)
12339 lt_prog_compiler_pic_FC='-pic'
12340 lt_prog_compiler_static_FC='-Bstatic'
12344 lt_prog_compiler_can_build_shared_FC=no
12346 esac
12349 case $host_os in
12350 # For platforms which do not support PIC, -DPIC is meaningless:
12351 *djgpp*)
12352 lt_prog_compiler_pic_FC=
12355 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
12357 esac
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
12359 $as_echo "$lt_prog_compiler_pic_FC" >&6; }
12364 # Check to make sure the PIC flag actually works.
12366 if test -n "$lt_prog_compiler_pic_FC"; then
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
12368 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
12369 if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then :
12370 $as_echo_n "(cached) " >&6
12371 else
12372 lt_cv_prog_compiler_pic_works_FC=no
12373 ac_outfile=conftest.$ac_objext
12374 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12375 lt_compiler_flag="$lt_prog_compiler_pic_FC"
12376 # Insert the option either (1) after the last *FLAGS variable, or
12377 # (2) before a word containing "conftest.", or (3) at the end.
12378 # Note that $ac_compile itself does not contain backslashes and begins
12379 # with a dollar sign (not a hyphen), so the echo should work correctly.
12380 # The option is referenced via a variable to avoid confusing sed.
12381 lt_compile=`echo "$ac_compile" | $SED \
12382 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12383 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12384 -e 's:$: $lt_compiler_flag:'`
12385 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12386 (eval "$lt_compile" 2>conftest.err)
12387 ac_status=$?
12388 cat conftest.err >&5
12389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12390 if (exit $ac_status) && test -s "$ac_outfile"; then
12391 # The compiler can only warn and ignore the option if not recognized
12392 # So say no if there are warnings other than the usual output.
12393 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12394 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12395 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12396 lt_cv_prog_compiler_pic_works_FC=yes
12399 $RM conftest*
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
12403 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
12405 if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
12406 case $lt_prog_compiler_pic_FC in
12407 "" | " "*) ;;
12408 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
12409 esac
12410 else
12411 lt_prog_compiler_pic_FC=
12412 lt_prog_compiler_can_build_shared_FC=no
12420 # Check to make sure the static flag actually works.
12422 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12424 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12425 if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then :
12426 $as_echo_n "(cached) " >&6
12427 else
12428 lt_cv_prog_compiler_static_works_FC=no
12429 save_LDFLAGS="$LDFLAGS"
12430 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12431 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12432 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12433 # The linker can only warn and ignore the option if not recognized
12434 # So say no if there are warnings
12435 if test -s conftest.err; then
12436 # Append any errors to the config.log.
12437 cat conftest.err 1>&5
12438 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12439 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12440 if diff conftest.exp conftest.er2 >/dev/null; then
12441 lt_cv_prog_compiler_static_works_FC=yes
12443 else
12444 lt_cv_prog_compiler_static_works_FC=yes
12447 $RM -r conftest*
12448 LDFLAGS="$save_LDFLAGS"
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
12452 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
12454 if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
12456 else
12457 lt_prog_compiler_static_FC=
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12464 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12465 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
12466 $as_echo_n "(cached) " >&6
12467 else
12468 lt_cv_prog_compiler_c_o_FC=no
12469 $RM -r conftest 2>/dev/null
12470 mkdir conftest
12471 cd conftest
12472 mkdir out
12473 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12475 lt_compiler_flag="-o out/conftest2.$ac_objext"
12476 # Insert the option either (1) after the last *FLAGS variable, or
12477 # (2) before a word containing "conftest.", or (3) at the end.
12478 # Note that $ac_compile itself does not contain backslashes and begins
12479 # with a dollar sign (not a hyphen), so the echo should work correctly.
12480 lt_compile=`echo "$ac_compile" | $SED \
12481 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12482 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12483 -e 's:$: $lt_compiler_flag:'`
12484 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12485 (eval "$lt_compile" 2>out/conftest.err)
12486 ac_status=$?
12487 cat out/conftest.err >&5
12488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12490 then
12491 # The compiler can only warn and ignore the option if not recognized
12492 # So say no if there are warnings
12493 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12494 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12495 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12496 lt_cv_prog_compiler_c_o_FC=yes
12499 chmod u+w . 2>&5
12500 $RM conftest*
12501 # SGI C++ compiler will create directory out/ii_files/ for
12502 # template instantiation
12503 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12504 $RM out/* && rmdir out
12505 cd ..
12506 $RM -r conftest
12507 $RM conftest*
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12511 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12516 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12517 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
12518 $as_echo_n "(cached) " >&6
12519 else
12520 lt_cv_prog_compiler_c_o_FC=no
12521 $RM -r conftest 2>/dev/null
12522 mkdir conftest
12523 cd conftest
12524 mkdir out
12525 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12527 lt_compiler_flag="-o out/conftest2.$ac_objext"
12528 # Insert the option either (1) after the last *FLAGS variable, or
12529 # (2) before a word containing "conftest.", or (3) at the end.
12530 # Note that $ac_compile itself does not contain backslashes and begins
12531 # with a dollar sign (not a hyphen), so the echo should work correctly.
12532 lt_compile=`echo "$ac_compile" | $SED \
12533 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12534 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12535 -e 's:$: $lt_compiler_flag:'`
12536 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12537 (eval "$lt_compile" 2>out/conftest.err)
12538 ac_status=$?
12539 cat out/conftest.err >&5
12540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12542 then
12543 # The compiler can only warn and ignore the option if not recognized
12544 # So say no if there are warnings
12545 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12546 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12547 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12548 lt_cv_prog_compiler_c_o_FC=yes
12551 chmod u+w . 2>&5
12552 $RM conftest*
12553 # SGI C++ compiler will create directory out/ii_files/ for
12554 # template instantiation
12555 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12556 $RM out/* && rmdir out
12557 cd ..
12558 $RM -r conftest
12559 $RM conftest*
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12563 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12568 hard_links="nottested"
12569 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
12570 # do not overwrite the value of need_locks provided by the user
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12572 $as_echo_n "checking if we can lock with hard links... " >&6; }
12573 hard_links=yes
12574 $RM conftest*
12575 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12576 touch conftest.a
12577 ln conftest.a conftest.b 2>&5 || hard_links=no
12578 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12580 $as_echo "$hard_links" >&6; }
12581 if test "$hard_links" = no; then
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12583 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12584 need_locks=warn
12586 else
12587 need_locks=no
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12593 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12595 runpath_var=
12596 allow_undefined_flag_FC=
12597 always_export_symbols_FC=no
12598 archive_cmds_FC=
12599 archive_expsym_cmds_FC=
12600 compiler_needs_object_FC=no
12601 enable_shared_with_static_runtimes_FC=no
12602 export_dynamic_flag_spec_FC=
12603 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12604 hardcode_automatic_FC=no
12605 hardcode_direct_FC=no
12606 hardcode_direct_absolute_FC=no
12607 hardcode_libdir_flag_spec_FC=
12608 hardcode_libdir_flag_spec_ld_FC=
12609 hardcode_libdir_separator_FC=
12610 hardcode_minus_L_FC=no
12611 hardcode_shlibpath_var_FC=unsupported
12612 inherit_rpath_FC=no
12613 link_all_deplibs_FC=unknown
12614 module_cmds_FC=
12615 module_expsym_cmds_FC=
12616 old_archive_from_new_cmds_FC=
12617 old_archive_from_expsyms_cmds_FC=
12618 thread_safe_flag_spec_FC=
12619 whole_archive_flag_spec_FC=
12620 # include_expsyms should be a list of space-separated symbols to be *always*
12621 # included in the symbol list
12622 include_expsyms_FC=
12623 # exclude_expsyms can be an extended regexp of symbols to exclude
12624 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12625 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12626 # as well as any symbol that contains `d'.
12627 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12628 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12629 # platforms (ab)use it in PIC code, but their linkers get confused if
12630 # the symbol is explicitly referenced. Since portable code cannot
12631 # rely on this symbol name, it's probably fine to never include it in
12632 # preloaded symbol tables.
12633 # Exclude shared library initialization/finalization symbols.
12634 extract_expsyms_cmds=
12636 case $host_os in
12637 cygwin* | mingw* | pw32* | cegcc*)
12638 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12639 # When not using gcc, we currently assume that we are using
12640 # Microsoft Visual C++.
12641 if test "$GCC" != yes; then
12642 with_gnu_ld=no
12645 interix*)
12646 # we just hope/assume this is gcc and not c89 (= MSVC++)
12647 with_gnu_ld=yes
12649 openbsd*)
12650 with_gnu_ld=no
12652 esac
12654 ld_shlibs_FC=yes
12656 # On some targets, GNU ld is compatible enough with the native linker
12657 # that we're better off using the native interface for both.
12658 lt_use_gnu_ld_interface=no
12659 if test "$with_gnu_ld" = yes; then
12660 case $host_os in
12661 aix*)
12662 # The AIX port of GNU ld has always aspired to compatibility
12663 # with the native linker. However, as the warning in the GNU ld
12664 # block says, versions before 2.19.5* couldn't really create working
12665 # shared libraries, regardless of the interface used.
12666 case `$LD -v 2>&1` in
12667 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12668 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12669 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12671 lt_use_gnu_ld_interface=yes
12673 esac
12676 lt_use_gnu_ld_interface=yes
12678 esac
12681 if test "$lt_use_gnu_ld_interface" = yes; then
12682 # If archive_cmds runs LD, not CC, wlarc should be empty
12683 wlarc='${wl}'
12685 # Set some defaults for GNU ld with shared library support. These
12686 # are reset later if shared libraries are not supported. Putting them
12687 # here allows them to be overridden if necessary.
12688 runpath_var=LD_RUN_PATH
12689 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12690 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
12691 # ancient GNU ld didn't support --whole-archive et. al.
12692 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12693 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12694 else
12695 whole_archive_flag_spec_FC=
12697 supports_anon_versioning=no
12698 case `$LD -v 2>&1` in
12699 *GNU\ gold*) supports_anon_versioning=yes ;;
12700 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12701 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12702 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12703 *\ 2.11.*) ;; # other 2.11 versions
12704 *) supports_anon_versioning=yes ;;
12705 esac
12707 # See if GNU ld supports shared libraries.
12708 case $host_os in
12709 aix[3-9]*)
12710 # On AIX/PPC, the GNU linker is very broken
12711 if test "$host_cpu" != ia64; then
12712 ld_shlibs_FC=no
12713 cat <<_LT_EOF 1>&2
12715 *** Warning: the GNU linker, at least up to release 2.19, is reported
12716 *** to be unable to reliably create shared libraries on AIX.
12717 *** Therefore, libtool is disabling shared libraries support. If you
12718 *** really care for shared libraries, you may want to install binutils
12719 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12720 *** You will then need to restart the configuration process.
12722 _LT_EOF
12726 amigaos*)
12727 case $host_cpu in
12728 powerpc)
12729 # see comment about AmigaOS4 .so support
12730 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12731 archive_expsym_cmds_FC=''
12733 m68k)
12734 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)'
12735 hardcode_libdir_flag_spec_FC='-L$libdir'
12736 hardcode_minus_L_FC=yes
12738 esac
12741 beos*)
12742 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12743 allow_undefined_flag_FC=unsupported
12744 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12745 # support --undefined. This deserves some investigation. FIXME
12746 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12747 else
12748 ld_shlibs_FC=no
12752 cygwin* | mingw* | pw32* | cegcc*)
12753 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
12754 # as there is no search path for DLLs.
12755 hardcode_libdir_flag_spec_FC='-L$libdir'
12756 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
12757 allow_undefined_flag_FC=unsupported
12758 always_export_symbols_FC=no
12759 enable_shared_with_static_runtimes_FC=yes
12760 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12762 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12763 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12764 # If the export-symbols file already is a .def file (1st line
12765 # is EXPORTS), use it as is; otherwise, prepend...
12766 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12767 cp $export_symbols $output_objdir/$soname.def;
12768 else
12769 echo EXPORTS > $output_objdir/$soname.def;
12770 cat $export_symbols >> $output_objdir/$soname.def;
12772 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12773 else
12774 ld_shlibs_FC=no
12778 haiku*)
12779 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12780 link_all_deplibs_FC=yes
12783 interix[3-9]*)
12784 hardcode_direct_FC=no
12785 hardcode_shlibpath_var_FC=no
12786 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
12787 export_dynamic_flag_spec_FC='${wl}-E'
12788 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12789 # Instead, shared libraries are loaded at an image base (0x10000000 by
12790 # default) and relocated if they conflict, which is a slow very memory
12791 # consuming and fragmenting process. To avoid this, we pick a random,
12792 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12793 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12794 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'
12795 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'
12798 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12799 tmp_diet=no
12800 if test "$host_os" = linux-dietlibc; then
12801 case $cc_basename in
12802 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12803 esac
12805 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12806 && test "$tmp_diet" = no
12807 then
12808 tmp_addflag=' $pic_flag'
12809 tmp_sharedflag='-shared'
12810 case $cc_basename,$host_cpu in
12811 pgcc*) # Portland Group C compiler
12812 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'
12813 tmp_addflag=' $pic_flag'
12815 pgf77* | pgf90* | pgf95* | pgfortran*)
12816 # Portland Group f77 and f90 compilers
12817 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'
12818 tmp_addflag=' $pic_flag -Mnomain' ;;
12819 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12820 tmp_addflag=' -i_dynamic' ;;
12821 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12822 tmp_addflag=' -i_dynamic -nofor_main' ;;
12823 ifc* | ifort*) # Intel Fortran compiler
12824 tmp_addflag=' -nofor_main' ;;
12825 lf95*) # Lahey Fortran 8.1
12826 whole_archive_flag_spec_FC=
12827 tmp_sharedflag='--shared' ;;
12828 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12829 tmp_sharedflag='-qmkshrobj'
12830 tmp_addflag= ;;
12831 nvcc*) # Cuda Compiler Driver 2.2
12832 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'
12833 compiler_needs_object_FC=yes
12835 esac
12836 case `$CC -V 2>&1 | sed 5q` in
12837 *Sun\ C*) # Sun C 5.9
12838 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'
12839 compiler_needs_object_FC=yes
12840 tmp_sharedflag='-G' ;;
12841 *Sun\ F*) # Sun Fortran 8.3
12842 tmp_sharedflag='-G' ;;
12843 esac
12844 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12846 if test "x$supports_anon_versioning" = xyes; then
12847 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
12848 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12849 echo "local: *; };" >> $output_objdir/$libname.ver~
12850 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12853 case $cc_basename in
12854 xlf* | bgf* | bgxlf* | mpixlf*)
12855 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12856 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
12857 hardcode_libdir_flag_spec_FC=
12858 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
12859 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12860 if test "x$supports_anon_versioning" = xyes; then
12861 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
12862 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12863 echo "local: *; };" >> $output_objdir/$libname.ver~
12864 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12867 esac
12868 else
12869 ld_shlibs_FC=no
12873 netbsd*)
12874 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12875 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12876 wlarc=
12877 else
12878 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12879 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12883 solaris*)
12884 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12885 ld_shlibs_FC=no
12886 cat <<_LT_EOF 1>&2
12888 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12889 *** create shared libraries on Solaris systems. Therefore, libtool
12890 *** is disabling shared libraries support. We urge you to upgrade GNU
12891 *** binutils to release 2.9.1 or newer. Another option is to modify
12892 *** your PATH or compiler configuration so that the native linker is
12893 *** used, and then restart.
12895 _LT_EOF
12896 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12897 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12898 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12899 else
12900 ld_shlibs_FC=no
12904 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12905 case `$LD -v 2>&1` in
12906 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12907 ld_shlibs_FC=no
12908 cat <<_LT_EOF 1>&2
12910 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12911 *** reliably create shared libraries on SCO systems. Therefore, libtool
12912 *** is disabling shared libraries support. We urge you to upgrade GNU
12913 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12914 *** your PATH or compiler configuration so that the native linker is
12915 *** used, and then restart.
12917 _LT_EOF
12920 # For security reasons, it is highly recommended that you always
12921 # use absolute paths for naming shared libraries, and exclude the
12922 # DT_RUNPATH tag from executables and libraries. But doing so
12923 # requires that you compile everything twice, which is a pain.
12924 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12925 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12926 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12927 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12928 else
12929 ld_shlibs_FC=no
12932 esac
12935 sunos4*)
12936 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12937 wlarc=
12938 hardcode_direct_FC=yes
12939 hardcode_shlibpath_var_FC=no
12943 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12944 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12945 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12946 else
12947 ld_shlibs_FC=no
12950 esac
12952 if test "$ld_shlibs_FC" = no; then
12953 runpath_var=
12954 hardcode_libdir_flag_spec_FC=
12955 export_dynamic_flag_spec_FC=
12956 whole_archive_flag_spec_FC=
12958 else
12959 # PORTME fill in a description of your system's linker (not GNU ld)
12960 case $host_os in
12961 aix3*)
12962 allow_undefined_flag_FC=unsupported
12963 always_export_symbols_FC=yes
12964 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'
12965 # Note: this linker hardcodes the directories in LIBPATH if there
12966 # are no directories specified by -L.
12967 hardcode_minus_L_FC=yes
12968 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12969 # Neither direct hardcoding nor static linking is supported with a
12970 # broken collect2.
12971 hardcode_direct_FC=unsupported
12975 aix[4-9]*)
12976 if test "$host_cpu" = ia64; then
12977 # On IA64, the linker does run time linking by default, so we don't
12978 # have to do anything special.
12979 aix_use_runtimelinking=no
12980 exp_sym_flag='-Bexport'
12981 no_entry_flag=""
12982 else
12983 # If we're using GNU nm, then we don't want the "-C" option.
12984 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12985 # Also, AIX nm treats weak defined symbols like other global
12986 # defined symbols, whereas GNU nm marks them as "W".
12987 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12988 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'
12989 else
12990 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'
12992 aix_use_runtimelinking=no
12994 # Test if we are trying to use run time linking or normal
12995 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12996 # need to do runtime linking.
12997 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12998 for ld_flag in $LDFLAGS; do
12999 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13000 aix_use_runtimelinking=yes
13001 break
13003 done
13005 esac
13007 exp_sym_flag='-bexport'
13008 no_entry_flag='-bnoentry'
13011 # When large executables or shared objects are built, AIX ld can
13012 # have problems creating the table of contents. If linking a library
13013 # or program results in "error TOC overflow" add -mminimal-toc to
13014 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13015 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13017 archive_cmds_FC=''
13018 hardcode_direct_FC=yes
13019 hardcode_direct_absolute_FC=yes
13020 hardcode_libdir_separator_FC=':'
13021 link_all_deplibs_FC=yes
13022 file_list_spec_FC='${wl}-f,'
13024 if test "$GCC" = yes; then
13025 case $host_os in aix4.[012]|aix4.[012].*)
13026 # We only want to do this on AIX 4.2 and lower, the check
13027 # below for broken collect2 doesn't work under 4.3+
13028 collect2name=`${CC} -print-prog-name=collect2`
13029 if test -f "$collect2name" &&
13030 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13031 then
13032 # We have reworked collect2
13034 else
13035 # We have old collect2
13036 hardcode_direct_FC=unsupported
13037 # It fails to find uninstalled libraries when the uninstalled
13038 # path is not listed in the libpath. Setting hardcode_minus_L
13039 # to unsupported forces relinking
13040 hardcode_minus_L_FC=yes
13041 hardcode_libdir_flag_spec_FC='-L$libdir'
13042 hardcode_libdir_separator_FC=
13045 esac
13046 shared_flag='-shared'
13047 if test "$aix_use_runtimelinking" = yes; then
13048 shared_flag="$shared_flag "'${wl}-G'
13050 else
13051 # not using gcc
13052 if test "$host_cpu" = ia64; then
13053 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13054 # chokes on -Wl,-G. The following line is correct:
13055 shared_flag='-G'
13056 else
13057 if test "$aix_use_runtimelinking" = yes; then
13058 shared_flag='${wl}-G'
13059 else
13060 shared_flag='${wl}-bM:SRE'
13065 export_dynamic_flag_spec_FC='${wl}-bexpall'
13066 # It seems that -bexpall does not export symbols beginning with
13067 # underscore (_), so it is better to generate a list of symbols to export.
13068 always_export_symbols_FC=yes
13069 if test "$aix_use_runtimelinking" = yes; then
13070 # Warning - without using the other runtime loading flags (-brtl),
13071 # -berok will link without error, but may produce a broken library.
13072 allow_undefined_flag_FC='-berok'
13073 # Determine the default libpath from the value encoded in an
13074 # empty executable.
13075 cat > conftest.$ac_ext <<_ACEOF
13076 program main
13079 _ACEOF
13080 if ac_fn_fc_try_link "$LINENO"; then :
13082 lt_aix_libpath_sed='
13083 /Import File Strings/,/^$/ {
13084 /^0/ {
13085 s/^0 *\(.*\)$/\1/
13089 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13090 # Check for a 64-bit object if we didn't find anything.
13091 if test -z "$aix_libpath"; then
13092 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13095 rm -f core conftest.err conftest.$ac_objext \
13096 conftest$ac_exeext conftest.$ac_ext
13097 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13099 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13100 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"
13101 else
13102 if test "$host_cpu" = ia64; then
13103 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
13104 allow_undefined_flag_FC="-z nodefs"
13105 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"
13106 else
13107 # Determine the default libpath from the value encoded in an
13108 # empty executable.
13109 cat > conftest.$ac_ext <<_ACEOF
13110 program main
13113 _ACEOF
13114 if ac_fn_fc_try_link "$LINENO"; then :
13116 lt_aix_libpath_sed='
13117 /Import File Strings/,/^$/ {
13118 /^0/ {
13119 s/^0 *\(.*\)$/\1/
13123 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13124 # Check for a 64-bit object if we didn't find anything.
13125 if test -z "$aix_libpath"; then
13126 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13129 rm -f core conftest.err conftest.$ac_objext \
13130 conftest$ac_exeext conftest.$ac_ext
13131 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13133 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13134 # Warning - without using the other run time loading flags,
13135 # -berok will link without error, but may produce a broken library.
13136 no_undefined_flag_FC=' ${wl}-bernotok'
13137 allow_undefined_flag_FC=' ${wl}-berok'
13138 if test "$with_gnu_ld" = yes; then
13139 # We only use this code for GNU lds that support --whole-archive.
13140 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13141 else
13142 # Exported symbols can be pulled into shared objects from archives
13143 whole_archive_flag_spec_FC='$convenience'
13145 archive_cmds_need_lc_FC=yes
13146 # This is similar to how AIX traditionally builds its shared libraries.
13147 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'
13152 amigaos*)
13153 case $host_cpu in
13154 powerpc)
13155 # see comment about AmigaOS4 .so support
13156 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13157 archive_expsym_cmds_FC=''
13159 m68k)
13160 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)'
13161 hardcode_libdir_flag_spec_FC='-L$libdir'
13162 hardcode_minus_L_FC=yes
13164 esac
13167 bsdi[45]*)
13168 export_dynamic_flag_spec_FC=-rdynamic
13171 cygwin* | mingw* | pw32* | cegcc*)
13172 # When not using gcc, we currently assume that we are using
13173 # Microsoft Visual C++.
13174 # hardcode_libdir_flag_spec is actually meaningless, as there is
13175 # no search path for DLLs.
13176 hardcode_libdir_flag_spec_FC=' '
13177 allow_undefined_flag_FC=unsupported
13178 # Tell ltmain to make .lib files, not .a files.
13179 libext=lib
13180 # Tell ltmain to make .dll files, not .so files.
13181 shrext_cmds=".dll"
13182 # FIXME: Setting linknames here is a bad hack.
13183 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13184 # The linker will automatically build a .lib file if we build a DLL.
13185 old_archive_from_new_cmds_FC='true'
13186 # FIXME: Should let the user specify the lib program.
13187 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
13188 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
13189 enable_shared_with_static_runtimes_FC=yes
13192 darwin* | rhapsody*)
13195 archive_cmds_need_lc_FC=no
13196 hardcode_direct_FC=no
13197 hardcode_automatic_FC=yes
13198 hardcode_shlibpath_var_FC=unsupported
13199 if test "$lt_cv_ld_force_load" = "yes"; then
13200 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\"`'
13201 else
13202 whole_archive_flag_spec_FC=''
13204 link_all_deplibs_FC=yes
13205 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
13206 case $cc_basename in
13207 ifort*) _lt_dar_can_shared=yes ;;
13208 *) _lt_dar_can_shared=$GCC ;;
13209 esac
13210 if test "$_lt_dar_can_shared" = "yes"; then
13211 output_verbose_link_cmd=func_echo_all
13212 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}"
13213 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13214 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}"
13215 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}"
13217 else
13218 ld_shlibs_FC=no
13223 dgux*)
13224 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13225 hardcode_libdir_flag_spec_FC='-L$libdir'
13226 hardcode_shlibpath_var_FC=no
13229 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13230 # support. Future versions do this automatically, but an explicit c++rt0.o
13231 # does not break anything, and helps significantly (at the cost of a little
13232 # extra space).
13233 freebsd2.2*)
13234 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13235 hardcode_libdir_flag_spec_FC='-R$libdir'
13236 hardcode_direct_FC=yes
13237 hardcode_shlibpath_var_FC=no
13240 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13241 freebsd2.*)
13242 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13243 hardcode_direct_FC=yes
13244 hardcode_minus_L_FC=yes
13245 hardcode_shlibpath_var_FC=no
13248 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13249 freebsd* | dragonfly*)
13250 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13251 hardcode_libdir_flag_spec_FC='-R$libdir'
13252 hardcode_direct_FC=yes
13253 hardcode_shlibpath_var_FC=no
13256 hpux9*)
13257 if test "$GCC" = yes; then
13258 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'
13259 else
13260 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'
13262 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13263 hardcode_libdir_separator_FC=:
13264 hardcode_direct_FC=yes
13266 # hardcode_minus_L: Not really in the search PATH,
13267 # but as the default location of the library.
13268 hardcode_minus_L_FC=yes
13269 export_dynamic_flag_spec_FC='${wl}-E'
13272 hpux10*)
13273 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13274 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13275 else
13276 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13278 if test "$with_gnu_ld" = no; then
13279 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13280 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
13281 hardcode_libdir_separator_FC=:
13282 hardcode_direct_FC=yes
13283 hardcode_direct_absolute_FC=yes
13284 export_dynamic_flag_spec_FC='${wl}-E'
13285 # hardcode_minus_L: Not really in the search PATH,
13286 # but as the default location of the library.
13287 hardcode_minus_L_FC=yes
13291 hpux11*)
13292 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13293 case $host_cpu in
13294 hppa*64*)
13295 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13297 ia64*)
13298 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13301 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13303 esac
13304 else
13305 case $host_cpu in
13306 hppa*64*)
13307 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13309 ia64*)
13310 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13313 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13315 esac
13317 if test "$with_gnu_ld" = no; then
13318 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13319 hardcode_libdir_separator_FC=:
13321 case $host_cpu in
13322 hppa*64*|ia64*)
13323 hardcode_direct_FC=no
13324 hardcode_shlibpath_var_FC=no
13327 hardcode_direct_FC=yes
13328 hardcode_direct_absolute_FC=yes
13329 export_dynamic_flag_spec_FC='${wl}-E'
13331 # hardcode_minus_L: Not really in the search PATH,
13332 # but as the default location of the library.
13333 hardcode_minus_L_FC=yes
13335 esac
13339 irix5* | irix6* | nonstopux*)
13340 if test "$GCC" = yes; then
13341 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'
13342 # Try to use the -exported_symbol ld option, if it does not
13343 # work, assume that -exports_file does not work either and
13344 # implicitly export all symbols.
13345 save_LDFLAGS="$LDFLAGS"
13346 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13347 cat > conftest.$ac_ext <<_ACEOF
13348 int foo(void) {}
13349 _ACEOF
13350 if ac_fn_fc_try_link "$LINENO"; then :
13351 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'
13354 rm -f core conftest.err conftest.$ac_objext \
13355 conftest$ac_exeext conftest.$ac_ext
13356 LDFLAGS="$save_LDFLAGS"
13357 else
13358 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'
13359 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'
13361 archive_cmds_need_lc_FC='no'
13362 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13363 hardcode_libdir_separator_FC=:
13364 inherit_rpath_FC=yes
13365 link_all_deplibs_FC=yes
13368 netbsd*)
13369 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13370 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13371 else
13372 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13374 hardcode_libdir_flag_spec_FC='-R$libdir'
13375 hardcode_direct_FC=yes
13376 hardcode_shlibpath_var_FC=no
13379 newsos6)
13380 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13381 hardcode_direct_FC=yes
13382 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13383 hardcode_libdir_separator_FC=:
13384 hardcode_shlibpath_var_FC=no
13387 *nto* | *qnx*)
13390 openbsd*)
13391 if test -f /usr/libexec/ld.so; then
13392 hardcode_direct_FC=yes
13393 hardcode_shlibpath_var_FC=no
13394 hardcode_direct_absolute_FC=yes
13395 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13396 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13397 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13398 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13399 export_dynamic_flag_spec_FC='${wl}-E'
13400 else
13401 case $host_os in
13402 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13403 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13404 hardcode_libdir_flag_spec_FC='-R$libdir'
13407 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13408 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13410 esac
13412 else
13413 ld_shlibs_FC=no
13417 os2*)
13418 hardcode_libdir_flag_spec_FC='-L$libdir'
13419 hardcode_minus_L_FC=yes
13420 allow_undefined_flag_FC=unsupported
13421 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'
13422 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13425 osf3*)
13426 if test "$GCC" = yes; then
13427 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13428 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'
13429 else
13430 allow_undefined_flag_FC=' -expect_unresolved \*'
13431 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'
13433 archive_cmds_need_lc_FC='no'
13434 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13435 hardcode_libdir_separator_FC=:
13438 osf4* | osf5*) # as osf3* with the addition of -msym flag
13439 if test "$GCC" = yes; then
13440 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13441 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'
13442 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13443 else
13444 allow_undefined_flag_FC=' -expect_unresolved \*'
13445 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'
13446 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~
13447 $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'
13449 # Both c and cxx compiler support -rpath directly
13450 hardcode_libdir_flag_spec_FC='-rpath $libdir'
13452 archive_cmds_need_lc_FC='no'
13453 hardcode_libdir_separator_FC=:
13456 solaris*)
13457 no_undefined_flag_FC=' -z defs'
13458 if test "$GCC" = yes; then
13459 wlarc='${wl}'
13460 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13461 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13462 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13463 else
13464 case `$CC -V 2>&1` in
13465 *"Compilers 5.0"*)
13466 wlarc=''
13467 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13468 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13469 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13472 wlarc='${wl}'
13473 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13474 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13475 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13477 esac
13479 hardcode_libdir_flag_spec_FC='-R$libdir'
13480 hardcode_shlibpath_var_FC=no
13481 case $host_os in
13482 solaris2.[0-5] | solaris2.[0-5].*) ;;
13484 # The compiler driver will combine and reorder linker options,
13485 # but understands `-z linker_flag'. GCC discards it without `$wl',
13486 # but is careful enough not to reorder.
13487 # Supported since Solaris 2.6 (maybe 2.5.1?)
13488 if test "$GCC" = yes; then
13489 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13490 else
13491 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
13494 esac
13495 link_all_deplibs_FC=yes
13498 sunos4*)
13499 if test "x$host_vendor" = xsequent; then
13500 # Use $CC to link under sequent, because it throws in some extra .o
13501 # files that make .init and .fini sections work.
13502 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13503 else
13504 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13506 hardcode_libdir_flag_spec_FC='-L$libdir'
13507 hardcode_direct_FC=yes
13508 hardcode_minus_L_FC=yes
13509 hardcode_shlibpath_var_FC=no
13512 sysv4)
13513 case $host_vendor in
13514 sni)
13515 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13516 hardcode_direct_FC=yes # is this really true???
13518 siemens)
13519 ## LD is ld it makes a PLAMLIB
13520 ## CC just makes a GrossModule.
13521 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13522 reload_cmds_FC='$CC -r -o $output$reload_objs'
13523 hardcode_direct_FC=no
13525 motorola)
13526 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13527 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
13529 esac
13530 runpath_var='LD_RUN_PATH'
13531 hardcode_shlibpath_var_FC=no
13534 sysv4.3*)
13535 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13536 hardcode_shlibpath_var_FC=no
13537 export_dynamic_flag_spec_FC='-Bexport'
13540 sysv4*MP*)
13541 if test -d /usr/nec; then
13542 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13543 hardcode_shlibpath_var_FC=no
13544 runpath_var=LD_RUN_PATH
13545 hardcode_runpath_var=yes
13546 ld_shlibs_FC=yes
13550 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13551 no_undefined_flag_FC='${wl}-z,text'
13552 archive_cmds_need_lc_FC=no
13553 hardcode_shlibpath_var_FC=no
13554 runpath_var='LD_RUN_PATH'
13556 if test "$GCC" = yes; then
13557 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13558 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13559 else
13560 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13561 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13565 sysv5* | sco3.2v5* | sco5v6*)
13566 # Note: We can NOT use -z defs as we might desire, because we do not
13567 # link with -lc, and that would cause any symbols used from libc to
13568 # always be unresolved, which means just about no library would
13569 # ever link correctly. If we're not using GNU ld we use -z text
13570 # though, which does catch some bad symbols but isn't as heavy-handed
13571 # as -z defs.
13572 no_undefined_flag_FC='${wl}-z,text'
13573 allow_undefined_flag_FC='${wl}-z,nodefs'
13574 archive_cmds_need_lc_FC=no
13575 hardcode_shlibpath_var_FC=no
13576 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
13577 hardcode_libdir_separator_FC=':'
13578 link_all_deplibs_FC=yes
13579 export_dynamic_flag_spec_FC='${wl}-Bexport'
13580 runpath_var='LD_RUN_PATH'
13582 if test "$GCC" = yes; then
13583 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13584 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13585 else
13586 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13587 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13591 uts4*)
13592 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13593 hardcode_libdir_flag_spec_FC='-L$libdir'
13594 hardcode_shlibpath_var_FC=no
13598 ld_shlibs_FC=no
13600 esac
13602 if test x$host_vendor = xsni; then
13603 case $host in
13604 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13605 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
13607 esac
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
13612 $as_echo "$ld_shlibs_FC" >&6; }
13613 test "$ld_shlibs_FC" = no && can_build_shared=no
13615 with_gnu_ld_FC=$with_gnu_ld
13623 # Do we need to explicitly link libc?
13625 case "x$archive_cmds_need_lc_FC" in
13626 x|xyes)
13627 # Assume -lc should be added
13628 archive_cmds_need_lc_FC=yes
13630 if test "$enable_shared" = yes && test "$GCC" = yes; then
13631 case $archive_cmds_FC in
13632 *'~'*)
13633 # FIXME: we may have to deal with multi-command sequences.
13635 '$CC '*)
13636 # Test whether the compiler implicitly links with -lc since on some
13637 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13638 # to ld, don't add -lc before -lgcc.
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13640 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13641 if test "${lt_cv_archive_cmds_need_lc_FC+set}" = set; then :
13642 $as_echo_n "(cached) " >&6
13643 else
13644 $RM conftest*
13645 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13647 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13648 (eval $ac_compile) 2>&5
13649 ac_status=$?
13650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13651 test $ac_status = 0; } 2>conftest.err; then
13652 soname=conftest
13653 lib=conftest
13654 libobjs=conftest.$ac_objext
13655 deplibs=
13656 wl=$lt_prog_compiler_wl_FC
13657 pic_flag=$lt_prog_compiler_pic_FC
13658 compiler_flags=-v
13659 linker_flags=-v
13660 verstring=
13661 output_objdir=.
13662 libname=conftest
13663 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
13664 allow_undefined_flag_FC=
13665 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13666 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13667 ac_status=$?
13668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13669 test $ac_status = 0; }
13670 then
13671 lt_cv_archive_cmds_need_lc_FC=no
13672 else
13673 lt_cv_archive_cmds_need_lc_FC=yes
13675 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
13676 else
13677 cat conftest.err 1>&5
13679 $RM conftest*
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
13683 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
13684 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
13686 esac
13689 esac
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13755 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13757 library_names_spec=
13758 libname_spec='lib$name'
13759 soname_spec=
13760 shrext_cmds=".so"
13761 postinstall_cmds=
13762 postuninstall_cmds=
13763 finish_cmds=
13764 finish_eval=
13765 shlibpath_var=
13766 shlibpath_overrides_runpath=unknown
13767 version_type=none
13768 dynamic_linker="$host_os ld.so"
13769 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13770 need_lib_prefix=unknown
13771 hardcode_into_libs=no
13773 # when you set need_version to no, make sure it does not cause -set_version
13774 # flags to be left without arguments
13775 need_version=unknown
13777 case $host_os in
13778 aix3*)
13779 version_type=linux
13780 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13781 shlibpath_var=LIBPATH
13783 # AIX 3 has no versioning support, so we append a major version to the name.
13784 soname_spec='${libname}${release}${shared_ext}$major'
13787 aix[4-9]*)
13788 version_type=linux
13789 need_lib_prefix=no
13790 need_version=no
13791 hardcode_into_libs=yes
13792 if test "$host_cpu" = ia64; then
13793 # AIX 5 supports IA64
13794 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13795 shlibpath_var=LD_LIBRARY_PATH
13796 else
13797 # With GCC up to 2.95.x, collect2 would create an import file
13798 # for dependence libraries. The import file would start with
13799 # the line `#! .'. This would cause the generated library to
13800 # depend on `.', always an invalid library. This was fixed in
13801 # development snapshots of GCC prior to 3.0.
13802 case $host_os in
13803 aix4 | aix4.[01] | aix4.[01].*)
13804 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13805 echo ' yes '
13806 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13808 else
13809 can_build_shared=no
13812 esac
13813 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13814 # soname into executable. Probably we can add versioning support to
13815 # collect2, so additional links can be useful in future.
13816 if test "$aix_use_runtimelinking" = yes; then
13817 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13818 # instead of lib<name>.a to let people know that these are not
13819 # typical AIX shared libraries.
13820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13821 else
13822 # We preserve .a as extension for shared libraries through AIX4.2
13823 # and later when we are not doing run time linking.
13824 library_names_spec='${libname}${release}.a $libname.a'
13825 soname_spec='${libname}${release}${shared_ext}$major'
13827 shlibpath_var=LIBPATH
13831 amigaos*)
13832 case $host_cpu in
13833 powerpc)
13834 # Since July 2007 AmigaOS4 officially supports .so libraries.
13835 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13838 m68k)
13839 library_names_spec='$libname.ixlibrary $libname.a'
13840 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13841 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'
13843 esac
13846 beos*)
13847 library_names_spec='${libname}${shared_ext}'
13848 dynamic_linker="$host_os ld.so"
13849 shlibpath_var=LIBRARY_PATH
13852 bsdi[45]*)
13853 version_type=linux
13854 need_version=no
13855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13856 soname_spec='${libname}${release}${shared_ext}$major'
13857 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13858 shlibpath_var=LD_LIBRARY_PATH
13859 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13860 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13861 # the default ld.so.conf also contains /usr/contrib/lib and
13862 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13863 # libtool to hard-code these into programs
13866 cygwin* | mingw* | pw32* | cegcc*)
13867 version_type=windows
13868 shrext_cmds=".dll"
13869 need_version=no
13870 need_lib_prefix=no
13872 case $GCC,$host_os in
13873 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13874 library_names_spec='$libname.dll.a'
13875 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13876 postinstall_cmds='base_file=`basename \${file}`~
13877 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13878 dldir=$destdir/`dirname \$dlpath`~
13879 test -d \$dldir || mkdir -p \$dldir~
13880 $install_prog $dir/$dlname \$dldir/$dlname~
13881 chmod a+x \$dldir/$dlname~
13882 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13883 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13885 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13886 dlpath=$dir/\$dldll~
13887 $RM \$dlpath'
13888 shlibpath_overrides_runpath=yes
13890 case $host_os in
13891 cygwin*)
13892 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13893 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13896 mingw* | cegcc*)
13897 # MinGW DLLs use traditional 'lib' prefix
13898 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13900 pw32*)
13901 # pw32 DLLs use 'pw' prefix rather than 'lib'
13902 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13904 esac
13908 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13910 esac
13911 dynamic_linker='Win32 ld.exe'
13912 # FIXME: first we should search . and the directory the executable is in
13913 shlibpath_var=PATH
13916 darwin* | rhapsody*)
13917 dynamic_linker="$host_os dyld"
13918 version_type=darwin
13919 need_lib_prefix=no
13920 need_version=no
13921 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13922 soname_spec='${libname}${release}${major}$shared_ext'
13923 shlibpath_overrides_runpath=yes
13924 shlibpath_var=DYLD_LIBRARY_PATH
13925 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13927 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13930 dgux*)
13931 version_type=linux
13932 need_lib_prefix=no
13933 need_version=no
13934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13935 soname_spec='${libname}${release}${shared_ext}$major'
13936 shlibpath_var=LD_LIBRARY_PATH
13939 freebsd* | dragonfly*)
13940 # DragonFly does not have aout. When/if they implement a new
13941 # versioning mechanism, adjust this.
13942 if test -x /usr/bin/objformat; then
13943 objformat=`/usr/bin/objformat`
13944 else
13945 case $host_os in
13946 freebsd[23].*) objformat=aout ;;
13947 *) objformat=elf ;;
13948 esac
13950 version_type=freebsd-$objformat
13951 case $version_type in
13952 freebsd-elf*)
13953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13954 need_version=no
13955 need_lib_prefix=no
13957 freebsd-*)
13958 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13959 need_version=yes
13961 esac
13962 shlibpath_var=LD_LIBRARY_PATH
13963 case $host_os in
13964 freebsd2.*)
13965 shlibpath_overrides_runpath=yes
13967 freebsd3.[01]* | freebsdelf3.[01]*)
13968 shlibpath_overrides_runpath=yes
13969 hardcode_into_libs=yes
13971 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13972 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13973 shlibpath_overrides_runpath=no
13974 hardcode_into_libs=yes
13976 *) # from 4.6 on, and DragonFly
13977 shlibpath_overrides_runpath=yes
13978 hardcode_into_libs=yes
13980 esac
13983 gnu*)
13984 version_type=linux
13985 need_lib_prefix=no
13986 need_version=no
13987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13988 soname_spec='${libname}${release}${shared_ext}$major'
13989 shlibpath_var=LD_LIBRARY_PATH
13990 hardcode_into_libs=yes
13993 haiku*)
13994 version_type=linux
13995 need_lib_prefix=no
13996 need_version=no
13997 dynamic_linker="$host_os runtime_loader"
13998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13999 soname_spec='${libname}${release}${shared_ext}$major'
14000 shlibpath_var=LIBRARY_PATH
14001 shlibpath_overrides_runpath=yes
14002 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14003 hardcode_into_libs=yes
14006 hpux9* | hpux10* | hpux11*)
14007 # Give a soname corresponding to the major version so that dld.sl refuses to
14008 # link against other versions.
14009 version_type=sunos
14010 need_lib_prefix=no
14011 need_version=no
14012 case $host_cpu in
14013 ia64*)
14014 shrext_cmds='.so'
14015 hardcode_into_libs=yes
14016 dynamic_linker="$host_os dld.so"
14017 shlibpath_var=LD_LIBRARY_PATH
14018 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14020 soname_spec='${libname}${release}${shared_ext}$major'
14021 if test "X$HPUX_IA64_MODE" = X32; then
14022 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14023 else
14024 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14026 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14028 hppa*64*)
14029 shrext_cmds='.sl'
14030 hardcode_into_libs=yes
14031 dynamic_linker="$host_os dld.sl"
14032 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14033 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14035 soname_spec='${libname}${release}${shared_ext}$major'
14036 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14037 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14040 shrext_cmds='.sl'
14041 dynamic_linker="$host_os dld.sl"
14042 shlibpath_var=SHLIB_PATH
14043 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14045 soname_spec='${libname}${release}${shared_ext}$major'
14047 esac
14048 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14049 postinstall_cmds='chmod 555 $lib'
14050 # or fails outright, so override atomically:
14051 install_override_mode=555
14054 interix[3-9]*)
14055 version_type=linux
14056 need_lib_prefix=no
14057 need_version=no
14058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14059 soname_spec='${libname}${release}${shared_ext}$major'
14060 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14061 shlibpath_var=LD_LIBRARY_PATH
14062 shlibpath_overrides_runpath=no
14063 hardcode_into_libs=yes
14066 irix5* | irix6* | nonstopux*)
14067 case $host_os in
14068 nonstopux*) version_type=nonstopux ;;
14070 if test "$lt_cv_prog_gnu_ld" = yes; then
14071 version_type=linux
14072 else
14073 version_type=irix
14074 fi ;;
14075 esac
14076 need_lib_prefix=no
14077 need_version=no
14078 soname_spec='${libname}${release}${shared_ext}$major'
14079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14080 case $host_os in
14081 irix5* | nonstopux*)
14082 libsuff= shlibsuff=
14085 case $LD in # libtool.m4 will add one of these switches to LD
14086 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14087 libsuff= shlibsuff= libmagic=32-bit;;
14088 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14089 libsuff=32 shlibsuff=N32 libmagic=N32;;
14090 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14091 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14092 *) libsuff= shlibsuff= libmagic=never-match;;
14093 esac
14095 esac
14096 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14097 shlibpath_overrides_runpath=no
14098 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14099 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14100 hardcode_into_libs=yes
14103 # No shared lib support for Linux oldld, aout, or coff.
14104 linux*oldld* | linux*aout* | linux*coff*)
14105 dynamic_linker=no
14108 # This must be Linux ELF.
14109 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14110 version_type=linux
14111 need_lib_prefix=no
14112 need_version=no
14113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14114 soname_spec='${libname}${release}${shared_ext}$major'
14115 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14116 shlibpath_var=LD_LIBRARY_PATH
14117 shlibpath_overrides_runpath=no
14119 # Some binutils ld are patched to set DT_RUNPATH
14120 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14121 $as_echo_n "(cached) " >&6
14122 else
14123 lt_cv_shlibpath_overrides_runpath=no
14124 save_LDFLAGS=$LDFLAGS
14125 save_libdir=$libdir
14126 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
14127 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
14128 cat > conftest.$ac_ext <<_ACEOF
14129 program main
14132 _ACEOF
14133 if ac_fn_fc_try_link "$LINENO"; then :
14134 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14135 lt_cv_shlibpath_overrides_runpath=yes
14138 rm -f core conftest.err conftest.$ac_objext \
14139 conftest$ac_exeext conftest.$ac_ext
14140 LDFLAGS=$save_LDFLAGS
14141 libdir=$save_libdir
14145 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14147 # This implies no fast_install, which is unacceptable.
14148 # Some rework will be needed to allow for fast_install
14149 # before this can be enabled.
14150 hardcode_into_libs=yes
14152 # Append ld.so.conf contents to the search path
14153 if test -f /etc/ld.so.conf; then
14154 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' ' '`
14155 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14158 # We used to test for /lib/ld.so.1 and disable shared libraries on
14159 # powerpc, because MkLinux only supported shared libraries with the
14160 # GNU dynamic linker. Since this was broken with cross compilers,
14161 # most powerpc-linux boxes support dynamic linking these days and
14162 # people can always --disable-shared, the test was removed, and we
14163 # assume the GNU/Linux dynamic linker is in use.
14164 dynamic_linker='GNU/Linux ld.so'
14167 netbsd*)
14168 version_type=sunos
14169 need_lib_prefix=no
14170 need_version=no
14171 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14173 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14174 dynamic_linker='NetBSD (a.out) ld.so'
14175 else
14176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14177 soname_spec='${libname}${release}${shared_ext}$major'
14178 dynamic_linker='NetBSD ld.elf_so'
14180 shlibpath_var=LD_LIBRARY_PATH
14181 shlibpath_overrides_runpath=yes
14182 hardcode_into_libs=yes
14185 newsos6)
14186 version_type=linux
14187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14188 shlibpath_var=LD_LIBRARY_PATH
14189 shlibpath_overrides_runpath=yes
14192 *nto* | *qnx*)
14193 version_type=qnx
14194 need_lib_prefix=no
14195 need_version=no
14196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14197 soname_spec='${libname}${release}${shared_ext}$major'
14198 shlibpath_var=LD_LIBRARY_PATH
14199 shlibpath_overrides_runpath=no
14200 hardcode_into_libs=yes
14201 dynamic_linker='ldqnx.so'
14204 openbsd*)
14205 version_type=sunos
14206 sys_lib_dlsearch_path_spec="/usr/lib"
14207 need_lib_prefix=no
14208 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14209 case $host_os in
14210 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14211 *) need_version=no ;;
14212 esac
14213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14214 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14215 shlibpath_var=LD_LIBRARY_PATH
14216 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14217 case $host_os in
14218 openbsd2.[89] | openbsd2.[89].*)
14219 shlibpath_overrides_runpath=no
14222 shlibpath_overrides_runpath=yes
14224 esac
14225 else
14226 shlibpath_overrides_runpath=yes
14230 os2*)
14231 libname_spec='$name'
14232 shrext_cmds=".dll"
14233 need_lib_prefix=no
14234 library_names_spec='$libname${shared_ext} $libname.a'
14235 dynamic_linker='OS/2 ld.exe'
14236 shlibpath_var=LIBPATH
14239 osf3* | osf4* | osf5*)
14240 version_type=osf
14241 need_lib_prefix=no
14242 need_version=no
14243 soname_spec='${libname}${release}${shared_ext}$major'
14244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14245 shlibpath_var=LD_LIBRARY_PATH
14246 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14247 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14250 rdos*)
14251 dynamic_linker=no
14254 solaris*)
14255 version_type=linux
14256 need_lib_prefix=no
14257 need_version=no
14258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14259 soname_spec='${libname}${release}${shared_ext}$major'
14260 shlibpath_var=LD_LIBRARY_PATH
14261 shlibpath_overrides_runpath=yes
14262 hardcode_into_libs=yes
14263 # ldd complains unless libraries are executable
14264 postinstall_cmds='chmod +x $lib'
14267 sunos4*)
14268 version_type=sunos
14269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14270 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14271 shlibpath_var=LD_LIBRARY_PATH
14272 shlibpath_overrides_runpath=yes
14273 if test "$with_gnu_ld" = yes; then
14274 need_lib_prefix=no
14276 need_version=yes
14279 sysv4 | sysv4.3*)
14280 version_type=linux
14281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14282 soname_spec='${libname}${release}${shared_ext}$major'
14283 shlibpath_var=LD_LIBRARY_PATH
14284 case $host_vendor in
14285 sni)
14286 shlibpath_overrides_runpath=no
14287 need_lib_prefix=no
14288 runpath_var=LD_RUN_PATH
14290 siemens)
14291 need_lib_prefix=no
14293 motorola)
14294 need_lib_prefix=no
14295 need_version=no
14296 shlibpath_overrides_runpath=no
14297 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14299 esac
14302 sysv4*MP*)
14303 if test -d /usr/nec ;then
14304 version_type=linux
14305 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14306 soname_spec='$libname${shared_ext}.$major'
14307 shlibpath_var=LD_LIBRARY_PATH
14311 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14312 version_type=freebsd-elf
14313 need_lib_prefix=no
14314 need_version=no
14315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14316 soname_spec='${libname}${release}${shared_ext}$major'
14317 shlibpath_var=LD_LIBRARY_PATH
14318 shlibpath_overrides_runpath=yes
14319 hardcode_into_libs=yes
14320 if test "$with_gnu_ld" = yes; then
14321 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14322 else
14323 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14324 case $host_os in
14325 sco3.2v5*)
14326 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14328 esac
14330 sys_lib_dlsearch_path_spec='/usr/lib'
14333 tpf*)
14334 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14335 version_type=linux
14336 need_lib_prefix=no
14337 need_version=no
14338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14339 shlibpath_var=LD_LIBRARY_PATH
14340 shlibpath_overrides_runpath=no
14341 hardcode_into_libs=yes
14344 uts4*)
14345 version_type=linux
14346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14347 soname_spec='${libname}${release}${shared_ext}$major'
14348 shlibpath_var=LD_LIBRARY_PATH
14352 dynamic_linker=no
14354 esac
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14356 $as_echo "$dynamic_linker" >&6; }
14357 test "$dynamic_linker" = no && can_build_shared=no
14359 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14360 if test "$GCC" = yes; then
14361 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14364 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14365 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14367 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14368 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14409 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14410 hardcode_action_FC=
14411 if test -n "$hardcode_libdir_flag_spec_FC" ||
14412 test -n "$runpath_var_FC" ||
14413 test "X$hardcode_automatic_FC" = "Xyes" ; then
14415 # We can hardcode non-existent directories.
14416 if test "$hardcode_direct_FC" != no &&
14417 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14418 # have to relink, otherwise we might link with an installed library
14419 # when we should be linking with a yet-to-be-installed one
14420 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
14421 test "$hardcode_minus_L_FC" != no; then
14422 # Linking always hardcodes the temporary library directory.
14423 hardcode_action_FC=relink
14424 else
14425 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14426 hardcode_action_FC=immediate
14428 else
14429 # We cannot hardcode anything, or else we can only hardcode existing
14430 # directories.
14431 hardcode_action_FC=unsupported
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
14434 $as_echo "$hardcode_action_FC" >&6; }
14436 if test "$hardcode_action_FC" = relink ||
14437 test "$inherit_rpath_FC" = yes; then
14438 # Fast installation is not supported
14439 enable_fast_install=no
14440 elif test "$shlibpath_overrides_runpath" = yes ||
14441 test "$enable_shared" = no; then
14442 # Fast installation is not necessary
14443 enable_fast_install=needless
14452 fi # test -n "$compiler"
14454 GCC=$lt_save_GCC
14455 CC="$lt_save_CC"
14456 fi # test "$_lt_disable_FC" != yes
14458 ac_ext=c
14459 ac_cpp='$CPP $CPPFLAGS'
14460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14465 FCFLAGS="$FCFLAGS -Wall -L../libgfortran"
14467 # For libtool versioning info, format is CURRENT:REVISION:AGE
14468 libtool_VERSION=1:0:0
14471 # Check header files.
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14473 $as_echo_n "checking for ANSI C header files... " >&6; }
14474 if test "${ac_cv_header_stdc+set}" = set; then :
14475 $as_echo_n "(cached) " >&6
14476 else
14477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14478 /* end confdefs.h. */
14479 #include <stdlib.h>
14480 #include <stdarg.h>
14481 #include <string.h>
14482 #include <float.h>
14485 main ()
14489 return 0;
14491 _ACEOF
14492 if ac_fn_c_try_compile "$LINENO"; then :
14493 ac_cv_header_stdc=yes
14494 else
14495 ac_cv_header_stdc=no
14497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14499 if test $ac_cv_header_stdc = yes; then
14500 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14502 /* end confdefs.h. */
14503 #include <string.h>
14505 _ACEOF
14506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14507 $EGREP "memchr" >/dev/null 2>&1; then :
14509 else
14510 ac_cv_header_stdc=no
14512 rm -f conftest*
14516 if test $ac_cv_header_stdc = yes; then
14517 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14519 /* end confdefs.h. */
14520 #include <stdlib.h>
14522 _ACEOF
14523 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14524 $EGREP "free" >/dev/null 2>&1; then :
14526 else
14527 ac_cv_header_stdc=no
14529 rm -f conftest*
14533 if test $ac_cv_header_stdc = yes; then
14534 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14535 if test "$cross_compiling" = yes; then :
14537 else
14538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14539 /* end confdefs.h. */
14540 #include <ctype.h>
14541 #include <stdlib.h>
14542 #if ((' ' & 0x0FF) == 0x020)
14543 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14544 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14545 #else
14546 # define ISLOWER(c) \
14547 (('a' <= (c) && (c) <= 'i') \
14548 || ('j' <= (c) && (c) <= 'r') \
14549 || ('s' <= (c) && (c) <= 'z'))
14550 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14551 #endif
14553 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14555 main ()
14557 int i;
14558 for (i = 0; i < 256; i++)
14559 if (XOR (islower (i), ISLOWER (i))
14560 || toupper (i) != TOUPPER (i))
14561 return 2;
14562 return 0;
14564 _ACEOF
14565 if ac_fn_c_try_run "$LINENO"; then :
14567 else
14568 ac_cv_header_stdc=no
14570 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14571 conftest.$ac_objext conftest.beam conftest.$ac_ext
14576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14577 $as_echo "$ac_cv_header_stdc" >&6; }
14578 if test $ac_cv_header_stdc = yes; then
14580 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14585 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14586 if test "${ac_cv_header_time+set}" = set; then :
14587 $as_echo_n "(cached) " >&6
14588 else
14589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14590 /* end confdefs.h. */
14591 #include <sys/types.h>
14592 #include <sys/time.h>
14593 #include <time.h>
14596 main ()
14598 if ((struct tm *) 0)
14599 return 0;
14601 return 0;
14603 _ACEOF
14604 if ac_fn_c_try_compile "$LINENO"; then :
14605 ac_cv_header_time=yes
14606 else
14607 ac_cv_header_time=no
14609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14612 $as_echo "$ac_cv_header_time" >&6; }
14613 if test $ac_cv_header_time = yes; then
14615 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
14620 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
14621 if test "${gcc_cv_header_string+set}" = set; then :
14622 $as_echo_n "(cached) " >&6
14623 else
14624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14625 /* end confdefs.h. */
14626 #include <string.h>
14627 #include <strings.h>
14629 main ()
14633 return 0;
14635 _ACEOF
14636 if ac_fn_c_try_compile "$LINENO"; then :
14637 gcc_cv_header_string=yes
14638 else
14639 gcc_cv_header_string=no
14641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
14644 $as_echo "$gcc_cv_header_string" >&6; }
14645 if test $gcc_cv_header_string = yes; then
14647 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
14651 for ac_header in pthread.h unistd.h semaphore.h sys/loadavg.h sys/sysctl.h sys/time.h
14652 do :
14653 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14654 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14655 eval as_val=\$$as_ac_Header
14656 if test "x$as_val" = x""yes; then :
14657 cat >>confdefs.h <<_ACEOF
14658 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14659 _ACEOF
14663 done
14668 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
14670 acx_cv_header_stdint=stddef.h
14671 acx_cv_header_stdint_kind="(already complete)"
14672 for i in stdint.h $inttype_headers; do
14673 unset ac_cv_type_uintptr_t
14674 unset ac_cv_type_uintmax_t
14675 unset ac_cv_type_int_least32_t
14676 unset ac_cv_type_int_fast32_t
14677 unset ac_cv_type_uint64_t
14678 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
14679 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
14680 #include <$i>
14682 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
14683 acx_cv_header_stdint=$i
14684 else
14685 continue
14688 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
14689 #include <$i>
14691 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
14693 else
14694 acx_cv_header_stdint_kind="(mostly complete)"
14697 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
14698 #include <$i>
14700 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
14702 else
14703 acx_cv_header_stdint_kind="(mostly complete)"
14706 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
14707 #include <$i>
14709 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
14711 else
14712 acx_cv_header_stdint_kind="(mostly complete)"
14715 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
14716 #include <$i>
14718 if test "x$ac_cv_type_uint64_t" = x""yes; then :
14720 else
14721 acx_cv_header_stdint_kind="(lacks uint64_t)"
14724 break
14725 done
14726 if test "$acx_cv_header_stdint" = stddef.h; then
14727 acx_cv_header_stdint_kind="(lacks uintmax_t)"
14728 for i in stdint.h $inttype_headers; do
14729 unset ac_cv_type_uintptr_t
14730 unset ac_cv_type_uint32_t
14731 unset ac_cv_type_uint64_t
14732 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
14733 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
14734 #include <$i>
14736 if test "x$ac_cv_type_uint32_t" = x""yes; then :
14737 acx_cv_header_stdint=$i
14738 else
14739 continue
14742 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
14743 #include <$i>
14745 if test "x$ac_cv_type_uint64_t" = x""yes; then :
14749 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
14750 #include <$i>
14752 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
14756 break
14757 done
14759 if test "$acx_cv_header_stdint" = stddef.h; then
14760 acx_cv_header_stdint_kind="(u_intXX_t style)"
14761 for i in sys/types.h $inttype_headers; do
14762 unset ac_cv_type_u_int32_t
14763 unset ac_cv_type_u_int64_t
14764 $as_echo_n "looking for u_intXX_t types in $i, " >&6
14765 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
14766 #include <$i>
14768 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
14769 acx_cv_header_stdint=$i
14770 else
14771 continue
14774 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
14775 #include <$i>
14777 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
14781 break
14782 done
14784 if test "$acx_cv_header_stdint" = stddef.h; then
14785 acx_cv_header_stdint_kind="(using manual detection)"
14788 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
14789 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
14790 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
14791 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
14792 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
14794 # ----------------- Summarize what we found so far
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
14797 $as_echo_n "checking what to include in gstdint.h... " >&6; }
14799 case `$as_basename -- gstdint.h ||
14800 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
14801 Xgstdint.h : 'X\(//\)$' \| \
14802 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
14803 $as_echo X/gstdint.h |
14804 sed '/^.*\/\([^/][^/]*\)\/*$/{
14805 s//\1/
14808 /^X\/\(\/\/\)$/{
14809 s//\1/
14812 /^X\/\(\/\).*/{
14813 s//\1/
14816 s/.*/./; q'` in
14817 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
14818 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14819 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
14820 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14821 *) ;;
14822 esac
14824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
14825 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
14827 # ----------------- done included file, check C basic types --------
14829 # Lacking an uintptr_t? Test size of void *
14830 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
14831 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
14832 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14833 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14834 # This bug is HP SR number 8606223364.
14835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
14836 $as_echo_n "checking size of void *... " >&6; }
14837 if test "${ac_cv_sizeof_void_p+set}" = set; then :
14838 $as_echo_n "(cached) " >&6
14839 else
14840 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
14842 else
14843 if test "$ac_cv_type_void_p" = yes; then
14844 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14845 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14846 { as_fn_set_status 77
14847 as_fn_error "cannot compute sizeof (void *)
14848 See \`config.log' for more details." "$LINENO" 5; }; }
14849 else
14850 ac_cv_sizeof_void_p=0
14855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
14856 $as_echo "$ac_cv_sizeof_void_p" >&6; }
14860 cat >>confdefs.h <<_ACEOF
14861 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14862 _ACEOF
14865 esac
14867 # Lacking an uint64_t? Test size of long
14868 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
14869 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
14870 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14871 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14872 # This bug is HP SR number 8606223364.
14873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
14874 $as_echo_n "checking size of long... " >&6; }
14875 if test "${ac_cv_sizeof_long+set}" = set; then :
14876 $as_echo_n "(cached) " >&6
14877 else
14878 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
14880 else
14881 if test "$ac_cv_type_long" = yes; then
14882 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14883 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14884 { as_fn_set_status 77
14885 as_fn_error "cannot compute sizeof (long)
14886 See \`config.log' for more details." "$LINENO" 5; }; }
14887 else
14888 ac_cv_sizeof_long=0
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
14894 $as_echo "$ac_cv_sizeof_long" >&6; }
14898 cat >>confdefs.h <<_ACEOF
14899 #define SIZEOF_LONG $ac_cv_sizeof_long
14900 _ACEOF
14903 esac
14905 if test $acx_cv_header_stdint = stddef.h; then
14906 # Lacking a good header? Test size of everything and deduce all types.
14907 # The cast to long int works around a bug in the HP C Compiler
14908 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14909 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14910 # This bug is HP SR number 8606223364.
14911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
14912 $as_echo_n "checking size of int... " >&6; }
14913 if test "${ac_cv_sizeof_int+set}" = set; then :
14914 $as_echo_n "(cached) " >&6
14915 else
14916 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
14918 else
14919 if test "$ac_cv_type_int" = yes; then
14920 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14921 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14922 { as_fn_set_status 77
14923 as_fn_error "cannot compute sizeof (int)
14924 See \`config.log' for more details." "$LINENO" 5; }; }
14925 else
14926 ac_cv_sizeof_int=0
14931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
14932 $as_echo "$ac_cv_sizeof_int" >&6; }
14936 cat >>confdefs.h <<_ACEOF
14937 #define SIZEOF_INT $ac_cv_sizeof_int
14938 _ACEOF
14941 # The cast to long int works around a bug in the HP C Compiler
14942 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14943 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14944 # This bug is HP SR number 8606223364.
14945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
14946 $as_echo_n "checking size of short... " >&6; }
14947 if test "${ac_cv_sizeof_short+set}" = set; then :
14948 $as_echo_n "(cached) " >&6
14949 else
14950 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
14952 else
14953 if test "$ac_cv_type_short" = yes; then
14954 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14955 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14956 { as_fn_set_status 77
14957 as_fn_error "cannot compute sizeof (short)
14958 See \`config.log' for more details." "$LINENO" 5; }; }
14959 else
14960 ac_cv_sizeof_short=0
14965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
14966 $as_echo "$ac_cv_sizeof_short" >&6; }
14970 cat >>confdefs.h <<_ACEOF
14971 #define SIZEOF_SHORT $ac_cv_sizeof_short
14972 _ACEOF
14975 # The cast to long int works around a bug in the HP C Compiler
14976 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14977 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14978 # This bug is HP SR number 8606223364.
14979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
14980 $as_echo_n "checking size of char... " >&6; }
14981 if test "${ac_cv_sizeof_char+set}" = set; then :
14982 $as_echo_n "(cached) " >&6
14983 else
14984 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
14986 else
14987 if test "$ac_cv_type_char" = yes; then
14988 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14990 { as_fn_set_status 77
14991 as_fn_error "cannot compute sizeof (char)
14992 See \`config.log' for more details." "$LINENO" 5; }; }
14993 else
14994 ac_cv_sizeof_char=0
14999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
15000 $as_echo "$ac_cv_sizeof_char" >&6; }
15004 cat >>confdefs.h <<_ACEOF
15005 #define SIZEOF_CHAR $ac_cv_sizeof_char
15006 _ACEOF
15010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
15011 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
15012 case "$ac_cv_sizeof_char" in
15013 1) acx_cv_type_int8_t=char ;;
15014 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
15015 esac
15016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
15017 $as_echo "$acx_cv_type_int8_t" >&6; }
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
15020 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
15021 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
15022 2:*) acx_cv_type_int16_t=int ;;
15023 *:2) acx_cv_type_int16_t=short ;;
15024 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
15025 esac
15026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
15027 $as_echo "$acx_cv_type_int16_t" >&6; }
15029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
15030 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
15031 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
15032 4:*) acx_cv_type_int32_t=int ;;
15033 *:4) acx_cv_type_int32_t=long ;;
15034 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
15035 esac
15036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
15037 $as_echo "$acx_cv_type_int32_t" >&6; }
15040 # These tests are here to make the output prettier
15042 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
15043 case "$ac_cv_sizeof_long" in
15044 8) acx_cv_type_int64_t=long ;;
15045 esac
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
15047 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
15049 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
15052 # Now we can use the above types
15054 if test "$ac_cv_type_uintptr_t" != yes; then
15055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
15056 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
15057 case $ac_cv_sizeof_void_p in
15058 2) acx_cv_type_intptr_t=int16_t ;;
15059 4) acx_cv_type_intptr_t=int32_t ;;
15060 8) acx_cv_type_intptr_t=int64_t ;;
15061 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
15062 esac
15063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
15064 $as_echo "$acx_cv_type_intptr_t" >&6; }
15067 # ----------------- done all checks, emit header -------------
15068 ac_config_commands="$ac_config_commands gstdint.h"
15073 XPCFLAGS=""
15074 case "$host" in
15075 *-*-rtems*)
15076 # RTEMS supports Pthreads, but the library is not available at GCC build time.
15078 nvptx*-*-*)
15079 # NVPTX does not support Pthreads, has its own code replacement.
15080 libgomp_use_pthreads=no
15081 # NVPTX is an accelerator-only target
15082 libgomp_offloaded_only=yes
15085 # Check to see if -pthread or -lpthread is needed. Prefer the former.
15086 # In case the pthread.h system header is not found, this test will fail.
15087 CFLAGS="$CFLAGS -pthread"
15088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15089 /* end confdefs.h. */
15090 #include <pthread.h>
15091 void *g(void *d) { return NULL; }
15093 main ()
15095 pthread_t t; pthread_create(&t,NULL,g,NULL);
15097 return 0;
15099 _ACEOF
15100 if ac_fn_c_try_link "$LINENO"; then :
15101 XPCFLAGS=" -Wc,-pthread"
15102 else
15103 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
15104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15105 /* end confdefs.h. */
15106 #include <pthread.h>
15107 void *g(void *d) { return NULL; }
15109 main ()
15111 pthread_t t; pthread_create(&t,NULL,g,NULL);
15113 return 0;
15115 _ACEOF
15116 if ac_fn_c_try_link "$LINENO"; then :
15118 else
15119 as_fn_error "Pthreads are required to build libgomp" "$LINENO" 5
15121 rm -f core conftest.err conftest.$ac_objext \
15122 conftest$ac_exeext conftest.$ac_ext
15124 rm -f core conftest.err conftest.$ac_objext \
15125 conftest$ac_exeext conftest.$ac_ext
15126 esac
15128 if test x$libgomp_use_pthreads != xno; then
15130 $as_echo "#define LIBGOMP_USE_PTHREADS 1" >>confdefs.h
15134 if test x$libgomp_offloaded_only = xyes; then
15136 $as_echo "#define LIBGOMP_OFFLOADED_ONLY 1" >>confdefs.h
15140 # Plugins for offload execution, configure.ac fragment. -*- mode: autoconf -*-
15142 # Copyright (C) 2014-2017 Free Software Foundation, Inc.
15144 # Contributed by Mentor Embedded.
15146 # This file is part of the GNU Offloading and Multi Processing Library
15147 # (libgomp).
15149 # Libgomp is free software; you can redistribute it and/or modify it
15150 # under the terms of the GNU General Public License as published by
15151 # the Free Software Foundation; either version 3, or (at your option)
15152 # any later version.
15154 # Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY
15155 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15156 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15157 # more details.
15159 # Under Section 7 of GPL version 3, you are granted additional
15160 # permissions described in the GCC Runtime Library Exception, version
15161 # 3.1, as published by the Free Software Foundation.
15163 # You should have received a copy of the GNU General Public License and
15164 # a copy of the GCC Runtime Library Exception along with this program;
15165 # see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
15166 # <http://www.gnu.org/licenses/>.
15168 offload_targets=
15170 plugin_support=yes
15171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
15172 $as_echo_n "checking for dlsym in -ldl... " >&6; }
15173 if test "${ac_cv_lib_dl_dlsym+set}" = set; then :
15174 $as_echo_n "(cached) " >&6
15175 else
15176 ac_check_lib_save_LIBS=$LIBS
15177 LIBS="-ldl $LIBS"
15178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15179 /* end confdefs.h. */
15181 /* Override any GCC internal prototype to avoid an error.
15182 Use char because int might match the return type of a GCC
15183 builtin and then its argument prototype would still apply. */
15184 #ifdef __cplusplus
15185 extern "C"
15186 #endif
15187 char dlsym ();
15189 main ()
15191 return dlsym ();
15193 return 0;
15195 _ACEOF
15196 if ac_fn_c_try_link "$LINENO"; then :
15197 ac_cv_lib_dl_dlsym=yes
15198 else
15199 ac_cv_lib_dl_dlsym=no
15201 rm -f core conftest.err conftest.$ac_objext \
15202 conftest$ac_exeext conftest.$ac_ext
15203 LIBS=$ac_check_lib_save_LIBS
15205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
15206 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
15207 if test "x$ac_cv_lib_dl_dlsym" = x""yes; then :
15208 cat >>confdefs.h <<_ACEOF
15209 #define HAVE_LIBDL 1
15210 _ACEOF
15212 LIBS="-ldl $LIBS"
15214 else
15215 plugin_support=no
15218 if test x"$plugin_support" = xyes; then
15220 $as_echo "#define PLUGIN_SUPPORT 1" >>confdefs.h
15222 elif test "x${enable_offload_targets-no}" != xno; then
15223 as_fn_error "Can't support offloading without support for plugins" "$LINENO" 5
15228 for ac_header in $ac_header_list
15229 do :
15230 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15231 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15233 eval as_val=\$$as_ac_Header
15234 if test "x$as_val" = x""yes; then :
15235 cat >>confdefs.h <<_ACEOF
15236 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15237 _ACEOF
15241 done
15249 for ac_func in $ac_func_list
15250 do :
15251 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15252 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15253 eval as_val=\$$as_ac_var
15254 if test "x$as_val" = x""yes; then :
15255 cat >>confdefs.h <<_ACEOF
15256 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15257 _ACEOF
15260 done
15277 # Look for the CUDA driver package.
15278 CUDA_DRIVER_INCLUDE=
15279 CUDA_DRIVER_LIB=
15282 CUDA_DRIVER_CPPFLAGS=
15283 CUDA_DRIVER_LDFLAGS=
15285 # Check whether --with-cuda-driver was given.
15286 if test "${with_cuda_driver+set}" = set; then :
15287 withval=$with_cuda_driver;
15291 # Check whether --with-cuda-driver-include was given.
15292 if test "${with_cuda_driver_include+set}" = set; then :
15293 withval=$with_cuda_driver_include;
15297 # Check whether --with-cuda-driver-lib was given.
15298 if test "${with_cuda_driver_lib+set}" = set; then :
15299 withval=$with_cuda_driver_lib;
15302 case "x$with_cuda_driver" in
15303 x | xno) ;;
15304 *) CUDA_DRIVER_INCLUDE=$with_cuda_driver/include
15305 CUDA_DRIVER_LIB=$with_cuda_driver/lib
15307 esac
15308 if test "x$with_cuda_driver_include" != x; then
15309 CUDA_DRIVER_INCLUDE=$with_cuda_driver_include
15311 if test "x$with_cuda_driver_lib" != x; then
15312 CUDA_DRIVER_LIB=$with_cuda_driver_lib
15314 if test "x$CUDA_DRIVER_INCLUDE" != x; then
15315 CUDA_DRIVER_CPPFLAGS=-I$CUDA_DRIVER_INCLUDE
15317 if test "x$CUDA_DRIVER_LIB" != x; then
15318 CUDA_DRIVER_LDFLAGS=-L$CUDA_DRIVER_LIB
15321 PLUGIN_NVPTX=0
15322 PLUGIN_NVPTX_CPPFLAGS=
15323 PLUGIN_NVPTX_LDFLAGS=
15324 PLUGIN_NVPTX_LIBS=
15325 PLUGIN_NVPTX_DYNAMIC=0
15331 # Look for HSA run-time, its includes and libraries
15333 HSA_RUNTIME_INCLUDE=
15334 HSA_RUNTIME_LIB=
15337 HSA_RUNTIME_CPPFLAGS=
15338 HSA_RUNTIME_LDFLAGS=
15341 # Check whether --with-hsa-runtime was given.
15342 if test "${with_hsa_runtime+set}" = set; then :
15343 withval=$with_hsa_runtime;
15347 # Check whether --with-hsa-runtime-include was given.
15348 if test "${with_hsa_runtime_include+set}" = set; then :
15349 withval=$with_hsa_runtime_include;
15353 # Check whether --with-hsa-runtime-lib was given.
15354 if test "${with_hsa_runtime_lib+set}" = set; then :
15355 withval=$with_hsa_runtime_lib;
15358 if test "x$with_hsa_runtime" != x; then
15359 HSA_RUNTIME_INCLUDE=$with_hsa_runtime/include
15360 HSA_RUNTIME_LIB=$with_hsa_runtime/lib
15362 if test "x$with_hsa_runtime_include" != x; then
15363 HSA_RUNTIME_INCLUDE=$with_hsa_runtime_include
15365 if test "x$with_hsa_runtime_lib" != x; then
15366 HSA_RUNTIME_LIB=$with_hsa_runtime_lib
15368 if test "x$HSA_RUNTIME_INCLUDE" != x; then
15369 HSA_RUNTIME_CPPFLAGS=-I$HSA_RUNTIME_INCLUDE
15371 if test "x$HSA_RUNTIME_LIB" != x; then
15372 HSA_RUNTIME_LDFLAGS=-L$HSA_RUNTIME_LIB
15375 PLUGIN_HSA=0
15376 PLUGIN_HSA_CPPFLAGS=
15377 PLUGIN_HSA_LDFLAGS=
15378 PLUGIN_HSA_LIBS=
15384 # Get offload targets and path to install tree of offloading compiler.
15385 offload_additional_options=
15386 offload_additional_lib_paths=
15389 if test x"$enable_offload_targets" != x; then
15390 for tgt in `echo $enable_offload_targets | sed -e 's#,# #g'`; do
15391 tgt_dir=`echo $tgt | grep '=' | sed 's/.*=//'`
15392 tgt=`echo $tgt | sed 's/=.*//'`
15393 tgt_name=
15394 case $tgt in
15395 *-intelmic-* | *-intelmicemul-*)
15396 tgt_name=intelmic
15398 nvptx*)
15399 tgt_name=nvptx
15400 PLUGIN_NVPTX=$tgt
15401 PLUGIN_NVPTX_CPPFLAGS=$CUDA_DRIVER_CPPFLAGS
15402 PLUGIN_NVPTX_LDFLAGS=$CUDA_DRIVER_LDFLAGS
15403 PLUGIN_NVPTX_LIBS='-lcuda'
15405 PLUGIN_NVPTX_save_CPPFLAGS=$CPPFLAGS
15406 CPPFLAGS="$PLUGIN_NVPTX_CPPFLAGS $CPPFLAGS"
15407 PLUGIN_NVPTX_save_LDFLAGS=$LDFLAGS
15408 LDFLAGS="$PLUGIN_NVPTX_LDFLAGS $LDFLAGS"
15409 PLUGIN_NVPTX_save_LIBS=$LIBS
15410 LIBS="$PLUGIN_NVPTX_LIBS $LIBS"
15411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15412 /* end confdefs.h. */
15413 #include "cuda.h"
15415 main ()
15417 CUresult r = cuCtxPushCurrent (NULL);
15419 return 0;
15421 _ACEOF
15422 if ac_fn_c_try_link "$LINENO"; then :
15423 PLUGIN_NVPTX=1
15425 rm -f core conftest.err conftest.$ac_objext \
15426 conftest$ac_exeext conftest.$ac_ext
15427 CPPFLAGS=$PLUGIN_NVPTX_save_CPPFLAGS
15428 LDFLAGS=$PLUGIN_NVPTX_save_LDFLAGS
15429 LIBS=$PLUGIN_NVPTX_save_LIBS
15430 case $PLUGIN_NVPTX in
15431 nvptx*)
15432 if test "x$CUDA_DRIVER_INCLUDE" = x \
15433 && test "x$CUDA_DRIVER_LIB" = x; then
15434 PLUGIN_NVPTX=1
15435 PLUGIN_NVPTX_CPPFLAGS='-I$(srcdir)/plugin/cuda'
15436 PLUGIN_NVPTX_LIBS='-ldl'
15437 PLUGIN_NVPTX_DYNAMIC=1
15438 else
15439 PLUGIN_NVPTX=0
15440 as_fn_error "CUDA driver package required for nvptx support" "$LINENO" 5
15443 esac
15445 hsa*)
15446 case "${target}" in
15447 x86_64-*-*)
15448 case " ${CC} ${CFLAGS} " in
15449 *" -m32 "*)
15450 PLUGIN_HSA=0
15453 tgt_name=hsa
15454 PLUGIN_HSA=$tgt
15455 PLUGIN_HSA_CPPFLAGS=$HSA_RUNTIME_CPPFLAGS
15456 PLUGIN_HSA_LDFLAGS="$HSA_RUNTIME_LDFLAGS"
15457 PLUGIN_HSA_LIBS="-ldl"
15459 PLUGIN_HSA_save_CPPFLAGS=$CPPFLAGS
15460 CPPFLAGS="$PLUGIN_HSA_CPPFLAGS $CPPFLAGS"
15461 PLUGIN_HSA_save_LDFLAGS=$LDFLAGS
15462 LDFLAGS="$PLUGIN_HSA_LDFLAGS $LDFLAGS"
15463 PLUGIN_HSA_save_LIBS=$LIBS
15464 LIBS="$PLUGIN_HSA_LIBS $LIBS"
15466 PLUGIN_HSA=1
15467 CPPFLAGS=$PLUGIN_HSA_save_CPPFLAGS
15468 LDFLAGS=$PLUGIN_HSA_save_LDFLAGS
15469 LIBS=$PLUGIN_HSA_save_LIBS
15470 case $PLUGIN_HSA in
15471 hsa*)
15472 HSA_PLUGIN=0
15473 as_fn_error "HSA run-time package required for HSA support" "$LINENO" 5
15475 esac
15477 esac
15479 *-*-*)
15480 PLUGIN_HSA=0
15482 esac
15485 as_fn_error "unknown offload target specified" "$LINENO" 5
15487 esac
15488 if test x"$tgt_name" = x; then
15489 # Don't configure libgomp for this offloading target if we don't build
15490 # the corresponding plugin.
15491 continue
15492 elif test x"$offload_targets" = x; then
15493 offload_targets=$tgt_name
15494 else
15495 offload_targets=$offload_targets,$tgt_name
15497 if test "$tgt_name" = hsa; then
15498 # Offloading compilation is all handled by the target compiler.
15500 elif test x"$tgt_dir" != x; then
15501 offload_additional_options="$offload_additional_options -B$tgt_dir/libexec/gcc/\$(target_alias)/\$(gcc_version) -B$tgt_dir/bin"
15502 offload_additional_lib_paths="$offload_additional_lib_paths:$tgt_dir/lib64:$tgt_dir/lib:$tgt_dir/lib32"
15503 else
15504 offload_additional_options="$offload_additional_options -B\$(libexecdir)/gcc/\$(target_alias)/\$(gcc_version) -B\$(bindir)"
15505 offload_additional_lib_paths="$offload_additional_lib_paths:$toolexeclibdir"
15507 done
15510 cat >>confdefs.h <<_ACEOF
15511 #define OFFLOAD_TARGETS "$offload_targets"
15512 _ACEOF
15514 if test $PLUGIN_NVPTX = 1; then
15515 PLUGIN_NVPTX_TRUE=
15516 PLUGIN_NVPTX_FALSE='#'
15517 else
15518 PLUGIN_NVPTX_TRUE='#'
15519 PLUGIN_NVPTX_FALSE=
15523 cat >>confdefs.h <<_ACEOF
15524 #define PLUGIN_NVPTX $PLUGIN_NVPTX
15525 _ACEOF
15528 cat >>confdefs.h <<_ACEOF
15529 #define PLUGIN_NVPTX_DYNAMIC $PLUGIN_NVPTX_DYNAMIC
15530 _ACEOF
15532 if test $PLUGIN_HSA = 1; then
15533 PLUGIN_HSA_TRUE=
15534 PLUGIN_HSA_FALSE='#'
15535 else
15536 PLUGIN_HSA_TRUE='#'
15537 PLUGIN_HSA_FALSE=
15541 cat >>confdefs.h <<_ACEOF
15542 #define PLUGIN_HSA $PLUGIN_HSA
15543 _ACEOF
15546 if test "$HSA_RUNTIME_LIB" != ""; then
15547 HSA_RUNTIME_LIB="$HSA_RUNTIME_LIB/"
15551 cat >>confdefs.h <<_ACEOF
15552 #define HSA_RUNTIME_LIB "$HSA_RUNTIME_LIB"
15553 _ACEOF
15557 # Check for functions needed.
15558 for ac_func in getloadavg clock_gettime strtoull
15559 do :
15560 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15561 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15562 eval as_val=\$$as_ac_var
15563 if test "x$as_val" = x""yes; then :
15564 cat >>confdefs.h <<_ACEOF
15565 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15566 _ACEOF
15569 done
15572 # Check for broken semaphore implementation on darwin.
15573 # sem_init returns: sem_init error: Function not implemented.
15574 case "$host" in
15575 *-darwin*)
15577 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
15580 esac
15582 # RTEMS specific checks
15583 case "$host" in
15584 *-*-rtems*)
15585 ac_fn_c_check_type "$LINENO" "struct _Mutex_Control" "ac_cv_type_struct__Mutex_Control" "#include <sys/lock.h>
15587 if test "x$ac_cv_type_struct__Mutex_Control" = x""yes; then :
15589 cat >>confdefs.h <<_ACEOF
15590 #define HAVE_STRUCT__MUTEX_CONTROL 1
15591 _ACEOF
15597 esac
15599 # Check whether --enable-linux-futex was given.
15600 if test "${enable_linux_futex+set}" = set; then :
15601 enableval=$enable_linux_futex;
15602 case "$enableval" in
15603 yes|no|default) ;;
15604 *) as_fn_error "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
15605 esac
15607 else
15608 enable_linux_futex=default
15612 case "$target" in
15613 *-linux*)
15614 case "$enable_linux_futex" in
15615 default)
15616 # If headers don't have gettid/futex syscalls definition, then
15617 # default to no, otherwise there will be compile time failures.
15618 # Otherwise, default to yes. If we don't detect we are
15619 # compiled/linked against NPTL and not cross-compiling, check
15620 # if programs are run by default against NPTL and if not, issue
15621 # a warning.
15622 enable_linux_futex=no
15623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15624 /* end confdefs.h. */
15625 #include <sys/syscall.h>
15626 int lk;
15628 main ()
15630 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15632 return 0;
15634 _ACEOF
15635 if ac_fn_c_try_link "$LINENO"; then :
15636 save_LIBS="$LIBS"
15637 LIBS="-lpthread $LIBS"
15638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15639 /* end confdefs.h. */
15640 #ifndef _GNU_SOURCE
15641 #define _GNU_SOURCE 1
15642 #endif
15643 #include <pthread.h>
15644 pthread_t th; void *status;
15646 main ()
15648 pthread_tryjoin_np (th, &status);
15650 return 0;
15652 _ACEOF
15653 if ac_fn_c_try_link "$LINENO"; then :
15654 enable_linux_futex=yes
15655 else
15656 if test x$cross_compiling = xno; then
15657 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
15658 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
15659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
15660 If so, please configure with --disable-linux-futex" >&5
15661 $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
15662 If so, please configure with --disable-linux-futex" >&2;}
15665 enable_linux_futex=yes
15667 rm -f core conftest.err conftest.$ac_objext \
15668 conftest$ac_exeext conftest.$ac_ext
15669 LIBS="$save_LIBS"
15671 rm -f core conftest.err conftest.$ac_objext \
15672 conftest$ac_exeext conftest.$ac_ext
15674 yes)
15675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15676 /* end confdefs.h. */
15677 #include <sys/syscall.h>
15678 int lk;
15680 main ()
15682 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15684 return 0;
15686 _ACEOF
15687 if ac_fn_c_try_link "$LINENO"; then :
15689 else
15690 as_fn_error "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
15692 rm -f core conftest.err conftest.$ac_objext \
15693 conftest$ac_exeext conftest.$ac_ext
15695 esac
15698 enable_linux_futex=no
15700 esac
15701 if test x$enable_linux_futex = xyes; then
15706 # Check for pthread_{,attr_}[sg]etaffinity_np.
15707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15708 /* end confdefs.h. */
15709 #define _GNU_SOURCE
15710 #include <pthread.h>
15712 main ()
15714 cpu_set_t cpuset;
15715 pthread_attr_t attr;
15716 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15717 if (CPU_ISSET (0, &cpuset))
15718 CPU_SET (1, &cpuset);
15719 else
15720 CPU_ZERO (&cpuset);
15721 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15722 pthread_attr_init (&attr);
15723 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15724 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15726 return 0;
15728 _ACEOF
15729 if ac_fn_c_try_link "$LINENO"; then :
15731 $as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h
15734 rm -f core conftest.err conftest.$ac_objext \
15735 conftest$ac_exeext conftest.$ac_ext
15737 # At least for glibc, clock_gettime is in librt. But don't pull that
15738 # in if it still doesn't give us the function we want.
15739 if test $ac_cv_func_clock_gettime = no; then
15740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
15741 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
15742 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
15743 $as_echo_n "(cached) " >&6
15744 else
15745 ac_check_lib_save_LIBS=$LIBS
15746 LIBS="-lrt $LIBS"
15747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15748 /* end confdefs.h. */
15750 /* Override any GCC internal prototype to avoid an error.
15751 Use char because int might match the return type of a GCC
15752 builtin and then its argument prototype would still apply. */
15753 #ifdef __cplusplus
15754 extern "C"
15755 #endif
15756 char clock_gettime ();
15758 main ()
15760 return clock_gettime ();
15762 return 0;
15764 _ACEOF
15765 if ac_fn_c_try_link "$LINENO"; then :
15766 ac_cv_lib_rt_clock_gettime=yes
15767 else
15768 ac_cv_lib_rt_clock_gettime=no
15770 rm -f core conftest.err conftest.$ac_objext \
15771 conftest$ac_exeext conftest.$ac_ext
15772 LIBS=$ac_check_lib_save_LIBS
15774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
15775 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15776 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
15777 LIBS="-lrt $LIBS"
15779 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
15785 # See if we support thread-local storage.
15788 # Check whether --enable-tls was given.
15789 if test "${enable_tls+set}" = set; then :
15790 enableval=$enable_tls;
15791 case "$enableval" in
15792 yes|no) ;;
15793 *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
15794 esac
15796 else
15797 enable_tls=yes
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
15802 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
15803 if test "${gcc_cv_have_tls+set}" = set; then :
15804 $as_echo_n "(cached) " >&6
15805 else
15807 if test "$cross_compiling" = yes; then :
15808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15809 /* end confdefs.h. */
15810 __thread int a; int b; int main() { return a = b; }
15811 _ACEOF
15812 if ac_fn_c_try_link "$LINENO"; then :
15813 chktls_save_LDFLAGS="$LDFLAGS"
15814 case $host in
15815 *-*-linux*)
15816 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
15818 esac
15819 chktls_save_CFLAGS="$CFLAGS"
15820 CFLAGS="-fPIC $CFLAGS"
15821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15822 /* end confdefs.h. */
15823 int f() { return 0; }
15824 _ACEOF
15825 if ac_fn_c_try_link "$LINENO"; then :
15826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15827 /* end confdefs.h. */
15828 __thread int a; int b; int f() { return a = b; }
15829 _ACEOF
15830 if ac_fn_c_try_link "$LINENO"; then :
15831 gcc_cv_have_tls=yes
15832 else
15833 gcc_cv_have_tls=no
15835 rm -f core conftest.err conftest.$ac_objext \
15836 conftest$ac_exeext conftest.$ac_ext
15837 else
15838 gcc_cv_have_tls=yes
15840 rm -f core conftest.err conftest.$ac_objext \
15841 conftest$ac_exeext conftest.$ac_ext
15842 CFLAGS="$chktls_save_CFLAGS"
15843 LDFLAGS="$chktls_save_LDFLAGS"
15844 else
15845 gcc_cv_have_tls=no
15847 rm -f core conftest.err conftest.$ac_objext \
15848 conftest$ac_exeext conftest.$ac_ext
15851 else
15852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15853 /* end confdefs.h. */
15854 __thread int a; int b; int main() { return a = b; }
15855 _ACEOF
15856 if ac_fn_c_try_run "$LINENO"; then :
15857 chktls_save_LDFLAGS="$LDFLAGS"
15858 LDFLAGS="-static $LDFLAGS"
15859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15860 /* end confdefs.h. */
15861 int main() { return 0; }
15862 _ACEOF
15863 if ac_fn_c_try_link "$LINENO"; then :
15864 if test "$cross_compiling" = yes; then :
15865 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15866 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15867 as_fn_error "cannot run test program while cross compiling
15868 See \`config.log' for more details." "$LINENO" 5; }
15869 else
15870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15871 /* end confdefs.h. */
15872 __thread int a; int b; int main() { return a = b; }
15873 _ACEOF
15874 if ac_fn_c_try_run "$LINENO"; then :
15875 gcc_cv_have_tls=yes
15876 else
15877 gcc_cv_have_tls=no
15879 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15880 conftest.$ac_objext conftest.beam conftest.$ac_ext
15883 else
15884 gcc_cv_have_tls=yes
15886 rm -f core conftest.err conftest.$ac_objext \
15887 conftest$ac_exeext conftest.$ac_ext
15888 LDFLAGS="$chktls_save_LDFLAGS"
15889 if test $gcc_cv_have_tls = yes; then
15890 chktls_save_CFLAGS="$CFLAGS"
15891 thread_CFLAGS=failed
15892 for flag in '' '-pthread' '-lpthread'; do
15893 CFLAGS="$flag $chktls_save_CFLAGS"
15894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15895 /* end confdefs.h. */
15896 #include <pthread.h>
15897 void *g(void *d) { return NULL; }
15899 main ()
15901 pthread_t t; pthread_create(&t,NULL,g,NULL);
15903 return 0;
15905 _ACEOF
15906 if ac_fn_c_try_link "$LINENO"; then :
15907 thread_CFLAGS="$flag"
15909 rm -f core conftest.err conftest.$ac_objext \
15910 conftest$ac_exeext conftest.$ac_ext
15911 if test "X$thread_CFLAGS" != Xfailed; then
15912 break
15914 done
15915 CFLAGS="$chktls_save_CFLAGS"
15916 if test "X$thread_CFLAGS" != Xfailed; then
15917 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
15918 if test "$cross_compiling" = yes; then :
15919 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15920 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15921 as_fn_error "cannot run test program while cross compiling
15922 See \`config.log' for more details." "$LINENO" 5; }
15923 else
15924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15925 /* end confdefs.h. */
15926 #include <pthread.h>
15927 __thread int a;
15928 static int *volatile a_in_other_thread;
15929 static void *
15930 thread_func (void *arg)
15932 a_in_other_thread = &a;
15933 return (void *)0;
15936 main ()
15938 pthread_t thread;
15939 void *thread_retval;
15940 int *volatile a_in_main_thread;
15941 a_in_main_thread = &a;
15942 if (pthread_create (&thread, (pthread_attr_t *)0,
15943 thread_func, (void *)0))
15944 return 0;
15945 if (pthread_join (thread, &thread_retval))
15946 return 0;
15947 return (a_in_other_thread == a_in_main_thread);
15949 return 0;
15951 _ACEOF
15952 if ac_fn_c_try_run "$LINENO"; then :
15953 gcc_cv_have_tls=yes
15954 else
15955 gcc_cv_have_tls=no
15957 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15958 conftest.$ac_objext conftest.beam conftest.$ac_ext
15961 CFLAGS="$chktls_save_CFLAGS"
15964 else
15965 gcc_cv_have_tls=no
15967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15968 conftest.$ac_objext conftest.beam conftest.$ac_ext
15972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
15973 $as_echo "$gcc_cv_have_tls" >&6; }
15974 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
15976 $as_echo "#define HAVE_TLS 1" >>confdefs.h
15980 # See if we have emulated thread-local storage.
15982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the thread-local storage support is from emutls" >&5
15983 $as_echo_n "checking whether the thread-local storage support is from emutls... " >&6; }
15984 if test "${gcc_cv_use_emutls+set}" = set; then :
15985 $as_echo_n "(cached) " >&6
15986 else
15988 gcc_cv_use_emutls=no
15989 echo '__thread int a; int b; int main() { return a = b; }' > conftest.c
15990 if { ac_try='${CC-cc} -Werror -S -o conftest.s conftest.c 1>&5'
15991 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15992 (eval $ac_try) 2>&5
15993 ac_status=$?
15994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15995 test $ac_status = 0; }; }; then
15996 if grep __emutls_get_address conftest.s > /dev/null; then
15997 gcc_cv_use_emutls=yes
16000 rm -f conftest.*
16003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_use_emutls" >&5
16004 $as_echo "$gcc_cv_use_emutls" >&6; }
16005 if test "$gcc_cv_use_emutls" = "yes" ; then
16007 $as_echo "#define USE_EMUTLS 1" >>confdefs.h
16011 # See what sort of export controls are available.
16013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
16014 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
16015 if test "${libgomp_cv_have_attribute_visibility+set}" = set; then :
16016 $as_echo_n "(cached) " >&6
16017 else
16019 save_CFLAGS="$CFLAGS"
16020 CFLAGS="$CFLAGS -Werror"
16021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16022 /* end confdefs.h. */
16023 void __attribute__((visibility("hidden"))) foo(void) { }
16025 main ()
16029 return 0;
16031 _ACEOF
16032 if ac_fn_c_try_compile "$LINENO"; then :
16033 libgomp_cv_have_attribute_visibility=yes
16034 else
16035 libgomp_cv_have_attribute_visibility=no
16037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16038 CFLAGS="$save_CFLAGS"
16040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_visibility" >&5
16041 $as_echo "$libgomp_cv_have_attribute_visibility" >&6; }
16042 if test $libgomp_cv_have_attribute_visibility = yes; then
16044 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
16048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
16049 $as_echo_n "checking whether the target supports dllexport... " >&6; }
16050 if test "${libgomp_cv_have_attribute_dllexport+set}" = set; then :
16051 $as_echo_n "(cached) " >&6
16052 else
16054 save_CFLAGS="$CFLAGS"
16055 CFLAGS="$CFLAGS -Werror"
16056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16057 /* end confdefs.h. */
16058 void __attribute__((dllexport)) foo(void) { }
16060 main ()
16064 return 0;
16066 _ACEOF
16067 if ac_fn_c_try_compile "$LINENO"; then :
16068 libgomp_cv_have_attribute_dllexport=yes
16069 else
16070 libgomp_cv_have_attribute_dllexport=no
16072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16073 CFLAGS="$save_CFLAGS"
16075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_dllexport" >&5
16076 $as_echo "$libgomp_cv_have_attribute_dllexport" >&6; }
16077 if test $libgomp_cv_have_attribute_dllexport = yes; then
16079 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
16083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
16084 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
16085 if test "${libgomp_cv_have_attribute_alias+set}" = set; then :
16086 $as_echo_n "(cached) " >&6
16087 else
16089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16090 /* end confdefs.h. */
16092 void foo(void) { }
16093 extern void bar(void) __attribute__((alias("foo")));
16095 main ()
16097 bar();
16099 return 0;
16101 _ACEOF
16102 if ac_fn_c_try_link "$LINENO"; then :
16103 libgomp_cv_have_attribute_alias=yes
16104 else
16105 libgomp_cv_have_attribute_alias=no
16107 rm -f core conftest.err conftest.$ac_objext \
16108 conftest$ac_exeext conftest.$ac_ext
16110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_alias" >&5
16111 $as_echo "$libgomp_cv_have_attribute_alias" >&6; }
16112 if test $libgomp_cv_have_attribute_alias = yes; then
16114 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
16119 # Check whether --with-gnu-ld was given.
16120 if test "${with_gnu_ld+set}" = set; then :
16121 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16122 else
16123 with_gnu_ld=no
16126 ac_prog=ld
16127 if test "$GCC" = yes; then
16128 # Check if gcc -print-prog-name=ld gives a path.
16129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16130 $as_echo_n "checking for ld used by $CC... " >&6; }
16131 case $host in
16132 *-*-mingw*)
16133 # gcc leaves a trailing carriage return which upsets mingw
16134 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16136 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16137 esac
16138 case $ac_prog in
16139 # Accept absolute paths.
16140 [\\/]* | ?:[\\/]*)
16141 re_direlt='/[^/][^/]*/\.\./'
16142 # Canonicalize the pathname of ld
16143 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16144 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16145 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16146 done
16147 test -z "$LD" && LD="$ac_prog"
16150 # If it fails, then pretend we aren't using GCC.
16151 ac_prog=ld
16154 # If it is relative, then search for the first ld in PATH.
16155 with_gnu_ld=unknown
16157 esac
16158 elif test "$with_gnu_ld" = yes; then
16159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16160 $as_echo_n "checking for GNU ld... " >&6; }
16161 else
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16163 $as_echo_n "checking for non-GNU ld... " >&6; }
16165 if test "${lt_cv_path_LD+set}" = set; then :
16166 $as_echo_n "(cached) " >&6
16167 else
16168 if test -z "$LD"; then
16169 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16170 for ac_dir in $PATH; do
16171 IFS="$lt_save_ifs"
16172 test -z "$ac_dir" && ac_dir=.
16173 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16174 lt_cv_path_LD="$ac_dir/$ac_prog"
16175 # Check to see if the program is GNU ld. I'd rather use --version,
16176 # but apparently some variants of GNU ld only accept -v.
16177 # Break only if it was the GNU/non-GNU ld that we prefer.
16178 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16179 *GNU* | *'with BFD'*)
16180 test "$with_gnu_ld" != no && break
16183 test "$with_gnu_ld" != yes && break
16185 esac
16187 done
16188 IFS="$lt_save_ifs"
16189 else
16190 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16194 LD="$lt_cv_path_LD"
16195 if test -n "$LD"; then
16196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16197 $as_echo "$LD" >&6; }
16198 else
16199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16200 $as_echo "no" >&6; }
16202 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
16203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16204 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16205 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
16206 $as_echo_n "(cached) " >&6
16207 else
16208 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16209 case `$LD -v 2>&1 </dev/null` in
16210 *GNU* | *'with BFD'*)
16211 lt_cv_prog_gnu_ld=yes
16214 lt_cv_prog_gnu_ld=no
16216 esac
16218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16219 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16220 with_gnu_ld=$lt_cv_prog_gnu_ld
16228 # If we're not using GNU ld, then there's no point in even trying these
16229 # tests. Check for that first. We should have already tested for gld
16230 # by now (in libtool), but require it now just to be safe...
16231 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
16232 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
16236 # The name set by libtool depends on the version of libtool. Shame on us
16237 # for depending on an impl detail, but c'est la vie. Older versions used
16238 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
16239 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
16240 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
16241 # set (hence we're using an older libtool), then set it.
16242 if test x${with_gnu_ld+set} != xset; then
16243 if test x${ac_cv_prog_gnu_ld+set} != xset; then
16244 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
16245 with_gnu_ld=no
16246 else
16247 with_gnu_ld=$ac_cv_prog_gnu_ld
16251 # Start by getting the version number. I think the libtool test already
16252 # does some of this, but throws away the result.
16253 libgomp_ld_is_gold=no
16254 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
16255 libgomp_ld_is_gold=yes
16258 ldver=`$LD --version 2>/dev/null |
16259 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'`
16261 libgomp_gnu_ld_version=`echo $ldver | \
16262 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
16264 # Set --gc-sections.
16265 if test "$with_gnu_ld" = "notbroken"; then
16266 # GNU ld it is! Joy and bunny rabbits!
16268 # All these tests are for C++; save the language and the compiler flags.
16269 # Need to do this so that g++ won't try to link in libstdc++
16270 ac_test_CFLAGS="${CFLAGS+set}"
16271 ac_save_CFLAGS="$CFLAGS"
16272 CFLAGS='-x c++ -Wl,--gc-sections'
16274 # Check for -Wl,--gc-sections
16275 # XXX This test is broken at the moment, as symbols required for linking
16276 # are now in libsupc++ (not built yet). In addition, this test has
16277 # cored on solaris in the past. In addition, --gc-sections doesn't
16278 # really work at the moment (keeps on discarding used sections, first
16279 # .eh_frame and now some of the glibc sections for iconv).
16280 # Bzzzzt. Thanks for playing, maybe next time.
16281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
16282 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
16283 if test "$cross_compiling" = yes; then :
16284 ac_sectionLDflags=yes
16285 else
16286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16287 /* end confdefs.h. */
16289 int main(void)
16291 try { throw 1; }
16292 catch (...) { };
16293 return 0;
16296 _ACEOF
16297 if ac_fn_c_try_run "$LINENO"; then :
16298 ac_sectionLDflags=yes
16299 else
16300 ac_sectionLDflags=no
16302 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16303 conftest.$ac_objext conftest.beam conftest.$ac_ext
16306 if test "$ac_test_CFLAGS" = set; then
16307 CFLAGS="$ac_save_CFLAGS"
16308 else
16309 # this is the suspicious part
16310 CFLAGS=''
16312 if test "$ac_sectionLDflags" = "yes"; then
16313 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
16315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
16316 $as_echo "$ac_sectionLDflags" >&6; }
16319 # Set linker optimization flags.
16320 if test x"$with_gnu_ld" = x"yes"; then
16321 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
16329 # Check whether --enable-symvers was given.
16330 if test "${enable_symvers+set}" = set; then :
16331 enableval=$enable_symvers;
16332 case "$enableval" in
16333 yes|no|gnu*|sun) ;;
16334 *) as_fn_error "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
16335 esac
16337 else
16338 enable_symvers=yes
16343 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
16344 # don't know enough about $LD to do tricks...
16347 # Turn a 'yes' into a suitable default.
16348 if test x$enable_symvers = xyes ; then
16349 # FIXME The following test is too strict, in theory.
16350 if test $enable_shared = no || test "x$LD" = x; then
16351 enable_symvers=no
16352 else
16353 if test $with_gnu_ld = yes ; then
16354 enable_symvers=gnu
16355 else
16356 case ${target_os} in
16357 # Sun symbol versioning exists since Solaris 2.5.
16358 solaris2.[5-9]* | solaris2.1[0-9]*)
16359 enable_symvers=sun ;;
16361 enable_symvers=no ;;
16362 esac
16367 # Check if 'sun' was requested on non-Solaris 2 platforms.
16368 if test x$enable_symvers = xsun ; then
16369 case ${target_os} in
16370 solaris2*)
16371 # All fine.
16374 # Unlikely to work.
16375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
16376 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
16377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
16378 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
16379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16380 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16381 enable_symvers=no
16383 esac
16386 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
16387 if test $enable_symvers != no; then
16388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
16389 $as_echo_n "checking for shared libgcc... " >&6; }
16390 ac_save_CFLAGS="$CFLAGS"
16391 CFLAGS=' -lgcc_s'
16392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16393 /* end confdefs.h. */
16396 main ()
16398 return 0;
16400 return 0;
16402 _ACEOF
16403 if ac_fn_c_try_link "$LINENO"; then :
16404 libgomp_shared_libgcc=yes
16405 else
16406 libgomp_shared_libgcc=no
16408 rm -f core conftest.err conftest.$ac_objext \
16409 conftest$ac_exeext conftest.$ac_ext
16410 CFLAGS="$ac_save_CFLAGS"
16411 if test $libgomp_shared_libgcc = no; then
16412 cat > conftest.c <<EOF
16413 int main (void) { return 0; }
16415 libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
16416 -shared -shared-libgcc -o conftest.so \
16417 conftest.c -v 2>&1 >/dev/null \
16418 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
16419 rm -f conftest.c conftest.so
16420 if test x${libgomp_libgcc_s_suffix+set} = xset; then
16421 CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
16422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16423 /* end confdefs.h. */
16426 main ()
16428 return 0;
16430 return 0;
16432 _ACEOF
16433 if ac_fn_c_try_link "$LINENO"; then :
16434 libgomp_shared_libgcc=yes
16436 rm -f core conftest.err conftest.$ac_objext \
16437 conftest$ac_exeext conftest.$ac_ext
16438 CFLAGS="$ac_save_CFLAGS"
16441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_shared_libgcc" >&5
16442 $as_echo "$libgomp_shared_libgcc" >&6; }
16445 # For GNU ld, we need at least this version. The format is described in
16446 # LIBGOMP_CHECK_LINKER_FEATURES above.
16447 libgomp_min_gnu_ld_version=21400
16448 # XXXXXXXXXXX libgomp_gnu_ld_version=21390
16450 # Check to see if unspecified "yes" value can win, given results above.
16451 # Change "yes" into either "no" or a style name.
16452 if test $enable_symvers != no && test $libgomp_shared_libgcc = yes; then
16453 if test $with_gnu_ld = yes; then
16454 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
16455 enable_symvers=gnu
16456 elif test $libgomp_ld_is_gold = yes ; then
16457 enable_symvers=gnu
16458 else
16459 # The right tools, the right setup, but too old. Fallbacks?
16460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
16461 $as_echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
16462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
16463 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
16464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
16465 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
16466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
16467 $as_echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
16468 if test $libgomp_gnu_ld_version -ge 21200 ; then
16469 # Globbing fix is present, proper block support is not.
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
16473 else
16474 # 2.11 or older.
16475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16476 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16477 enable_symvers=no
16480 elif test $enable_symvers = sun; then
16481 : All interesting versions of Sun ld support sun style symbol versioning.
16482 else
16483 # just fail for now
16484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
16485 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
16486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
16487 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
16488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
16489 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
16490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16491 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16492 enable_symvers=no
16496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports .symver directive" >&5
16497 $as_echo_n "checking whether the target supports .symver directive... " >&6; }
16498 if test "${libgomp_cv_have_as_symver_directive+set}" = set; then :
16499 $as_echo_n "(cached) " >&6
16500 else
16502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16503 /* end confdefs.h. */
16504 void foo (void); __asm (".symver foo, bar@SYMVER");
16506 main ()
16510 return 0;
16512 _ACEOF
16513 if ac_fn_c_try_compile "$LINENO"; then :
16514 libgomp_cv_have_as_symver_directive=yes
16515 else
16516 libgomp_cv_have_as_symver_directive=no
16518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_as_symver_directive" >&5
16521 $as_echo "$libgomp_cv_have_as_symver_directive" >&6; }
16522 if test $libgomp_cv_have_as_symver_directive = yes; then
16524 $as_echo "#define HAVE_AS_SYMVER_DIRECTIVE 1" >>confdefs.h
16528 if test $enable_symvers != no; then
16529 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
16530 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
16531 else
16532 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
16533 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
16536 if test $enable_symvers = gnu; then
16537 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE=
16538 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
16539 else
16540 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
16541 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE=
16544 if test $enable_symvers = sun; then
16545 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE=
16546 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
16547 else
16548 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
16549 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE=
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
16553 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
16555 if test $enable_symvers != no ; then
16556 case ${target_os} in
16557 # The Solaris 2 runtime linker doesn't support the GNU extension of
16558 # binding the same symbol to different versions
16559 solaris2*)
16561 # Other platforms with GNU symbol versioning (GNU/Linux, more?) do.
16564 $as_echo "#define HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT 1" >>confdefs.h
16567 esac
16571 if test $enable_symvers = gnu; then
16573 $as_echo "#define LIBGOMP_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
16577 # Get target configury.
16578 . ${srcdir}/configure.tgt
16579 CFLAGS="$save_CFLAGS $XCFLAGS"
16581 # Check for __sync_val_compare_and_swap, but only after the target has
16582 # had a chance to set XCFLAGS.
16584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
16585 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
16586 if test "${libgomp_cv_have_sync_builtins+set}" = set; then :
16587 $as_echo_n "(cached) " >&6
16588 else
16590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16591 /* end confdefs.h. */
16594 main ()
16596 int foo; __sync_val_compare_and_swap(&foo, 0, 1);
16598 return 0;
16600 _ACEOF
16601 if ac_fn_c_try_link "$LINENO"; then :
16602 libgomp_cv_have_sync_builtins=yes
16603 else
16604 libgomp_cv_have_sync_builtins=no
16606 rm -f core conftest.err conftest.$ac_objext \
16607 conftest$ac_exeext conftest.$ac_ext
16609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_sync_builtins" >&5
16610 $as_echo "$libgomp_cv_have_sync_builtins" >&6; }
16611 if test $libgomp_cv_have_sync_builtins = yes; then
16613 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
16617 XCFLAGS="$XCFLAGS$XPCFLAGS"
16623 # Cleanup and exit.
16624 CFLAGS="$save_CFLAGS"
16625 cat >confcache <<\_ACEOF
16626 # This file is a shell script that caches the results of configure
16627 # tests run on this system so they can be shared between configure
16628 # scripts and configure runs, see configure's option --config-cache.
16629 # It is not useful on other systems. If it contains results you don't
16630 # want to keep, you may remove or edit it.
16632 # config.status only pays attention to the cache file if you give it
16633 # the --recheck option to rerun configure.
16635 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16636 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16637 # following values.
16639 _ACEOF
16641 # The following way of writing the cache mishandles newlines in values,
16642 # but we know of no workaround that is simple, portable, and efficient.
16643 # So, we kill variables containing newlines.
16644 # Ultrix sh set writes to stderr and can't be redirected directly,
16645 # and sets the high bit in the cache file unless we assign to the vars.
16647 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16648 eval ac_val=\$$ac_var
16649 case $ac_val in #(
16650 *${as_nl}*)
16651 case $ac_var in #(
16652 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16653 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16654 esac
16655 case $ac_var in #(
16656 _ | IFS | as_nl) ;; #(
16657 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16658 *) { eval $ac_var=; unset $ac_var;} ;;
16659 esac ;;
16660 esac
16661 done
16663 (set) 2>&1 |
16664 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16665 *${as_nl}ac_space=\ *)
16666 # `set' does not quote correctly, so add quotes: double-quote
16667 # substitution turns \\\\ into \\, and sed turns \\ into \.
16668 sed -n \
16669 "s/'/'\\\\''/g;
16670 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16671 ;; #(
16673 # `set' quotes correctly as required by POSIX, so do not add quotes.
16674 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16676 esac |
16677 sort
16679 sed '
16680 /^ac_cv_env_/b end
16681 t clear
16682 :clear
16683 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16684 t end
16685 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16686 :end' >>confcache
16687 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16688 if test -w "$cache_file"; then
16689 test "x$cache_file" != "x/dev/null" &&
16690 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16691 $as_echo "$as_me: updating cache $cache_file" >&6;}
16692 cat confcache >$cache_file
16693 else
16694 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16695 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16698 rm -f confcache
16700 if test ${multilib} = yes; then
16701 multilib_arg="--enable-multilib"
16702 else
16703 multilib_arg=
16706 # Set up the set of libraries that we need to link against for libgomp.
16707 # Note that the GOMP_SELF_SPEC in gcc.c may force -pthread,
16708 # which will force linkage against -lpthread (or equivalent for the system).
16709 # That's not 100% ideal, but about the best we can do easily.
16710 if test $enable_shared = yes; then
16711 link_gomp="-lgomp %{static: $LIBS}"
16712 else
16713 link_gomp="-lgomp $LIBS"
16717 if test "$ac_cv_fc_compiler_gnu" = yes; then
16718 USE_FORTRAN_TRUE=
16719 USE_FORTRAN_FALSE='#'
16720 else
16721 USE_FORTRAN_TRUE='#'
16722 USE_FORTRAN_FALSE=
16726 # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
16727 # and export AC_COMPUTE_INT. If that happens, then we'll need to remove
16728 # the underscore here and update the PREREQ. If it doesn't, then we'll
16729 # need to copy this macro to our acinclude.m4.
16730 save_CFLAGS="$CFLAGS"
16731 for i in $config_path; do
16732 if test -f $srcdir/config/$i/omp-lock.h; then
16733 CFLAGS="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h"
16734 break
16736 done
16738 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_t)" "OMP_LOCK_SIZE" ""; then :
16740 else
16741 as_fn_error "unsupported system, cannot find sizeof (omp_lock_t)" "$LINENO" 5
16745 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_t)" "OMP_LOCK_ALIGN" ""; then :
16750 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_t)" "OMP_NEST_LOCK_SIZE" ""; then :
16755 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_t)" "OMP_NEST_LOCK_ALIGN" ""; then :
16760 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_25_t)" "OMP_LOCK_25_SIZE" ""; then :
16762 else
16763 as_fn_error "unsupported system, cannot find sizeof (omp_lock_25_t)" "$LINENO" 5
16767 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_25_t)" "OMP_LOCK_25_ALIGN" ""; then :
16772 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_SIZE" ""; then :
16777 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_ALIGN" ""; then :
16783 # If the lock fits in an integer, then arrange for Fortran to use that
16784 # integer. If it doesn't, then arrange for Fortran to use a pointer.
16785 # Except that we don't have a way at present to multi-lib the installed
16786 # Fortran modules, so we assume 8 bytes for pointers, regardless of the
16787 # actual target.
16788 OMP_LOCK_KIND=$OMP_LOCK_SIZE
16789 OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
16790 if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
16791 OMP_LOCK_KIND=8
16793 if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
16794 OMP_NEST_LOCK_KIND=8
16796 OMP_LOCK_25_KIND=$OMP_LOCK_25_SIZE
16797 OMP_NEST_LOCK_25_KIND=$OMP_NEST_LOCK_25_SIZE
16798 if test $OMP_LOCK_25_SIZE -gt 8 || test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then
16799 OMP_LOCK_25_KIND=8
16801 if test $OMP_NEST_LOCK_25_SIZE -gt 8 || test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then
16802 OMP_NEST_LOCK_25_KIND=8
16817 CFLAGS="$save_CFLAGS"
16819 # Determine what GCC version number to use in filesystem paths.
16821 get_gcc_base_ver="cat"
16823 # Check whether --with-gcc-major-version-only was given.
16824 if test "${with_gcc_major_version_only+set}" = set; then :
16825 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
16826 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*\$\$/\1/'"
16834 ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
16836 ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
16838 ac_config_files="$ac_config_files testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in"
16840 cat >confcache <<\_ACEOF
16841 # This file is a shell script that caches the results of configure
16842 # tests run on this system so they can be shared between configure
16843 # scripts and configure runs, see configure's option --config-cache.
16844 # It is not useful on other systems. If it contains results you don't
16845 # want to keep, you may remove or edit it.
16847 # config.status only pays attention to the cache file if you give it
16848 # the --recheck option to rerun configure.
16850 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16851 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16852 # following values.
16854 _ACEOF
16856 # The following way of writing the cache mishandles newlines in values,
16857 # but we know of no workaround that is simple, portable, and efficient.
16858 # So, we kill variables containing newlines.
16859 # Ultrix sh set writes to stderr and can't be redirected directly,
16860 # and sets the high bit in the cache file unless we assign to the vars.
16862 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16863 eval ac_val=\$$ac_var
16864 case $ac_val in #(
16865 *${as_nl}*)
16866 case $ac_var in #(
16867 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16868 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16869 esac
16870 case $ac_var in #(
16871 _ | IFS | as_nl) ;; #(
16872 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16873 *) { eval $ac_var=; unset $ac_var;} ;;
16874 esac ;;
16875 esac
16876 done
16878 (set) 2>&1 |
16879 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16880 *${as_nl}ac_space=\ *)
16881 # `set' does not quote correctly, so add quotes: double-quote
16882 # substitution turns \\\\ into \\, and sed turns \\ into \.
16883 sed -n \
16884 "s/'/'\\\\''/g;
16885 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16886 ;; #(
16888 # `set' quotes correctly as required by POSIX, so do not add quotes.
16889 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16891 esac |
16892 sort
16894 sed '
16895 /^ac_cv_env_/b end
16896 t clear
16897 :clear
16898 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16899 t end
16900 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16901 :end' >>confcache
16902 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16903 if test -w "$cache_file"; then
16904 test "x$cache_file" != "x/dev/null" &&
16905 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16906 $as_echo "$as_me: updating cache $cache_file" >&6;}
16907 cat confcache >$cache_file
16908 else
16909 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16910 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16913 rm -f confcache
16915 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16916 # Let make expand exec_prefix.
16917 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16919 DEFS=-DHAVE_CONFIG_H
16921 ac_libobjs=
16922 ac_ltlibobjs=
16923 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16924 # 1. Remove the extension, and $U if already installed.
16925 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16926 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16927 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16928 # will be set to the directory where LIBOBJS objects are built.
16929 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16930 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16931 done
16932 LIBOBJS=$ac_libobjs
16934 LTLIBOBJS=$ac_ltlibobjs
16937 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
16938 as_fn_error "conditional \"GENINSRC\" was never defined.
16939 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16941 if test -n "$EXEEXT"; then
16942 am__EXEEXT_TRUE=
16943 am__EXEEXT_FALSE='#'
16944 else
16945 am__EXEEXT_TRUE='#'
16946 am__EXEEXT_FALSE=
16949 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16950 as_fn_error "conditional \"AMDEP\" was never defined.
16951 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16953 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16954 as_fn_error "conditional \"am__fastdepCC\" was never defined.
16955 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16957 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
16958 as_fn_error "conditional \"BUILD_INFO\" was never defined.
16959 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16961 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16962 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
16963 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16965 if test -z "${PLUGIN_NVPTX_TRUE}" && test -z "${PLUGIN_NVPTX_FALSE}"; then
16966 as_fn_error "conditional \"PLUGIN_NVPTX\" was never defined.
16967 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16969 if test -z "${PLUGIN_HSA_TRUE}" && test -z "${PLUGIN_HSA_FALSE}"; then
16970 as_fn_error "conditional \"PLUGIN_HSA\" was never defined.
16971 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16973 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
16974 as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
16975 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16977 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
16978 as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
16979 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16981 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
16982 as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
16983 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16985 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
16986 as_fn_error "conditional \"USE_FORTRAN\" was never defined.
16987 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16990 : ${CONFIG_STATUS=./config.status}
16991 ac_write_fail=0
16992 ac_clean_files_save=$ac_clean_files
16993 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16994 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16995 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16996 as_write_fail=0
16997 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16998 #! $SHELL
16999 # Generated by $as_me.
17000 # Run this file to recreate the current configuration.
17001 # Compiler output produced by configure, useful for debugging
17002 # configure, is in config.log if it exists.
17004 debug=false
17005 ac_cs_recheck=false
17006 ac_cs_silent=false
17008 SHELL=\${CONFIG_SHELL-$SHELL}
17009 export SHELL
17010 _ASEOF
17011 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17012 ## -------------------- ##
17013 ## M4sh Initialization. ##
17014 ## -------------------- ##
17016 # Be more Bourne compatible
17017 DUALCASE=1; export DUALCASE # for MKS sh
17018 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17019 emulate sh
17020 NULLCMD=:
17021 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17022 # is contrary to our usage. Disable this feature.
17023 alias -g '${1+"$@"}'='"$@"'
17024 setopt NO_GLOB_SUBST
17025 else
17026 case `(set -o) 2>/dev/null` in #(
17027 *posix*) :
17028 set -o posix ;; #(
17029 *) :
17031 esac
17035 as_nl='
17037 export as_nl
17038 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17039 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17040 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17041 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17042 # Prefer a ksh shell builtin over an external printf program on Solaris,
17043 # but without wasting forks for bash or zsh.
17044 if test -z "$BASH_VERSION$ZSH_VERSION" \
17045 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17046 as_echo='print -r --'
17047 as_echo_n='print -rn --'
17048 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17049 as_echo='printf %s\n'
17050 as_echo_n='printf %s'
17051 else
17052 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17053 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17054 as_echo_n='/usr/ucb/echo -n'
17055 else
17056 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17057 as_echo_n_body='eval
17058 arg=$1;
17059 case $arg in #(
17060 *"$as_nl"*)
17061 expr "X$arg" : "X\\(.*\\)$as_nl";
17062 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17063 esac;
17064 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17066 export as_echo_n_body
17067 as_echo_n='sh -c $as_echo_n_body as_echo'
17069 export as_echo_body
17070 as_echo='sh -c $as_echo_body as_echo'
17073 # The user is always right.
17074 if test "${PATH_SEPARATOR+set}" != set; then
17075 PATH_SEPARATOR=:
17076 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17077 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17078 PATH_SEPARATOR=';'
17083 # IFS
17084 # We need space, tab and new line, in precisely that order. Quoting is
17085 # there to prevent editors from complaining about space-tab.
17086 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17087 # splitting by setting IFS to empty value.)
17088 IFS=" "" $as_nl"
17090 # Find who we are. Look in the path if we contain no directory separator.
17091 case $0 in #((
17092 *[\\/]* ) as_myself=$0 ;;
17093 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17094 for as_dir in $PATH
17096 IFS=$as_save_IFS
17097 test -z "$as_dir" && as_dir=.
17098 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17099 done
17100 IFS=$as_save_IFS
17103 esac
17104 # We did not find ourselves, most probably we were run as `sh COMMAND'
17105 # in which case we are not to be found in the path.
17106 if test "x$as_myself" = x; then
17107 as_myself=$0
17109 if test ! -f "$as_myself"; then
17110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17111 exit 1
17114 # Unset variables that we do not need and which cause bugs (e.g. in
17115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17116 # suppresses any "Segmentation fault" message there. '((' could
17117 # trigger a bug in pdksh 5.2.14.
17118 for as_var in BASH_ENV ENV MAIL MAILPATH
17119 do eval test x\${$as_var+set} = xset \
17120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17121 done
17122 PS1='$ '
17123 PS2='> '
17124 PS4='+ '
17126 # NLS nuisances.
17127 LC_ALL=C
17128 export LC_ALL
17129 LANGUAGE=C
17130 export LANGUAGE
17132 # CDPATH.
17133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17136 # as_fn_error ERROR [LINENO LOG_FD]
17137 # ---------------------------------
17138 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17139 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17140 # script with status $?, using 1 if that was 0.
17141 as_fn_error ()
17143 as_status=$?; test $as_status -eq 0 && as_status=1
17144 if test "$3"; then
17145 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17146 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
17148 $as_echo "$as_me: error: $1" >&2
17149 as_fn_exit $as_status
17150 } # as_fn_error
17153 # as_fn_set_status STATUS
17154 # -----------------------
17155 # Set $? to STATUS, without forking.
17156 as_fn_set_status ()
17158 return $1
17159 } # as_fn_set_status
17161 # as_fn_exit STATUS
17162 # -----------------
17163 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17164 as_fn_exit ()
17166 set +e
17167 as_fn_set_status $1
17168 exit $1
17169 } # as_fn_exit
17171 # as_fn_unset VAR
17172 # ---------------
17173 # Portably unset VAR.
17174 as_fn_unset ()
17176 { eval $1=; unset $1;}
17178 as_unset=as_fn_unset
17179 # as_fn_append VAR VALUE
17180 # ----------------------
17181 # Append the text in VALUE to the end of the definition contained in VAR. Take
17182 # advantage of any shell optimizations that allow amortized linear growth over
17183 # repeated appends, instead of the typical quadratic growth present in naive
17184 # implementations.
17185 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17186 eval 'as_fn_append ()
17188 eval $1+=\$2
17190 else
17191 as_fn_append ()
17193 eval $1=\$$1\$2
17195 fi # as_fn_append
17197 # as_fn_arith ARG...
17198 # ------------------
17199 # Perform arithmetic evaluation on the ARGs, and store the result in the
17200 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17201 # must be portable across $(()) and expr.
17202 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17203 eval 'as_fn_arith ()
17205 as_val=$(( $* ))
17207 else
17208 as_fn_arith ()
17210 as_val=`expr "$@" || test $? -eq 1`
17212 fi # as_fn_arith
17215 if expr a : '\(a\)' >/dev/null 2>&1 &&
17216 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17217 as_expr=expr
17218 else
17219 as_expr=false
17222 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17223 as_basename=basename
17224 else
17225 as_basename=false
17228 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17229 as_dirname=dirname
17230 else
17231 as_dirname=false
17234 as_me=`$as_basename -- "$0" ||
17235 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17236 X"$0" : 'X\(//\)$' \| \
17237 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17238 $as_echo X/"$0" |
17239 sed '/^.*\/\([^/][^/]*\)\/*$/{
17240 s//\1/
17243 /^X\/\(\/\/\)$/{
17244 s//\1/
17247 /^X\/\(\/\).*/{
17248 s//\1/
17251 s/.*/./; q'`
17253 # Avoid depending upon Character Ranges.
17254 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17255 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17256 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17257 as_cr_digits='0123456789'
17258 as_cr_alnum=$as_cr_Letters$as_cr_digits
17260 ECHO_C= ECHO_N= ECHO_T=
17261 case `echo -n x` in #(((((
17262 -n*)
17263 case `echo 'xy\c'` in
17264 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17265 xy) ECHO_C='\c';;
17266 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17267 ECHO_T=' ';;
17268 esac;;
17270 ECHO_N='-n';;
17271 esac
17273 rm -f conf$$ conf$$.exe conf$$.file
17274 if test -d conf$$.dir; then
17275 rm -f conf$$.dir/conf$$.file
17276 else
17277 rm -f conf$$.dir
17278 mkdir conf$$.dir 2>/dev/null
17280 if (echo >conf$$.file) 2>/dev/null; then
17281 if ln -s conf$$.file conf$$ 2>/dev/null; then
17282 as_ln_s='ln -s'
17283 # ... but there are two gotchas:
17284 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17285 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17286 # In both cases, we have to default to `cp -p'.
17287 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17288 as_ln_s='cp -p'
17289 elif ln conf$$.file conf$$ 2>/dev/null; then
17290 as_ln_s=ln
17291 else
17292 as_ln_s='cp -p'
17294 else
17295 as_ln_s='cp -p'
17297 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17298 rmdir conf$$.dir 2>/dev/null
17301 # as_fn_mkdir_p
17302 # -------------
17303 # Create "$as_dir" as a directory, including parents if necessary.
17304 as_fn_mkdir_p ()
17307 case $as_dir in #(
17308 -*) as_dir=./$as_dir;;
17309 esac
17310 test -d "$as_dir" || eval $as_mkdir_p || {
17311 as_dirs=
17312 while :; do
17313 case $as_dir in #(
17314 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17315 *) as_qdir=$as_dir;;
17316 esac
17317 as_dirs="'$as_qdir' $as_dirs"
17318 as_dir=`$as_dirname -- "$as_dir" ||
17319 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17320 X"$as_dir" : 'X\(//\)[^/]' \| \
17321 X"$as_dir" : 'X\(//\)$' \| \
17322 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17323 $as_echo X"$as_dir" |
17324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17325 s//\1/
17328 /^X\(\/\/\)[^/].*/{
17329 s//\1/
17332 /^X\(\/\/\)$/{
17333 s//\1/
17336 /^X\(\/\).*/{
17337 s//\1/
17340 s/.*/./; q'`
17341 test -d "$as_dir" && break
17342 done
17343 test -z "$as_dirs" || eval "mkdir $as_dirs"
17344 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
17347 } # as_fn_mkdir_p
17348 if mkdir -p . 2>/dev/null; then
17349 as_mkdir_p='mkdir -p "$as_dir"'
17350 else
17351 test -d ./-p && rmdir ./-p
17352 as_mkdir_p=false
17355 if test -x / >/dev/null 2>&1; then
17356 as_test_x='test -x'
17357 else
17358 if ls -dL / >/dev/null 2>&1; then
17359 as_ls_L_option=L
17360 else
17361 as_ls_L_option=
17363 as_test_x='
17364 eval sh -c '\''
17365 if test -d "$1"; then
17366 test -d "$1/.";
17367 else
17368 case $1 in #(
17369 -*)set "./$1";;
17370 esac;
17371 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17372 ???[sx]*):;;*)false;;esac;fi
17373 '\'' sh
17376 as_executable_p=$as_test_x
17378 # Sed expression to map a string onto a valid CPP name.
17379 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17381 # Sed expression to map a string onto a valid variable name.
17382 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17385 exec 6>&1
17386 ## ----------------------------------- ##
17387 ## Main body of $CONFIG_STATUS script. ##
17388 ## ----------------------------------- ##
17389 _ASEOF
17390 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17392 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17393 # Save the log message, to keep $0 and so on meaningful, and to
17394 # report actual input values of CONFIG_FILES etc. instead of their
17395 # values after options handling.
17396 ac_log="
17397 This file was extended by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
17398 generated by GNU Autoconf 2.64. Invocation command line was
17400 CONFIG_FILES = $CONFIG_FILES
17401 CONFIG_HEADERS = $CONFIG_HEADERS
17402 CONFIG_LINKS = $CONFIG_LINKS
17403 CONFIG_COMMANDS = $CONFIG_COMMANDS
17404 $ $0 $@
17406 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17409 _ACEOF
17411 case $ac_config_files in *"
17412 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17413 esac
17415 case $ac_config_headers in *"
17416 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17417 esac
17420 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17421 # Files that config.status was made for.
17422 config_files="$ac_config_files"
17423 config_headers="$ac_config_headers"
17424 config_commands="$ac_config_commands"
17426 _ACEOF
17428 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17429 ac_cs_usage="\
17430 \`$as_me' instantiates files and other configuration actions
17431 from templates according to the current configuration. Unless the files
17432 and actions are specified as TAGs, all are instantiated by default.
17434 Usage: $0 [OPTION]... [TAG]...
17436 -h, --help print this help, then exit
17437 -V, --version print version number and configuration settings, then exit
17438 -q, --quiet, --silent
17439 do not print progress messages
17440 -d, --debug don't remove temporary files
17441 --recheck update $as_me by reconfiguring in the same conditions
17442 --file=FILE[:TEMPLATE]
17443 instantiate the configuration file FILE
17444 --header=FILE[:TEMPLATE]
17445 instantiate the configuration header FILE
17447 Configuration files:
17448 $config_files
17450 Configuration headers:
17451 $config_headers
17453 Configuration commands:
17454 $config_commands
17456 Report bugs to the package provider.
17457 GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
17458 General help using GNU software: <http://www.gnu.org/gethelp/>."
17460 _ACEOF
17461 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17462 ac_cs_version="\\
17463 GNU Offloading and Multi Processing Runtime Library config.status 1.0
17464 configured by $0, generated by GNU Autoconf 2.64,
17465 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17467 Copyright (C) 2009 Free Software Foundation, Inc.
17468 This config.status script is free software; the Free Software Foundation
17469 gives unlimited permission to copy, distribute and modify it."
17471 ac_pwd='$ac_pwd'
17472 srcdir='$srcdir'
17473 INSTALL='$INSTALL'
17474 MKDIR_P='$MKDIR_P'
17475 AWK='$AWK'
17476 test -n "\$AWK" || AWK=awk
17477 _ACEOF
17479 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17480 # The default lists apply if the user does not specify any file.
17481 ac_need_defaults=:
17482 while test $# != 0
17484 case $1 in
17485 --*=*)
17486 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17487 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17488 ac_shift=:
17491 ac_option=$1
17492 ac_optarg=$2
17493 ac_shift=shift
17495 esac
17497 case $ac_option in
17498 # Handling of the options.
17499 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17500 ac_cs_recheck=: ;;
17501 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17502 $as_echo "$ac_cs_version"; exit ;;
17503 --debug | --debu | --deb | --de | --d | -d )
17504 debug=: ;;
17505 --file | --fil | --fi | --f )
17506 $ac_shift
17507 case $ac_optarg in
17508 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17509 esac
17510 as_fn_append CONFIG_FILES " '$ac_optarg'"
17511 ac_need_defaults=false;;
17512 --header | --heade | --head | --hea )
17513 $ac_shift
17514 case $ac_optarg in
17515 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17516 esac
17517 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17518 ac_need_defaults=false;;
17519 --he | --h)
17520 # Conflict between --help and --header
17521 as_fn_error "ambiguous option: \`$1'
17522 Try \`$0 --help' for more information.";;
17523 --help | --hel | -h )
17524 $as_echo "$ac_cs_usage"; exit ;;
17525 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17526 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17527 ac_cs_silent=: ;;
17529 # This is an error.
17530 -*) as_fn_error "unrecognized option: \`$1'
17531 Try \`$0 --help' for more information." ;;
17533 *) as_fn_append ac_config_targets " $1"
17534 ac_need_defaults=false ;;
17536 esac
17537 shift
17538 done
17540 ac_configure_extra_args=
17542 if $ac_cs_silent; then
17543 exec 6>/dev/null
17544 ac_configure_extra_args="$ac_configure_extra_args --silent"
17547 _ACEOF
17548 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17549 if \$ac_cs_recheck; then
17550 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17551 shift
17552 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17553 CONFIG_SHELL='$SHELL'
17554 export CONFIG_SHELL
17555 exec "\$@"
17558 _ACEOF
17559 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17560 exec 5>>config.log
17562 echo
17563 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17564 ## Running $as_me. ##
17565 _ASBOX
17566 $as_echo "$ac_log"
17567 } >&5
17569 _ACEOF
17570 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17572 # INIT-COMMANDS
17575 srcdir="$srcdir"
17576 host="$host"
17577 target="$target"
17578 with_multisubdir="$with_multisubdir"
17579 with_multisrctop="$with_multisrctop"
17580 with_target_subdir="$with_target_subdir"
17581 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17582 multi_basedir="$multi_basedir"
17583 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17584 CC="$CC"
17585 CXX="$CXX"
17586 GFORTRAN="$GFORTRAN"
17587 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17590 # The HP-UX ksh and POSIX shell print the target directory to stdout
17591 # if CDPATH is set.
17592 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17594 sed_quote_subst='$sed_quote_subst'
17595 double_quote_subst='$double_quote_subst'
17596 delay_variable_subst='$delay_variable_subst'
17597 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17598 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17599 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17600 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17601 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17602 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17603 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17604 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17605 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17606 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17607 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17608 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17609 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17610 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17611 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17612 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17613 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17614 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17615 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17616 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17617 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17618 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17619 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17620 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17621 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17622 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17623 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17624 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17625 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17626 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17627 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17628 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17629 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17630 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17631 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17632 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17633 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17634 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17635 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17636 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17637 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17638 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17639 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17640 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17641 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17642 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17643 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17644 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17645 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"`'
17646 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17647 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17648 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17649 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17650 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17651 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17652 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17653 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17654 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17655 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17656 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17657 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17658 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17659 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17660 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17661 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17662 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17663 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17664 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17665 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17666 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17667 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17668 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17669 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17670 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17671 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17672 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17673 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17674 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17675 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17676 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17677 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17678 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17679 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17680 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17681 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17682 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17683 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17684 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17685 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17686 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17687 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17688 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17689 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17690 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17691 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17692 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17693 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17694 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17695 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17696 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17697 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17698 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17699 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17700 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17701 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17702 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17703 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17704 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17705 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17706 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17707 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17708 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17709 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17710 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17711 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17712 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17713 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17714 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17715 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17716 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17717 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17718 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17719 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17720 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17721 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17722 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17723 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
17724 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
17725 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
17726 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17727 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
17728 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
17729 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
17730 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
17731 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
17732 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
17733 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
17734 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
17735 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
17736 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17737 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17738 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
17739 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
17740 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
17741 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17742 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17743 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
17744 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17745 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
17746 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17747 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17748 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17749 hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
17750 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
17751 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
17752 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
17753 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
17754 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
17755 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
17756 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
17757 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
17758 fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
17759 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
17760 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
17761 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17762 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17763 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
17764 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
17765 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
17766 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
17767 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
17768 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
17769 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
17770 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
17771 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
17773 LTCC='$LTCC'
17774 LTCFLAGS='$LTCFLAGS'
17775 compiler='$compiler_DEFAULT'
17777 # A function that is used when there is no print builtin or printf.
17778 func_fallback_echo ()
17780 eval 'cat <<_LTECHO_EOF
17782 _LTECHO_EOF'
17785 # Quote evaled strings.
17786 for var in SHELL \
17787 ECHO \
17788 SED \
17789 GREP \
17790 EGREP \
17791 FGREP \
17792 LD \
17793 NM \
17794 LN_S \
17795 lt_SP2NL \
17796 lt_NL2SP \
17797 reload_flag \
17798 OBJDUMP \
17799 deplibs_check_method \
17800 file_magic_cmd \
17801 AR \
17802 AR_FLAGS \
17803 STRIP \
17804 RANLIB \
17805 CC \
17806 CFLAGS \
17807 compiler \
17808 lt_cv_sys_global_symbol_pipe \
17809 lt_cv_sys_global_symbol_to_cdecl \
17810 lt_cv_sys_global_symbol_to_c_name_address \
17811 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17812 lt_prog_compiler_no_builtin_flag \
17813 lt_prog_compiler_wl \
17814 lt_prog_compiler_pic \
17815 lt_prog_compiler_static \
17816 lt_cv_prog_compiler_c_o \
17817 need_locks \
17818 DSYMUTIL \
17819 NMEDIT \
17820 LIPO \
17821 OTOOL \
17822 OTOOL64 \
17823 shrext_cmds \
17824 export_dynamic_flag_spec \
17825 whole_archive_flag_spec \
17826 compiler_needs_object \
17827 with_gnu_ld \
17828 allow_undefined_flag \
17829 no_undefined_flag \
17830 hardcode_libdir_flag_spec \
17831 hardcode_libdir_flag_spec_ld \
17832 hardcode_libdir_separator \
17833 fix_srcfile_path \
17834 exclude_expsyms \
17835 include_expsyms \
17836 file_list_spec \
17837 variables_saved_for_relink \
17838 libname_spec \
17839 library_names_spec \
17840 soname_spec \
17841 install_override_mode \
17842 finish_eval \
17843 old_striplib \
17844 striplib \
17845 compiler_lib_search_dirs \
17846 predep_objects \
17847 postdep_objects \
17848 predeps \
17849 postdeps \
17850 compiler_lib_search_path \
17851 LD_FC \
17852 reload_flag_FC \
17853 compiler_FC \
17854 lt_prog_compiler_no_builtin_flag_FC \
17855 lt_prog_compiler_wl_FC \
17856 lt_prog_compiler_pic_FC \
17857 lt_prog_compiler_static_FC \
17858 lt_cv_prog_compiler_c_o_FC \
17859 export_dynamic_flag_spec_FC \
17860 whole_archive_flag_spec_FC \
17861 compiler_needs_object_FC \
17862 with_gnu_ld_FC \
17863 allow_undefined_flag_FC \
17864 no_undefined_flag_FC \
17865 hardcode_libdir_flag_spec_FC \
17866 hardcode_libdir_flag_spec_ld_FC \
17867 hardcode_libdir_separator_FC \
17868 fix_srcfile_path_FC \
17869 exclude_expsyms_FC \
17870 include_expsyms_FC \
17871 file_list_spec_FC \
17872 compiler_lib_search_dirs_FC \
17873 predep_objects_FC \
17874 postdep_objects_FC \
17875 predeps_FC \
17876 postdeps_FC \
17877 compiler_lib_search_path_FC; do
17878 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17879 *[\\\\\\\`\\"\\\$]*)
17880 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17883 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17885 esac
17886 done
17888 # Double-quote double-evaled strings.
17889 for var in reload_cmds \
17890 old_postinstall_cmds \
17891 old_postuninstall_cmds \
17892 old_archive_cmds \
17893 extract_expsyms_cmds \
17894 old_archive_from_new_cmds \
17895 old_archive_from_expsyms_cmds \
17896 archive_cmds \
17897 archive_expsym_cmds \
17898 module_cmds \
17899 module_expsym_cmds \
17900 export_symbols_cmds \
17901 prelink_cmds \
17902 postinstall_cmds \
17903 postuninstall_cmds \
17904 finish_cmds \
17905 sys_lib_search_path_spec \
17906 sys_lib_dlsearch_path_spec \
17907 reload_cmds_FC \
17908 old_archive_cmds_FC \
17909 old_archive_from_new_cmds_FC \
17910 old_archive_from_expsyms_cmds_FC \
17911 archive_cmds_FC \
17912 archive_expsym_cmds_FC \
17913 module_cmds_FC \
17914 module_expsym_cmds_FC \
17915 export_symbols_cmds_FC \
17916 prelink_cmds_FC; do
17917 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17918 *[\\\\\\\`\\"\\\$]*)
17919 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17922 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17924 esac
17925 done
17927 ac_aux_dir='$ac_aux_dir'
17928 xsi_shell='$xsi_shell'
17929 lt_shell_append='$lt_shell_append'
17931 # See if we are running on zsh, and set the options which allow our
17932 # commands through without removal of \ escapes INIT.
17933 if test -n "\${ZSH_VERSION+set}" ; then
17934 setopt NO_GLOB_SUBST
17938 PACKAGE='$PACKAGE'
17939 VERSION='$VERSION'
17940 TIMESTAMP='$TIMESTAMP'
17941 RM='$RM'
17942 ofile='$ofile'
17949 GCC="$GCC"
17950 CC="$CC"
17951 acx_cv_header_stdint="$acx_cv_header_stdint"
17952 acx_cv_type_int8_t="$acx_cv_type_int8_t"
17953 acx_cv_type_int16_t="$acx_cv_type_int16_t"
17954 acx_cv_type_int32_t="$acx_cv_type_int32_t"
17955 acx_cv_type_int64_t="$acx_cv_type_int64_t"
17956 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
17957 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
17958 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
17959 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
17960 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
17961 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
17962 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
17963 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
17964 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
17967 _ACEOF
17969 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17971 # Handling of arguments.
17972 for ac_config_target in $ac_config_targets
17974 case $ac_config_target in
17975 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17976 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17977 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17978 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17979 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
17980 "omp.h") CONFIG_FILES="$CONFIG_FILES omp.h" ;;
17981 "omp_lib.h") CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
17982 "omp_lib.f90") CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
17983 "libgomp_f.h") CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
17984 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17985 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17986 "libgomp.spec") CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
17987 "testsuite/libgomp-test-support.pt.exp") CONFIG_FILES="$CONFIG_FILES testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in" ;;
17989 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17990 esac
17991 done
17994 # If the user did not use the arguments to specify the items to instantiate,
17995 # then the envvar interface is used. Set only those that are not.
17996 # We use the long form for the default assignment because of an extremely
17997 # bizarre bug on SunOS 4.1.3.
17998 if $ac_need_defaults; then
17999 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18000 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18001 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18004 # Have a temporary directory for convenience. Make it in the build tree
18005 # simply because there is no reason against having it here, and in addition,
18006 # creating and moving files from /tmp can sometimes cause problems.
18007 # Hook for its removal unless debugging.
18008 # Note that there is a small window in which the directory will not be cleaned:
18009 # after its creation but before its name has been assigned to `$tmp'.
18010 $debug ||
18012 tmp=
18013 trap 'exit_status=$?
18014 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18016 trap 'as_fn_exit 1' 1 2 13 15
18018 # Create a (secure) tmp directory for tmp files.
18021 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18022 test -n "$tmp" && test -d "$tmp"
18023 } ||
18025 tmp=./conf$$-$RANDOM
18026 (umask 077 && mkdir "$tmp")
18027 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
18029 # Set up the scripts for CONFIG_FILES section.
18030 # No need to generate them if there are no CONFIG_FILES.
18031 # This happens for instance with `./config.status config.h'.
18032 if test -n "$CONFIG_FILES"; then
18035 ac_cr=`echo X | tr X '\015'`
18036 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18037 # But we know of no other shell where ac_cr would be empty at this
18038 # point, so we can use a bashism as a fallback.
18039 if test "x$ac_cr" = x; then
18040 eval ac_cr=\$\'\\r\'
18042 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18043 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18044 ac_cs_awk_cr='\r'
18045 else
18046 ac_cs_awk_cr=$ac_cr
18049 echo 'BEGIN {' >"$tmp/subs1.awk" &&
18050 _ACEOF
18054 echo "cat >conf$$subs.awk <<_ACEOF" &&
18055 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18056 echo "_ACEOF"
18057 } >conf$$subs.sh ||
18058 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18059 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18060 ac_delim='%!_!# '
18061 for ac_last_try in false false false false false :; do
18062 . ./conf$$subs.sh ||
18063 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18065 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18066 if test $ac_delim_n = $ac_delim_num; then
18067 break
18068 elif $ac_last_try; then
18069 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18070 else
18071 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18073 done
18074 rm -f conf$$subs.sh
18076 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18077 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18078 _ACEOF
18079 sed -n '
18081 s/^/S["/; s/!.*/"]=/
18084 s/^[^!]*!//
18085 :repl
18086 t repl
18087 s/'"$ac_delim"'$//
18088 t delim
18091 s/\(.\{148\}\).*/\1/
18092 t more1
18093 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18096 b repl
18097 :more1
18098 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18101 s/.\{148\}//
18102 t nl
18103 :delim
18105 s/\(.\{148\}\).*/\1/
18106 t more2
18107 s/["\\]/\\&/g; s/^/"/; s/$/"/
18110 :more2
18111 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18114 s/.\{148\}//
18115 t delim
18116 ' <conf$$subs.awk | sed '
18117 /^[^""]/{
18119 s/\n//
18121 ' >>$CONFIG_STATUS || ac_write_fail=1
18122 rm -f conf$$subs.awk
18123 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18124 _ACAWK
18125 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18126 for (key in S) S_is_set[key] = 1
18127 FS = "\a"
18131 line = $ 0
18132 nfields = split(line, field, "@")
18133 substed = 0
18134 len = length(field[1])
18135 for (i = 2; i < nfields; i++) {
18136 key = field[i]
18137 keylen = length(key)
18138 if (S_is_set[key]) {
18139 value = S[key]
18140 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18141 len += length(value) + length(field[++i])
18142 substed = 1
18143 } else
18144 len += 1 + keylen
18147 print line
18150 _ACAWK
18151 _ACEOF
18152 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18153 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18154 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18155 else
18157 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18158 || as_fn_error "could not setup config files machinery" "$LINENO" 5
18159 _ACEOF
18161 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18162 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18163 # trailing colons and then remove the whole line if VPATH becomes empty
18164 # (actually we leave an empty line to preserve line numbers).
18165 if test "x$srcdir" = x.; then
18166 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18167 s/:*\$(srcdir):*/:/
18168 s/:*\${srcdir}:*/:/
18169 s/:*@srcdir@:*/:/
18170 s/^\([^=]*=[ ]*\):*/\1/
18171 s/:*$//
18172 s/^[^=]*=[ ]*$//
18176 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18177 fi # test -n "$CONFIG_FILES"
18179 # Set up the scripts for CONFIG_HEADERS section.
18180 # No need to generate them if there are no CONFIG_HEADERS.
18181 # This happens for instance with `./config.status Makefile'.
18182 if test -n "$CONFIG_HEADERS"; then
18183 cat >"$tmp/defines.awk" <<\_ACAWK ||
18184 BEGIN {
18185 _ACEOF
18187 # Transform confdefs.h into an awk script `defines.awk', embedded as
18188 # here-document in config.status, that substitutes the proper values into
18189 # config.h.in to produce config.h.
18191 # Create a delimiter string that does not exist in confdefs.h, to ease
18192 # handling of long lines.
18193 ac_delim='%!_!# '
18194 for ac_last_try in false false :; do
18195 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18196 if test -z "$ac_t"; then
18197 break
18198 elif $ac_last_try; then
18199 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
18200 else
18201 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18203 done
18205 # For the awk script, D is an array of macro values keyed by name,
18206 # likewise P contains macro parameters if any. Preserve backslash
18207 # newline sequences.
18209 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18210 sed -n '
18211 s/.\{148\}/&'"$ac_delim"'/g
18212 t rset
18213 :rset
18214 s/^[ ]*#[ ]*define[ ][ ]*/ /
18215 t def
18217 :def
18218 s/\\$//
18219 t bsnl
18220 s/["\\]/\\&/g
18221 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18222 D["\1"]=" \3"/p
18223 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18225 :bsnl
18226 s/["\\]/\\&/g
18227 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18228 D["\1"]=" \3\\\\\\n"\\/p
18229 t cont
18230 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18231 t cont
18233 :cont
18235 s/.\{148\}/&'"$ac_delim"'/g
18236 t clear
18237 :clear
18238 s/\\$//
18239 t bsnlc
18240 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18242 :bsnlc
18243 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18244 b cont
18245 ' <confdefs.h | sed '
18246 s/'"$ac_delim"'/"\\\
18247 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18249 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18250 for (key in D) D_is_set[key] = 1
18251 FS = "\a"
18253 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18254 line = \$ 0
18255 split(line, arg, " ")
18256 if (arg[1] == "#") {
18257 defundef = arg[2]
18258 mac1 = arg[3]
18259 } else {
18260 defundef = substr(arg[1], 2)
18261 mac1 = arg[2]
18263 split(mac1, mac2, "(") #)
18264 macro = mac2[1]
18265 prefix = substr(line, 1, index(line, defundef) - 1)
18266 if (D_is_set[macro]) {
18267 # Preserve the white space surrounding the "#".
18268 print prefix "define", macro P[macro] D[macro]
18269 next
18270 } else {
18271 # Replace #undef with comments. This is necessary, for example,
18272 # in the case of _POSIX_SOURCE, which is predefined and required
18273 # on some systems where configure will not decide to define it.
18274 if (defundef == "undef") {
18275 print "/*", prefix defundef, macro, "*/"
18276 next
18280 { print }
18281 _ACAWK
18282 _ACEOF
18283 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18284 as_fn_error "could not setup config headers machinery" "$LINENO" 5
18285 fi # test -n "$CONFIG_HEADERS"
18288 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18289 shift
18290 for ac_tag
18292 case $ac_tag in
18293 :[FHLC]) ac_mode=$ac_tag; continue;;
18294 esac
18295 case $ac_mode$ac_tag in
18296 :[FHL]*:*);;
18297 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
18298 :[FH]-) ac_tag=-:-;;
18299 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18300 esac
18301 ac_save_IFS=$IFS
18302 IFS=:
18303 set x $ac_tag
18304 IFS=$ac_save_IFS
18305 shift
18306 ac_file=$1
18307 shift
18309 case $ac_mode in
18310 :L) ac_source=$1;;
18311 :[FH])
18312 ac_file_inputs=
18313 for ac_f
18315 case $ac_f in
18316 -) ac_f="$tmp/stdin";;
18317 *) # Look for the file first in the build tree, then in the source tree
18318 # (if the path is not absolute). The absolute path cannot be DOS-style,
18319 # because $ac_f cannot contain `:'.
18320 test -f "$ac_f" ||
18321 case $ac_f in
18322 [\\/$]*) false;;
18323 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18324 esac ||
18325 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18326 esac
18327 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18328 as_fn_append ac_file_inputs " '$ac_f'"
18329 done
18331 # Let's still pretend it is `configure' which instantiates (i.e., don't
18332 # use $as_me), people would be surprised to read:
18333 # /* config.h. Generated by config.status. */
18334 configure_input='Generated from '`
18335 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18336 `' by configure.'
18337 if test x"$ac_file" != x-; then
18338 configure_input="$ac_file. $configure_input"
18339 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18340 $as_echo "$as_me: creating $ac_file" >&6;}
18342 # Neutralize special characters interpreted by sed in replacement strings.
18343 case $configure_input in #(
18344 *\&* | *\|* | *\\* )
18345 ac_sed_conf_input=`$as_echo "$configure_input" |
18346 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18347 *) ac_sed_conf_input=$configure_input;;
18348 esac
18350 case $ac_tag in
18351 *:-:* | *:-) cat >"$tmp/stdin" \
18352 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
18353 esac
18355 esac
18357 ac_dir=`$as_dirname -- "$ac_file" ||
18358 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18359 X"$ac_file" : 'X\(//\)[^/]' \| \
18360 X"$ac_file" : 'X\(//\)$' \| \
18361 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18362 $as_echo X"$ac_file" |
18363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18364 s//\1/
18367 /^X\(\/\/\)[^/].*/{
18368 s//\1/
18371 /^X\(\/\/\)$/{
18372 s//\1/
18375 /^X\(\/\).*/{
18376 s//\1/
18379 s/.*/./; q'`
18380 as_dir="$ac_dir"; as_fn_mkdir_p
18381 ac_builddir=.
18383 case "$ac_dir" in
18384 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18386 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18387 # A ".." for each directory in $ac_dir_suffix.
18388 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18389 case $ac_top_builddir_sub in
18390 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18391 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18392 esac ;;
18393 esac
18394 ac_abs_top_builddir=$ac_pwd
18395 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18396 # for backward compatibility:
18397 ac_top_builddir=$ac_top_build_prefix
18399 case $srcdir in
18400 .) # We are building in place.
18401 ac_srcdir=.
18402 ac_top_srcdir=$ac_top_builddir_sub
18403 ac_abs_top_srcdir=$ac_pwd ;;
18404 [\\/]* | ?:[\\/]* ) # Absolute name.
18405 ac_srcdir=$srcdir$ac_dir_suffix;
18406 ac_top_srcdir=$srcdir
18407 ac_abs_top_srcdir=$srcdir ;;
18408 *) # Relative name.
18409 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18410 ac_top_srcdir=$ac_top_build_prefix$srcdir
18411 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18412 esac
18413 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18416 case $ac_mode in
18419 # CONFIG_FILE
18422 case $INSTALL in
18423 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18424 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18425 esac
18426 ac_MKDIR_P=$MKDIR_P
18427 case $MKDIR_P in
18428 [\\/$]* | ?:[\\/]* ) ;;
18429 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18430 esac
18431 _ACEOF
18433 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18434 # If the template does not know about datarootdir, expand it.
18435 # FIXME: This hack should be removed a few years after 2.60.
18436 ac_datarootdir_hack=; ac_datarootdir_seen=
18437 ac_sed_dataroot='
18438 /datarootdir/ {
18442 /@datadir@/p
18443 /@docdir@/p
18444 /@infodir@/p
18445 /@localedir@/p
18446 /@mandir@/p'
18447 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18448 *datarootdir*) ac_datarootdir_seen=yes;;
18449 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18451 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18452 _ACEOF
18453 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18454 ac_datarootdir_hack='
18455 s&@datadir@&$datadir&g
18456 s&@docdir@&$docdir&g
18457 s&@infodir@&$infodir&g
18458 s&@localedir@&$localedir&g
18459 s&@mandir@&$mandir&g
18460 s&\\\${datarootdir}&$datarootdir&g' ;;
18461 esac
18462 _ACEOF
18464 # Neutralize VPATH when `$srcdir' = `.'.
18465 # Shell code in configure.ac might set extrasub.
18466 # FIXME: do we really want to maintain this feature?
18467 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18468 ac_sed_extra="$ac_vpsub
18469 $extrasub
18470 _ACEOF
18471 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18473 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18474 s|@configure_input@|$ac_sed_conf_input|;t t
18475 s&@top_builddir@&$ac_top_builddir_sub&;t t
18476 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18477 s&@srcdir@&$ac_srcdir&;t t
18478 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18479 s&@top_srcdir@&$ac_top_srcdir&;t t
18480 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18481 s&@builddir@&$ac_builddir&;t t
18482 s&@abs_builddir@&$ac_abs_builddir&;t t
18483 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18484 s&@INSTALL@&$ac_INSTALL&;t t
18485 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18486 $ac_datarootdir_hack
18488 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18489 || as_fn_error "could not create $ac_file" "$LINENO" 5
18491 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18492 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18493 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18495 which seems to be undefined. Please make sure it is defined." >&5
18496 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18497 which seems to be undefined. Please make sure it is defined." >&2;}
18499 rm -f "$tmp/stdin"
18500 case $ac_file in
18501 -) cat "$tmp/out" && rm -f "$tmp/out";;
18502 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18503 esac \
18504 || as_fn_error "could not create $ac_file" "$LINENO" 5
18508 # CONFIG_HEADER
18510 if test x"$ac_file" != x-; then
18512 $as_echo "/* $configure_input */" \
18513 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18514 } >"$tmp/config.h" \
18515 || as_fn_error "could not create $ac_file" "$LINENO" 5
18516 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18517 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18518 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18519 else
18520 rm -f "$ac_file"
18521 mv "$tmp/config.h" "$ac_file" \
18522 || as_fn_error "could not create $ac_file" "$LINENO" 5
18524 else
18525 $as_echo "/* $configure_input */" \
18526 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18527 || as_fn_error "could not create -" "$LINENO" 5
18529 # Compute "$ac_file"'s index in $config_headers.
18530 _am_arg="$ac_file"
18531 _am_stamp_count=1
18532 for _am_header in $config_headers :; do
18533 case $_am_header in
18534 $_am_arg | $_am_arg:* )
18535 break ;;
18537 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18538 esac
18539 done
18540 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18541 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18542 X"$_am_arg" : 'X\(//\)[^/]' \| \
18543 X"$_am_arg" : 'X\(//\)$' \| \
18544 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18545 $as_echo X"$_am_arg" |
18546 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18547 s//\1/
18550 /^X\(\/\/\)[^/].*/{
18551 s//\1/
18554 /^X\(\/\/\)$/{
18555 s//\1/
18558 /^X\(\/\).*/{
18559 s//\1/
18562 s/.*/./; q'`/stamp-h$_am_stamp_count
18565 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18566 $as_echo "$as_me: executing $ac_file commands" >&6;}
18568 esac
18571 case $ac_file$ac_mode in
18572 "default-1":C)
18573 # Only add multilib support code if we just rebuilt the top-level
18574 # Makefile.
18575 case " $CONFIG_FILES " in
18576 *" Makefile "*)
18577 ac_file=Makefile . ${multi_basedir}/config-ml.in
18579 esac ;;
18580 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18581 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18582 # are listed without --file. Let's play safe and only enable the eval
18583 # if we detect the quoting.
18584 case $CONFIG_FILES in
18585 *\'*) eval set x "$CONFIG_FILES" ;;
18586 *) set x $CONFIG_FILES ;;
18587 esac
18588 shift
18589 for mf
18591 # Strip MF so we end up with the name of the file.
18592 mf=`echo "$mf" | sed -e 's/:.*$//'`
18593 # Check whether this is an Automake generated Makefile or not.
18594 # We used to match only the files named `Makefile.in', but
18595 # some people rename them; so instead we look at the file content.
18596 # Grep'ing the first line is not enough: some people post-process
18597 # each Makefile.in and add a new line on top of each file to say so.
18598 # Grep'ing the whole file is not good either: AIX grep has a line
18599 # limit of 2048, but all sed's we know have understand at least 4000.
18600 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18601 dirpart=`$as_dirname -- "$mf" ||
18602 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18603 X"$mf" : 'X\(//\)[^/]' \| \
18604 X"$mf" : 'X\(//\)$' \| \
18605 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18606 $as_echo X"$mf" |
18607 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18608 s//\1/
18611 /^X\(\/\/\)[^/].*/{
18612 s//\1/
18615 /^X\(\/\/\)$/{
18616 s//\1/
18619 /^X\(\/\).*/{
18620 s//\1/
18623 s/.*/./; q'`
18624 else
18625 continue
18627 # Extract the definition of DEPDIR, am__include, and am__quote
18628 # from the Makefile without running `make'.
18629 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18630 test -z "$DEPDIR" && continue
18631 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18632 test -z "am__include" && continue
18633 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18634 # When using ansi2knr, U may be empty or an underscore; expand it
18635 U=`sed -n 's/^U = //p' < "$mf"`
18636 # Find all dependency output files, they are included files with
18637 # $(DEPDIR) in their names. We invoke sed twice because it is the
18638 # simplest approach to changing $(DEPDIR) to its actual value in the
18639 # expansion.
18640 for file in `sed -n "
18641 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18642 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18643 # Make sure the directory exists.
18644 test -f "$dirpart/$file" && continue
18645 fdir=`$as_dirname -- "$file" ||
18646 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18647 X"$file" : 'X\(//\)[^/]' \| \
18648 X"$file" : 'X\(//\)$' \| \
18649 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18650 $as_echo X"$file" |
18651 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18652 s//\1/
18655 /^X\(\/\/\)[^/].*/{
18656 s//\1/
18659 /^X\(\/\/\)$/{
18660 s//\1/
18663 /^X\(\/\).*/{
18664 s//\1/
18667 s/.*/./; q'`
18668 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18669 # echo "creating $dirpart/$file"
18670 echo '# dummy' > "$dirpart/$file"
18671 done
18672 done
18675 "libtool":C)
18677 # See if we are running on zsh, and set the options which allow our
18678 # commands through without removal of \ escapes.
18679 if test -n "${ZSH_VERSION+set}" ; then
18680 setopt NO_GLOB_SUBST
18683 cfgfile="${ofile}T"
18684 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18685 $RM "$cfgfile"
18687 cat <<_LT_EOF >> "$cfgfile"
18688 #! $SHELL
18690 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18691 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18692 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18693 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18695 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18696 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18697 # Written by Gordon Matzigkeit, 1996
18699 # This file is part of GNU Libtool.
18701 # GNU Libtool is free software; you can redistribute it and/or
18702 # modify it under the terms of the GNU General Public License as
18703 # published by the Free Software Foundation; either version 2 of
18704 # the License, or (at your option) any later version.
18706 # As a special exception to the GNU General Public License,
18707 # if you distribute this file as part of a program or library that
18708 # is built using GNU Libtool, you may include this file under the
18709 # same distribution terms that you use for the rest of that program.
18711 # GNU Libtool is distributed in the hope that it will be useful,
18712 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18713 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18714 # GNU General Public License for more details.
18716 # You should have received a copy of the GNU General Public License
18717 # along with GNU Libtool; see the file COPYING. If not, a copy
18718 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18719 # obtained by writing to the Free Software Foundation, Inc.,
18720 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18723 # The names of the tagged configurations supported by this script.
18724 available_tags="FC "
18726 # ### BEGIN LIBTOOL CONFIG
18728 # Which release of libtool.m4 was used?
18729 macro_version=$macro_version
18730 macro_revision=$macro_revision
18732 # Whether or not to build shared libraries.
18733 build_libtool_libs=$enable_shared
18735 # Whether or not to build static libraries.
18736 build_old_libs=$enable_static
18738 # What type of objects to build.
18739 pic_mode=$pic_mode
18741 # Whether or not to optimize for fast installation.
18742 fast_install=$enable_fast_install
18744 # Shell to use when invoking shell scripts.
18745 SHELL=$lt_SHELL
18747 # An echo program that protects backslashes.
18748 ECHO=$lt_ECHO
18750 # The host system.
18751 host_alias=$host_alias
18752 host=$host
18753 host_os=$host_os
18755 # The build system.
18756 build_alias=$build_alias
18757 build=$build
18758 build_os=$build_os
18760 # A sed program that does not truncate output.
18761 SED=$lt_SED
18763 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18764 Xsed="\$SED -e 1s/^X//"
18766 # A grep program that handles long lines.
18767 GREP=$lt_GREP
18769 # An ERE matcher.
18770 EGREP=$lt_EGREP
18772 # A literal string matcher.
18773 FGREP=$lt_FGREP
18775 # A BSD- or MS-compatible name lister.
18776 NM=$lt_NM
18778 # Whether we need soft or hard links.
18779 LN_S=$lt_LN_S
18781 # What is the maximum length of a command?
18782 max_cmd_len=$max_cmd_len
18784 # Object file suffix (normally "o").
18785 objext=$ac_objext
18787 # Executable file suffix (normally "").
18788 exeext=$exeext
18790 # whether the shell understands "unset".
18791 lt_unset=$lt_unset
18793 # turn spaces into newlines.
18794 SP2NL=$lt_lt_SP2NL
18796 # turn newlines into spaces.
18797 NL2SP=$lt_lt_NL2SP
18799 # An object symbol dumper.
18800 OBJDUMP=$lt_OBJDUMP
18802 # Method to check whether dependent libraries are shared objects.
18803 deplibs_check_method=$lt_deplibs_check_method
18805 # Command to use when deplibs_check_method == "file_magic".
18806 file_magic_cmd=$lt_file_magic_cmd
18808 # The archiver.
18809 AR=$lt_AR
18810 AR_FLAGS=$lt_AR_FLAGS
18812 # A symbol stripping program.
18813 STRIP=$lt_STRIP
18815 # Commands used to install an old-style archive.
18816 RANLIB=$lt_RANLIB
18817 old_postinstall_cmds=$lt_old_postinstall_cmds
18818 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18820 # Whether to use a lock for old archive extraction.
18821 lock_old_archive_extraction=$lock_old_archive_extraction
18823 # A C compiler.
18824 LTCC=$lt_CC
18826 # LTCC compiler flags.
18827 LTCFLAGS=$lt_CFLAGS
18829 # Take the output of nm and produce a listing of raw symbols and C names.
18830 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18832 # Transform the output of nm in a proper C declaration.
18833 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18835 # Transform the output of nm in a C name address pair.
18836 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18838 # Transform the output of nm in a C name address pair when lib prefix is needed.
18839 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18841 # The name of the directory that contains temporary libtool files.
18842 objdir=$objdir
18844 # Used to examine libraries when file_magic_cmd begins with "file".
18845 MAGIC_CMD=$MAGIC_CMD
18847 # Must we lock files when doing compilation?
18848 need_locks=$lt_need_locks
18850 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18851 DSYMUTIL=$lt_DSYMUTIL
18853 # Tool to change global to local symbols on Mac OS X.
18854 NMEDIT=$lt_NMEDIT
18856 # Tool to manipulate fat objects and archives on Mac OS X.
18857 LIPO=$lt_LIPO
18859 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18860 OTOOL=$lt_OTOOL
18862 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18863 OTOOL64=$lt_OTOOL64
18865 # Old archive suffix (normally "a").
18866 libext=$libext
18868 # Shared library suffix (normally ".so").
18869 shrext_cmds=$lt_shrext_cmds
18871 # The commands to extract the exported symbol list from a shared archive.
18872 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18874 # Variables whose values should be saved in libtool wrapper scripts and
18875 # restored at link time.
18876 variables_saved_for_relink=$lt_variables_saved_for_relink
18878 # Do we need the "lib" prefix for modules?
18879 need_lib_prefix=$need_lib_prefix
18881 # Do we need a version for libraries?
18882 need_version=$need_version
18884 # Library versioning type.
18885 version_type=$version_type
18887 # Shared library runtime path variable.
18888 runpath_var=$runpath_var
18890 # Shared library path variable.
18891 shlibpath_var=$shlibpath_var
18893 # Is shlibpath searched before the hard-coded library search path?
18894 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18896 # Format of library name prefix.
18897 libname_spec=$lt_libname_spec
18899 # List of archive names. First name is the real one, the rest are links.
18900 # The last name is the one that the linker finds with -lNAME
18901 library_names_spec=$lt_library_names_spec
18903 # The coded name of the library, if different from the real name.
18904 soname_spec=$lt_soname_spec
18906 # Permission mode override for installation of shared libraries.
18907 install_override_mode=$lt_install_override_mode
18909 # Command to use after installation of a shared archive.
18910 postinstall_cmds=$lt_postinstall_cmds
18912 # Command to use after uninstallation of a shared archive.
18913 postuninstall_cmds=$lt_postuninstall_cmds
18915 # Commands used to finish a libtool library installation in a directory.
18916 finish_cmds=$lt_finish_cmds
18918 # As "finish_cmds", except a single script fragment to be evaled but
18919 # not shown.
18920 finish_eval=$lt_finish_eval
18922 # Whether we should hardcode library paths into libraries.
18923 hardcode_into_libs=$hardcode_into_libs
18925 # Compile-time system search path for libraries.
18926 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18928 # Run-time system search path for libraries.
18929 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18931 # Whether dlopen is supported.
18932 dlopen_support=$enable_dlopen
18934 # Whether dlopen of programs is supported.
18935 dlopen_self=$enable_dlopen_self
18937 # Whether dlopen of statically linked programs is supported.
18938 dlopen_self_static=$enable_dlopen_self_static
18940 # Commands to strip libraries.
18941 old_striplib=$lt_old_striplib
18942 striplib=$lt_striplib
18945 # The linker used to build libraries.
18946 LD=$lt_LD
18948 # How to create reloadable object files.
18949 reload_flag=$lt_reload_flag
18950 reload_cmds=$lt_reload_cmds
18952 # Commands used to build an old-style archive.
18953 old_archive_cmds=$lt_old_archive_cmds
18955 # A language specific compiler.
18956 CC=$lt_compiler
18958 # Is the compiler the GNU compiler?
18959 with_gcc=$GCC
18961 # Compiler flag to turn off builtin functions.
18962 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18964 # How to pass a linker flag through the compiler.
18965 wl=$lt_lt_prog_compiler_wl
18967 # Additional compiler flags for building library objects.
18968 pic_flag=$lt_lt_prog_compiler_pic
18970 # Compiler flag to prevent dynamic linking.
18971 link_static_flag=$lt_lt_prog_compiler_static
18973 # Does compiler simultaneously support -c and -o options?
18974 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18976 # Whether or not to add -lc for building shared libraries.
18977 build_libtool_need_lc=$archive_cmds_need_lc
18979 # Whether or not to disallow shared libs when runtime libs are static.
18980 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18982 # Compiler flag to allow reflexive dlopens.
18983 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18985 # Compiler flag to generate shared objects directly from archives.
18986 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18988 # Whether the compiler copes with passing no objects directly.
18989 compiler_needs_object=$lt_compiler_needs_object
18991 # Create an old-style archive from a shared archive.
18992 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18994 # Create a temporary old-style archive to link instead of a shared archive.
18995 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18997 # Commands used to build a shared archive.
18998 archive_cmds=$lt_archive_cmds
18999 archive_expsym_cmds=$lt_archive_expsym_cmds
19001 # Commands used to build a loadable module if different from building
19002 # a shared archive.
19003 module_cmds=$lt_module_cmds
19004 module_expsym_cmds=$lt_module_expsym_cmds
19006 # Whether we are building with GNU ld or not.
19007 with_gnu_ld=$lt_with_gnu_ld
19009 # Flag that allows shared libraries with undefined symbols to be built.
19010 allow_undefined_flag=$lt_allow_undefined_flag
19012 # Flag that enforces no undefined symbols.
19013 no_undefined_flag=$lt_no_undefined_flag
19015 # Flag to hardcode \$libdir into a binary during linking.
19016 # This must work even if \$libdir does not exist
19017 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19019 # If ld is used when linking, flag to hardcode \$libdir into a binary
19020 # during linking. This must work even if \$libdir does not exist.
19021 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19023 # Whether we need a single "-rpath" flag with a separated argument.
19024 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19026 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19027 # DIR into the resulting binary.
19028 hardcode_direct=$hardcode_direct
19030 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19031 # DIR into the resulting binary and the resulting library dependency is
19032 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19033 # library is relocated.
19034 hardcode_direct_absolute=$hardcode_direct_absolute
19036 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19037 # into the resulting binary.
19038 hardcode_minus_L=$hardcode_minus_L
19040 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19041 # into the resulting binary.
19042 hardcode_shlibpath_var=$hardcode_shlibpath_var
19044 # Set to "yes" if building a shared library automatically hardcodes DIR
19045 # into the library and all subsequent libraries and executables linked
19046 # against it.
19047 hardcode_automatic=$hardcode_automatic
19049 # Set to yes if linker adds runtime paths of dependent libraries
19050 # to runtime path list.
19051 inherit_rpath=$inherit_rpath
19053 # Whether libtool must link a program against all its dependency libraries.
19054 link_all_deplibs=$link_all_deplibs
19056 # Fix the shell variable \$srcfile for the compiler.
19057 fix_srcfile_path=$lt_fix_srcfile_path
19059 # Set to "yes" if exported symbols are required.
19060 always_export_symbols=$always_export_symbols
19062 # The commands to list exported symbols.
19063 export_symbols_cmds=$lt_export_symbols_cmds
19065 # Symbols that should not be listed in the preloaded symbols.
19066 exclude_expsyms=$lt_exclude_expsyms
19068 # Symbols that must always be exported.
19069 include_expsyms=$lt_include_expsyms
19071 # Commands necessary for linking programs (against libraries) with templates.
19072 prelink_cmds=$lt_prelink_cmds
19074 # Specify filename containing input files.
19075 file_list_spec=$lt_file_list_spec
19077 # How to hardcode a shared library path into an executable.
19078 hardcode_action=$hardcode_action
19080 # The directories searched by this compiler when creating a shared library.
19081 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19083 # Dependencies to place before and after the objects being linked to
19084 # create a shared library.
19085 predep_objects=$lt_predep_objects
19086 postdep_objects=$lt_postdep_objects
19087 predeps=$lt_predeps
19088 postdeps=$lt_postdeps
19090 # The library search path used internally by the compiler when linking
19091 # a shared library.
19092 compiler_lib_search_path=$lt_compiler_lib_search_path
19094 # ### END LIBTOOL CONFIG
19096 _LT_EOF
19098 case $host_os in
19099 aix3*)
19100 cat <<\_LT_EOF >> "$cfgfile"
19101 # AIX sometimes has problems with the GCC collect2 program. For some
19102 # reason, if we set the COLLECT_NAMES environment variable, the problems
19103 # vanish in a puff of smoke.
19104 if test "X${COLLECT_NAMES+set}" != Xset; then
19105 COLLECT_NAMES=
19106 export COLLECT_NAMES
19108 _LT_EOF
19110 esac
19113 ltmain="$ac_aux_dir/ltmain.sh"
19116 # We use sed instead of cat because bash on DJGPP gets confused if
19117 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19118 # text mode, it properly converts lines to CR/LF. This bash problem
19119 # is reportedly fixed, but why not run on old versions too?
19120 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19121 || (rm -f "$cfgfile"; exit 1)
19123 case $xsi_shell in
19124 yes)
19125 cat << \_LT_EOF >> "$cfgfile"
19127 # func_dirname file append nondir_replacement
19128 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19129 # otherwise set result to NONDIR_REPLACEMENT.
19130 func_dirname ()
19132 case ${1} in
19133 */*) func_dirname_result="${1%/*}${2}" ;;
19134 * ) func_dirname_result="${3}" ;;
19135 esac
19138 # func_basename file
19139 func_basename ()
19141 func_basename_result="${1##*/}"
19144 # func_dirname_and_basename file append nondir_replacement
19145 # perform func_basename and func_dirname in a single function
19146 # call:
19147 # dirname: Compute the dirname of FILE. If nonempty,
19148 # add APPEND to the result, otherwise set result
19149 # to NONDIR_REPLACEMENT.
19150 # value returned in "$func_dirname_result"
19151 # basename: Compute filename of FILE.
19152 # value retuned in "$func_basename_result"
19153 # Implementation must be kept synchronized with func_dirname
19154 # and func_basename. For efficiency, we do not delegate to
19155 # those functions but instead duplicate the functionality here.
19156 func_dirname_and_basename ()
19158 case ${1} in
19159 */*) func_dirname_result="${1%/*}${2}" ;;
19160 * ) func_dirname_result="${3}" ;;
19161 esac
19162 func_basename_result="${1##*/}"
19165 # func_stripname prefix suffix name
19166 # strip PREFIX and SUFFIX off of NAME.
19167 # PREFIX and SUFFIX must not contain globbing or regex special
19168 # characters, hashes, percent signs, but SUFFIX may contain a leading
19169 # dot (in which case that matches only a dot).
19170 func_stripname ()
19172 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19173 # positional parameters, so assign one to ordinary parameter first.
19174 func_stripname_result=${3}
19175 func_stripname_result=${func_stripname_result#"${1}"}
19176 func_stripname_result=${func_stripname_result%"${2}"}
19179 # func_opt_split
19180 func_opt_split ()
19182 func_opt_split_opt=${1%%=*}
19183 func_opt_split_arg=${1#*=}
19186 # func_lo2o object
19187 func_lo2o ()
19189 case ${1} in
19190 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19191 *) func_lo2o_result=${1} ;;
19192 esac
19195 # func_xform libobj-or-source
19196 func_xform ()
19198 func_xform_result=${1%.*}.lo
19201 # func_arith arithmetic-term...
19202 func_arith ()
19204 func_arith_result=$(( $* ))
19207 # func_len string
19208 # STRING may not start with a hyphen.
19209 func_len ()
19211 func_len_result=${#1}
19214 _LT_EOF
19216 *) # Bourne compatible functions.
19217 cat << \_LT_EOF >> "$cfgfile"
19219 # func_dirname file append nondir_replacement
19220 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19221 # otherwise set result to NONDIR_REPLACEMENT.
19222 func_dirname ()
19224 # Extract subdirectory from the argument.
19225 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19226 if test "X$func_dirname_result" = "X${1}"; then
19227 func_dirname_result="${3}"
19228 else
19229 func_dirname_result="$func_dirname_result${2}"
19233 # func_basename file
19234 func_basename ()
19236 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19240 # func_stripname prefix suffix name
19241 # strip PREFIX and SUFFIX off of NAME.
19242 # PREFIX and SUFFIX must not contain globbing or regex special
19243 # characters, hashes, percent signs, but SUFFIX may contain a leading
19244 # dot (in which case that matches only a dot).
19245 # func_strip_suffix prefix name
19246 func_stripname ()
19248 case ${2} in
19249 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19250 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19251 esac
19254 # sed scripts:
19255 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19256 my_sed_long_arg='1s/^-[^=]*=//'
19258 # func_opt_split
19259 func_opt_split ()
19261 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19262 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19265 # func_lo2o object
19266 func_lo2o ()
19268 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19271 # func_xform libobj-or-source
19272 func_xform ()
19274 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19277 # func_arith arithmetic-term...
19278 func_arith ()
19280 func_arith_result=`expr "$@"`
19283 # func_len string
19284 # STRING may not start with a hyphen.
19285 func_len ()
19287 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19290 _LT_EOF
19291 esac
19293 case $lt_shell_append in
19294 yes)
19295 cat << \_LT_EOF >> "$cfgfile"
19297 # func_append var value
19298 # Append VALUE to the end of shell variable VAR.
19299 func_append ()
19301 eval "$1+=\$2"
19303 _LT_EOF
19306 cat << \_LT_EOF >> "$cfgfile"
19308 # func_append var value
19309 # Append VALUE to the end of shell variable VAR.
19310 func_append ()
19312 eval "$1=\$$1\$2"
19315 _LT_EOF
19317 esac
19320 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19321 || (rm -f "$cfgfile"; exit 1)
19323 mv -f "$cfgfile" "$ofile" ||
19324 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19325 chmod +x "$ofile"
19328 cat <<_LT_EOF >> "$ofile"
19330 # ### BEGIN LIBTOOL TAG CONFIG: FC
19332 # The linker used to build libraries.
19333 LD=$lt_LD_FC
19335 # How to create reloadable object files.
19336 reload_flag=$lt_reload_flag_FC
19337 reload_cmds=$lt_reload_cmds_FC
19339 # Commands used to build an old-style archive.
19340 old_archive_cmds=$lt_old_archive_cmds_FC
19342 # A language specific compiler.
19343 CC=$lt_compiler_FC
19345 # Is the compiler the GNU compiler?
19346 with_gcc=$GCC_FC
19348 # Compiler flag to turn off builtin functions.
19349 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
19351 # How to pass a linker flag through the compiler.
19352 wl=$lt_lt_prog_compiler_wl_FC
19354 # Additional compiler flags for building library objects.
19355 pic_flag=$lt_lt_prog_compiler_pic_FC
19357 # Compiler flag to prevent dynamic linking.
19358 link_static_flag=$lt_lt_prog_compiler_static_FC
19360 # Does compiler simultaneously support -c and -o options?
19361 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
19363 # Whether or not to add -lc for building shared libraries.
19364 build_libtool_need_lc=$archive_cmds_need_lc_FC
19366 # Whether or not to disallow shared libs when runtime libs are static.
19367 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
19369 # Compiler flag to allow reflexive dlopens.
19370 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
19372 # Compiler flag to generate shared objects directly from archives.
19373 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
19375 # Whether the compiler copes with passing no objects directly.
19376 compiler_needs_object=$lt_compiler_needs_object_FC
19378 # Create an old-style archive from a shared archive.
19379 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
19381 # Create a temporary old-style archive to link instead of a shared archive.
19382 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
19384 # Commands used to build a shared archive.
19385 archive_cmds=$lt_archive_cmds_FC
19386 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
19388 # Commands used to build a loadable module if different from building
19389 # a shared archive.
19390 module_cmds=$lt_module_cmds_FC
19391 module_expsym_cmds=$lt_module_expsym_cmds_FC
19393 # Whether we are building with GNU ld or not.
19394 with_gnu_ld=$lt_with_gnu_ld_FC
19396 # Flag that allows shared libraries with undefined symbols to be built.
19397 allow_undefined_flag=$lt_allow_undefined_flag_FC
19399 # Flag that enforces no undefined symbols.
19400 no_undefined_flag=$lt_no_undefined_flag_FC
19402 # Flag to hardcode \$libdir into a binary during linking.
19403 # This must work even if \$libdir does not exist
19404 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
19406 # If ld is used when linking, flag to hardcode \$libdir into a binary
19407 # during linking. This must work even if \$libdir does not exist.
19408 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
19410 # Whether we need a single "-rpath" flag with a separated argument.
19411 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
19413 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19414 # DIR into the resulting binary.
19415 hardcode_direct=$hardcode_direct_FC
19417 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19418 # DIR into the resulting binary and the resulting library dependency is
19419 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19420 # library is relocated.
19421 hardcode_direct_absolute=$hardcode_direct_absolute_FC
19423 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19424 # into the resulting binary.
19425 hardcode_minus_L=$hardcode_minus_L_FC
19427 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19428 # into the resulting binary.
19429 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
19431 # Set to "yes" if building a shared library automatically hardcodes DIR
19432 # into the library and all subsequent libraries and executables linked
19433 # against it.
19434 hardcode_automatic=$hardcode_automatic_FC
19436 # Set to yes if linker adds runtime paths of dependent libraries
19437 # to runtime path list.
19438 inherit_rpath=$inherit_rpath_FC
19440 # Whether libtool must link a program against all its dependency libraries.
19441 link_all_deplibs=$link_all_deplibs_FC
19443 # Fix the shell variable \$srcfile for the compiler.
19444 fix_srcfile_path=$lt_fix_srcfile_path_FC
19446 # Set to "yes" if exported symbols are required.
19447 always_export_symbols=$always_export_symbols_FC
19449 # The commands to list exported symbols.
19450 export_symbols_cmds=$lt_export_symbols_cmds_FC
19452 # Symbols that should not be listed in the preloaded symbols.
19453 exclude_expsyms=$lt_exclude_expsyms_FC
19455 # Symbols that must always be exported.
19456 include_expsyms=$lt_include_expsyms_FC
19458 # Commands necessary for linking programs (against libraries) with templates.
19459 prelink_cmds=$lt_prelink_cmds_FC
19461 # Specify filename containing input files.
19462 file_list_spec=$lt_file_list_spec_FC
19464 # How to hardcode a shared library path into an executable.
19465 hardcode_action=$hardcode_action_FC
19467 # The directories searched by this compiler when creating a shared library.
19468 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
19470 # Dependencies to place before and after the objects being linked to
19471 # create a shared library.
19472 predep_objects=$lt_predep_objects_FC
19473 postdep_objects=$lt_postdep_objects_FC
19474 predeps=$lt_predeps_FC
19475 postdeps=$lt_postdeps_FC
19477 # The library search path used internally by the compiler when linking
19478 # a shared library.
19479 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
19481 # ### END LIBTOOL TAG CONFIG: FC
19482 _LT_EOF
19485 "gstdint.h":C)
19486 if test "$GCC" = yes; then
19487 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
19488 else
19489 echo "/* generated for $CC */" > tmp-stdint.h
19492 sed 's/^ *//' >> tmp-stdint.h <<EOF
19494 #ifndef GCC_GENERATED_STDINT_H
19495 #define GCC_GENERATED_STDINT_H 1
19497 #include <sys/types.h>
19500 if test "$acx_cv_header_stdint" != stdint.h; then
19501 echo "#include <stddef.h>" >> tmp-stdint.h
19503 if test "$acx_cv_header_stdint" != stddef.h; then
19504 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
19507 sed 's/^ *//' >> tmp-stdint.h <<EOF
19508 /* glibc uses these symbols as guards to prevent redefinitions. */
19509 #ifdef __int8_t_defined
19510 #define _INT8_T
19511 #define _INT16_T
19512 #define _INT32_T
19513 #endif
19514 #ifdef __uint32_t_defined
19515 #define _UINT32_T
19516 #endif
19520 # ----------------- done header, emit basic int types -------------
19521 if test "$acx_cv_header_stdint" = stddef.h; then
19522 sed 's/^ *//' >> tmp-stdint.h <<EOF
19524 #ifndef _UINT8_T
19525 #define _UINT8_T
19526 #ifndef __uint8_t_defined
19527 #define __uint8_t_defined
19528 #ifndef uint8_t
19529 typedef unsigned $acx_cv_type_int8_t uint8_t;
19530 #endif
19531 #endif
19532 #endif
19534 #ifndef _UINT16_T
19535 #define _UINT16_T
19536 #ifndef __uint16_t_defined
19537 #define __uint16_t_defined
19538 #ifndef uint16_t
19539 typedef unsigned $acx_cv_type_int16_t uint16_t;
19540 #endif
19541 #endif
19542 #endif
19544 #ifndef _UINT32_T
19545 #define _UINT32_T
19546 #ifndef __uint32_t_defined
19547 #define __uint32_t_defined
19548 #ifndef uint32_t
19549 typedef unsigned $acx_cv_type_int32_t uint32_t;
19550 #endif
19551 #endif
19552 #endif
19554 #ifndef _INT8_T
19555 #define _INT8_T
19556 #ifndef __int8_t_defined
19557 #define __int8_t_defined
19558 #ifndef int8_t
19559 typedef $acx_cv_type_int8_t int8_t;
19560 #endif
19561 #endif
19562 #endif
19564 #ifndef _INT16_T
19565 #define _INT16_T
19566 #ifndef __int16_t_defined
19567 #define __int16_t_defined
19568 #ifndef int16_t
19569 typedef $acx_cv_type_int16_t int16_t;
19570 #endif
19571 #endif
19572 #endif
19574 #ifndef _INT32_T
19575 #define _INT32_T
19576 #ifndef __int32_t_defined
19577 #define __int32_t_defined
19578 #ifndef int32_t
19579 typedef $acx_cv_type_int32_t int32_t;
19580 #endif
19581 #endif
19582 #endif
19584 elif test "$ac_cv_type_u_int32_t" = yes; then
19585 sed 's/^ *//' >> tmp-stdint.h <<EOF
19587 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
19588 #ifndef _INT8_T
19589 #define _INT8_T
19590 #endif
19591 #ifndef _INT16_T
19592 #define _INT16_T
19593 #endif
19594 #ifndef _INT32_T
19595 #define _INT32_T
19596 #endif
19598 #ifndef _UINT8_T
19599 #define _UINT8_T
19600 #ifndef __uint8_t_defined
19601 #define __uint8_t_defined
19602 #ifndef uint8_t
19603 typedef u_int8_t uint8_t;
19604 #endif
19605 #endif
19606 #endif
19608 #ifndef _UINT16_T
19609 #define _UINT16_T
19610 #ifndef __uint16_t_defined
19611 #define __uint16_t_defined
19612 #ifndef uint16_t
19613 typedef u_int16_t uint16_t;
19614 #endif
19615 #endif
19616 #endif
19618 #ifndef _UINT32_T
19619 #define _UINT32_T
19620 #ifndef __uint32_t_defined
19621 #define __uint32_t_defined
19622 #ifndef uint32_t
19623 typedef u_int32_t uint32_t;
19624 #endif
19625 #endif
19626 #endif
19628 else
19629 sed 's/^ *//' >> tmp-stdint.h <<EOF
19631 /* Some systems have guard macros to prevent redefinitions, define them. */
19632 #ifndef _INT8_T
19633 #define _INT8_T
19634 #endif
19635 #ifndef _INT16_T
19636 #define _INT16_T
19637 #endif
19638 #ifndef _INT32_T
19639 #define _INT32_T
19640 #endif
19641 #ifndef _UINT8_T
19642 #define _UINT8_T
19643 #endif
19644 #ifndef _UINT16_T
19645 #define _UINT16_T
19646 #endif
19647 #ifndef _UINT32_T
19648 #define _UINT32_T
19649 #endif
19653 # ------------- done basic int types, emit int64_t types ------------
19654 if test "$ac_cv_type_uint64_t" = yes; then
19655 sed 's/^ *//' >> tmp-stdint.h <<EOF
19657 /* system headers have good uint64_t and int64_t */
19658 #ifndef _INT64_T
19659 #define _INT64_T
19660 #endif
19661 #ifndef _UINT64_T
19662 #define _UINT64_T
19663 #endif
19665 elif test "$ac_cv_type_u_int64_t" = yes; then
19666 sed 's/^ *//' >> tmp-stdint.h <<EOF
19668 /* system headers have an u_int64_t (and int64_t) */
19669 #ifndef _INT64_T
19670 #define _INT64_T
19671 #endif
19672 #ifndef _UINT64_T
19673 #define _UINT64_T
19674 #ifndef __uint64_t_defined
19675 #define __uint64_t_defined
19676 #ifndef uint64_t
19677 typedef u_int64_t uint64_t;
19678 #endif
19679 #endif
19680 #endif
19682 elif test -n "$acx_cv_type_int64_t"; then
19683 sed 's/^ *//' >> tmp-stdint.h <<EOF
19685 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
19686 #ifndef _INT64_T
19687 #define _INT64_T
19688 #ifndef int64_t
19689 typedef $acx_cv_type_int64_t int64_t;
19690 #endif
19691 #endif
19692 #ifndef _UINT64_T
19693 #define _UINT64_T
19694 #ifndef __uint64_t_defined
19695 #define __uint64_t_defined
19696 #ifndef uint64_t
19697 typedef unsigned $acx_cv_type_int64_t uint64_t;
19698 #endif
19699 #endif
19700 #endif
19702 else
19703 sed 's/^ *//' >> tmp-stdint.h <<EOF
19705 /* some common heuristics for int64_t, using compiler-specific tests */
19706 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
19707 #ifndef _INT64_T
19708 #define _INT64_T
19709 #ifndef __int64_t_defined
19710 #ifndef int64_t
19711 typedef long long int64_t;
19712 #endif
19713 #endif
19714 #endif
19715 #ifndef _UINT64_T
19716 #define _UINT64_T
19717 #ifndef uint64_t
19718 typedef unsigned long long uint64_t;
19719 #endif
19720 #endif
19722 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
19723 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
19724 does not implement __extension__. But that compiler doesn't define
19725 __GNUC_MINOR__. */
19726 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
19727 # define __extension__
19728 # endif
19730 # ifndef _INT64_T
19731 # define _INT64_T
19732 # ifndef int64_t
19733 __extension__ typedef long long int64_t;
19734 # endif
19735 # endif
19736 # ifndef _UINT64_T
19737 # define _UINT64_T
19738 # ifndef uint64_t
19739 __extension__ typedef unsigned long long uint64_t;
19740 # endif
19741 # endif
19743 #elif !defined __STRICT_ANSI__
19744 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
19746 # ifndef _INT64_T
19747 # define _INT64_T
19748 # ifndef int64_t
19749 typedef __int64 int64_t;
19750 # endif
19751 # endif
19752 # ifndef _UINT64_T
19753 # define _UINT64_T
19754 # ifndef uint64_t
19755 typedef unsigned __int64 uint64_t;
19756 # endif
19757 # endif
19758 # endif /* compiler */
19760 #endif /* ANSI version */
19764 # ------------- done int64_t types, emit intptr types ------------
19765 if test "$ac_cv_type_uintptr_t" != yes; then
19766 sed 's/^ *//' >> tmp-stdint.h <<EOF
19768 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
19769 #ifndef __uintptr_t_defined
19770 #ifndef uintptr_t
19771 typedef u$acx_cv_type_intptr_t uintptr_t;
19772 #endif
19773 #endif
19774 #ifndef __intptr_t_defined
19775 #ifndef intptr_t
19776 typedef $acx_cv_type_intptr_t intptr_t;
19777 #endif
19778 #endif
19782 # ------------- done intptr types, emit int_least types ------------
19783 if test "$ac_cv_type_int_least32_t" != yes; then
19784 sed 's/^ *//' >> tmp-stdint.h <<EOF
19786 /* Define int_least types */
19787 typedef int8_t int_least8_t;
19788 typedef int16_t int_least16_t;
19789 typedef int32_t int_least32_t;
19790 #ifdef _INT64_T
19791 typedef int64_t int_least64_t;
19792 #endif
19794 typedef uint8_t uint_least8_t;
19795 typedef uint16_t uint_least16_t;
19796 typedef uint32_t uint_least32_t;
19797 #ifdef _UINT64_T
19798 typedef uint64_t uint_least64_t;
19799 #endif
19803 # ------------- done intptr types, emit int_fast types ------------
19804 if test "$ac_cv_type_int_fast32_t" != yes; then
19805 sed 's/^ *//' >> tmp-stdint.h <<EOF
19807 /* Define int_fast types. short is often slow */
19808 typedef int8_t int_fast8_t;
19809 typedef int int_fast16_t;
19810 typedef int32_t int_fast32_t;
19811 #ifdef _INT64_T
19812 typedef int64_t int_fast64_t;
19813 #endif
19815 typedef uint8_t uint_fast8_t;
19816 typedef unsigned int uint_fast16_t;
19817 typedef uint32_t uint_fast32_t;
19818 #ifdef _UINT64_T
19819 typedef uint64_t uint_fast64_t;
19820 #endif
19824 if test "$ac_cv_type_uintmax_t" != yes; then
19825 sed 's/^ *//' >> tmp-stdint.h <<EOF
19827 /* Define intmax based on what we found */
19828 #ifndef intmax_t
19829 #ifdef _INT64_T
19830 typedef int64_t intmax_t;
19831 #else
19832 typedef long intmax_t;
19833 #endif
19834 #endif
19835 #ifndef uintmax_t
19836 #ifdef _UINT64_T
19837 typedef uint64_t uintmax_t;
19838 #else
19839 typedef unsigned long uintmax_t;
19840 #endif
19841 #endif
19845 sed 's/^ *//' >> tmp-stdint.h <<EOF
19847 #endif /* GCC_GENERATED_STDINT_H */
19850 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
19851 rm -f tmp-stdint.h
19852 else
19853 mv -f tmp-stdint.h gstdint.h
19858 esac
19859 done # for ac_tag
19862 as_fn_exit 0
19863 _ACEOF
19864 ac_clean_files=$ac_clean_files_save
19866 test $ac_write_fail = 0 ||
19867 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19870 # configure is writing to config.log, and then calls config.status.
19871 # config.status does its own redirection, appending to config.log.
19872 # Unfortunately, on DOS this fails, as config.log is still kept open
19873 # by configure, so config.status won't be able to write to it; its
19874 # output is simply discarded. So we exec the FD to /dev/null,
19875 # effectively closing config.log, so it can be properly (re)opened and
19876 # appended to by config.status. When coming back to configure, we
19877 # need to make the FD available again.
19878 if test "$no_create" != yes; then
19879 ac_cs_success=:
19880 ac_config_status_args=
19881 test "$silent" = yes &&
19882 ac_config_status_args="$ac_config_status_args --quiet"
19883 exec 5>/dev/null
19884 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19885 exec 5>>config.log
19886 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19887 # would make configure fail if this is the last instruction.
19888 $ac_cs_success || as_fn_exit $?
19890 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19892 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}