[42/46] Add vec_info::replace_stmt
[official-gcc.git] / libgomp / configure
blobced7606b35575d7ec0be8c48fe6baf661a1b8d8a
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for GNU Offloading and Multi Processing Runtime Library 1.0.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
173 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
174 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
175 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 PATH=/empty FPATH=/empty; export PATH FPATH
178 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
179 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
180 test \$(( 1 + 1 )) = 2 || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME='GNU Offloading and Multi Processing Runtime Library'
558 PACKAGE_TARNAME='libgomp'
559 PACKAGE_VERSION='1.0'
560 PACKAGE_STRING='GNU Offloading and Multi Processing Runtime Library 1.0'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL='http://www.gnu.org/software/libgomp/'
564 # Factoring default headers for most tests.
565 ac_includes_default="\
566 #include <stdio.h>
567 #ifdef HAVE_SYS_TYPES_H
568 # include <sys/types.h>
569 #endif
570 #ifdef HAVE_SYS_STAT_H
571 # include <sys/stat.h>
572 #endif
573 #ifdef STDC_HEADERS
574 # include <stdlib.h>
575 # include <stddef.h>
576 #else
577 # ifdef HAVE_STDLIB_H
578 # include <stdlib.h>
579 # endif
580 #endif
581 #ifdef HAVE_STRING_H
582 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
583 # include <memory.h>
584 # endif
585 # include <string.h>
586 #endif
587 #ifdef HAVE_STRINGS_H
588 # include <strings.h>
589 #endif
590 #ifdef HAVE_INTTYPES_H
591 # include <inttypes.h>
592 #endif
593 #ifdef HAVE_STDINT_H
594 # include <stdint.h>
595 #endif
596 #ifdef HAVE_UNISTD_H
597 # include <unistd.h>
598 #endif"
600 ac_header_list=
601 ac_func_list=
602 ac_subst_vars='am__EXEEXT_FALSE
603 am__EXEEXT_TRUE
604 LTLIBOBJS
605 LIBOBJS
606 get_gcc_base_ver
607 OMP_NEST_LOCK_25_KIND
608 OMP_LOCK_25_KIND
609 OMP_NEST_LOCK_25_ALIGN
610 OMP_NEST_LOCK_25_SIZE
611 OMP_LOCK_25_ALIGN
612 OMP_LOCK_25_SIZE
613 OMP_NEST_LOCK_KIND
614 OMP_LOCK_KIND
615 OMP_NEST_LOCK_ALIGN
616 OMP_NEST_LOCK_SIZE
617 OMP_LOCK_ALIGN
618 OMP_LOCK_SIZE
619 USE_FORTRAN_FALSE
620 USE_FORTRAN_TRUE
621 link_gomp
622 XLDFLAGS
623 XCFLAGS
624 config_path
625 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
626 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
627 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
628 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
629 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
630 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
631 OPT_LDFLAGS
632 SECTION_LDFLAGS
633 PLUGIN_HSA_FALSE
634 PLUGIN_HSA_TRUE
635 PLUGIN_NVPTX_FALSE
636 PLUGIN_NVPTX_TRUE
637 offload_additional_lib_paths
638 offload_additional_options
639 PLUGIN_HSA_LIBS
640 PLUGIN_HSA_LDFLAGS
641 PLUGIN_HSA_CPPFLAGS
642 PLUGIN_HSA
643 HSA_RUNTIME_LIB
644 HSA_RUNTIME_INCLUDE
645 PLUGIN_NVPTX_LIBS
646 PLUGIN_NVPTX_LDFLAGS
647 PLUGIN_NVPTX_CPPFLAGS
648 PLUGIN_NVPTX
649 CUDA_DRIVER_LIB
650 CUDA_DRIVER_INCLUDE
651 offload_targets
652 libtool_VERSION
653 ac_ct_FC
654 FCFLAGS
656 MAINT
657 MAINTAINER_MODE_FALSE
658 MAINTAINER_MODE_TRUE
659 enable_static
660 enable_shared
661 lt_host_flags
663 OTOOL64
664 OTOOL
665 LIPO
666 NMEDIT
667 DSYMUTIL
668 OBJDUMP
669 LN_S
671 ac_ct_DUMPBIN
672 DUMPBIN
674 FGREP
675 EGREP
676 GREP
678 LIBTOOL
679 BUILD_INFO_FALSE
680 BUILD_INFO_TRUE
681 PERL
682 RANLIB
684 am__fastdepCC_FALSE
685 am__fastdepCC_TRUE
686 CCDEPMODE
687 am__nodep
688 AMDEPBACKSLASH
689 AMDEP_FALSE
690 AMDEP_TRUE
691 am__quote
692 am__include
693 DEPDIR
694 OBJEXT
695 EXEEXT
696 ac_ct_CC
697 CPPFLAGS
698 LDFLAGS
699 CFLAGS
701 toolexeclibdir
702 toolexecdir
703 multi_basedir
704 am__untar
705 am__tar
706 AMTAR
707 am__leading_dot
708 SET_MAKE
710 mkdir_p
711 MKDIR_P
712 INSTALL_STRIP_PROGRAM
713 STRIP
714 install_sh
715 MAKEINFO
716 AUTOHEADER
717 AUTOMAKE
718 AUTOCONF
719 ACLOCAL
720 VERSION
721 PACKAGE
722 CYGPATH_W
723 am__isrc
724 INSTALL_DATA
725 INSTALL_SCRIPT
726 INSTALL_PROGRAM
727 target_os
728 target_vendor
729 target_cpu
730 target
731 host_os
732 host_vendor
733 host_cpu
734 host
735 build_os
736 build_vendor
737 build_cpu
738 build
739 GENINSRC_FALSE
740 GENINSRC_TRUE
741 target_alias
742 host_alias
743 build_alias
744 LIBS
745 ECHO_T
746 ECHO_N
747 ECHO_C
748 DEFS
749 mandir
750 localedir
751 libdir
752 psdir
753 pdfdir
754 dvidir
755 htmldir
756 infodir
757 docdir
758 oldincludedir
759 includedir
760 localstatedir
761 sharedstatedir
762 sysconfdir
763 datadir
764 datarootdir
765 libexecdir
766 sbindir
767 bindir
768 program_transform_name
769 prefix
770 exec_prefix
771 PACKAGE_URL
772 PACKAGE_BUGREPORT
773 PACKAGE_STRING
774 PACKAGE_VERSION
775 PACKAGE_TARNAME
776 PACKAGE_NAME
777 PATH_SEPARATOR
778 SHELL'
779 ac_subst_files=''
780 ac_user_opts='
781 enable_option_checking
782 enable_version_specific_runtime_libs
783 enable_generated_files_in_srcdir
784 enable_multilib
785 enable_dependency_tracking
786 enable_shared
787 enable_static
788 with_pic
789 enable_fast_install
790 with_gnu_ld
791 enable_libtool_lock
792 enable_maintainer_mode
793 with_cuda_driver
794 with_cuda_driver_include
795 with_cuda_driver_lib
796 with_hsa_runtime
797 with_hsa_runtime_include
798 with_hsa_runtime_lib
799 enable_linux_futex
800 enable_tls
801 enable_symvers
802 enable_cet
803 with_gcc_major_version_only
805 ac_precious_vars='build_alias
806 host_alias
807 target_alias
809 CPPFLAGS
811 FCFLAGS
812 LDFLAGS
813 LIBS'
816 # Initialize some variables set by options.
817 ac_init_help=
818 ac_init_version=false
819 ac_unrecognized_opts=
820 ac_unrecognized_sep=
821 # The variables have the same names as the options, with
822 # dashes changed to underlines.
823 cache_file=/dev/null
824 exec_prefix=NONE
825 no_create=
826 no_recursion=
827 prefix=NONE
828 program_prefix=NONE
829 program_suffix=NONE
830 program_transform_name=s,x,x,
831 silent=
832 site=
833 srcdir=
834 verbose=
835 x_includes=NONE
836 x_libraries=NONE
838 # Installation directory options.
839 # These are left unexpanded so users can "make install exec_prefix=/foo"
840 # and all the variables that are supposed to be based on exec_prefix
841 # by default will actually change.
842 # Use braces instead of parens because sh, perl, etc. also accept them.
843 # (The list follows the same order as the GNU Coding Standards.)
844 bindir='${exec_prefix}/bin'
845 sbindir='${exec_prefix}/sbin'
846 libexecdir='${exec_prefix}/libexec'
847 datarootdir='${prefix}/share'
848 datadir='${datarootdir}'
849 sysconfdir='${prefix}/etc'
850 sharedstatedir='${prefix}/com'
851 localstatedir='${prefix}/var'
852 includedir='${prefix}/include'
853 oldincludedir='/usr/include'
854 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
855 infodir='${datarootdir}/info'
856 htmldir='${docdir}'
857 dvidir='${docdir}'
858 pdfdir='${docdir}'
859 psdir='${docdir}'
860 libdir='${exec_prefix}/lib'
861 localedir='${datarootdir}/locale'
862 mandir='${datarootdir}/man'
864 ac_prev=
865 ac_dashdash=
866 for ac_option
868 # If the previous option needs an argument, assign it.
869 if test -n "$ac_prev"; then
870 eval $ac_prev=\$ac_option
871 ac_prev=
872 continue
875 case $ac_option in
876 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
877 *) ac_optarg=yes ;;
878 esac
880 # Accept the important Cygnus configure options, so we can diagnose typos.
882 case $ac_dashdash$ac_option in
884 ac_dashdash=yes ;;
886 -bindir | --bindir | --bindi | --bind | --bin | --bi)
887 ac_prev=bindir ;;
888 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
889 bindir=$ac_optarg ;;
891 -build | --build | --buil | --bui | --bu)
892 ac_prev=build_alias ;;
893 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
894 build_alias=$ac_optarg ;;
896 -cache-file | --cache-file | --cache-fil | --cache-fi \
897 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
898 ac_prev=cache_file ;;
899 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
900 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
901 cache_file=$ac_optarg ;;
903 --config-cache | -C)
904 cache_file=config.cache ;;
906 -datadir | --datadir | --datadi | --datad)
907 ac_prev=datadir ;;
908 -datadir=* | --datadir=* | --datadi=* | --datad=*)
909 datadir=$ac_optarg ;;
911 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
912 | --dataroo | --dataro | --datar)
913 ac_prev=datarootdir ;;
914 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
915 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
916 datarootdir=$ac_optarg ;;
918 -disable-* | --disable-*)
919 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
920 # Reject names that are not valid shell variable names.
921 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
922 as_fn_error "invalid feature name: $ac_useropt"
923 ac_useropt_orig=$ac_useropt
924 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
925 case $ac_user_opts in
927 "enable_$ac_useropt"
928 "*) ;;
929 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
930 ac_unrecognized_sep=', ';;
931 esac
932 eval enable_$ac_useropt=no ;;
934 -docdir | --docdir | --docdi | --doc | --do)
935 ac_prev=docdir ;;
936 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
937 docdir=$ac_optarg ;;
939 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
940 ac_prev=dvidir ;;
941 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
942 dvidir=$ac_optarg ;;
944 -enable-* | --enable-*)
945 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
946 # Reject names that are not valid shell variable names.
947 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
948 as_fn_error "invalid feature name: $ac_useropt"
949 ac_useropt_orig=$ac_useropt
950 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
951 case $ac_user_opts in
953 "enable_$ac_useropt"
954 "*) ;;
955 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
956 ac_unrecognized_sep=', ';;
957 esac
958 eval enable_$ac_useropt=\$ac_optarg ;;
960 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
961 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
962 | --exec | --exe | --ex)
963 ac_prev=exec_prefix ;;
964 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
965 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
966 | --exec=* | --exe=* | --ex=*)
967 exec_prefix=$ac_optarg ;;
969 -gas | --gas | --ga | --g)
970 # Obsolete; use --with-gas.
971 with_gas=yes ;;
973 -help | --help | --hel | --he | -h)
974 ac_init_help=long ;;
975 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
976 ac_init_help=recursive ;;
977 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
978 ac_init_help=short ;;
980 -host | --host | --hos | --ho)
981 ac_prev=host_alias ;;
982 -host=* | --host=* | --hos=* | --ho=*)
983 host_alias=$ac_optarg ;;
985 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
986 ac_prev=htmldir ;;
987 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
988 | --ht=*)
989 htmldir=$ac_optarg ;;
991 -includedir | --includedir | --includedi | --included | --include \
992 | --includ | --inclu | --incl | --inc)
993 ac_prev=includedir ;;
994 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
995 | --includ=* | --inclu=* | --incl=* | --inc=*)
996 includedir=$ac_optarg ;;
998 -infodir | --infodir | --infodi | --infod | --info | --inf)
999 ac_prev=infodir ;;
1000 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1001 infodir=$ac_optarg ;;
1003 -libdir | --libdir | --libdi | --libd)
1004 ac_prev=libdir ;;
1005 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1006 libdir=$ac_optarg ;;
1008 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1009 | --libexe | --libex | --libe)
1010 ac_prev=libexecdir ;;
1011 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1012 | --libexe=* | --libex=* | --libe=*)
1013 libexecdir=$ac_optarg ;;
1015 -localedir | --localedir | --localedi | --localed | --locale)
1016 ac_prev=localedir ;;
1017 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1018 localedir=$ac_optarg ;;
1020 -localstatedir | --localstatedir | --localstatedi | --localstated \
1021 | --localstate | --localstat | --localsta | --localst | --locals)
1022 ac_prev=localstatedir ;;
1023 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1024 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1025 localstatedir=$ac_optarg ;;
1027 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1028 ac_prev=mandir ;;
1029 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1030 mandir=$ac_optarg ;;
1032 -nfp | --nfp | --nf)
1033 # Obsolete; use --without-fp.
1034 with_fp=no ;;
1036 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1037 | --no-cr | --no-c | -n)
1038 no_create=yes ;;
1040 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1041 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1042 no_recursion=yes ;;
1044 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1045 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1046 | --oldin | --oldi | --old | --ol | --o)
1047 ac_prev=oldincludedir ;;
1048 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1049 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1050 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1051 oldincludedir=$ac_optarg ;;
1053 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1054 ac_prev=prefix ;;
1055 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1056 prefix=$ac_optarg ;;
1058 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1059 | --program-pre | --program-pr | --program-p)
1060 ac_prev=program_prefix ;;
1061 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1062 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1063 program_prefix=$ac_optarg ;;
1065 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1066 | --program-suf | --program-su | --program-s)
1067 ac_prev=program_suffix ;;
1068 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1069 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1070 program_suffix=$ac_optarg ;;
1072 -program-transform-name | --program-transform-name \
1073 | --program-transform-nam | --program-transform-na \
1074 | --program-transform-n | --program-transform- \
1075 | --program-transform | --program-transfor \
1076 | --program-transfo | --program-transf \
1077 | --program-trans | --program-tran \
1078 | --progr-tra | --program-tr | --program-t)
1079 ac_prev=program_transform_name ;;
1080 -program-transform-name=* | --program-transform-name=* \
1081 | --program-transform-nam=* | --program-transform-na=* \
1082 | --program-transform-n=* | --program-transform-=* \
1083 | --program-transform=* | --program-transfor=* \
1084 | --program-transfo=* | --program-transf=* \
1085 | --program-trans=* | --program-tran=* \
1086 | --progr-tra=* | --program-tr=* | --program-t=*)
1087 program_transform_name=$ac_optarg ;;
1089 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1090 ac_prev=pdfdir ;;
1091 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1092 pdfdir=$ac_optarg ;;
1094 -psdir | --psdir | --psdi | --psd | --ps)
1095 ac_prev=psdir ;;
1096 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1097 psdir=$ac_optarg ;;
1099 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1100 | -silent | --silent | --silen | --sile | --sil)
1101 silent=yes ;;
1103 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1104 ac_prev=sbindir ;;
1105 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1106 | --sbi=* | --sb=*)
1107 sbindir=$ac_optarg ;;
1109 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1110 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1111 | --sharedst | --shareds | --shared | --share | --shar \
1112 | --sha | --sh)
1113 ac_prev=sharedstatedir ;;
1114 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1115 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1116 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1117 | --sha=* | --sh=*)
1118 sharedstatedir=$ac_optarg ;;
1120 -site | --site | --sit)
1121 ac_prev=site ;;
1122 -site=* | --site=* | --sit=*)
1123 site=$ac_optarg ;;
1125 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1126 ac_prev=srcdir ;;
1127 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1128 srcdir=$ac_optarg ;;
1130 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1131 | --syscon | --sysco | --sysc | --sys | --sy)
1132 ac_prev=sysconfdir ;;
1133 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1134 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1135 sysconfdir=$ac_optarg ;;
1137 -target | --target | --targe | --targ | --tar | --ta | --t)
1138 ac_prev=target_alias ;;
1139 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1140 target_alias=$ac_optarg ;;
1142 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1143 verbose=yes ;;
1145 -version | --version | --versio | --versi | --vers | -V)
1146 ac_init_version=: ;;
1148 -with-* | --with-*)
1149 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1150 # Reject names that are not valid shell variable names.
1151 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1152 as_fn_error "invalid package name: $ac_useropt"
1153 ac_useropt_orig=$ac_useropt
1154 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1155 case $ac_user_opts in
1157 "with_$ac_useropt"
1158 "*) ;;
1159 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1160 ac_unrecognized_sep=', ';;
1161 esac
1162 eval with_$ac_useropt=\$ac_optarg ;;
1164 -without-* | --without-*)
1165 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1166 # Reject names that are not valid shell variable names.
1167 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1168 as_fn_error "invalid package name: $ac_useropt"
1169 ac_useropt_orig=$ac_useropt
1170 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1171 case $ac_user_opts in
1173 "with_$ac_useropt"
1174 "*) ;;
1175 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1176 ac_unrecognized_sep=', ';;
1177 esac
1178 eval with_$ac_useropt=no ;;
1180 --x)
1181 # Obsolete; use --with-x.
1182 with_x=yes ;;
1184 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1185 | --x-incl | --x-inc | --x-in | --x-i)
1186 ac_prev=x_includes ;;
1187 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1188 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1189 x_includes=$ac_optarg ;;
1191 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1192 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1193 ac_prev=x_libraries ;;
1194 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1195 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1196 x_libraries=$ac_optarg ;;
1198 -*) as_fn_error "unrecognized option: \`$ac_option'
1199 Try \`$0 --help' for more information."
1202 *=*)
1203 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1204 # Reject names that are not valid shell variable names.
1205 case $ac_envvar in #(
1206 '' | [0-9]* | *[!_$as_cr_alnum]* )
1207 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1208 esac
1209 eval $ac_envvar=\$ac_optarg
1210 export $ac_envvar ;;
1213 # FIXME: should be removed in autoconf 3.0.
1214 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1215 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1216 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1217 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1220 esac
1221 done
1223 if test -n "$ac_prev"; then
1224 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1225 as_fn_error "missing argument to $ac_option"
1228 if test -n "$ac_unrecognized_opts"; then
1229 case $enable_option_checking in
1230 no) ;;
1231 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1232 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1233 esac
1236 # Check all directory arguments for consistency.
1237 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1238 datadir sysconfdir sharedstatedir localstatedir includedir \
1239 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1240 libdir localedir mandir
1242 eval ac_val=\$$ac_var
1243 # Remove trailing slashes.
1244 case $ac_val in
1245 */ )
1246 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1247 eval $ac_var=\$ac_val;;
1248 esac
1249 # Be sure to have absolute directory names.
1250 case $ac_val in
1251 [\\/$]* | ?:[\\/]* ) continue;;
1252 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1253 esac
1254 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1255 done
1257 # There might be people who depend on the old broken behavior: `$host'
1258 # used to hold the argument of --host etc.
1259 # FIXME: To remove some day.
1260 build=$build_alias
1261 host=$host_alias
1262 target=$target_alias
1264 # FIXME: To remove some day.
1265 if test "x$host_alias" != x; then
1266 if test "x$build_alias" = x; then
1267 cross_compiling=maybe
1268 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1269 If a cross compiler is detected then cross compile mode will be used." >&2
1270 elif test "x$build_alias" != "x$host_alias"; then
1271 cross_compiling=yes
1275 ac_tool_prefix=
1276 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1278 test "$silent" = yes && exec 6>/dev/null
1281 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1282 ac_ls_di=`ls -di .` &&
1283 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1284 as_fn_error "working directory cannot be determined"
1285 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1286 as_fn_error "pwd does not report name of working directory"
1289 # Find the source files, if location was not specified.
1290 if test -z "$srcdir"; then
1291 ac_srcdir_defaulted=yes
1292 # Try the directory containing this script, then the parent directory.
1293 ac_confdir=`$as_dirname -- "$as_myself" ||
1294 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1295 X"$as_myself" : 'X\(//\)[^/]' \| \
1296 X"$as_myself" : 'X\(//\)$' \| \
1297 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1298 $as_echo X"$as_myself" |
1299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1300 s//\1/
1303 /^X\(\/\/\)[^/].*/{
1304 s//\1/
1307 /^X\(\/\/\)$/{
1308 s//\1/
1311 /^X\(\/\).*/{
1312 s//\1/
1315 s/.*/./; q'`
1316 srcdir=$ac_confdir
1317 if test ! -r "$srcdir/$ac_unique_file"; then
1318 srcdir=..
1320 else
1321 ac_srcdir_defaulted=no
1323 if test ! -r "$srcdir/$ac_unique_file"; then
1324 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1325 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1327 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1328 ac_abs_confdir=`(
1329 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1330 pwd)`
1331 # When building in place, set srcdir=.
1332 if test "$ac_abs_confdir" = "$ac_pwd"; then
1333 srcdir=.
1335 # Remove unnecessary trailing slashes from srcdir.
1336 # Double slashes in file names in object file debugging info
1337 # mess up M-x gdb in Emacs.
1338 case $srcdir in
1339 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1340 esac
1341 for ac_var in $ac_precious_vars; do
1342 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1343 eval ac_env_${ac_var}_value=\$${ac_var}
1344 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1345 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1346 done
1349 # Report the --help message.
1351 if test "$ac_init_help" = "long"; then
1352 # Omit some internal or obsolete options to make the list less imposing.
1353 # This message is too long to be a string in the A/UX 3.1 sh.
1354 cat <<_ACEOF
1355 \`configure' configures GNU Offloading and Multi Processing Runtime Library 1.0 to adapt to many kinds of systems.
1357 Usage: $0 [OPTION]... [VAR=VALUE]...
1359 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1360 VAR=VALUE. See below for descriptions of some of the useful variables.
1362 Defaults for the options are specified in brackets.
1364 Configuration:
1365 -h, --help display this help and exit
1366 --help=short display options specific to this package
1367 --help=recursive display the short help of all the included packages
1368 -V, --version display version information and exit
1369 -q, --quiet, --silent do not print \`checking...' messages
1370 --cache-file=FILE cache test results in FILE [disabled]
1371 -C, --config-cache alias for \`--cache-file=config.cache'
1372 -n, --no-create do not create output files
1373 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1375 Installation directories:
1376 --prefix=PREFIX install architecture-independent files in PREFIX
1377 [$ac_default_prefix]
1378 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1379 [PREFIX]
1381 By default, \`make install' will install all the files in
1382 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1383 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1384 for instance \`--prefix=\$HOME'.
1386 For better control, use the options below.
1388 Fine tuning of the installation directories:
1389 --bindir=DIR user executables [EPREFIX/bin]
1390 --sbindir=DIR system admin executables [EPREFIX/sbin]
1391 --libexecdir=DIR program executables [EPREFIX/libexec]
1392 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1393 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1394 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1395 --libdir=DIR object code libraries [EPREFIX/lib]
1396 --includedir=DIR C header files [PREFIX/include]
1397 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1398 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1399 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1400 --infodir=DIR info documentation [DATAROOTDIR/info]
1401 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1402 --mandir=DIR man documentation [DATAROOTDIR/man]
1403 --docdir=DIR documentation root [DATAROOTDIR/doc/libgomp]
1404 --htmldir=DIR html documentation [DOCDIR]
1405 --dvidir=DIR dvi documentation [DOCDIR]
1406 --pdfdir=DIR pdf documentation [DOCDIR]
1407 --psdir=DIR ps documentation [DOCDIR]
1408 _ACEOF
1410 cat <<\_ACEOF
1412 Program names:
1413 --program-prefix=PREFIX prepend PREFIX to installed program names
1414 --program-suffix=SUFFIX append SUFFIX to installed program names
1415 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1417 System types:
1418 --build=BUILD configure for building on BUILD [guessed]
1419 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1420 --target=TARGET configure for building compilers for TARGET [HOST]
1421 _ACEOF
1424 if test -n "$ac_init_help"; then
1425 case $ac_init_help in
1426 short | recursive ) echo "Configuration of GNU Offloading and Multi Processing Runtime Library 1.0:";;
1427 esac
1428 cat <<\_ACEOF
1430 Optional Features:
1431 --disable-option-checking ignore unrecognized --enable/--with options
1432 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1433 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1434 --enable-version-specific-runtime-libs
1435 Specify that runtime libraries should be installed
1436 in a compiler-specific directory [default=no]
1437 --enable-generated-files-in-srcdir
1438 put copies of generated files in source dir intended
1439 for creating source tarballs for users without
1440 texinfo bison or flex. [default=no]
1441 --enable-multilib build many library versions (default)
1442 --disable-dependency-tracking speeds up one-time build
1443 --enable-dependency-tracking do not reject slow dependency extractors
1444 --enable-shared[=PKGS] build shared libraries [default=yes]
1445 --enable-static[=PKGS] build static libraries [default=yes]
1446 --enable-fast-install[=PKGS]
1447 optimize for fast installation [default=yes]
1448 --disable-libtool-lock avoid locking (might break parallel builds)
1449 --enable-maintainer-mode enable make rules and dependencies not useful
1450 (and sometimes confusing) to the casual installer
1451 --enable-linux-futex use the Linux futex system call [default=default]
1452 --enable-tls Use thread-local storage [default=yes]
1453 --enable-symvers=STYLE enables symbol versioning of the shared library
1454 [default=yes]
1455 --enable-cet enable Intel CET in target libraries [default=no]
1457 Optional Packages:
1458 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1459 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1460 --with-pic try to use only PIC/non-PIC objects [default=use
1461 both]
1462 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1463 --with-cuda-driver=PATH specify prefix directory for installed CUDA driver
1464 package. Equivalent to
1465 --with-cuda-driver-include=PATH/include plus
1466 --with-cuda-driver-lib=PATH/lib
1467 --with-cuda-driver-include=PATH
1468 specify directory for installed CUDA driver include
1469 files
1470 --with-cuda-driver-lib=PATH
1471 specify directory for the installed CUDA driver
1472 library
1473 --with-hsa-runtime=PATH specify prefix directory for installed HSA run-time
1474 package. Equivalent to
1475 --with-hsa-runtime-include=PATH/include plus
1476 --with-hsa-runtime-lib=PATH/lib
1477 --with-hsa-runtime-include=PATH
1478 specify directory for installed HSA run-time include
1479 files
1480 --with-hsa-runtime-lib=PATH
1481 specify directory for the installed HSA run-time
1482 library
1483 --with-gcc-major-version-only
1484 use only GCC major number in filesystem paths
1486 Some influential environment variables:
1487 CC C compiler command
1488 CFLAGS C compiler flags
1489 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1490 nonstandard directory <lib dir>
1491 LIBS libraries to pass to the linker, e.g. -l<library>
1492 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1493 you have headers in a nonstandard directory <include dir>
1494 CPP C preprocessor
1495 FC Fortran compiler command
1496 FCFLAGS Fortran compiler flags
1498 Use these variables to override the choices made by `configure' or to help
1499 it to find libraries and programs with nonstandard names/locations.
1501 Report bugs to the package provider.
1502 GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
1503 General help using GNU software: <http://www.gnu.org/gethelp/>.
1504 _ACEOF
1505 ac_status=$?
1508 if test "$ac_init_help" = "recursive"; then
1509 # If there are subdirs, report their specific --help.
1510 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1511 test -d "$ac_dir" ||
1512 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1513 continue
1514 ac_builddir=.
1516 case "$ac_dir" in
1517 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1519 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1520 # A ".." for each directory in $ac_dir_suffix.
1521 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1522 case $ac_top_builddir_sub in
1523 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1524 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1525 esac ;;
1526 esac
1527 ac_abs_top_builddir=$ac_pwd
1528 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1529 # for backward compatibility:
1530 ac_top_builddir=$ac_top_build_prefix
1532 case $srcdir in
1533 .) # We are building in place.
1534 ac_srcdir=.
1535 ac_top_srcdir=$ac_top_builddir_sub
1536 ac_abs_top_srcdir=$ac_pwd ;;
1537 [\\/]* | ?:[\\/]* ) # Absolute name.
1538 ac_srcdir=$srcdir$ac_dir_suffix;
1539 ac_top_srcdir=$srcdir
1540 ac_abs_top_srcdir=$srcdir ;;
1541 *) # Relative name.
1542 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1543 ac_top_srcdir=$ac_top_build_prefix$srcdir
1544 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1545 esac
1546 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1548 cd "$ac_dir" || { ac_status=$?; continue; }
1549 # Check for guested configure.
1550 if test -f "$ac_srcdir/configure.gnu"; then
1551 echo &&
1552 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1553 elif test -f "$ac_srcdir/configure"; then
1554 echo &&
1555 $SHELL "$ac_srcdir/configure" --help=recursive
1556 else
1557 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1558 fi || ac_status=$?
1559 cd "$ac_pwd" || { ac_status=$?; break; }
1560 done
1563 test -n "$ac_init_help" && exit $ac_status
1564 if $ac_init_version; then
1565 cat <<\_ACEOF
1566 GNU Offloading and Multi Processing Runtime Library configure 1.0
1567 generated by GNU Autoconf 2.64
1569 Copyright (C) 2009 Free Software Foundation, Inc.
1570 This configure script is free software; the Free Software Foundation
1571 gives unlimited permission to copy, distribute and modify it.
1572 _ACEOF
1573 exit
1576 ## ------------------------ ##
1577 ## Autoconf initialization. ##
1578 ## ------------------------ ##
1580 # ac_fn_c_try_compile LINENO
1581 # --------------------------
1582 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1583 ac_fn_c_try_compile ()
1585 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1586 rm -f conftest.$ac_objext
1587 if { { ac_try="$ac_compile"
1588 case "(($ac_try" in
1589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1590 *) ac_try_echo=$ac_try;;
1591 esac
1592 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1593 $as_echo "$ac_try_echo"; } >&5
1594 (eval "$ac_compile") 2>conftest.err
1595 ac_status=$?
1596 if test -s conftest.err; then
1597 grep -v '^ *+' conftest.err >conftest.er1
1598 cat conftest.er1 >&5
1599 mv -f conftest.er1 conftest.err
1601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1602 test $ac_status = 0; } && {
1603 test -z "$ac_c_werror_flag" ||
1604 test ! -s conftest.err
1605 } && test -s conftest.$ac_objext; then :
1606 ac_retval=0
1607 else
1608 $as_echo "$as_me: failed program was:" >&5
1609 sed 's/^/| /' conftest.$ac_ext >&5
1611 ac_retval=1
1613 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1614 return $ac_retval
1616 } # ac_fn_c_try_compile
1618 # ac_fn_c_try_link LINENO
1619 # -----------------------
1620 # Try to link conftest.$ac_ext, and return whether this succeeded.
1621 ac_fn_c_try_link ()
1623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624 rm -f conftest.$ac_objext conftest$ac_exeext
1625 if { { ac_try="$ac_link"
1626 case "(($ac_try" in
1627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1628 *) ac_try_echo=$ac_try;;
1629 esac
1630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1631 $as_echo "$ac_try_echo"; } >&5
1632 (eval "$ac_link") 2>conftest.err
1633 ac_status=$?
1634 if test -s conftest.err; then
1635 grep -v '^ *+' conftest.err >conftest.er1
1636 cat conftest.er1 >&5
1637 mv -f conftest.er1 conftest.err
1639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1640 test $ac_status = 0; } && {
1641 test -z "$ac_c_werror_flag" ||
1642 test ! -s conftest.err
1643 } && test -s conftest$ac_exeext && {
1644 test "$cross_compiling" = yes ||
1645 $as_test_x conftest$ac_exeext
1646 }; then :
1647 ac_retval=0
1648 else
1649 $as_echo "$as_me: failed program was:" >&5
1650 sed 's/^/| /' conftest.$ac_ext >&5
1652 ac_retval=1
1654 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1655 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1656 # interfere with the next link command; also delete a directory that is
1657 # left behind by Apple's compiler. We do this before executing the actions.
1658 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1659 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1660 return $ac_retval
1662 } # ac_fn_c_try_link
1664 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1665 # -------------------------------------------------------
1666 # Tests whether HEADER exists and can be compiled using the include files in
1667 # INCLUDES, setting the cache variable VAR accordingly.
1668 ac_fn_c_check_header_compile ()
1670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1672 $as_echo_n "checking for $2... " >&6; }
1673 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1674 $as_echo_n "(cached) " >&6
1675 else
1676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1677 /* end confdefs.h. */
1679 #include <$2>
1680 _ACEOF
1681 if ac_fn_c_try_compile "$LINENO"; then :
1682 eval "$3=yes"
1683 else
1684 eval "$3=no"
1686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1688 eval ac_res=\$$3
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1690 $as_echo "$ac_res" >&6; }
1691 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1693 } # ac_fn_c_check_header_compile
1695 # ac_fn_c_try_cpp LINENO
1696 # ----------------------
1697 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1698 ac_fn_c_try_cpp ()
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701 if { { ac_try="$ac_cpp conftest.$ac_ext"
1702 case "(($ac_try" in
1703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704 *) ac_try_echo=$ac_try;;
1705 esac
1706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707 $as_echo "$ac_try_echo"; } >&5
1708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1709 ac_status=$?
1710 if test -s conftest.err; then
1711 grep -v '^ *+' conftest.err >conftest.er1
1712 cat conftest.er1 >&5
1713 mv -f conftest.er1 conftest.err
1715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716 test $ac_status = 0; } >/dev/null && {
1717 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1718 test ! -s conftest.err
1719 }; then :
1720 ac_retval=0
1721 else
1722 $as_echo "$as_me: failed program was:" >&5
1723 sed 's/^/| /' conftest.$ac_ext >&5
1725 ac_retval=1
1727 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1728 return $ac_retval
1730 } # ac_fn_c_try_cpp
1732 # ac_fn_c_try_run LINENO
1733 # ----------------------
1734 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1735 # that executables *can* be run.
1736 ac_fn_c_try_run ()
1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739 if { { ac_try="$ac_link"
1740 case "(($ac_try" in
1741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1742 *) ac_try_echo=$ac_try;;
1743 esac
1744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1745 $as_echo "$ac_try_echo"; } >&5
1746 (eval "$ac_link") 2>&5
1747 ac_status=$?
1748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1749 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1750 { { case "(($ac_try" in
1751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1752 *) ac_try_echo=$ac_try;;
1753 esac
1754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1755 $as_echo "$ac_try_echo"; } >&5
1756 (eval "$ac_try") 2>&5
1757 ac_status=$?
1758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1759 test $ac_status = 0; }; }; then :
1760 ac_retval=0
1761 else
1762 $as_echo "$as_me: program exited with status $ac_status" >&5
1763 $as_echo "$as_me: failed program was:" >&5
1764 sed 's/^/| /' conftest.$ac_ext >&5
1766 ac_retval=$ac_status
1768 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1769 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1770 return $ac_retval
1772 } # ac_fn_c_try_run
1774 # ac_fn_c_check_func LINENO FUNC VAR
1775 # ----------------------------------
1776 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1777 ac_fn_c_check_func ()
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1781 $as_echo_n "checking for $2... " >&6; }
1782 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1783 $as_echo_n "(cached) " >&6
1784 else
1785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1786 /* end confdefs.h. */
1787 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1788 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1789 #define $2 innocuous_$2
1791 /* System header to define __stub macros and hopefully few prototypes,
1792 which can conflict with char $2 (); below.
1793 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1794 <limits.h> exists even on freestanding compilers. */
1796 #ifdef __STDC__
1797 # include <limits.h>
1798 #else
1799 # include <assert.h>
1800 #endif
1802 #undef $2
1804 /* Override any GCC internal prototype to avoid an error.
1805 Use char because int might match the return type of a GCC
1806 builtin and then its argument prototype would still apply. */
1807 #ifdef __cplusplus
1808 extern "C"
1809 #endif
1810 char $2 ();
1811 /* The GNU C library defines this for functions which it implements
1812 to always fail with ENOSYS. Some functions are actually named
1813 something starting with __ and the normal name is an alias. */
1814 #if defined __stub_$2 || defined __stub___$2
1815 choke me
1816 #endif
1819 main ()
1821 return $2 ();
1823 return 0;
1825 _ACEOF
1826 if ac_fn_c_try_link "$LINENO"; then :
1827 eval "$3=yes"
1828 else
1829 eval "$3=no"
1831 rm -f core conftest.err conftest.$ac_objext \
1832 conftest$ac_exeext conftest.$ac_ext
1834 eval ac_res=\$$3
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1836 $as_echo "$ac_res" >&6; }
1837 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1839 } # ac_fn_c_check_func
1841 # ac_fn_fc_try_compile LINENO
1842 # ---------------------------
1843 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1844 ac_fn_fc_try_compile ()
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 rm -f conftest.$ac_objext
1848 if { { ac_try="$ac_compile"
1849 case "(($ac_try" in
1850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1851 *) ac_try_echo=$ac_try;;
1852 esac
1853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854 $as_echo "$ac_try_echo"; } >&5
1855 (eval "$ac_compile") 2>conftest.err
1856 ac_status=$?
1857 if test -s conftest.err; then
1858 grep -v '^ *+' conftest.err >conftest.er1
1859 cat conftest.er1 >&5
1860 mv -f conftest.er1 conftest.err
1862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863 test $ac_status = 0; } && {
1864 test -z "$ac_fc_werror_flag" ||
1865 test ! -s conftest.err
1866 } && test -s conftest.$ac_objext; then :
1867 ac_retval=0
1868 else
1869 $as_echo "$as_me: failed program was:" >&5
1870 sed 's/^/| /' conftest.$ac_ext >&5
1872 ac_retval=1
1874 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1875 return $ac_retval
1877 } # ac_fn_fc_try_compile
1879 # ac_fn_fc_try_link LINENO
1880 # ------------------------
1881 # Try to link conftest.$ac_ext, and return whether this succeeded.
1882 ac_fn_fc_try_link ()
1884 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1885 rm -f conftest.$ac_objext conftest$ac_exeext
1886 if { { ac_try="$ac_link"
1887 case "(($ac_try" in
1888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1889 *) ac_try_echo=$ac_try;;
1890 esac
1891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1892 $as_echo "$ac_try_echo"; } >&5
1893 (eval "$ac_link") 2>conftest.err
1894 ac_status=$?
1895 if test -s conftest.err; then
1896 grep -v '^ *+' conftest.err >conftest.er1
1897 cat conftest.er1 >&5
1898 mv -f conftest.er1 conftest.err
1900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1901 test $ac_status = 0; } && {
1902 test -z "$ac_fc_werror_flag" ||
1903 test ! -s conftest.err
1904 } && test -s conftest$ac_exeext && {
1905 test "$cross_compiling" = yes ||
1906 $as_test_x conftest$ac_exeext
1907 }; then :
1908 ac_retval=0
1909 else
1910 $as_echo "$as_me: failed program was:" >&5
1911 sed 's/^/| /' conftest.$ac_ext >&5
1913 ac_retval=1
1915 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1916 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1917 # interfere with the next link command; also delete a directory that is
1918 # left behind by Apple's compiler. We do this before executing the actions.
1919 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1920 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1921 return $ac_retval
1923 } # ac_fn_fc_try_link
1925 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1926 # -------------------------------------------------------
1927 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1928 # the include files in INCLUDES and setting the cache variable VAR
1929 # accordingly.
1930 ac_fn_c_check_header_mongrel ()
1932 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1933 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1935 $as_echo_n "checking for $2... " >&6; }
1936 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1937 $as_echo_n "(cached) " >&6
1939 eval ac_res=\$$3
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1941 $as_echo "$ac_res" >&6; }
1942 else
1943 # Is the header compilable?
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1945 $as_echo_n "checking $2 usability... " >&6; }
1946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947 /* end confdefs.h. */
1949 #include <$2>
1950 _ACEOF
1951 if ac_fn_c_try_compile "$LINENO"; then :
1952 ac_header_compiler=yes
1953 else
1954 ac_header_compiler=no
1956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1958 $as_echo "$ac_header_compiler" >&6; }
1960 # Is the header present?
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1962 $as_echo_n "checking $2 presence... " >&6; }
1963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964 /* end confdefs.h. */
1965 #include <$2>
1966 _ACEOF
1967 if ac_fn_c_try_cpp "$LINENO"; then :
1968 ac_header_preproc=yes
1969 else
1970 ac_header_preproc=no
1972 rm -f conftest.err conftest.$ac_ext
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1974 $as_echo "$ac_header_preproc" >&6; }
1976 # So? What about this header?
1977 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1978 yes:no: )
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1980 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1982 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1984 no:yes:* )
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1986 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1988 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1990 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1992 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1994 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1996 esac
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1998 $as_echo_n "checking for $2... " >&6; }
1999 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2000 $as_echo_n "(cached) " >&6
2001 else
2002 eval "$3=\$ac_header_compiler"
2004 eval ac_res=\$$3
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2006 $as_echo "$ac_res" >&6; }
2008 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2010 } # ac_fn_c_check_header_mongrel
2012 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2013 # -------------------------------------------
2014 # Tests whether TYPE exists after having included INCLUDES, setting cache
2015 # variable VAR accordingly.
2016 ac_fn_c_check_type ()
2018 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2020 $as_echo_n "checking for $2... " >&6; }
2021 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2022 $as_echo_n "(cached) " >&6
2023 else
2024 eval "$3=no"
2025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026 /* end confdefs.h. */
2029 main ()
2031 if (sizeof ($2))
2032 return 0;
2034 return 0;
2036 _ACEOF
2037 if ac_fn_c_try_compile "$LINENO"; then :
2038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039 /* end confdefs.h. */
2042 main ()
2044 if (sizeof (($2)))
2045 return 0;
2047 return 0;
2049 _ACEOF
2050 if ac_fn_c_try_compile "$LINENO"; then :
2052 else
2053 eval "$3=yes"
2055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2059 eval ac_res=\$$3
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2061 $as_echo "$ac_res" >&6; }
2062 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2064 } # ac_fn_c_check_type
2066 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2067 # --------------------------------------------
2068 # Tries to find the compile-time value of EXPR in a program that includes
2069 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2070 # computed
2071 ac_fn_c_compute_int ()
2073 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2074 if test "$cross_compiling" = yes; then
2075 # Depending upon the size, compute the lo and hi bounds.
2076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077 /* end confdefs.h. */
2080 main ()
2082 static int test_array [1 - 2 * !(($2) >= 0)];
2083 test_array [0] = 0
2086 return 0;
2088 _ACEOF
2089 if ac_fn_c_try_compile "$LINENO"; then :
2090 ac_lo=0 ac_mid=0
2091 while :; do
2092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2093 /* end confdefs.h. */
2096 main ()
2098 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2099 test_array [0] = 0
2102 return 0;
2104 _ACEOF
2105 if ac_fn_c_try_compile "$LINENO"; then :
2106 ac_hi=$ac_mid; break
2107 else
2108 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2109 if test $ac_lo -le $ac_mid; then
2110 ac_lo= ac_hi=
2111 break
2113 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2116 done
2117 else
2118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119 /* end confdefs.h. */
2122 main ()
2124 static int test_array [1 - 2 * !(($2) < 0)];
2125 test_array [0] = 0
2128 return 0;
2130 _ACEOF
2131 if ac_fn_c_try_compile "$LINENO"; then :
2132 ac_hi=-1 ac_mid=-1
2133 while :; do
2134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135 /* end confdefs.h. */
2138 main ()
2140 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2141 test_array [0] = 0
2144 return 0;
2146 _ACEOF
2147 if ac_fn_c_try_compile "$LINENO"; then :
2148 ac_lo=$ac_mid; break
2149 else
2150 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2151 if test $ac_mid -le $ac_hi; then
2152 ac_lo= ac_hi=
2153 break
2155 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2158 done
2159 else
2160 ac_lo= ac_hi=
2162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2165 # Binary search between lo and hi bounds.
2166 while test "x$ac_lo" != "x$ac_hi"; do
2167 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2169 /* end confdefs.h. */
2172 main ()
2174 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2175 test_array [0] = 0
2178 return 0;
2180 _ACEOF
2181 if ac_fn_c_try_compile "$LINENO"; then :
2182 ac_hi=$ac_mid
2183 else
2184 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2187 done
2188 case $ac_lo in #((
2189 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2190 '') ac_retval=1 ;;
2191 esac
2192 else
2193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2194 /* end confdefs.h. */
2196 static long int longval () { return $2; }
2197 static unsigned long int ulongval () { return $2; }
2198 #include <stdio.h>
2199 #include <stdlib.h>
2201 main ()
2204 FILE *f = fopen ("conftest.val", "w");
2205 if (! f)
2206 return 1;
2207 if (($2) < 0)
2209 long int i = longval ();
2210 if (i != ($2))
2211 return 1;
2212 fprintf (f, "%ld", i);
2214 else
2216 unsigned long int i = ulongval ();
2217 if (i != ($2))
2218 return 1;
2219 fprintf (f, "%lu", i);
2221 /* Do not output a trailing newline, as this causes \r\n confusion
2222 on some platforms. */
2223 return ferror (f) || fclose (f) != 0;
2226 return 0;
2228 _ACEOF
2229 if ac_fn_c_try_run "$LINENO"; then :
2230 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2231 else
2232 ac_retval=1
2234 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2235 conftest.$ac_objext conftest.beam conftest.$ac_ext
2236 rm -f conftest.val
2239 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2240 return $ac_retval
2242 } # ac_fn_c_compute_int
2243 cat >config.log <<_ACEOF
2244 This file contains any messages produced by compilers while
2245 running configure, to aid debugging if configure makes a mistake.
2247 It was created by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
2248 generated by GNU Autoconf 2.64. Invocation command line was
2250 $ $0 $@
2252 _ACEOF
2253 exec 5>>config.log
2255 cat <<_ASUNAME
2256 ## --------- ##
2257 ## Platform. ##
2258 ## --------- ##
2260 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2261 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2262 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2263 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2264 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2266 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2267 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2269 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2270 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2271 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2272 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2273 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2274 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2275 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2277 _ASUNAME
2279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2280 for as_dir in $PATH
2282 IFS=$as_save_IFS
2283 test -z "$as_dir" && as_dir=.
2284 $as_echo "PATH: $as_dir"
2285 done
2286 IFS=$as_save_IFS
2288 } >&5
2290 cat >&5 <<_ACEOF
2293 ## ----------- ##
2294 ## Core tests. ##
2295 ## ----------- ##
2297 _ACEOF
2300 # Keep a trace of the command line.
2301 # Strip out --no-create and --no-recursion so they do not pile up.
2302 # Strip out --silent because we don't want to record it for future runs.
2303 # Also quote any args containing shell meta-characters.
2304 # Make two passes to allow for proper duplicate-argument suppression.
2305 ac_configure_args=
2306 ac_configure_args0=
2307 ac_configure_args1=
2308 ac_must_keep_next=false
2309 for ac_pass in 1 2
2311 for ac_arg
2313 case $ac_arg in
2314 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2315 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2316 | -silent | --silent | --silen | --sile | --sil)
2317 continue ;;
2318 *\'*)
2319 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2320 esac
2321 case $ac_pass in
2322 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2324 as_fn_append ac_configure_args1 " '$ac_arg'"
2325 if test $ac_must_keep_next = true; then
2326 ac_must_keep_next=false # Got value, back to normal.
2327 else
2328 case $ac_arg in
2329 *=* | --config-cache | -C | -disable-* | --disable-* \
2330 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2331 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2332 | -with-* | --with-* | -without-* | --without-* | --x)
2333 case "$ac_configure_args0 " in
2334 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2335 esac
2337 -* ) ac_must_keep_next=true ;;
2338 esac
2340 as_fn_append ac_configure_args " '$ac_arg'"
2342 esac
2343 done
2344 done
2345 { ac_configure_args0=; unset ac_configure_args0;}
2346 { ac_configure_args1=; unset ac_configure_args1;}
2348 # When interrupted or exit'd, cleanup temporary files, and complete
2349 # config.log. We remove comments because anyway the quotes in there
2350 # would cause problems or look ugly.
2351 # WARNING: Use '\'' to represent an apostrophe within the trap.
2352 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2353 trap 'exit_status=$?
2354 # Save into config.log some information that might help in debugging.
2356 echo
2358 cat <<\_ASBOX
2359 ## ---------------- ##
2360 ## Cache variables. ##
2361 ## ---------------- ##
2362 _ASBOX
2363 echo
2364 # The following way of writing the cache mishandles newlines in values,
2366 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2367 eval ac_val=\$$ac_var
2368 case $ac_val in #(
2369 *${as_nl}*)
2370 case $ac_var in #(
2371 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2372 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2373 esac
2374 case $ac_var in #(
2375 _ | IFS | as_nl) ;; #(
2376 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2377 *) { eval $ac_var=; unset $ac_var;} ;;
2378 esac ;;
2379 esac
2380 done
2381 (set) 2>&1 |
2382 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2383 *${as_nl}ac_space=\ *)
2384 sed -n \
2385 "s/'\''/'\''\\\\'\'''\''/g;
2386 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2387 ;; #(
2389 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2391 esac |
2392 sort
2394 echo
2396 cat <<\_ASBOX
2397 ## ----------------- ##
2398 ## Output variables. ##
2399 ## ----------------- ##
2400 _ASBOX
2401 echo
2402 for ac_var in $ac_subst_vars
2404 eval ac_val=\$$ac_var
2405 case $ac_val in
2406 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2407 esac
2408 $as_echo "$ac_var='\''$ac_val'\''"
2409 done | sort
2410 echo
2412 if test -n "$ac_subst_files"; then
2413 cat <<\_ASBOX
2414 ## ------------------- ##
2415 ## File substitutions. ##
2416 ## ------------------- ##
2417 _ASBOX
2418 echo
2419 for ac_var in $ac_subst_files
2421 eval ac_val=\$$ac_var
2422 case $ac_val in
2423 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2424 esac
2425 $as_echo "$ac_var='\''$ac_val'\''"
2426 done | sort
2427 echo
2430 if test -s confdefs.h; then
2431 cat <<\_ASBOX
2432 ## ----------- ##
2433 ## confdefs.h. ##
2434 ## ----------- ##
2435 _ASBOX
2436 echo
2437 cat confdefs.h
2438 echo
2440 test "$ac_signal" != 0 &&
2441 $as_echo "$as_me: caught signal $ac_signal"
2442 $as_echo "$as_me: exit $exit_status"
2443 } >&5
2444 rm -f core *.core core.conftest.* &&
2445 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2446 exit $exit_status
2448 for ac_signal in 1 2 13 15; do
2449 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2450 done
2451 ac_signal=0
2453 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2454 rm -f -r conftest* confdefs.h
2456 $as_echo "/* confdefs.h */" > confdefs.h
2458 # Predefined preprocessor variables.
2460 cat >>confdefs.h <<_ACEOF
2461 #define PACKAGE_NAME "$PACKAGE_NAME"
2462 _ACEOF
2464 cat >>confdefs.h <<_ACEOF
2465 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2466 _ACEOF
2468 cat >>confdefs.h <<_ACEOF
2469 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2470 _ACEOF
2472 cat >>confdefs.h <<_ACEOF
2473 #define PACKAGE_STRING "$PACKAGE_STRING"
2474 _ACEOF
2476 cat >>confdefs.h <<_ACEOF
2477 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2478 _ACEOF
2480 cat >>confdefs.h <<_ACEOF
2481 #define PACKAGE_URL "$PACKAGE_URL"
2482 _ACEOF
2485 # Let the site file select an alternate cache file if it wants to.
2486 # Prefer an explicitly selected file to automatically selected ones.
2487 ac_site_file1=NONE
2488 ac_site_file2=NONE
2489 if test -n "$CONFIG_SITE"; then
2490 ac_site_file1=$CONFIG_SITE
2491 elif test "x$prefix" != xNONE; then
2492 ac_site_file1=$prefix/share/config.site
2493 ac_site_file2=$prefix/etc/config.site
2494 else
2495 ac_site_file1=$ac_default_prefix/share/config.site
2496 ac_site_file2=$ac_default_prefix/etc/config.site
2498 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2500 test "x$ac_site_file" = xNONE && continue
2501 if test -r "$ac_site_file"; then
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2503 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2504 sed 's/^/| /' "$ac_site_file" >&5
2505 . "$ac_site_file"
2507 done
2509 if test -r "$cache_file"; then
2510 # Some versions of bash will fail to source /dev/null (special
2511 # files actually), so we avoid doing that.
2512 if test -f "$cache_file"; then
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2514 $as_echo "$as_me: loading cache $cache_file" >&6;}
2515 case $cache_file in
2516 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2517 *) . "./$cache_file";;
2518 esac
2520 else
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2522 $as_echo "$as_me: creating cache $cache_file" >&6;}
2523 >$cache_file
2526 as_fn_append ac_header_list " unistd.h"
2527 as_fn_append ac_func_list " secure_getenv"
2528 as_fn_append ac_func_list " __secure_getenv"
2529 as_fn_append ac_func_list " getuid"
2530 as_fn_append ac_func_list " geteuid"
2531 as_fn_append ac_func_list " getgid"
2532 as_fn_append ac_func_list " getegid"
2533 # Check that the precious variables saved in the cache have kept the same
2534 # value.
2535 ac_cache_corrupted=false
2536 for ac_var in $ac_precious_vars; do
2537 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2538 eval ac_new_set=\$ac_env_${ac_var}_set
2539 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2540 eval ac_new_val=\$ac_env_${ac_var}_value
2541 case $ac_old_set,$ac_new_set in
2542 set,)
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2544 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2545 ac_cache_corrupted=: ;;
2546 ,set)
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2548 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2549 ac_cache_corrupted=: ;;
2550 ,);;
2552 if test "x$ac_old_val" != "x$ac_new_val"; then
2553 # differences in whitespace do not lead to failure.
2554 ac_old_val_w=`echo x $ac_old_val`
2555 ac_new_val_w=`echo x $ac_new_val`
2556 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2558 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2559 ac_cache_corrupted=:
2560 else
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2562 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2563 eval $ac_var=\$ac_old_val
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2566 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2568 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2569 fi;;
2570 esac
2571 # Pass precious variables to config.status.
2572 if test "$ac_new_set" = set; then
2573 case $ac_new_val in
2574 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2575 *) ac_arg=$ac_var=$ac_new_val ;;
2576 esac
2577 case " $ac_configure_args " in
2578 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2579 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2580 esac
2582 done
2583 if $ac_cache_corrupted; then
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2585 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2587 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2588 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2590 ## -------------------- ##
2591 ## Main body of script. ##
2592 ## -------------------- ##
2594 ac_ext=c
2595 ac_cpp='$CPP $CPPFLAGS'
2596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2604 ac_config_headers="$ac_config_headers config.h"
2607 # -------
2608 # Options
2609 # -------
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2612 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2613 # Check whether --enable-version-specific-runtime-libs was given.
2614 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2615 enableval=$enable_version_specific_runtime_libs;
2616 case "$enableval" in
2617 yes|no) ;;
2618 *) as_fn_error "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2619 esac
2621 else
2622 enable_version_specific_runtime_libs=no
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2627 $as_echo "$enable_version_specific_runtime_libs" >&6; }
2629 # We would like our source tree to be readonly. However when releases or
2630 # pre-releases are generated, the flex/bison generated files as well as the
2631 # various formats of manuals need to be included along with the rest of the
2632 # sources. Therefore we have --enable-generated-files-in-srcdir to do
2633 # just that.
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2635 $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2636 # Check whether --enable-generated-files-in-srcdir was given.
2637 if test "${enable_generated_files_in_srcdir+set}" = set; then :
2638 enableval=$enable_generated_files_in_srcdir;
2639 case "$enableval" in
2640 yes|no) ;;
2641 *) as_fn_error "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2642 esac
2644 else
2645 enable_generated_files_in_srcdir=no
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2650 $as_echo "$enable_generated_files_in_srcdir" >&6; }
2651 if test "$enable_generated_files_in_srcdir" = yes; then
2652 GENINSRC_TRUE=
2653 GENINSRC_FALSE='#'
2654 else
2655 GENINSRC_TRUE='#'
2656 GENINSRC_FALSE=
2661 # -------
2662 # -------
2664 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2666 # You will slowly go insane if you do not grok the following fact: when
2667 # building this library, the top-level /target/ becomes the library's /host/.
2669 # configure then causes --target to default to --host, exactly like any
2670 # other package using autoconf. Therefore, 'target' and 'host' will
2671 # always be the same. This makes sense both for native and cross compilers
2672 # just think about it for a little while. :-)
2674 # Also, if this library is being configured as part of a cross compiler, the
2675 # top-level configure script will pass the "real" host as $with_cross_host.
2677 # Do not delete or change the following two lines. For why, see
2678 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2679 ac_aux_dir=
2680 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2681 for ac_t in install-sh install.sh shtool; do
2682 if test -f "$ac_dir/$ac_t"; then
2683 ac_aux_dir=$ac_dir
2684 ac_install_sh="$ac_aux_dir/$ac_t -c"
2685 break 2
2687 done
2688 done
2689 if test -z "$ac_aux_dir"; then
2690 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2693 # These three variables are undocumented and unsupported,
2694 # and are intended to be withdrawn in a future Autoconf release.
2695 # They can cause serious problems if a builder's source tree is in a directory
2696 # whose full name contains unusual characters.
2697 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2698 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2699 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2702 # Make sure we can run config.sub.
2703 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2704 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2707 $as_echo_n "checking build system type... " >&6; }
2708 if test "${ac_cv_build+set}" = set; then :
2709 $as_echo_n "(cached) " >&6
2710 else
2711 ac_build_alias=$build_alias
2712 test "x$ac_build_alias" = x &&
2713 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2714 test "x$ac_build_alias" = x &&
2715 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2716 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2717 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2721 $as_echo "$ac_cv_build" >&6; }
2722 case $ac_cv_build in
2723 *-*-*) ;;
2724 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2725 esac
2726 build=$ac_cv_build
2727 ac_save_IFS=$IFS; IFS='-'
2728 set x $ac_cv_build
2729 shift
2730 build_cpu=$1
2731 build_vendor=$2
2732 shift; shift
2733 # Remember, the first character of IFS is used to create $*,
2734 # except with old shells:
2735 build_os=$*
2736 IFS=$ac_save_IFS
2737 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2741 $as_echo_n "checking host system type... " >&6; }
2742 if test "${ac_cv_host+set}" = set; then :
2743 $as_echo_n "(cached) " >&6
2744 else
2745 if test "x$host_alias" = x; then
2746 ac_cv_host=$ac_cv_build
2747 else
2748 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2749 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2754 $as_echo "$ac_cv_host" >&6; }
2755 case $ac_cv_host in
2756 *-*-*) ;;
2757 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2758 esac
2759 host=$ac_cv_host
2760 ac_save_IFS=$IFS; IFS='-'
2761 set x $ac_cv_host
2762 shift
2763 host_cpu=$1
2764 host_vendor=$2
2765 shift; shift
2766 # Remember, the first character of IFS is used to create $*,
2767 # except with old shells:
2768 host_os=$*
2769 IFS=$ac_save_IFS
2770 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2774 $as_echo_n "checking target system type... " >&6; }
2775 if test "${ac_cv_target+set}" = set; then :
2776 $as_echo_n "(cached) " >&6
2777 else
2778 if test "x$target_alias" = x; then
2779 ac_cv_target=$ac_cv_host
2780 else
2781 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2782 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2787 $as_echo "$ac_cv_target" >&6; }
2788 case $ac_cv_target in
2789 *-*-*) ;;
2790 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2791 esac
2792 target=$ac_cv_target
2793 ac_save_IFS=$IFS; IFS='-'
2794 set x $ac_cv_target
2795 shift
2796 target_cpu=$1
2797 target_vendor=$2
2798 shift; shift
2799 # Remember, the first character of IFS is used to create $*,
2800 # except with old shells:
2801 target_os=$*
2802 IFS=$ac_save_IFS
2803 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2806 # The aliases save the names the user supplied, while $host etc.
2807 # will get canonicalized.
2808 test -n "$target_alias" &&
2809 test "$program_prefix$program_suffix$program_transform_name" = \
2810 NONENONEs,x,x, &&
2811 program_prefix=${target_alias}-
2813 target_alias=${target_alias-$host_alias}
2815 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2816 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2817 # 1.9.0: minimum required version
2818 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2819 # of other PACKAGE_* variables will, however, and there's nothing
2820 # we can do about that; they come from AC_INIT).
2821 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2822 # file in the top srcdir, etc, etc), so stop complaining.
2823 # no-dist: we don't want 'dist' and related rules.
2824 # -Wall: turns on all automake warnings...
2825 # -Wno-portability: ...except this one, since GNU make is required.
2826 # -Wno-override: ... and this one, since we do want this in testsuite.
2827 am__api_version='1.11'
2829 # Find a good install program. We prefer a C program (faster),
2830 # so one script is as good as another. But avoid the broken or
2831 # incompatible versions:
2832 # SysV /etc/install, /usr/sbin/install
2833 # SunOS /usr/etc/install
2834 # IRIX /sbin/install
2835 # AIX /bin/install
2836 # AmigaOS /C/install, which installs bootblocks on floppy discs
2837 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2838 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2839 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2840 # OS/2's system install, which has a completely different semantic
2841 # ./install, which can be erroneously created by make from ./install.sh.
2842 # Reject install programs that cannot install multiple files.
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2844 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2845 if test -z "$INSTALL"; then
2846 if test "${ac_cv_path_install+set}" = set; then :
2847 $as_echo_n "(cached) " >&6
2848 else
2849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850 for as_dir in $PATH
2852 IFS=$as_save_IFS
2853 test -z "$as_dir" && as_dir=.
2854 # Account for people who put trailing slashes in PATH elements.
2855 case $as_dir/ in #((
2856 ./ | .// | /[cC]/* | \
2857 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2858 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2859 /usr/ucb/* ) ;;
2861 # OSF1 and SCO ODT 3.0 have their own names for install.
2862 # Don't use installbsd from OSF since it installs stuff as root
2863 # by default.
2864 for ac_prog in ginstall scoinst install; do
2865 for ac_exec_ext in '' $ac_executable_extensions; do
2866 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2867 if test $ac_prog = install &&
2868 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2869 # AIX install. It has an incompatible calling convention.
2871 elif test $ac_prog = install &&
2872 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2873 # program-specific install script used by HP pwplus--don't use.
2875 else
2876 rm -rf conftest.one conftest.two conftest.dir
2877 echo one > conftest.one
2878 echo two > conftest.two
2879 mkdir conftest.dir
2880 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2881 test -s conftest.one && test -s conftest.two &&
2882 test -s conftest.dir/conftest.one &&
2883 test -s conftest.dir/conftest.two
2884 then
2885 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2886 break 3
2890 done
2891 done
2893 esac
2895 done
2896 IFS=$as_save_IFS
2898 rm -rf conftest.one conftest.two conftest.dir
2901 if test "${ac_cv_path_install+set}" = set; then
2902 INSTALL=$ac_cv_path_install
2903 else
2904 # As a last resort, use the slow shell script. Don't cache a
2905 # value for INSTALL within a source directory, because that will
2906 # break other packages using the cache if that directory is
2907 # removed, or if the value is a relative name.
2908 INSTALL=$ac_install_sh
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2912 $as_echo "$INSTALL" >&6; }
2914 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2915 # It thinks the first close brace ends the variable substitution.
2916 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2918 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2920 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2923 $as_echo_n "checking whether build environment is sane... " >&6; }
2924 # Just in case
2925 sleep 1
2926 echo timestamp > conftest.file
2927 # Reject unsafe characters in $srcdir or the absolute working directory
2928 # name. Accept space and tab only in the latter.
2929 am_lf='
2931 case `pwd` in
2932 *[\\\"\#\$\&\'\`$am_lf]*)
2933 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2934 esac
2935 case $srcdir in
2936 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2937 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2938 esac
2940 # Do `set' in a subshell so we don't clobber the current shell's
2941 # arguments. Must try -L first in case configure is actually a
2942 # symlink; some systems play weird games with the mod time of symlinks
2943 # (eg FreeBSD returns the mod time of the symlink's containing
2944 # directory).
2945 if (
2946 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2947 if test "$*" = "X"; then
2948 # -L didn't work.
2949 set X `ls -t "$srcdir/configure" conftest.file`
2951 rm -f conftest.file
2952 if test "$*" != "X $srcdir/configure conftest.file" \
2953 && test "$*" != "X conftest.file $srcdir/configure"; then
2955 # If neither matched, then we have a broken ls. This can happen
2956 # if, for instance, CONFIG_SHELL is bash and it inherits a
2957 # broken ls alias from the environment. This has actually
2958 # happened. Such a system could not be considered "sane".
2959 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2960 alias in your environment" "$LINENO" 5
2963 test "$2" = conftest.file
2965 then
2966 # Ok.
2968 else
2969 as_fn_error "newly created file is older than distributed files!
2970 Check your system clock" "$LINENO" 5
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2973 $as_echo "yes" >&6; }
2974 test "$program_prefix" != NONE &&
2975 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2976 # Use a double $ so make ignores it.
2977 test "$program_suffix" != NONE &&
2978 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2979 # Double any \ or $.
2980 # By default was `s,x,x', remove it if useless.
2981 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2982 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2984 # expand $ac_aux_dir to an absolute path
2985 am_aux_dir=`cd $ac_aux_dir && pwd`
2987 if test x"${MISSING+set}" != xset; then
2988 case $am_aux_dir in
2989 *\ * | *\ *)
2990 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2992 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2993 esac
2995 # Use eval to expand $SHELL
2996 if eval "$MISSING --run true"; then
2997 am_missing_run="$MISSING --run "
2998 else
2999 am_missing_run=
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3001 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3004 if test x"${install_sh}" != xset; then
3005 case $am_aux_dir in
3006 *\ * | *\ *)
3007 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3009 install_sh="\${SHELL} $am_aux_dir/install-sh"
3010 esac
3013 # Installed binaries are usually stripped using `strip' when the user
3014 # run `make install-strip'. However `strip' might not be the right
3015 # tool to use in cross-compilation environments, therefore Automake
3016 # will honor the `STRIP' environment variable to overrule this program.
3017 if test "$cross_compiling" != no; then
3018 if test -n "$ac_tool_prefix"; then
3019 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3020 set dummy ${ac_tool_prefix}strip; ac_word=$2
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3022 $as_echo_n "checking for $ac_word... " >&6; }
3023 if test "${ac_cv_prog_STRIP+set}" = set; then :
3024 $as_echo_n "(cached) " >&6
3025 else
3026 if test -n "$STRIP"; then
3027 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3028 else
3029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030 for as_dir in $PATH
3032 IFS=$as_save_IFS
3033 test -z "$as_dir" && as_dir=.
3034 for ac_exec_ext in '' $ac_executable_extensions; do
3035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3036 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3038 break 2
3040 done
3041 done
3042 IFS=$as_save_IFS
3046 STRIP=$ac_cv_prog_STRIP
3047 if test -n "$STRIP"; then
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3049 $as_echo "$STRIP" >&6; }
3050 else
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052 $as_echo "no" >&6; }
3057 if test -z "$ac_cv_prog_STRIP"; then
3058 ac_ct_STRIP=$STRIP
3059 # Extract the first word of "strip", so it can be a program name with args.
3060 set dummy strip; ac_word=$2
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3062 $as_echo_n "checking for $ac_word... " >&6; }
3063 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3064 $as_echo_n "(cached) " >&6
3065 else
3066 if test -n "$ac_ct_STRIP"; then
3067 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3068 else
3069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070 for as_dir in $PATH
3072 IFS=$as_save_IFS
3073 test -z "$as_dir" && as_dir=.
3074 for ac_exec_ext in '' $ac_executable_extensions; do
3075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3076 ac_cv_prog_ac_ct_STRIP="strip"
3077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3078 break 2
3080 done
3081 done
3082 IFS=$as_save_IFS
3086 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3087 if test -n "$ac_ct_STRIP"; then
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3089 $as_echo "$ac_ct_STRIP" >&6; }
3090 else
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3092 $as_echo "no" >&6; }
3095 if test "x$ac_ct_STRIP" = x; then
3096 STRIP=":"
3097 else
3098 case $cross_compiling:$ac_tool_warned in
3099 yes:)
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3101 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3102 ac_tool_warned=yes ;;
3103 esac
3104 STRIP=$ac_ct_STRIP
3106 else
3107 STRIP="$ac_cv_prog_STRIP"
3111 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3114 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3115 if test -z "$MKDIR_P"; then
3116 if test "${ac_cv_path_mkdir+set}" = set; then :
3117 $as_echo_n "(cached) " >&6
3118 else
3119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3120 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3122 IFS=$as_save_IFS
3123 test -z "$as_dir" && as_dir=.
3124 for ac_prog in mkdir gmkdir; do
3125 for ac_exec_ext in '' $ac_executable_extensions; do
3126 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3127 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3128 'mkdir (GNU coreutils) '* | \
3129 'mkdir (coreutils) '* | \
3130 'mkdir (fileutils) '4.1*)
3131 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3132 break 3;;
3133 esac
3134 done
3135 done
3136 done
3137 IFS=$as_save_IFS
3141 if test "${ac_cv_path_mkdir+set}" = set; then
3142 MKDIR_P="$ac_cv_path_mkdir -p"
3143 else
3144 # As a last resort, use the slow shell script. Don't cache a
3145 # value for MKDIR_P within a source directory, because that will
3146 # break other packages using the cache if that directory is
3147 # removed, or if the value is a relative name.
3148 test -d ./--version && rmdir ./--version
3149 MKDIR_P="$ac_install_sh -d"
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3153 $as_echo "$MKDIR_P" >&6; }
3155 mkdir_p="$MKDIR_P"
3156 case $mkdir_p in
3157 [\\/$]* | ?:[\\/]*) ;;
3158 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3159 esac
3161 for ac_prog in gawk mawk nawk awk
3163 # Extract the first word of "$ac_prog", so it can be a program name with args.
3164 set dummy $ac_prog; ac_word=$2
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3166 $as_echo_n "checking for $ac_word... " >&6; }
3167 if test "${ac_cv_prog_AWK+set}" = set; then :
3168 $as_echo_n "(cached) " >&6
3169 else
3170 if test -n "$AWK"; then
3171 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3172 else
3173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174 for as_dir in $PATH
3176 IFS=$as_save_IFS
3177 test -z "$as_dir" && as_dir=.
3178 for ac_exec_ext in '' $ac_executable_extensions; do
3179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3180 ac_cv_prog_AWK="$ac_prog"
3181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3182 break 2
3184 done
3185 done
3186 IFS=$as_save_IFS
3190 AWK=$ac_cv_prog_AWK
3191 if test -n "$AWK"; then
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3193 $as_echo "$AWK" >&6; }
3194 else
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3196 $as_echo "no" >&6; }
3200 test -n "$AWK" && break
3201 done
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3204 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3205 set x ${MAKE-make}
3206 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3207 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3208 $as_echo_n "(cached) " >&6
3209 else
3210 cat >conftest.make <<\_ACEOF
3211 SHELL = /bin/sh
3212 all:
3213 @echo '@@@%%%=$(MAKE)=@@@%%%'
3214 _ACEOF
3215 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3216 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3217 *@@@%%%=?*=@@@%%%*)
3218 eval ac_cv_prog_make_${ac_make}_set=yes;;
3220 eval ac_cv_prog_make_${ac_make}_set=no;;
3221 esac
3222 rm -f conftest.make
3224 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3226 $as_echo "yes" >&6; }
3227 SET_MAKE=
3228 else
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3230 $as_echo "no" >&6; }
3231 SET_MAKE="MAKE=${MAKE-make}"
3234 rm -rf .tst 2>/dev/null
3235 mkdir .tst 2>/dev/null
3236 if test -d .tst; then
3237 am__leading_dot=.
3238 else
3239 am__leading_dot=_
3241 rmdir .tst 2>/dev/null
3243 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3244 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3245 # is not polluted with repeated "-I."
3246 am__isrc=' -I$(srcdir)'
3247 # test to see if srcdir already configured
3248 if test -f $srcdir/config.status; then
3249 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3253 # test whether we have cygpath
3254 if test -z "$CYGPATH_W"; then
3255 if (cygpath --version) >/dev/null 2>/dev/null; then
3256 CYGPATH_W='cygpath -w'
3257 else
3258 CYGPATH_W=echo
3263 # Define the identity of the package.
3264 PACKAGE='libgomp'
3265 VERSION='1.0'
3268 cat >>confdefs.h <<_ACEOF
3269 #define PACKAGE "$PACKAGE"
3270 _ACEOF
3273 cat >>confdefs.h <<_ACEOF
3274 #define VERSION "$VERSION"
3275 _ACEOF
3277 # Some tools Automake needs.
3279 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3282 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3285 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3288 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3291 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3293 # We need awk for the "check" target. The system "awk" is bad on
3294 # some platforms.
3295 # Always define AMTAR for backward compatibility. Yes, it's still used
3296 # in the wild :-( We should find a proper way to deprecate it ...
3297 AMTAR='$${TAR-tar}'
3299 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3305 # Default to --enable-multilib
3306 # Check whether --enable-multilib was given.
3307 if test "${enable_multilib+set}" = set; then :
3308 enableval=$enable_multilib; case "$enableval" in
3309 yes) multilib=yes ;;
3310 no) multilib=no ;;
3311 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3312 esac
3313 else
3314 multilib=yes
3318 # We may get other options which we leave undocumented:
3319 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3320 # See config-ml.in if you want the gory details.
3322 if test "$srcdir" = "."; then
3323 if test "$with_target_subdir" != "."; then
3324 multi_basedir="$srcdir/$with_multisrctop../.."
3325 else
3326 multi_basedir="$srcdir/$with_multisrctop.."
3328 else
3329 multi_basedir="$srcdir/.."
3333 # Even if the default multilib is not a cross compilation,
3334 # it may be that some of the other multilibs are.
3335 if test $cross_compiling = no && test $multilib = yes \
3336 && test "x${with_multisubdir}" != x ; then
3337 cross_compiling=maybe
3340 ac_config_commands="$ac_config_commands default-1"
3343 # Calculate toolexeclibdir
3344 # Also toolexecdir, though it's only used in toolexeclibdir
3345 case ${enable_version_specific_runtime_libs} in
3346 yes)
3347 # Need the gcc compiler version to know where to install libraries
3348 # and header files if --enable-version-specific-runtime-libs option
3349 # is selected.
3350 toolexecdir='$(libdir)/gcc/$(target_alias)'
3351 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3354 if test -n "$with_cross_host" &&
3355 test x"$with_cross_host" != x"no"; then
3356 # Install a library built with a cross compiler in tooldir, not libdir.
3357 toolexecdir='$(exec_prefix)/$(target_alias)'
3358 toolexeclibdir='$(toolexecdir)/lib'
3359 else
3360 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3361 toolexeclibdir='$(libdir)'
3363 multi_os_directory=`$CC -print-multi-os-directory`
3364 case $multi_os_directory in
3365 .) ;; # Avoid trailing /.
3366 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3367 esac
3369 esac
3373 # Check the compiler.
3374 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3375 # We must force CC to /not/ be precious variables; otherwise
3376 # the wrong, non-multilib-adjusted value will be used in multilibs.
3377 # As a side effect, we have to subst CFLAGS ourselves.
3381 ac_ext=c
3382 ac_cpp='$CPP $CPPFLAGS'
3383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3386 if test -n "$ac_tool_prefix"; then
3387 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3388 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3390 $as_echo_n "checking for $ac_word... " >&6; }
3391 if test "${ac_cv_prog_CC+set}" = set; then :
3392 $as_echo_n "(cached) " >&6
3393 else
3394 if test -n "$CC"; then
3395 ac_cv_prog_CC="$CC" # Let the user override the test.
3396 else
3397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3398 for as_dir in $PATH
3400 IFS=$as_save_IFS
3401 test -z "$as_dir" && as_dir=.
3402 for ac_exec_ext in '' $ac_executable_extensions; do
3403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3404 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3406 break 2
3408 done
3409 done
3410 IFS=$as_save_IFS
3414 CC=$ac_cv_prog_CC
3415 if test -n "$CC"; then
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3417 $as_echo "$CC" >&6; }
3418 else
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3420 $as_echo "no" >&6; }
3425 if test -z "$ac_cv_prog_CC"; then
3426 ac_ct_CC=$CC
3427 # Extract the first word of "gcc", so it can be a program name with args.
3428 set dummy gcc; ac_word=$2
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3430 $as_echo_n "checking for $ac_word... " >&6; }
3431 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3432 $as_echo_n "(cached) " >&6
3433 else
3434 if test -n "$ac_ct_CC"; then
3435 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3436 else
3437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3438 for as_dir in $PATH
3440 IFS=$as_save_IFS
3441 test -z "$as_dir" && as_dir=.
3442 for ac_exec_ext in '' $ac_executable_extensions; do
3443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3444 ac_cv_prog_ac_ct_CC="gcc"
3445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3446 break 2
3448 done
3449 done
3450 IFS=$as_save_IFS
3454 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3455 if test -n "$ac_ct_CC"; then
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3457 $as_echo "$ac_ct_CC" >&6; }
3458 else
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3460 $as_echo "no" >&6; }
3463 if test "x$ac_ct_CC" = x; then
3464 CC=""
3465 else
3466 case $cross_compiling:$ac_tool_warned in
3467 yes:)
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3469 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3470 ac_tool_warned=yes ;;
3471 esac
3472 CC=$ac_ct_CC
3474 else
3475 CC="$ac_cv_prog_CC"
3478 if test -z "$CC"; then
3479 if test -n "$ac_tool_prefix"; then
3480 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3481 set dummy ${ac_tool_prefix}cc; ac_word=$2
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3483 $as_echo_n "checking for $ac_word... " >&6; }
3484 if test "${ac_cv_prog_CC+set}" = set; then :
3485 $as_echo_n "(cached) " >&6
3486 else
3487 if test -n "$CC"; then
3488 ac_cv_prog_CC="$CC" # Let the user override the test.
3489 else
3490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3491 for as_dir in $PATH
3493 IFS=$as_save_IFS
3494 test -z "$as_dir" && as_dir=.
3495 for ac_exec_ext in '' $ac_executable_extensions; do
3496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3497 ac_cv_prog_CC="${ac_tool_prefix}cc"
3498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3499 break 2
3501 done
3502 done
3503 IFS=$as_save_IFS
3507 CC=$ac_cv_prog_CC
3508 if test -n "$CC"; then
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3510 $as_echo "$CC" >&6; }
3511 else
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3513 $as_echo "no" >&6; }
3519 if test -z "$CC"; then
3520 # Extract the first word of "cc", so it can be a program name with args.
3521 set dummy cc; ac_word=$2
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3523 $as_echo_n "checking for $ac_word... " >&6; }
3524 if test "${ac_cv_prog_CC+set}" = set; then :
3525 $as_echo_n "(cached) " >&6
3526 else
3527 if test -n "$CC"; then
3528 ac_cv_prog_CC="$CC" # Let the user override the test.
3529 else
3530 ac_prog_rejected=no
3531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3532 for as_dir in $PATH
3534 IFS=$as_save_IFS
3535 test -z "$as_dir" && as_dir=.
3536 for ac_exec_ext in '' $ac_executable_extensions; do
3537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3538 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3539 ac_prog_rejected=yes
3540 continue
3542 ac_cv_prog_CC="cc"
3543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3544 break 2
3546 done
3547 done
3548 IFS=$as_save_IFS
3550 if test $ac_prog_rejected = yes; then
3551 # We found a bogon in the path, so make sure we never use it.
3552 set dummy $ac_cv_prog_CC
3553 shift
3554 if test $# != 0; then
3555 # We chose a different compiler from the bogus one.
3556 # However, it has the same basename, so the bogon will be chosen
3557 # first if we set CC to just the basename; use the full file name.
3558 shift
3559 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3564 CC=$ac_cv_prog_CC
3565 if test -n "$CC"; then
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3567 $as_echo "$CC" >&6; }
3568 else
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3570 $as_echo "no" >&6; }
3575 if test -z "$CC"; then
3576 if test -n "$ac_tool_prefix"; then
3577 for ac_prog in cl.exe
3579 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3580 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3582 $as_echo_n "checking for $ac_word... " >&6; }
3583 if test "${ac_cv_prog_CC+set}" = set; then :
3584 $as_echo_n "(cached) " >&6
3585 else
3586 if test -n "$CC"; then
3587 ac_cv_prog_CC="$CC" # Let the user override the test.
3588 else
3589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3590 for as_dir in $PATH
3592 IFS=$as_save_IFS
3593 test -z "$as_dir" && as_dir=.
3594 for ac_exec_ext in '' $ac_executable_extensions; do
3595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3596 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3598 break 2
3600 done
3601 done
3602 IFS=$as_save_IFS
3606 CC=$ac_cv_prog_CC
3607 if test -n "$CC"; then
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3609 $as_echo "$CC" >&6; }
3610 else
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3612 $as_echo "no" >&6; }
3616 test -n "$CC" && break
3617 done
3619 if test -z "$CC"; then
3620 ac_ct_CC=$CC
3621 for ac_prog in cl.exe
3623 # Extract the first word of "$ac_prog", so it can be a program name with args.
3624 set dummy $ac_prog; ac_word=$2
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3626 $as_echo_n "checking for $ac_word... " >&6; }
3627 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3628 $as_echo_n "(cached) " >&6
3629 else
3630 if test -n "$ac_ct_CC"; then
3631 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3632 else
3633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3634 for as_dir in $PATH
3636 IFS=$as_save_IFS
3637 test -z "$as_dir" && as_dir=.
3638 for ac_exec_ext in '' $ac_executable_extensions; do
3639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3640 ac_cv_prog_ac_ct_CC="$ac_prog"
3641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3642 break 2
3644 done
3645 done
3646 IFS=$as_save_IFS
3650 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3651 if test -n "$ac_ct_CC"; then
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3653 $as_echo "$ac_ct_CC" >&6; }
3654 else
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3656 $as_echo "no" >&6; }
3660 test -n "$ac_ct_CC" && break
3661 done
3663 if test "x$ac_ct_CC" = x; then
3664 CC=""
3665 else
3666 case $cross_compiling:$ac_tool_warned in
3667 yes:)
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3669 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3670 ac_tool_warned=yes ;;
3671 esac
3672 CC=$ac_ct_CC
3679 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3680 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3681 as_fn_error "no acceptable C compiler found in \$PATH
3682 See \`config.log' for more details." "$LINENO" 5; }
3684 # Provide some information about the compiler.
3685 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3686 set X $ac_compile
3687 ac_compiler=$2
3688 for ac_option in --version -v -V -qversion; do
3689 { { ac_try="$ac_compiler $ac_option >&5"
3690 case "(($ac_try" in
3691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3692 *) ac_try_echo=$ac_try;;
3693 esac
3694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3695 $as_echo "$ac_try_echo"; } >&5
3696 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3697 ac_status=$?
3698 if test -s conftest.err; then
3699 sed '10a\
3700 ... rest of stderr output deleted ...
3701 10q' conftest.err >conftest.er1
3702 cat conftest.er1 >&5
3703 rm -f conftest.er1 conftest.err
3705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3706 test $ac_status = 0; }
3707 done
3709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3710 /* end confdefs.h. */
3713 main ()
3717 return 0;
3719 _ACEOF
3720 ac_clean_files_save=$ac_clean_files
3721 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3722 # Try to create an executable without -o first, disregard a.out.
3723 # It will help us diagnose broken compilers, and finding out an intuition
3724 # of exeext.
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3726 $as_echo_n "checking for C compiler default output file name... " >&6; }
3727 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3729 # The possible output files:
3730 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3732 ac_rmfiles=
3733 for ac_file in $ac_files
3735 case $ac_file in
3736 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3737 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3738 esac
3739 done
3740 rm -f $ac_rmfiles
3742 if { { ac_try="$ac_link_default"
3743 case "(($ac_try" in
3744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3745 *) ac_try_echo=$ac_try;;
3746 esac
3747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3748 $as_echo "$ac_try_echo"; } >&5
3749 (eval "$ac_link_default") 2>&5
3750 ac_status=$?
3751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3752 test $ac_status = 0; }; then :
3753 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3754 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3755 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3756 # so that the user can short-circuit this test for compilers unknown to
3757 # Autoconf.
3758 for ac_file in $ac_files ''
3760 test -f "$ac_file" || continue
3761 case $ac_file in
3762 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3764 [ab].out )
3765 # We found the default executable, but exeext='' is most
3766 # certainly right.
3767 break;;
3768 *.* )
3769 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3770 then :; else
3771 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3773 # We set ac_cv_exeext here because the later test for it is not
3774 # safe: cross compilers may not add the suffix if given an `-o'
3775 # argument, so we may need to know it at that point already.
3776 # Even if this section looks crufty: it has the advantage of
3777 # actually working.
3778 break;;
3780 break;;
3781 esac
3782 done
3783 test "$ac_cv_exeext" = no && ac_cv_exeext=
3785 else
3786 ac_file=''
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3789 $as_echo "$ac_file" >&6; }
3790 if test -z "$ac_file"; then :
3791 $as_echo "$as_me: failed program was:" >&5
3792 sed 's/^/| /' conftest.$ac_ext >&5
3794 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3795 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3796 { as_fn_set_status 77
3797 as_fn_error "C compiler cannot create executables
3798 See \`config.log' for more details." "$LINENO" 5; }; }
3800 ac_exeext=$ac_cv_exeext
3802 # Check that the compiler produces executables we can run. If not, either
3803 # the compiler is broken, or we cross compile.
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3805 $as_echo_n "checking whether the C compiler works... " >&6; }
3806 # If not cross compiling, check that we can run a simple program.
3807 if test "$cross_compiling" != yes; then
3808 if { ac_try='./$ac_file'
3809 { { case "(($ac_try" in
3810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3811 *) ac_try_echo=$ac_try;;
3812 esac
3813 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3814 $as_echo "$ac_try_echo"; } >&5
3815 (eval "$ac_try") 2>&5
3816 ac_status=$?
3817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3818 test $ac_status = 0; }; }; then
3819 cross_compiling=no
3820 else
3821 if test "$cross_compiling" = maybe; then
3822 cross_compiling=yes
3823 else
3824 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3825 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3826 as_fn_error "cannot run C compiled programs.
3827 If you meant to cross compile, use \`--host'.
3828 See \`config.log' for more details." "$LINENO" 5; }
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3833 $as_echo "yes" >&6; }
3835 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3836 ac_clean_files=$ac_clean_files_save
3837 # Check that the compiler produces executables we can run. If not, either
3838 # the compiler is broken, or we cross compile.
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3840 $as_echo_n "checking whether we are cross compiling... " >&6; }
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3842 $as_echo "$cross_compiling" >&6; }
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3845 $as_echo_n "checking for suffix of executables... " >&6; }
3846 if { { ac_try="$ac_link"
3847 case "(($ac_try" in
3848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3849 *) ac_try_echo=$ac_try;;
3850 esac
3851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3852 $as_echo "$ac_try_echo"; } >&5
3853 (eval "$ac_link") 2>&5
3854 ac_status=$?
3855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3856 test $ac_status = 0; }; then :
3857 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3858 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3859 # work properly (i.e., refer to `conftest.exe'), while it won't with
3860 # `rm'.
3861 for ac_file in conftest.exe conftest conftest.*; do
3862 test -f "$ac_file" || continue
3863 case $ac_file in
3864 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3865 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3866 break;;
3867 * ) break;;
3868 esac
3869 done
3870 else
3871 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3872 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3873 as_fn_error "cannot compute suffix of executables: cannot compile and link
3874 See \`config.log' for more details." "$LINENO" 5; }
3876 rm -f conftest$ac_cv_exeext
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3878 $as_echo "$ac_cv_exeext" >&6; }
3880 rm -f conftest.$ac_ext
3881 EXEEXT=$ac_cv_exeext
3882 ac_exeext=$EXEEXT
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3884 $as_echo_n "checking for suffix of object files... " >&6; }
3885 if test "${ac_cv_objext+set}" = set; then :
3886 $as_echo_n "(cached) " >&6
3887 else
3888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3889 /* end confdefs.h. */
3892 main ()
3896 return 0;
3898 _ACEOF
3899 rm -f conftest.o conftest.obj
3900 if { { ac_try="$ac_compile"
3901 case "(($ac_try" in
3902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3903 *) ac_try_echo=$ac_try;;
3904 esac
3905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3906 $as_echo "$ac_try_echo"; } >&5
3907 (eval "$ac_compile") 2>&5
3908 ac_status=$?
3909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3910 test $ac_status = 0; }; then :
3911 for ac_file in conftest.o conftest.obj conftest.*; do
3912 test -f "$ac_file" || continue;
3913 case $ac_file in
3914 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3915 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3916 break;;
3917 esac
3918 done
3919 else
3920 $as_echo "$as_me: failed program was:" >&5
3921 sed 's/^/| /' conftest.$ac_ext >&5
3923 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3924 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3925 as_fn_error "cannot compute suffix of object files: cannot compile
3926 See \`config.log' for more details." "$LINENO" 5; }
3928 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3931 $as_echo "$ac_cv_objext" >&6; }
3932 OBJEXT=$ac_cv_objext
3933 ac_objext=$OBJEXT
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3935 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3936 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3937 $as_echo_n "(cached) " >&6
3938 else
3939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3940 /* end confdefs.h. */
3943 main ()
3945 #ifndef __GNUC__
3946 choke me
3947 #endif
3950 return 0;
3952 _ACEOF
3953 if ac_fn_c_try_compile "$LINENO"; then :
3954 ac_compiler_gnu=yes
3955 else
3956 ac_compiler_gnu=no
3958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3959 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3963 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3964 if test $ac_compiler_gnu = yes; then
3965 GCC=yes
3966 else
3967 GCC=
3969 ac_test_CFLAGS=${CFLAGS+set}
3970 ac_save_CFLAGS=$CFLAGS
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3972 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3973 if test "${ac_cv_prog_cc_g+set}" = set; then :
3974 $as_echo_n "(cached) " >&6
3975 else
3976 ac_save_c_werror_flag=$ac_c_werror_flag
3977 ac_c_werror_flag=yes
3978 ac_cv_prog_cc_g=no
3979 CFLAGS="-g"
3980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3981 /* end confdefs.h. */
3984 main ()
3988 return 0;
3990 _ACEOF
3991 if ac_fn_c_try_compile "$LINENO"; then :
3992 ac_cv_prog_cc_g=yes
3993 else
3994 CFLAGS=""
3995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3996 /* end confdefs.h. */
3999 main ()
4003 return 0;
4005 _ACEOF
4006 if ac_fn_c_try_compile "$LINENO"; then :
4008 else
4009 ac_c_werror_flag=$ac_save_c_werror_flag
4010 CFLAGS="-g"
4011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4012 /* end confdefs.h. */
4015 main ()
4019 return 0;
4021 _ACEOF
4022 if ac_fn_c_try_compile "$LINENO"; then :
4023 ac_cv_prog_cc_g=yes
4025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4030 ac_c_werror_flag=$ac_save_c_werror_flag
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4033 $as_echo "$ac_cv_prog_cc_g" >&6; }
4034 if test "$ac_test_CFLAGS" = set; then
4035 CFLAGS=$ac_save_CFLAGS
4036 elif test $ac_cv_prog_cc_g = yes; then
4037 if test "$GCC" = yes; then
4038 CFLAGS="-g -O2"
4039 else
4040 CFLAGS="-g"
4042 else
4043 if test "$GCC" = yes; then
4044 CFLAGS="-O2"
4045 else
4046 CFLAGS=
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4050 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4051 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4052 $as_echo_n "(cached) " >&6
4053 else
4054 ac_cv_prog_cc_c89=no
4055 ac_save_CC=$CC
4056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4057 /* end confdefs.h. */
4058 #include <stdarg.h>
4059 #include <stdio.h>
4060 #include <sys/types.h>
4061 #include <sys/stat.h>
4062 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4063 struct buf { int x; };
4064 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4065 static char *e (p, i)
4066 char **p;
4067 int i;
4069 return p[i];
4071 static char *f (char * (*g) (char **, int), char **p, ...)
4073 char *s;
4074 va_list v;
4075 va_start (v,p);
4076 s = g (p, va_arg (v,int));
4077 va_end (v);
4078 return s;
4081 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4082 function prototypes and stuff, but not '\xHH' hex character constants.
4083 These don't provoke an error unfortunately, instead are silently treated
4084 as 'x'. The following induces an error, until -std is added to get
4085 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4086 array size at least. It's necessary to write '\x00'==0 to get something
4087 that's true only with -std. */
4088 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4090 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4091 inside strings and character constants. */
4092 #define FOO(x) 'x'
4093 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4095 int test (int i, double x);
4096 struct s1 {int (*f) (int a);};
4097 struct s2 {int (*f) (double a);};
4098 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4099 int argc;
4100 char **argv;
4102 main ()
4104 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4106 return 0;
4108 _ACEOF
4109 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4110 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4112 CC="$ac_save_CC $ac_arg"
4113 if ac_fn_c_try_compile "$LINENO"; then :
4114 ac_cv_prog_cc_c89=$ac_arg
4116 rm -f core conftest.err conftest.$ac_objext
4117 test "x$ac_cv_prog_cc_c89" != "xno" && break
4118 done
4119 rm -f conftest.$ac_ext
4120 CC=$ac_save_CC
4123 # AC_CACHE_VAL
4124 case "x$ac_cv_prog_cc_c89" in
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4127 $as_echo "none needed" >&6; } ;;
4128 xno)
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4130 $as_echo "unsupported" >&6; } ;;
4132 CC="$CC $ac_cv_prog_cc_c89"
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4134 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4135 esac
4136 if test "x$ac_cv_prog_cc_c89" != xno; then :
4140 ac_ext=c
4141 ac_cpp='$CPP $CPPFLAGS'
4142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4145 DEPDIR="${am__leading_dot}deps"
4147 ac_config_commands="$ac_config_commands depfiles"
4150 am_make=${MAKE-make}
4151 cat > confinc << 'END'
4152 am__doit:
4153 @echo this is the am__doit target
4154 .PHONY: am__doit
4156 # If we don't find an include directive, just comment out the code.
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4158 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4159 am__include="#"
4160 am__quote=
4161 _am_result=none
4162 # First try GNU make style include.
4163 echo "include confinc" > confmf
4164 # Ignore all kinds of additional output from `make'.
4165 case `$am_make -s -f confmf 2> /dev/null` in #(
4166 *the\ am__doit\ target*)
4167 am__include=include
4168 am__quote=
4169 _am_result=GNU
4171 esac
4172 # Now try BSD make style include.
4173 if test "$am__include" = "#"; then
4174 echo '.include "confinc"' > confmf
4175 case `$am_make -s -f confmf 2> /dev/null` in #(
4176 *the\ am__doit\ target*)
4177 am__include=.include
4178 am__quote="\""
4179 _am_result=BSD
4181 esac
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4186 $as_echo "$_am_result" >&6; }
4187 rm -f confinc confmf
4189 # Check whether --enable-dependency-tracking was given.
4190 if test "${enable_dependency_tracking+set}" = set; then :
4191 enableval=$enable_dependency_tracking;
4194 if test "x$enable_dependency_tracking" != xno; then
4195 am_depcomp="$ac_aux_dir/depcomp"
4196 AMDEPBACKSLASH='\'
4197 am__nodep='_no'
4199 if test "x$enable_dependency_tracking" != xno; then
4200 AMDEP_TRUE=
4201 AMDEP_FALSE='#'
4202 else
4203 AMDEP_TRUE='#'
4204 AMDEP_FALSE=
4209 depcc="$CC" am_compiler_list=
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4212 $as_echo_n "checking dependency style of $depcc... " >&6; }
4213 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4214 $as_echo_n "(cached) " >&6
4215 else
4216 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4217 # We make a subdir and do the tests there. Otherwise we can end up
4218 # making bogus files that we don't know about and never remove. For
4219 # instance it was reported that on HP-UX the gcc test will end up
4220 # making a dummy file named `D' -- because `-MD' means `put the output
4221 # in D'.
4222 rm -rf conftest.dir
4223 mkdir conftest.dir
4224 # Copy depcomp to subdir because otherwise we won't find it if we're
4225 # using a relative directory.
4226 cp "$am_depcomp" conftest.dir
4227 cd conftest.dir
4228 # We will build objects and dependencies in a subdirectory because
4229 # it helps to detect inapplicable dependency modes. For instance
4230 # both Tru64's cc and ICC support -MD to output dependencies as a
4231 # side effect of compilation, but ICC will put the dependencies in
4232 # the current directory while Tru64 will put them in the object
4233 # directory.
4234 mkdir sub
4236 am_cv_CC_dependencies_compiler_type=none
4237 if test "$am_compiler_list" = ""; then
4238 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4240 am__universal=false
4241 case " $depcc " in #(
4242 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4243 esac
4245 for depmode in $am_compiler_list; do
4246 # Setup a source with many dependencies, because some compilers
4247 # like to wrap large dependency lists on column 80 (with \), and
4248 # we should not choose a depcomp mode which is confused by this.
4250 # We need to recreate these files for each test, as the compiler may
4251 # overwrite some of them when testing with obscure command lines.
4252 # This happens at least with the AIX C compiler.
4253 : > sub/conftest.c
4254 for i in 1 2 3 4 5 6; do
4255 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4256 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4257 # Solaris 8's {/usr,}/bin/sh.
4258 touch sub/conftst$i.h
4259 done
4260 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4262 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4263 # mode. It turns out that the SunPro C++ compiler does not properly
4264 # handle `-M -o', and we need to detect this. Also, some Intel
4265 # versions had trouble with output in subdirs
4266 am__obj=sub/conftest.${OBJEXT-o}
4267 am__minus_obj="-o $am__obj"
4268 case $depmode in
4269 gcc)
4270 # This depmode causes a compiler race in universal mode.
4271 test "$am__universal" = false || continue
4273 nosideeffect)
4274 # after this tag, mechanisms are not by side-effect, so they'll
4275 # only be used when explicitly requested
4276 if test "x$enable_dependency_tracking" = xyes; then
4277 continue
4278 else
4279 break
4282 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4283 # This compiler won't grok `-c -o', but also, the minuso test has
4284 # not run yet. These depmodes are late enough in the game, and
4285 # so weak that their functioning should not be impacted.
4286 am__obj=conftest.${OBJEXT-o}
4287 am__minus_obj=
4289 none) break ;;
4290 esac
4291 if depmode=$depmode \
4292 source=sub/conftest.c object=$am__obj \
4293 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4294 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4295 >/dev/null 2>conftest.err &&
4296 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4297 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4298 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4299 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4300 # icc doesn't choke on unknown options, it will just issue warnings
4301 # or remarks (even with -Werror). So we grep stderr for any message
4302 # that says an option was ignored or not supported.
4303 # When given -MP, icc 7.0 and 7.1 complain thusly:
4304 # icc: Command line warning: ignoring option '-M'; no argument required
4305 # The diagnosis changed in icc 8.0:
4306 # icc: Command line remark: option '-MP' not supported
4307 if (grep 'ignoring option' conftest.err ||
4308 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4309 am_cv_CC_dependencies_compiler_type=$depmode
4310 break
4313 done
4315 cd ..
4316 rm -rf conftest.dir
4317 else
4318 am_cv_CC_dependencies_compiler_type=none
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4323 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4324 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4327 test "x$enable_dependency_tracking" != xno \
4328 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4329 am__fastdepCC_TRUE=
4330 am__fastdepCC_FALSE='#'
4331 else
4332 am__fastdepCC_TRUE='#'
4333 am__fastdepCC_FALSE=
4341 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
4342 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
4343 # in both places for now and restore CFLAGS at the end of config.
4344 save_CFLAGS="$CFLAGS"
4346 # Add -Wall -Werror if we are using GCC.
4347 if test "x$GCC" = "xyes"; then
4348 XCFLAGS="$XCFLAGS -Wall -Werror"
4351 # Find other programs we need.
4352 if test -n "$ac_tool_prefix"; then
4353 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4354 set dummy ${ac_tool_prefix}ar; ac_word=$2
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4356 $as_echo_n "checking for $ac_word... " >&6; }
4357 if test "${ac_cv_prog_AR+set}" = set; then :
4358 $as_echo_n "(cached) " >&6
4359 else
4360 if test -n "$AR"; then
4361 ac_cv_prog_AR="$AR" # Let the user override the test.
4362 else
4363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4364 for as_dir in $PATH
4366 IFS=$as_save_IFS
4367 test -z "$as_dir" && as_dir=.
4368 for ac_exec_ext in '' $ac_executable_extensions; do
4369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4370 ac_cv_prog_AR="${ac_tool_prefix}ar"
4371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4372 break 2
4374 done
4375 done
4376 IFS=$as_save_IFS
4380 AR=$ac_cv_prog_AR
4381 if test -n "$AR"; then
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4383 $as_echo "$AR" >&6; }
4384 else
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4386 $as_echo "no" >&6; }
4391 if test -z "$ac_cv_prog_AR"; then
4392 ac_ct_AR=$AR
4393 # Extract the first word of "ar", so it can be a program name with args.
4394 set dummy ar; ac_word=$2
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4396 $as_echo_n "checking for $ac_word... " >&6; }
4397 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4398 $as_echo_n "(cached) " >&6
4399 else
4400 if test -n "$ac_ct_AR"; then
4401 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4402 else
4403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4404 for as_dir in $PATH
4406 IFS=$as_save_IFS
4407 test -z "$as_dir" && as_dir=.
4408 for ac_exec_ext in '' $ac_executable_extensions; do
4409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4410 ac_cv_prog_ac_ct_AR="ar"
4411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4412 break 2
4414 done
4415 done
4416 IFS=$as_save_IFS
4420 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4421 if test -n "$ac_ct_AR"; then
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4423 $as_echo "$ac_ct_AR" >&6; }
4424 else
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4426 $as_echo "no" >&6; }
4429 if test "x$ac_ct_AR" = x; then
4430 AR=""
4431 else
4432 case $cross_compiling:$ac_tool_warned in
4433 yes:)
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4435 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4436 ac_tool_warned=yes ;;
4437 esac
4438 AR=$ac_ct_AR
4440 else
4441 AR="$ac_cv_prog_AR"
4444 if test -n "$ac_tool_prefix"; then
4445 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4446 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4448 $as_echo_n "checking for $ac_word... " >&6; }
4449 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4450 $as_echo_n "(cached) " >&6
4451 else
4452 if test -n "$RANLIB"; then
4453 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4454 else
4455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4456 for as_dir in $PATH
4458 IFS=$as_save_IFS
4459 test -z "$as_dir" && as_dir=.
4460 for ac_exec_ext in '' $ac_executable_extensions; do
4461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4462 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4464 break 2
4466 done
4467 done
4468 IFS=$as_save_IFS
4472 RANLIB=$ac_cv_prog_RANLIB
4473 if test -n "$RANLIB"; then
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4475 $as_echo "$RANLIB" >&6; }
4476 else
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4478 $as_echo "no" >&6; }
4483 if test -z "$ac_cv_prog_RANLIB"; then
4484 ac_ct_RANLIB=$RANLIB
4485 # Extract the first word of "ranlib", so it can be a program name with args.
4486 set dummy ranlib; ac_word=$2
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4488 $as_echo_n "checking for $ac_word... " >&6; }
4489 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4490 $as_echo_n "(cached) " >&6
4491 else
4492 if test -n "$ac_ct_RANLIB"; then
4493 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4494 else
4495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4496 for as_dir in $PATH
4498 IFS=$as_save_IFS
4499 test -z "$as_dir" && as_dir=.
4500 for ac_exec_ext in '' $ac_executable_extensions; do
4501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4502 ac_cv_prog_ac_ct_RANLIB="ranlib"
4503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4504 break 2
4506 done
4507 done
4508 IFS=$as_save_IFS
4512 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4513 if test -n "$ac_ct_RANLIB"; then
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4515 $as_echo "$ac_ct_RANLIB" >&6; }
4516 else
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4518 $as_echo "no" >&6; }
4521 if test "x$ac_ct_RANLIB" = x; then
4522 RANLIB="ranlib-not-found-in-path-error"
4523 else
4524 case $cross_compiling:$ac_tool_warned in
4525 yes:)
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4528 ac_tool_warned=yes ;;
4529 esac
4530 RANLIB=$ac_ct_RANLIB
4532 else
4533 RANLIB="$ac_cv_prog_RANLIB"
4536 # Extract the first word of "perl", so it can be a program name with args.
4537 set dummy perl; ac_word=$2
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4539 $as_echo_n "checking for $ac_word... " >&6; }
4540 if test "${ac_cv_path_PERL+set}" = set; then :
4541 $as_echo_n "(cached) " >&6
4542 else
4543 case $PERL in
4544 [\\/]* | ?:[\\/]*)
4545 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4549 for as_dir in $PATH
4551 IFS=$as_save_IFS
4552 test -z "$as_dir" && as_dir=.
4553 for ac_exec_ext in '' $ac_executable_extensions; do
4554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4555 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4557 break 2
4559 done
4560 done
4561 IFS=$as_save_IFS
4563 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
4565 esac
4567 PERL=$ac_cv_path_PERL
4568 if test -n "$PERL"; then
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4570 $as_echo "$PERL" >&6; }
4571 else
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4573 $as_echo "no" >&6; }
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4578 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4579 set x ${MAKE-make}
4580 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4581 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4582 $as_echo_n "(cached) " >&6
4583 else
4584 cat >conftest.make <<\_ACEOF
4585 SHELL = /bin/sh
4586 all:
4587 @echo '@@@%%%=$(MAKE)=@@@%%%'
4588 _ACEOF
4589 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4590 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4591 *@@@%%%=?*=@@@%%%*)
4592 eval ac_cv_prog_make_${ac_make}_set=yes;;
4594 eval ac_cv_prog_make_${ac_make}_set=no;;
4595 esac
4596 rm -f conftest.make
4598 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4600 $as_echo "yes" >&6; }
4601 SET_MAKE=
4602 else
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4604 $as_echo "no" >&6; }
4605 SET_MAKE="MAKE=${MAKE-make}"
4610 # See if makeinfo has been installed and is modern enough
4611 # that we can use it.
4613 # Extract the first word of "makeinfo", so it can be a program name with args.
4614 set dummy makeinfo; ac_word=$2
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4616 $as_echo_n "checking for $ac_word... " >&6; }
4617 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
4618 $as_echo_n "(cached) " >&6
4619 else
4620 if test -n "$MAKEINFO"; then
4621 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4622 else
4623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4624 for as_dir in $PATH
4626 IFS=$as_save_IFS
4627 test -z "$as_dir" && as_dir=.
4628 for ac_exec_ext in '' $ac_executable_extensions; do
4629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4630 ac_cv_prog_MAKEINFO="makeinfo"
4631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4632 break 2
4634 done
4635 done
4636 IFS=$as_save_IFS
4640 MAKEINFO=$ac_cv_prog_MAKEINFO
4641 if test -n "$MAKEINFO"; then
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4643 $as_echo "$MAKEINFO" >&6; }
4644 else
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4646 $as_echo "no" >&6; }
4650 if test -n "$MAKEINFO"; then
4651 # Found it, now check the version.
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
4653 $as_echo_n "checking for modern makeinfo... " >&6; }
4654 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
4655 $as_echo_n "(cached) " >&6
4656 else
4657 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
4658 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4660 case $ac_prog_version in
4661 '') gcc_cv_prog_makeinfo_modern=no;;
4662 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
4663 *) gcc_cv_prog_makeinfo_modern=no;;
4664 esac
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
4668 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
4669 else
4670 gcc_cv_prog_makeinfo_modern=no
4672 if test $gcc_cv_prog_makeinfo_modern = no; then
4673 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
4676 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
4677 BUILD_INFO_TRUE=
4678 BUILD_INFO_FALSE='#'
4679 else
4680 BUILD_INFO_TRUE='#'
4681 BUILD_INFO_FALSE=
4686 # Configure libtool
4687 case `pwd` in
4688 *\ * | *\ *)
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4690 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4691 esac
4695 macro_version='2.2.7a'
4696 macro_revision='1.3134'
4710 ltmain="$ac_aux_dir/ltmain.sh"
4712 # Backslashify metacharacters that are still active within
4713 # double-quoted strings.
4714 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4716 # Same as above, but do not quote variable references.
4717 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4719 # Sed substitution to delay expansion of an escaped shell variable in a
4720 # double_quote_subst'ed string.
4721 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4723 # Sed substitution to delay expansion of an escaped single quote.
4724 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4726 # Sed substitution to avoid accidental globbing in evaled expressions
4727 no_glob_subst='s/\*/\\\*/g'
4729 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4730 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4731 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4734 $as_echo_n "checking how to print strings... " >&6; }
4735 # Test print first, because it will be a builtin if present.
4736 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4737 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4738 ECHO='print -r --'
4739 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4740 ECHO='printf %s\n'
4741 else
4742 # Use this function as a fallback that always works.
4743 func_fallback_echo ()
4745 eval 'cat <<_LTECHO_EOF
4747 _LTECHO_EOF'
4749 ECHO='func_fallback_echo'
4752 # func_echo_all arg...
4753 # Invoke $ECHO with all args, space-separated.
4754 func_echo_all ()
4756 $ECHO ""
4759 case "$ECHO" in
4760 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4761 $as_echo "printf" >&6; } ;;
4762 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4763 $as_echo "print -r" >&6; } ;;
4764 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4765 $as_echo "cat" >&6; } ;;
4766 esac
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4782 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4783 if test "${ac_cv_path_SED+set}" = set; then :
4784 $as_echo_n "(cached) " >&6
4785 else
4786 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4787 for ac_i in 1 2 3 4 5 6 7; do
4788 ac_script="$ac_script$as_nl$ac_script"
4789 done
4790 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4791 { ac_script=; unset ac_script;}
4792 if test -z "$SED"; then
4793 ac_path_SED_found=false
4794 # Loop through the user's path and test for each of PROGNAME-LIST
4795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4796 for as_dir in $PATH
4798 IFS=$as_save_IFS
4799 test -z "$as_dir" && as_dir=.
4800 for ac_prog in sed gsed; do
4801 for ac_exec_ext in '' $ac_executable_extensions; do
4802 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4803 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4804 # Check for GNU ac_path_SED and select it if it is found.
4805 # Check for GNU $ac_path_SED
4806 case `"$ac_path_SED" --version 2>&1` in
4807 *GNU*)
4808 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4810 ac_count=0
4811 $as_echo_n 0123456789 >"conftest.in"
4812 while :
4814 cat "conftest.in" "conftest.in" >"conftest.tmp"
4815 mv "conftest.tmp" "conftest.in"
4816 cp "conftest.in" "conftest.nl"
4817 $as_echo '' >> "conftest.nl"
4818 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4819 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4820 as_fn_arith $ac_count + 1 && ac_count=$as_val
4821 if test $ac_count -gt ${ac_path_SED_max-0}; then
4822 # Best one so far, save it but keep looking for a better one
4823 ac_cv_path_SED="$ac_path_SED"
4824 ac_path_SED_max=$ac_count
4826 # 10*(2^10) chars as input seems more than enough
4827 test $ac_count -gt 10 && break
4828 done
4829 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4830 esac
4832 $ac_path_SED_found && break 3
4833 done
4834 done
4835 done
4836 IFS=$as_save_IFS
4837 if test -z "$ac_cv_path_SED"; then
4838 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4840 else
4841 ac_cv_path_SED=$SED
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4846 $as_echo "$ac_cv_path_SED" >&6; }
4847 SED="$ac_cv_path_SED"
4848 rm -f conftest.sed
4850 test -z "$SED" && SED=sed
4851 Xsed="$SED -e 1s/^X//"
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4864 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4865 if test "${ac_cv_path_GREP+set}" = set; then :
4866 $as_echo_n "(cached) " >&6
4867 else
4868 if test -z "$GREP"; then
4869 ac_path_GREP_found=false
4870 # Loop through the user's path and test for each of PROGNAME-LIST
4871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4872 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4874 IFS=$as_save_IFS
4875 test -z "$as_dir" && as_dir=.
4876 for ac_prog in grep ggrep; do
4877 for ac_exec_ext in '' $ac_executable_extensions; do
4878 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4879 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4880 # Check for GNU ac_path_GREP and select it if it is found.
4881 # Check for GNU $ac_path_GREP
4882 case `"$ac_path_GREP" --version 2>&1` in
4883 *GNU*)
4884 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4886 ac_count=0
4887 $as_echo_n 0123456789 >"conftest.in"
4888 while :
4890 cat "conftest.in" "conftest.in" >"conftest.tmp"
4891 mv "conftest.tmp" "conftest.in"
4892 cp "conftest.in" "conftest.nl"
4893 $as_echo 'GREP' >> "conftest.nl"
4894 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4895 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4896 as_fn_arith $ac_count + 1 && ac_count=$as_val
4897 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4898 # Best one so far, save it but keep looking for a better one
4899 ac_cv_path_GREP="$ac_path_GREP"
4900 ac_path_GREP_max=$ac_count
4902 # 10*(2^10) chars as input seems more than enough
4903 test $ac_count -gt 10 && break
4904 done
4905 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4906 esac
4908 $ac_path_GREP_found && break 3
4909 done
4910 done
4911 done
4912 IFS=$as_save_IFS
4913 if test -z "$ac_cv_path_GREP"; then
4914 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4916 else
4917 ac_cv_path_GREP=$GREP
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4922 $as_echo "$ac_cv_path_GREP" >&6; }
4923 GREP="$ac_cv_path_GREP"
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4927 $as_echo_n "checking for egrep... " >&6; }
4928 if test "${ac_cv_path_EGREP+set}" = set; then :
4929 $as_echo_n "(cached) " >&6
4930 else
4931 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4932 then ac_cv_path_EGREP="$GREP -E"
4933 else
4934 if test -z "$EGREP"; then
4935 ac_path_EGREP_found=false
4936 # Loop through the user's path and test for each of PROGNAME-LIST
4937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4940 IFS=$as_save_IFS
4941 test -z "$as_dir" && as_dir=.
4942 for ac_prog in egrep; do
4943 for ac_exec_ext in '' $ac_executable_extensions; do
4944 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4945 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4946 # Check for GNU ac_path_EGREP and select it if it is found.
4947 # Check for GNU $ac_path_EGREP
4948 case `"$ac_path_EGREP" --version 2>&1` in
4949 *GNU*)
4950 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4952 ac_count=0
4953 $as_echo_n 0123456789 >"conftest.in"
4954 while :
4956 cat "conftest.in" "conftest.in" >"conftest.tmp"
4957 mv "conftest.tmp" "conftest.in"
4958 cp "conftest.in" "conftest.nl"
4959 $as_echo 'EGREP' >> "conftest.nl"
4960 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4961 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4962 as_fn_arith $ac_count + 1 && ac_count=$as_val
4963 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4964 # Best one so far, save it but keep looking for a better one
4965 ac_cv_path_EGREP="$ac_path_EGREP"
4966 ac_path_EGREP_max=$ac_count
4968 # 10*(2^10) chars as input seems more than enough
4969 test $ac_count -gt 10 && break
4970 done
4971 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4972 esac
4974 $ac_path_EGREP_found && break 3
4975 done
4976 done
4977 done
4978 IFS=$as_save_IFS
4979 if test -z "$ac_cv_path_EGREP"; then
4980 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4982 else
4983 ac_cv_path_EGREP=$EGREP
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4989 $as_echo "$ac_cv_path_EGREP" >&6; }
4990 EGREP="$ac_cv_path_EGREP"
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4994 $as_echo_n "checking for fgrep... " >&6; }
4995 if test "${ac_cv_path_FGREP+set}" = set; then :
4996 $as_echo_n "(cached) " >&6
4997 else
4998 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4999 then ac_cv_path_FGREP="$GREP -F"
5000 else
5001 if test -z "$FGREP"; then
5002 ac_path_FGREP_found=false
5003 # Loop through the user's path and test for each of PROGNAME-LIST
5004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5005 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5007 IFS=$as_save_IFS
5008 test -z "$as_dir" && as_dir=.
5009 for ac_prog in fgrep; do
5010 for ac_exec_ext in '' $ac_executable_extensions; do
5011 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5012 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5013 # Check for GNU ac_path_FGREP and select it if it is found.
5014 # Check for GNU $ac_path_FGREP
5015 case `"$ac_path_FGREP" --version 2>&1` in
5016 *GNU*)
5017 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5019 ac_count=0
5020 $as_echo_n 0123456789 >"conftest.in"
5021 while :
5023 cat "conftest.in" "conftest.in" >"conftest.tmp"
5024 mv "conftest.tmp" "conftest.in"
5025 cp "conftest.in" "conftest.nl"
5026 $as_echo 'FGREP' >> "conftest.nl"
5027 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5028 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5029 as_fn_arith $ac_count + 1 && ac_count=$as_val
5030 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5031 # Best one so far, save it but keep looking for a better one
5032 ac_cv_path_FGREP="$ac_path_FGREP"
5033 ac_path_FGREP_max=$ac_count
5035 # 10*(2^10) chars as input seems more than enough
5036 test $ac_count -gt 10 && break
5037 done
5038 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5039 esac
5041 $ac_path_FGREP_found && break 3
5042 done
5043 done
5044 done
5045 IFS=$as_save_IFS
5046 if test -z "$ac_cv_path_FGREP"; then
5047 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5049 else
5050 ac_cv_path_FGREP=$FGREP
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5056 $as_echo "$ac_cv_path_FGREP" >&6; }
5057 FGREP="$ac_cv_path_FGREP"
5060 test -z "$GREP" && GREP=grep
5080 # Check whether --with-gnu-ld was given.
5081 if test "${with_gnu_ld+set}" = set; then :
5082 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5083 else
5084 with_gnu_ld=no
5087 ac_prog=ld
5088 if test "$GCC" = yes; then
5089 # Check if gcc -print-prog-name=ld gives a path.
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5091 $as_echo_n "checking for ld used by $CC... " >&6; }
5092 case $host in
5093 *-*-mingw*)
5094 # gcc leaves a trailing carriage return which upsets mingw
5095 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5097 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5098 esac
5099 case $ac_prog in
5100 # Accept absolute paths.
5101 [\\/]* | ?:[\\/]*)
5102 re_direlt='/[^/][^/]*/\.\./'
5103 # Canonicalize the pathname of ld
5104 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5105 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5106 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5107 done
5108 test -z "$LD" && LD="$ac_prog"
5111 # If it fails, then pretend we aren't using GCC.
5112 ac_prog=ld
5115 # If it is relative, then search for the first ld in PATH.
5116 with_gnu_ld=unknown
5118 esac
5119 elif test "$with_gnu_ld" = yes; then
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5121 $as_echo_n "checking for GNU ld... " >&6; }
5122 else
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5124 $as_echo_n "checking for non-GNU ld... " >&6; }
5126 if test "${lt_cv_path_LD+set}" = set; then :
5127 $as_echo_n "(cached) " >&6
5128 else
5129 if test -z "$LD"; then
5130 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5131 for ac_dir in $PATH; do
5132 IFS="$lt_save_ifs"
5133 test -z "$ac_dir" && ac_dir=.
5134 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5135 lt_cv_path_LD="$ac_dir/$ac_prog"
5136 # Check to see if the program is GNU ld. I'd rather use --version,
5137 # but apparently some variants of GNU ld only accept -v.
5138 # Break only if it was the GNU/non-GNU ld that we prefer.
5139 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5140 *GNU* | *'with BFD'*)
5141 test "$with_gnu_ld" != no && break
5144 test "$with_gnu_ld" != yes && break
5146 esac
5148 done
5149 IFS="$lt_save_ifs"
5150 else
5151 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5155 LD="$lt_cv_path_LD"
5156 if test -n "$LD"; then
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5158 $as_echo "$LD" >&6; }
5159 else
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5161 $as_echo "no" >&6; }
5163 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5165 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5166 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5167 $as_echo_n "(cached) " >&6
5168 else
5169 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5170 case `$LD -v 2>&1 </dev/null` in
5171 *GNU* | *'with BFD'*)
5172 lt_cv_prog_gnu_ld=yes
5175 lt_cv_prog_gnu_ld=no
5177 esac
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5180 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5181 with_gnu_ld=$lt_cv_prog_gnu_ld
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5192 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5193 if test "${lt_cv_path_NM+set}" = set; then :
5194 $as_echo_n "(cached) " >&6
5195 else
5196 if test -n "$NM"; then
5197 # Let the user override the test.
5198 lt_cv_path_NM="$NM"
5199 else
5200 lt_nm_to_check="${ac_tool_prefix}nm"
5201 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5202 lt_nm_to_check="$lt_nm_to_check nm"
5204 for lt_tmp_nm in $lt_nm_to_check; do
5205 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5206 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5207 IFS="$lt_save_ifs"
5208 test -z "$ac_dir" && ac_dir=.
5209 tmp_nm="$ac_dir/$lt_tmp_nm"
5210 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5211 # Check to see if the nm accepts a BSD-compat flag.
5212 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5213 # nm: unknown option "B" ignored
5214 # Tru64's nm complains that /dev/null is an invalid object file
5215 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5216 */dev/null* | *'Invalid file or object type'*)
5217 lt_cv_path_NM="$tmp_nm -B"
5218 break
5221 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5222 */dev/null*)
5223 lt_cv_path_NM="$tmp_nm -p"
5224 break
5227 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5228 continue # so that we can try to find one that supports BSD flags
5230 esac
5232 esac
5234 done
5235 IFS="$lt_save_ifs"
5236 done
5237 : ${lt_cv_path_NM=no}
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5241 $as_echo "$lt_cv_path_NM" >&6; }
5242 if test "$lt_cv_path_NM" != "no"; then
5243 NM="$lt_cv_path_NM"
5244 else
5245 # Didn't find any BSD compatible name lister, look for dumpbin.
5246 if test -n "$DUMPBIN"; then :
5247 # Let the user override the test.
5248 else
5249 if test -n "$ac_tool_prefix"; then
5250 for ac_prog in dumpbin "link -dump"
5252 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5253 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5255 $as_echo_n "checking for $ac_word... " >&6; }
5256 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5257 $as_echo_n "(cached) " >&6
5258 else
5259 if test -n "$DUMPBIN"; then
5260 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5261 else
5262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5263 for as_dir in $PATH
5265 IFS=$as_save_IFS
5266 test -z "$as_dir" && as_dir=.
5267 for ac_exec_ext in '' $ac_executable_extensions; do
5268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5269 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5271 break 2
5273 done
5274 done
5275 IFS=$as_save_IFS
5279 DUMPBIN=$ac_cv_prog_DUMPBIN
5280 if test -n "$DUMPBIN"; then
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5282 $as_echo "$DUMPBIN" >&6; }
5283 else
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5285 $as_echo "no" >&6; }
5289 test -n "$DUMPBIN" && break
5290 done
5292 if test -z "$DUMPBIN"; then
5293 ac_ct_DUMPBIN=$DUMPBIN
5294 for ac_prog in dumpbin "link -dump"
5296 # Extract the first word of "$ac_prog", so it can be a program name with args.
5297 set dummy $ac_prog; ac_word=$2
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5299 $as_echo_n "checking for $ac_word... " >&6; }
5300 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5301 $as_echo_n "(cached) " >&6
5302 else
5303 if test -n "$ac_ct_DUMPBIN"; then
5304 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5305 else
5306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5307 for as_dir in $PATH
5309 IFS=$as_save_IFS
5310 test -z "$as_dir" && as_dir=.
5311 for ac_exec_ext in '' $ac_executable_extensions; do
5312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5313 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5315 break 2
5317 done
5318 done
5319 IFS=$as_save_IFS
5323 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5324 if test -n "$ac_ct_DUMPBIN"; then
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5326 $as_echo "$ac_ct_DUMPBIN" >&6; }
5327 else
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5329 $as_echo "no" >&6; }
5333 test -n "$ac_ct_DUMPBIN" && break
5334 done
5336 if test "x$ac_ct_DUMPBIN" = x; then
5337 DUMPBIN=":"
5338 else
5339 case $cross_compiling:$ac_tool_warned in
5340 yes:)
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5342 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5343 ac_tool_warned=yes ;;
5344 esac
5345 DUMPBIN=$ac_ct_DUMPBIN
5349 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5350 *COFF*)
5351 DUMPBIN="$DUMPBIN -symbols"
5354 DUMPBIN=:
5356 esac
5359 if test "$DUMPBIN" != ":"; then
5360 NM="$DUMPBIN"
5363 test -z "$NM" && NM=nm
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5371 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5372 if test "${lt_cv_nm_interface+set}" = set; then :
5373 $as_echo_n "(cached) " >&6
5374 else
5375 lt_cv_nm_interface="BSD nm"
5376 echo "int some_variable = 0;" > conftest.$ac_ext
5377 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5378 (eval "$ac_compile" 2>conftest.err)
5379 cat conftest.err >&5
5380 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5381 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5382 cat conftest.err >&5
5383 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5384 cat conftest.out >&5
5385 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5386 lt_cv_nm_interface="MS dumpbin"
5388 rm -f conftest*
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5391 $as_echo "$lt_cv_nm_interface" >&6; }
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5394 $as_echo_n "checking whether ln -s works... " >&6; }
5395 LN_S=$as_ln_s
5396 if test "$LN_S" = "ln -s"; then
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5398 $as_echo "yes" >&6; }
5399 else
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5401 $as_echo "no, using $LN_S" >&6; }
5404 # find the maximum length of command line arguments
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5406 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5407 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5408 $as_echo_n "(cached) " >&6
5409 else
5411 teststring="ABCD"
5413 case $build_os in
5414 msdosdjgpp*)
5415 # On DJGPP, this test can blow up pretty badly due to problems in libc
5416 # (any single argument exceeding 2000 bytes causes a buffer overrun
5417 # during glob expansion). Even if it were fixed, the result of this
5418 # check would be larger than it should be.
5419 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5422 gnu*)
5423 # Under GNU Hurd, this test is not required because there is
5424 # no limit to the length of command line arguments.
5425 # Libtool will interpret -1 as no limit whatsoever
5426 lt_cv_sys_max_cmd_len=-1;
5429 cygwin* | mingw* | cegcc*)
5430 # On Win9x/ME, this test blows up -- it succeeds, but takes
5431 # about 5 minutes as the teststring grows exponentially.
5432 # Worse, since 9x/ME are not pre-emptively multitasking,
5433 # you end up with a "frozen" computer, even though with patience
5434 # the test eventually succeeds (with a max line length of 256k).
5435 # Instead, let's just punt: use the minimum linelength reported by
5436 # all of the supported platforms: 8192 (on NT/2K/XP).
5437 lt_cv_sys_max_cmd_len=8192;
5440 mint*)
5441 # On MiNT this can take a long time and run out of memory.
5442 lt_cv_sys_max_cmd_len=8192;
5445 amigaos*)
5446 # On AmigaOS with pdksh, this test takes hours, literally.
5447 # So we just punt and use a minimum line length of 8192.
5448 lt_cv_sys_max_cmd_len=8192;
5451 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5452 # This has been around since 386BSD, at least. Likely further.
5453 if test -x /sbin/sysctl; then
5454 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5455 elif test -x /usr/sbin/sysctl; then
5456 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5457 else
5458 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5460 # And add a safety zone
5461 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5462 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5465 interix*)
5466 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5467 lt_cv_sys_max_cmd_len=196608
5470 osf*)
5471 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5472 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5473 # nice to cause kernel panics so lets avoid the loop below.
5474 # First set a reasonable default.
5475 lt_cv_sys_max_cmd_len=16384
5477 if test -x /sbin/sysconfig; then
5478 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5479 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5480 esac
5483 sco3.2v5*)
5484 lt_cv_sys_max_cmd_len=102400
5486 sysv5* | sco5v6* | sysv4.2uw2*)
5487 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5488 if test -n "$kargmax"; then
5489 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5490 else
5491 lt_cv_sys_max_cmd_len=32768
5495 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5496 if test -n "$lt_cv_sys_max_cmd_len"; then
5497 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5498 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5499 else
5500 # Make teststring a little bigger before we do anything with it.
5501 # a 1K string should be a reasonable start.
5502 for i in 1 2 3 4 5 6 7 8 ; do
5503 teststring=$teststring$teststring
5504 done
5505 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5506 # If test is not a shell built-in, we'll probably end up computing a
5507 # maximum length that is only half of the actual maximum length, but
5508 # we can't tell.
5509 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5510 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5511 test $i != 17 # 1/2 MB should be enough
5513 i=`expr $i + 1`
5514 teststring=$teststring$teststring
5515 done
5516 # Only check the string length outside the loop.
5517 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5518 teststring=
5519 # Add a significant safety factor because C++ compilers can tack on
5520 # massive amounts of additional arguments before passing them to the
5521 # linker. It appears as though 1/2 is a usable value.
5522 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5525 esac
5529 if test -n $lt_cv_sys_max_cmd_len ; then
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5531 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5532 else
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5534 $as_echo "none" >&6; }
5536 max_cmd_len=$lt_cv_sys_max_cmd_len
5543 : ${CP="cp -f"}
5544 : ${MV="mv -f"}
5545 : ${RM="rm -f"}
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5548 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5549 # Try some XSI features
5550 xsi_shell=no
5551 ( _lt_dummy="a/b/c"
5552 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5553 = c,a/b,, \
5554 && eval 'test $(( 1 + 1 )) -eq 2 \
5555 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5556 && xsi_shell=yes
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5558 $as_echo "$xsi_shell" >&6; }
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5562 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5563 lt_shell_append=no
5564 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5565 >/dev/null 2>&1 \
5566 && lt_shell_append=yes
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5568 $as_echo "$lt_shell_append" >&6; }
5571 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5572 lt_unset=unset
5573 else
5574 lt_unset=false
5581 # test EBCDIC or ASCII
5582 case `echo X|tr X '\101'` in
5583 A) # ASCII based system
5584 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5585 lt_SP2NL='tr \040 \012'
5586 lt_NL2SP='tr \015\012 \040\040'
5588 *) # EBCDIC based system
5589 lt_SP2NL='tr \100 \n'
5590 lt_NL2SP='tr \r\n \100\100'
5592 esac
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5603 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5604 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5605 $as_echo_n "(cached) " >&6
5606 else
5607 lt_cv_ld_reload_flag='-r'
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5610 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5611 reload_flag=$lt_cv_ld_reload_flag
5612 case $reload_flag in
5613 "" | " "*) ;;
5614 *) reload_flag=" $reload_flag" ;;
5615 esac
5616 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5617 case $host_os in
5618 darwin*)
5619 if test "$GCC" = yes; then
5620 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5621 else
5622 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5625 esac
5635 if test -n "$ac_tool_prefix"; then
5636 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5637 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5639 $as_echo_n "checking for $ac_word... " >&6; }
5640 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5641 $as_echo_n "(cached) " >&6
5642 else
5643 if test -n "$OBJDUMP"; then
5644 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5645 else
5646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5647 for as_dir in $PATH
5649 IFS=$as_save_IFS
5650 test -z "$as_dir" && as_dir=.
5651 for ac_exec_ext in '' $ac_executable_extensions; do
5652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5653 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5655 break 2
5657 done
5658 done
5659 IFS=$as_save_IFS
5663 OBJDUMP=$ac_cv_prog_OBJDUMP
5664 if test -n "$OBJDUMP"; then
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5666 $as_echo "$OBJDUMP" >&6; }
5667 else
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5669 $as_echo "no" >&6; }
5674 if test -z "$ac_cv_prog_OBJDUMP"; then
5675 ac_ct_OBJDUMP=$OBJDUMP
5676 # Extract the first word of "objdump", so it can be a program name with args.
5677 set dummy objdump; ac_word=$2
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5679 $as_echo_n "checking for $ac_word... " >&6; }
5680 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5681 $as_echo_n "(cached) " >&6
5682 else
5683 if test -n "$ac_ct_OBJDUMP"; then
5684 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5685 else
5686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5687 for as_dir in $PATH
5689 IFS=$as_save_IFS
5690 test -z "$as_dir" && as_dir=.
5691 for ac_exec_ext in '' $ac_executable_extensions; do
5692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5693 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5695 break 2
5697 done
5698 done
5699 IFS=$as_save_IFS
5703 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5704 if test -n "$ac_ct_OBJDUMP"; then
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5706 $as_echo "$ac_ct_OBJDUMP" >&6; }
5707 else
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5709 $as_echo "no" >&6; }
5712 if test "x$ac_ct_OBJDUMP" = x; then
5713 OBJDUMP="false"
5714 else
5715 case $cross_compiling:$ac_tool_warned in
5716 yes:)
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5718 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5719 ac_tool_warned=yes ;;
5720 esac
5721 OBJDUMP=$ac_ct_OBJDUMP
5723 else
5724 OBJDUMP="$ac_cv_prog_OBJDUMP"
5727 test -z "$OBJDUMP" && OBJDUMP=objdump
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5738 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5739 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5740 $as_echo_n "(cached) " >&6
5741 else
5742 lt_cv_file_magic_cmd='$MAGIC_CMD'
5743 lt_cv_file_magic_test_file=
5744 lt_cv_deplibs_check_method='unknown'
5745 # Need to set the preceding variable on all platforms that support
5746 # interlibrary dependencies.
5747 # 'none' -- dependencies not supported.
5748 # `unknown' -- same as none, but documents that we really don't know.
5749 # 'pass_all' -- all dependencies passed with no checks.
5750 # 'test_compile' -- check by making test program.
5751 # 'file_magic [[regex]]' -- check by looking for files in library path
5752 # which responds to the $file_magic_cmd with a given extended regex.
5753 # If you have `file' or equivalent on your system and you're not sure
5754 # whether `pass_all' will *always* work, you probably want this one.
5756 case $host_os in
5757 aix[4-9]*)
5758 lt_cv_deplibs_check_method=pass_all
5761 beos*)
5762 lt_cv_deplibs_check_method=pass_all
5765 bsdi[45]*)
5766 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5767 lt_cv_file_magic_cmd='/usr/bin/file -L'
5768 lt_cv_file_magic_test_file=/shlib/libc.so
5771 cygwin*)
5772 # func_win32_libid is a shell function defined in ltmain.sh
5773 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5774 lt_cv_file_magic_cmd='func_win32_libid'
5777 mingw* | pw32*)
5778 # Base MSYS/MinGW do not provide the 'file' command needed by
5779 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5780 # unless we find 'file', for example because we are cross-compiling.
5781 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5782 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5783 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5784 lt_cv_file_magic_cmd='func_win32_libid'
5785 else
5786 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5787 lt_cv_file_magic_cmd='$OBJDUMP -f'
5791 cegcc*)
5792 # use the weaker test based on 'objdump'. See mingw*.
5793 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5794 lt_cv_file_magic_cmd='$OBJDUMP -f'
5797 darwin* | rhapsody*)
5798 lt_cv_deplibs_check_method=pass_all
5801 freebsd* | dragonfly*)
5802 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5803 case $host_cpu in
5804 i*86 )
5805 # Not sure whether the presence of OpenBSD here was a mistake.
5806 # Let's accept both of them until this is cleared up.
5807 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5808 lt_cv_file_magic_cmd=/usr/bin/file
5809 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5811 esac
5812 else
5813 lt_cv_deplibs_check_method=pass_all
5817 gnu*)
5818 lt_cv_deplibs_check_method=pass_all
5821 haiku*)
5822 lt_cv_deplibs_check_method=pass_all
5825 hpux10.20* | hpux11*)
5826 lt_cv_file_magic_cmd=/usr/bin/file
5827 case $host_cpu in
5828 ia64*)
5829 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5830 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5832 hppa*64*)
5833 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]'
5834 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5837 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5838 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5840 esac
5843 interix[3-9]*)
5844 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5845 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5848 irix5* | irix6* | nonstopux*)
5849 case $LD in
5850 *-32|*"-32 ") libmagic=32-bit;;
5851 *-n32|*"-n32 ") libmagic=N32;;
5852 *-64|*"-64 ") libmagic=64-bit;;
5853 *) libmagic=never-match;;
5854 esac
5855 lt_cv_deplibs_check_method=pass_all
5858 # This must be Linux ELF.
5859 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5860 lt_cv_deplibs_check_method=pass_all
5863 netbsd*)
5864 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5865 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5866 else
5867 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5871 newos6*)
5872 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5873 lt_cv_file_magic_cmd=/usr/bin/file
5874 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5877 *nto* | *qnx*)
5878 lt_cv_deplibs_check_method=pass_all
5881 openbsd*)
5882 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5883 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5884 else
5885 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5889 osf3* | osf4* | osf5*)
5890 lt_cv_deplibs_check_method=pass_all
5893 rdos*)
5894 lt_cv_deplibs_check_method=pass_all
5897 solaris*)
5898 lt_cv_deplibs_check_method=pass_all
5901 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5902 lt_cv_deplibs_check_method=pass_all
5905 sysv4 | sysv4.3*)
5906 case $host_vendor in
5907 motorola)
5908 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]'
5909 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5911 ncr)
5912 lt_cv_deplibs_check_method=pass_all
5914 sequent)
5915 lt_cv_file_magic_cmd='/bin/file'
5916 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5918 sni)
5919 lt_cv_file_magic_cmd='/bin/file'
5920 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5921 lt_cv_file_magic_test_file=/lib/libc.so
5923 siemens)
5924 lt_cv_deplibs_check_method=pass_all
5927 lt_cv_deplibs_check_method=pass_all
5929 esac
5932 tpf*)
5933 lt_cv_deplibs_check_method=pass_all
5935 esac
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5939 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5940 file_magic_cmd=$lt_cv_file_magic_cmd
5941 deplibs_check_method=$lt_cv_deplibs_check_method
5942 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5955 if test -n "$ac_tool_prefix"; then
5956 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5957 set dummy ${ac_tool_prefix}ar; ac_word=$2
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5959 $as_echo_n "checking for $ac_word... " >&6; }
5960 if test "${ac_cv_prog_AR+set}" = set; then :
5961 $as_echo_n "(cached) " >&6
5962 else
5963 if test -n "$AR"; then
5964 ac_cv_prog_AR="$AR" # Let the user override the test.
5965 else
5966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5967 for as_dir in $PATH
5969 IFS=$as_save_IFS
5970 test -z "$as_dir" && as_dir=.
5971 for ac_exec_ext in '' $ac_executable_extensions; do
5972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5973 ac_cv_prog_AR="${ac_tool_prefix}ar"
5974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5975 break 2
5977 done
5978 done
5979 IFS=$as_save_IFS
5983 AR=$ac_cv_prog_AR
5984 if test -n "$AR"; then
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5986 $as_echo "$AR" >&6; }
5987 else
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5989 $as_echo "no" >&6; }
5994 if test -z "$ac_cv_prog_AR"; then
5995 ac_ct_AR=$AR
5996 # Extract the first word of "ar", so it can be a program name with args.
5997 set dummy ar; ac_word=$2
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5999 $as_echo_n "checking for $ac_word... " >&6; }
6000 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6001 $as_echo_n "(cached) " >&6
6002 else
6003 if test -n "$ac_ct_AR"; then
6004 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6005 else
6006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6007 for as_dir in $PATH
6009 IFS=$as_save_IFS
6010 test -z "$as_dir" && as_dir=.
6011 for ac_exec_ext in '' $ac_executable_extensions; do
6012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6013 ac_cv_prog_ac_ct_AR="ar"
6014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6015 break 2
6017 done
6018 done
6019 IFS=$as_save_IFS
6023 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6024 if test -n "$ac_ct_AR"; then
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6026 $as_echo "$ac_ct_AR" >&6; }
6027 else
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6029 $as_echo "no" >&6; }
6032 if test "x$ac_ct_AR" = x; then
6033 AR="false"
6034 else
6035 case $cross_compiling:$ac_tool_warned in
6036 yes:)
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6038 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6039 ac_tool_warned=yes ;;
6040 esac
6041 AR=$ac_ct_AR
6043 else
6044 AR="$ac_cv_prog_AR"
6047 test -z "$AR" && AR=ar
6048 test -z "$AR_FLAGS" && AR_FLAGS=cru
6060 if test -n "$ac_tool_prefix"; then
6061 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6062 set dummy ${ac_tool_prefix}strip; ac_word=$2
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6064 $as_echo_n "checking for $ac_word... " >&6; }
6065 if test "${ac_cv_prog_STRIP+set}" = set; then :
6066 $as_echo_n "(cached) " >&6
6067 else
6068 if test -n "$STRIP"; then
6069 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6070 else
6071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6072 for as_dir in $PATH
6074 IFS=$as_save_IFS
6075 test -z "$as_dir" && as_dir=.
6076 for ac_exec_ext in '' $ac_executable_extensions; do
6077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6078 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6080 break 2
6082 done
6083 done
6084 IFS=$as_save_IFS
6088 STRIP=$ac_cv_prog_STRIP
6089 if test -n "$STRIP"; then
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6091 $as_echo "$STRIP" >&6; }
6092 else
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6094 $as_echo "no" >&6; }
6099 if test -z "$ac_cv_prog_STRIP"; then
6100 ac_ct_STRIP=$STRIP
6101 # Extract the first word of "strip", so it can be a program name with args.
6102 set dummy strip; ac_word=$2
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6104 $as_echo_n "checking for $ac_word... " >&6; }
6105 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6106 $as_echo_n "(cached) " >&6
6107 else
6108 if test -n "$ac_ct_STRIP"; then
6109 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6110 else
6111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6112 for as_dir in $PATH
6114 IFS=$as_save_IFS
6115 test -z "$as_dir" && as_dir=.
6116 for ac_exec_ext in '' $ac_executable_extensions; do
6117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6118 ac_cv_prog_ac_ct_STRIP="strip"
6119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6120 break 2
6122 done
6123 done
6124 IFS=$as_save_IFS
6128 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6129 if test -n "$ac_ct_STRIP"; then
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6131 $as_echo "$ac_ct_STRIP" >&6; }
6132 else
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6134 $as_echo "no" >&6; }
6137 if test "x$ac_ct_STRIP" = x; then
6138 STRIP=":"
6139 else
6140 case $cross_compiling:$ac_tool_warned in
6141 yes:)
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6143 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6144 ac_tool_warned=yes ;;
6145 esac
6146 STRIP=$ac_ct_STRIP
6148 else
6149 STRIP="$ac_cv_prog_STRIP"
6152 test -z "$STRIP" && STRIP=:
6159 if test -n "$ac_tool_prefix"; then
6160 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6161 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6163 $as_echo_n "checking for $ac_word... " >&6; }
6164 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6165 $as_echo_n "(cached) " >&6
6166 else
6167 if test -n "$RANLIB"; then
6168 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6169 else
6170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6171 for as_dir in $PATH
6173 IFS=$as_save_IFS
6174 test -z "$as_dir" && as_dir=.
6175 for ac_exec_ext in '' $ac_executable_extensions; do
6176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6177 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6179 break 2
6181 done
6182 done
6183 IFS=$as_save_IFS
6187 RANLIB=$ac_cv_prog_RANLIB
6188 if test -n "$RANLIB"; then
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6190 $as_echo "$RANLIB" >&6; }
6191 else
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6193 $as_echo "no" >&6; }
6198 if test -z "$ac_cv_prog_RANLIB"; then
6199 ac_ct_RANLIB=$RANLIB
6200 # Extract the first word of "ranlib", so it can be a program name with args.
6201 set dummy ranlib; ac_word=$2
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6203 $as_echo_n "checking for $ac_word... " >&6; }
6204 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6205 $as_echo_n "(cached) " >&6
6206 else
6207 if test -n "$ac_ct_RANLIB"; then
6208 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6209 else
6210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6211 for as_dir in $PATH
6213 IFS=$as_save_IFS
6214 test -z "$as_dir" && as_dir=.
6215 for ac_exec_ext in '' $ac_executable_extensions; do
6216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6217 ac_cv_prog_ac_ct_RANLIB="ranlib"
6218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6219 break 2
6221 done
6222 done
6223 IFS=$as_save_IFS
6227 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6228 if test -n "$ac_ct_RANLIB"; then
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6230 $as_echo "$ac_ct_RANLIB" >&6; }
6231 else
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6233 $as_echo "no" >&6; }
6236 if test "x$ac_ct_RANLIB" = x; then
6237 RANLIB=":"
6238 else
6239 case $cross_compiling:$ac_tool_warned in
6240 yes:)
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6242 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6243 ac_tool_warned=yes ;;
6244 esac
6245 RANLIB=$ac_ct_RANLIB
6247 else
6248 RANLIB="$ac_cv_prog_RANLIB"
6251 test -z "$RANLIB" && RANLIB=:
6258 # Determine commands to create old-style static archives.
6259 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6260 old_postinstall_cmds='chmod 644 $oldlib'
6261 old_postuninstall_cmds=
6263 if test -n "$RANLIB"; then
6264 case $host_os in
6265 openbsd*)
6266 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6269 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6271 esac
6272 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6275 case $host_os in
6276 darwin*)
6277 lock_old_archive_extraction=yes ;;
6279 lock_old_archive_extraction=no ;;
6280 esac
6320 # If no C compiler was specified, use CC.
6321 LTCC=${LTCC-"$CC"}
6323 # If no C compiler flags were specified, use CFLAGS.
6324 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6326 # Allow CC to be a program name with arguments.
6327 compiler=$CC
6330 # Check for command to grab the raw symbol name followed by C symbol from nm.
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6332 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6333 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6334 $as_echo_n "(cached) " >&6
6335 else
6337 # These are sane defaults that work on at least a few old systems.
6338 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6340 # Character class describing NM global symbol codes.
6341 symcode='[BCDEGRST]'
6343 # Regexp to match symbols that can be accessed directly from C.
6344 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6346 # Define system-specific variables.
6347 case $host_os in
6348 aix*)
6349 symcode='[BCDT]'
6351 cygwin* | mingw* | pw32* | cegcc*)
6352 symcode='[ABCDGISTW]'
6354 hpux*)
6355 if test "$host_cpu" = ia64; then
6356 symcode='[ABCDEGRST]'
6359 irix* | nonstopux*)
6360 symcode='[BCDEGRST]'
6362 osf*)
6363 symcode='[BCDEGQRST]'
6365 solaris*)
6366 symcode='[BDRT]'
6368 sco3.2v5*)
6369 symcode='[DT]'
6371 sysv4.2uw2*)
6372 symcode='[DT]'
6374 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6375 symcode='[ABDT]'
6377 sysv4)
6378 symcode='[DFNSTU]'
6380 esac
6382 # If we're using GNU nm, then use its standard symbol codes.
6383 case `$NM -V 2>&1` in
6384 *GNU* | *'with BFD'*)
6385 symcode='[ABCDGIRSTW]' ;;
6386 esac
6388 # Transform an extracted symbol line into a proper C declaration.
6389 # Some systems (esp. on ia64) link data and code symbols differently,
6390 # so use this general approach.
6391 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6393 # Transform an extracted symbol line into symbol name and symbol address
6394 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6395 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'"
6397 # Handle CRLF in mingw tool chain
6398 opt_cr=
6399 case $build_os in
6400 mingw*)
6401 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6403 esac
6405 # Try without a prefix underscore, then with it.
6406 for ac_symprfx in "" "_"; do
6408 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6409 symxfrm="\\1 $ac_symprfx\\2 \\2"
6411 # Write the raw and C identifiers.
6412 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6413 # Fake it for dumpbin and say T for any non-static function
6414 # and D for any global variable.
6415 # Also find C++ and __fastcall symbols from MSVC++,
6416 # which start with @ or ?.
6417 lt_cv_sys_global_symbol_pipe="$AWK '"\
6418 " {last_section=section; section=\$ 3};"\
6419 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6420 " \$ 0!~/External *\|/{next};"\
6421 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6422 " {if(hide[section]) next};"\
6423 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6424 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6425 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6426 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6427 " ' prfx=^$ac_symprfx"
6428 else
6429 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6432 # Check to see that the pipe works correctly.
6433 pipe_works=no
6435 rm -f conftest*
6436 cat > conftest.$ac_ext <<_LT_EOF
6437 #ifdef __cplusplus
6438 extern "C" {
6439 #endif
6440 char nm_test_var;
6441 void nm_test_func(void);
6442 void nm_test_func(void){}
6443 #ifdef __cplusplus
6445 #endif
6446 int main(){nm_test_var='a';nm_test_func();return(0);}
6447 _LT_EOF
6449 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6450 (eval $ac_compile) 2>&5
6451 ac_status=$?
6452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6453 test $ac_status = 0; }; then
6454 # Now try to grab the symbols.
6455 nlist=conftest.nm
6456 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6457 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6458 ac_status=$?
6459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6460 test $ac_status = 0; } && test -s "$nlist"; then
6461 # Try sorting and uniquifying the output.
6462 if sort "$nlist" | uniq > "$nlist"T; then
6463 mv -f "$nlist"T "$nlist"
6464 else
6465 rm -f "$nlist"T
6468 # Make sure that we snagged all the symbols we need.
6469 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6470 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6471 cat <<_LT_EOF > conftest.$ac_ext
6472 #ifdef __cplusplus
6473 extern "C" {
6474 #endif
6476 _LT_EOF
6477 # Now generate the symbol file.
6478 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6480 cat <<_LT_EOF >> conftest.$ac_ext
6482 /* The mapping between symbol names and symbols. */
6483 const struct {
6484 const char *name;
6485 void *address;
6487 lt__PROGRAM__LTX_preloaded_symbols[] =
6489 { "@PROGRAM@", (void *) 0 },
6490 _LT_EOF
6491 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6492 cat <<\_LT_EOF >> conftest.$ac_ext
6493 {0, (void *) 0}
6496 /* This works around a problem in FreeBSD linker */
6497 #ifdef FREEBSD_WORKAROUND
6498 static const void *lt_preloaded_setup() {
6499 return lt__PROGRAM__LTX_preloaded_symbols;
6501 #endif
6503 #ifdef __cplusplus
6505 #endif
6506 _LT_EOF
6507 # Now try linking the two files.
6508 mv conftest.$ac_objext conftstm.$ac_objext
6509 lt_save_LIBS="$LIBS"
6510 lt_save_CFLAGS="$CFLAGS"
6511 LIBS="conftstm.$ac_objext"
6512 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6513 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6514 (eval $ac_link) 2>&5
6515 ac_status=$?
6516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6517 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6518 pipe_works=yes
6520 LIBS="$lt_save_LIBS"
6521 CFLAGS="$lt_save_CFLAGS"
6522 else
6523 echo "cannot find nm_test_func in $nlist" >&5
6525 else
6526 echo "cannot find nm_test_var in $nlist" >&5
6528 else
6529 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6531 else
6532 echo "$progname: failed program was:" >&5
6533 cat conftest.$ac_ext >&5
6535 rm -rf conftest* conftst*
6537 # Do not use the global_symbol_pipe unless it works.
6538 if test "$pipe_works" = yes; then
6539 break
6540 else
6541 lt_cv_sys_global_symbol_pipe=
6543 done
6547 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6548 lt_cv_sys_global_symbol_to_cdecl=
6550 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6552 $as_echo "failed" >&6; }
6553 else
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6555 $as_echo "ok" >&6; }
6580 # Check whether --enable-libtool-lock was given.
6581 if test "${enable_libtool_lock+set}" = set; then :
6582 enableval=$enable_libtool_lock;
6585 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6587 # Some flags need to be propagated to the compiler or linker for good
6588 # libtool support.
6589 case $host in
6590 ia64-*-hpux*)
6591 # Find out which ABI we are using.
6592 echo 'int i;' > conftest.$ac_ext
6593 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6594 (eval $ac_compile) 2>&5
6595 ac_status=$?
6596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6597 test $ac_status = 0; }; then
6598 case `/usr/bin/file conftest.$ac_objext` in
6599 *ELF-32*)
6600 HPUX_IA64_MODE="32"
6602 *ELF-64*)
6603 HPUX_IA64_MODE="64"
6605 esac
6607 rm -rf conftest*
6609 *-*-irix6*)
6610 # Find out which ABI we are using.
6611 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6612 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6613 (eval $ac_compile) 2>&5
6614 ac_status=$?
6615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6616 test $ac_status = 0; }; then
6617 if test "$lt_cv_prog_gnu_ld" = yes; then
6618 case `/usr/bin/file conftest.$ac_objext` in
6619 *32-bit*)
6620 LD="${LD-ld} -melf32bsmip"
6622 *N32*)
6623 LD="${LD-ld} -melf32bmipn32"
6625 *64-bit*)
6626 LD="${LD-ld} -melf64bmip"
6628 esac
6629 else
6630 case `/usr/bin/file conftest.$ac_objext` in
6631 *32-bit*)
6632 LD="${LD-ld} -32"
6634 *N32*)
6635 LD="${LD-ld} -n32"
6637 *64-bit*)
6638 LD="${LD-ld} -64"
6640 esac
6643 rm -rf conftest*
6646 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6647 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6648 # Find out which ABI we are using.
6649 echo 'int i;' > conftest.$ac_ext
6650 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6651 (eval $ac_compile) 2>&5
6652 ac_status=$?
6653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6654 test $ac_status = 0; }; then
6655 case `/usr/bin/file conftest.o` in
6656 *32-bit*)
6657 case $host in
6658 x86_64-*kfreebsd*-gnu)
6659 LD="${LD-ld} -m elf_i386_fbsd"
6661 x86_64-*linux*)
6662 case `/usr/bin/file conftest.o` in
6663 *x86-64*)
6664 LD="${LD-ld} -m elf32_x86_64"
6667 LD="${LD-ld} -m elf_i386"
6669 esac
6671 powerpc64le-*linux*)
6672 LD="${LD-ld} -m elf32lppclinux"
6674 powerpc64-*linux*)
6675 LD="${LD-ld} -m elf32ppclinux"
6677 s390x-*linux*)
6678 LD="${LD-ld} -m elf_s390"
6680 sparc64-*linux*)
6681 LD="${LD-ld} -m elf32_sparc"
6683 esac
6685 *64-bit*)
6686 case $host in
6687 x86_64-*kfreebsd*-gnu)
6688 LD="${LD-ld} -m elf_x86_64_fbsd"
6690 x86_64-*linux*)
6691 LD="${LD-ld} -m elf_x86_64"
6693 powerpcle-*linux*)
6694 LD="${LD-ld} -m elf64lppc"
6696 powerpc-*linux*)
6697 LD="${LD-ld} -m elf64ppc"
6699 s390*-*linux*|s390*-*tpf*)
6700 LD="${LD-ld} -m elf64_s390"
6702 sparc*-*linux*)
6703 LD="${LD-ld} -m elf64_sparc"
6705 esac
6707 esac
6709 rm -rf conftest*
6712 *-*-sco3.2v5*)
6713 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6714 SAVE_CFLAGS="$CFLAGS"
6715 CFLAGS="$CFLAGS -belf"
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6717 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6718 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6719 $as_echo_n "(cached) " >&6
6720 else
6721 ac_ext=c
6722 ac_cpp='$CPP $CPPFLAGS'
6723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6728 /* end confdefs.h. */
6731 main ()
6735 return 0;
6737 _ACEOF
6738 if ac_fn_c_try_link "$LINENO"; then :
6739 lt_cv_cc_needs_belf=yes
6740 else
6741 lt_cv_cc_needs_belf=no
6743 rm -f core conftest.err conftest.$ac_objext \
6744 conftest$ac_exeext conftest.$ac_ext
6745 ac_ext=c
6746 ac_cpp='$CPP $CPPFLAGS'
6747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6753 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6754 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6755 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6756 CFLAGS="$SAVE_CFLAGS"
6759 sparc*-*solaris*)
6760 # Find out which ABI we are using.
6761 echo 'int i;' > conftest.$ac_ext
6762 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6763 (eval $ac_compile) 2>&5
6764 ac_status=$?
6765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6766 test $ac_status = 0; }; then
6767 case `/usr/bin/file conftest.o` in
6768 *64-bit*)
6769 case $lt_cv_prog_gnu_ld in
6770 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6772 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6773 LD="${LD-ld} -64"
6776 esac
6778 esac
6780 rm -rf conftest*
6782 esac
6784 need_locks="$enable_libtool_lock"
6787 case $host_os in
6788 rhapsody* | darwin*)
6789 if test -n "$ac_tool_prefix"; then
6790 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6791 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6793 $as_echo_n "checking for $ac_word... " >&6; }
6794 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6795 $as_echo_n "(cached) " >&6
6796 else
6797 if test -n "$DSYMUTIL"; then
6798 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6799 else
6800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6801 for as_dir in $PATH
6803 IFS=$as_save_IFS
6804 test -z "$as_dir" && as_dir=.
6805 for ac_exec_ext in '' $ac_executable_extensions; do
6806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6807 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6809 break 2
6811 done
6812 done
6813 IFS=$as_save_IFS
6817 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6818 if test -n "$DSYMUTIL"; then
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6820 $as_echo "$DSYMUTIL" >&6; }
6821 else
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6823 $as_echo "no" >&6; }
6828 if test -z "$ac_cv_prog_DSYMUTIL"; then
6829 ac_ct_DSYMUTIL=$DSYMUTIL
6830 # Extract the first word of "dsymutil", so it can be a program name with args.
6831 set dummy dsymutil; ac_word=$2
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6833 $as_echo_n "checking for $ac_word... " >&6; }
6834 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6835 $as_echo_n "(cached) " >&6
6836 else
6837 if test -n "$ac_ct_DSYMUTIL"; then
6838 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6839 else
6840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6841 for as_dir in $PATH
6843 IFS=$as_save_IFS
6844 test -z "$as_dir" && as_dir=.
6845 for ac_exec_ext in '' $ac_executable_extensions; do
6846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6847 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6849 break 2
6851 done
6852 done
6853 IFS=$as_save_IFS
6857 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6858 if test -n "$ac_ct_DSYMUTIL"; then
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6860 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6861 else
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6863 $as_echo "no" >&6; }
6866 if test "x$ac_ct_DSYMUTIL" = x; then
6867 DSYMUTIL=":"
6868 else
6869 case $cross_compiling:$ac_tool_warned in
6870 yes:)
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6872 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6873 ac_tool_warned=yes ;;
6874 esac
6875 DSYMUTIL=$ac_ct_DSYMUTIL
6877 else
6878 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6881 if test -n "$ac_tool_prefix"; then
6882 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6883 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6885 $as_echo_n "checking for $ac_word... " >&6; }
6886 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6887 $as_echo_n "(cached) " >&6
6888 else
6889 if test -n "$NMEDIT"; then
6890 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6891 else
6892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6893 for as_dir in $PATH
6895 IFS=$as_save_IFS
6896 test -z "$as_dir" && as_dir=.
6897 for ac_exec_ext in '' $ac_executable_extensions; do
6898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6899 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6901 break 2
6903 done
6904 done
6905 IFS=$as_save_IFS
6909 NMEDIT=$ac_cv_prog_NMEDIT
6910 if test -n "$NMEDIT"; then
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6912 $as_echo "$NMEDIT" >&6; }
6913 else
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6915 $as_echo "no" >&6; }
6920 if test -z "$ac_cv_prog_NMEDIT"; then
6921 ac_ct_NMEDIT=$NMEDIT
6922 # Extract the first word of "nmedit", so it can be a program name with args.
6923 set dummy nmedit; ac_word=$2
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6925 $as_echo_n "checking for $ac_word... " >&6; }
6926 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6927 $as_echo_n "(cached) " >&6
6928 else
6929 if test -n "$ac_ct_NMEDIT"; then
6930 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6931 else
6932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6933 for as_dir in $PATH
6935 IFS=$as_save_IFS
6936 test -z "$as_dir" && as_dir=.
6937 for ac_exec_ext in '' $ac_executable_extensions; do
6938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6939 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6941 break 2
6943 done
6944 done
6945 IFS=$as_save_IFS
6949 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6950 if test -n "$ac_ct_NMEDIT"; then
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6952 $as_echo "$ac_ct_NMEDIT" >&6; }
6953 else
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6955 $as_echo "no" >&6; }
6958 if test "x$ac_ct_NMEDIT" = x; then
6959 NMEDIT=":"
6960 else
6961 case $cross_compiling:$ac_tool_warned in
6962 yes:)
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6964 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6965 ac_tool_warned=yes ;;
6966 esac
6967 NMEDIT=$ac_ct_NMEDIT
6969 else
6970 NMEDIT="$ac_cv_prog_NMEDIT"
6973 if test -n "$ac_tool_prefix"; then
6974 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6975 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6977 $as_echo_n "checking for $ac_word... " >&6; }
6978 if test "${ac_cv_prog_LIPO+set}" = set; then :
6979 $as_echo_n "(cached) " >&6
6980 else
6981 if test -n "$LIPO"; then
6982 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6983 else
6984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6985 for as_dir in $PATH
6987 IFS=$as_save_IFS
6988 test -z "$as_dir" && as_dir=.
6989 for ac_exec_ext in '' $ac_executable_extensions; do
6990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6991 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6993 break 2
6995 done
6996 done
6997 IFS=$as_save_IFS
7001 LIPO=$ac_cv_prog_LIPO
7002 if test -n "$LIPO"; then
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7004 $as_echo "$LIPO" >&6; }
7005 else
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7007 $as_echo "no" >&6; }
7012 if test -z "$ac_cv_prog_LIPO"; then
7013 ac_ct_LIPO=$LIPO
7014 # Extract the first word of "lipo", so it can be a program name with args.
7015 set dummy lipo; ac_word=$2
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7017 $as_echo_n "checking for $ac_word... " >&6; }
7018 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7019 $as_echo_n "(cached) " >&6
7020 else
7021 if test -n "$ac_ct_LIPO"; then
7022 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7023 else
7024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7025 for as_dir in $PATH
7027 IFS=$as_save_IFS
7028 test -z "$as_dir" && as_dir=.
7029 for ac_exec_ext in '' $ac_executable_extensions; do
7030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7031 ac_cv_prog_ac_ct_LIPO="lipo"
7032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7033 break 2
7035 done
7036 done
7037 IFS=$as_save_IFS
7041 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7042 if test -n "$ac_ct_LIPO"; then
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7044 $as_echo "$ac_ct_LIPO" >&6; }
7045 else
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7047 $as_echo "no" >&6; }
7050 if test "x$ac_ct_LIPO" = x; then
7051 LIPO=":"
7052 else
7053 case $cross_compiling:$ac_tool_warned in
7054 yes:)
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7056 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7057 ac_tool_warned=yes ;;
7058 esac
7059 LIPO=$ac_ct_LIPO
7061 else
7062 LIPO="$ac_cv_prog_LIPO"
7065 if test -n "$ac_tool_prefix"; then
7066 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7067 set dummy ${ac_tool_prefix}otool; ac_word=$2
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7069 $as_echo_n "checking for $ac_word... " >&6; }
7070 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7071 $as_echo_n "(cached) " >&6
7072 else
7073 if test -n "$OTOOL"; then
7074 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7075 else
7076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7077 for as_dir in $PATH
7079 IFS=$as_save_IFS
7080 test -z "$as_dir" && as_dir=.
7081 for ac_exec_ext in '' $ac_executable_extensions; do
7082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7085 break 2
7087 done
7088 done
7089 IFS=$as_save_IFS
7093 OTOOL=$ac_cv_prog_OTOOL
7094 if test -n "$OTOOL"; then
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7096 $as_echo "$OTOOL" >&6; }
7097 else
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7099 $as_echo "no" >&6; }
7104 if test -z "$ac_cv_prog_OTOOL"; then
7105 ac_ct_OTOOL=$OTOOL
7106 # Extract the first word of "otool", so it can be a program name with args.
7107 set dummy otool; ac_word=$2
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7109 $as_echo_n "checking for $ac_word... " >&6; }
7110 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7111 $as_echo_n "(cached) " >&6
7112 else
7113 if test -n "$ac_ct_OTOOL"; then
7114 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7115 else
7116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7117 for as_dir in $PATH
7119 IFS=$as_save_IFS
7120 test -z "$as_dir" && as_dir=.
7121 for ac_exec_ext in '' $ac_executable_extensions; do
7122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7123 ac_cv_prog_ac_ct_OTOOL="otool"
7124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7125 break 2
7127 done
7128 done
7129 IFS=$as_save_IFS
7133 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7134 if test -n "$ac_ct_OTOOL"; then
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7136 $as_echo "$ac_ct_OTOOL" >&6; }
7137 else
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7139 $as_echo "no" >&6; }
7142 if test "x$ac_ct_OTOOL" = x; then
7143 OTOOL=":"
7144 else
7145 case $cross_compiling:$ac_tool_warned in
7146 yes:)
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7148 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7149 ac_tool_warned=yes ;;
7150 esac
7151 OTOOL=$ac_ct_OTOOL
7153 else
7154 OTOOL="$ac_cv_prog_OTOOL"
7157 if test -n "$ac_tool_prefix"; then
7158 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7159 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7161 $as_echo_n "checking for $ac_word... " >&6; }
7162 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7163 $as_echo_n "(cached) " >&6
7164 else
7165 if test -n "$OTOOL64"; then
7166 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7167 else
7168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7169 for as_dir in $PATH
7171 IFS=$as_save_IFS
7172 test -z "$as_dir" && as_dir=.
7173 for ac_exec_ext in '' $ac_executable_extensions; do
7174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7175 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7177 break 2
7179 done
7180 done
7181 IFS=$as_save_IFS
7185 OTOOL64=$ac_cv_prog_OTOOL64
7186 if test -n "$OTOOL64"; then
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7188 $as_echo "$OTOOL64" >&6; }
7189 else
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7191 $as_echo "no" >&6; }
7196 if test -z "$ac_cv_prog_OTOOL64"; then
7197 ac_ct_OTOOL64=$OTOOL64
7198 # Extract the first word of "otool64", so it can be a program name with args.
7199 set dummy otool64; ac_word=$2
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7201 $as_echo_n "checking for $ac_word... " >&6; }
7202 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7203 $as_echo_n "(cached) " >&6
7204 else
7205 if test -n "$ac_ct_OTOOL64"; then
7206 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7207 else
7208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7209 for as_dir in $PATH
7211 IFS=$as_save_IFS
7212 test -z "$as_dir" && as_dir=.
7213 for ac_exec_ext in '' $ac_executable_extensions; do
7214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7215 ac_cv_prog_ac_ct_OTOOL64="otool64"
7216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7217 break 2
7219 done
7220 done
7221 IFS=$as_save_IFS
7225 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7226 if test -n "$ac_ct_OTOOL64"; then
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7228 $as_echo "$ac_ct_OTOOL64" >&6; }
7229 else
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7231 $as_echo "no" >&6; }
7234 if test "x$ac_ct_OTOOL64" = x; then
7235 OTOOL64=":"
7236 else
7237 case $cross_compiling:$ac_tool_warned in
7238 yes:)
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7240 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7241 ac_tool_warned=yes ;;
7242 esac
7243 OTOOL64=$ac_ct_OTOOL64
7245 else
7246 OTOOL64="$ac_cv_prog_OTOOL64"
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7276 $as_echo_n "checking for -single_module linker flag... " >&6; }
7277 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7278 $as_echo_n "(cached) " >&6
7279 else
7280 lt_cv_apple_cc_single_mod=no
7281 if test -z "${LT_MULTI_MODULE}"; then
7282 # By default we will add the -single_module flag. You can override
7283 # by either setting the environment variable LT_MULTI_MODULE
7284 # non-empty at configure time, or by adding -multi_module to the
7285 # link flags.
7286 rm -rf libconftest.dylib*
7287 echo "int foo(void){return 1;}" > conftest.c
7288 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7289 -dynamiclib -Wl,-single_module conftest.c" >&5
7290 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7291 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7292 _lt_result=$?
7293 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7294 lt_cv_apple_cc_single_mod=yes
7295 else
7296 cat conftest.err >&5
7298 rm -rf libconftest.dylib*
7299 rm -f conftest.*
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7303 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7305 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7306 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7307 $as_echo_n "(cached) " >&6
7308 else
7309 lt_cv_ld_exported_symbols_list=no
7310 save_LDFLAGS=$LDFLAGS
7311 echo "_main" > conftest.sym
7312 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7314 /* end confdefs.h. */
7317 main ()
7321 return 0;
7323 _ACEOF
7324 if ac_fn_c_try_link "$LINENO"; then :
7325 lt_cv_ld_exported_symbols_list=yes
7326 else
7327 lt_cv_ld_exported_symbols_list=no
7329 rm -f core conftest.err conftest.$ac_objext \
7330 conftest$ac_exeext conftest.$ac_ext
7331 LDFLAGS="$save_LDFLAGS"
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7335 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7337 $as_echo_n "checking for -force_load linker flag... " >&6; }
7338 if test "${lt_cv_ld_force_load+set}" = set; then :
7339 $as_echo_n "(cached) " >&6
7340 else
7341 lt_cv_ld_force_load=no
7342 cat > conftest.c << _LT_EOF
7343 int forced_loaded() { return 2;}
7344 _LT_EOF
7345 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7346 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7347 echo "$AR cru libconftest.a conftest.o" >&5
7348 $AR cru libconftest.a conftest.o 2>&5
7349 cat > conftest.c << _LT_EOF
7350 int main() { return 0;}
7351 _LT_EOF
7352 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7353 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7354 _lt_result=$?
7355 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7356 lt_cv_ld_force_load=yes
7357 else
7358 cat conftest.err >&5
7360 rm -f conftest.err libconftest.a conftest conftest.c
7361 rm -rf conftest.dSYM
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7365 $as_echo "$lt_cv_ld_force_load" >&6; }
7366 case $host_os in
7367 rhapsody* | darwin1.[012])
7368 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7369 darwin1.*)
7370 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7371 darwin*) # darwin 5.x on
7372 # if running on 10.5 or later, the deployment target defaults
7373 # to the OS version, if on x86, and 10.4, the deployment
7374 # target defaults to 10.4. Don't you love it?
7375 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7376 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7377 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7378 10.[012][,.]*)
7379 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7380 10.*)
7381 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7382 esac
7384 esac
7385 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7386 _lt_dar_single_mod='$single_module'
7388 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7389 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7390 else
7391 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7393 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7394 _lt_dsymutil='~$DSYMUTIL $lib || :'
7395 else
7396 _lt_dsymutil=
7399 esac
7401 ac_ext=c
7402 ac_cpp='$CPP $CPPFLAGS'
7403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7407 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7408 # On Suns, sometimes $CPP names a directory.
7409 if test -n "$CPP" && test -d "$CPP"; then
7410 CPP=
7412 if test -z "$CPP"; then
7413 if test "${ac_cv_prog_CPP+set}" = set; then :
7414 $as_echo_n "(cached) " >&6
7415 else
7416 # Double quotes because CPP needs to be expanded
7417 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7419 ac_preproc_ok=false
7420 for ac_c_preproc_warn_flag in '' yes
7422 # Use a header file that comes with gcc, so configuring glibc
7423 # with a fresh cross-compiler works.
7424 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7425 # <limits.h> exists even on freestanding compilers.
7426 # On the NeXT, cc -E runs the code through the compiler's parser,
7427 # not just through cpp. "Syntax error" is here to catch this case.
7428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7429 /* end confdefs.h. */
7430 #ifdef __STDC__
7431 # include <limits.h>
7432 #else
7433 # include <assert.h>
7434 #endif
7435 Syntax error
7436 _ACEOF
7437 if ac_fn_c_try_cpp "$LINENO"; then :
7439 else
7440 # Broken: fails on valid input.
7441 continue
7443 rm -f conftest.err conftest.$ac_ext
7445 # OK, works on sane cases. Now check whether nonexistent headers
7446 # can be detected and how.
7447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7448 /* end confdefs.h. */
7449 #include <ac_nonexistent.h>
7450 _ACEOF
7451 if ac_fn_c_try_cpp "$LINENO"; then :
7452 # Broken: success on invalid input.
7453 continue
7454 else
7455 # Passes both tests.
7456 ac_preproc_ok=:
7457 break
7459 rm -f conftest.err conftest.$ac_ext
7461 done
7462 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7463 rm -f conftest.err conftest.$ac_ext
7464 if $ac_preproc_ok; then :
7465 break
7468 done
7469 ac_cv_prog_CPP=$CPP
7472 CPP=$ac_cv_prog_CPP
7473 else
7474 ac_cv_prog_CPP=$CPP
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7477 $as_echo "$CPP" >&6; }
7478 ac_preproc_ok=false
7479 for ac_c_preproc_warn_flag in '' yes
7481 # Use a header file that comes with gcc, so configuring glibc
7482 # with a fresh cross-compiler works.
7483 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7484 # <limits.h> exists even on freestanding compilers.
7485 # On the NeXT, cc -E runs the code through the compiler's parser,
7486 # not just through cpp. "Syntax error" is here to catch this case.
7487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7488 /* end confdefs.h. */
7489 #ifdef __STDC__
7490 # include <limits.h>
7491 #else
7492 # include <assert.h>
7493 #endif
7494 Syntax error
7495 _ACEOF
7496 if ac_fn_c_try_cpp "$LINENO"; then :
7498 else
7499 # Broken: fails on valid input.
7500 continue
7502 rm -f conftest.err conftest.$ac_ext
7504 # OK, works on sane cases. Now check whether nonexistent headers
7505 # can be detected and how.
7506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7507 /* end confdefs.h. */
7508 #include <ac_nonexistent.h>
7509 _ACEOF
7510 if ac_fn_c_try_cpp "$LINENO"; then :
7511 # Broken: success on invalid input.
7512 continue
7513 else
7514 # Passes both tests.
7515 ac_preproc_ok=:
7516 break
7518 rm -f conftest.err conftest.$ac_ext
7520 done
7521 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7522 rm -f conftest.err conftest.$ac_ext
7523 if $ac_preproc_ok; then :
7525 else
7526 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7527 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7528 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7529 See \`config.log' for more details." "$LINENO" 5; }
7532 ac_ext=c
7533 ac_cpp='$CPP $CPPFLAGS'
7534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7540 $as_echo_n "checking for ANSI C header files... " >&6; }
7541 if test "${ac_cv_header_stdc+set}" = set; then :
7542 $as_echo_n "(cached) " >&6
7543 else
7544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7545 /* end confdefs.h. */
7546 #include <stdlib.h>
7547 #include <stdarg.h>
7548 #include <string.h>
7549 #include <float.h>
7552 main ()
7556 return 0;
7558 _ACEOF
7559 if ac_fn_c_try_compile "$LINENO"; then :
7560 ac_cv_header_stdc=yes
7561 else
7562 ac_cv_header_stdc=no
7564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7566 if test $ac_cv_header_stdc = yes; then
7567 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7569 /* end confdefs.h. */
7570 #include <string.h>
7572 _ACEOF
7573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7574 $EGREP "memchr" >/dev/null 2>&1; then :
7576 else
7577 ac_cv_header_stdc=no
7579 rm -f conftest*
7583 if test $ac_cv_header_stdc = yes; then
7584 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7586 /* end confdefs.h. */
7587 #include <stdlib.h>
7589 _ACEOF
7590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7591 $EGREP "free" >/dev/null 2>&1; then :
7593 else
7594 ac_cv_header_stdc=no
7596 rm -f conftest*
7600 if test $ac_cv_header_stdc = yes; then
7601 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7602 if test "$cross_compiling" = yes; then :
7604 else
7605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7606 /* end confdefs.h. */
7607 #include <ctype.h>
7608 #include <stdlib.h>
7609 #if ((' ' & 0x0FF) == 0x020)
7610 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7611 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7612 #else
7613 # define ISLOWER(c) \
7614 (('a' <= (c) && (c) <= 'i') \
7615 || ('j' <= (c) && (c) <= 'r') \
7616 || ('s' <= (c) && (c) <= 'z'))
7617 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7618 #endif
7620 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7622 main ()
7624 int i;
7625 for (i = 0; i < 256; i++)
7626 if (XOR (islower (i), ISLOWER (i))
7627 || toupper (i) != TOUPPER (i))
7628 return 2;
7629 return 0;
7631 _ACEOF
7632 if ac_fn_c_try_run "$LINENO"; then :
7634 else
7635 ac_cv_header_stdc=no
7637 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7638 conftest.$ac_objext conftest.beam conftest.$ac_ext
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7644 $as_echo "$ac_cv_header_stdc" >&6; }
7645 if test $ac_cv_header_stdc = yes; then
7647 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7651 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7652 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7653 inttypes.h stdint.h unistd.h
7654 do :
7655 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7656 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7658 eval as_val=\$$as_ac_Header
7659 if test "x$as_val" = x""yes; then :
7660 cat >>confdefs.h <<_ACEOF
7661 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7662 _ACEOF
7666 done
7669 for ac_header in dlfcn.h
7670 do :
7671 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7673 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7674 cat >>confdefs.h <<_ACEOF
7675 #define HAVE_DLFCN_H 1
7676 _ACEOF
7680 done
7686 # Set options
7690 enable_dlopen=no
7693 enable_win32_dll=no
7696 # Check whether --enable-shared was given.
7697 if test "${enable_shared+set}" = set; then :
7698 enableval=$enable_shared; p=${PACKAGE-default}
7699 case $enableval in
7700 yes) enable_shared=yes ;;
7701 no) enable_shared=no ;;
7703 enable_shared=no
7704 # Look at the argument we got. We use all the common list separators.
7705 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7706 for pkg in $enableval; do
7707 IFS="$lt_save_ifs"
7708 if test "X$pkg" = "X$p"; then
7709 enable_shared=yes
7711 done
7712 IFS="$lt_save_ifs"
7714 esac
7715 else
7716 enable_shared=yes
7727 # Check whether --enable-static was given.
7728 if test "${enable_static+set}" = set; then :
7729 enableval=$enable_static; p=${PACKAGE-default}
7730 case $enableval in
7731 yes) enable_static=yes ;;
7732 no) enable_static=no ;;
7734 enable_static=no
7735 # Look at the argument we got. We use all the common list separators.
7736 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7737 for pkg in $enableval; do
7738 IFS="$lt_save_ifs"
7739 if test "X$pkg" = "X$p"; then
7740 enable_static=yes
7742 done
7743 IFS="$lt_save_ifs"
7745 esac
7746 else
7747 enable_static=yes
7759 # Check whether --with-pic was given.
7760 if test "${with_pic+set}" = set; then :
7761 withval=$with_pic; pic_mode="$withval"
7762 else
7763 pic_mode=default
7767 test -z "$pic_mode" && pic_mode=default
7775 # Check whether --enable-fast-install was given.
7776 if test "${enable_fast_install+set}" = set; then :
7777 enableval=$enable_fast_install; p=${PACKAGE-default}
7778 case $enableval in
7779 yes) enable_fast_install=yes ;;
7780 no) enable_fast_install=no ;;
7782 enable_fast_install=no
7783 # Look at the argument we got. We use all the common list separators.
7784 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7785 for pkg in $enableval; do
7786 IFS="$lt_save_ifs"
7787 if test "X$pkg" = "X$p"; then
7788 enable_fast_install=yes
7790 done
7791 IFS="$lt_save_ifs"
7793 esac
7794 else
7795 enable_fast_install=yes
7808 # This can be used to rebuild libtool when needed
7809 LIBTOOL_DEPS="$ltmain"
7811 # Always use our own libtool.
7812 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7839 test -z "$LN_S" && LN_S="ln -s"
7854 if test -n "${ZSH_VERSION+set}" ; then
7855 setopt NO_GLOB_SUBST
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7859 $as_echo_n "checking for objdir... " >&6; }
7860 if test "${lt_cv_objdir+set}" = set; then :
7861 $as_echo_n "(cached) " >&6
7862 else
7863 rm -f .libs 2>/dev/null
7864 mkdir .libs 2>/dev/null
7865 if test -d .libs; then
7866 lt_cv_objdir=.libs
7867 else
7868 # MS-DOS does not allow filenames that begin with a dot.
7869 lt_cv_objdir=_libs
7871 rmdir .libs 2>/dev/null
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7874 $as_echo "$lt_cv_objdir" >&6; }
7875 objdir=$lt_cv_objdir
7881 cat >>confdefs.h <<_ACEOF
7882 #define LT_OBJDIR "$lt_cv_objdir/"
7883 _ACEOF
7888 case $host_os in
7889 aix3*)
7890 # AIX sometimes has problems with the GCC collect2 program. For some
7891 # reason, if we set the COLLECT_NAMES environment variable, the problems
7892 # vanish in a puff of smoke.
7893 if test "X${COLLECT_NAMES+set}" != Xset; then
7894 COLLECT_NAMES=
7895 export COLLECT_NAMES
7898 esac
7900 # Global variables:
7901 ofile=libtool
7902 can_build_shared=yes
7904 # All known linkers require a `.a' archive for static linking (except MSVC,
7905 # which needs '.lib').
7906 libext=a
7908 with_gnu_ld="$lt_cv_prog_gnu_ld"
7910 old_CC="$CC"
7911 old_CFLAGS="$CFLAGS"
7913 # Set sane defaults for various variables
7914 test -z "$CC" && CC=cc
7915 test -z "$LTCC" && LTCC=$CC
7916 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7917 test -z "$LD" && LD=ld
7918 test -z "$ac_objext" && ac_objext=o
7920 for cc_temp in $compiler""; do
7921 case $cc_temp in
7922 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7923 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7924 \-*) ;;
7925 *) break;;
7926 esac
7927 done
7928 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7931 # Only perform the check for file, if the check method requires it
7932 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7933 case $deplibs_check_method in
7934 file_magic*)
7935 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7937 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7938 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7939 $as_echo_n "(cached) " >&6
7940 else
7941 case $MAGIC_CMD in
7942 [\\/*] | ?:[\\/]*)
7943 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7946 lt_save_MAGIC_CMD="$MAGIC_CMD"
7947 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7948 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7949 for ac_dir in $ac_dummy; do
7950 IFS="$lt_save_ifs"
7951 test -z "$ac_dir" && ac_dir=.
7952 if test -f $ac_dir/${ac_tool_prefix}file; then
7953 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7954 if test -n "$file_magic_test_file"; then
7955 case $deplibs_check_method in
7956 "file_magic "*)
7957 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7958 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7959 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7960 $EGREP "$file_magic_regex" > /dev/null; then
7962 else
7963 cat <<_LT_EOF 1>&2
7965 *** Warning: the command libtool uses to detect shared libraries,
7966 *** $file_magic_cmd, produces output that libtool cannot recognize.
7967 *** The result is that libtool may fail to recognize shared libraries
7968 *** as such. This will affect the creation of libtool libraries that
7969 *** depend on shared libraries, but programs linked with such libtool
7970 *** libraries will work regardless of this problem. Nevertheless, you
7971 *** may want to report the problem to your system manager and/or to
7972 *** bug-libtool@gnu.org
7974 _LT_EOF
7975 fi ;;
7976 esac
7978 break
7980 done
7981 IFS="$lt_save_ifs"
7982 MAGIC_CMD="$lt_save_MAGIC_CMD"
7984 esac
7987 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7988 if test -n "$MAGIC_CMD"; then
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7990 $as_echo "$MAGIC_CMD" >&6; }
7991 else
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7993 $as_echo "no" >&6; }
8000 if test -z "$lt_cv_path_MAGIC_CMD"; then
8001 if test -n "$ac_tool_prefix"; then
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8003 $as_echo_n "checking for file... " >&6; }
8004 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8005 $as_echo_n "(cached) " >&6
8006 else
8007 case $MAGIC_CMD in
8008 [\\/*] | ?:[\\/]*)
8009 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8012 lt_save_MAGIC_CMD="$MAGIC_CMD"
8013 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8014 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8015 for ac_dir in $ac_dummy; do
8016 IFS="$lt_save_ifs"
8017 test -z "$ac_dir" && ac_dir=.
8018 if test -f $ac_dir/file; then
8019 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8020 if test -n "$file_magic_test_file"; then
8021 case $deplibs_check_method in
8022 "file_magic "*)
8023 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8024 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8025 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8026 $EGREP "$file_magic_regex" > /dev/null; then
8028 else
8029 cat <<_LT_EOF 1>&2
8031 *** Warning: the command libtool uses to detect shared libraries,
8032 *** $file_magic_cmd, produces output that libtool cannot recognize.
8033 *** The result is that libtool may fail to recognize shared libraries
8034 *** as such. This will affect the creation of libtool libraries that
8035 *** depend on shared libraries, but programs linked with such libtool
8036 *** libraries will work regardless of this problem. Nevertheless, you
8037 *** may want to report the problem to your system manager and/or to
8038 *** bug-libtool@gnu.org
8040 _LT_EOF
8041 fi ;;
8042 esac
8044 break
8046 done
8047 IFS="$lt_save_ifs"
8048 MAGIC_CMD="$lt_save_MAGIC_CMD"
8050 esac
8053 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8054 if test -n "$MAGIC_CMD"; then
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8056 $as_echo "$MAGIC_CMD" >&6; }
8057 else
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8059 $as_echo "no" >&6; }
8063 else
8064 MAGIC_CMD=:
8070 esac
8072 # Use C for the default configuration in the libtool script
8074 lt_save_CC="$CC"
8075 ac_ext=c
8076 ac_cpp='$CPP $CPPFLAGS'
8077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8082 # Source file extension for C test sources.
8083 ac_ext=c
8085 # Object file extension for compiled C test sources.
8086 objext=o
8087 objext=$objext
8089 # Code to be used in simple compile tests
8090 lt_simple_compile_test_code="int some_variable = 0;"
8092 # Code to be used in simple link tests
8093 lt_simple_link_test_code='int main(){return(0);}'
8101 # If no C compiler was specified, use CC.
8102 LTCC=${LTCC-"$CC"}
8104 # If no C compiler flags were specified, use CFLAGS.
8105 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8107 # Allow CC to be a program name with arguments.
8108 compiler=$CC
8110 # Save the default compiler, since it gets overwritten when the other
8111 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8112 compiler_DEFAULT=$CC
8114 # save warnings/boilerplate of simple test code
8115 ac_outfile=conftest.$ac_objext
8116 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8117 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8118 _lt_compiler_boilerplate=`cat conftest.err`
8119 $RM conftest*
8121 ac_outfile=conftest.$ac_objext
8122 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8123 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8124 _lt_linker_boilerplate=`cat conftest.err`
8125 $RM -r conftest*
8128 ## CAVEAT EMPTOR:
8129 ## There is no encapsulation within the following macros, do not change
8130 ## the running order or otherwise move them around unless you know exactly
8131 ## what you are doing...
8132 if test -n "$compiler"; then
8134 lt_prog_compiler_no_builtin_flag=
8136 if test "$GCC" = yes; then
8137 case $cc_basename in
8138 nvcc*)
8139 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8141 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8142 esac
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8145 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8146 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8147 $as_echo_n "(cached) " >&6
8148 else
8149 lt_cv_prog_compiler_rtti_exceptions=no
8150 ac_outfile=conftest.$ac_objext
8151 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8152 lt_compiler_flag="-fno-rtti -fno-exceptions"
8153 # Insert the option either (1) after the last *FLAGS variable, or
8154 # (2) before a word containing "conftest.", or (3) at the end.
8155 # Note that $ac_compile itself does not contain backslashes and begins
8156 # with a dollar sign (not a hyphen), so the echo should work correctly.
8157 # The option is referenced via a variable to avoid confusing sed.
8158 lt_compile=`echo "$ac_compile" | $SED \
8159 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8160 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8161 -e 's:$: $lt_compiler_flag:'`
8162 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8163 (eval "$lt_compile" 2>conftest.err)
8164 ac_status=$?
8165 cat conftest.err >&5
8166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167 if (exit $ac_status) && test -s "$ac_outfile"; then
8168 # The compiler can only warn and ignore the option if not recognized
8169 # So say no if there are warnings other than the usual output.
8170 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8171 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8172 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8173 lt_cv_prog_compiler_rtti_exceptions=yes
8176 $RM conftest*
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8180 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8182 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8183 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8184 else
8195 lt_prog_compiler_wl=
8196 lt_prog_compiler_pic=
8197 lt_prog_compiler_static=
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8200 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8202 if test "$GCC" = yes; then
8203 lt_prog_compiler_wl='-Wl,'
8204 lt_prog_compiler_static='-static'
8206 case $host_os in
8207 aix*)
8208 # All AIX code is PIC.
8209 if test "$host_cpu" = ia64; then
8210 # AIX 5 now supports IA64 processor
8211 lt_prog_compiler_static='-Bstatic'
8213 lt_prog_compiler_pic='-fPIC'
8216 amigaos*)
8217 case $host_cpu in
8218 powerpc)
8219 # see comment about AmigaOS4 .so support
8220 lt_prog_compiler_pic='-fPIC'
8222 m68k)
8223 # FIXME: we need at least 68020 code to build shared libraries, but
8224 # adding the `-m68020' flag to GCC prevents building anything better,
8225 # like `-m68040'.
8226 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8228 esac
8231 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8232 # PIC is the default for these OSes.
8235 mingw* | cygwin* | pw32* | os2* | cegcc*)
8236 # This hack is so that the source file can tell whether it is being
8237 # built for inclusion in a dll (and should export symbols for example).
8238 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8239 # (--disable-auto-import) libraries
8240 lt_prog_compiler_pic='-DDLL_EXPORT'
8243 darwin* | rhapsody*)
8244 # PIC is the default on this platform
8245 # Common symbols not allowed in MH_DYLIB files
8246 lt_prog_compiler_pic='-fno-common'
8249 haiku*)
8250 # PIC is the default for Haiku.
8251 # The "-static" flag exists, but is broken.
8252 lt_prog_compiler_static=
8255 hpux*)
8256 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8257 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8258 # sets the default TLS model and affects inlining.
8259 case $host_cpu in
8260 hppa*64*)
8261 # +Z the default
8264 lt_prog_compiler_pic='-fPIC'
8266 esac
8269 interix[3-9]*)
8270 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8271 # Instead, we relocate shared libraries at runtime.
8274 msdosdjgpp*)
8275 # Just because we use GCC doesn't mean we suddenly get shared libraries
8276 # on systems that don't support them.
8277 lt_prog_compiler_can_build_shared=no
8278 enable_shared=no
8281 *nto* | *qnx*)
8282 # QNX uses GNU C++, but need to define -shared option too, otherwise
8283 # it will coredump.
8284 lt_prog_compiler_pic='-fPIC -shared'
8287 sysv4*MP*)
8288 if test -d /usr/nec; then
8289 lt_prog_compiler_pic=-Kconform_pic
8294 lt_prog_compiler_pic='-fPIC'
8296 esac
8298 case $cc_basename in
8299 nvcc*) # Cuda Compiler Driver 2.2
8300 lt_prog_compiler_wl='-Xlinker '
8301 lt_prog_compiler_pic='-Xcompiler -fPIC'
8303 esac
8304 else
8305 # PORTME Check for flag to pass linker flags through the system compiler.
8306 case $host_os in
8307 aix*)
8308 lt_prog_compiler_wl='-Wl,'
8309 if test "$host_cpu" = ia64; then
8310 # AIX 5 now supports IA64 processor
8311 lt_prog_compiler_static='-Bstatic'
8312 else
8313 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8317 mingw* | cygwin* | pw32* | os2* | cegcc*)
8318 # This hack is so that the source file can tell whether it is being
8319 # built for inclusion in a dll (and should export symbols for example).
8320 lt_prog_compiler_pic='-DDLL_EXPORT'
8323 hpux9* | hpux10* | hpux11*)
8324 lt_prog_compiler_wl='-Wl,'
8325 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8326 # not for PA HP-UX.
8327 case $host_cpu in
8328 hppa*64*|ia64*)
8329 # +Z the default
8332 lt_prog_compiler_pic='+Z'
8334 esac
8335 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8336 lt_prog_compiler_static='${wl}-a ${wl}archive'
8339 irix5* | irix6* | nonstopux*)
8340 lt_prog_compiler_wl='-Wl,'
8341 # PIC (with -KPIC) is the default.
8342 lt_prog_compiler_static='-non_shared'
8345 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8346 case $cc_basename in
8347 # old Intel for x86_64 which still supported -KPIC.
8348 ecc*)
8349 lt_prog_compiler_wl='-Wl,'
8350 lt_prog_compiler_pic='-KPIC'
8351 lt_prog_compiler_static='-static'
8353 # icc used to be incompatible with GCC.
8354 # ICC 10 doesn't accept -KPIC any more.
8355 icc* | ifort*)
8356 lt_prog_compiler_wl='-Wl,'
8357 lt_prog_compiler_pic='-fPIC'
8358 lt_prog_compiler_static='-static'
8360 # Lahey Fortran 8.1.
8361 lf95*)
8362 lt_prog_compiler_wl='-Wl,'
8363 lt_prog_compiler_pic='--shared'
8364 lt_prog_compiler_static='--static'
8366 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8367 # Portland Group compilers (*not* the Pentium gcc compiler,
8368 # which looks to be a dead project)
8369 lt_prog_compiler_wl='-Wl,'
8370 lt_prog_compiler_pic='-fpic'
8371 lt_prog_compiler_static='-Bstatic'
8373 ccc*)
8374 lt_prog_compiler_wl='-Wl,'
8375 # All Alpha code is PIC.
8376 lt_prog_compiler_static='-non_shared'
8378 xl* | bgxl* | bgf* | mpixl*)
8379 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8380 lt_prog_compiler_wl='-Wl,'
8381 lt_prog_compiler_pic='-qpic'
8382 lt_prog_compiler_static='-qstaticlink'
8385 case `$CC -V 2>&1 | sed 5q` in
8386 *Sun\ F* | *Sun*Fortran*)
8387 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8388 lt_prog_compiler_pic='-KPIC'
8389 lt_prog_compiler_static='-Bstatic'
8390 lt_prog_compiler_wl=''
8392 *Sun\ C*)
8393 # Sun C 5.9
8394 lt_prog_compiler_pic='-KPIC'
8395 lt_prog_compiler_static='-Bstatic'
8396 lt_prog_compiler_wl='-Wl,'
8398 esac
8400 esac
8403 newsos6)
8404 lt_prog_compiler_pic='-KPIC'
8405 lt_prog_compiler_static='-Bstatic'
8408 *nto* | *qnx*)
8409 # QNX uses GNU C++, but need to define -shared option too, otherwise
8410 # it will coredump.
8411 lt_prog_compiler_pic='-fPIC -shared'
8414 osf3* | osf4* | osf5*)
8415 lt_prog_compiler_wl='-Wl,'
8416 # All OSF/1 code is PIC.
8417 lt_prog_compiler_static='-non_shared'
8420 rdos*)
8421 lt_prog_compiler_static='-non_shared'
8424 solaris*)
8425 lt_prog_compiler_pic='-KPIC'
8426 lt_prog_compiler_static='-Bstatic'
8427 case $cc_basename in
8428 f77* | f90* | f95*)
8429 lt_prog_compiler_wl='-Qoption ld ';;
8431 lt_prog_compiler_wl='-Wl,';;
8432 esac
8435 sunos4*)
8436 lt_prog_compiler_wl='-Qoption ld '
8437 lt_prog_compiler_pic='-PIC'
8438 lt_prog_compiler_static='-Bstatic'
8441 sysv4 | sysv4.2uw2* | sysv4.3*)
8442 lt_prog_compiler_wl='-Wl,'
8443 lt_prog_compiler_pic='-KPIC'
8444 lt_prog_compiler_static='-Bstatic'
8447 sysv4*MP*)
8448 if test -d /usr/nec ;then
8449 lt_prog_compiler_pic='-Kconform_pic'
8450 lt_prog_compiler_static='-Bstatic'
8454 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8455 lt_prog_compiler_wl='-Wl,'
8456 lt_prog_compiler_pic='-KPIC'
8457 lt_prog_compiler_static='-Bstatic'
8460 unicos*)
8461 lt_prog_compiler_wl='-Wl,'
8462 lt_prog_compiler_can_build_shared=no
8465 uts4*)
8466 lt_prog_compiler_pic='-pic'
8467 lt_prog_compiler_static='-Bstatic'
8471 lt_prog_compiler_can_build_shared=no
8473 esac
8476 case $host_os in
8477 # For platforms which do not support PIC, -DPIC is meaningless:
8478 *djgpp*)
8479 lt_prog_compiler_pic=
8482 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8484 esac
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8486 $as_echo "$lt_prog_compiler_pic" >&6; }
8494 # Check to make sure the PIC flag actually works.
8496 if test -n "$lt_prog_compiler_pic"; then
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8498 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8499 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8500 $as_echo_n "(cached) " >&6
8501 else
8502 lt_cv_prog_compiler_pic_works=no
8503 ac_outfile=conftest.$ac_objext
8504 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8505 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8506 # Insert the option either (1) after the last *FLAGS variable, or
8507 # (2) before a word containing "conftest.", or (3) at the end.
8508 # Note that $ac_compile itself does not contain backslashes and begins
8509 # with a dollar sign (not a hyphen), so the echo should work correctly.
8510 # The option is referenced via a variable to avoid confusing sed.
8511 lt_compile=`echo "$ac_compile" | $SED \
8512 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8513 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8514 -e 's:$: $lt_compiler_flag:'`
8515 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8516 (eval "$lt_compile" 2>conftest.err)
8517 ac_status=$?
8518 cat conftest.err >&5
8519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520 if (exit $ac_status) && test -s "$ac_outfile"; then
8521 # The compiler can only warn and ignore the option if not recognized
8522 # So say no if there are warnings other than the usual output.
8523 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8524 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8525 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8526 lt_cv_prog_compiler_pic_works=yes
8529 $RM conftest*
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8533 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8535 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8536 case $lt_prog_compiler_pic in
8537 "" | " "*) ;;
8538 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8539 esac
8540 else
8541 lt_prog_compiler_pic=
8542 lt_prog_compiler_can_build_shared=no
8553 # Check to make sure the static flag actually works.
8555 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8557 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8558 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8559 $as_echo_n "(cached) " >&6
8560 else
8561 lt_cv_prog_compiler_static_works=no
8562 save_LDFLAGS="$LDFLAGS"
8563 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8564 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8565 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8566 # The linker can only warn and ignore the option if not recognized
8567 # So say no if there are warnings
8568 if test -s conftest.err; then
8569 # Append any errors to the config.log.
8570 cat conftest.err 1>&5
8571 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8572 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8573 if diff conftest.exp conftest.er2 >/dev/null; then
8574 lt_cv_prog_compiler_static_works=yes
8576 else
8577 lt_cv_prog_compiler_static_works=yes
8580 $RM -r conftest*
8581 LDFLAGS="$save_LDFLAGS"
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8585 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8587 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8589 else
8590 lt_prog_compiler_static=
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8600 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8601 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8602 $as_echo_n "(cached) " >&6
8603 else
8604 lt_cv_prog_compiler_c_o=no
8605 $RM -r conftest 2>/dev/null
8606 mkdir conftest
8607 cd conftest
8608 mkdir out
8609 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8611 lt_compiler_flag="-o out/conftest2.$ac_objext"
8612 # Insert the option either (1) after the last *FLAGS variable, or
8613 # (2) before a word containing "conftest.", or (3) at the end.
8614 # Note that $ac_compile itself does not contain backslashes and begins
8615 # with a dollar sign (not a hyphen), so the echo should work correctly.
8616 lt_compile=`echo "$ac_compile" | $SED \
8617 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8618 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8619 -e 's:$: $lt_compiler_flag:'`
8620 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8621 (eval "$lt_compile" 2>out/conftest.err)
8622 ac_status=$?
8623 cat out/conftest.err >&5
8624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8626 then
8627 # The compiler can only warn and ignore the option if not recognized
8628 # So say no if there are warnings
8629 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8630 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8631 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8632 lt_cv_prog_compiler_c_o=yes
8635 chmod u+w . 2>&5
8636 $RM conftest*
8637 # SGI C++ compiler will create directory out/ii_files/ for
8638 # template instantiation
8639 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8640 $RM out/* && rmdir out
8641 cd ..
8642 $RM -r conftest
8643 $RM conftest*
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8647 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8655 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8656 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8657 $as_echo_n "(cached) " >&6
8658 else
8659 lt_cv_prog_compiler_c_o=no
8660 $RM -r conftest 2>/dev/null
8661 mkdir conftest
8662 cd conftest
8663 mkdir out
8664 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8666 lt_compiler_flag="-o out/conftest2.$ac_objext"
8667 # Insert the option either (1) after the last *FLAGS variable, or
8668 # (2) before a word containing "conftest.", or (3) at the end.
8669 # Note that $ac_compile itself does not contain backslashes and begins
8670 # with a dollar sign (not a hyphen), so the echo should work correctly.
8671 lt_compile=`echo "$ac_compile" | $SED \
8672 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8673 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8674 -e 's:$: $lt_compiler_flag:'`
8675 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8676 (eval "$lt_compile" 2>out/conftest.err)
8677 ac_status=$?
8678 cat out/conftest.err >&5
8679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8681 then
8682 # The compiler can only warn and ignore the option if not recognized
8683 # So say no if there are warnings
8684 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8685 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8686 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8687 lt_cv_prog_compiler_c_o=yes
8690 chmod u+w . 2>&5
8691 $RM conftest*
8692 # SGI C++ compiler will create directory out/ii_files/ for
8693 # template instantiation
8694 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8695 $RM out/* && rmdir out
8696 cd ..
8697 $RM -r conftest
8698 $RM conftest*
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8702 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8707 hard_links="nottested"
8708 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8709 # do not overwrite the value of need_locks provided by the user
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8711 $as_echo_n "checking if we can lock with hard links... " >&6; }
8712 hard_links=yes
8713 $RM conftest*
8714 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8715 touch conftest.a
8716 ln conftest.a conftest.b 2>&5 || hard_links=no
8717 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8719 $as_echo "$hard_links" >&6; }
8720 if test "$hard_links" = no; then
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8722 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8723 need_locks=warn
8725 else
8726 need_locks=no
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8735 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8737 runpath_var=
8738 allow_undefined_flag=
8739 always_export_symbols=no
8740 archive_cmds=
8741 archive_expsym_cmds=
8742 compiler_needs_object=no
8743 enable_shared_with_static_runtimes=no
8744 export_dynamic_flag_spec=
8745 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8746 hardcode_automatic=no
8747 hardcode_direct=no
8748 hardcode_direct_absolute=no
8749 hardcode_libdir_flag_spec=
8750 hardcode_libdir_flag_spec_ld=
8751 hardcode_libdir_separator=
8752 hardcode_minus_L=no
8753 hardcode_shlibpath_var=unsupported
8754 inherit_rpath=no
8755 link_all_deplibs=unknown
8756 module_cmds=
8757 module_expsym_cmds=
8758 old_archive_from_new_cmds=
8759 old_archive_from_expsyms_cmds=
8760 thread_safe_flag_spec=
8761 whole_archive_flag_spec=
8762 # include_expsyms should be a list of space-separated symbols to be *always*
8763 # included in the symbol list
8764 include_expsyms=
8765 # exclude_expsyms can be an extended regexp of symbols to exclude
8766 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8767 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8768 # as well as any symbol that contains `d'.
8769 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8770 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8771 # platforms (ab)use it in PIC code, but their linkers get confused if
8772 # the symbol is explicitly referenced. Since portable code cannot
8773 # rely on this symbol name, it's probably fine to never include it in
8774 # preloaded symbol tables.
8775 # Exclude shared library initialization/finalization symbols.
8776 extract_expsyms_cmds=
8778 case $host_os in
8779 cygwin* | mingw* | pw32* | cegcc*)
8780 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8781 # When not using gcc, we currently assume that we are using
8782 # Microsoft Visual C++.
8783 if test "$GCC" != yes; then
8784 with_gnu_ld=no
8787 interix*)
8788 # we just hope/assume this is gcc and not c89 (= MSVC++)
8789 with_gnu_ld=yes
8791 openbsd*)
8792 with_gnu_ld=no
8794 esac
8796 ld_shlibs=yes
8798 # On some targets, GNU ld is compatible enough with the native linker
8799 # that we're better off using the native interface for both.
8800 lt_use_gnu_ld_interface=no
8801 if test "$with_gnu_ld" = yes; then
8802 case $host_os in
8803 aix*)
8804 # The AIX port of GNU ld has always aspired to compatibility
8805 # with the native linker. However, as the warning in the GNU ld
8806 # block says, versions before 2.19.5* couldn't really create working
8807 # shared libraries, regardless of the interface used.
8808 case `$LD -v 2>&1` in
8809 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8810 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8811 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8813 lt_use_gnu_ld_interface=yes
8815 esac
8818 lt_use_gnu_ld_interface=yes
8820 esac
8823 if test "$lt_use_gnu_ld_interface" = yes; then
8824 # If archive_cmds runs LD, not CC, wlarc should be empty
8825 wlarc='${wl}'
8827 # Set some defaults for GNU ld with shared library support. These
8828 # are reset later if shared libraries are not supported. Putting them
8829 # here allows them to be overridden if necessary.
8830 runpath_var=LD_RUN_PATH
8831 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8832 export_dynamic_flag_spec='${wl}--export-dynamic'
8833 # ancient GNU ld didn't support --whole-archive et. al.
8834 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8835 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8836 else
8837 whole_archive_flag_spec=
8839 supports_anon_versioning=no
8840 case `$LD -v 2>&1` in
8841 *GNU\ gold*) supports_anon_versioning=yes ;;
8842 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8843 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8844 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8845 *\ 2.11.*) ;; # other 2.11 versions
8846 *) supports_anon_versioning=yes ;;
8847 esac
8849 # See if GNU ld supports shared libraries.
8850 case $host_os in
8851 aix[3-9]*)
8852 # On AIX/PPC, the GNU linker is very broken
8853 if test "$host_cpu" != ia64; then
8854 ld_shlibs=no
8855 cat <<_LT_EOF 1>&2
8857 *** Warning: the GNU linker, at least up to release 2.19, is reported
8858 *** to be unable to reliably create shared libraries on AIX.
8859 *** Therefore, libtool is disabling shared libraries support. If you
8860 *** really care for shared libraries, you may want to install binutils
8861 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8862 *** You will then need to restart the configuration process.
8864 _LT_EOF
8868 amigaos*)
8869 case $host_cpu in
8870 powerpc)
8871 # see comment about AmigaOS4 .so support
8872 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8873 archive_expsym_cmds=''
8875 m68k)
8876 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)'
8877 hardcode_libdir_flag_spec='-L$libdir'
8878 hardcode_minus_L=yes
8880 esac
8883 beos*)
8884 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8885 allow_undefined_flag=unsupported
8886 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8887 # support --undefined. This deserves some investigation. FIXME
8888 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8889 else
8890 ld_shlibs=no
8894 cygwin* | mingw* | pw32* | cegcc*)
8895 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8896 # as there is no search path for DLLs.
8897 hardcode_libdir_flag_spec='-L$libdir'
8898 export_dynamic_flag_spec='${wl}--export-all-symbols'
8899 allow_undefined_flag=unsupported
8900 always_export_symbols=no
8901 enable_shared_with_static_runtimes=yes
8902 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8904 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8905 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8906 # If the export-symbols file already is a .def file (1st line
8907 # is EXPORTS), use it as is; otherwise, prepend...
8908 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8909 cp $export_symbols $output_objdir/$soname.def;
8910 else
8911 echo EXPORTS > $output_objdir/$soname.def;
8912 cat $export_symbols >> $output_objdir/$soname.def;
8914 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8915 else
8916 ld_shlibs=no
8920 haiku*)
8921 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8922 link_all_deplibs=yes
8925 interix[3-9]*)
8926 hardcode_direct=no
8927 hardcode_shlibpath_var=no
8928 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8929 export_dynamic_flag_spec='${wl}-E'
8930 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8931 # Instead, shared libraries are loaded at an image base (0x10000000 by
8932 # default) and relocated if they conflict, which is a slow very memory
8933 # consuming and fragmenting process. To avoid this, we pick a random,
8934 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8935 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8936 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8937 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'
8940 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8941 tmp_diet=no
8942 if test "$host_os" = linux-dietlibc; then
8943 case $cc_basename in
8944 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8945 esac
8947 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8948 && test "$tmp_diet" = no
8949 then
8950 tmp_addflag=' $pic_flag'
8951 tmp_sharedflag='-shared'
8952 case $cc_basename,$host_cpu in
8953 pgcc*) # Portland Group C compiler
8954 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'
8955 tmp_addflag=' $pic_flag'
8957 pgf77* | pgf90* | pgf95* | pgfortran*)
8958 # Portland Group f77 and f90 compilers
8959 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'
8960 tmp_addflag=' $pic_flag -Mnomain' ;;
8961 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8962 tmp_addflag=' -i_dynamic' ;;
8963 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8964 tmp_addflag=' -i_dynamic -nofor_main' ;;
8965 ifc* | ifort*) # Intel Fortran compiler
8966 tmp_addflag=' -nofor_main' ;;
8967 lf95*) # Lahey Fortran 8.1
8968 whole_archive_flag_spec=
8969 tmp_sharedflag='--shared' ;;
8970 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8971 tmp_sharedflag='-qmkshrobj'
8972 tmp_addflag= ;;
8973 nvcc*) # Cuda Compiler Driver 2.2
8974 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'
8975 compiler_needs_object=yes
8977 esac
8978 case `$CC -V 2>&1 | sed 5q` in
8979 *Sun\ C*) # Sun C 5.9
8980 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'
8981 compiler_needs_object=yes
8982 tmp_sharedflag='-G' ;;
8983 *Sun\ F*) # Sun Fortran 8.3
8984 tmp_sharedflag='-G' ;;
8985 esac
8986 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8988 if test "x$supports_anon_versioning" = xyes; then
8989 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8990 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8991 echo "local: *; };" >> $output_objdir/$libname.ver~
8992 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8995 case $cc_basename in
8996 xlf* | bgf* | bgxlf* | mpixlf*)
8997 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8998 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8999 hardcode_libdir_flag_spec=
9000 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9001 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9002 if test "x$supports_anon_versioning" = xyes; then
9003 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9004 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9005 echo "local: *; };" >> $output_objdir/$libname.ver~
9006 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9009 esac
9010 else
9011 ld_shlibs=no
9015 netbsd*)
9016 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9017 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9018 wlarc=
9019 else
9020 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9021 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9025 solaris*)
9026 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9027 ld_shlibs=no
9028 cat <<_LT_EOF 1>&2
9030 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9031 *** create shared libraries on Solaris systems. Therefore, libtool
9032 *** is disabling shared libraries support. We urge you to upgrade GNU
9033 *** binutils to release 2.9.1 or newer. Another option is to modify
9034 *** your PATH or compiler configuration so that the native linker is
9035 *** used, and then restart.
9037 _LT_EOF
9038 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9039 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9040 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9041 else
9042 ld_shlibs=no
9046 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9047 case `$LD -v 2>&1` in
9048 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9049 ld_shlibs=no
9050 cat <<_LT_EOF 1>&2
9052 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9053 *** reliably create shared libraries on SCO systems. Therefore, libtool
9054 *** is disabling shared libraries support. We urge you to upgrade GNU
9055 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9056 *** your PATH or compiler configuration so that the native linker is
9057 *** used, and then restart.
9059 _LT_EOF
9062 # For security reasons, it is highly recommended that you always
9063 # use absolute paths for naming shared libraries, and exclude the
9064 # DT_RUNPATH tag from executables and libraries. But doing so
9065 # requires that you compile everything twice, which is a pain.
9066 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9067 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9068 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9069 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9070 else
9071 ld_shlibs=no
9074 esac
9077 sunos4*)
9078 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9079 wlarc=
9080 hardcode_direct=yes
9081 hardcode_shlibpath_var=no
9085 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9086 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9087 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9088 else
9089 ld_shlibs=no
9092 esac
9094 if test "$ld_shlibs" = no; then
9095 runpath_var=
9096 hardcode_libdir_flag_spec=
9097 export_dynamic_flag_spec=
9098 whole_archive_flag_spec=
9100 else
9101 # PORTME fill in a description of your system's linker (not GNU ld)
9102 case $host_os in
9103 aix3*)
9104 allow_undefined_flag=unsupported
9105 always_export_symbols=yes
9106 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'
9107 # Note: this linker hardcodes the directories in LIBPATH if there
9108 # are no directories specified by -L.
9109 hardcode_minus_L=yes
9110 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9111 # Neither direct hardcoding nor static linking is supported with a
9112 # broken collect2.
9113 hardcode_direct=unsupported
9117 aix[4-9]*)
9118 if test "$host_cpu" = ia64; then
9119 # On IA64, the linker does run time linking by default, so we don't
9120 # have to do anything special.
9121 aix_use_runtimelinking=no
9122 exp_sym_flag='-Bexport'
9123 no_entry_flag=""
9124 else
9125 # If we're using GNU nm, then we don't want the "-C" option.
9126 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9127 # Also, AIX nm treats weak defined symbols like other global
9128 # defined symbols, whereas GNU nm marks them as "W".
9129 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9130 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'
9131 else
9132 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'
9134 aix_use_runtimelinking=no
9136 # Test if we are trying to use run time linking or normal
9137 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9138 # need to do runtime linking.
9139 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9140 for ld_flag in $LDFLAGS; do
9141 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9142 aix_use_runtimelinking=yes
9143 break
9145 done
9147 esac
9149 exp_sym_flag='-bexport'
9150 no_entry_flag='-bnoentry'
9153 # When large executables or shared objects are built, AIX ld can
9154 # have problems creating the table of contents. If linking a library
9155 # or program results in "error TOC overflow" add -mminimal-toc to
9156 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9157 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9159 archive_cmds=''
9160 hardcode_direct=yes
9161 hardcode_direct_absolute=yes
9162 hardcode_libdir_separator=':'
9163 link_all_deplibs=yes
9164 file_list_spec='${wl}-f,'
9166 if test "$GCC" = yes; then
9167 case $host_os in aix4.[012]|aix4.[012].*)
9168 # We only want to do this on AIX 4.2 and lower, the check
9169 # below for broken collect2 doesn't work under 4.3+
9170 collect2name=`${CC} -print-prog-name=collect2`
9171 if test -f "$collect2name" &&
9172 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9173 then
9174 # We have reworked collect2
9176 else
9177 # We have old collect2
9178 hardcode_direct=unsupported
9179 # It fails to find uninstalled libraries when the uninstalled
9180 # path is not listed in the libpath. Setting hardcode_minus_L
9181 # to unsupported forces relinking
9182 hardcode_minus_L=yes
9183 hardcode_libdir_flag_spec='-L$libdir'
9184 hardcode_libdir_separator=
9187 esac
9188 shared_flag='-shared'
9189 if test "$aix_use_runtimelinking" = yes; then
9190 shared_flag="$shared_flag "'${wl}-G'
9192 else
9193 # not using gcc
9194 if test "$host_cpu" = ia64; then
9195 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9196 # chokes on -Wl,-G. The following line is correct:
9197 shared_flag='-G'
9198 else
9199 if test "$aix_use_runtimelinking" = yes; then
9200 shared_flag='${wl}-G'
9201 else
9202 shared_flag='${wl}-bM:SRE'
9207 export_dynamic_flag_spec='${wl}-bexpall'
9208 # It seems that -bexpall does not export symbols beginning with
9209 # underscore (_), so it is better to generate a list of symbols to export.
9210 always_export_symbols=yes
9211 if test "$aix_use_runtimelinking" = yes; then
9212 # Warning - without using the other runtime loading flags (-brtl),
9213 # -berok will link without error, but may produce a broken library.
9214 allow_undefined_flag='-berok'
9215 # Determine the default libpath from the value encoded in an
9216 # empty executable.
9217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9218 /* end confdefs.h. */
9221 main ()
9225 return 0;
9227 _ACEOF
9228 if ac_fn_c_try_link "$LINENO"; then :
9230 lt_aix_libpath_sed='
9231 /Import File Strings/,/^$/ {
9232 /^0/ {
9233 s/^0 *\(.*\)$/\1/
9237 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9238 # Check for a 64-bit object if we didn't find anything.
9239 if test -z "$aix_libpath"; then
9240 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9243 rm -f core conftest.err conftest.$ac_objext \
9244 conftest$ac_exeext conftest.$ac_ext
9245 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9247 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9248 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"
9249 else
9250 if test "$host_cpu" = ia64; then
9251 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9252 allow_undefined_flag="-z nodefs"
9253 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"
9254 else
9255 # Determine the default libpath from the value encoded in an
9256 # empty executable.
9257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9258 /* end confdefs.h. */
9261 main ()
9265 return 0;
9267 _ACEOF
9268 if ac_fn_c_try_link "$LINENO"; then :
9270 lt_aix_libpath_sed='
9271 /Import File Strings/,/^$/ {
9272 /^0/ {
9273 s/^0 *\(.*\)$/\1/
9277 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9278 # Check for a 64-bit object if we didn't find anything.
9279 if test -z "$aix_libpath"; then
9280 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9283 rm -f core conftest.err conftest.$ac_objext \
9284 conftest$ac_exeext conftest.$ac_ext
9285 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9287 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9288 # Warning - without using the other run time loading flags,
9289 # -berok will link without error, but may produce a broken library.
9290 no_undefined_flag=' ${wl}-bernotok'
9291 allow_undefined_flag=' ${wl}-berok'
9292 if test "$with_gnu_ld" = yes; then
9293 # We only use this code for GNU lds that support --whole-archive.
9294 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9295 else
9296 # Exported symbols can be pulled into shared objects from archives
9297 whole_archive_flag_spec='$convenience'
9299 archive_cmds_need_lc=yes
9300 # This is similar to how AIX traditionally builds its shared libraries.
9301 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'
9306 amigaos*)
9307 case $host_cpu in
9308 powerpc)
9309 # see comment about AmigaOS4 .so support
9310 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9311 archive_expsym_cmds=''
9313 m68k)
9314 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)'
9315 hardcode_libdir_flag_spec='-L$libdir'
9316 hardcode_minus_L=yes
9318 esac
9321 bsdi[45]*)
9322 export_dynamic_flag_spec=-rdynamic
9325 cygwin* | mingw* | pw32* | cegcc*)
9326 # When not using gcc, we currently assume that we are using
9327 # Microsoft Visual C++.
9328 # hardcode_libdir_flag_spec is actually meaningless, as there is
9329 # no search path for DLLs.
9330 hardcode_libdir_flag_spec=' '
9331 allow_undefined_flag=unsupported
9332 # Tell ltmain to make .lib files, not .a files.
9333 libext=lib
9334 # Tell ltmain to make .dll files, not .so files.
9335 shrext_cmds=".dll"
9336 # FIXME: Setting linknames here is a bad hack.
9337 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9338 # The linker will automatically build a .lib file if we build a DLL.
9339 old_archive_from_new_cmds='true'
9340 # FIXME: Should let the user specify the lib program.
9341 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9342 fix_srcfile_path='`cygpath -w "$srcfile"`'
9343 enable_shared_with_static_runtimes=yes
9346 darwin* | rhapsody*)
9349 archive_cmds_need_lc=no
9350 hardcode_direct=no
9351 hardcode_automatic=yes
9352 hardcode_shlibpath_var=unsupported
9353 if test "$lt_cv_ld_force_load" = "yes"; then
9354 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\"`'
9355 else
9356 whole_archive_flag_spec=''
9358 link_all_deplibs=yes
9359 allow_undefined_flag="$_lt_dar_allow_undefined"
9360 case $cc_basename in
9361 ifort*) _lt_dar_can_shared=yes ;;
9362 *) _lt_dar_can_shared=$GCC ;;
9363 esac
9364 if test "$_lt_dar_can_shared" = "yes"; then
9365 output_verbose_link_cmd=func_echo_all
9366 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9367 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9368 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}"
9369 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}"
9371 else
9372 ld_shlibs=no
9377 dgux*)
9378 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9379 hardcode_libdir_flag_spec='-L$libdir'
9380 hardcode_shlibpath_var=no
9383 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9384 # support. Future versions do this automatically, but an explicit c++rt0.o
9385 # does not break anything, and helps significantly (at the cost of a little
9386 # extra space).
9387 freebsd2.2*)
9388 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9389 hardcode_libdir_flag_spec='-R$libdir'
9390 hardcode_direct=yes
9391 hardcode_shlibpath_var=no
9394 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9395 freebsd2.*)
9396 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9397 hardcode_direct=yes
9398 hardcode_minus_L=yes
9399 hardcode_shlibpath_var=no
9402 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9403 freebsd* | dragonfly*)
9404 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9405 hardcode_libdir_flag_spec='-R$libdir'
9406 hardcode_direct=yes
9407 hardcode_shlibpath_var=no
9410 hpux9*)
9411 if test "$GCC" = yes; then
9412 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'
9413 else
9414 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'
9416 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9417 hardcode_libdir_separator=:
9418 hardcode_direct=yes
9420 # hardcode_minus_L: Not really in the search PATH,
9421 # but as the default location of the library.
9422 hardcode_minus_L=yes
9423 export_dynamic_flag_spec='${wl}-E'
9426 hpux10*)
9427 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9428 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9429 else
9430 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9432 if test "$with_gnu_ld" = no; then
9433 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9434 hardcode_libdir_flag_spec_ld='+b $libdir'
9435 hardcode_libdir_separator=:
9436 hardcode_direct=yes
9437 hardcode_direct_absolute=yes
9438 export_dynamic_flag_spec='${wl}-E'
9439 # hardcode_minus_L: Not really in the search PATH,
9440 # but as the default location of the library.
9441 hardcode_minus_L=yes
9445 hpux11*)
9446 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9447 case $host_cpu in
9448 hppa*64*)
9449 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9451 ia64*)
9452 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9455 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9457 esac
9458 else
9459 case $host_cpu in
9460 hppa*64*)
9461 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9463 ia64*)
9464 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9468 # Older versions of the 11.00 compiler do not understand -b yet
9469 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9471 $as_echo_n "checking if $CC understands -b... " >&6; }
9472 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9473 $as_echo_n "(cached) " >&6
9474 else
9475 lt_cv_prog_compiler__b=no
9476 save_LDFLAGS="$LDFLAGS"
9477 LDFLAGS="$LDFLAGS -b"
9478 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9479 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9480 # The linker can only warn and ignore the option if not recognized
9481 # So say no if there are warnings
9482 if test -s conftest.err; then
9483 # Append any errors to the config.log.
9484 cat conftest.err 1>&5
9485 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9486 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9487 if diff conftest.exp conftest.er2 >/dev/null; then
9488 lt_cv_prog_compiler__b=yes
9490 else
9491 lt_cv_prog_compiler__b=yes
9494 $RM -r conftest*
9495 LDFLAGS="$save_LDFLAGS"
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9499 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9501 if test x"$lt_cv_prog_compiler__b" = xyes; then
9502 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9503 else
9504 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9508 esac
9510 if test "$with_gnu_ld" = no; then
9511 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9512 hardcode_libdir_separator=:
9514 case $host_cpu in
9515 hppa*64*|ia64*)
9516 hardcode_direct=no
9517 hardcode_shlibpath_var=no
9520 hardcode_direct=yes
9521 hardcode_direct_absolute=yes
9522 export_dynamic_flag_spec='${wl}-E'
9524 # hardcode_minus_L: Not really in the search PATH,
9525 # but as the default location of the library.
9526 hardcode_minus_L=yes
9528 esac
9532 irix5* | irix6* | nonstopux*)
9533 if test "$GCC" = yes; then
9534 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'
9535 # Try to use the -exported_symbol ld option, if it does not
9536 # work, assume that -exports_file does not work either and
9537 # implicitly export all symbols.
9538 save_LDFLAGS="$LDFLAGS"
9539 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9541 /* end confdefs.h. */
9542 int foo(void) {}
9543 _ACEOF
9544 if ac_fn_c_try_link "$LINENO"; then :
9545 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'
9548 rm -f core conftest.err conftest.$ac_objext \
9549 conftest$ac_exeext conftest.$ac_ext
9550 LDFLAGS="$save_LDFLAGS"
9551 else
9552 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'
9553 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'
9555 archive_cmds_need_lc='no'
9556 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9557 hardcode_libdir_separator=:
9558 inherit_rpath=yes
9559 link_all_deplibs=yes
9562 netbsd*)
9563 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9564 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9565 else
9566 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9568 hardcode_libdir_flag_spec='-R$libdir'
9569 hardcode_direct=yes
9570 hardcode_shlibpath_var=no
9573 newsos6)
9574 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9575 hardcode_direct=yes
9576 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9577 hardcode_libdir_separator=:
9578 hardcode_shlibpath_var=no
9581 *nto* | *qnx*)
9584 openbsd*)
9585 if test -f /usr/libexec/ld.so; then
9586 hardcode_direct=yes
9587 hardcode_shlibpath_var=no
9588 hardcode_direct_absolute=yes
9589 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9590 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9591 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9592 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9593 export_dynamic_flag_spec='${wl}-E'
9594 else
9595 case $host_os in
9596 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9597 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9598 hardcode_libdir_flag_spec='-R$libdir'
9601 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9602 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9604 esac
9606 else
9607 ld_shlibs=no
9611 os2*)
9612 hardcode_libdir_flag_spec='-L$libdir'
9613 hardcode_minus_L=yes
9614 allow_undefined_flag=unsupported
9615 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'
9616 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9619 osf3*)
9620 if test "$GCC" = yes; then
9621 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9622 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'
9623 else
9624 allow_undefined_flag=' -expect_unresolved \*'
9625 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'
9627 archive_cmds_need_lc='no'
9628 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9629 hardcode_libdir_separator=:
9632 osf4* | osf5*) # as osf3* with the addition of -msym flag
9633 if test "$GCC" = yes; then
9634 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9635 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'
9636 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9637 else
9638 allow_undefined_flag=' -expect_unresolved \*'
9639 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'
9640 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~
9641 $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'
9643 # Both c and cxx compiler support -rpath directly
9644 hardcode_libdir_flag_spec='-rpath $libdir'
9646 archive_cmds_need_lc='no'
9647 hardcode_libdir_separator=:
9650 solaris*)
9651 no_undefined_flag=' -z defs'
9652 if test "$GCC" = yes; then
9653 wlarc='${wl}'
9654 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9655 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9656 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9657 else
9658 case `$CC -V 2>&1` in
9659 *"Compilers 5.0"*)
9660 wlarc=''
9661 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9662 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9663 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9666 wlarc='${wl}'
9667 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9668 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9669 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9671 esac
9673 hardcode_libdir_flag_spec='-R$libdir'
9674 hardcode_shlibpath_var=no
9675 case $host_os in
9676 solaris2.[0-5] | solaris2.[0-5].*) ;;
9678 # The compiler driver will combine and reorder linker options,
9679 # but understands `-z linker_flag'. GCC discards it without `$wl',
9680 # but is careful enough not to reorder.
9681 # Supported since Solaris 2.6 (maybe 2.5.1?)
9682 if test "$GCC" = yes; then
9683 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9684 else
9685 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9688 esac
9689 link_all_deplibs=yes
9692 sunos4*)
9693 if test "x$host_vendor" = xsequent; then
9694 # Use $CC to link under sequent, because it throws in some extra .o
9695 # files that make .init and .fini sections work.
9696 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9697 else
9698 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9700 hardcode_libdir_flag_spec='-L$libdir'
9701 hardcode_direct=yes
9702 hardcode_minus_L=yes
9703 hardcode_shlibpath_var=no
9706 sysv4)
9707 case $host_vendor in
9708 sni)
9709 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9710 hardcode_direct=yes # is this really true???
9712 siemens)
9713 ## LD is ld it makes a PLAMLIB
9714 ## CC just makes a GrossModule.
9715 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9716 reload_cmds='$CC -r -o $output$reload_objs'
9717 hardcode_direct=no
9719 motorola)
9720 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9721 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9723 esac
9724 runpath_var='LD_RUN_PATH'
9725 hardcode_shlibpath_var=no
9728 sysv4.3*)
9729 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9730 hardcode_shlibpath_var=no
9731 export_dynamic_flag_spec='-Bexport'
9734 sysv4*MP*)
9735 if test -d /usr/nec; then
9736 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9737 hardcode_shlibpath_var=no
9738 runpath_var=LD_RUN_PATH
9739 hardcode_runpath_var=yes
9740 ld_shlibs=yes
9744 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9745 no_undefined_flag='${wl}-z,text'
9746 archive_cmds_need_lc=no
9747 hardcode_shlibpath_var=no
9748 runpath_var='LD_RUN_PATH'
9750 if test "$GCC" = yes; then
9751 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9752 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9753 else
9754 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9755 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9759 sysv5* | sco3.2v5* | sco5v6*)
9760 # Note: We can NOT use -z defs as we might desire, because we do not
9761 # link with -lc, and that would cause any symbols used from libc to
9762 # always be unresolved, which means just about no library would
9763 # ever link correctly. If we're not using GNU ld we use -z text
9764 # though, which does catch some bad symbols but isn't as heavy-handed
9765 # as -z defs.
9766 no_undefined_flag='${wl}-z,text'
9767 allow_undefined_flag='${wl}-z,nodefs'
9768 archive_cmds_need_lc=no
9769 hardcode_shlibpath_var=no
9770 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9771 hardcode_libdir_separator=':'
9772 link_all_deplibs=yes
9773 export_dynamic_flag_spec='${wl}-Bexport'
9774 runpath_var='LD_RUN_PATH'
9776 if test "$GCC" = yes; then
9777 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9778 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9779 else
9780 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9781 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9785 uts4*)
9786 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9787 hardcode_libdir_flag_spec='-L$libdir'
9788 hardcode_shlibpath_var=no
9792 ld_shlibs=no
9794 esac
9796 if test x$host_vendor = xsni; then
9797 case $host in
9798 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9799 export_dynamic_flag_spec='${wl}-Blargedynsym'
9801 esac
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9806 $as_echo "$ld_shlibs" >&6; }
9807 test "$ld_shlibs" = no && can_build_shared=no
9809 with_gnu_ld=$with_gnu_ld
9826 # Do we need to explicitly link libc?
9828 case "x$archive_cmds_need_lc" in
9829 x|xyes)
9830 # Assume -lc should be added
9831 archive_cmds_need_lc=yes
9833 if test "$enable_shared" = yes && test "$GCC" = yes; then
9834 case $archive_cmds in
9835 *'~'*)
9836 # FIXME: we may have to deal with multi-command sequences.
9838 '$CC '*)
9839 # Test whether the compiler implicitly links with -lc since on some
9840 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9841 # to ld, don't add -lc before -lgcc.
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9843 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9844 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9845 $as_echo_n "(cached) " >&6
9846 else
9847 $RM conftest*
9848 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9850 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9851 (eval $ac_compile) 2>&5
9852 ac_status=$?
9853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9854 test $ac_status = 0; } 2>conftest.err; then
9855 soname=conftest
9856 lib=conftest
9857 libobjs=conftest.$ac_objext
9858 deplibs=
9859 wl=$lt_prog_compiler_wl
9860 pic_flag=$lt_prog_compiler_pic
9861 compiler_flags=-v
9862 linker_flags=-v
9863 verstring=
9864 output_objdir=.
9865 libname=conftest
9866 lt_save_allow_undefined_flag=$allow_undefined_flag
9867 allow_undefined_flag=
9868 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9869 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9870 ac_status=$?
9871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9872 test $ac_status = 0; }
9873 then
9874 lt_cv_archive_cmds_need_lc=no
9875 else
9876 lt_cv_archive_cmds_need_lc=yes
9878 allow_undefined_flag=$lt_save_allow_undefined_flag
9879 else
9880 cat conftest.err 1>&5
9882 $RM conftest*
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9886 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9887 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9889 esac
9892 esac
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10051 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10053 if test "$GCC" = yes; then
10054 case $host_os in
10055 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10056 *) lt_awk_arg="/^libraries:/" ;;
10057 esac
10058 case $host_os in
10059 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10060 *) lt_sed_strip_eq="s,=/,/,g" ;;
10061 esac
10062 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10063 case $lt_search_path_spec in
10064 *\;*)
10065 # if the path contains ";" then we assume it to be the separator
10066 # otherwise default to the standard path separator (i.e. ":") - it is
10067 # assumed that no part of a normal pathname contains ";" but that should
10068 # okay in the real world where ";" in dirpaths is itself problematic.
10069 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10072 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10074 esac
10075 # Ok, now we have the path, separated by spaces, we can step through it
10076 # and add multilib dir if necessary.
10077 lt_tmp_lt_search_path_spec=
10078 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10079 for lt_sys_path in $lt_search_path_spec; do
10080 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10081 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10082 else
10083 test -d "$lt_sys_path" && \
10084 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10086 done
10087 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10088 BEGIN {RS=" "; FS="/|\n";} {
10089 lt_foo="";
10090 lt_count=0;
10091 for (lt_i = NF; lt_i > 0; lt_i--) {
10092 if ($lt_i != "" && $lt_i != ".") {
10093 if ($lt_i == "..") {
10094 lt_count++;
10095 } else {
10096 if (lt_count == 0) {
10097 lt_foo="/" $lt_i lt_foo;
10098 } else {
10099 lt_count--;
10104 if (lt_foo != "") { lt_freq[lt_foo]++; }
10105 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10107 # AWK program above erroneously prepends '/' to C:/dos/paths
10108 # for these hosts.
10109 case $host_os in
10110 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10111 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10112 esac
10113 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10114 else
10115 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10117 library_names_spec=
10118 libname_spec='lib$name'
10119 soname_spec=
10120 shrext_cmds=".so"
10121 postinstall_cmds=
10122 postuninstall_cmds=
10123 finish_cmds=
10124 finish_eval=
10125 shlibpath_var=
10126 shlibpath_overrides_runpath=unknown
10127 version_type=none
10128 dynamic_linker="$host_os ld.so"
10129 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10130 need_lib_prefix=unknown
10131 hardcode_into_libs=no
10133 # when you set need_version to no, make sure it does not cause -set_version
10134 # flags to be left without arguments
10135 need_version=unknown
10137 case $host_os in
10138 aix3*)
10139 version_type=linux
10140 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10141 shlibpath_var=LIBPATH
10143 # AIX 3 has no versioning support, so we append a major version to the name.
10144 soname_spec='${libname}${release}${shared_ext}$major'
10147 aix[4-9]*)
10148 version_type=linux
10149 need_lib_prefix=no
10150 need_version=no
10151 hardcode_into_libs=yes
10152 if test "$host_cpu" = ia64; then
10153 # AIX 5 supports IA64
10154 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10155 shlibpath_var=LD_LIBRARY_PATH
10156 else
10157 # With GCC up to 2.95.x, collect2 would create an import file
10158 # for dependence libraries. The import file would start with
10159 # the line `#! .'. This would cause the generated library to
10160 # depend on `.', always an invalid library. This was fixed in
10161 # development snapshots of GCC prior to 3.0.
10162 case $host_os in
10163 aix4 | aix4.[01] | aix4.[01].*)
10164 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10165 echo ' yes '
10166 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10168 else
10169 can_build_shared=no
10172 esac
10173 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10174 # soname into executable. Probably we can add versioning support to
10175 # collect2, so additional links can be useful in future.
10176 if test "$aix_use_runtimelinking" = yes; then
10177 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10178 # instead of lib<name>.a to let people know that these are not
10179 # typical AIX shared libraries.
10180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10181 else
10182 # We preserve .a as extension for shared libraries through AIX4.2
10183 # and later when we are not doing run time linking.
10184 library_names_spec='${libname}${release}.a $libname.a'
10185 soname_spec='${libname}${release}${shared_ext}$major'
10187 shlibpath_var=LIBPATH
10191 amigaos*)
10192 case $host_cpu in
10193 powerpc)
10194 # Since July 2007 AmigaOS4 officially supports .so libraries.
10195 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10198 m68k)
10199 library_names_spec='$libname.ixlibrary $libname.a'
10200 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10201 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'
10203 esac
10206 beos*)
10207 library_names_spec='${libname}${shared_ext}'
10208 dynamic_linker="$host_os ld.so"
10209 shlibpath_var=LIBRARY_PATH
10212 bsdi[45]*)
10213 version_type=linux
10214 need_version=no
10215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10216 soname_spec='${libname}${release}${shared_ext}$major'
10217 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10218 shlibpath_var=LD_LIBRARY_PATH
10219 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10220 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10221 # the default ld.so.conf also contains /usr/contrib/lib and
10222 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10223 # libtool to hard-code these into programs
10226 cygwin* | mingw* | pw32* | cegcc*)
10227 version_type=windows
10228 shrext_cmds=".dll"
10229 need_version=no
10230 need_lib_prefix=no
10232 case $GCC,$host_os in
10233 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10234 library_names_spec='$libname.dll.a'
10235 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10236 postinstall_cmds='base_file=`basename \${file}`~
10237 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10238 dldir=$destdir/`dirname \$dlpath`~
10239 test -d \$dldir || mkdir -p \$dldir~
10240 $install_prog $dir/$dlname \$dldir/$dlname~
10241 chmod a+x \$dldir/$dlname~
10242 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10243 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10245 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10246 dlpath=$dir/\$dldll~
10247 $RM \$dlpath'
10248 shlibpath_overrides_runpath=yes
10250 case $host_os in
10251 cygwin*)
10252 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10253 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10255 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10257 mingw* | cegcc*)
10258 # MinGW DLLs use traditional 'lib' prefix
10259 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10261 pw32*)
10262 # pw32 DLLs use 'pw' prefix rather than 'lib'
10263 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10265 esac
10269 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10271 esac
10272 dynamic_linker='Win32 ld.exe'
10273 # FIXME: first we should search . and the directory the executable is in
10274 shlibpath_var=PATH
10277 darwin* | rhapsody*)
10278 dynamic_linker="$host_os dyld"
10279 version_type=darwin
10280 need_lib_prefix=no
10281 need_version=no
10282 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10283 soname_spec='${libname}${release}${major}$shared_ext'
10284 shlibpath_overrides_runpath=yes
10285 shlibpath_var=DYLD_LIBRARY_PATH
10286 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10288 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10289 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10292 dgux*)
10293 version_type=linux
10294 need_lib_prefix=no
10295 need_version=no
10296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10297 soname_spec='${libname}${release}${shared_ext}$major'
10298 shlibpath_var=LD_LIBRARY_PATH
10301 freebsd* | dragonfly*)
10302 # DragonFly does not have aout. When/if they implement a new
10303 # versioning mechanism, adjust this.
10304 if test -x /usr/bin/objformat; then
10305 objformat=`/usr/bin/objformat`
10306 else
10307 case $host_os in
10308 freebsd[23].*) objformat=aout ;;
10309 *) objformat=elf ;;
10310 esac
10312 version_type=freebsd-$objformat
10313 case $version_type in
10314 freebsd-elf*)
10315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10316 need_version=no
10317 need_lib_prefix=no
10319 freebsd-*)
10320 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10321 need_version=yes
10323 esac
10324 shlibpath_var=LD_LIBRARY_PATH
10325 case $host_os in
10326 freebsd2.*)
10327 shlibpath_overrides_runpath=yes
10329 freebsd3.[01]* | freebsdelf3.[01]*)
10330 shlibpath_overrides_runpath=yes
10331 hardcode_into_libs=yes
10333 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10334 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10335 shlibpath_overrides_runpath=no
10336 hardcode_into_libs=yes
10338 *) # from 4.6 on, and DragonFly
10339 shlibpath_overrides_runpath=yes
10340 hardcode_into_libs=yes
10342 esac
10345 gnu*)
10346 version_type=linux
10347 need_lib_prefix=no
10348 need_version=no
10349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10350 soname_spec='${libname}${release}${shared_ext}$major'
10351 shlibpath_var=LD_LIBRARY_PATH
10352 hardcode_into_libs=yes
10355 haiku*)
10356 version_type=linux
10357 need_lib_prefix=no
10358 need_version=no
10359 dynamic_linker="$host_os runtime_loader"
10360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10361 soname_spec='${libname}${release}${shared_ext}$major'
10362 shlibpath_var=LIBRARY_PATH
10363 shlibpath_overrides_runpath=yes
10364 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10365 hardcode_into_libs=yes
10368 hpux9* | hpux10* | hpux11*)
10369 # Give a soname corresponding to the major version so that dld.sl refuses to
10370 # link against other versions.
10371 version_type=sunos
10372 need_lib_prefix=no
10373 need_version=no
10374 case $host_cpu in
10375 ia64*)
10376 shrext_cmds='.so'
10377 hardcode_into_libs=yes
10378 dynamic_linker="$host_os dld.so"
10379 shlibpath_var=LD_LIBRARY_PATH
10380 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10382 soname_spec='${libname}${release}${shared_ext}$major'
10383 if test "X$HPUX_IA64_MODE" = X32; then
10384 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10385 else
10386 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10388 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10390 hppa*64*)
10391 shrext_cmds='.sl'
10392 hardcode_into_libs=yes
10393 dynamic_linker="$host_os dld.sl"
10394 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10395 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10397 soname_spec='${libname}${release}${shared_ext}$major'
10398 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10399 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10402 shrext_cmds='.sl'
10403 dynamic_linker="$host_os dld.sl"
10404 shlibpath_var=SHLIB_PATH
10405 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10407 soname_spec='${libname}${release}${shared_ext}$major'
10409 esac
10410 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10411 postinstall_cmds='chmod 555 $lib'
10412 # or fails outright, so override atomically:
10413 install_override_mode=555
10416 interix[3-9]*)
10417 version_type=linux
10418 need_lib_prefix=no
10419 need_version=no
10420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10421 soname_spec='${libname}${release}${shared_ext}$major'
10422 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10423 shlibpath_var=LD_LIBRARY_PATH
10424 shlibpath_overrides_runpath=no
10425 hardcode_into_libs=yes
10428 irix5* | irix6* | nonstopux*)
10429 case $host_os in
10430 nonstopux*) version_type=nonstopux ;;
10432 if test "$lt_cv_prog_gnu_ld" = yes; then
10433 version_type=linux
10434 else
10435 version_type=irix
10436 fi ;;
10437 esac
10438 need_lib_prefix=no
10439 need_version=no
10440 soname_spec='${libname}${release}${shared_ext}$major'
10441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10442 case $host_os in
10443 irix5* | nonstopux*)
10444 libsuff= shlibsuff=
10447 case $LD in # libtool.m4 will add one of these switches to LD
10448 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10449 libsuff= shlibsuff= libmagic=32-bit;;
10450 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10451 libsuff=32 shlibsuff=N32 libmagic=N32;;
10452 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10453 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10454 *) libsuff= shlibsuff= libmagic=never-match;;
10455 esac
10457 esac
10458 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10459 shlibpath_overrides_runpath=no
10460 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10461 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10462 hardcode_into_libs=yes
10465 # No shared lib support for Linux oldld, aout, or coff.
10466 linux*oldld* | linux*aout* | linux*coff*)
10467 dynamic_linker=no
10470 # This must be Linux ELF.
10471 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10472 version_type=linux
10473 need_lib_prefix=no
10474 need_version=no
10475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10476 soname_spec='${libname}${release}${shared_ext}$major'
10477 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10478 shlibpath_var=LD_LIBRARY_PATH
10479 shlibpath_overrides_runpath=no
10481 # Some binutils ld are patched to set DT_RUNPATH
10482 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10483 $as_echo_n "(cached) " >&6
10484 else
10485 lt_cv_shlibpath_overrides_runpath=no
10486 save_LDFLAGS=$LDFLAGS
10487 save_libdir=$libdir
10488 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10489 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10491 /* end confdefs.h. */
10494 main ()
10498 return 0;
10500 _ACEOF
10501 if ac_fn_c_try_link "$LINENO"; then :
10502 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10503 lt_cv_shlibpath_overrides_runpath=yes
10506 rm -f core conftest.err conftest.$ac_objext \
10507 conftest$ac_exeext conftest.$ac_ext
10508 LDFLAGS=$save_LDFLAGS
10509 libdir=$save_libdir
10513 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10515 # This implies no fast_install, which is unacceptable.
10516 # Some rework will be needed to allow for fast_install
10517 # before this can be enabled.
10518 hardcode_into_libs=yes
10520 # Append ld.so.conf contents to the search path
10521 if test -f /etc/ld.so.conf; then
10522 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' ' '`
10523 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10526 # We used to test for /lib/ld.so.1 and disable shared libraries on
10527 # powerpc, because MkLinux only supported shared libraries with the
10528 # GNU dynamic linker. Since this was broken with cross compilers,
10529 # most powerpc-linux boxes support dynamic linking these days and
10530 # people can always --disable-shared, the test was removed, and we
10531 # assume the GNU/Linux dynamic linker is in use.
10532 dynamic_linker='GNU/Linux ld.so'
10535 netbsd*)
10536 version_type=sunos
10537 need_lib_prefix=no
10538 need_version=no
10539 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10541 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10542 dynamic_linker='NetBSD (a.out) ld.so'
10543 else
10544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10545 soname_spec='${libname}${release}${shared_ext}$major'
10546 dynamic_linker='NetBSD ld.elf_so'
10548 shlibpath_var=LD_LIBRARY_PATH
10549 shlibpath_overrides_runpath=yes
10550 hardcode_into_libs=yes
10553 newsos6)
10554 version_type=linux
10555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10556 shlibpath_var=LD_LIBRARY_PATH
10557 shlibpath_overrides_runpath=yes
10560 *nto* | *qnx*)
10561 version_type=qnx
10562 need_lib_prefix=no
10563 need_version=no
10564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10565 soname_spec='${libname}${release}${shared_ext}$major'
10566 shlibpath_var=LD_LIBRARY_PATH
10567 shlibpath_overrides_runpath=no
10568 hardcode_into_libs=yes
10569 dynamic_linker='ldqnx.so'
10572 openbsd*)
10573 version_type=sunos
10574 sys_lib_dlsearch_path_spec="/usr/lib"
10575 need_lib_prefix=no
10576 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10577 case $host_os in
10578 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10579 *) need_version=no ;;
10580 esac
10581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10582 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10583 shlibpath_var=LD_LIBRARY_PATH
10584 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10585 case $host_os in
10586 openbsd2.[89] | openbsd2.[89].*)
10587 shlibpath_overrides_runpath=no
10590 shlibpath_overrides_runpath=yes
10592 esac
10593 else
10594 shlibpath_overrides_runpath=yes
10598 os2*)
10599 libname_spec='$name'
10600 shrext_cmds=".dll"
10601 need_lib_prefix=no
10602 library_names_spec='$libname${shared_ext} $libname.a'
10603 dynamic_linker='OS/2 ld.exe'
10604 shlibpath_var=LIBPATH
10607 osf3* | osf4* | osf5*)
10608 version_type=osf
10609 need_lib_prefix=no
10610 need_version=no
10611 soname_spec='${libname}${release}${shared_ext}$major'
10612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10613 shlibpath_var=LD_LIBRARY_PATH
10614 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10615 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10618 rdos*)
10619 dynamic_linker=no
10622 solaris*)
10623 version_type=linux
10624 need_lib_prefix=no
10625 need_version=no
10626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10627 soname_spec='${libname}${release}${shared_ext}$major'
10628 shlibpath_var=LD_LIBRARY_PATH
10629 shlibpath_overrides_runpath=yes
10630 hardcode_into_libs=yes
10631 # ldd complains unless libraries are executable
10632 postinstall_cmds='chmod +x $lib'
10635 sunos4*)
10636 version_type=sunos
10637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10638 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10639 shlibpath_var=LD_LIBRARY_PATH
10640 shlibpath_overrides_runpath=yes
10641 if test "$with_gnu_ld" = yes; then
10642 need_lib_prefix=no
10644 need_version=yes
10647 sysv4 | sysv4.3*)
10648 version_type=linux
10649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10650 soname_spec='${libname}${release}${shared_ext}$major'
10651 shlibpath_var=LD_LIBRARY_PATH
10652 case $host_vendor in
10653 sni)
10654 shlibpath_overrides_runpath=no
10655 need_lib_prefix=no
10656 runpath_var=LD_RUN_PATH
10658 siemens)
10659 need_lib_prefix=no
10661 motorola)
10662 need_lib_prefix=no
10663 need_version=no
10664 shlibpath_overrides_runpath=no
10665 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10667 esac
10670 sysv4*MP*)
10671 if test -d /usr/nec ;then
10672 version_type=linux
10673 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10674 soname_spec='$libname${shared_ext}.$major'
10675 shlibpath_var=LD_LIBRARY_PATH
10679 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10680 version_type=freebsd-elf
10681 need_lib_prefix=no
10682 need_version=no
10683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10684 soname_spec='${libname}${release}${shared_ext}$major'
10685 shlibpath_var=LD_LIBRARY_PATH
10686 shlibpath_overrides_runpath=yes
10687 hardcode_into_libs=yes
10688 if test "$with_gnu_ld" = yes; then
10689 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10690 else
10691 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10692 case $host_os in
10693 sco3.2v5*)
10694 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10696 esac
10698 sys_lib_dlsearch_path_spec='/usr/lib'
10701 tpf*)
10702 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10703 version_type=linux
10704 need_lib_prefix=no
10705 need_version=no
10706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10707 shlibpath_var=LD_LIBRARY_PATH
10708 shlibpath_overrides_runpath=no
10709 hardcode_into_libs=yes
10712 uts4*)
10713 version_type=linux
10714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10715 soname_spec='${libname}${release}${shared_ext}$major'
10716 shlibpath_var=LD_LIBRARY_PATH
10720 dynamic_linker=no
10722 esac
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10724 $as_echo "$dynamic_linker" >&6; }
10725 test "$dynamic_linker" = no && can_build_shared=no
10727 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10728 if test "$GCC" = yes; then
10729 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10732 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10733 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10735 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10736 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10831 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10832 hardcode_action=
10833 if test -n "$hardcode_libdir_flag_spec" ||
10834 test -n "$runpath_var" ||
10835 test "X$hardcode_automatic" = "Xyes" ; then
10837 # We can hardcode non-existent directories.
10838 if test "$hardcode_direct" != no &&
10839 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10840 # have to relink, otherwise we might link with an installed library
10841 # when we should be linking with a yet-to-be-installed one
10842 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10843 test "$hardcode_minus_L" != no; then
10844 # Linking always hardcodes the temporary library directory.
10845 hardcode_action=relink
10846 else
10847 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10848 hardcode_action=immediate
10850 else
10851 # We cannot hardcode anything, or else we can only hardcode existing
10852 # directories.
10853 hardcode_action=unsupported
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10856 $as_echo "$hardcode_action" >&6; }
10858 if test "$hardcode_action" = relink ||
10859 test "$inherit_rpath" = yes; then
10860 # Fast installation is not supported
10861 enable_fast_install=no
10862 elif test "$shlibpath_overrides_runpath" = yes ||
10863 test "$enable_shared" = no; then
10864 # Fast installation is not necessary
10865 enable_fast_install=needless
10873 if test "x$enable_dlopen" != xyes; then
10874 enable_dlopen=unknown
10875 enable_dlopen_self=unknown
10876 enable_dlopen_self_static=unknown
10877 else
10878 lt_cv_dlopen=no
10879 lt_cv_dlopen_libs=
10881 case $host_os in
10882 beos*)
10883 lt_cv_dlopen="load_add_on"
10884 lt_cv_dlopen_libs=
10885 lt_cv_dlopen_self=yes
10888 mingw* | pw32* | cegcc*)
10889 lt_cv_dlopen="LoadLibrary"
10890 lt_cv_dlopen_libs=
10893 cygwin*)
10894 lt_cv_dlopen="dlopen"
10895 lt_cv_dlopen_libs=
10898 darwin*)
10899 # if libdl is installed we need to link against it
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10901 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10902 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10903 $as_echo_n "(cached) " >&6
10904 else
10905 ac_check_lib_save_LIBS=$LIBS
10906 LIBS="-ldl $LIBS"
10907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10908 /* end confdefs.h. */
10910 /* Override any GCC internal prototype to avoid an error.
10911 Use char because int might match the return type of a GCC
10912 builtin and then its argument prototype would still apply. */
10913 #ifdef __cplusplus
10914 extern "C"
10915 #endif
10916 char dlopen ();
10918 main ()
10920 return dlopen ();
10922 return 0;
10924 _ACEOF
10925 if ac_fn_c_try_link "$LINENO"; then :
10926 ac_cv_lib_dl_dlopen=yes
10927 else
10928 ac_cv_lib_dl_dlopen=no
10930 rm -f core conftest.err conftest.$ac_objext \
10931 conftest$ac_exeext conftest.$ac_ext
10932 LIBS=$ac_check_lib_save_LIBS
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10935 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10936 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10937 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10938 else
10940 lt_cv_dlopen="dyld"
10941 lt_cv_dlopen_libs=
10942 lt_cv_dlopen_self=yes
10949 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10950 if test "x$ac_cv_func_shl_load" = x""yes; then :
10951 lt_cv_dlopen="shl_load"
10952 else
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10954 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10955 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10956 $as_echo_n "(cached) " >&6
10957 else
10958 ac_check_lib_save_LIBS=$LIBS
10959 LIBS="-ldld $LIBS"
10960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10961 /* end confdefs.h. */
10963 /* Override any GCC internal prototype to avoid an error.
10964 Use char because int might match the return type of a GCC
10965 builtin and then its argument prototype would still apply. */
10966 #ifdef __cplusplus
10967 extern "C"
10968 #endif
10969 char shl_load ();
10971 main ()
10973 return shl_load ();
10975 return 0;
10977 _ACEOF
10978 if ac_fn_c_try_link "$LINENO"; then :
10979 ac_cv_lib_dld_shl_load=yes
10980 else
10981 ac_cv_lib_dld_shl_load=no
10983 rm -f core conftest.err conftest.$ac_objext \
10984 conftest$ac_exeext conftest.$ac_ext
10985 LIBS=$ac_check_lib_save_LIBS
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10988 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10989 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10990 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10991 else
10992 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10993 if test "x$ac_cv_func_dlopen" = x""yes; then :
10994 lt_cv_dlopen="dlopen"
10995 else
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10997 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10998 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10999 $as_echo_n "(cached) " >&6
11000 else
11001 ac_check_lib_save_LIBS=$LIBS
11002 LIBS="-ldl $LIBS"
11003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11004 /* end confdefs.h. */
11006 /* Override any GCC internal prototype to avoid an error.
11007 Use char because int might match the return type of a GCC
11008 builtin and then its argument prototype would still apply. */
11009 #ifdef __cplusplus
11010 extern "C"
11011 #endif
11012 char dlopen ();
11014 main ()
11016 return dlopen ();
11018 return 0;
11020 _ACEOF
11021 if ac_fn_c_try_link "$LINENO"; then :
11022 ac_cv_lib_dl_dlopen=yes
11023 else
11024 ac_cv_lib_dl_dlopen=no
11026 rm -f core conftest.err conftest.$ac_objext \
11027 conftest$ac_exeext conftest.$ac_ext
11028 LIBS=$ac_check_lib_save_LIBS
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11031 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11032 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11033 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11034 else
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11036 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11037 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11038 $as_echo_n "(cached) " >&6
11039 else
11040 ac_check_lib_save_LIBS=$LIBS
11041 LIBS="-lsvld $LIBS"
11042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11043 /* end confdefs.h. */
11045 /* Override any GCC internal prototype to avoid an error.
11046 Use char because int might match the return type of a GCC
11047 builtin and then its argument prototype would still apply. */
11048 #ifdef __cplusplus
11049 extern "C"
11050 #endif
11051 char dlopen ();
11053 main ()
11055 return dlopen ();
11057 return 0;
11059 _ACEOF
11060 if ac_fn_c_try_link "$LINENO"; then :
11061 ac_cv_lib_svld_dlopen=yes
11062 else
11063 ac_cv_lib_svld_dlopen=no
11065 rm -f core conftest.err conftest.$ac_objext \
11066 conftest$ac_exeext conftest.$ac_ext
11067 LIBS=$ac_check_lib_save_LIBS
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11070 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11071 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11072 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11073 else
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11075 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11076 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11077 $as_echo_n "(cached) " >&6
11078 else
11079 ac_check_lib_save_LIBS=$LIBS
11080 LIBS="-ldld $LIBS"
11081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11082 /* end confdefs.h. */
11084 /* Override any GCC internal prototype to avoid an error.
11085 Use char because int might match the return type of a GCC
11086 builtin and then its argument prototype would still apply. */
11087 #ifdef __cplusplus
11088 extern "C"
11089 #endif
11090 char dld_link ();
11092 main ()
11094 return dld_link ();
11096 return 0;
11098 _ACEOF
11099 if ac_fn_c_try_link "$LINENO"; then :
11100 ac_cv_lib_dld_dld_link=yes
11101 else
11102 ac_cv_lib_dld_dld_link=no
11104 rm -f core conftest.err conftest.$ac_objext \
11105 conftest$ac_exeext conftest.$ac_ext
11106 LIBS=$ac_check_lib_save_LIBS
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11109 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11110 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11111 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11130 esac
11132 if test "x$lt_cv_dlopen" != xno; then
11133 enable_dlopen=yes
11134 else
11135 enable_dlopen=no
11138 case $lt_cv_dlopen in
11139 dlopen)
11140 save_CPPFLAGS="$CPPFLAGS"
11141 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11143 save_LDFLAGS="$LDFLAGS"
11144 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11146 save_LIBS="$LIBS"
11147 LIBS="$lt_cv_dlopen_libs $LIBS"
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11150 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11151 if test "${lt_cv_dlopen_self+set}" = set; then :
11152 $as_echo_n "(cached) " >&6
11153 else
11154 if test "$cross_compiling" = yes; then :
11155 lt_cv_dlopen_self=cross
11156 else
11157 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11158 lt_status=$lt_dlunknown
11159 cat > conftest.$ac_ext <<_LT_EOF
11160 #line 11160 "configure"
11161 #include "confdefs.h"
11163 #if HAVE_DLFCN_H
11164 #include <dlfcn.h>
11165 #endif
11167 #include <stdio.h>
11169 #ifdef RTLD_GLOBAL
11170 # define LT_DLGLOBAL RTLD_GLOBAL
11171 #else
11172 # ifdef DL_GLOBAL
11173 # define LT_DLGLOBAL DL_GLOBAL
11174 # else
11175 # define LT_DLGLOBAL 0
11176 # endif
11177 #endif
11179 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11180 find out it does not work in some platform. */
11181 #ifndef LT_DLLAZY_OR_NOW
11182 # ifdef RTLD_LAZY
11183 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11184 # else
11185 # ifdef DL_LAZY
11186 # define LT_DLLAZY_OR_NOW DL_LAZY
11187 # else
11188 # ifdef RTLD_NOW
11189 # define LT_DLLAZY_OR_NOW RTLD_NOW
11190 # else
11191 # ifdef DL_NOW
11192 # define LT_DLLAZY_OR_NOW DL_NOW
11193 # else
11194 # define LT_DLLAZY_OR_NOW 0
11195 # endif
11196 # endif
11197 # endif
11198 # endif
11199 #endif
11201 /* When -fvisbility=hidden is used, assume the code has been annotated
11202 correspondingly for the symbols needed. */
11203 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11204 void fnord () __attribute__((visibility("default")));
11205 #endif
11207 void fnord () { int i=42; }
11208 int main ()
11210 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11211 int status = $lt_dlunknown;
11213 if (self)
11215 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11216 else
11218 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11219 else puts (dlerror ());
11221 /* dlclose (self); */
11223 else
11224 puts (dlerror ());
11226 return status;
11228 _LT_EOF
11229 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11230 (eval $ac_link) 2>&5
11231 ac_status=$?
11232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11233 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11234 (./conftest; exit; ) >&5 2>/dev/null
11235 lt_status=$?
11236 case x$lt_status in
11237 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11238 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11239 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11240 esac
11241 else :
11242 # compilation failed
11243 lt_cv_dlopen_self=no
11246 rm -fr conftest*
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11251 $as_echo "$lt_cv_dlopen_self" >&6; }
11253 if test "x$lt_cv_dlopen_self" = xyes; then
11254 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11256 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11257 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11258 $as_echo_n "(cached) " >&6
11259 else
11260 if test "$cross_compiling" = yes; then :
11261 lt_cv_dlopen_self_static=cross
11262 else
11263 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11264 lt_status=$lt_dlunknown
11265 cat > conftest.$ac_ext <<_LT_EOF
11266 #line 11266 "configure"
11267 #include "confdefs.h"
11269 #if HAVE_DLFCN_H
11270 #include <dlfcn.h>
11271 #endif
11273 #include <stdio.h>
11275 #ifdef RTLD_GLOBAL
11276 # define LT_DLGLOBAL RTLD_GLOBAL
11277 #else
11278 # ifdef DL_GLOBAL
11279 # define LT_DLGLOBAL DL_GLOBAL
11280 # else
11281 # define LT_DLGLOBAL 0
11282 # endif
11283 #endif
11285 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11286 find out it does not work in some platform. */
11287 #ifndef LT_DLLAZY_OR_NOW
11288 # ifdef RTLD_LAZY
11289 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11290 # else
11291 # ifdef DL_LAZY
11292 # define LT_DLLAZY_OR_NOW DL_LAZY
11293 # else
11294 # ifdef RTLD_NOW
11295 # define LT_DLLAZY_OR_NOW RTLD_NOW
11296 # else
11297 # ifdef DL_NOW
11298 # define LT_DLLAZY_OR_NOW DL_NOW
11299 # else
11300 # define LT_DLLAZY_OR_NOW 0
11301 # endif
11302 # endif
11303 # endif
11304 # endif
11305 #endif
11307 /* When -fvisbility=hidden is used, assume the code has been annotated
11308 correspondingly for the symbols needed. */
11309 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11310 void fnord () __attribute__((visibility("default")));
11311 #endif
11313 void fnord () { int i=42; }
11314 int main ()
11316 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11317 int status = $lt_dlunknown;
11319 if (self)
11321 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11322 else
11324 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11325 else puts (dlerror ());
11327 /* dlclose (self); */
11329 else
11330 puts (dlerror ());
11332 return status;
11334 _LT_EOF
11335 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11336 (eval $ac_link) 2>&5
11337 ac_status=$?
11338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11339 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11340 (./conftest; exit; ) >&5 2>/dev/null
11341 lt_status=$?
11342 case x$lt_status in
11343 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11344 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11345 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11346 esac
11347 else :
11348 # compilation failed
11349 lt_cv_dlopen_self_static=no
11352 rm -fr conftest*
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11357 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11360 CPPFLAGS="$save_CPPFLAGS"
11361 LDFLAGS="$save_LDFLAGS"
11362 LIBS="$save_LIBS"
11364 esac
11366 case $lt_cv_dlopen_self in
11367 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11368 *) enable_dlopen_self=unknown ;;
11369 esac
11371 case $lt_cv_dlopen_self_static in
11372 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11373 *) enable_dlopen_self_static=unknown ;;
11374 esac
11393 striplib=
11394 old_striplib=
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11396 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11397 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11398 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11399 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11401 $as_echo "yes" >&6; }
11402 else
11403 # FIXME - insert some real tests, host_os isn't really good enough
11404 case $host_os in
11405 darwin*)
11406 if test -n "$STRIP" ; then
11407 striplib="$STRIP -x"
11408 old_striplib="$STRIP -S"
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11410 $as_echo "yes" >&6; }
11411 else
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11413 $as_echo "no" >&6; }
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11418 $as_echo "no" >&6; }
11420 esac
11434 # Report which library types will actually be built
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11436 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11438 $as_echo "$can_build_shared" >&6; }
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11441 $as_echo_n "checking whether to build shared libraries... " >&6; }
11442 test "$can_build_shared" = "no" && enable_shared=no
11444 # On AIX, shared libraries and static libraries use the same namespace, and
11445 # are all built from PIC.
11446 case $host_os in
11447 aix3*)
11448 test "$enable_shared" = yes && enable_static=no
11449 if test -n "$RANLIB"; then
11450 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11451 postinstall_cmds='$RANLIB $lib'
11455 aix[4-9]*)
11456 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11457 test "$enable_shared" = yes && enable_static=no
11460 esac
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11462 $as_echo "$enable_shared" >&6; }
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11465 $as_echo_n "checking whether to build static libraries... " >&6; }
11466 # Make sure either enable_shared or enable_static is yes.
11467 test "$enable_shared" = yes || enable_static=yes
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11469 $as_echo "$enable_static" >&6; }
11475 ac_ext=c
11476 ac_cpp='$CPP $CPPFLAGS'
11477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11481 CC="$lt_save_CC"
11495 ac_config_commands="$ac_config_commands libtool"
11500 # Only expand once:
11506 case $host in
11507 *-cygwin* | *-mingw*)
11508 # 'host' will be top-level target in the case of a target lib,
11509 # we must compare to with_cross_host to decide if this is a native
11510 # or cross-compiler and select where to install dlls appropriately.
11511 if test -n "$with_cross_host" &&
11512 test x"$with_cross_host" != x"no"; then
11513 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
11514 else
11515 lt_host_flags='-no-undefined -bindir "$(bindir)"';
11519 lt_host_flags=
11521 esac
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11530 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11531 # Check whether --enable-maintainer-mode was given.
11532 if test "${enable_maintainer_mode+set}" = set; then :
11533 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11534 else
11535 USE_MAINTAINER_MODE=no
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11539 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11540 if test $USE_MAINTAINER_MODE = yes; then
11541 MAINTAINER_MODE_TRUE=
11542 MAINTAINER_MODE_FALSE='#'
11543 else
11544 MAINTAINER_MODE_TRUE='#'
11545 MAINTAINER_MODE_FALSE=
11548 MAINT=$MAINTAINER_MODE_TRUE
11552 # Create a spec file, so that compile/link tests don't fail
11553 test -f libgfortran.spec || touch libgfortran.spec
11554 FCFLAGS="$FCFLAGS -L."
11556 # We need gfortran to compile parts of the library
11557 # We can't use AC_PROG_FC because it expects a fully working gfortran.
11558 #AC_PROG_FC(gfortran)
11559 case `echo $GFORTRAN` in
11560 -* | no* )
11561 FC=no ;;
11563 set dummy $GFORTRAN; ac_word=$2
11564 if test -x "$ac_word"; then
11565 FC="$GFORTRAN"
11566 else
11567 FC=no
11568 fi ;;
11569 esac
11570 ac_ext=${ac_fc_srcext-f}
11571 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11572 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11573 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11574 if test -n "$ac_tool_prefix"; then
11575 for ac_prog in gfortran
11577 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11578 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11580 $as_echo_n "checking for $ac_word... " >&6; }
11581 if test "${ac_cv_prog_FC+set}" = set; then :
11582 $as_echo_n "(cached) " >&6
11583 else
11584 if test -n "$FC"; then
11585 ac_cv_prog_FC="$FC" # Let the user override the test.
11586 else
11587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11588 for as_dir in $PATH
11590 IFS=$as_save_IFS
11591 test -z "$as_dir" && as_dir=.
11592 for ac_exec_ext in '' $ac_executable_extensions; do
11593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11594 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
11595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11596 break 2
11598 done
11599 done
11600 IFS=$as_save_IFS
11604 FC=$ac_cv_prog_FC
11605 if test -n "$FC"; then
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
11607 $as_echo "$FC" >&6; }
11608 else
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11610 $as_echo "no" >&6; }
11614 test -n "$FC" && break
11615 done
11617 if test -z "$FC"; then
11618 ac_ct_FC=$FC
11619 for ac_prog in gfortran
11621 # Extract the first word of "$ac_prog", so it can be a program name with args.
11622 set dummy $ac_prog; ac_word=$2
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11624 $as_echo_n "checking for $ac_word... " >&6; }
11625 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
11626 $as_echo_n "(cached) " >&6
11627 else
11628 if test -n "$ac_ct_FC"; then
11629 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
11630 else
11631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11632 for as_dir in $PATH
11634 IFS=$as_save_IFS
11635 test -z "$as_dir" && as_dir=.
11636 for ac_exec_ext in '' $ac_executable_extensions; do
11637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11638 ac_cv_prog_ac_ct_FC="$ac_prog"
11639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11640 break 2
11642 done
11643 done
11644 IFS=$as_save_IFS
11648 ac_ct_FC=$ac_cv_prog_ac_ct_FC
11649 if test -n "$ac_ct_FC"; then
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
11651 $as_echo "$ac_ct_FC" >&6; }
11652 else
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11654 $as_echo "no" >&6; }
11658 test -n "$ac_ct_FC" && break
11659 done
11661 if test "x$ac_ct_FC" = x; then
11662 FC=""
11663 else
11664 case $cross_compiling:$ac_tool_warned in
11665 yes:)
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11667 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11668 ac_tool_warned=yes ;;
11669 esac
11670 FC=$ac_ct_FC
11675 # Provide some information about the compiler.
11676 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
11677 set X $ac_compile
11678 ac_compiler=$2
11679 for ac_option in --version -v -V -qversion; do
11680 { { ac_try="$ac_compiler $ac_option >&5"
11681 case "(($ac_try" in
11682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11683 *) ac_try_echo=$ac_try;;
11684 esac
11685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11686 $as_echo "$ac_try_echo"; } >&5
11687 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11688 ac_status=$?
11689 if test -s conftest.err; then
11690 sed '10a\
11691 ... rest of stderr output deleted ...
11692 10q' conftest.err >conftest.er1
11693 cat conftest.er1 >&5
11694 rm -f conftest.er1 conftest.err
11696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11697 test $ac_status = 0; }
11698 done
11699 rm -f a.out
11701 # If we don't use `.F' as extension, the preprocessor is not run on the
11702 # input file. (Note that this only needs to work for GNU compilers.)
11703 ac_save_ext=$ac_ext
11704 ac_ext=F
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
11706 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
11707 if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
11708 $as_echo_n "(cached) " >&6
11709 else
11710 cat > conftest.$ac_ext <<_ACEOF
11711 program main
11712 #ifndef __GNUC__
11713 choke me
11714 #endif
11717 _ACEOF
11718 if ac_fn_fc_try_compile "$LINENO"; then :
11719 ac_compiler_gnu=yes
11720 else
11721 ac_compiler_gnu=no
11723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11724 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
11728 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
11729 ac_ext=$ac_save_ext
11730 ac_test_FCFLAGS=${FCFLAGS+set}
11731 ac_save_FCFLAGS=$FCFLAGS
11732 FCFLAGS=
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
11734 $as_echo_n "checking whether $FC accepts -g... " >&6; }
11735 if test "${ac_cv_prog_fc_g+set}" = set; then :
11736 $as_echo_n "(cached) " >&6
11737 else
11738 FCFLAGS=-g
11739 cat > conftest.$ac_ext <<_ACEOF
11740 program main
11743 _ACEOF
11744 if ac_fn_fc_try_compile "$LINENO"; then :
11745 ac_cv_prog_fc_g=yes
11746 else
11747 ac_cv_prog_fc_g=no
11749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
11753 $as_echo "$ac_cv_prog_fc_g" >&6; }
11754 if test "$ac_test_FCFLAGS" = set; then
11755 FCFLAGS=$ac_save_FCFLAGS
11756 elif test $ac_cv_prog_fc_g = yes; then
11757 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11758 FCFLAGS="-g -O2"
11759 else
11760 FCFLAGS="-g"
11762 else
11763 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11764 FCFLAGS="-O2"
11765 else
11766 FCFLAGS=
11770 ac_ext=c
11771 ac_cpp='$CPP $CPPFLAGS'
11772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11776 ac_ext=${ac_fc_srcext-f}
11777 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11778 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11779 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11782 if test -z "$FC" || test "X$FC" = "Xno"; then
11783 _lt_disable_FC=yes
11786 archive_cmds_need_lc_FC=no
11787 allow_undefined_flag_FC=
11788 always_export_symbols_FC=no
11789 archive_expsym_cmds_FC=
11790 export_dynamic_flag_spec_FC=
11791 hardcode_direct_FC=no
11792 hardcode_direct_absolute_FC=no
11793 hardcode_libdir_flag_spec_FC=
11794 hardcode_libdir_flag_spec_ld_FC=
11795 hardcode_libdir_separator_FC=
11796 hardcode_minus_L_FC=no
11797 hardcode_automatic_FC=no
11798 inherit_rpath_FC=no
11799 module_cmds_FC=
11800 module_expsym_cmds_FC=
11801 link_all_deplibs_FC=unknown
11802 old_archive_cmds_FC=$old_archive_cmds
11803 reload_flag_FC=$reload_flag
11804 reload_cmds_FC=$reload_cmds
11805 no_undefined_flag_FC=
11806 whole_archive_flag_spec_FC=
11807 enable_shared_with_static_runtimes_FC=no
11809 # Source file extension for fc test sources.
11810 ac_ext=${ac_fc_srcext-f}
11812 # Object file extension for compiled fc test sources.
11813 objext=o
11814 objext_FC=$objext
11816 # No sense in running all these tests if we already determined that
11817 # the FC compiler isn't working. Some variables (like enable_shared)
11818 # are currently assumed to apply to all compilers on this platform,
11819 # and will be corrupted by setting them based on a non-working compiler.
11820 if test "$_lt_disable_FC" != yes; then
11821 # Code to be used in simple compile tests
11822 lt_simple_compile_test_code="\
11823 subroutine t
11824 return
11828 # Code to be used in simple link tests
11829 lt_simple_link_test_code="\
11830 program t
11834 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11841 # If no C compiler was specified, use CC.
11842 LTCC=${LTCC-"$CC"}
11844 # If no C compiler flags were specified, use CFLAGS.
11845 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11847 # Allow CC to be a program name with arguments.
11848 compiler=$CC
11851 # save warnings/boilerplate of simple test code
11852 ac_outfile=conftest.$ac_objext
11853 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11854 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11855 _lt_compiler_boilerplate=`cat conftest.err`
11856 $RM conftest*
11858 ac_outfile=conftest.$ac_objext
11859 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11860 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11861 _lt_linker_boilerplate=`cat conftest.err`
11862 $RM -r conftest*
11865 # Allow CC to be a program name with arguments.
11866 lt_save_CC="$CC"
11867 lt_save_GCC=$GCC
11868 CC=${FC-"f95"}
11869 compiler=$CC
11870 GCC=$ac_cv_fc_compiler_gnu
11872 compiler_FC=$CC
11873 for cc_temp in $compiler""; do
11874 case $cc_temp in
11875 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11876 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11877 \-*) ;;
11878 *) break;;
11879 esac
11880 done
11881 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11884 if test -n "$compiler"; then
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11886 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11888 $as_echo "$can_build_shared" >&6; }
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11891 $as_echo_n "checking whether to build shared libraries... " >&6; }
11892 test "$can_build_shared" = "no" && enable_shared=no
11894 # On AIX, shared libraries and static libraries use the same namespace, and
11895 # are all built from PIC.
11896 case $host_os in
11897 aix3*)
11898 test "$enable_shared" = yes && enable_static=no
11899 if test -n "$RANLIB"; then
11900 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11901 postinstall_cmds='$RANLIB $lib'
11904 aix[4-9]*)
11905 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11906 test "$enable_shared" = yes && enable_static=no
11909 esac
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11911 $as_echo "$enable_shared" >&6; }
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11914 $as_echo_n "checking whether to build static libraries... " >&6; }
11915 # Make sure either enable_shared or enable_static is yes.
11916 test "$enable_shared" = yes || enable_static=yes
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11918 $as_echo "$enable_static" >&6; }
11920 GCC_FC="$ac_cv_fc_compiler_gnu"
11921 LD_FC="$LD"
11923 ## CAVEAT EMPTOR:
11924 ## There is no encapsulation within the following macros, do not change
11925 ## the running order or otherwise move them around unless you know exactly
11926 ## what you are doing...
11927 # Dependencies to place before and after the object being linked:
11928 predep_objects_FC=
11929 postdep_objects_FC=
11930 predeps_FC=
11931 postdeps_FC=
11932 compiler_lib_search_path_FC=
11934 cat > conftest.$ac_ext <<_LT_EOF
11935 subroutine foo
11936 implicit none
11937 integer a
11939 return
11941 _LT_EOF
11943 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11944 (eval $ac_compile) 2>&5
11945 ac_status=$?
11946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11947 test $ac_status = 0; }; then
11948 # Parse the compiler output and extract the necessary
11949 # objects, libraries and library flags.
11951 # Sentinel used to keep track of whether or not we are before
11952 # the conftest object file.
11953 pre_test_object_deps_done=no
11955 for p in `eval "$output_verbose_link_cmd"`; do
11956 case $p in
11958 -L* | -R* | -l*)
11959 # Some compilers place space between "-{L,R}" and the path.
11960 # Remove the space.
11961 if test $p = "-L" ||
11962 test $p = "-R"; then
11963 prev=$p
11964 continue
11965 else
11966 prev=
11969 if test "$pre_test_object_deps_done" = no; then
11970 case $p in
11971 -L* | -R*)
11972 # Internal compiler library paths should come after those
11973 # provided the user. The postdeps already come after the
11974 # user supplied libs so there is no need to process them.
11975 if test -z "$compiler_lib_search_path_FC"; then
11976 compiler_lib_search_path_FC="${prev}${p}"
11977 else
11978 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
11981 # The "-l" case would never come before the object being
11982 # linked, so don't bother handling this case.
11983 esac
11984 else
11985 if test -z "$postdeps_FC"; then
11986 postdeps_FC="${prev}${p}"
11987 else
11988 postdeps_FC="${postdeps_FC} ${prev}${p}"
11993 *.$objext)
11994 # This assumes that the test object file only shows up
11995 # once in the compiler output.
11996 if test "$p" = "conftest.$objext"; then
11997 pre_test_object_deps_done=yes
11998 continue
12001 if test "$pre_test_object_deps_done" = no; then
12002 if test -z "$predep_objects_FC"; then
12003 predep_objects_FC="$p"
12004 else
12005 predep_objects_FC="$predep_objects_FC $p"
12007 else
12008 if test -z "$postdep_objects_FC"; then
12009 postdep_objects_FC="$p"
12010 else
12011 postdep_objects_FC="$postdep_objects_FC $p"
12016 *) ;; # Ignore the rest.
12018 esac
12019 done
12021 # Clean up.
12022 rm -f a.out a.exe
12023 else
12024 echo "libtool.m4: error: problem compiling FC test program"
12027 $RM -f confest.$objext
12029 # PORTME: override above test on systems where it is broken
12032 case " $postdeps_FC " in
12033 *" -lc "*) archive_cmds_need_lc_FC=no ;;
12034 esac
12035 compiler_lib_search_dirs_FC=
12036 if test -n "${compiler_lib_search_path_FC}"; then
12037 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12070 lt_prog_compiler_wl_FC=
12071 lt_prog_compiler_pic_FC=
12072 lt_prog_compiler_static_FC=
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12075 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12077 if test "$GCC" = yes; then
12078 lt_prog_compiler_wl_FC='-Wl,'
12079 lt_prog_compiler_static_FC='-static'
12081 case $host_os in
12082 aix*)
12083 # All AIX code is PIC.
12084 if test "$host_cpu" = ia64; then
12085 # AIX 5 now supports IA64 processor
12086 lt_prog_compiler_static_FC='-Bstatic'
12088 lt_prog_compiler_pic_FC='-fPIC'
12091 amigaos*)
12092 case $host_cpu in
12093 powerpc)
12094 # see comment about AmigaOS4 .so support
12095 lt_prog_compiler_pic_FC='-fPIC'
12097 m68k)
12098 # FIXME: we need at least 68020 code to build shared libraries, but
12099 # adding the `-m68020' flag to GCC prevents building anything better,
12100 # like `-m68040'.
12101 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
12103 esac
12106 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12107 # PIC is the default for these OSes.
12110 mingw* | cygwin* | pw32* | os2* | cegcc*)
12111 # This hack is so that the source file can tell whether it is being
12112 # built for inclusion in a dll (and should export symbols for example).
12113 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12114 # (--disable-auto-import) libraries
12115 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12118 darwin* | rhapsody*)
12119 # PIC is the default on this platform
12120 # Common symbols not allowed in MH_DYLIB files
12121 lt_prog_compiler_pic_FC='-fno-common'
12124 haiku*)
12125 # PIC is the default for Haiku.
12126 # The "-static" flag exists, but is broken.
12127 lt_prog_compiler_static_FC=
12130 hpux*)
12131 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12132 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12133 # sets the default TLS model and affects inlining.
12134 case $host_cpu in
12135 hppa*64*)
12136 # +Z the default
12139 lt_prog_compiler_pic_FC='-fPIC'
12141 esac
12144 interix[3-9]*)
12145 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12146 # Instead, we relocate shared libraries at runtime.
12149 msdosdjgpp*)
12150 # Just because we use GCC doesn't mean we suddenly get shared libraries
12151 # on systems that don't support them.
12152 lt_prog_compiler_can_build_shared_FC=no
12153 enable_shared=no
12156 *nto* | *qnx*)
12157 # QNX uses GNU C++, but need to define -shared option too, otherwise
12158 # it will coredump.
12159 lt_prog_compiler_pic_FC='-fPIC -shared'
12162 sysv4*MP*)
12163 if test -d /usr/nec; then
12164 lt_prog_compiler_pic_FC=-Kconform_pic
12169 lt_prog_compiler_pic_FC='-fPIC'
12171 esac
12173 case $cc_basename in
12174 nvcc*) # Cuda Compiler Driver 2.2
12175 lt_prog_compiler_wl_FC='-Xlinker '
12176 lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
12178 esac
12179 else
12180 # PORTME Check for flag to pass linker flags through the system compiler.
12181 case $host_os in
12182 aix*)
12183 lt_prog_compiler_wl_FC='-Wl,'
12184 if test "$host_cpu" = ia64; then
12185 # AIX 5 now supports IA64 processor
12186 lt_prog_compiler_static_FC='-Bstatic'
12187 else
12188 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
12192 mingw* | cygwin* | pw32* | os2* | cegcc*)
12193 # This hack is so that the source file can tell whether it is being
12194 # built for inclusion in a dll (and should export symbols for example).
12195 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12198 hpux9* | hpux10* | hpux11*)
12199 lt_prog_compiler_wl_FC='-Wl,'
12200 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12201 # not for PA HP-UX.
12202 case $host_cpu in
12203 hppa*64*|ia64*)
12204 # +Z the default
12207 lt_prog_compiler_pic_FC='+Z'
12209 esac
12210 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12211 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
12214 irix5* | irix6* | nonstopux*)
12215 lt_prog_compiler_wl_FC='-Wl,'
12216 # PIC (with -KPIC) is the default.
12217 lt_prog_compiler_static_FC='-non_shared'
12220 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12221 case $cc_basename in
12222 # old Intel for x86_64 which still supported -KPIC.
12223 ecc*)
12224 lt_prog_compiler_wl_FC='-Wl,'
12225 lt_prog_compiler_pic_FC='-KPIC'
12226 lt_prog_compiler_static_FC='-static'
12228 # icc used to be incompatible with GCC.
12229 # ICC 10 doesn't accept -KPIC any more.
12230 icc* | ifort*)
12231 lt_prog_compiler_wl_FC='-Wl,'
12232 lt_prog_compiler_pic_FC='-fPIC'
12233 lt_prog_compiler_static_FC='-static'
12235 # Lahey Fortran 8.1.
12236 lf95*)
12237 lt_prog_compiler_wl_FC='-Wl,'
12238 lt_prog_compiler_pic_FC='--shared'
12239 lt_prog_compiler_static_FC='--static'
12241 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12242 # Portland Group compilers (*not* the Pentium gcc compiler,
12243 # which looks to be a dead project)
12244 lt_prog_compiler_wl_FC='-Wl,'
12245 lt_prog_compiler_pic_FC='-fpic'
12246 lt_prog_compiler_static_FC='-Bstatic'
12248 ccc*)
12249 lt_prog_compiler_wl_FC='-Wl,'
12250 # All Alpha code is PIC.
12251 lt_prog_compiler_static_FC='-non_shared'
12253 xl* | bgxl* | bgf* | mpixl*)
12254 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12255 lt_prog_compiler_wl_FC='-Wl,'
12256 lt_prog_compiler_pic_FC='-qpic'
12257 lt_prog_compiler_static_FC='-qstaticlink'
12260 case `$CC -V 2>&1 | sed 5q` in
12261 *Sun\ F* | *Sun*Fortran*)
12262 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12263 lt_prog_compiler_pic_FC='-KPIC'
12264 lt_prog_compiler_static_FC='-Bstatic'
12265 lt_prog_compiler_wl_FC=''
12267 *Sun\ C*)
12268 # Sun C 5.9
12269 lt_prog_compiler_pic_FC='-KPIC'
12270 lt_prog_compiler_static_FC='-Bstatic'
12271 lt_prog_compiler_wl_FC='-Wl,'
12273 esac
12275 esac
12278 newsos6)
12279 lt_prog_compiler_pic_FC='-KPIC'
12280 lt_prog_compiler_static_FC='-Bstatic'
12283 *nto* | *qnx*)
12284 # QNX uses GNU C++, but need to define -shared option too, otherwise
12285 # it will coredump.
12286 lt_prog_compiler_pic_FC='-fPIC -shared'
12289 osf3* | osf4* | osf5*)
12290 lt_prog_compiler_wl_FC='-Wl,'
12291 # All OSF/1 code is PIC.
12292 lt_prog_compiler_static_FC='-non_shared'
12295 rdos*)
12296 lt_prog_compiler_static_FC='-non_shared'
12299 solaris*)
12300 lt_prog_compiler_pic_FC='-KPIC'
12301 lt_prog_compiler_static_FC='-Bstatic'
12302 case $cc_basename in
12303 f77* | f90* | f95*)
12304 lt_prog_compiler_wl_FC='-Qoption ld ';;
12306 lt_prog_compiler_wl_FC='-Wl,';;
12307 esac
12310 sunos4*)
12311 lt_prog_compiler_wl_FC='-Qoption ld '
12312 lt_prog_compiler_pic_FC='-PIC'
12313 lt_prog_compiler_static_FC='-Bstatic'
12316 sysv4 | sysv4.2uw2* | sysv4.3*)
12317 lt_prog_compiler_wl_FC='-Wl,'
12318 lt_prog_compiler_pic_FC='-KPIC'
12319 lt_prog_compiler_static_FC='-Bstatic'
12322 sysv4*MP*)
12323 if test -d /usr/nec ;then
12324 lt_prog_compiler_pic_FC='-Kconform_pic'
12325 lt_prog_compiler_static_FC='-Bstatic'
12329 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12330 lt_prog_compiler_wl_FC='-Wl,'
12331 lt_prog_compiler_pic_FC='-KPIC'
12332 lt_prog_compiler_static_FC='-Bstatic'
12335 unicos*)
12336 lt_prog_compiler_wl_FC='-Wl,'
12337 lt_prog_compiler_can_build_shared_FC=no
12340 uts4*)
12341 lt_prog_compiler_pic_FC='-pic'
12342 lt_prog_compiler_static_FC='-Bstatic'
12346 lt_prog_compiler_can_build_shared_FC=no
12348 esac
12351 case $host_os in
12352 # For platforms which do not support PIC, -DPIC is meaningless:
12353 *djgpp*)
12354 lt_prog_compiler_pic_FC=
12357 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
12359 esac
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
12361 $as_echo "$lt_prog_compiler_pic_FC" >&6; }
12366 # Check to make sure the PIC flag actually works.
12368 if test -n "$lt_prog_compiler_pic_FC"; then
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
12370 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
12371 if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then :
12372 $as_echo_n "(cached) " >&6
12373 else
12374 lt_cv_prog_compiler_pic_works_FC=no
12375 ac_outfile=conftest.$ac_objext
12376 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12377 lt_compiler_flag="$lt_prog_compiler_pic_FC"
12378 # Insert the option either (1) after the last *FLAGS variable, or
12379 # (2) before a word containing "conftest.", or (3) at the end.
12380 # Note that $ac_compile itself does not contain backslashes and begins
12381 # with a dollar sign (not a hyphen), so the echo should work correctly.
12382 # The option is referenced via a variable to avoid confusing sed.
12383 lt_compile=`echo "$ac_compile" | $SED \
12384 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12385 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12386 -e 's:$: $lt_compiler_flag:'`
12387 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12388 (eval "$lt_compile" 2>conftest.err)
12389 ac_status=$?
12390 cat conftest.err >&5
12391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392 if (exit $ac_status) && test -s "$ac_outfile"; then
12393 # The compiler can only warn and ignore the option if not recognized
12394 # So say no if there are warnings other than the usual output.
12395 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12396 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12397 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12398 lt_cv_prog_compiler_pic_works_FC=yes
12401 $RM conftest*
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
12405 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
12407 if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
12408 case $lt_prog_compiler_pic_FC in
12409 "" | " "*) ;;
12410 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
12411 esac
12412 else
12413 lt_prog_compiler_pic_FC=
12414 lt_prog_compiler_can_build_shared_FC=no
12422 # Check to make sure the static flag actually works.
12424 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12426 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12427 if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then :
12428 $as_echo_n "(cached) " >&6
12429 else
12430 lt_cv_prog_compiler_static_works_FC=no
12431 save_LDFLAGS="$LDFLAGS"
12432 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12433 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12434 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12435 # The linker can only warn and ignore the option if not recognized
12436 # So say no if there are warnings
12437 if test -s conftest.err; then
12438 # Append any errors to the config.log.
12439 cat conftest.err 1>&5
12440 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12441 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12442 if diff conftest.exp conftest.er2 >/dev/null; then
12443 lt_cv_prog_compiler_static_works_FC=yes
12445 else
12446 lt_cv_prog_compiler_static_works_FC=yes
12449 $RM -r conftest*
12450 LDFLAGS="$save_LDFLAGS"
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
12454 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
12456 if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
12458 else
12459 lt_prog_compiler_static_FC=
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12466 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12467 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
12468 $as_echo_n "(cached) " >&6
12469 else
12470 lt_cv_prog_compiler_c_o_FC=no
12471 $RM -r conftest 2>/dev/null
12472 mkdir conftest
12473 cd conftest
12474 mkdir out
12475 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12477 lt_compiler_flag="-o out/conftest2.$ac_objext"
12478 # Insert the option either (1) after the last *FLAGS variable, or
12479 # (2) before a word containing "conftest.", or (3) at the end.
12480 # Note that $ac_compile itself does not contain backslashes and begins
12481 # with a dollar sign (not a hyphen), so the echo should work correctly.
12482 lt_compile=`echo "$ac_compile" | $SED \
12483 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12484 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12485 -e 's:$: $lt_compiler_flag:'`
12486 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12487 (eval "$lt_compile" 2>out/conftest.err)
12488 ac_status=$?
12489 cat out/conftest.err >&5
12490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12492 then
12493 # The compiler can only warn and ignore the option if not recognized
12494 # So say no if there are warnings
12495 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12496 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12497 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12498 lt_cv_prog_compiler_c_o_FC=yes
12501 chmod u+w . 2>&5
12502 $RM conftest*
12503 # SGI C++ compiler will create directory out/ii_files/ for
12504 # template instantiation
12505 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12506 $RM out/* && rmdir out
12507 cd ..
12508 $RM -r conftest
12509 $RM conftest*
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12513 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12518 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12519 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
12520 $as_echo_n "(cached) " >&6
12521 else
12522 lt_cv_prog_compiler_c_o_FC=no
12523 $RM -r conftest 2>/dev/null
12524 mkdir conftest
12525 cd conftest
12526 mkdir out
12527 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12529 lt_compiler_flag="-o out/conftest2.$ac_objext"
12530 # Insert the option either (1) after the last *FLAGS variable, or
12531 # (2) before a word containing "conftest.", or (3) at the end.
12532 # Note that $ac_compile itself does not contain backslashes and begins
12533 # with a dollar sign (not a hyphen), so the echo should work correctly.
12534 lt_compile=`echo "$ac_compile" | $SED \
12535 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12536 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12537 -e 's:$: $lt_compiler_flag:'`
12538 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12539 (eval "$lt_compile" 2>out/conftest.err)
12540 ac_status=$?
12541 cat out/conftest.err >&5
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12544 then
12545 # The compiler can only warn and ignore the option if not recognized
12546 # So say no if there are warnings
12547 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12548 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12549 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12550 lt_cv_prog_compiler_c_o_FC=yes
12553 chmod u+w . 2>&5
12554 $RM conftest*
12555 # SGI C++ compiler will create directory out/ii_files/ for
12556 # template instantiation
12557 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12558 $RM out/* && rmdir out
12559 cd ..
12560 $RM -r conftest
12561 $RM conftest*
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12565 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12570 hard_links="nottested"
12571 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
12572 # do not overwrite the value of need_locks provided by the user
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12574 $as_echo_n "checking if we can lock with hard links... " >&6; }
12575 hard_links=yes
12576 $RM conftest*
12577 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12578 touch conftest.a
12579 ln conftest.a conftest.b 2>&5 || hard_links=no
12580 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12582 $as_echo "$hard_links" >&6; }
12583 if test "$hard_links" = no; then
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12585 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12586 need_locks=warn
12588 else
12589 need_locks=no
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12595 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12597 runpath_var=
12598 allow_undefined_flag_FC=
12599 always_export_symbols_FC=no
12600 archive_cmds_FC=
12601 archive_expsym_cmds_FC=
12602 compiler_needs_object_FC=no
12603 enable_shared_with_static_runtimes_FC=no
12604 export_dynamic_flag_spec_FC=
12605 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12606 hardcode_automatic_FC=no
12607 hardcode_direct_FC=no
12608 hardcode_direct_absolute_FC=no
12609 hardcode_libdir_flag_spec_FC=
12610 hardcode_libdir_flag_spec_ld_FC=
12611 hardcode_libdir_separator_FC=
12612 hardcode_minus_L_FC=no
12613 hardcode_shlibpath_var_FC=unsupported
12614 inherit_rpath_FC=no
12615 link_all_deplibs_FC=unknown
12616 module_cmds_FC=
12617 module_expsym_cmds_FC=
12618 old_archive_from_new_cmds_FC=
12619 old_archive_from_expsyms_cmds_FC=
12620 thread_safe_flag_spec_FC=
12621 whole_archive_flag_spec_FC=
12622 # include_expsyms should be a list of space-separated symbols to be *always*
12623 # included in the symbol list
12624 include_expsyms_FC=
12625 # exclude_expsyms can be an extended regexp of symbols to exclude
12626 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12627 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12628 # as well as any symbol that contains `d'.
12629 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12630 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12631 # platforms (ab)use it in PIC code, but their linkers get confused if
12632 # the symbol is explicitly referenced. Since portable code cannot
12633 # rely on this symbol name, it's probably fine to never include it in
12634 # preloaded symbol tables.
12635 # Exclude shared library initialization/finalization symbols.
12636 extract_expsyms_cmds=
12638 case $host_os in
12639 cygwin* | mingw* | pw32* | cegcc*)
12640 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12641 # When not using gcc, we currently assume that we are using
12642 # Microsoft Visual C++.
12643 if test "$GCC" != yes; then
12644 with_gnu_ld=no
12647 interix*)
12648 # we just hope/assume this is gcc and not c89 (= MSVC++)
12649 with_gnu_ld=yes
12651 openbsd*)
12652 with_gnu_ld=no
12654 esac
12656 ld_shlibs_FC=yes
12658 # On some targets, GNU ld is compatible enough with the native linker
12659 # that we're better off using the native interface for both.
12660 lt_use_gnu_ld_interface=no
12661 if test "$with_gnu_ld" = yes; then
12662 case $host_os in
12663 aix*)
12664 # The AIX port of GNU ld has always aspired to compatibility
12665 # with the native linker. However, as the warning in the GNU ld
12666 # block says, versions before 2.19.5* couldn't really create working
12667 # shared libraries, regardless of the interface used.
12668 case `$LD -v 2>&1` in
12669 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12670 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12671 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12673 lt_use_gnu_ld_interface=yes
12675 esac
12678 lt_use_gnu_ld_interface=yes
12680 esac
12683 if test "$lt_use_gnu_ld_interface" = yes; then
12684 # If archive_cmds runs LD, not CC, wlarc should be empty
12685 wlarc='${wl}'
12687 # Set some defaults for GNU ld with shared library support. These
12688 # are reset later if shared libraries are not supported. Putting them
12689 # here allows them to be overridden if necessary.
12690 runpath_var=LD_RUN_PATH
12691 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12692 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
12693 # ancient GNU ld didn't support --whole-archive et. al.
12694 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12695 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12696 else
12697 whole_archive_flag_spec_FC=
12699 supports_anon_versioning=no
12700 case `$LD -v 2>&1` in
12701 *GNU\ gold*) supports_anon_versioning=yes ;;
12702 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12703 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12704 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12705 *\ 2.11.*) ;; # other 2.11 versions
12706 *) supports_anon_versioning=yes ;;
12707 esac
12709 # See if GNU ld supports shared libraries.
12710 case $host_os in
12711 aix[3-9]*)
12712 # On AIX/PPC, the GNU linker is very broken
12713 if test "$host_cpu" != ia64; then
12714 ld_shlibs_FC=no
12715 cat <<_LT_EOF 1>&2
12717 *** Warning: the GNU linker, at least up to release 2.19, is reported
12718 *** to be unable to reliably create shared libraries on AIX.
12719 *** Therefore, libtool is disabling shared libraries support. If you
12720 *** really care for shared libraries, you may want to install binutils
12721 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12722 *** You will then need to restart the configuration process.
12724 _LT_EOF
12728 amigaos*)
12729 case $host_cpu in
12730 powerpc)
12731 # see comment about AmigaOS4 .so support
12732 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12733 archive_expsym_cmds_FC=''
12735 m68k)
12736 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)'
12737 hardcode_libdir_flag_spec_FC='-L$libdir'
12738 hardcode_minus_L_FC=yes
12740 esac
12743 beos*)
12744 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12745 allow_undefined_flag_FC=unsupported
12746 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12747 # support --undefined. This deserves some investigation. FIXME
12748 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12749 else
12750 ld_shlibs_FC=no
12754 cygwin* | mingw* | pw32* | cegcc*)
12755 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
12756 # as there is no search path for DLLs.
12757 hardcode_libdir_flag_spec_FC='-L$libdir'
12758 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
12759 allow_undefined_flag_FC=unsupported
12760 always_export_symbols_FC=no
12761 enable_shared_with_static_runtimes_FC=yes
12762 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12764 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12765 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12766 # If the export-symbols file already is a .def file (1st line
12767 # is EXPORTS), use it as is; otherwise, prepend...
12768 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12769 cp $export_symbols $output_objdir/$soname.def;
12770 else
12771 echo EXPORTS > $output_objdir/$soname.def;
12772 cat $export_symbols >> $output_objdir/$soname.def;
12774 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12775 else
12776 ld_shlibs_FC=no
12780 haiku*)
12781 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12782 link_all_deplibs_FC=yes
12785 interix[3-9]*)
12786 hardcode_direct_FC=no
12787 hardcode_shlibpath_var_FC=no
12788 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
12789 export_dynamic_flag_spec_FC='${wl}-E'
12790 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12791 # Instead, shared libraries are loaded at an image base (0x10000000 by
12792 # default) and relocated if they conflict, which is a slow very memory
12793 # consuming and fragmenting process. To avoid this, we pick a random,
12794 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12795 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12796 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'
12797 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'
12800 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12801 tmp_diet=no
12802 if test "$host_os" = linux-dietlibc; then
12803 case $cc_basename in
12804 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12805 esac
12807 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12808 && test "$tmp_diet" = no
12809 then
12810 tmp_addflag=' $pic_flag'
12811 tmp_sharedflag='-shared'
12812 case $cc_basename,$host_cpu in
12813 pgcc*) # Portland Group C compiler
12814 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'
12815 tmp_addflag=' $pic_flag'
12817 pgf77* | pgf90* | pgf95* | pgfortran*)
12818 # Portland Group f77 and f90 compilers
12819 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'
12820 tmp_addflag=' $pic_flag -Mnomain' ;;
12821 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12822 tmp_addflag=' -i_dynamic' ;;
12823 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12824 tmp_addflag=' -i_dynamic -nofor_main' ;;
12825 ifc* | ifort*) # Intel Fortran compiler
12826 tmp_addflag=' -nofor_main' ;;
12827 lf95*) # Lahey Fortran 8.1
12828 whole_archive_flag_spec_FC=
12829 tmp_sharedflag='--shared' ;;
12830 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12831 tmp_sharedflag='-qmkshrobj'
12832 tmp_addflag= ;;
12833 nvcc*) # Cuda Compiler Driver 2.2
12834 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'
12835 compiler_needs_object_FC=yes
12837 esac
12838 case `$CC -V 2>&1 | sed 5q` in
12839 *Sun\ C*) # Sun C 5.9
12840 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'
12841 compiler_needs_object_FC=yes
12842 tmp_sharedflag='-G' ;;
12843 *Sun\ F*) # Sun Fortran 8.3
12844 tmp_sharedflag='-G' ;;
12845 esac
12846 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12848 if test "x$supports_anon_versioning" = xyes; then
12849 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
12850 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12851 echo "local: *; };" >> $output_objdir/$libname.ver~
12852 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12855 case $cc_basename in
12856 xlf* | bgf* | bgxlf* | mpixlf*)
12857 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12858 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
12859 hardcode_libdir_flag_spec_FC=
12860 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
12861 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12862 if test "x$supports_anon_versioning" = xyes; then
12863 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
12864 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12865 echo "local: *; };" >> $output_objdir/$libname.ver~
12866 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12869 esac
12870 else
12871 ld_shlibs_FC=no
12875 netbsd*)
12876 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12877 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12878 wlarc=
12879 else
12880 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12881 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12885 solaris*)
12886 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12887 ld_shlibs_FC=no
12888 cat <<_LT_EOF 1>&2
12890 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12891 *** create shared libraries on Solaris systems. Therefore, libtool
12892 *** is disabling shared libraries support. We urge you to upgrade GNU
12893 *** binutils to release 2.9.1 or newer. Another option is to modify
12894 *** your PATH or compiler configuration so that the native linker is
12895 *** used, and then restart.
12897 _LT_EOF
12898 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12899 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12900 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12901 else
12902 ld_shlibs_FC=no
12906 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12907 case `$LD -v 2>&1` in
12908 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12909 ld_shlibs_FC=no
12910 cat <<_LT_EOF 1>&2
12912 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12913 *** reliably create shared libraries on SCO systems. Therefore, libtool
12914 *** is disabling shared libraries support. We urge you to upgrade GNU
12915 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12916 *** your PATH or compiler configuration so that the native linker is
12917 *** used, and then restart.
12919 _LT_EOF
12922 # For security reasons, it is highly recommended that you always
12923 # use absolute paths for naming shared libraries, and exclude the
12924 # DT_RUNPATH tag from executables and libraries. But doing so
12925 # requires that you compile everything twice, which is a pain.
12926 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12927 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12928 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12929 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12930 else
12931 ld_shlibs_FC=no
12934 esac
12937 sunos4*)
12938 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12939 wlarc=
12940 hardcode_direct_FC=yes
12941 hardcode_shlibpath_var_FC=no
12945 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12946 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12947 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12948 else
12949 ld_shlibs_FC=no
12952 esac
12954 if test "$ld_shlibs_FC" = no; then
12955 runpath_var=
12956 hardcode_libdir_flag_spec_FC=
12957 export_dynamic_flag_spec_FC=
12958 whole_archive_flag_spec_FC=
12960 else
12961 # PORTME fill in a description of your system's linker (not GNU ld)
12962 case $host_os in
12963 aix3*)
12964 allow_undefined_flag_FC=unsupported
12965 always_export_symbols_FC=yes
12966 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'
12967 # Note: this linker hardcodes the directories in LIBPATH if there
12968 # are no directories specified by -L.
12969 hardcode_minus_L_FC=yes
12970 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12971 # Neither direct hardcoding nor static linking is supported with a
12972 # broken collect2.
12973 hardcode_direct_FC=unsupported
12977 aix[4-9]*)
12978 if test "$host_cpu" = ia64; then
12979 # On IA64, the linker does run time linking by default, so we don't
12980 # have to do anything special.
12981 aix_use_runtimelinking=no
12982 exp_sym_flag='-Bexport'
12983 no_entry_flag=""
12984 else
12985 # If we're using GNU nm, then we don't want the "-C" option.
12986 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12987 # Also, AIX nm treats weak defined symbols like other global
12988 # defined symbols, whereas GNU nm marks them as "W".
12989 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12990 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'
12991 else
12992 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'
12994 aix_use_runtimelinking=no
12996 # Test if we are trying to use run time linking or normal
12997 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12998 # need to do runtime linking.
12999 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13000 for ld_flag in $LDFLAGS; do
13001 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13002 aix_use_runtimelinking=yes
13003 break
13005 done
13007 esac
13009 exp_sym_flag='-bexport'
13010 no_entry_flag='-bnoentry'
13013 # When large executables or shared objects are built, AIX ld can
13014 # have problems creating the table of contents. If linking a library
13015 # or program results in "error TOC overflow" add -mminimal-toc to
13016 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13017 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13019 archive_cmds_FC=''
13020 hardcode_direct_FC=yes
13021 hardcode_direct_absolute_FC=yes
13022 hardcode_libdir_separator_FC=':'
13023 link_all_deplibs_FC=yes
13024 file_list_spec_FC='${wl}-f,'
13026 if test "$GCC" = yes; then
13027 case $host_os in aix4.[012]|aix4.[012].*)
13028 # We only want to do this on AIX 4.2 and lower, the check
13029 # below for broken collect2 doesn't work under 4.3+
13030 collect2name=`${CC} -print-prog-name=collect2`
13031 if test -f "$collect2name" &&
13032 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13033 then
13034 # We have reworked collect2
13036 else
13037 # We have old collect2
13038 hardcode_direct_FC=unsupported
13039 # It fails to find uninstalled libraries when the uninstalled
13040 # path is not listed in the libpath. Setting hardcode_minus_L
13041 # to unsupported forces relinking
13042 hardcode_minus_L_FC=yes
13043 hardcode_libdir_flag_spec_FC='-L$libdir'
13044 hardcode_libdir_separator_FC=
13047 esac
13048 shared_flag='-shared'
13049 if test "$aix_use_runtimelinking" = yes; then
13050 shared_flag="$shared_flag "'${wl}-G'
13052 else
13053 # not using gcc
13054 if test "$host_cpu" = ia64; then
13055 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13056 # chokes on -Wl,-G. The following line is correct:
13057 shared_flag='-G'
13058 else
13059 if test "$aix_use_runtimelinking" = yes; then
13060 shared_flag='${wl}-G'
13061 else
13062 shared_flag='${wl}-bM:SRE'
13067 export_dynamic_flag_spec_FC='${wl}-bexpall'
13068 # It seems that -bexpall does not export symbols beginning with
13069 # underscore (_), so it is better to generate a list of symbols to export.
13070 always_export_symbols_FC=yes
13071 if test "$aix_use_runtimelinking" = yes; then
13072 # Warning - without using the other runtime loading flags (-brtl),
13073 # -berok will link without error, but may produce a broken library.
13074 allow_undefined_flag_FC='-berok'
13075 # Determine the default libpath from the value encoded in an
13076 # empty executable.
13077 cat > conftest.$ac_ext <<_ACEOF
13078 program main
13081 _ACEOF
13082 if ac_fn_fc_try_link "$LINENO"; then :
13084 lt_aix_libpath_sed='
13085 /Import File Strings/,/^$/ {
13086 /^0/ {
13087 s/^0 *\(.*\)$/\1/
13091 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13092 # Check for a 64-bit object if we didn't find anything.
13093 if test -z "$aix_libpath"; then
13094 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13097 rm -f core conftest.err conftest.$ac_objext \
13098 conftest$ac_exeext conftest.$ac_ext
13099 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13101 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13102 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"
13103 else
13104 if test "$host_cpu" = ia64; then
13105 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
13106 allow_undefined_flag_FC="-z nodefs"
13107 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"
13108 else
13109 # Determine the default libpath from the value encoded in an
13110 # empty executable.
13111 cat > conftest.$ac_ext <<_ACEOF
13112 program main
13115 _ACEOF
13116 if ac_fn_fc_try_link "$LINENO"; then :
13118 lt_aix_libpath_sed='
13119 /Import File Strings/,/^$/ {
13120 /^0/ {
13121 s/^0 *\(.*\)$/\1/
13125 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13126 # Check for a 64-bit object if we didn't find anything.
13127 if test -z "$aix_libpath"; then
13128 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13131 rm -f core conftest.err conftest.$ac_objext \
13132 conftest$ac_exeext conftest.$ac_ext
13133 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13135 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13136 # Warning - without using the other run time loading flags,
13137 # -berok will link without error, but may produce a broken library.
13138 no_undefined_flag_FC=' ${wl}-bernotok'
13139 allow_undefined_flag_FC=' ${wl}-berok'
13140 if test "$with_gnu_ld" = yes; then
13141 # We only use this code for GNU lds that support --whole-archive.
13142 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13143 else
13144 # Exported symbols can be pulled into shared objects from archives
13145 whole_archive_flag_spec_FC='$convenience'
13147 archive_cmds_need_lc_FC=yes
13148 # This is similar to how AIX traditionally builds its shared libraries.
13149 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'
13154 amigaos*)
13155 case $host_cpu in
13156 powerpc)
13157 # see comment about AmigaOS4 .so support
13158 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13159 archive_expsym_cmds_FC=''
13161 m68k)
13162 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)'
13163 hardcode_libdir_flag_spec_FC='-L$libdir'
13164 hardcode_minus_L_FC=yes
13166 esac
13169 bsdi[45]*)
13170 export_dynamic_flag_spec_FC=-rdynamic
13173 cygwin* | mingw* | pw32* | cegcc*)
13174 # When not using gcc, we currently assume that we are using
13175 # Microsoft Visual C++.
13176 # hardcode_libdir_flag_spec is actually meaningless, as there is
13177 # no search path for DLLs.
13178 hardcode_libdir_flag_spec_FC=' '
13179 allow_undefined_flag_FC=unsupported
13180 # Tell ltmain to make .lib files, not .a files.
13181 libext=lib
13182 # Tell ltmain to make .dll files, not .so files.
13183 shrext_cmds=".dll"
13184 # FIXME: Setting linknames here is a bad hack.
13185 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13186 # The linker will automatically build a .lib file if we build a DLL.
13187 old_archive_from_new_cmds_FC='true'
13188 # FIXME: Should let the user specify the lib program.
13189 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
13190 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
13191 enable_shared_with_static_runtimes_FC=yes
13194 darwin* | rhapsody*)
13197 archive_cmds_need_lc_FC=no
13198 hardcode_direct_FC=no
13199 hardcode_automatic_FC=yes
13200 hardcode_shlibpath_var_FC=unsupported
13201 if test "$lt_cv_ld_force_load" = "yes"; then
13202 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\"`'
13203 else
13204 whole_archive_flag_spec_FC=''
13206 link_all_deplibs_FC=yes
13207 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
13208 case $cc_basename in
13209 ifort*) _lt_dar_can_shared=yes ;;
13210 *) _lt_dar_can_shared=$GCC ;;
13211 esac
13212 if test "$_lt_dar_can_shared" = "yes"; then
13213 output_verbose_link_cmd=func_echo_all
13214 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}"
13215 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13216 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}"
13217 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}"
13219 else
13220 ld_shlibs_FC=no
13225 dgux*)
13226 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13227 hardcode_libdir_flag_spec_FC='-L$libdir'
13228 hardcode_shlibpath_var_FC=no
13231 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13232 # support. Future versions do this automatically, but an explicit c++rt0.o
13233 # does not break anything, and helps significantly (at the cost of a little
13234 # extra space).
13235 freebsd2.2*)
13236 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13237 hardcode_libdir_flag_spec_FC='-R$libdir'
13238 hardcode_direct_FC=yes
13239 hardcode_shlibpath_var_FC=no
13242 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13243 freebsd2.*)
13244 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13245 hardcode_direct_FC=yes
13246 hardcode_minus_L_FC=yes
13247 hardcode_shlibpath_var_FC=no
13250 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13251 freebsd* | dragonfly*)
13252 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13253 hardcode_libdir_flag_spec_FC='-R$libdir'
13254 hardcode_direct_FC=yes
13255 hardcode_shlibpath_var_FC=no
13258 hpux9*)
13259 if test "$GCC" = yes; then
13260 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'
13261 else
13262 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'
13264 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13265 hardcode_libdir_separator_FC=:
13266 hardcode_direct_FC=yes
13268 # hardcode_minus_L: Not really in the search PATH,
13269 # but as the default location of the library.
13270 hardcode_minus_L_FC=yes
13271 export_dynamic_flag_spec_FC='${wl}-E'
13274 hpux10*)
13275 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13276 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13277 else
13278 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13280 if test "$with_gnu_ld" = no; then
13281 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13282 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
13283 hardcode_libdir_separator_FC=:
13284 hardcode_direct_FC=yes
13285 hardcode_direct_absolute_FC=yes
13286 export_dynamic_flag_spec_FC='${wl}-E'
13287 # hardcode_minus_L: Not really in the search PATH,
13288 # but as the default location of the library.
13289 hardcode_minus_L_FC=yes
13293 hpux11*)
13294 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13295 case $host_cpu in
13296 hppa*64*)
13297 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13299 ia64*)
13300 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13303 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13305 esac
13306 else
13307 case $host_cpu in
13308 hppa*64*)
13309 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13311 ia64*)
13312 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13315 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13317 esac
13319 if test "$with_gnu_ld" = no; then
13320 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13321 hardcode_libdir_separator_FC=:
13323 case $host_cpu in
13324 hppa*64*|ia64*)
13325 hardcode_direct_FC=no
13326 hardcode_shlibpath_var_FC=no
13329 hardcode_direct_FC=yes
13330 hardcode_direct_absolute_FC=yes
13331 export_dynamic_flag_spec_FC='${wl}-E'
13333 # hardcode_minus_L: Not really in the search PATH,
13334 # but as the default location of the library.
13335 hardcode_minus_L_FC=yes
13337 esac
13341 irix5* | irix6* | nonstopux*)
13342 if test "$GCC" = yes; then
13343 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'
13344 # Try to use the -exported_symbol ld option, if it does not
13345 # work, assume that -exports_file does not work either and
13346 # implicitly export all symbols.
13347 save_LDFLAGS="$LDFLAGS"
13348 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13349 cat > conftest.$ac_ext <<_ACEOF
13350 int foo(void) {}
13351 _ACEOF
13352 if ac_fn_fc_try_link "$LINENO"; then :
13353 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'
13356 rm -f core conftest.err conftest.$ac_objext \
13357 conftest$ac_exeext conftest.$ac_ext
13358 LDFLAGS="$save_LDFLAGS"
13359 else
13360 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'
13361 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'
13363 archive_cmds_need_lc_FC='no'
13364 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13365 hardcode_libdir_separator_FC=:
13366 inherit_rpath_FC=yes
13367 link_all_deplibs_FC=yes
13370 netbsd*)
13371 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13372 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13373 else
13374 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13376 hardcode_libdir_flag_spec_FC='-R$libdir'
13377 hardcode_direct_FC=yes
13378 hardcode_shlibpath_var_FC=no
13381 newsos6)
13382 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13383 hardcode_direct_FC=yes
13384 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13385 hardcode_libdir_separator_FC=:
13386 hardcode_shlibpath_var_FC=no
13389 *nto* | *qnx*)
13392 openbsd*)
13393 if test -f /usr/libexec/ld.so; then
13394 hardcode_direct_FC=yes
13395 hardcode_shlibpath_var_FC=no
13396 hardcode_direct_absolute_FC=yes
13397 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13398 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13399 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13400 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13401 export_dynamic_flag_spec_FC='${wl}-E'
13402 else
13403 case $host_os in
13404 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13405 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13406 hardcode_libdir_flag_spec_FC='-R$libdir'
13409 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13410 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13412 esac
13414 else
13415 ld_shlibs_FC=no
13419 os2*)
13420 hardcode_libdir_flag_spec_FC='-L$libdir'
13421 hardcode_minus_L_FC=yes
13422 allow_undefined_flag_FC=unsupported
13423 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'
13424 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13427 osf3*)
13428 if test "$GCC" = yes; then
13429 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13430 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'
13431 else
13432 allow_undefined_flag_FC=' -expect_unresolved \*'
13433 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'
13435 archive_cmds_need_lc_FC='no'
13436 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13437 hardcode_libdir_separator_FC=:
13440 osf4* | osf5*) # as osf3* with the addition of -msym flag
13441 if test "$GCC" = yes; then
13442 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13443 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'
13444 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13445 else
13446 allow_undefined_flag_FC=' -expect_unresolved \*'
13447 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'
13448 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~
13449 $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'
13451 # Both c and cxx compiler support -rpath directly
13452 hardcode_libdir_flag_spec_FC='-rpath $libdir'
13454 archive_cmds_need_lc_FC='no'
13455 hardcode_libdir_separator_FC=:
13458 solaris*)
13459 no_undefined_flag_FC=' -z defs'
13460 if test "$GCC" = yes; then
13461 wlarc='${wl}'
13462 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13463 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13464 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13465 else
13466 case `$CC -V 2>&1` in
13467 *"Compilers 5.0"*)
13468 wlarc=''
13469 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13470 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13471 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13474 wlarc='${wl}'
13475 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13476 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13477 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13479 esac
13481 hardcode_libdir_flag_spec_FC='-R$libdir'
13482 hardcode_shlibpath_var_FC=no
13483 case $host_os in
13484 solaris2.[0-5] | solaris2.[0-5].*) ;;
13486 # The compiler driver will combine and reorder linker options,
13487 # but understands `-z linker_flag'. GCC discards it without `$wl',
13488 # but is careful enough not to reorder.
13489 # Supported since Solaris 2.6 (maybe 2.5.1?)
13490 if test "$GCC" = yes; then
13491 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13492 else
13493 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
13496 esac
13497 link_all_deplibs_FC=yes
13500 sunos4*)
13501 if test "x$host_vendor" = xsequent; then
13502 # Use $CC to link under sequent, because it throws in some extra .o
13503 # files that make .init and .fini sections work.
13504 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13505 else
13506 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13508 hardcode_libdir_flag_spec_FC='-L$libdir'
13509 hardcode_direct_FC=yes
13510 hardcode_minus_L_FC=yes
13511 hardcode_shlibpath_var_FC=no
13514 sysv4)
13515 case $host_vendor in
13516 sni)
13517 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13518 hardcode_direct_FC=yes # is this really true???
13520 siemens)
13521 ## LD is ld it makes a PLAMLIB
13522 ## CC just makes a GrossModule.
13523 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13524 reload_cmds_FC='$CC -r -o $output$reload_objs'
13525 hardcode_direct_FC=no
13527 motorola)
13528 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13529 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
13531 esac
13532 runpath_var='LD_RUN_PATH'
13533 hardcode_shlibpath_var_FC=no
13536 sysv4.3*)
13537 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13538 hardcode_shlibpath_var_FC=no
13539 export_dynamic_flag_spec_FC='-Bexport'
13542 sysv4*MP*)
13543 if test -d /usr/nec; then
13544 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13545 hardcode_shlibpath_var_FC=no
13546 runpath_var=LD_RUN_PATH
13547 hardcode_runpath_var=yes
13548 ld_shlibs_FC=yes
13552 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13553 no_undefined_flag_FC='${wl}-z,text'
13554 archive_cmds_need_lc_FC=no
13555 hardcode_shlibpath_var_FC=no
13556 runpath_var='LD_RUN_PATH'
13558 if test "$GCC" = yes; then
13559 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13560 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13561 else
13562 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13563 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13567 sysv5* | sco3.2v5* | sco5v6*)
13568 # Note: We can NOT use -z defs as we might desire, because we do not
13569 # link with -lc, and that would cause any symbols used from libc to
13570 # always be unresolved, which means just about no library would
13571 # ever link correctly. If we're not using GNU ld we use -z text
13572 # though, which does catch some bad symbols but isn't as heavy-handed
13573 # as -z defs.
13574 no_undefined_flag_FC='${wl}-z,text'
13575 allow_undefined_flag_FC='${wl}-z,nodefs'
13576 archive_cmds_need_lc_FC=no
13577 hardcode_shlibpath_var_FC=no
13578 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
13579 hardcode_libdir_separator_FC=':'
13580 link_all_deplibs_FC=yes
13581 export_dynamic_flag_spec_FC='${wl}-Bexport'
13582 runpath_var='LD_RUN_PATH'
13584 if test "$GCC" = yes; then
13585 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13586 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13587 else
13588 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13589 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13593 uts4*)
13594 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13595 hardcode_libdir_flag_spec_FC='-L$libdir'
13596 hardcode_shlibpath_var_FC=no
13600 ld_shlibs_FC=no
13602 esac
13604 if test x$host_vendor = xsni; then
13605 case $host in
13606 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13607 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
13609 esac
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
13614 $as_echo "$ld_shlibs_FC" >&6; }
13615 test "$ld_shlibs_FC" = no && can_build_shared=no
13617 with_gnu_ld_FC=$with_gnu_ld
13625 # Do we need to explicitly link libc?
13627 case "x$archive_cmds_need_lc_FC" in
13628 x|xyes)
13629 # Assume -lc should be added
13630 archive_cmds_need_lc_FC=yes
13632 if test "$enable_shared" = yes && test "$GCC" = yes; then
13633 case $archive_cmds_FC in
13634 *'~'*)
13635 # FIXME: we may have to deal with multi-command sequences.
13637 '$CC '*)
13638 # Test whether the compiler implicitly links with -lc since on some
13639 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13640 # to ld, don't add -lc before -lgcc.
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13642 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13643 if test "${lt_cv_archive_cmds_need_lc_FC+set}" = set; then :
13644 $as_echo_n "(cached) " >&6
13645 else
13646 $RM conftest*
13647 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13649 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13650 (eval $ac_compile) 2>&5
13651 ac_status=$?
13652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13653 test $ac_status = 0; } 2>conftest.err; then
13654 soname=conftest
13655 lib=conftest
13656 libobjs=conftest.$ac_objext
13657 deplibs=
13658 wl=$lt_prog_compiler_wl_FC
13659 pic_flag=$lt_prog_compiler_pic_FC
13660 compiler_flags=-v
13661 linker_flags=-v
13662 verstring=
13663 output_objdir=.
13664 libname=conftest
13665 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
13666 allow_undefined_flag_FC=
13667 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13668 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13669 ac_status=$?
13670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13671 test $ac_status = 0; }
13672 then
13673 lt_cv_archive_cmds_need_lc_FC=no
13674 else
13675 lt_cv_archive_cmds_need_lc_FC=yes
13677 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
13678 else
13679 cat conftest.err 1>&5
13681 $RM conftest*
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
13685 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
13686 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
13688 esac
13691 esac
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13757 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13759 library_names_spec=
13760 libname_spec='lib$name'
13761 soname_spec=
13762 shrext_cmds=".so"
13763 postinstall_cmds=
13764 postuninstall_cmds=
13765 finish_cmds=
13766 finish_eval=
13767 shlibpath_var=
13768 shlibpath_overrides_runpath=unknown
13769 version_type=none
13770 dynamic_linker="$host_os ld.so"
13771 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13772 need_lib_prefix=unknown
13773 hardcode_into_libs=no
13775 # when you set need_version to no, make sure it does not cause -set_version
13776 # flags to be left without arguments
13777 need_version=unknown
13779 case $host_os in
13780 aix3*)
13781 version_type=linux
13782 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13783 shlibpath_var=LIBPATH
13785 # AIX 3 has no versioning support, so we append a major version to the name.
13786 soname_spec='${libname}${release}${shared_ext}$major'
13789 aix[4-9]*)
13790 version_type=linux
13791 need_lib_prefix=no
13792 need_version=no
13793 hardcode_into_libs=yes
13794 if test "$host_cpu" = ia64; then
13795 # AIX 5 supports IA64
13796 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13797 shlibpath_var=LD_LIBRARY_PATH
13798 else
13799 # With GCC up to 2.95.x, collect2 would create an import file
13800 # for dependence libraries. The import file would start with
13801 # the line `#! .'. This would cause the generated library to
13802 # depend on `.', always an invalid library. This was fixed in
13803 # development snapshots of GCC prior to 3.0.
13804 case $host_os in
13805 aix4 | aix4.[01] | aix4.[01].*)
13806 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13807 echo ' yes '
13808 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13810 else
13811 can_build_shared=no
13814 esac
13815 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13816 # soname into executable. Probably we can add versioning support to
13817 # collect2, so additional links can be useful in future.
13818 if test "$aix_use_runtimelinking" = yes; then
13819 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13820 # instead of lib<name>.a to let people know that these are not
13821 # typical AIX shared libraries.
13822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13823 else
13824 # We preserve .a as extension for shared libraries through AIX4.2
13825 # and later when we are not doing run time linking.
13826 library_names_spec='${libname}${release}.a $libname.a'
13827 soname_spec='${libname}${release}${shared_ext}$major'
13829 shlibpath_var=LIBPATH
13833 amigaos*)
13834 case $host_cpu in
13835 powerpc)
13836 # Since July 2007 AmigaOS4 officially supports .so libraries.
13837 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13840 m68k)
13841 library_names_spec='$libname.ixlibrary $libname.a'
13842 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13843 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'
13845 esac
13848 beos*)
13849 library_names_spec='${libname}${shared_ext}'
13850 dynamic_linker="$host_os ld.so"
13851 shlibpath_var=LIBRARY_PATH
13854 bsdi[45]*)
13855 version_type=linux
13856 need_version=no
13857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13858 soname_spec='${libname}${release}${shared_ext}$major'
13859 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13860 shlibpath_var=LD_LIBRARY_PATH
13861 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13862 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13863 # the default ld.so.conf also contains /usr/contrib/lib and
13864 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13865 # libtool to hard-code these into programs
13868 cygwin* | mingw* | pw32* | cegcc*)
13869 version_type=windows
13870 shrext_cmds=".dll"
13871 need_version=no
13872 need_lib_prefix=no
13874 case $GCC,$host_os in
13875 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13876 library_names_spec='$libname.dll.a'
13877 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13878 postinstall_cmds='base_file=`basename \${file}`~
13879 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13880 dldir=$destdir/`dirname \$dlpath`~
13881 test -d \$dldir || mkdir -p \$dldir~
13882 $install_prog $dir/$dlname \$dldir/$dlname~
13883 chmod a+x \$dldir/$dlname~
13884 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13885 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13887 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13888 dlpath=$dir/\$dldll~
13889 $RM \$dlpath'
13890 shlibpath_overrides_runpath=yes
13892 case $host_os in
13893 cygwin*)
13894 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13895 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13898 mingw* | cegcc*)
13899 # MinGW DLLs use traditional 'lib' prefix
13900 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13902 pw32*)
13903 # pw32 DLLs use 'pw' prefix rather than 'lib'
13904 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13906 esac
13910 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13912 esac
13913 dynamic_linker='Win32 ld.exe'
13914 # FIXME: first we should search . and the directory the executable is in
13915 shlibpath_var=PATH
13918 darwin* | rhapsody*)
13919 dynamic_linker="$host_os dyld"
13920 version_type=darwin
13921 need_lib_prefix=no
13922 need_version=no
13923 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13924 soname_spec='${libname}${release}${major}$shared_ext'
13925 shlibpath_overrides_runpath=yes
13926 shlibpath_var=DYLD_LIBRARY_PATH
13927 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13929 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13932 dgux*)
13933 version_type=linux
13934 need_lib_prefix=no
13935 need_version=no
13936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13937 soname_spec='${libname}${release}${shared_ext}$major'
13938 shlibpath_var=LD_LIBRARY_PATH
13941 freebsd* | dragonfly*)
13942 # DragonFly does not have aout. When/if they implement a new
13943 # versioning mechanism, adjust this.
13944 if test -x /usr/bin/objformat; then
13945 objformat=`/usr/bin/objformat`
13946 else
13947 case $host_os in
13948 freebsd[23].*) objformat=aout ;;
13949 *) objformat=elf ;;
13950 esac
13952 version_type=freebsd-$objformat
13953 case $version_type in
13954 freebsd-elf*)
13955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13956 need_version=no
13957 need_lib_prefix=no
13959 freebsd-*)
13960 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13961 need_version=yes
13963 esac
13964 shlibpath_var=LD_LIBRARY_PATH
13965 case $host_os in
13966 freebsd2.*)
13967 shlibpath_overrides_runpath=yes
13969 freebsd3.[01]* | freebsdelf3.[01]*)
13970 shlibpath_overrides_runpath=yes
13971 hardcode_into_libs=yes
13973 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13974 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13975 shlibpath_overrides_runpath=no
13976 hardcode_into_libs=yes
13978 *) # from 4.6 on, and DragonFly
13979 shlibpath_overrides_runpath=yes
13980 hardcode_into_libs=yes
13982 esac
13985 gnu*)
13986 version_type=linux
13987 need_lib_prefix=no
13988 need_version=no
13989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13990 soname_spec='${libname}${release}${shared_ext}$major'
13991 shlibpath_var=LD_LIBRARY_PATH
13992 hardcode_into_libs=yes
13995 haiku*)
13996 version_type=linux
13997 need_lib_prefix=no
13998 need_version=no
13999 dynamic_linker="$host_os runtime_loader"
14000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14001 soname_spec='${libname}${release}${shared_ext}$major'
14002 shlibpath_var=LIBRARY_PATH
14003 shlibpath_overrides_runpath=yes
14004 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14005 hardcode_into_libs=yes
14008 hpux9* | hpux10* | hpux11*)
14009 # Give a soname corresponding to the major version so that dld.sl refuses to
14010 # link against other versions.
14011 version_type=sunos
14012 need_lib_prefix=no
14013 need_version=no
14014 case $host_cpu in
14015 ia64*)
14016 shrext_cmds='.so'
14017 hardcode_into_libs=yes
14018 dynamic_linker="$host_os dld.so"
14019 shlibpath_var=LD_LIBRARY_PATH
14020 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14022 soname_spec='${libname}${release}${shared_ext}$major'
14023 if test "X$HPUX_IA64_MODE" = X32; then
14024 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14025 else
14026 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14028 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14030 hppa*64*)
14031 shrext_cmds='.sl'
14032 hardcode_into_libs=yes
14033 dynamic_linker="$host_os dld.sl"
14034 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14035 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14037 soname_spec='${libname}${release}${shared_ext}$major'
14038 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14039 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14042 shrext_cmds='.sl'
14043 dynamic_linker="$host_os dld.sl"
14044 shlibpath_var=SHLIB_PATH
14045 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14047 soname_spec='${libname}${release}${shared_ext}$major'
14049 esac
14050 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14051 postinstall_cmds='chmod 555 $lib'
14052 # or fails outright, so override atomically:
14053 install_override_mode=555
14056 interix[3-9]*)
14057 version_type=linux
14058 need_lib_prefix=no
14059 need_version=no
14060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14061 soname_spec='${libname}${release}${shared_ext}$major'
14062 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14063 shlibpath_var=LD_LIBRARY_PATH
14064 shlibpath_overrides_runpath=no
14065 hardcode_into_libs=yes
14068 irix5* | irix6* | nonstopux*)
14069 case $host_os in
14070 nonstopux*) version_type=nonstopux ;;
14072 if test "$lt_cv_prog_gnu_ld" = yes; then
14073 version_type=linux
14074 else
14075 version_type=irix
14076 fi ;;
14077 esac
14078 need_lib_prefix=no
14079 need_version=no
14080 soname_spec='${libname}${release}${shared_ext}$major'
14081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14082 case $host_os in
14083 irix5* | nonstopux*)
14084 libsuff= shlibsuff=
14087 case $LD in # libtool.m4 will add one of these switches to LD
14088 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14089 libsuff= shlibsuff= libmagic=32-bit;;
14090 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14091 libsuff=32 shlibsuff=N32 libmagic=N32;;
14092 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14093 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14094 *) libsuff= shlibsuff= libmagic=never-match;;
14095 esac
14097 esac
14098 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14099 shlibpath_overrides_runpath=no
14100 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14101 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14102 hardcode_into_libs=yes
14105 # No shared lib support for Linux oldld, aout, or coff.
14106 linux*oldld* | linux*aout* | linux*coff*)
14107 dynamic_linker=no
14110 # This must be Linux ELF.
14111 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14112 version_type=linux
14113 need_lib_prefix=no
14114 need_version=no
14115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14116 soname_spec='${libname}${release}${shared_ext}$major'
14117 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14118 shlibpath_var=LD_LIBRARY_PATH
14119 shlibpath_overrides_runpath=no
14121 # Some binutils ld are patched to set DT_RUNPATH
14122 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14123 $as_echo_n "(cached) " >&6
14124 else
14125 lt_cv_shlibpath_overrides_runpath=no
14126 save_LDFLAGS=$LDFLAGS
14127 save_libdir=$libdir
14128 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
14129 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
14130 cat > conftest.$ac_ext <<_ACEOF
14131 program main
14134 _ACEOF
14135 if ac_fn_fc_try_link "$LINENO"; then :
14136 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14137 lt_cv_shlibpath_overrides_runpath=yes
14140 rm -f core conftest.err conftest.$ac_objext \
14141 conftest$ac_exeext conftest.$ac_ext
14142 LDFLAGS=$save_LDFLAGS
14143 libdir=$save_libdir
14147 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14149 # This implies no fast_install, which is unacceptable.
14150 # Some rework will be needed to allow for fast_install
14151 # before this can be enabled.
14152 hardcode_into_libs=yes
14154 # Append ld.so.conf contents to the search path
14155 if test -f /etc/ld.so.conf; then
14156 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' ' '`
14157 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14160 # We used to test for /lib/ld.so.1 and disable shared libraries on
14161 # powerpc, because MkLinux only supported shared libraries with the
14162 # GNU dynamic linker. Since this was broken with cross compilers,
14163 # most powerpc-linux boxes support dynamic linking these days and
14164 # people can always --disable-shared, the test was removed, and we
14165 # assume the GNU/Linux dynamic linker is in use.
14166 dynamic_linker='GNU/Linux ld.so'
14169 netbsd*)
14170 version_type=sunos
14171 need_lib_prefix=no
14172 need_version=no
14173 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14175 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14176 dynamic_linker='NetBSD (a.out) ld.so'
14177 else
14178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14179 soname_spec='${libname}${release}${shared_ext}$major'
14180 dynamic_linker='NetBSD ld.elf_so'
14182 shlibpath_var=LD_LIBRARY_PATH
14183 shlibpath_overrides_runpath=yes
14184 hardcode_into_libs=yes
14187 newsos6)
14188 version_type=linux
14189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14190 shlibpath_var=LD_LIBRARY_PATH
14191 shlibpath_overrides_runpath=yes
14194 *nto* | *qnx*)
14195 version_type=qnx
14196 need_lib_prefix=no
14197 need_version=no
14198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14199 soname_spec='${libname}${release}${shared_ext}$major'
14200 shlibpath_var=LD_LIBRARY_PATH
14201 shlibpath_overrides_runpath=no
14202 hardcode_into_libs=yes
14203 dynamic_linker='ldqnx.so'
14206 openbsd*)
14207 version_type=sunos
14208 sys_lib_dlsearch_path_spec="/usr/lib"
14209 need_lib_prefix=no
14210 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14211 case $host_os in
14212 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14213 *) need_version=no ;;
14214 esac
14215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14216 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14217 shlibpath_var=LD_LIBRARY_PATH
14218 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14219 case $host_os in
14220 openbsd2.[89] | openbsd2.[89].*)
14221 shlibpath_overrides_runpath=no
14224 shlibpath_overrides_runpath=yes
14226 esac
14227 else
14228 shlibpath_overrides_runpath=yes
14232 os2*)
14233 libname_spec='$name'
14234 shrext_cmds=".dll"
14235 need_lib_prefix=no
14236 library_names_spec='$libname${shared_ext} $libname.a'
14237 dynamic_linker='OS/2 ld.exe'
14238 shlibpath_var=LIBPATH
14241 osf3* | osf4* | osf5*)
14242 version_type=osf
14243 need_lib_prefix=no
14244 need_version=no
14245 soname_spec='${libname}${release}${shared_ext}$major'
14246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14247 shlibpath_var=LD_LIBRARY_PATH
14248 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14249 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14252 rdos*)
14253 dynamic_linker=no
14256 solaris*)
14257 version_type=linux
14258 need_lib_prefix=no
14259 need_version=no
14260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14261 soname_spec='${libname}${release}${shared_ext}$major'
14262 shlibpath_var=LD_LIBRARY_PATH
14263 shlibpath_overrides_runpath=yes
14264 hardcode_into_libs=yes
14265 # ldd complains unless libraries are executable
14266 postinstall_cmds='chmod +x $lib'
14269 sunos4*)
14270 version_type=sunos
14271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14272 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14273 shlibpath_var=LD_LIBRARY_PATH
14274 shlibpath_overrides_runpath=yes
14275 if test "$with_gnu_ld" = yes; then
14276 need_lib_prefix=no
14278 need_version=yes
14281 sysv4 | sysv4.3*)
14282 version_type=linux
14283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14284 soname_spec='${libname}${release}${shared_ext}$major'
14285 shlibpath_var=LD_LIBRARY_PATH
14286 case $host_vendor in
14287 sni)
14288 shlibpath_overrides_runpath=no
14289 need_lib_prefix=no
14290 runpath_var=LD_RUN_PATH
14292 siemens)
14293 need_lib_prefix=no
14295 motorola)
14296 need_lib_prefix=no
14297 need_version=no
14298 shlibpath_overrides_runpath=no
14299 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14301 esac
14304 sysv4*MP*)
14305 if test -d /usr/nec ;then
14306 version_type=linux
14307 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14308 soname_spec='$libname${shared_ext}.$major'
14309 shlibpath_var=LD_LIBRARY_PATH
14313 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14314 version_type=freebsd-elf
14315 need_lib_prefix=no
14316 need_version=no
14317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14318 soname_spec='${libname}${release}${shared_ext}$major'
14319 shlibpath_var=LD_LIBRARY_PATH
14320 shlibpath_overrides_runpath=yes
14321 hardcode_into_libs=yes
14322 if test "$with_gnu_ld" = yes; then
14323 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14324 else
14325 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14326 case $host_os in
14327 sco3.2v5*)
14328 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14330 esac
14332 sys_lib_dlsearch_path_spec='/usr/lib'
14335 tpf*)
14336 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14337 version_type=linux
14338 need_lib_prefix=no
14339 need_version=no
14340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14341 shlibpath_var=LD_LIBRARY_PATH
14342 shlibpath_overrides_runpath=no
14343 hardcode_into_libs=yes
14346 uts4*)
14347 version_type=linux
14348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14349 soname_spec='${libname}${release}${shared_ext}$major'
14350 shlibpath_var=LD_LIBRARY_PATH
14354 dynamic_linker=no
14356 esac
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14358 $as_echo "$dynamic_linker" >&6; }
14359 test "$dynamic_linker" = no && can_build_shared=no
14361 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14362 if test "$GCC" = yes; then
14363 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14366 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14367 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14369 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14370 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14411 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14412 hardcode_action_FC=
14413 if test -n "$hardcode_libdir_flag_spec_FC" ||
14414 test -n "$runpath_var_FC" ||
14415 test "X$hardcode_automatic_FC" = "Xyes" ; then
14417 # We can hardcode non-existent directories.
14418 if test "$hardcode_direct_FC" != no &&
14419 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14420 # have to relink, otherwise we might link with an installed library
14421 # when we should be linking with a yet-to-be-installed one
14422 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
14423 test "$hardcode_minus_L_FC" != no; then
14424 # Linking always hardcodes the temporary library directory.
14425 hardcode_action_FC=relink
14426 else
14427 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14428 hardcode_action_FC=immediate
14430 else
14431 # We cannot hardcode anything, or else we can only hardcode existing
14432 # directories.
14433 hardcode_action_FC=unsupported
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
14436 $as_echo "$hardcode_action_FC" >&6; }
14438 if test "$hardcode_action_FC" = relink ||
14439 test "$inherit_rpath_FC" = yes; then
14440 # Fast installation is not supported
14441 enable_fast_install=no
14442 elif test "$shlibpath_overrides_runpath" = yes ||
14443 test "$enable_shared" = no; then
14444 # Fast installation is not necessary
14445 enable_fast_install=needless
14454 fi # test -n "$compiler"
14456 GCC=$lt_save_GCC
14457 CC="$lt_save_CC"
14458 fi # test "$_lt_disable_FC" != yes
14460 ac_ext=c
14461 ac_cpp='$CPP $CPPFLAGS'
14462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14467 FCFLAGS="$FCFLAGS -Wall -L../libgfortran"
14469 # For libtool versioning info, format is CURRENT:REVISION:AGE
14470 libtool_VERSION=1:0:0
14473 # Check header files.
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14475 $as_echo_n "checking for ANSI C header files... " >&6; }
14476 if test "${ac_cv_header_stdc+set}" = set; then :
14477 $as_echo_n "(cached) " >&6
14478 else
14479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14480 /* end confdefs.h. */
14481 #include <stdlib.h>
14482 #include <stdarg.h>
14483 #include <string.h>
14484 #include <float.h>
14487 main ()
14491 return 0;
14493 _ACEOF
14494 if ac_fn_c_try_compile "$LINENO"; then :
14495 ac_cv_header_stdc=yes
14496 else
14497 ac_cv_header_stdc=no
14499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14501 if test $ac_cv_header_stdc = yes; then
14502 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14504 /* end confdefs.h. */
14505 #include <string.h>
14507 _ACEOF
14508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14509 $EGREP "memchr" >/dev/null 2>&1; then :
14511 else
14512 ac_cv_header_stdc=no
14514 rm -f conftest*
14518 if test $ac_cv_header_stdc = yes; then
14519 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14521 /* end confdefs.h. */
14522 #include <stdlib.h>
14524 _ACEOF
14525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14526 $EGREP "free" >/dev/null 2>&1; then :
14528 else
14529 ac_cv_header_stdc=no
14531 rm -f conftest*
14535 if test $ac_cv_header_stdc = yes; then
14536 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14537 if test "$cross_compiling" = yes; then :
14539 else
14540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14541 /* end confdefs.h. */
14542 #include <ctype.h>
14543 #include <stdlib.h>
14544 #if ((' ' & 0x0FF) == 0x020)
14545 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14546 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14547 #else
14548 # define ISLOWER(c) \
14549 (('a' <= (c) && (c) <= 'i') \
14550 || ('j' <= (c) && (c) <= 'r') \
14551 || ('s' <= (c) && (c) <= 'z'))
14552 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14553 #endif
14555 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14557 main ()
14559 int i;
14560 for (i = 0; i < 256; i++)
14561 if (XOR (islower (i), ISLOWER (i))
14562 || toupper (i) != TOUPPER (i))
14563 return 2;
14564 return 0;
14566 _ACEOF
14567 if ac_fn_c_try_run "$LINENO"; then :
14569 else
14570 ac_cv_header_stdc=no
14572 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14573 conftest.$ac_objext conftest.beam conftest.$ac_ext
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14579 $as_echo "$ac_cv_header_stdc" >&6; }
14580 if test $ac_cv_header_stdc = yes; then
14582 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14587 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14588 if test "${ac_cv_header_time+set}" = set; then :
14589 $as_echo_n "(cached) " >&6
14590 else
14591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14592 /* end confdefs.h. */
14593 #include <sys/types.h>
14594 #include <sys/time.h>
14595 #include <time.h>
14598 main ()
14600 if ((struct tm *) 0)
14601 return 0;
14603 return 0;
14605 _ACEOF
14606 if ac_fn_c_try_compile "$LINENO"; then :
14607 ac_cv_header_time=yes
14608 else
14609 ac_cv_header_time=no
14611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14614 $as_echo "$ac_cv_header_time" >&6; }
14615 if test $ac_cv_header_time = yes; then
14617 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
14622 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
14623 if test "${gcc_cv_header_string+set}" = set; then :
14624 $as_echo_n "(cached) " >&6
14625 else
14626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14627 /* end confdefs.h. */
14628 #include <string.h>
14629 #include <strings.h>
14631 main ()
14635 return 0;
14637 _ACEOF
14638 if ac_fn_c_try_compile "$LINENO"; then :
14639 gcc_cv_header_string=yes
14640 else
14641 gcc_cv_header_string=no
14643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
14646 $as_echo "$gcc_cv_header_string" >&6; }
14647 if test $gcc_cv_header_string = yes; then
14649 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
14653 for ac_header in pthread.h unistd.h semaphore.h sys/loadavg.h sys/sysctl.h sys/time.h
14654 do :
14655 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14656 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14657 eval as_val=\$$as_ac_Header
14658 if test "x$as_val" = x""yes; then :
14659 cat >>confdefs.h <<_ACEOF
14660 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14661 _ACEOF
14665 done
14670 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
14672 acx_cv_header_stdint=stddef.h
14673 acx_cv_header_stdint_kind="(already complete)"
14674 for i in stdint.h $inttype_headers; do
14675 unset ac_cv_type_uintptr_t
14676 unset ac_cv_type_uintmax_t
14677 unset ac_cv_type_int_least32_t
14678 unset ac_cv_type_int_fast32_t
14679 unset ac_cv_type_uint64_t
14680 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
14681 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
14682 #include <$i>
14684 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
14685 acx_cv_header_stdint=$i
14686 else
14687 continue
14690 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
14691 #include <$i>
14693 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
14695 else
14696 acx_cv_header_stdint_kind="(mostly complete)"
14699 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
14700 #include <$i>
14702 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
14704 else
14705 acx_cv_header_stdint_kind="(mostly complete)"
14708 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
14709 #include <$i>
14711 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
14713 else
14714 acx_cv_header_stdint_kind="(mostly complete)"
14717 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
14718 #include <$i>
14720 if test "x$ac_cv_type_uint64_t" = x""yes; then :
14722 else
14723 acx_cv_header_stdint_kind="(lacks uint64_t)"
14726 break
14727 done
14728 if test "$acx_cv_header_stdint" = stddef.h; then
14729 acx_cv_header_stdint_kind="(lacks uintmax_t)"
14730 for i in stdint.h $inttype_headers; do
14731 unset ac_cv_type_uintptr_t
14732 unset ac_cv_type_uint32_t
14733 unset ac_cv_type_uint64_t
14734 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
14735 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
14736 #include <$i>
14738 if test "x$ac_cv_type_uint32_t" = x""yes; then :
14739 acx_cv_header_stdint=$i
14740 else
14741 continue
14744 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
14745 #include <$i>
14747 if test "x$ac_cv_type_uint64_t" = x""yes; then :
14751 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
14752 #include <$i>
14754 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
14758 break
14759 done
14761 if test "$acx_cv_header_stdint" = stddef.h; then
14762 acx_cv_header_stdint_kind="(u_intXX_t style)"
14763 for i in sys/types.h $inttype_headers; do
14764 unset ac_cv_type_u_int32_t
14765 unset ac_cv_type_u_int64_t
14766 $as_echo_n "looking for u_intXX_t types in $i, " >&6
14767 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
14768 #include <$i>
14770 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
14771 acx_cv_header_stdint=$i
14772 else
14773 continue
14776 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
14777 #include <$i>
14779 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
14783 break
14784 done
14786 if test "$acx_cv_header_stdint" = stddef.h; then
14787 acx_cv_header_stdint_kind="(using manual detection)"
14790 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
14791 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
14792 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
14793 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
14794 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
14796 # ----------------- Summarize what we found so far
14798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
14799 $as_echo_n "checking what to include in gstdint.h... " >&6; }
14801 case `$as_basename -- gstdint.h ||
14802 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
14803 Xgstdint.h : 'X\(//\)$' \| \
14804 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
14805 $as_echo X/gstdint.h |
14806 sed '/^.*\/\([^/][^/]*\)\/*$/{
14807 s//\1/
14810 /^X\/\(\/\/\)$/{
14811 s//\1/
14814 /^X\/\(\/\).*/{
14815 s//\1/
14818 s/.*/./; q'` in
14819 stdint.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 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
14822 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14823 *) ;;
14824 esac
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
14827 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
14829 # ----------------- done included file, check C basic types --------
14831 # Lacking an uintptr_t? Test size of void *
14832 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
14833 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
14834 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14835 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14836 # This bug is HP SR number 8606223364.
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
14838 $as_echo_n "checking size of void *... " >&6; }
14839 if test "${ac_cv_sizeof_void_p+set}" = set; then :
14840 $as_echo_n "(cached) " >&6
14841 else
14842 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
14844 else
14845 if test "$ac_cv_type_void_p" = yes; then
14846 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14847 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14848 { as_fn_set_status 77
14849 as_fn_error "cannot compute sizeof (void *)
14850 See \`config.log' for more details." "$LINENO" 5; }; }
14851 else
14852 ac_cv_sizeof_void_p=0
14857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
14858 $as_echo "$ac_cv_sizeof_void_p" >&6; }
14862 cat >>confdefs.h <<_ACEOF
14863 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14864 _ACEOF
14867 esac
14869 # Lacking an uint64_t? Test size of long
14870 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
14871 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
14872 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14873 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14874 # This bug is HP SR number 8606223364.
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
14876 $as_echo_n "checking size of long... " >&6; }
14877 if test "${ac_cv_sizeof_long+set}" = set; then :
14878 $as_echo_n "(cached) " >&6
14879 else
14880 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
14882 else
14883 if test "$ac_cv_type_long" = yes; then
14884 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14885 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14886 { as_fn_set_status 77
14887 as_fn_error "cannot compute sizeof (long)
14888 See \`config.log' for more details." "$LINENO" 5; }; }
14889 else
14890 ac_cv_sizeof_long=0
14895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
14896 $as_echo "$ac_cv_sizeof_long" >&6; }
14900 cat >>confdefs.h <<_ACEOF
14901 #define SIZEOF_LONG $ac_cv_sizeof_long
14902 _ACEOF
14905 esac
14907 if test $acx_cv_header_stdint = stddef.h; then
14908 # Lacking a good header? Test size of everything and deduce all types.
14909 # The cast to long int works around a bug in the HP C Compiler
14910 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14911 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14912 # This bug is HP SR number 8606223364.
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
14914 $as_echo_n "checking size of int... " >&6; }
14915 if test "${ac_cv_sizeof_int+set}" = set; then :
14916 $as_echo_n "(cached) " >&6
14917 else
14918 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
14920 else
14921 if test "$ac_cv_type_int" = yes; then
14922 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14923 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14924 { as_fn_set_status 77
14925 as_fn_error "cannot compute sizeof (int)
14926 See \`config.log' for more details." "$LINENO" 5; }; }
14927 else
14928 ac_cv_sizeof_int=0
14933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
14934 $as_echo "$ac_cv_sizeof_int" >&6; }
14938 cat >>confdefs.h <<_ACEOF
14939 #define SIZEOF_INT $ac_cv_sizeof_int
14940 _ACEOF
14943 # The cast to long int works around a bug in the HP C Compiler
14944 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14945 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14946 # This bug is HP SR number 8606223364.
14947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
14948 $as_echo_n "checking size of short... " >&6; }
14949 if test "${ac_cv_sizeof_short+set}" = set; then :
14950 $as_echo_n "(cached) " >&6
14951 else
14952 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
14954 else
14955 if test "$ac_cv_type_short" = yes; then
14956 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14957 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14958 { as_fn_set_status 77
14959 as_fn_error "cannot compute sizeof (short)
14960 See \`config.log' for more details." "$LINENO" 5; }; }
14961 else
14962 ac_cv_sizeof_short=0
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
14968 $as_echo "$ac_cv_sizeof_short" >&6; }
14972 cat >>confdefs.h <<_ACEOF
14973 #define SIZEOF_SHORT $ac_cv_sizeof_short
14974 _ACEOF
14977 # The cast to long int works around a bug in the HP C Compiler
14978 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14979 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14980 # This bug is HP SR number 8606223364.
14981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
14982 $as_echo_n "checking size of char... " >&6; }
14983 if test "${ac_cv_sizeof_char+set}" = set; then :
14984 $as_echo_n "(cached) " >&6
14985 else
14986 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
14988 else
14989 if test "$ac_cv_type_char" = yes; then
14990 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14991 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14992 { as_fn_set_status 77
14993 as_fn_error "cannot compute sizeof (char)
14994 See \`config.log' for more details." "$LINENO" 5; }; }
14995 else
14996 ac_cv_sizeof_char=0
15001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
15002 $as_echo "$ac_cv_sizeof_char" >&6; }
15006 cat >>confdefs.h <<_ACEOF
15007 #define SIZEOF_CHAR $ac_cv_sizeof_char
15008 _ACEOF
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
15013 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
15014 case "$ac_cv_sizeof_char" in
15015 1) acx_cv_type_int8_t=char ;;
15016 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
15017 esac
15018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
15019 $as_echo "$acx_cv_type_int8_t" >&6; }
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
15022 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
15023 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
15024 2:*) acx_cv_type_int16_t=int ;;
15025 *:2) acx_cv_type_int16_t=short ;;
15026 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
15027 esac
15028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
15029 $as_echo "$acx_cv_type_int16_t" >&6; }
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
15032 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
15033 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
15034 4:*) acx_cv_type_int32_t=int ;;
15035 *:4) acx_cv_type_int32_t=long ;;
15036 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
15037 esac
15038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
15039 $as_echo "$acx_cv_type_int32_t" >&6; }
15042 # These tests are here to make the output prettier
15044 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
15045 case "$ac_cv_sizeof_long" in
15046 8) acx_cv_type_int64_t=long ;;
15047 esac
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
15049 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
15050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
15051 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
15054 # Now we can use the above types
15056 if test "$ac_cv_type_uintptr_t" != yes; then
15057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
15058 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
15059 case $ac_cv_sizeof_void_p in
15060 2) acx_cv_type_intptr_t=int16_t ;;
15061 4) acx_cv_type_intptr_t=int32_t ;;
15062 8) acx_cv_type_intptr_t=int64_t ;;
15063 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
15064 esac
15065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
15066 $as_echo "$acx_cv_type_intptr_t" >&6; }
15069 # ----------------- done all checks, emit header -------------
15070 ac_config_commands="$ac_config_commands gstdint.h"
15075 XPCFLAGS=""
15076 case "$host" in
15077 *-*-rtems*)
15078 # RTEMS supports Pthreads, but the library is not available at GCC build time.
15080 nvptx*-*-*)
15081 # NVPTX does not support Pthreads, has its own code replacement.
15082 libgomp_use_pthreads=no
15083 # NVPTX is an accelerator-only target
15084 libgomp_offloaded_only=yes
15087 # Check to see if -pthread or -lpthread is needed. Prefer the former.
15088 # In case the pthread.h system header is not found, this test will fail.
15089 CFLAGS="$CFLAGS -pthread"
15090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15091 /* end confdefs.h. */
15092 #include <pthread.h>
15093 void *g(void *d) { return NULL; }
15095 main ()
15097 pthread_t t; pthread_create(&t,NULL,g,NULL);
15099 return 0;
15101 _ACEOF
15102 if ac_fn_c_try_link "$LINENO"; then :
15103 XPCFLAGS=" -Wc,-pthread"
15104 else
15105 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
15106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15107 /* end confdefs.h. */
15108 #include <pthread.h>
15109 void *g(void *d) { return NULL; }
15111 main ()
15113 pthread_t t; pthread_create(&t,NULL,g,NULL);
15115 return 0;
15117 _ACEOF
15118 if ac_fn_c_try_link "$LINENO"; then :
15120 else
15121 as_fn_error "Pthreads are required to build libgomp" "$LINENO" 5
15123 rm -f core conftest.err conftest.$ac_objext \
15124 conftest$ac_exeext conftest.$ac_ext
15126 rm -f core conftest.err conftest.$ac_objext \
15127 conftest$ac_exeext conftest.$ac_ext
15128 esac
15130 if test x$libgomp_use_pthreads != xno; then
15132 $as_echo "#define LIBGOMP_USE_PTHREADS 1" >>confdefs.h
15136 if test x$libgomp_offloaded_only = xyes; then
15138 $as_echo "#define LIBGOMP_OFFLOADED_ONLY 1" >>confdefs.h
15142 # Plugins for offload execution, configure.ac fragment. -*- mode: autoconf -*-
15144 # Copyright (C) 2014-2018 Free Software Foundation, Inc.
15146 # Contributed by Mentor Embedded.
15148 # This file is part of the GNU Offloading and Multi Processing Library
15149 # (libgomp).
15151 # Libgomp is free software; you can redistribute it and/or modify it
15152 # under the terms of the GNU General Public License as published by
15153 # the Free Software Foundation; either version 3, or (at your option)
15154 # any later version.
15156 # Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY
15157 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15158 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15159 # more details.
15161 # Under Section 7 of GPL version 3, you are granted additional
15162 # permissions described in the GCC Runtime Library Exception, version
15163 # 3.1, as published by the Free Software Foundation.
15165 # You should have received a copy of the GNU General Public License and
15166 # a copy of the GCC Runtime Library Exception along with this program;
15167 # see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
15168 # <http://www.gnu.org/licenses/>.
15170 offload_targets=
15172 plugin_support=yes
15173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
15174 $as_echo_n "checking for dlsym in -ldl... " >&6; }
15175 if test "${ac_cv_lib_dl_dlsym+set}" = set; then :
15176 $as_echo_n "(cached) " >&6
15177 else
15178 ac_check_lib_save_LIBS=$LIBS
15179 LIBS="-ldl $LIBS"
15180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15181 /* end confdefs.h. */
15183 /* Override any GCC internal prototype to avoid an error.
15184 Use char because int might match the return type of a GCC
15185 builtin and then its argument prototype would still apply. */
15186 #ifdef __cplusplus
15187 extern "C"
15188 #endif
15189 char dlsym ();
15191 main ()
15193 return dlsym ();
15195 return 0;
15197 _ACEOF
15198 if ac_fn_c_try_link "$LINENO"; then :
15199 ac_cv_lib_dl_dlsym=yes
15200 else
15201 ac_cv_lib_dl_dlsym=no
15203 rm -f core conftest.err conftest.$ac_objext \
15204 conftest$ac_exeext conftest.$ac_ext
15205 LIBS=$ac_check_lib_save_LIBS
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
15208 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
15209 if test "x$ac_cv_lib_dl_dlsym" = x""yes; then :
15210 cat >>confdefs.h <<_ACEOF
15211 #define HAVE_LIBDL 1
15212 _ACEOF
15214 LIBS="-ldl $LIBS"
15216 else
15217 plugin_support=no
15220 if test x"$plugin_support" = xyes; then
15222 $as_echo "#define PLUGIN_SUPPORT 1" >>confdefs.h
15224 elif test "x${enable_offload_targets-no}" != xno; then
15225 as_fn_error "Can't support offloading without support for plugins" "$LINENO" 5
15230 for ac_header in $ac_header_list
15231 do :
15232 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15233 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15235 eval as_val=\$$as_ac_Header
15236 if test "x$as_val" = x""yes; then :
15237 cat >>confdefs.h <<_ACEOF
15238 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15239 _ACEOF
15243 done
15251 for ac_func in $ac_func_list
15252 do :
15253 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15254 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15255 eval as_val=\$$as_ac_var
15256 if test "x$as_val" = x""yes; then :
15257 cat >>confdefs.h <<_ACEOF
15258 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15259 _ACEOF
15262 done
15279 # Look for the CUDA driver package.
15280 CUDA_DRIVER_INCLUDE=
15281 CUDA_DRIVER_LIB=
15284 CUDA_DRIVER_CPPFLAGS=
15285 CUDA_DRIVER_LDFLAGS=
15287 # Check whether --with-cuda-driver was given.
15288 if test "${with_cuda_driver+set}" = set; then :
15289 withval=$with_cuda_driver;
15293 # Check whether --with-cuda-driver-include was given.
15294 if test "${with_cuda_driver_include+set}" = set; then :
15295 withval=$with_cuda_driver_include;
15299 # Check whether --with-cuda-driver-lib was given.
15300 if test "${with_cuda_driver_lib+set}" = set; then :
15301 withval=$with_cuda_driver_lib;
15304 case "x$with_cuda_driver" in
15305 x | xno) ;;
15306 *) CUDA_DRIVER_INCLUDE=$with_cuda_driver/include
15307 CUDA_DRIVER_LIB=$with_cuda_driver/lib
15309 esac
15310 if test "x$with_cuda_driver_include" != x; then
15311 CUDA_DRIVER_INCLUDE=$with_cuda_driver_include
15313 if test "x$with_cuda_driver_lib" != x; then
15314 CUDA_DRIVER_LIB=$with_cuda_driver_lib
15316 if test "x$CUDA_DRIVER_INCLUDE" != x; then
15317 CUDA_DRIVER_CPPFLAGS=-I$CUDA_DRIVER_INCLUDE
15319 if test "x$CUDA_DRIVER_LIB" != x; then
15320 CUDA_DRIVER_LDFLAGS=-L$CUDA_DRIVER_LIB
15323 PLUGIN_NVPTX=0
15324 PLUGIN_NVPTX_CPPFLAGS=
15325 PLUGIN_NVPTX_LDFLAGS=
15326 PLUGIN_NVPTX_LIBS=
15327 PLUGIN_NVPTX_DYNAMIC=0
15333 # Look for HSA run-time, its includes and libraries
15335 HSA_RUNTIME_INCLUDE=
15336 HSA_RUNTIME_LIB=
15339 HSA_RUNTIME_CPPFLAGS=
15340 HSA_RUNTIME_LDFLAGS=
15343 # Check whether --with-hsa-runtime was given.
15344 if test "${with_hsa_runtime+set}" = set; then :
15345 withval=$with_hsa_runtime;
15349 # Check whether --with-hsa-runtime-include was given.
15350 if test "${with_hsa_runtime_include+set}" = set; then :
15351 withval=$with_hsa_runtime_include;
15355 # Check whether --with-hsa-runtime-lib was given.
15356 if test "${with_hsa_runtime_lib+set}" = set; then :
15357 withval=$with_hsa_runtime_lib;
15360 if test "x$with_hsa_runtime" != x; then
15361 HSA_RUNTIME_INCLUDE=$with_hsa_runtime/include
15362 HSA_RUNTIME_LIB=$with_hsa_runtime/lib
15364 if test "x$with_hsa_runtime_include" != x; then
15365 HSA_RUNTIME_INCLUDE=$with_hsa_runtime_include
15367 if test "x$with_hsa_runtime_lib" != x; then
15368 HSA_RUNTIME_LIB=$with_hsa_runtime_lib
15370 if test "x$HSA_RUNTIME_INCLUDE" != x; then
15371 HSA_RUNTIME_CPPFLAGS=-I$HSA_RUNTIME_INCLUDE
15373 if test "x$HSA_RUNTIME_LIB" != x; then
15374 HSA_RUNTIME_LDFLAGS=-L$HSA_RUNTIME_LIB
15377 PLUGIN_HSA=0
15378 PLUGIN_HSA_CPPFLAGS=
15379 PLUGIN_HSA_LDFLAGS=
15380 PLUGIN_HSA_LIBS=
15386 # Get offload targets and path to install tree of offloading compiler.
15387 offload_additional_options=
15388 offload_additional_lib_paths=
15391 if test x"$enable_offload_targets" != x; then
15392 for tgt in `echo $enable_offload_targets | sed -e 's#,# #g'`; do
15393 tgt_dir=`echo $tgt | grep '=' | sed 's/.*=//'`
15394 tgt=`echo $tgt | sed 's/=.*//'`
15395 tgt_name=
15396 case $tgt in
15397 *-intelmic-* | *-intelmicemul-*)
15398 tgt_name=intelmic
15400 nvptx*)
15401 tgt_name=nvptx
15402 PLUGIN_NVPTX=$tgt
15403 PLUGIN_NVPTX_CPPFLAGS=$CUDA_DRIVER_CPPFLAGS
15404 PLUGIN_NVPTX_LDFLAGS=$CUDA_DRIVER_LDFLAGS
15405 PLUGIN_NVPTX_LIBS='-lcuda'
15407 PLUGIN_NVPTX_save_CPPFLAGS=$CPPFLAGS
15408 CPPFLAGS="$PLUGIN_NVPTX_CPPFLAGS $CPPFLAGS"
15409 PLUGIN_NVPTX_save_LDFLAGS=$LDFLAGS
15410 LDFLAGS="$PLUGIN_NVPTX_LDFLAGS $LDFLAGS"
15411 PLUGIN_NVPTX_save_LIBS=$LIBS
15412 LIBS="$PLUGIN_NVPTX_LIBS $LIBS"
15413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15414 /* end confdefs.h. */
15415 #include "cuda.h"
15417 main ()
15419 CUresult r = cuCtxPushCurrent (NULL);
15421 return 0;
15423 _ACEOF
15424 if ac_fn_c_try_link "$LINENO"; then :
15425 PLUGIN_NVPTX=1
15427 rm -f core conftest.err conftest.$ac_objext \
15428 conftest$ac_exeext conftest.$ac_ext
15429 CPPFLAGS=$PLUGIN_NVPTX_save_CPPFLAGS
15430 LDFLAGS=$PLUGIN_NVPTX_save_LDFLAGS
15431 LIBS=$PLUGIN_NVPTX_save_LIBS
15432 case $PLUGIN_NVPTX in
15433 nvptx*)
15434 if test "x$CUDA_DRIVER_INCLUDE" = x \
15435 && test "x$CUDA_DRIVER_LIB" = x; then
15436 PLUGIN_NVPTX=1
15437 PLUGIN_NVPTX_CPPFLAGS='-I$(srcdir)/plugin/cuda'
15438 PLUGIN_NVPTX_LIBS='-ldl'
15439 PLUGIN_NVPTX_DYNAMIC=1
15440 else
15441 PLUGIN_NVPTX=0
15442 as_fn_error "CUDA driver package required for nvptx support" "$LINENO" 5
15445 esac
15447 hsa*)
15448 case "${target}" in
15449 x86_64-*-*)
15450 case " ${CC} ${CFLAGS} " in
15451 *" -m32 "*)
15452 PLUGIN_HSA=0
15455 tgt_name=hsa
15456 PLUGIN_HSA=$tgt
15457 PLUGIN_HSA_CPPFLAGS=$HSA_RUNTIME_CPPFLAGS
15458 PLUGIN_HSA_LDFLAGS="$HSA_RUNTIME_LDFLAGS"
15459 PLUGIN_HSA_LIBS="-ldl"
15461 PLUGIN_HSA_save_CPPFLAGS=$CPPFLAGS
15462 CPPFLAGS="$PLUGIN_HSA_CPPFLAGS $CPPFLAGS"
15463 PLUGIN_HSA_save_LDFLAGS=$LDFLAGS
15464 LDFLAGS="$PLUGIN_HSA_LDFLAGS $LDFLAGS"
15465 PLUGIN_HSA_save_LIBS=$LIBS
15466 LIBS="$PLUGIN_HSA_LIBS $LIBS"
15468 PLUGIN_HSA=1
15469 CPPFLAGS=$PLUGIN_HSA_save_CPPFLAGS
15470 LDFLAGS=$PLUGIN_HSA_save_LDFLAGS
15471 LIBS=$PLUGIN_HSA_save_LIBS
15472 case $PLUGIN_HSA in
15473 hsa*)
15474 HSA_PLUGIN=0
15475 as_fn_error "HSA run-time package required for HSA support" "$LINENO" 5
15477 esac
15479 esac
15481 *-*-*)
15482 PLUGIN_HSA=0
15484 esac
15487 as_fn_error "unknown offload target specified" "$LINENO" 5
15489 esac
15490 if test x"$tgt_name" = x; then
15491 # Don't configure libgomp for this offloading target if we don't build
15492 # the corresponding plugin.
15493 continue
15494 elif test x"$offload_targets" = x; then
15495 offload_targets=$tgt_name
15496 else
15497 offload_targets=$offload_targets,$tgt_name
15499 if test "$tgt_name" = hsa; then
15500 # Offloading compilation is all handled by the target compiler.
15502 elif test x"$tgt_dir" != x; then
15503 offload_additional_options="$offload_additional_options -B$tgt_dir/libexec/gcc/\$(target_alias)/\$(gcc_version) -B$tgt_dir/bin"
15504 offload_additional_lib_paths="$offload_additional_lib_paths:$tgt_dir/lib64:$tgt_dir/lib:$tgt_dir/lib32"
15505 else
15506 offload_additional_options="$offload_additional_options -B\$(libexecdir)/gcc/\$(target_alias)/\$(gcc_version) -B\$(bindir)"
15507 offload_additional_lib_paths="$offload_additional_lib_paths:$toolexeclibdir"
15509 done
15512 cat >>confdefs.h <<_ACEOF
15513 #define OFFLOAD_TARGETS "$offload_targets"
15514 _ACEOF
15516 if test $PLUGIN_NVPTX = 1; then
15517 PLUGIN_NVPTX_TRUE=
15518 PLUGIN_NVPTX_FALSE='#'
15519 else
15520 PLUGIN_NVPTX_TRUE='#'
15521 PLUGIN_NVPTX_FALSE=
15525 cat >>confdefs.h <<_ACEOF
15526 #define PLUGIN_NVPTX $PLUGIN_NVPTX
15527 _ACEOF
15530 cat >>confdefs.h <<_ACEOF
15531 #define PLUGIN_NVPTX_DYNAMIC $PLUGIN_NVPTX_DYNAMIC
15532 _ACEOF
15534 if test $PLUGIN_HSA = 1; then
15535 PLUGIN_HSA_TRUE=
15536 PLUGIN_HSA_FALSE='#'
15537 else
15538 PLUGIN_HSA_TRUE='#'
15539 PLUGIN_HSA_FALSE=
15543 cat >>confdefs.h <<_ACEOF
15544 #define PLUGIN_HSA $PLUGIN_HSA
15545 _ACEOF
15548 if test "$HSA_RUNTIME_LIB" != ""; then
15549 HSA_RUNTIME_LIB="$HSA_RUNTIME_LIB/"
15553 cat >>confdefs.h <<_ACEOF
15554 #define HSA_RUNTIME_LIB "$HSA_RUNTIME_LIB"
15555 _ACEOF
15559 # Check for functions needed.
15560 for ac_func in getloadavg clock_gettime strtoull
15561 do :
15562 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15563 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15564 eval as_val=\$$as_ac_var
15565 if test "x$as_val" = x""yes; then :
15566 cat >>confdefs.h <<_ACEOF
15567 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15568 _ACEOF
15571 done
15574 # Check for broken semaphore implementation on darwin.
15575 # sem_init returns: sem_init error: Function not implemented.
15576 case "$host" in
15577 *-darwin*)
15579 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
15582 esac
15584 # RTEMS specific checks
15585 case "$host" in
15586 *-*-rtems*)
15587 ac_fn_c_check_type "$LINENO" "struct _Mutex_Control" "ac_cv_type_struct__Mutex_Control" "#include <sys/lock.h>
15589 if test "x$ac_cv_type_struct__Mutex_Control" = x""yes; then :
15591 cat >>confdefs.h <<_ACEOF
15592 #define HAVE_STRUCT__MUTEX_CONTROL 1
15593 _ACEOF
15599 esac
15601 # Check whether --enable-linux-futex was given.
15602 if test "${enable_linux_futex+set}" = set; then :
15603 enableval=$enable_linux_futex;
15604 case "$enableval" in
15605 yes|no|default) ;;
15606 *) as_fn_error "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
15607 esac
15609 else
15610 enable_linux_futex=default
15614 case "$target" in
15615 *-linux*)
15616 case "$enable_linux_futex" in
15617 default)
15618 # If headers don't have gettid/futex syscalls definition, then
15619 # default to no, otherwise there will be compile time failures.
15620 # Otherwise, default to yes. If we don't detect we are
15621 # compiled/linked against NPTL and not cross-compiling, check
15622 # if programs are run by default against NPTL and if not, issue
15623 # a warning.
15624 enable_linux_futex=no
15625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15626 /* end confdefs.h. */
15627 #include <sys/syscall.h>
15628 int lk;
15630 main ()
15632 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15634 return 0;
15636 _ACEOF
15637 if ac_fn_c_try_link "$LINENO"; then :
15638 save_LIBS="$LIBS"
15639 LIBS="-lpthread $LIBS"
15640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15641 /* end confdefs.h. */
15642 #ifndef _GNU_SOURCE
15643 #define _GNU_SOURCE 1
15644 #endif
15645 #include <pthread.h>
15646 pthread_t th; void *status;
15648 main ()
15650 pthread_tryjoin_np (th, &status);
15652 return 0;
15654 _ACEOF
15655 if ac_fn_c_try_link "$LINENO"; then :
15656 enable_linux_futex=yes
15657 else
15658 if test x$cross_compiling = xno; then
15659 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
15660 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
15661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
15662 If so, please configure with --disable-linux-futex" >&5
15663 $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
15664 If so, please configure with --disable-linux-futex" >&2;}
15667 enable_linux_futex=yes
15669 rm -f core conftest.err conftest.$ac_objext \
15670 conftest$ac_exeext conftest.$ac_ext
15671 LIBS="$save_LIBS"
15673 rm -f core conftest.err conftest.$ac_objext \
15674 conftest$ac_exeext conftest.$ac_ext
15676 yes)
15677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15678 /* end confdefs.h. */
15679 #include <sys/syscall.h>
15680 int lk;
15682 main ()
15684 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15686 return 0;
15688 _ACEOF
15689 if ac_fn_c_try_link "$LINENO"; then :
15691 else
15692 as_fn_error "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
15694 rm -f core conftest.err conftest.$ac_objext \
15695 conftest$ac_exeext conftest.$ac_ext
15697 esac
15700 enable_linux_futex=no
15702 esac
15703 if test x$enable_linux_futex = xyes; then
15708 # Check for pthread_{,attr_}[sg]etaffinity_np.
15709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15710 /* end confdefs.h. */
15711 #define _GNU_SOURCE
15712 #include <pthread.h>
15714 main ()
15716 cpu_set_t cpuset;
15717 pthread_attr_t attr;
15718 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15719 if (CPU_ISSET (0, &cpuset))
15720 CPU_SET (1, &cpuset);
15721 else
15722 CPU_ZERO (&cpuset);
15723 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15724 pthread_attr_init (&attr);
15725 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15726 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15728 return 0;
15730 _ACEOF
15731 if ac_fn_c_try_link "$LINENO"; then :
15733 $as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h
15736 rm -f core conftest.err conftest.$ac_objext \
15737 conftest$ac_exeext conftest.$ac_ext
15739 # At least for glibc, clock_gettime is in librt. But don't pull that
15740 # in if it still doesn't give us the function we want.
15741 if test $ac_cv_func_clock_gettime = no; then
15742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
15743 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
15744 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
15745 $as_echo_n "(cached) " >&6
15746 else
15747 ac_check_lib_save_LIBS=$LIBS
15748 LIBS="-lrt $LIBS"
15749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15750 /* end confdefs.h. */
15752 /* Override any GCC internal prototype to avoid an error.
15753 Use char because int might match the return type of a GCC
15754 builtin and then its argument prototype would still apply. */
15755 #ifdef __cplusplus
15756 extern "C"
15757 #endif
15758 char clock_gettime ();
15760 main ()
15762 return clock_gettime ();
15764 return 0;
15766 _ACEOF
15767 if ac_fn_c_try_link "$LINENO"; then :
15768 ac_cv_lib_rt_clock_gettime=yes
15769 else
15770 ac_cv_lib_rt_clock_gettime=no
15772 rm -f core conftest.err conftest.$ac_objext \
15773 conftest$ac_exeext conftest.$ac_ext
15774 LIBS=$ac_check_lib_save_LIBS
15776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
15777 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15778 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
15779 LIBS="-lrt $LIBS"
15781 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
15787 # See if we support thread-local storage.
15790 # Check whether --enable-tls was given.
15791 if test "${enable_tls+set}" = set; then :
15792 enableval=$enable_tls;
15793 case "$enableval" in
15794 yes|no) ;;
15795 *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
15796 esac
15798 else
15799 enable_tls=yes
15803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
15804 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
15805 if test "${gcc_cv_have_tls+set}" = set; then :
15806 $as_echo_n "(cached) " >&6
15807 else
15809 if test "$cross_compiling" = yes; then :
15810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15811 /* end confdefs.h. */
15812 __thread int a; int b; int main() { return a = b; }
15813 _ACEOF
15814 if ac_fn_c_try_link "$LINENO"; then :
15815 chktls_save_LDFLAGS="$LDFLAGS"
15816 case $host in
15817 *-*-linux*)
15818 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
15820 esac
15821 chktls_save_CFLAGS="$CFLAGS"
15822 CFLAGS="-fPIC $CFLAGS"
15823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15824 /* end confdefs.h. */
15825 int f() { return 0; }
15826 _ACEOF
15827 if ac_fn_c_try_link "$LINENO"; then :
15828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15829 /* end confdefs.h. */
15830 __thread int a; int b; int f() { return a = b; }
15831 _ACEOF
15832 if ac_fn_c_try_link "$LINENO"; then :
15833 gcc_cv_have_tls=yes
15834 else
15835 gcc_cv_have_tls=no
15837 rm -f core conftest.err conftest.$ac_objext \
15838 conftest$ac_exeext conftest.$ac_ext
15839 else
15840 gcc_cv_have_tls=yes
15842 rm -f core conftest.err conftest.$ac_objext \
15843 conftest$ac_exeext conftest.$ac_ext
15844 CFLAGS="$chktls_save_CFLAGS"
15845 LDFLAGS="$chktls_save_LDFLAGS"
15846 else
15847 gcc_cv_have_tls=no
15849 rm -f core conftest.err conftest.$ac_objext \
15850 conftest$ac_exeext conftest.$ac_ext
15853 else
15854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15855 /* end confdefs.h. */
15856 __thread int a; int b; int main() { return a = b; }
15857 _ACEOF
15858 if ac_fn_c_try_run "$LINENO"; then :
15859 chktls_save_LDFLAGS="$LDFLAGS"
15860 LDFLAGS="-static $LDFLAGS"
15861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15862 /* end confdefs.h. */
15863 int main() { return 0; }
15864 _ACEOF
15865 if ac_fn_c_try_link "$LINENO"; then :
15866 if test "$cross_compiling" = yes; then :
15867 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15868 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15869 as_fn_error "cannot run test program while cross compiling
15870 See \`config.log' for more details." "$LINENO" 5; }
15871 else
15872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15873 /* end confdefs.h. */
15874 __thread int a; int b; int main() { return a = b; }
15875 _ACEOF
15876 if ac_fn_c_try_run "$LINENO"; then :
15877 gcc_cv_have_tls=yes
15878 else
15879 gcc_cv_have_tls=no
15881 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15882 conftest.$ac_objext conftest.beam conftest.$ac_ext
15885 else
15886 gcc_cv_have_tls=yes
15888 rm -f core conftest.err conftest.$ac_objext \
15889 conftest$ac_exeext conftest.$ac_ext
15890 LDFLAGS="$chktls_save_LDFLAGS"
15891 if test $gcc_cv_have_tls = yes; then
15892 chktls_save_CFLAGS="$CFLAGS"
15893 thread_CFLAGS=failed
15894 for flag in '' '-pthread' '-lpthread'; do
15895 CFLAGS="$flag $chktls_save_CFLAGS"
15896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15897 /* end confdefs.h. */
15898 #include <pthread.h>
15899 void *g(void *d) { return NULL; }
15901 main ()
15903 pthread_t t; pthread_create(&t,NULL,g,NULL);
15905 return 0;
15907 _ACEOF
15908 if ac_fn_c_try_link "$LINENO"; then :
15909 thread_CFLAGS="$flag"
15911 rm -f core conftest.err conftest.$ac_objext \
15912 conftest$ac_exeext conftest.$ac_ext
15913 if test "X$thread_CFLAGS" != Xfailed; then
15914 break
15916 done
15917 CFLAGS="$chktls_save_CFLAGS"
15918 if test "X$thread_CFLAGS" != Xfailed; then
15919 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
15920 if test "$cross_compiling" = yes; then :
15921 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15922 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15923 as_fn_error "cannot run test program while cross compiling
15924 See \`config.log' for more details." "$LINENO" 5; }
15925 else
15926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15927 /* end confdefs.h. */
15928 #include <pthread.h>
15929 __thread int a;
15930 static int *volatile a_in_other_thread;
15931 static void *
15932 thread_func (void *arg)
15934 a_in_other_thread = &a;
15935 return (void *)0;
15938 main ()
15940 pthread_t thread;
15941 void *thread_retval;
15942 int *volatile a_in_main_thread;
15943 a_in_main_thread = &a;
15944 if (pthread_create (&thread, (pthread_attr_t *)0,
15945 thread_func, (void *)0))
15946 return 0;
15947 if (pthread_join (thread, &thread_retval))
15948 return 0;
15949 return (a_in_other_thread == a_in_main_thread);
15951 return 0;
15953 _ACEOF
15954 if ac_fn_c_try_run "$LINENO"; then :
15955 gcc_cv_have_tls=yes
15956 else
15957 gcc_cv_have_tls=no
15959 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15960 conftest.$ac_objext conftest.beam conftest.$ac_ext
15963 CFLAGS="$chktls_save_CFLAGS"
15966 else
15967 gcc_cv_have_tls=no
15969 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15970 conftest.$ac_objext conftest.beam conftest.$ac_ext
15974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
15975 $as_echo "$gcc_cv_have_tls" >&6; }
15976 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
15978 $as_echo "#define HAVE_TLS 1" >>confdefs.h
15982 # See if we have emulated thread-local storage.
15984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the thread-local storage support is from emutls" >&5
15985 $as_echo_n "checking whether the thread-local storage support is from emutls... " >&6; }
15986 if test "${gcc_cv_use_emutls+set}" = set; then :
15987 $as_echo_n "(cached) " >&6
15988 else
15990 gcc_cv_use_emutls=no
15991 echo '__thread int a; int b; int main() { return a = b; }' > conftest.c
15992 if { ac_try='${CC-cc} -Werror -S -o conftest.s conftest.c 1>&5'
15993 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15994 (eval $ac_try) 2>&5
15995 ac_status=$?
15996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15997 test $ac_status = 0; }; }; then
15998 if grep __emutls_get_address conftest.s > /dev/null; then
15999 gcc_cv_use_emutls=yes
16002 rm -f conftest.*
16005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_use_emutls" >&5
16006 $as_echo "$gcc_cv_use_emutls" >&6; }
16007 if test "$gcc_cv_use_emutls" = "yes" ; then
16009 $as_echo "#define USE_EMUTLS 1" >>confdefs.h
16013 # See what sort of export controls are available.
16015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
16016 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
16017 if test "${libgomp_cv_have_attribute_visibility+set}" = set; then :
16018 $as_echo_n "(cached) " >&6
16019 else
16021 save_CFLAGS="$CFLAGS"
16022 CFLAGS="$CFLAGS -Werror"
16023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16024 /* end confdefs.h. */
16025 void __attribute__((visibility("hidden"))) foo(void) { }
16027 main ()
16031 return 0;
16033 _ACEOF
16034 if ac_fn_c_try_compile "$LINENO"; then :
16035 libgomp_cv_have_attribute_visibility=yes
16036 else
16037 libgomp_cv_have_attribute_visibility=no
16039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16040 CFLAGS="$save_CFLAGS"
16042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_visibility" >&5
16043 $as_echo "$libgomp_cv_have_attribute_visibility" >&6; }
16044 if test $libgomp_cv_have_attribute_visibility = yes; then
16046 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
16050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
16051 $as_echo_n "checking whether the target supports dllexport... " >&6; }
16052 if test "${libgomp_cv_have_attribute_dllexport+set}" = set; then :
16053 $as_echo_n "(cached) " >&6
16054 else
16056 save_CFLAGS="$CFLAGS"
16057 CFLAGS="$CFLAGS -Werror"
16058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16059 /* end confdefs.h. */
16060 void __attribute__((dllexport)) foo(void) { }
16062 main ()
16066 return 0;
16068 _ACEOF
16069 if ac_fn_c_try_compile "$LINENO"; then :
16070 libgomp_cv_have_attribute_dllexport=yes
16071 else
16072 libgomp_cv_have_attribute_dllexport=no
16074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16075 CFLAGS="$save_CFLAGS"
16077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_dllexport" >&5
16078 $as_echo "$libgomp_cv_have_attribute_dllexport" >&6; }
16079 if test $libgomp_cv_have_attribute_dllexport = yes; then
16081 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
16085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
16086 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
16087 if test "${libgomp_cv_have_attribute_alias+set}" = set; then :
16088 $as_echo_n "(cached) " >&6
16089 else
16091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16092 /* end confdefs.h. */
16094 void foo(void) { }
16095 extern void bar(void) __attribute__((alias("foo")));
16097 main ()
16099 bar();
16101 return 0;
16103 _ACEOF
16104 if ac_fn_c_try_link "$LINENO"; then :
16105 libgomp_cv_have_attribute_alias=yes
16106 else
16107 libgomp_cv_have_attribute_alias=no
16109 rm -f core conftest.err conftest.$ac_objext \
16110 conftest$ac_exeext conftest.$ac_ext
16112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_alias" >&5
16113 $as_echo "$libgomp_cv_have_attribute_alias" >&6; }
16114 if test $libgomp_cv_have_attribute_alias = yes; then
16116 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
16121 # Check whether --with-gnu-ld was given.
16122 if test "${with_gnu_ld+set}" = set; then :
16123 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16124 else
16125 with_gnu_ld=no
16128 ac_prog=ld
16129 if test "$GCC" = yes; then
16130 # Check if gcc -print-prog-name=ld gives a path.
16131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16132 $as_echo_n "checking for ld used by $CC... " >&6; }
16133 case $host in
16134 *-*-mingw*)
16135 # gcc leaves a trailing carriage return which upsets mingw
16136 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16138 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16139 esac
16140 case $ac_prog in
16141 # Accept absolute paths.
16142 [\\/]* | ?:[\\/]*)
16143 re_direlt='/[^/][^/]*/\.\./'
16144 # Canonicalize the pathname of ld
16145 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16146 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16147 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16148 done
16149 test -z "$LD" && LD="$ac_prog"
16152 # If it fails, then pretend we aren't using GCC.
16153 ac_prog=ld
16156 # If it is relative, then search for the first ld in PATH.
16157 with_gnu_ld=unknown
16159 esac
16160 elif test "$with_gnu_ld" = yes; then
16161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16162 $as_echo_n "checking for GNU ld... " >&6; }
16163 else
16164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16165 $as_echo_n "checking for non-GNU ld... " >&6; }
16167 if test "${lt_cv_path_LD+set}" = set; then :
16168 $as_echo_n "(cached) " >&6
16169 else
16170 if test -z "$LD"; then
16171 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16172 for ac_dir in $PATH; do
16173 IFS="$lt_save_ifs"
16174 test -z "$ac_dir" && ac_dir=.
16175 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16176 lt_cv_path_LD="$ac_dir/$ac_prog"
16177 # Check to see if the program is GNU ld. I'd rather use --version,
16178 # but apparently some variants of GNU ld only accept -v.
16179 # Break only if it was the GNU/non-GNU ld that we prefer.
16180 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16181 *GNU* | *'with BFD'*)
16182 test "$with_gnu_ld" != no && break
16185 test "$with_gnu_ld" != yes && break
16187 esac
16189 done
16190 IFS="$lt_save_ifs"
16191 else
16192 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16196 LD="$lt_cv_path_LD"
16197 if test -n "$LD"; then
16198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16199 $as_echo "$LD" >&6; }
16200 else
16201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16202 $as_echo "no" >&6; }
16204 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
16205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16206 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16207 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
16208 $as_echo_n "(cached) " >&6
16209 else
16210 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16211 case `$LD -v 2>&1 </dev/null` in
16212 *GNU* | *'with BFD'*)
16213 lt_cv_prog_gnu_ld=yes
16216 lt_cv_prog_gnu_ld=no
16218 esac
16220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16221 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16222 with_gnu_ld=$lt_cv_prog_gnu_ld
16230 # If we're not using GNU ld, then there's no point in even trying these
16231 # tests. Check for that first. We should have already tested for gld
16232 # by now (in libtool), but require it now just to be safe...
16233 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
16234 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
16238 # The name set by libtool depends on the version of libtool. Shame on us
16239 # for depending on an impl detail, but c'est la vie. Older versions used
16240 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
16241 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
16242 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
16243 # set (hence we're using an older libtool), then set it.
16244 if test x${with_gnu_ld+set} != xset; then
16245 if test x${ac_cv_prog_gnu_ld+set} != xset; then
16246 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
16247 with_gnu_ld=no
16248 else
16249 with_gnu_ld=$ac_cv_prog_gnu_ld
16253 # Start by getting the version number. I think the libtool test already
16254 # does some of this, but throws away the result.
16255 libgomp_ld_is_gold=no
16256 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
16257 libgomp_ld_is_gold=yes
16260 ldver=`$LD --version 2>/dev/null |
16261 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'`
16263 libgomp_gnu_ld_version=`echo $ldver | \
16264 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
16266 # Set --gc-sections.
16267 if test "$with_gnu_ld" = "notbroken"; then
16268 # GNU ld it is! Joy and bunny rabbits!
16270 # All these tests are for C++; save the language and the compiler flags.
16271 # Need to do this so that g++ won't try to link in libstdc++
16272 ac_test_CFLAGS="${CFLAGS+set}"
16273 ac_save_CFLAGS="$CFLAGS"
16274 CFLAGS='-x c++ -Wl,--gc-sections'
16276 # Check for -Wl,--gc-sections
16277 # XXX This test is broken at the moment, as symbols required for linking
16278 # are now in libsupc++ (not built yet). In addition, this test has
16279 # cored on solaris in the past. In addition, --gc-sections doesn't
16280 # really work at the moment (keeps on discarding used sections, first
16281 # .eh_frame and now some of the glibc sections for iconv).
16282 # Bzzzzt. Thanks for playing, maybe next time.
16283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
16284 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
16285 if test "$cross_compiling" = yes; then :
16286 ac_sectionLDflags=yes
16287 else
16288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16289 /* end confdefs.h. */
16291 int main(void)
16293 try { throw 1; }
16294 catch (...) { };
16295 return 0;
16298 _ACEOF
16299 if ac_fn_c_try_run "$LINENO"; then :
16300 ac_sectionLDflags=yes
16301 else
16302 ac_sectionLDflags=no
16304 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16305 conftest.$ac_objext conftest.beam conftest.$ac_ext
16308 if test "$ac_test_CFLAGS" = set; then
16309 CFLAGS="$ac_save_CFLAGS"
16310 else
16311 # this is the suspicious part
16312 CFLAGS=''
16314 if test "$ac_sectionLDflags" = "yes"; then
16315 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
16317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
16318 $as_echo "$ac_sectionLDflags" >&6; }
16321 # Set linker optimization flags.
16322 if test x"$with_gnu_ld" = x"yes"; then
16323 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
16331 # Check whether --enable-symvers was given.
16332 if test "${enable_symvers+set}" = set; then :
16333 enableval=$enable_symvers;
16334 case "$enableval" in
16335 yes|no|gnu*|sun) ;;
16336 *) as_fn_error "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
16337 esac
16339 else
16340 enable_symvers=yes
16345 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
16346 # don't know enough about $LD to do tricks...
16349 # Turn a 'yes' into a suitable default.
16350 if test x$enable_symvers = xyes ; then
16351 # FIXME The following test is too strict, in theory.
16352 if test $enable_shared = no || test "x$LD" = x; then
16353 enable_symvers=no
16354 else
16355 if test $with_gnu_ld = yes ; then
16356 enable_symvers=gnu
16357 else
16358 case ${target_os} in
16359 # Sun symbol versioning exists since Solaris 2.5.
16360 solaris2.[5-9]* | solaris2.1[0-9]*)
16361 enable_symvers=sun ;;
16363 enable_symvers=no ;;
16364 esac
16369 # Check if 'sun' was requested on non-Solaris 2 platforms.
16370 if test x$enable_symvers = xsun ; then
16371 case ${target_os} in
16372 solaris2*)
16373 # All fine.
16376 # Unlikely to work.
16377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
16378 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
16379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
16380 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
16381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16382 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16383 enable_symvers=no
16385 esac
16388 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
16389 if test $enable_symvers != no; then
16390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
16391 $as_echo_n "checking for shared libgcc... " >&6; }
16392 ac_save_CFLAGS="$CFLAGS"
16393 CFLAGS=' -lgcc_s'
16394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16395 /* end confdefs.h. */
16398 main ()
16400 return 0;
16402 return 0;
16404 _ACEOF
16405 if ac_fn_c_try_link "$LINENO"; then :
16406 libgomp_shared_libgcc=yes
16407 else
16408 libgomp_shared_libgcc=no
16410 rm -f core conftest.err conftest.$ac_objext \
16411 conftest$ac_exeext conftest.$ac_ext
16412 CFLAGS="$ac_save_CFLAGS"
16413 if test $libgomp_shared_libgcc = no; then
16414 cat > conftest.c <<EOF
16415 int main (void) { return 0; }
16417 libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
16418 -shared -shared-libgcc -o conftest.so \
16419 conftest.c -v 2>&1 >/dev/null \
16420 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
16421 rm -f conftest.c conftest.so
16422 if test x${libgomp_libgcc_s_suffix+set} = xset; then
16423 CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
16424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16425 /* end confdefs.h. */
16428 main ()
16430 return 0;
16432 return 0;
16434 _ACEOF
16435 if ac_fn_c_try_link "$LINENO"; then :
16436 libgomp_shared_libgcc=yes
16438 rm -f core conftest.err conftest.$ac_objext \
16439 conftest$ac_exeext conftest.$ac_ext
16440 CFLAGS="$ac_save_CFLAGS"
16443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_shared_libgcc" >&5
16444 $as_echo "$libgomp_shared_libgcc" >&6; }
16447 # For GNU ld, we need at least this version. The format is described in
16448 # LIBGOMP_CHECK_LINKER_FEATURES above.
16449 libgomp_min_gnu_ld_version=21400
16450 # XXXXXXXXXXX libgomp_gnu_ld_version=21390
16452 # Check to see if unspecified "yes" value can win, given results above.
16453 # Change "yes" into either "no" or a style name.
16454 if test $enable_symvers != no && test $libgomp_shared_libgcc = yes; then
16455 if test $with_gnu_ld = yes; then
16456 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
16457 enable_symvers=gnu
16458 elif test $libgomp_ld_is_gold = yes ; then
16459 enable_symvers=gnu
16460 else
16461 # The right tools, the right setup, but too old. Fallbacks?
16462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
16463 $as_echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
16464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
16465 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
16466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
16467 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
16468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
16469 $as_echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
16470 if test $libgomp_gnu_ld_version -ge 21200 ; then
16471 # Globbing fix is present, proper block support is not.
16472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16473 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16474 enable_symvers=no
16475 else
16476 # 2.11 or older.
16477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16478 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16479 enable_symvers=no
16482 elif test $enable_symvers = sun; then
16483 : All interesting versions of Sun ld support sun style symbol versioning.
16484 else
16485 # just fail for now
16486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
16487 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
16488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
16489 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
16490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
16491 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
16492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16493 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16494 enable_symvers=no
16498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports .symver directive" >&5
16499 $as_echo_n "checking whether the target supports .symver directive... " >&6; }
16500 if test "${libgomp_cv_have_as_symver_directive+set}" = set; then :
16501 $as_echo_n "(cached) " >&6
16502 else
16504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16505 /* end confdefs.h. */
16506 void foo (void); __asm (".symver foo, bar@SYMVER");
16508 main ()
16512 return 0;
16514 _ACEOF
16515 if ac_fn_c_try_compile "$LINENO"; then :
16516 libgomp_cv_have_as_symver_directive=yes
16517 else
16518 libgomp_cv_have_as_symver_directive=no
16520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_as_symver_directive" >&5
16523 $as_echo "$libgomp_cv_have_as_symver_directive" >&6; }
16524 if test $libgomp_cv_have_as_symver_directive = yes; then
16526 $as_echo "#define HAVE_AS_SYMVER_DIRECTIVE 1" >>confdefs.h
16530 if test $enable_symvers != no; then
16531 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
16532 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
16533 else
16534 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
16535 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
16538 if test $enable_symvers = gnu; then
16539 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE=
16540 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
16541 else
16542 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
16543 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE=
16546 if test $enable_symvers = sun; then
16547 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE=
16548 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
16549 else
16550 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
16551 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE=
16554 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
16555 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
16557 if test $enable_symvers != no ; then
16558 case ${target_os} in
16559 # The Solaris 2 runtime linker doesn't support the GNU extension of
16560 # binding the same symbol to different versions
16561 solaris2*)
16563 # Other platforms with GNU symbol versioning (GNU/Linux, more?) do.
16566 $as_echo "#define HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT 1" >>confdefs.h
16569 esac
16573 if test $enable_symvers = gnu; then
16575 $as_echo "#define LIBGOMP_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
16579 # Get target configury.
16580 . ${srcdir}/configure.tgt
16581 CFLAGS="$save_CFLAGS $XCFLAGS"
16583 # Check for __sync_val_compare_and_swap, but only after the target has
16584 # had a chance to set XCFLAGS.
16586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
16587 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
16588 if test "${libgomp_cv_have_sync_builtins+set}" = set; then :
16589 $as_echo_n "(cached) " >&6
16590 else
16592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16593 /* end confdefs.h. */
16596 main ()
16598 int foo; __sync_val_compare_and_swap(&foo, 0, 1);
16600 return 0;
16602 _ACEOF
16603 if ac_fn_c_try_link "$LINENO"; then :
16604 libgomp_cv_have_sync_builtins=yes
16605 else
16606 libgomp_cv_have_sync_builtins=no
16608 rm -f core conftest.err conftest.$ac_objext \
16609 conftest$ac_exeext conftest.$ac_ext
16611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_sync_builtins" >&5
16612 $as_echo "$libgomp_cv_have_sync_builtins" >&6; }
16613 if test $libgomp_cv_have_sync_builtins = yes; then
16615 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
16619 XCFLAGS="$XCFLAGS$XPCFLAGS"
16621 # Add CET specific flags if CET is enabled
16622 # Check whether --enable-cet was given.
16623 if test "${enable_cet+set}" = set; then :
16624 enableval=$enable_cet;
16625 case "$enableval" in
16626 yes|no|auto) ;;
16627 *) as_fn_error "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
16628 esac
16630 else
16631 enable_cet=no
16635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
16636 $as_echo_n "checking for CET support... " >&6; }
16638 case "$host" in
16639 i[34567]86-*-linux* | x86_64-*-linux*)
16640 case "$enable_cet" in
16641 auto)
16642 # Check if target supports multi-byte NOPs
16643 # and if assembler supports CET insn.
16644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16645 /* end confdefs.h. */
16648 main ()
16651 #if !defined(__SSE2__)
16652 #error target does not support multi-byte NOPs
16653 #else
16654 asm ("setssbsy");
16655 #endif
16658 return 0;
16660 _ACEOF
16661 if ac_fn_c_try_compile "$LINENO"; then :
16662 enable_cet=yes
16663 else
16664 enable_cet=no
16666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16668 yes)
16669 # Check if assembler supports CET.
16670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16671 /* end confdefs.h. */
16674 main ()
16676 asm ("setssbsy");
16678 return 0;
16680 _ACEOF
16681 if ac_fn_c_try_compile "$LINENO"; then :
16683 else
16684 as_fn_error "assembler with CET support is required for --enable-cet" "$LINENO" 5
16686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16688 esac
16691 enable_cet=no
16693 esac
16694 if test x$enable_cet = xyes; then
16695 CET_FLAGS="-fcf-protection -mshstk"
16696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16697 $as_echo "yes" >&6; }
16698 else
16699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16700 $as_echo "no" >&6; }
16703 XCFLAGS="$XCFLAGS $CET_FLAGS"
16704 FCFLAGS="$FCFLAGS $CET_FLAGS"
16710 # Cleanup and exit.
16711 CFLAGS="$save_CFLAGS"
16712 cat >confcache <<\_ACEOF
16713 # This file is a shell script that caches the results of configure
16714 # tests run on this system so they can be shared between configure
16715 # scripts and configure runs, see configure's option --config-cache.
16716 # It is not useful on other systems. If it contains results you don't
16717 # want to keep, you may remove or edit it.
16719 # config.status only pays attention to the cache file if you give it
16720 # the --recheck option to rerun configure.
16722 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16723 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16724 # following values.
16726 _ACEOF
16728 # The following way of writing the cache mishandles newlines in values,
16729 # but we know of no workaround that is simple, portable, and efficient.
16730 # So, we kill variables containing newlines.
16731 # Ultrix sh set writes to stderr and can't be redirected directly,
16732 # and sets the high bit in the cache file unless we assign to the vars.
16734 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16735 eval ac_val=\$$ac_var
16736 case $ac_val in #(
16737 *${as_nl}*)
16738 case $ac_var in #(
16739 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16740 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16741 esac
16742 case $ac_var in #(
16743 _ | IFS | as_nl) ;; #(
16744 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16745 *) { eval $ac_var=; unset $ac_var;} ;;
16746 esac ;;
16747 esac
16748 done
16750 (set) 2>&1 |
16751 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16752 *${as_nl}ac_space=\ *)
16753 # `set' does not quote correctly, so add quotes: double-quote
16754 # substitution turns \\\\ into \\, and sed turns \\ into \.
16755 sed -n \
16756 "s/'/'\\\\''/g;
16757 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16758 ;; #(
16760 # `set' quotes correctly as required by POSIX, so do not add quotes.
16761 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16763 esac |
16764 sort
16766 sed '
16767 /^ac_cv_env_/b end
16768 t clear
16769 :clear
16770 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16771 t end
16772 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16773 :end' >>confcache
16774 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16775 if test -w "$cache_file"; then
16776 test "x$cache_file" != "x/dev/null" &&
16777 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16778 $as_echo "$as_me: updating cache $cache_file" >&6;}
16779 cat confcache >$cache_file
16780 else
16781 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16782 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16785 rm -f confcache
16787 if test ${multilib} = yes; then
16788 multilib_arg="--enable-multilib"
16789 else
16790 multilib_arg=
16793 # Set up the set of libraries that we need to link against for libgomp.
16794 # Note that the GOMP_SELF_SPEC in gcc.c may force -pthread,
16795 # which will force linkage against -lpthread (or equivalent for the system).
16796 # That's not 100% ideal, but about the best we can do easily.
16797 if test $enable_shared = yes; then
16798 link_gomp="-lgomp %{static: $LIBS}"
16799 else
16800 link_gomp="-lgomp $LIBS"
16804 if test "$ac_cv_fc_compiler_gnu" = yes; then
16805 USE_FORTRAN_TRUE=
16806 USE_FORTRAN_FALSE='#'
16807 else
16808 USE_FORTRAN_TRUE='#'
16809 USE_FORTRAN_FALSE=
16813 # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
16814 # and export AC_COMPUTE_INT. If that happens, then we'll need to remove
16815 # the underscore here and update the PREREQ. If it doesn't, then we'll
16816 # need to copy this macro to our acinclude.m4.
16817 save_CFLAGS="$CFLAGS"
16818 for i in $config_path; do
16819 if test -f $srcdir/config/$i/omp-lock.h; then
16820 CFLAGS="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h"
16821 break
16823 done
16825 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_t)" "OMP_LOCK_SIZE" ""; then :
16827 else
16828 as_fn_error "unsupported system, cannot find sizeof (omp_lock_t)" "$LINENO" 5
16832 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_t)" "OMP_LOCK_ALIGN" ""; then :
16837 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_t)" "OMP_NEST_LOCK_SIZE" ""; then :
16842 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_t)" "OMP_NEST_LOCK_ALIGN" ""; then :
16847 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_25_t)" "OMP_LOCK_25_SIZE" ""; then :
16849 else
16850 as_fn_error "unsupported system, cannot find sizeof (omp_lock_25_t)" "$LINENO" 5
16854 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_25_t)" "OMP_LOCK_25_ALIGN" ""; then :
16859 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_SIZE" ""; then :
16864 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_ALIGN" ""; then :
16870 # If the lock fits in an integer, then arrange for Fortran to use that
16871 # integer. If it doesn't, then arrange for Fortran to use a pointer.
16872 # Except that we don't have a way at present to multi-lib the installed
16873 # Fortran modules, so we assume 8 bytes for pointers, regardless of the
16874 # actual target.
16875 OMP_LOCK_KIND=$OMP_LOCK_SIZE
16876 OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
16877 if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
16878 OMP_LOCK_KIND=8
16880 if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
16881 OMP_NEST_LOCK_KIND=8
16883 OMP_LOCK_25_KIND=$OMP_LOCK_25_SIZE
16884 OMP_NEST_LOCK_25_KIND=$OMP_NEST_LOCK_25_SIZE
16885 if test $OMP_LOCK_25_SIZE -gt 8 || test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then
16886 OMP_LOCK_25_KIND=8
16888 if test $OMP_NEST_LOCK_25_SIZE -gt 8 || test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then
16889 OMP_NEST_LOCK_25_KIND=8
16904 CFLAGS="$save_CFLAGS"
16906 # Determine what GCC version number to use in filesystem paths.
16908 get_gcc_base_ver="cat"
16910 # Check whether --with-gcc-major-version-only was given.
16911 if test "${with_gcc_major_version_only+set}" = set; then :
16912 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
16913 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
16921 ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
16923 ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
16925 ac_config_files="$ac_config_files testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in"
16927 cat >confcache <<\_ACEOF
16928 # This file is a shell script that caches the results of configure
16929 # tests run on this system so they can be shared between configure
16930 # scripts and configure runs, see configure's option --config-cache.
16931 # It is not useful on other systems. If it contains results you don't
16932 # want to keep, you may remove or edit it.
16934 # config.status only pays attention to the cache file if you give it
16935 # the --recheck option to rerun configure.
16937 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16938 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16939 # following values.
16941 _ACEOF
16943 # The following way of writing the cache mishandles newlines in values,
16944 # but we know of no workaround that is simple, portable, and efficient.
16945 # So, we kill variables containing newlines.
16946 # Ultrix sh set writes to stderr and can't be redirected directly,
16947 # and sets the high bit in the cache file unless we assign to the vars.
16949 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16950 eval ac_val=\$$ac_var
16951 case $ac_val in #(
16952 *${as_nl}*)
16953 case $ac_var in #(
16954 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16955 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16956 esac
16957 case $ac_var in #(
16958 _ | IFS | as_nl) ;; #(
16959 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16960 *) { eval $ac_var=; unset $ac_var;} ;;
16961 esac ;;
16962 esac
16963 done
16965 (set) 2>&1 |
16966 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16967 *${as_nl}ac_space=\ *)
16968 # `set' does not quote correctly, so add quotes: double-quote
16969 # substitution turns \\\\ into \\, and sed turns \\ into \.
16970 sed -n \
16971 "s/'/'\\\\''/g;
16972 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16973 ;; #(
16975 # `set' quotes correctly as required by POSIX, so do not add quotes.
16976 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16978 esac |
16979 sort
16981 sed '
16982 /^ac_cv_env_/b end
16983 t clear
16984 :clear
16985 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16986 t end
16987 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16988 :end' >>confcache
16989 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16990 if test -w "$cache_file"; then
16991 test "x$cache_file" != "x/dev/null" &&
16992 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16993 $as_echo "$as_me: updating cache $cache_file" >&6;}
16994 cat confcache >$cache_file
16995 else
16996 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16997 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17000 rm -f confcache
17002 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17003 # Let make expand exec_prefix.
17004 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17006 DEFS=-DHAVE_CONFIG_H
17008 ac_libobjs=
17009 ac_ltlibobjs=
17010 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17011 # 1. Remove the extension, and $U if already installed.
17012 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17013 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17014 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17015 # will be set to the directory where LIBOBJS objects are built.
17016 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17017 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17018 done
17019 LIBOBJS=$ac_libobjs
17021 LTLIBOBJS=$ac_ltlibobjs
17024 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
17025 as_fn_error "conditional \"GENINSRC\" was never defined.
17026 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17028 if test -n "$EXEEXT"; then
17029 am__EXEEXT_TRUE=
17030 am__EXEEXT_FALSE='#'
17031 else
17032 am__EXEEXT_TRUE='#'
17033 am__EXEEXT_FALSE=
17036 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17037 as_fn_error "conditional \"AMDEP\" was never defined.
17038 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17040 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17041 as_fn_error "conditional \"am__fastdepCC\" was never defined.
17042 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17044 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
17045 as_fn_error "conditional \"BUILD_INFO\" was never defined.
17046 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17048 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17049 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17050 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17052 if test -z "${PLUGIN_NVPTX_TRUE}" && test -z "${PLUGIN_NVPTX_FALSE}"; then
17053 as_fn_error "conditional \"PLUGIN_NVPTX\" was never defined.
17054 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17056 if test -z "${PLUGIN_HSA_TRUE}" && test -z "${PLUGIN_HSA_FALSE}"; then
17057 as_fn_error "conditional \"PLUGIN_HSA\" was never defined.
17058 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17060 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
17061 as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
17062 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17064 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
17065 as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
17066 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17068 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
17069 as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
17070 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17072 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
17073 as_fn_error "conditional \"USE_FORTRAN\" was never defined.
17074 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17077 : ${CONFIG_STATUS=./config.status}
17078 ac_write_fail=0
17079 ac_clean_files_save=$ac_clean_files
17080 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17081 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17082 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17083 as_write_fail=0
17084 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17085 #! $SHELL
17086 # Generated by $as_me.
17087 # Run this file to recreate the current configuration.
17088 # Compiler output produced by configure, useful for debugging
17089 # configure, is in config.log if it exists.
17091 debug=false
17092 ac_cs_recheck=false
17093 ac_cs_silent=false
17095 SHELL=\${CONFIG_SHELL-$SHELL}
17096 export SHELL
17097 _ASEOF
17098 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17099 ## -------------------- ##
17100 ## M4sh Initialization. ##
17101 ## -------------------- ##
17103 # Be more Bourne compatible
17104 DUALCASE=1; export DUALCASE # for MKS sh
17105 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17106 emulate sh
17107 NULLCMD=:
17108 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17109 # is contrary to our usage. Disable this feature.
17110 alias -g '${1+"$@"}'='"$@"'
17111 setopt NO_GLOB_SUBST
17112 else
17113 case `(set -o) 2>/dev/null` in #(
17114 *posix*) :
17115 set -o posix ;; #(
17116 *) :
17118 esac
17122 as_nl='
17124 export as_nl
17125 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17126 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17127 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17128 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17129 # Prefer a ksh shell builtin over an external printf program on Solaris,
17130 # but without wasting forks for bash or zsh.
17131 if test -z "$BASH_VERSION$ZSH_VERSION" \
17132 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17133 as_echo='print -r --'
17134 as_echo_n='print -rn --'
17135 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17136 as_echo='printf %s\n'
17137 as_echo_n='printf %s'
17138 else
17139 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17140 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17141 as_echo_n='/usr/ucb/echo -n'
17142 else
17143 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17144 as_echo_n_body='eval
17145 arg=$1;
17146 case $arg in #(
17147 *"$as_nl"*)
17148 expr "X$arg" : "X\\(.*\\)$as_nl";
17149 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17150 esac;
17151 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17153 export as_echo_n_body
17154 as_echo_n='sh -c $as_echo_n_body as_echo'
17156 export as_echo_body
17157 as_echo='sh -c $as_echo_body as_echo'
17160 # The user is always right.
17161 if test "${PATH_SEPARATOR+set}" != set; then
17162 PATH_SEPARATOR=:
17163 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17164 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17165 PATH_SEPARATOR=';'
17170 # IFS
17171 # We need space, tab and new line, in precisely that order. Quoting is
17172 # there to prevent editors from complaining about space-tab.
17173 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17174 # splitting by setting IFS to empty value.)
17175 IFS=" "" $as_nl"
17177 # Find who we are. Look in the path if we contain no directory separator.
17178 case $0 in #((
17179 *[\\/]* ) as_myself=$0 ;;
17180 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17181 for as_dir in $PATH
17183 IFS=$as_save_IFS
17184 test -z "$as_dir" && as_dir=.
17185 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17186 done
17187 IFS=$as_save_IFS
17190 esac
17191 # We did not find ourselves, most probably we were run as `sh COMMAND'
17192 # in which case we are not to be found in the path.
17193 if test "x$as_myself" = x; then
17194 as_myself=$0
17196 if test ! -f "$as_myself"; then
17197 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17198 exit 1
17201 # Unset variables that we do not need and which cause bugs (e.g. in
17202 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17203 # suppresses any "Segmentation fault" message there. '((' could
17204 # trigger a bug in pdksh 5.2.14.
17205 for as_var in BASH_ENV ENV MAIL MAILPATH
17206 do eval test x\${$as_var+set} = xset \
17207 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17208 done
17209 PS1='$ '
17210 PS2='> '
17211 PS4='+ '
17213 # NLS nuisances.
17214 LC_ALL=C
17215 export LC_ALL
17216 LANGUAGE=C
17217 export LANGUAGE
17219 # CDPATH.
17220 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17223 # as_fn_error ERROR [LINENO LOG_FD]
17224 # ---------------------------------
17225 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17226 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17227 # script with status $?, using 1 if that was 0.
17228 as_fn_error ()
17230 as_status=$?; test $as_status -eq 0 && as_status=1
17231 if test "$3"; then
17232 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17233 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
17235 $as_echo "$as_me: error: $1" >&2
17236 as_fn_exit $as_status
17237 } # as_fn_error
17240 # as_fn_set_status STATUS
17241 # -----------------------
17242 # Set $? to STATUS, without forking.
17243 as_fn_set_status ()
17245 return $1
17246 } # as_fn_set_status
17248 # as_fn_exit STATUS
17249 # -----------------
17250 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17251 as_fn_exit ()
17253 set +e
17254 as_fn_set_status $1
17255 exit $1
17256 } # as_fn_exit
17258 # as_fn_unset VAR
17259 # ---------------
17260 # Portably unset VAR.
17261 as_fn_unset ()
17263 { eval $1=; unset $1;}
17265 as_unset=as_fn_unset
17266 # as_fn_append VAR VALUE
17267 # ----------------------
17268 # Append the text in VALUE to the end of the definition contained in VAR. Take
17269 # advantage of any shell optimizations that allow amortized linear growth over
17270 # repeated appends, instead of the typical quadratic growth present in naive
17271 # implementations.
17272 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17273 eval 'as_fn_append ()
17275 eval $1+=\$2
17277 else
17278 as_fn_append ()
17280 eval $1=\$$1\$2
17282 fi # as_fn_append
17284 # as_fn_arith ARG...
17285 # ------------------
17286 # Perform arithmetic evaluation on the ARGs, and store the result in the
17287 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17288 # must be portable across $(()) and expr.
17289 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17290 eval 'as_fn_arith ()
17292 as_val=$(( $* ))
17294 else
17295 as_fn_arith ()
17297 as_val=`expr "$@" || test $? -eq 1`
17299 fi # as_fn_arith
17302 if expr a : '\(a\)' >/dev/null 2>&1 &&
17303 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17304 as_expr=expr
17305 else
17306 as_expr=false
17309 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17310 as_basename=basename
17311 else
17312 as_basename=false
17315 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17316 as_dirname=dirname
17317 else
17318 as_dirname=false
17321 as_me=`$as_basename -- "$0" ||
17322 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17323 X"$0" : 'X\(//\)$' \| \
17324 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17325 $as_echo X/"$0" |
17326 sed '/^.*\/\([^/][^/]*\)\/*$/{
17327 s//\1/
17330 /^X\/\(\/\/\)$/{
17331 s//\1/
17334 /^X\/\(\/\).*/{
17335 s//\1/
17338 s/.*/./; q'`
17340 # Avoid depending upon Character Ranges.
17341 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17342 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17343 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17344 as_cr_digits='0123456789'
17345 as_cr_alnum=$as_cr_Letters$as_cr_digits
17347 ECHO_C= ECHO_N= ECHO_T=
17348 case `echo -n x` in #(((((
17349 -n*)
17350 case `echo 'xy\c'` in
17351 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17352 xy) ECHO_C='\c';;
17353 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17354 ECHO_T=' ';;
17355 esac;;
17357 ECHO_N='-n';;
17358 esac
17360 rm -f conf$$ conf$$.exe conf$$.file
17361 if test -d conf$$.dir; then
17362 rm -f conf$$.dir/conf$$.file
17363 else
17364 rm -f conf$$.dir
17365 mkdir conf$$.dir 2>/dev/null
17367 if (echo >conf$$.file) 2>/dev/null; then
17368 if ln -s conf$$.file conf$$ 2>/dev/null; then
17369 as_ln_s='ln -s'
17370 # ... but there are two gotchas:
17371 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17372 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17373 # In both cases, we have to default to `cp -p'.
17374 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17375 as_ln_s='cp -p'
17376 elif ln conf$$.file conf$$ 2>/dev/null; then
17377 as_ln_s=ln
17378 else
17379 as_ln_s='cp -p'
17381 else
17382 as_ln_s='cp -p'
17384 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17385 rmdir conf$$.dir 2>/dev/null
17388 # as_fn_mkdir_p
17389 # -------------
17390 # Create "$as_dir" as a directory, including parents if necessary.
17391 as_fn_mkdir_p ()
17394 case $as_dir in #(
17395 -*) as_dir=./$as_dir;;
17396 esac
17397 test -d "$as_dir" || eval $as_mkdir_p || {
17398 as_dirs=
17399 while :; do
17400 case $as_dir in #(
17401 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17402 *) as_qdir=$as_dir;;
17403 esac
17404 as_dirs="'$as_qdir' $as_dirs"
17405 as_dir=`$as_dirname -- "$as_dir" ||
17406 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17407 X"$as_dir" : 'X\(//\)[^/]' \| \
17408 X"$as_dir" : 'X\(//\)$' \| \
17409 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17410 $as_echo X"$as_dir" |
17411 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17412 s//\1/
17415 /^X\(\/\/\)[^/].*/{
17416 s//\1/
17419 /^X\(\/\/\)$/{
17420 s//\1/
17423 /^X\(\/\).*/{
17424 s//\1/
17427 s/.*/./; q'`
17428 test -d "$as_dir" && break
17429 done
17430 test -z "$as_dirs" || eval "mkdir $as_dirs"
17431 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
17434 } # as_fn_mkdir_p
17435 if mkdir -p . 2>/dev/null; then
17436 as_mkdir_p='mkdir -p "$as_dir"'
17437 else
17438 test -d ./-p && rmdir ./-p
17439 as_mkdir_p=false
17442 if test -x / >/dev/null 2>&1; then
17443 as_test_x='test -x'
17444 else
17445 if ls -dL / >/dev/null 2>&1; then
17446 as_ls_L_option=L
17447 else
17448 as_ls_L_option=
17450 as_test_x='
17451 eval sh -c '\''
17452 if test -d "$1"; then
17453 test -d "$1/.";
17454 else
17455 case $1 in #(
17456 -*)set "./$1";;
17457 esac;
17458 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17459 ???[sx]*):;;*)false;;esac;fi
17460 '\'' sh
17463 as_executable_p=$as_test_x
17465 # Sed expression to map a string onto a valid CPP name.
17466 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17468 # Sed expression to map a string onto a valid variable name.
17469 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17472 exec 6>&1
17473 ## ----------------------------------- ##
17474 ## Main body of $CONFIG_STATUS script. ##
17475 ## ----------------------------------- ##
17476 _ASEOF
17477 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17479 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17480 # Save the log message, to keep $0 and so on meaningful, and to
17481 # report actual input values of CONFIG_FILES etc. instead of their
17482 # values after options handling.
17483 ac_log="
17484 This file was extended by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
17485 generated by GNU Autoconf 2.64. Invocation command line was
17487 CONFIG_FILES = $CONFIG_FILES
17488 CONFIG_HEADERS = $CONFIG_HEADERS
17489 CONFIG_LINKS = $CONFIG_LINKS
17490 CONFIG_COMMANDS = $CONFIG_COMMANDS
17491 $ $0 $@
17493 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17496 _ACEOF
17498 case $ac_config_files in *"
17499 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17500 esac
17502 case $ac_config_headers in *"
17503 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17504 esac
17507 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17508 # Files that config.status was made for.
17509 config_files="$ac_config_files"
17510 config_headers="$ac_config_headers"
17511 config_commands="$ac_config_commands"
17513 _ACEOF
17515 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17516 ac_cs_usage="\
17517 \`$as_me' instantiates files and other configuration actions
17518 from templates according to the current configuration. Unless the files
17519 and actions are specified as TAGs, all are instantiated by default.
17521 Usage: $0 [OPTION]... [TAG]...
17523 -h, --help print this help, then exit
17524 -V, --version print version number and configuration settings, then exit
17525 -q, --quiet, --silent
17526 do not print progress messages
17527 -d, --debug don't remove temporary files
17528 --recheck update $as_me by reconfiguring in the same conditions
17529 --file=FILE[:TEMPLATE]
17530 instantiate the configuration file FILE
17531 --header=FILE[:TEMPLATE]
17532 instantiate the configuration header FILE
17534 Configuration files:
17535 $config_files
17537 Configuration headers:
17538 $config_headers
17540 Configuration commands:
17541 $config_commands
17543 Report bugs to the package provider.
17544 GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
17545 General help using GNU software: <http://www.gnu.org/gethelp/>."
17547 _ACEOF
17548 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17549 ac_cs_version="\\
17550 GNU Offloading and Multi Processing Runtime Library config.status 1.0
17551 configured by $0, generated by GNU Autoconf 2.64,
17552 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17554 Copyright (C) 2009 Free Software Foundation, Inc.
17555 This config.status script is free software; the Free Software Foundation
17556 gives unlimited permission to copy, distribute and modify it."
17558 ac_pwd='$ac_pwd'
17559 srcdir='$srcdir'
17560 INSTALL='$INSTALL'
17561 MKDIR_P='$MKDIR_P'
17562 AWK='$AWK'
17563 test -n "\$AWK" || AWK=awk
17564 _ACEOF
17566 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17567 # The default lists apply if the user does not specify any file.
17568 ac_need_defaults=:
17569 while test $# != 0
17571 case $1 in
17572 --*=*)
17573 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17574 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17575 ac_shift=:
17578 ac_option=$1
17579 ac_optarg=$2
17580 ac_shift=shift
17582 esac
17584 case $ac_option in
17585 # Handling of the options.
17586 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17587 ac_cs_recheck=: ;;
17588 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17589 $as_echo "$ac_cs_version"; exit ;;
17590 --debug | --debu | --deb | --de | --d | -d )
17591 debug=: ;;
17592 --file | --fil | --fi | --f )
17593 $ac_shift
17594 case $ac_optarg in
17595 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17596 esac
17597 as_fn_append CONFIG_FILES " '$ac_optarg'"
17598 ac_need_defaults=false;;
17599 --header | --heade | --head | --hea )
17600 $ac_shift
17601 case $ac_optarg in
17602 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17603 esac
17604 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17605 ac_need_defaults=false;;
17606 --he | --h)
17607 # Conflict between --help and --header
17608 as_fn_error "ambiguous option: \`$1'
17609 Try \`$0 --help' for more information.";;
17610 --help | --hel | -h )
17611 $as_echo "$ac_cs_usage"; exit ;;
17612 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17613 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17614 ac_cs_silent=: ;;
17616 # This is an error.
17617 -*) as_fn_error "unrecognized option: \`$1'
17618 Try \`$0 --help' for more information." ;;
17620 *) as_fn_append ac_config_targets " $1"
17621 ac_need_defaults=false ;;
17623 esac
17624 shift
17625 done
17627 ac_configure_extra_args=
17629 if $ac_cs_silent; then
17630 exec 6>/dev/null
17631 ac_configure_extra_args="$ac_configure_extra_args --silent"
17634 _ACEOF
17635 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17636 if \$ac_cs_recheck; then
17637 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17638 shift
17639 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17640 CONFIG_SHELL='$SHELL'
17641 export CONFIG_SHELL
17642 exec "\$@"
17645 _ACEOF
17646 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17647 exec 5>>config.log
17649 echo
17650 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17651 ## Running $as_me. ##
17652 _ASBOX
17653 $as_echo "$ac_log"
17654 } >&5
17656 _ACEOF
17657 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17659 # INIT-COMMANDS
17662 srcdir="$srcdir"
17663 host="$host"
17664 target="$target"
17665 with_multisubdir="$with_multisubdir"
17666 with_multisrctop="$with_multisrctop"
17667 with_target_subdir="$with_target_subdir"
17668 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17669 multi_basedir="$multi_basedir"
17670 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17671 CC="$CC"
17672 CXX="$CXX"
17673 GFORTRAN="$GFORTRAN"
17674 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17677 # The HP-UX ksh and POSIX shell print the target directory to stdout
17678 # if CDPATH is set.
17679 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17681 sed_quote_subst='$sed_quote_subst'
17682 double_quote_subst='$double_quote_subst'
17683 delay_variable_subst='$delay_variable_subst'
17684 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17685 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17686 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17687 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17688 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17689 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17690 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17691 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17692 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17693 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17694 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17695 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17696 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17697 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17698 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17699 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17700 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17701 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17702 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17703 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17704 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17705 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17706 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17707 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17708 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17709 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17710 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17711 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17712 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17713 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17714 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17715 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17716 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17717 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17718 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17719 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17720 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17721 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17722 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17723 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17724 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17725 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17726 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17727 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17728 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17729 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17730 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17731 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17732 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"`'
17733 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17734 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17735 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17736 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17737 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17738 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17739 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17740 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17741 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17742 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17743 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17744 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17745 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17746 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17747 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17748 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17749 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17750 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17751 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17752 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17753 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17754 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17755 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17756 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17757 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17758 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17759 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17760 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17761 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17762 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17763 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17764 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17765 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17766 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17767 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17768 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17769 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17770 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17771 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17772 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17773 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17774 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17775 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17776 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17777 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17778 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17779 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17780 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17781 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17782 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17783 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17784 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17785 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17786 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17787 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17788 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17789 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17790 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17791 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17792 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17793 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17794 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17795 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17796 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17797 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17798 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17799 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17800 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17801 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17802 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17803 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17804 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17805 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17806 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17807 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17808 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17809 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17810 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
17811 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
17812 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
17813 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17814 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
17815 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
17816 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
17817 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
17818 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
17819 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
17820 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
17821 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
17822 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
17823 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17824 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17825 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
17826 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
17827 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
17828 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17829 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17830 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
17831 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17832 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
17833 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17834 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17835 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17836 hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
17837 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
17838 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
17839 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
17840 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
17841 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
17842 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
17843 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
17844 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
17845 fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
17846 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
17847 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
17848 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17849 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17850 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
17851 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
17852 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
17853 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
17854 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
17855 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
17856 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
17857 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
17858 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
17860 LTCC='$LTCC'
17861 LTCFLAGS='$LTCFLAGS'
17862 compiler='$compiler_DEFAULT'
17864 # A function that is used when there is no print builtin or printf.
17865 func_fallback_echo ()
17867 eval 'cat <<_LTECHO_EOF
17869 _LTECHO_EOF'
17872 # Quote evaled strings.
17873 for var in SHELL \
17874 ECHO \
17875 SED \
17876 GREP \
17877 EGREP \
17878 FGREP \
17879 LD \
17880 NM \
17881 LN_S \
17882 lt_SP2NL \
17883 lt_NL2SP \
17884 reload_flag \
17885 OBJDUMP \
17886 deplibs_check_method \
17887 file_magic_cmd \
17888 AR \
17889 AR_FLAGS \
17890 STRIP \
17891 RANLIB \
17892 CC \
17893 CFLAGS \
17894 compiler \
17895 lt_cv_sys_global_symbol_pipe \
17896 lt_cv_sys_global_symbol_to_cdecl \
17897 lt_cv_sys_global_symbol_to_c_name_address \
17898 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17899 lt_prog_compiler_no_builtin_flag \
17900 lt_prog_compiler_wl \
17901 lt_prog_compiler_pic \
17902 lt_prog_compiler_static \
17903 lt_cv_prog_compiler_c_o \
17904 need_locks \
17905 DSYMUTIL \
17906 NMEDIT \
17907 LIPO \
17908 OTOOL \
17909 OTOOL64 \
17910 shrext_cmds \
17911 export_dynamic_flag_spec \
17912 whole_archive_flag_spec \
17913 compiler_needs_object \
17914 with_gnu_ld \
17915 allow_undefined_flag \
17916 no_undefined_flag \
17917 hardcode_libdir_flag_spec \
17918 hardcode_libdir_flag_spec_ld \
17919 hardcode_libdir_separator \
17920 fix_srcfile_path \
17921 exclude_expsyms \
17922 include_expsyms \
17923 file_list_spec \
17924 variables_saved_for_relink \
17925 libname_spec \
17926 library_names_spec \
17927 soname_spec \
17928 install_override_mode \
17929 finish_eval \
17930 old_striplib \
17931 striplib \
17932 compiler_lib_search_dirs \
17933 predep_objects \
17934 postdep_objects \
17935 predeps \
17936 postdeps \
17937 compiler_lib_search_path \
17938 LD_FC \
17939 reload_flag_FC \
17940 compiler_FC \
17941 lt_prog_compiler_no_builtin_flag_FC \
17942 lt_prog_compiler_wl_FC \
17943 lt_prog_compiler_pic_FC \
17944 lt_prog_compiler_static_FC \
17945 lt_cv_prog_compiler_c_o_FC \
17946 export_dynamic_flag_spec_FC \
17947 whole_archive_flag_spec_FC \
17948 compiler_needs_object_FC \
17949 with_gnu_ld_FC \
17950 allow_undefined_flag_FC \
17951 no_undefined_flag_FC \
17952 hardcode_libdir_flag_spec_FC \
17953 hardcode_libdir_flag_spec_ld_FC \
17954 hardcode_libdir_separator_FC \
17955 fix_srcfile_path_FC \
17956 exclude_expsyms_FC \
17957 include_expsyms_FC \
17958 file_list_spec_FC \
17959 compiler_lib_search_dirs_FC \
17960 predep_objects_FC \
17961 postdep_objects_FC \
17962 predeps_FC \
17963 postdeps_FC \
17964 compiler_lib_search_path_FC; do
17965 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17966 *[\\\\\\\`\\"\\\$]*)
17967 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17970 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17972 esac
17973 done
17975 # Double-quote double-evaled strings.
17976 for var in reload_cmds \
17977 old_postinstall_cmds \
17978 old_postuninstall_cmds \
17979 old_archive_cmds \
17980 extract_expsyms_cmds \
17981 old_archive_from_new_cmds \
17982 old_archive_from_expsyms_cmds \
17983 archive_cmds \
17984 archive_expsym_cmds \
17985 module_cmds \
17986 module_expsym_cmds \
17987 export_symbols_cmds \
17988 prelink_cmds \
17989 postinstall_cmds \
17990 postuninstall_cmds \
17991 finish_cmds \
17992 sys_lib_search_path_spec \
17993 sys_lib_dlsearch_path_spec \
17994 reload_cmds_FC \
17995 old_archive_cmds_FC \
17996 old_archive_from_new_cmds_FC \
17997 old_archive_from_expsyms_cmds_FC \
17998 archive_cmds_FC \
17999 archive_expsym_cmds_FC \
18000 module_cmds_FC \
18001 module_expsym_cmds_FC \
18002 export_symbols_cmds_FC \
18003 prelink_cmds_FC; do
18004 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18005 *[\\\\\\\`\\"\\\$]*)
18006 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18009 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18011 esac
18012 done
18014 ac_aux_dir='$ac_aux_dir'
18015 xsi_shell='$xsi_shell'
18016 lt_shell_append='$lt_shell_append'
18018 # See if we are running on zsh, and set the options which allow our
18019 # commands through without removal of \ escapes INIT.
18020 if test -n "\${ZSH_VERSION+set}" ; then
18021 setopt NO_GLOB_SUBST
18025 PACKAGE='$PACKAGE'
18026 VERSION='$VERSION'
18027 TIMESTAMP='$TIMESTAMP'
18028 RM='$RM'
18029 ofile='$ofile'
18036 GCC="$GCC"
18037 CC="$CC"
18038 acx_cv_header_stdint="$acx_cv_header_stdint"
18039 acx_cv_type_int8_t="$acx_cv_type_int8_t"
18040 acx_cv_type_int16_t="$acx_cv_type_int16_t"
18041 acx_cv_type_int32_t="$acx_cv_type_int32_t"
18042 acx_cv_type_int64_t="$acx_cv_type_int64_t"
18043 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
18044 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
18045 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
18046 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
18047 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
18048 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
18049 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
18050 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
18051 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
18054 _ACEOF
18056 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18058 # Handling of arguments.
18059 for ac_config_target in $ac_config_targets
18061 case $ac_config_target in
18062 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18063 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18064 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18065 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18066 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
18067 "omp.h") CONFIG_FILES="$CONFIG_FILES omp.h" ;;
18068 "omp_lib.h") CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
18069 "omp_lib.f90") CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
18070 "libgomp_f.h") CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
18071 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18072 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
18073 "libgomp.spec") CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
18074 "testsuite/libgomp-test-support.pt.exp") CONFIG_FILES="$CONFIG_FILES testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in" ;;
18076 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18077 esac
18078 done
18081 # If the user did not use the arguments to specify the items to instantiate,
18082 # then the envvar interface is used. Set only those that are not.
18083 # We use the long form for the default assignment because of an extremely
18084 # bizarre bug on SunOS 4.1.3.
18085 if $ac_need_defaults; then
18086 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18087 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18088 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18091 # Have a temporary directory for convenience. Make it in the build tree
18092 # simply because there is no reason against having it here, and in addition,
18093 # creating and moving files from /tmp can sometimes cause problems.
18094 # Hook for its removal unless debugging.
18095 # Note that there is a small window in which the directory will not be cleaned:
18096 # after its creation but before its name has been assigned to `$tmp'.
18097 $debug ||
18099 tmp=
18100 trap 'exit_status=$?
18101 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18103 trap 'as_fn_exit 1' 1 2 13 15
18105 # Create a (secure) tmp directory for tmp files.
18108 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18109 test -n "$tmp" && test -d "$tmp"
18110 } ||
18112 tmp=./conf$$-$RANDOM
18113 (umask 077 && mkdir "$tmp")
18114 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
18116 # Set up the scripts for CONFIG_FILES section.
18117 # No need to generate them if there are no CONFIG_FILES.
18118 # This happens for instance with `./config.status config.h'.
18119 if test -n "$CONFIG_FILES"; then
18122 ac_cr=`echo X | tr X '\015'`
18123 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18124 # But we know of no other shell where ac_cr would be empty at this
18125 # point, so we can use a bashism as a fallback.
18126 if test "x$ac_cr" = x; then
18127 eval ac_cr=\$\'\\r\'
18129 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18130 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18131 ac_cs_awk_cr='\r'
18132 else
18133 ac_cs_awk_cr=$ac_cr
18136 echo 'BEGIN {' >"$tmp/subs1.awk" &&
18137 _ACEOF
18141 echo "cat >conf$$subs.awk <<_ACEOF" &&
18142 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18143 echo "_ACEOF"
18144 } >conf$$subs.sh ||
18145 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18146 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18147 ac_delim='%!_!# '
18148 for ac_last_try in false false false false false :; do
18149 . ./conf$$subs.sh ||
18150 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18152 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18153 if test $ac_delim_n = $ac_delim_num; then
18154 break
18155 elif $ac_last_try; then
18156 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18157 else
18158 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18160 done
18161 rm -f conf$$subs.sh
18163 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18164 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18165 _ACEOF
18166 sed -n '
18168 s/^/S["/; s/!.*/"]=/
18171 s/^[^!]*!//
18172 :repl
18173 t repl
18174 s/'"$ac_delim"'$//
18175 t delim
18178 s/\(.\{148\}\).*/\1/
18179 t more1
18180 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18183 b repl
18184 :more1
18185 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18188 s/.\{148\}//
18189 t nl
18190 :delim
18192 s/\(.\{148\}\).*/\1/
18193 t more2
18194 s/["\\]/\\&/g; s/^/"/; s/$/"/
18197 :more2
18198 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18201 s/.\{148\}//
18202 t delim
18203 ' <conf$$subs.awk | sed '
18204 /^[^""]/{
18206 s/\n//
18208 ' >>$CONFIG_STATUS || ac_write_fail=1
18209 rm -f conf$$subs.awk
18210 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18211 _ACAWK
18212 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18213 for (key in S) S_is_set[key] = 1
18214 FS = "\a"
18218 line = $ 0
18219 nfields = split(line, field, "@")
18220 substed = 0
18221 len = length(field[1])
18222 for (i = 2; i < nfields; i++) {
18223 key = field[i]
18224 keylen = length(key)
18225 if (S_is_set[key]) {
18226 value = S[key]
18227 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18228 len += length(value) + length(field[++i])
18229 substed = 1
18230 } else
18231 len += 1 + keylen
18234 print line
18237 _ACAWK
18238 _ACEOF
18239 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18240 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18241 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18242 else
18244 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18245 || as_fn_error "could not setup config files machinery" "$LINENO" 5
18246 _ACEOF
18248 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18249 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18250 # trailing colons and then remove the whole line if VPATH becomes empty
18251 # (actually we leave an empty line to preserve line numbers).
18252 if test "x$srcdir" = x.; then
18253 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18254 s/:*\$(srcdir):*/:/
18255 s/:*\${srcdir}:*/:/
18256 s/:*@srcdir@:*/:/
18257 s/^\([^=]*=[ ]*\):*/\1/
18258 s/:*$//
18259 s/^[^=]*=[ ]*$//
18263 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18264 fi # test -n "$CONFIG_FILES"
18266 # Set up the scripts for CONFIG_HEADERS section.
18267 # No need to generate them if there are no CONFIG_HEADERS.
18268 # This happens for instance with `./config.status Makefile'.
18269 if test -n "$CONFIG_HEADERS"; then
18270 cat >"$tmp/defines.awk" <<\_ACAWK ||
18271 BEGIN {
18272 _ACEOF
18274 # Transform confdefs.h into an awk script `defines.awk', embedded as
18275 # here-document in config.status, that substitutes the proper values into
18276 # config.h.in to produce config.h.
18278 # Create a delimiter string that does not exist in confdefs.h, to ease
18279 # handling of long lines.
18280 ac_delim='%!_!# '
18281 for ac_last_try in false false :; do
18282 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18283 if test -z "$ac_t"; then
18284 break
18285 elif $ac_last_try; then
18286 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
18287 else
18288 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18290 done
18292 # For the awk script, D is an array of macro values keyed by name,
18293 # likewise P contains macro parameters if any. Preserve backslash
18294 # newline sequences.
18296 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18297 sed -n '
18298 s/.\{148\}/&'"$ac_delim"'/g
18299 t rset
18300 :rset
18301 s/^[ ]*#[ ]*define[ ][ ]*/ /
18302 t def
18304 :def
18305 s/\\$//
18306 t bsnl
18307 s/["\\]/\\&/g
18308 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18309 D["\1"]=" \3"/p
18310 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18312 :bsnl
18313 s/["\\]/\\&/g
18314 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18315 D["\1"]=" \3\\\\\\n"\\/p
18316 t cont
18317 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18318 t cont
18320 :cont
18322 s/.\{148\}/&'"$ac_delim"'/g
18323 t clear
18324 :clear
18325 s/\\$//
18326 t bsnlc
18327 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18329 :bsnlc
18330 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18331 b cont
18332 ' <confdefs.h | sed '
18333 s/'"$ac_delim"'/"\\\
18334 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18336 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18337 for (key in D) D_is_set[key] = 1
18338 FS = "\a"
18340 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18341 line = \$ 0
18342 split(line, arg, " ")
18343 if (arg[1] == "#") {
18344 defundef = arg[2]
18345 mac1 = arg[3]
18346 } else {
18347 defundef = substr(arg[1], 2)
18348 mac1 = arg[2]
18350 split(mac1, mac2, "(") #)
18351 macro = mac2[1]
18352 prefix = substr(line, 1, index(line, defundef) - 1)
18353 if (D_is_set[macro]) {
18354 # Preserve the white space surrounding the "#".
18355 print prefix "define", macro P[macro] D[macro]
18356 next
18357 } else {
18358 # Replace #undef with comments. This is necessary, for example,
18359 # in the case of _POSIX_SOURCE, which is predefined and required
18360 # on some systems where configure will not decide to define it.
18361 if (defundef == "undef") {
18362 print "/*", prefix defundef, macro, "*/"
18363 next
18367 { print }
18368 _ACAWK
18369 _ACEOF
18370 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18371 as_fn_error "could not setup config headers machinery" "$LINENO" 5
18372 fi # test -n "$CONFIG_HEADERS"
18375 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18376 shift
18377 for ac_tag
18379 case $ac_tag in
18380 :[FHLC]) ac_mode=$ac_tag; continue;;
18381 esac
18382 case $ac_mode$ac_tag in
18383 :[FHL]*:*);;
18384 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
18385 :[FH]-) ac_tag=-:-;;
18386 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18387 esac
18388 ac_save_IFS=$IFS
18389 IFS=:
18390 set x $ac_tag
18391 IFS=$ac_save_IFS
18392 shift
18393 ac_file=$1
18394 shift
18396 case $ac_mode in
18397 :L) ac_source=$1;;
18398 :[FH])
18399 ac_file_inputs=
18400 for ac_f
18402 case $ac_f in
18403 -) ac_f="$tmp/stdin";;
18404 *) # Look for the file first in the build tree, then in the source tree
18405 # (if the path is not absolute). The absolute path cannot be DOS-style,
18406 # because $ac_f cannot contain `:'.
18407 test -f "$ac_f" ||
18408 case $ac_f in
18409 [\\/$]*) false;;
18410 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18411 esac ||
18412 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18413 esac
18414 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18415 as_fn_append ac_file_inputs " '$ac_f'"
18416 done
18418 # Let's still pretend it is `configure' which instantiates (i.e., don't
18419 # use $as_me), people would be surprised to read:
18420 # /* config.h. Generated by config.status. */
18421 configure_input='Generated from '`
18422 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18423 `' by configure.'
18424 if test x"$ac_file" != x-; then
18425 configure_input="$ac_file. $configure_input"
18426 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18427 $as_echo "$as_me: creating $ac_file" >&6;}
18429 # Neutralize special characters interpreted by sed in replacement strings.
18430 case $configure_input in #(
18431 *\&* | *\|* | *\\* )
18432 ac_sed_conf_input=`$as_echo "$configure_input" |
18433 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18434 *) ac_sed_conf_input=$configure_input;;
18435 esac
18437 case $ac_tag in
18438 *:-:* | *:-) cat >"$tmp/stdin" \
18439 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
18440 esac
18442 esac
18444 ac_dir=`$as_dirname -- "$ac_file" ||
18445 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18446 X"$ac_file" : 'X\(//\)[^/]' \| \
18447 X"$ac_file" : 'X\(//\)$' \| \
18448 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18449 $as_echo X"$ac_file" |
18450 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18451 s//\1/
18454 /^X\(\/\/\)[^/].*/{
18455 s//\1/
18458 /^X\(\/\/\)$/{
18459 s//\1/
18462 /^X\(\/\).*/{
18463 s//\1/
18466 s/.*/./; q'`
18467 as_dir="$ac_dir"; as_fn_mkdir_p
18468 ac_builddir=.
18470 case "$ac_dir" in
18471 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18473 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18474 # A ".." for each directory in $ac_dir_suffix.
18475 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18476 case $ac_top_builddir_sub in
18477 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18478 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18479 esac ;;
18480 esac
18481 ac_abs_top_builddir=$ac_pwd
18482 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18483 # for backward compatibility:
18484 ac_top_builddir=$ac_top_build_prefix
18486 case $srcdir in
18487 .) # We are building in place.
18488 ac_srcdir=.
18489 ac_top_srcdir=$ac_top_builddir_sub
18490 ac_abs_top_srcdir=$ac_pwd ;;
18491 [\\/]* | ?:[\\/]* ) # Absolute name.
18492 ac_srcdir=$srcdir$ac_dir_suffix;
18493 ac_top_srcdir=$srcdir
18494 ac_abs_top_srcdir=$srcdir ;;
18495 *) # Relative name.
18496 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18497 ac_top_srcdir=$ac_top_build_prefix$srcdir
18498 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18499 esac
18500 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18503 case $ac_mode in
18506 # CONFIG_FILE
18509 case $INSTALL in
18510 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18511 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18512 esac
18513 ac_MKDIR_P=$MKDIR_P
18514 case $MKDIR_P in
18515 [\\/$]* | ?:[\\/]* ) ;;
18516 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18517 esac
18518 _ACEOF
18520 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18521 # If the template does not know about datarootdir, expand it.
18522 # FIXME: This hack should be removed a few years after 2.60.
18523 ac_datarootdir_hack=; ac_datarootdir_seen=
18524 ac_sed_dataroot='
18525 /datarootdir/ {
18529 /@datadir@/p
18530 /@docdir@/p
18531 /@infodir@/p
18532 /@localedir@/p
18533 /@mandir@/p'
18534 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18535 *datarootdir*) ac_datarootdir_seen=yes;;
18536 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18538 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18539 _ACEOF
18540 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18541 ac_datarootdir_hack='
18542 s&@datadir@&$datadir&g
18543 s&@docdir@&$docdir&g
18544 s&@infodir@&$infodir&g
18545 s&@localedir@&$localedir&g
18546 s&@mandir@&$mandir&g
18547 s&\\\${datarootdir}&$datarootdir&g' ;;
18548 esac
18549 _ACEOF
18551 # Neutralize VPATH when `$srcdir' = `.'.
18552 # Shell code in configure.ac might set extrasub.
18553 # FIXME: do we really want to maintain this feature?
18554 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18555 ac_sed_extra="$ac_vpsub
18556 $extrasub
18557 _ACEOF
18558 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18560 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18561 s|@configure_input@|$ac_sed_conf_input|;t t
18562 s&@top_builddir@&$ac_top_builddir_sub&;t t
18563 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18564 s&@srcdir@&$ac_srcdir&;t t
18565 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18566 s&@top_srcdir@&$ac_top_srcdir&;t t
18567 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18568 s&@builddir@&$ac_builddir&;t t
18569 s&@abs_builddir@&$ac_abs_builddir&;t t
18570 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18571 s&@INSTALL@&$ac_INSTALL&;t t
18572 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18573 $ac_datarootdir_hack
18575 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18576 || as_fn_error "could not create $ac_file" "$LINENO" 5
18578 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18579 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18580 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18582 which seems to be undefined. Please make sure it is defined." >&5
18583 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18584 which seems to be undefined. Please make sure it is defined." >&2;}
18586 rm -f "$tmp/stdin"
18587 case $ac_file in
18588 -) cat "$tmp/out" && rm -f "$tmp/out";;
18589 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18590 esac \
18591 || as_fn_error "could not create $ac_file" "$LINENO" 5
18595 # CONFIG_HEADER
18597 if test x"$ac_file" != x-; then
18599 $as_echo "/* $configure_input */" \
18600 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18601 } >"$tmp/config.h" \
18602 || as_fn_error "could not create $ac_file" "$LINENO" 5
18603 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18604 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18605 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18606 else
18607 rm -f "$ac_file"
18608 mv "$tmp/config.h" "$ac_file" \
18609 || as_fn_error "could not create $ac_file" "$LINENO" 5
18611 else
18612 $as_echo "/* $configure_input */" \
18613 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18614 || as_fn_error "could not create -" "$LINENO" 5
18616 # Compute "$ac_file"'s index in $config_headers.
18617 _am_arg="$ac_file"
18618 _am_stamp_count=1
18619 for _am_header in $config_headers :; do
18620 case $_am_header in
18621 $_am_arg | $_am_arg:* )
18622 break ;;
18624 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18625 esac
18626 done
18627 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18628 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18629 X"$_am_arg" : 'X\(//\)[^/]' \| \
18630 X"$_am_arg" : 'X\(//\)$' \| \
18631 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18632 $as_echo X"$_am_arg" |
18633 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18634 s//\1/
18637 /^X\(\/\/\)[^/].*/{
18638 s//\1/
18641 /^X\(\/\/\)$/{
18642 s//\1/
18645 /^X\(\/\).*/{
18646 s//\1/
18649 s/.*/./; q'`/stamp-h$_am_stamp_count
18652 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18653 $as_echo "$as_me: executing $ac_file commands" >&6;}
18655 esac
18658 case $ac_file$ac_mode in
18659 "default-1":C)
18660 # Only add multilib support code if we just rebuilt the top-level
18661 # Makefile.
18662 case " $CONFIG_FILES " in
18663 *" Makefile "*)
18664 ac_file=Makefile . ${multi_basedir}/config-ml.in
18666 esac ;;
18667 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18668 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18669 # are listed without --file. Let's play safe and only enable the eval
18670 # if we detect the quoting.
18671 case $CONFIG_FILES in
18672 *\'*) eval set x "$CONFIG_FILES" ;;
18673 *) set x $CONFIG_FILES ;;
18674 esac
18675 shift
18676 for mf
18678 # Strip MF so we end up with the name of the file.
18679 mf=`echo "$mf" | sed -e 's/:.*$//'`
18680 # Check whether this is an Automake generated Makefile or not.
18681 # We used to match only the files named `Makefile.in', but
18682 # some people rename them; so instead we look at the file content.
18683 # Grep'ing the first line is not enough: some people post-process
18684 # each Makefile.in and add a new line on top of each file to say so.
18685 # Grep'ing the whole file is not good either: AIX grep has a line
18686 # limit of 2048, but all sed's we know have understand at least 4000.
18687 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18688 dirpart=`$as_dirname -- "$mf" ||
18689 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18690 X"$mf" : 'X\(//\)[^/]' \| \
18691 X"$mf" : 'X\(//\)$' \| \
18692 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18693 $as_echo X"$mf" |
18694 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18695 s//\1/
18698 /^X\(\/\/\)[^/].*/{
18699 s//\1/
18702 /^X\(\/\/\)$/{
18703 s//\1/
18706 /^X\(\/\).*/{
18707 s//\1/
18710 s/.*/./; q'`
18711 else
18712 continue
18714 # Extract the definition of DEPDIR, am__include, and am__quote
18715 # from the Makefile without running `make'.
18716 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18717 test -z "$DEPDIR" && continue
18718 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18719 test -z "am__include" && continue
18720 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18721 # When using ansi2knr, U may be empty or an underscore; expand it
18722 U=`sed -n 's/^U = //p' < "$mf"`
18723 # Find all dependency output files, they are included files with
18724 # $(DEPDIR) in their names. We invoke sed twice because it is the
18725 # simplest approach to changing $(DEPDIR) to its actual value in the
18726 # expansion.
18727 for file in `sed -n "
18728 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18729 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18730 # Make sure the directory exists.
18731 test -f "$dirpart/$file" && continue
18732 fdir=`$as_dirname -- "$file" ||
18733 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18734 X"$file" : 'X\(//\)[^/]' \| \
18735 X"$file" : 'X\(//\)$' \| \
18736 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18737 $as_echo X"$file" |
18738 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18739 s//\1/
18742 /^X\(\/\/\)[^/].*/{
18743 s//\1/
18746 /^X\(\/\/\)$/{
18747 s//\1/
18750 /^X\(\/\).*/{
18751 s//\1/
18754 s/.*/./; q'`
18755 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18756 # echo "creating $dirpart/$file"
18757 echo '# dummy' > "$dirpart/$file"
18758 done
18759 done
18762 "libtool":C)
18764 # See if we are running on zsh, and set the options which allow our
18765 # commands through without removal of \ escapes.
18766 if test -n "${ZSH_VERSION+set}" ; then
18767 setopt NO_GLOB_SUBST
18770 cfgfile="${ofile}T"
18771 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18772 $RM "$cfgfile"
18774 cat <<_LT_EOF >> "$cfgfile"
18775 #! $SHELL
18777 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18778 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18779 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18780 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18782 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18783 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18784 # Written by Gordon Matzigkeit, 1996
18786 # This file is part of GNU Libtool.
18788 # GNU Libtool is free software; you can redistribute it and/or
18789 # modify it under the terms of the GNU General Public License as
18790 # published by the Free Software Foundation; either version 2 of
18791 # the License, or (at your option) any later version.
18793 # As a special exception to the GNU General Public License,
18794 # if you distribute this file as part of a program or library that
18795 # is built using GNU Libtool, you may include this file under the
18796 # same distribution terms that you use for the rest of that program.
18798 # GNU Libtool is distributed in the hope that it will be useful,
18799 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18800 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18801 # GNU General Public License for more details.
18803 # You should have received a copy of the GNU General Public License
18804 # along with GNU Libtool; see the file COPYING. If not, a copy
18805 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18806 # obtained by writing to the Free Software Foundation, Inc.,
18807 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18810 # The names of the tagged configurations supported by this script.
18811 available_tags="FC "
18813 # ### BEGIN LIBTOOL CONFIG
18815 # Which release of libtool.m4 was used?
18816 macro_version=$macro_version
18817 macro_revision=$macro_revision
18819 # Whether or not to build shared libraries.
18820 build_libtool_libs=$enable_shared
18822 # Whether or not to build static libraries.
18823 build_old_libs=$enable_static
18825 # What type of objects to build.
18826 pic_mode=$pic_mode
18828 # Whether or not to optimize for fast installation.
18829 fast_install=$enable_fast_install
18831 # Shell to use when invoking shell scripts.
18832 SHELL=$lt_SHELL
18834 # An echo program that protects backslashes.
18835 ECHO=$lt_ECHO
18837 # The host system.
18838 host_alias=$host_alias
18839 host=$host
18840 host_os=$host_os
18842 # The build system.
18843 build_alias=$build_alias
18844 build=$build
18845 build_os=$build_os
18847 # A sed program that does not truncate output.
18848 SED=$lt_SED
18850 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18851 Xsed="\$SED -e 1s/^X//"
18853 # A grep program that handles long lines.
18854 GREP=$lt_GREP
18856 # An ERE matcher.
18857 EGREP=$lt_EGREP
18859 # A literal string matcher.
18860 FGREP=$lt_FGREP
18862 # A BSD- or MS-compatible name lister.
18863 NM=$lt_NM
18865 # Whether we need soft or hard links.
18866 LN_S=$lt_LN_S
18868 # What is the maximum length of a command?
18869 max_cmd_len=$max_cmd_len
18871 # Object file suffix (normally "o").
18872 objext=$ac_objext
18874 # Executable file suffix (normally "").
18875 exeext=$exeext
18877 # whether the shell understands "unset".
18878 lt_unset=$lt_unset
18880 # turn spaces into newlines.
18881 SP2NL=$lt_lt_SP2NL
18883 # turn newlines into spaces.
18884 NL2SP=$lt_lt_NL2SP
18886 # An object symbol dumper.
18887 OBJDUMP=$lt_OBJDUMP
18889 # Method to check whether dependent libraries are shared objects.
18890 deplibs_check_method=$lt_deplibs_check_method
18892 # Command to use when deplibs_check_method == "file_magic".
18893 file_magic_cmd=$lt_file_magic_cmd
18895 # The archiver.
18896 AR=$lt_AR
18897 AR_FLAGS=$lt_AR_FLAGS
18899 # A symbol stripping program.
18900 STRIP=$lt_STRIP
18902 # Commands used to install an old-style archive.
18903 RANLIB=$lt_RANLIB
18904 old_postinstall_cmds=$lt_old_postinstall_cmds
18905 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18907 # Whether to use a lock for old archive extraction.
18908 lock_old_archive_extraction=$lock_old_archive_extraction
18910 # A C compiler.
18911 LTCC=$lt_CC
18913 # LTCC compiler flags.
18914 LTCFLAGS=$lt_CFLAGS
18916 # Take the output of nm and produce a listing of raw symbols and C names.
18917 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18919 # Transform the output of nm in a proper C declaration.
18920 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18922 # Transform the output of nm in a C name address pair.
18923 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18925 # Transform the output of nm in a C name address pair when lib prefix is needed.
18926 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18928 # The name of the directory that contains temporary libtool files.
18929 objdir=$objdir
18931 # Used to examine libraries when file_magic_cmd begins with "file".
18932 MAGIC_CMD=$MAGIC_CMD
18934 # Must we lock files when doing compilation?
18935 need_locks=$lt_need_locks
18937 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18938 DSYMUTIL=$lt_DSYMUTIL
18940 # Tool to change global to local symbols on Mac OS X.
18941 NMEDIT=$lt_NMEDIT
18943 # Tool to manipulate fat objects and archives on Mac OS X.
18944 LIPO=$lt_LIPO
18946 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18947 OTOOL=$lt_OTOOL
18949 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18950 OTOOL64=$lt_OTOOL64
18952 # Old archive suffix (normally "a").
18953 libext=$libext
18955 # Shared library suffix (normally ".so").
18956 shrext_cmds=$lt_shrext_cmds
18958 # The commands to extract the exported symbol list from a shared archive.
18959 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18961 # Variables whose values should be saved in libtool wrapper scripts and
18962 # restored at link time.
18963 variables_saved_for_relink=$lt_variables_saved_for_relink
18965 # Do we need the "lib" prefix for modules?
18966 need_lib_prefix=$need_lib_prefix
18968 # Do we need a version for libraries?
18969 need_version=$need_version
18971 # Library versioning type.
18972 version_type=$version_type
18974 # Shared library runtime path variable.
18975 runpath_var=$runpath_var
18977 # Shared library path variable.
18978 shlibpath_var=$shlibpath_var
18980 # Is shlibpath searched before the hard-coded library search path?
18981 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18983 # Format of library name prefix.
18984 libname_spec=$lt_libname_spec
18986 # List of archive names. First name is the real one, the rest are links.
18987 # The last name is the one that the linker finds with -lNAME
18988 library_names_spec=$lt_library_names_spec
18990 # The coded name of the library, if different from the real name.
18991 soname_spec=$lt_soname_spec
18993 # Permission mode override for installation of shared libraries.
18994 install_override_mode=$lt_install_override_mode
18996 # Command to use after installation of a shared archive.
18997 postinstall_cmds=$lt_postinstall_cmds
18999 # Command to use after uninstallation of a shared archive.
19000 postuninstall_cmds=$lt_postuninstall_cmds
19002 # Commands used to finish a libtool library installation in a directory.
19003 finish_cmds=$lt_finish_cmds
19005 # As "finish_cmds", except a single script fragment to be evaled but
19006 # not shown.
19007 finish_eval=$lt_finish_eval
19009 # Whether we should hardcode library paths into libraries.
19010 hardcode_into_libs=$hardcode_into_libs
19012 # Compile-time system search path for libraries.
19013 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19015 # Run-time system search path for libraries.
19016 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19018 # Whether dlopen is supported.
19019 dlopen_support=$enable_dlopen
19021 # Whether dlopen of programs is supported.
19022 dlopen_self=$enable_dlopen_self
19024 # Whether dlopen of statically linked programs is supported.
19025 dlopen_self_static=$enable_dlopen_self_static
19027 # Commands to strip libraries.
19028 old_striplib=$lt_old_striplib
19029 striplib=$lt_striplib
19032 # The linker used to build libraries.
19033 LD=$lt_LD
19035 # How to create reloadable object files.
19036 reload_flag=$lt_reload_flag
19037 reload_cmds=$lt_reload_cmds
19039 # Commands used to build an old-style archive.
19040 old_archive_cmds=$lt_old_archive_cmds
19042 # A language specific compiler.
19043 CC=$lt_compiler
19045 # Is the compiler the GNU compiler?
19046 with_gcc=$GCC
19048 # Compiler flag to turn off builtin functions.
19049 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19051 # How to pass a linker flag through the compiler.
19052 wl=$lt_lt_prog_compiler_wl
19054 # Additional compiler flags for building library objects.
19055 pic_flag=$lt_lt_prog_compiler_pic
19057 # Compiler flag to prevent dynamic linking.
19058 link_static_flag=$lt_lt_prog_compiler_static
19060 # Does compiler simultaneously support -c and -o options?
19061 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19063 # Whether or not to add -lc for building shared libraries.
19064 build_libtool_need_lc=$archive_cmds_need_lc
19066 # Whether or not to disallow shared libs when runtime libs are static.
19067 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19069 # Compiler flag to allow reflexive dlopens.
19070 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19072 # Compiler flag to generate shared objects directly from archives.
19073 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19075 # Whether the compiler copes with passing no objects directly.
19076 compiler_needs_object=$lt_compiler_needs_object
19078 # Create an old-style archive from a shared archive.
19079 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19081 # Create a temporary old-style archive to link instead of a shared archive.
19082 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19084 # Commands used to build a shared archive.
19085 archive_cmds=$lt_archive_cmds
19086 archive_expsym_cmds=$lt_archive_expsym_cmds
19088 # Commands used to build a loadable module if different from building
19089 # a shared archive.
19090 module_cmds=$lt_module_cmds
19091 module_expsym_cmds=$lt_module_expsym_cmds
19093 # Whether we are building with GNU ld or not.
19094 with_gnu_ld=$lt_with_gnu_ld
19096 # Flag that allows shared libraries with undefined symbols to be built.
19097 allow_undefined_flag=$lt_allow_undefined_flag
19099 # Flag that enforces no undefined symbols.
19100 no_undefined_flag=$lt_no_undefined_flag
19102 # Flag to hardcode \$libdir into a binary during linking.
19103 # This must work even if \$libdir does not exist
19104 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19106 # If ld is used when linking, flag to hardcode \$libdir into a binary
19107 # during linking. This must work even if \$libdir does not exist.
19108 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19110 # Whether we need a single "-rpath" flag with a separated argument.
19111 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19113 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19114 # DIR into the resulting binary.
19115 hardcode_direct=$hardcode_direct
19117 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19118 # DIR into the resulting binary and the resulting library dependency is
19119 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19120 # library is relocated.
19121 hardcode_direct_absolute=$hardcode_direct_absolute
19123 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19124 # into the resulting binary.
19125 hardcode_minus_L=$hardcode_minus_L
19127 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19128 # into the resulting binary.
19129 hardcode_shlibpath_var=$hardcode_shlibpath_var
19131 # Set to "yes" if building a shared library automatically hardcodes DIR
19132 # into the library and all subsequent libraries and executables linked
19133 # against it.
19134 hardcode_automatic=$hardcode_automatic
19136 # Set to yes if linker adds runtime paths of dependent libraries
19137 # to runtime path list.
19138 inherit_rpath=$inherit_rpath
19140 # Whether libtool must link a program against all its dependency libraries.
19141 link_all_deplibs=$link_all_deplibs
19143 # Fix the shell variable \$srcfile for the compiler.
19144 fix_srcfile_path=$lt_fix_srcfile_path
19146 # Set to "yes" if exported symbols are required.
19147 always_export_symbols=$always_export_symbols
19149 # The commands to list exported symbols.
19150 export_symbols_cmds=$lt_export_symbols_cmds
19152 # Symbols that should not be listed in the preloaded symbols.
19153 exclude_expsyms=$lt_exclude_expsyms
19155 # Symbols that must always be exported.
19156 include_expsyms=$lt_include_expsyms
19158 # Commands necessary for linking programs (against libraries) with templates.
19159 prelink_cmds=$lt_prelink_cmds
19161 # Specify filename containing input files.
19162 file_list_spec=$lt_file_list_spec
19164 # How to hardcode a shared library path into an executable.
19165 hardcode_action=$hardcode_action
19167 # The directories searched by this compiler when creating a shared library.
19168 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19170 # Dependencies to place before and after the objects being linked to
19171 # create a shared library.
19172 predep_objects=$lt_predep_objects
19173 postdep_objects=$lt_postdep_objects
19174 predeps=$lt_predeps
19175 postdeps=$lt_postdeps
19177 # The library search path used internally by the compiler when linking
19178 # a shared library.
19179 compiler_lib_search_path=$lt_compiler_lib_search_path
19181 # ### END LIBTOOL CONFIG
19183 _LT_EOF
19185 case $host_os in
19186 aix3*)
19187 cat <<\_LT_EOF >> "$cfgfile"
19188 # AIX sometimes has problems with the GCC collect2 program. For some
19189 # reason, if we set the COLLECT_NAMES environment variable, the problems
19190 # vanish in a puff of smoke.
19191 if test "X${COLLECT_NAMES+set}" != Xset; then
19192 COLLECT_NAMES=
19193 export COLLECT_NAMES
19195 _LT_EOF
19197 esac
19200 ltmain="$ac_aux_dir/ltmain.sh"
19203 # We use sed instead of cat because bash on DJGPP gets confused if
19204 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19205 # text mode, it properly converts lines to CR/LF. This bash problem
19206 # is reportedly fixed, but why not run on old versions too?
19207 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19208 || (rm -f "$cfgfile"; exit 1)
19210 case $xsi_shell in
19211 yes)
19212 cat << \_LT_EOF >> "$cfgfile"
19214 # func_dirname file append nondir_replacement
19215 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19216 # otherwise set result to NONDIR_REPLACEMENT.
19217 func_dirname ()
19219 case ${1} in
19220 */*) func_dirname_result="${1%/*}${2}" ;;
19221 * ) func_dirname_result="${3}" ;;
19222 esac
19225 # func_basename file
19226 func_basename ()
19228 func_basename_result="${1##*/}"
19231 # func_dirname_and_basename file append nondir_replacement
19232 # perform func_basename and func_dirname in a single function
19233 # call:
19234 # dirname: Compute the dirname of FILE. If nonempty,
19235 # add APPEND to the result, otherwise set result
19236 # to NONDIR_REPLACEMENT.
19237 # value returned in "$func_dirname_result"
19238 # basename: Compute filename of FILE.
19239 # value retuned in "$func_basename_result"
19240 # Implementation must be kept synchronized with func_dirname
19241 # and func_basename. For efficiency, we do not delegate to
19242 # those functions but instead duplicate the functionality here.
19243 func_dirname_and_basename ()
19245 case ${1} in
19246 */*) func_dirname_result="${1%/*}${2}" ;;
19247 * ) func_dirname_result="${3}" ;;
19248 esac
19249 func_basename_result="${1##*/}"
19252 # func_stripname prefix suffix name
19253 # strip PREFIX and SUFFIX off of NAME.
19254 # PREFIX and SUFFIX must not contain globbing or regex special
19255 # characters, hashes, percent signs, but SUFFIX may contain a leading
19256 # dot (in which case that matches only a dot).
19257 func_stripname ()
19259 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19260 # positional parameters, so assign one to ordinary parameter first.
19261 func_stripname_result=${3}
19262 func_stripname_result=${func_stripname_result#"${1}"}
19263 func_stripname_result=${func_stripname_result%"${2}"}
19266 # func_opt_split
19267 func_opt_split ()
19269 func_opt_split_opt=${1%%=*}
19270 func_opt_split_arg=${1#*=}
19273 # func_lo2o object
19274 func_lo2o ()
19276 case ${1} in
19277 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19278 *) func_lo2o_result=${1} ;;
19279 esac
19282 # func_xform libobj-or-source
19283 func_xform ()
19285 func_xform_result=${1%.*}.lo
19288 # func_arith arithmetic-term...
19289 func_arith ()
19291 func_arith_result=$(( $* ))
19294 # func_len string
19295 # STRING may not start with a hyphen.
19296 func_len ()
19298 func_len_result=${#1}
19301 _LT_EOF
19303 *) # Bourne compatible functions.
19304 cat << \_LT_EOF >> "$cfgfile"
19306 # func_dirname file append nondir_replacement
19307 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19308 # otherwise set result to NONDIR_REPLACEMENT.
19309 func_dirname ()
19311 # Extract subdirectory from the argument.
19312 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19313 if test "X$func_dirname_result" = "X${1}"; then
19314 func_dirname_result="${3}"
19315 else
19316 func_dirname_result="$func_dirname_result${2}"
19320 # func_basename file
19321 func_basename ()
19323 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19327 # func_stripname prefix suffix name
19328 # strip PREFIX and SUFFIX off of NAME.
19329 # PREFIX and SUFFIX must not contain globbing or regex special
19330 # characters, hashes, percent signs, but SUFFIX may contain a leading
19331 # dot (in which case that matches only a dot).
19332 # func_strip_suffix prefix name
19333 func_stripname ()
19335 case ${2} in
19336 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19337 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19338 esac
19341 # sed scripts:
19342 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19343 my_sed_long_arg='1s/^-[^=]*=//'
19345 # func_opt_split
19346 func_opt_split ()
19348 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19349 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19352 # func_lo2o object
19353 func_lo2o ()
19355 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19358 # func_xform libobj-or-source
19359 func_xform ()
19361 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19364 # func_arith arithmetic-term...
19365 func_arith ()
19367 func_arith_result=`expr "$@"`
19370 # func_len string
19371 # STRING may not start with a hyphen.
19372 func_len ()
19374 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19377 _LT_EOF
19378 esac
19380 case $lt_shell_append in
19381 yes)
19382 cat << \_LT_EOF >> "$cfgfile"
19384 # func_append var value
19385 # Append VALUE to the end of shell variable VAR.
19386 func_append ()
19388 eval "$1+=\$2"
19390 _LT_EOF
19393 cat << \_LT_EOF >> "$cfgfile"
19395 # func_append var value
19396 # Append VALUE to the end of shell variable VAR.
19397 func_append ()
19399 eval "$1=\$$1\$2"
19402 _LT_EOF
19404 esac
19407 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19408 || (rm -f "$cfgfile"; exit 1)
19410 mv -f "$cfgfile" "$ofile" ||
19411 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19412 chmod +x "$ofile"
19415 cat <<_LT_EOF >> "$ofile"
19417 # ### BEGIN LIBTOOL TAG CONFIG: FC
19419 # The linker used to build libraries.
19420 LD=$lt_LD_FC
19422 # How to create reloadable object files.
19423 reload_flag=$lt_reload_flag_FC
19424 reload_cmds=$lt_reload_cmds_FC
19426 # Commands used to build an old-style archive.
19427 old_archive_cmds=$lt_old_archive_cmds_FC
19429 # A language specific compiler.
19430 CC=$lt_compiler_FC
19432 # Is the compiler the GNU compiler?
19433 with_gcc=$GCC_FC
19435 # Compiler flag to turn off builtin functions.
19436 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
19438 # How to pass a linker flag through the compiler.
19439 wl=$lt_lt_prog_compiler_wl_FC
19441 # Additional compiler flags for building library objects.
19442 pic_flag=$lt_lt_prog_compiler_pic_FC
19444 # Compiler flag to prevent dynamic linking.
19445 link_static_flag=$lt_lt_prog_compiler_static_FC
19447 # Does compiler simultaneously support -c and -o options?
19448 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
19450 # Whether or not to add -lc for building shared libraries.
19451 build_libtool_need_lc=$archive_cmds_need_lc_FC
19453 # Whether or not to disallow shared libs when runtime libs are static.
19454 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
19456 # Compiler flag to allow reflexive dlopens.
19457 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
19459 # Compiler flag to generate shared objects directly from archives.
19460 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
19462 # Whether the compiler copes with passing no objects directly.
19463 compiler_needs_object=$lt_compiler_needs_object_FC
19465 # Create an old-style archive from a shared archive.
19466 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
19468 # Create a temporary old-style archive to link instead of a shared archive.
19469 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
19471 # Commands used to build a shared archive.
19472 archive_cmds=$lt_archive_cmds_FC
19473 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
19475 # Commands used to build a loadable module if different from building
19476 # a shared archive.
19477 module_cmds=$lt_module_cmds_FC
19478 module_expsym_cmds=$lt_module_expsym_cmds_FC
19480 # Whether we are building with GNU ld or not.
19481 with_gnu_ld=$lt_with_gnu_ld_FC
19483 # Flag that allows shared libraries with undefined symbols to be built.
19484 allow_undefined_flag=$lt_allow_undefined_flag_FC
19486 # Flag that enforces no undefined symbols.
19487 no_undefined_flag=$lt_no_undefined_flag_FC
19489 # Flag to hardcode \$libdir into a binary during linking.
19490 # This must work even if \$libdir does not exist
19491 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
19493 # If ld is used when linking, flag to hardcode \$libdir into a binary
19494 # during linking. This must work even if \$libdir does not exist.
19495 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
19497 # Whether we need a single "-rpath" flag with a separated argument.
19498 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
19500 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19501 # DIR into the resulting binary.
19502 hardcode_direct=$hardcode_direct_FC
19504 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19505 # DIR into the resulting binary and the resulting library dependency is
19506 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19507 # library is relocated.
19508 hardcode_direct_absolute=$hardcode_direct_absolute_FC
19510 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19511 # into the resulting binary.
19512 hardcode_minus_L=$hardcode_minus_L_FC
19514 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19515 # into the resulting binary.
19516 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
19518 # Set to "yes" if building a shared library automatically hardcodes DIR
19519 # into the library and all subsequent libraries and executables linked
19520 # against it.
19521 hardcode_automatic=$hardcode_automatic_FC
19523 # Set to yes if linker adds runtime paths of dependent libraries
19524 # to runtime path list.
19525 inherit_rpath=$inherit_rpath_FC
19527 # Whether libtool must link a program against all its dependency libraries.
19528 link_all_deplibs=$link_all_deplibs_FC
19530 # Fix the shell variable \$srcfile for the compiler.
19531 fix_srcfile_path=$lt_fix_srcfile_path_FC
19533 # Set to "yes" if exported symbols are required.
19534 always_export_symbols=$always_export_symbols_FC
19536 # The commands to list exported symbols.
19537 export_symbols_cmds=$lt_export_symbols_cmds_FC
19539 # Symbols that should not be listed in the preloaded symbols.
19540 exclude_expsyms=$lt_exclude_expsyms_FC
19542 # Symbols that must always be exported.
19543 include_expsyms=$lt_include_expsyms_FC
19545 # Commands necessary for linking programs (against libraries) with templates.
19546 prelink_cmds=$lt_prelink_cmds_FC
19548 # Specify filename containing input files.
19549 file_list_spec=$lt_file_list_spec_FC
19551 # How to hardcode a shared library path into an executable.
19552 hardcode_action=$hardcode_action_FC
19554 # The directories searched by this compiler when creating a shared library.
19555 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
19557 # Dependencies to place before and after the objects being linked to
19558 # create a shared library.
19559 predep_objects=$lt_predep_objects_FC
19560 postdep_objects=$lt_postdep_objects_FC
19561 predeps=$lt_predeps_FC
19562 postdeps=$lt_postdeps_FC
19564 # The library search path used internally by the compiler when linking
19565 # a shared library.
19566 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
19568 # ### END LIBTOOL TAG CONFIG: FC
19569 _LT_EOF
19572 "gstdint.h":C)
19573 if test "$GCC" = yes; then
19574 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
19575 else
19576 echo "/* generated for $CC */" > tmp-stdint.h
19579 sed 's/^ *//' >> tmp-stdint.h <<EOF
19581 #ifndef GCC_GENERATED_STDINT_H
19582 #define GCC_GENERATED_STDINT_H 1
19584 #include <sys/types.h>
19587 if test "$acx_cv_header_stdint" != stdint.h; then
19588 echo "#include <stddef.h>" >> tmp-stdint.h
19590 if test "$acx_cv_header_stdint" != stddef.h; then
19591 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
19594 sed 's/^ *//' >> tmp-stdint.h <<EOF
19595 /* glibc uses these symbols as guards to prevent redefinitions. */
19596 #ifdef __int8_t_defined
19597 #define _INT8_T
19598 #define _INT16_T
19599 #define _INT32_T
19600 #endif
19601 #ifdef __uint32_t_defined
19602 #define _UINT32_T
19603 #endif
19607 # ----------------- done header, emit basic int types -------------
19608 if test "$acx_cv_header_stdint" = stddef.h; then
19609 sed 's/^ *//' >> tmp-stdint.h <<EOF
19611 #ifndef _UINT8_T
19612 #define _UINT8_T
19613 #ifndef __uint8_t_defined
19614 #define __uint8_t_defined
19615 #ifndef uint8_t
19616 typedef unsigned $acx_cv_type_int8_t uint8_t;
19617 #endif
19618 #endif
19619 #endif
19621 #ifndef _UINT16_T
19622 #define _UINT16_T
19623 #ifndef __uint16_t_defined
19624 #define __uint16_t_defined
19625 #ifndef uint16_t
19626 typedef unsigned $acx_cv_type_int16_t uint16_t;
19627 #endif
19628 #endif
19629 #endif
19631 #ifndef _UINT32_T
19632 #define _UINT32_T
19633 #ifndef __uint32_t_defined
19634 #define __uint32_t_defined
19635 #ifndef uint32_t
19636 typedef unsigned $acx_cv_type_int32_t uint32_t;
19637 #endif
19638 #endif
19639 #endif
19641 #ifndef _INT8_T
19642 #define _INT8_T
19643 #ifndef __int8_t_defined
19644 #define __int8_t_defined
19645 #ifndef int8_t
19646 typedef $acx_cv_type_int8_t int8_t;
19647 #endif
19648 #endif
19649 #endif
19651 #ifndef _INT16_T
19652 #define _INT16_T
19653 #ifndef __int16_t_defined
19654 #define __int16_t_defined
19655 #ifndef int16_t
19656 typedef $acx_cv_type_int16_t int16_t;
19657 #endif
19658 #endif
19659 #endif
19661 #ifndef _INT32_T
19662 #define _INT32_T
19663 #ifndef __int32_t_defined
19664 #define __int32_t_defined
19665 #ifndef int32_t
19666 typedef $acx_cv_type_int32_t int32_t;
19667 #endif
19668 #endif
19669 #endif
19671 elif test "$ac_cv_type_u_int32_t" = yes; then
19672 sed 's/^ *//' >> tmp-stdint.h <<EOF
19674 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
19675 #ifndef _INT8_T
19676 #define _INT8_T
19677 #endif
19678 #ifndef _INT16_T
19679 #define _INT16_T
19680 #endif
19681 #ifndef _INT32_T
19682 #define _INT32_T
19683 #endif
19685 #ifndef _UINT8_T
19686 #define _UINT8_T
19687 #ifndef __uint8_t_defined
19688 #define __uint8_t_defined
19689 #ifndef uint8_t
19690 typedef u_int8_t uint8_t;
19691 #endif
19692 #endif
19693 #endif
19695 #ifndef _UINT16_T
19696 #define _UINT16_T
19697 #ifndef __uint16_t_defined
19698 #define __uint16_t_defined
19699 #ifndef uint16_t
19700 typedef u_int16_t uint16_t;
19701 #endif
19702 #endif
19703 #endif
19705 #ifndef _UINT32_T
19706 #define _UINT32_T
19707 #ifndef __uint32_t_defined
19708 #define __uint32_t_defined
19709 #ifndef uint32_t
19710 typedef u_int32_t uint32_t;
19711 #endif
19712 #endif
19713 #endif
19715 else
19716 sed 's/^ *//' >> tmp-stdint.h <<EOF
19718 /* Some systems have guard macros to prevent redefinitions, define them. */
19719 #ifndef _INT8_T
19720 #define _INT8_T
19721 #endif
19722 #ifndef _INT16_T
19723 #define _INT16_T
19724 #endif
19725 #ifndef _INT32_T
19726 #define _INT32_T
19727 #endif
19728 #ifndef _UINT8_T
19729 #define _UINT8_T
19730 #endif
19731 #ifndef _UINT16_T
19732 #define _UINT16_T
19733 #endif
19734 #ifndef _UINT32_T
19735 #define _UINT32_T
19736 #endif
19740 # ------------- done basic int types, emit int64_t types ------------
19741 if test "$ac_cv_type_uint64_t" = yes; then
19742 sed 's/^ *//' >> tmp-stdint.h <<EOF
19744 /* system headers have good uint64_t and int64_t */
19745 #ifndef _INT64_T
19746 #define _INT64_T
19747 #endif
19748 #ifndef _UINT64_T
19749 #define _UINT64_T
19750 #endif
19752 elif test "$ac_cv_type_u_int64_t" = yes; then
19753 sed 's/^ *//' >> tmp-stdint.h <<EOF
19755 /* system headers have an u_int64_t (and int64_t) */
19756 #ifndef _INT64_T
19757 #define _INT64_T
19758 #endif
19759 #ifndef _UINT64_T
19760 #define _UINT64_T
19761 #ifndef __uint64_t_defined
19762 #define __uint64_t_defined
19763 #ifndef uint64_t
19764 typedef u_int64_t uint64_t;
19765 #endif
19766 #endif
19767 #endif
19769 elif test -n "$acx_cv_type_int64_t"; then
19770 sed 's/^ *//' >> tmp-stdint.h <<EOF
19772 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
19773 #ifndef _INT64_T
19774 #define _INT64_T
19775 #ifndef int64_t
19776 typedef $acx_cv_type_int64_t int64_t;
19777 #endif
19778 #endif
19779 #ifndef _UINT64_T
19780 #define _UINT64_T
19781 #ifndef __uint64_t_defined
19782 #define __uint64_t_defined
19783 #ifndef uint64_t
19784 typedef unsigned $acx_cv_type_int64_t uint64_t;
19785 #endif
19786 #endif
19787 #endif
19789 else
19790 sed 's/^ *//' >> tmp-stdint.h <<EOF
19792 /* some common heuristics for int64_t, using compiler-specific tests */
19793 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
19794 #ifndef _INT64_T
19795 #define _INT64_T
19796 #ifndef __int64_t_defined
19797 #ifndef int64_t
19798 typedef long long int64_t;
19799 #endif
19800 #endif
19801 #endif
19802 #ifndef _UINT64_T
19803 #define _UINT64_T
19804 #ifndef uint64_t
19805 typedef unsigned long long uint64_t;
19806 #endif
19807 #endif
19809 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
19810 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
19811 does not implement __extension__. But that compiler doesn't define
19812 __GNUC_MINOR__. */
19813 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
19814 # define __extension__
19815 # endif
19817 # ifndef _INT64_T
19818 # define _INT64_T
19819 # ifndef int64_t
19820 __extension__ typedef long long int64_t;
19821 # endif
19822 # endif
19823 # ifndef _UINT64_T
19824 # define _UINT64_T
19825 # ifndef uint64_t
19826 __extension__ typedef unsigned long long uint64_t;
19827 # endif
19828 # endif
19830 #elif !defined __STRICT_ANSI__
19831 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
19833 # ifndef _INT64_T
19834 # define _INT64_T
19835 # ifndef int64_t
19836 typedef __int64 int64_t;
19837 # endif
19838 # endif
19839 # ifndef _UINT64_T
19840 # define _UINT64_T
19841 # ifndef uint64_t
19842 typedef unsigned __int64 uint64_t;
19843 # endif
19844 # endif
19845 # endif /* compiler */
19847 #endif /* ANSI version */
19851 # ------------- done int64_t types, emit intptr types ------------
19852 if test "$ac_cv_type_uintptr_t" != yes; then
19853 sed 's/^ *//' >> tmp-stdint.h <<EOF
19855 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
19856 #ifndef __uintptr_t_defined
19857 #ifndef uintptr_t
19858 typedef u$acx_cv_type_intptr_t uintptr_t;
19859 #endif
19860 #endif
19861 #ifndef __intptr_t_defined
19862 #ifndef intptr_t
19863 typedef $acx_cv_type_intptr_t intptr_t;
19864 #endif
19865 #endif
19869 # ------------- done intptr types, emit int_least types ------------
19870 if test "$ac_cv_type_int_least32_t" != yes; then
19871 sed 's/^ *//' >> tmp-stdint.h <<EOF
19873 /* Define int_least types */
19874 typedef int8_t int_least8_t;
19875 typedef int16_t int_least16_t;
19876 typedef int32_t int_least32_t;
19877 #ifdef _INT64_T
19878 typedef int64_t int_least64_t;
19879 #endif
19881 typedef uint8_t uint_least8_t;
19882 typedef uint16_t uint_least16_t;
19883 typedef uint32_t uint_least32_t;
19884 #ifdef _UINT64_T
19885 typedef uint64_t uint_least64_t;
19886 #endif
19890 # ------------- done intptr types, emit int_fast types ------------
19891 if test "$ac_cv_type_int_fast32_t" != yes; then
19892 sed 's/^ *//' >> tmp-stdint.h <<EOF
19894 /* Define int_fast types. short is often slow */
19895 typedef int8_t int_fast8_t;
19896 typedef int int_fast16_t;
19897 typedef int32_t int_fast32_t;
19898 #ifdef _INT64_T
19899 typedef int64_t int_fast64_t;
19900 #endif
19902 typedef uint8_t uint_fast8_t;
19903 typedef unsigned int uint_fast16_t;
19904 typedef uint32_t uint_fast32_t;
19905 #ifdef _UINT64_T
19906 typedef uint64_t uint_fast64_t;
19907 #endif
19911 if test "$ac_cv_type_uintmax_t" != yes; then
19912 sed 's/^ *//' >> tmp-stdint.h <<EOF
19914 /* Define intmax based on what we found */
19915 #ifndef intmax_t
19916 #ifdef _INT64_T
19917 typedef int64_t intmax_t;
19918 #else
19919 typedef long intmax_t;
19920 #endif
19921 #endif
19922 #ifndef uintmax_t
19923 #ifdef _UINT64_T
19924 typedef uint64_t uintmax_t;
19925 #else
19926 typedef unsigned long uintmax_t;
19927 #endif
19928 #endif
19932 sed 's/^ *//' >> tmp-stdint.h <<EOF
19934 #endif /* GCC_GENERATED_STDINT_H */
19937 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
19938 rm -f tmp-stdint.h
19939 else
19940 mv -f tmp-stdint.h gstdint.h
19945 esac
19946 done # for ac_tag
19949 as_fn_exit 0
19950 _ACEOF
19951 ac_clean_files=$ac_clean_files_save
19953 test $ac_write_fail = 0 ||
19954 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19957 # configure is writing to config.log, and then calls config.status.
19958 # config.status does its own redirection, appending to config.log.
19959 # Unfortunately, on DOS this fails, as config.log is still kept open
19960 # by configure, so config.status won't be able to write to it; its
19961 # output is simply discarded. So we exec the FD to /dev/null,
19962 # effectively closing config.log, so it can be properly (re)opened and
19963 # appended to by config.status. When coming back to configure, we
19964 # need to make the FD available again.
19965 if test "$no_create" != yes; then
19966 ac_cs_success=:
19967 ac_config_status_args=
19968 test "$silent" = yes &&
19969 ac_config_status_args="$ac_config_status_args --quiet"
19970 exec 5>/dev/null
19971 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19972 exec 5>>config.log
19973 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19974 # would make configure fail if this is the last instruction.
19975 $ac_cs_success || as_fn_exit $?
19977 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19979 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}