]> git.ipfire.org Git - thirdparty/gcc.git/blob - libgomp/configure
/
[thirdparty/gcc.git] / libgomp / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for GNU OpenMP Runtime Library 1.0.
4 #
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.
8 #
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 ## -------------------- ##
14
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 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
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"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
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=';'
78 }
79 fi
80
81
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"
88
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
94 do
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
100
101 ;;
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
107 fi
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
111 fi
112
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='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
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 *) :
147 ;;
148 esac
149 fi
150 "
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; }
156
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 :
163
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
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
172
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
185 fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
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
192 do
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
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
206 fi
207 fi
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
217
218
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+"$@"}
228 fi
229
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."
241 fi
242 exit 1
243 fi
244 fi
245 fi
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
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260 { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269 return $1
270 } # as_fn_set_status
271
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 ()
276 {
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
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/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
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"
326
327
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 ()
337 {
338 eval $1+=\$2
339 }'
340 else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345 fi # as_fn_append
346
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 ()
354 {
355 as_val=$(( $* ))
356 }'
357 else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362 fi # as_fn_arith
363
364
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 ()
371 {
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
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
380
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
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
392 fi
393
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
398 fi
399
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/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
418
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
425
426
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 '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
441 N
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; }
449
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
456 }
457
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;;
467 *)
468 ECHO_N='-n';;
469 esac
470
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
477 fi
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'
491 fi
492 else
493 as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
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
503 fi
504
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=
512 fi
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
524 '
525 fi
526 as_executable_p=$as_test_x
527
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'"
530
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'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 7<&0 </dev/null 6>&1
538
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`
543
544 #
545 # Initializations.
546 #
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=
555
556 # Identity of this package.
557 PACKAGE_NAME='GNU OpenMP Runtime Library'
558 PACKAGE_TARNAME='libgomp'
559 PACKAGE_VERSION='1.0'
560 PACKAGE_STRING='GNU OpenMP Runtime Library 1.0'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL='http://www.gnu.org/software/libgomp/'
563
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"
599
600 ac_subst_vars='am__EXEEXT_FALSE
601 am__EXEEXT_TRUE
602 LTLIBOBJS
603 LIBOBJS
604 OMP_NEST_LOCK_25_KIND
605 OMP_LOCK_25_KIND
606 OMP_NEST_LOCK_25_ALIGN
607 OMP_NEST_LOCK_25_SIZE
608 OMP_LOCK_25_ALIGN
609 OMP_LOCK_25_SIZE
610 OMP_NEST_LOCK_KIND
611 OMP_LOCK_KIND
612 OMP_NEST_LOCK_ALIGN
613 OMP_NEST_LOCK_SIZE
614 OMP_LOCK_ALIGN
615 OMP_LOCK_SIZE
616 USE_FORTRAN_FALSE
617 USE_FORTRAN_TRUE
618 link_gomp
619 XLDFLAGS
620 XCFLAGS
621 config_path
622 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2_FALSE
623 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2_TRUE
624 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
625 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
626 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
627 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
628 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
629 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
630 OPT_LDFLAGS
631 SECTION_LDFLAGS
632 libtool_VERSION
633 ac_ct_FC
634 FCFLAGS
635 FC
636 MAINT
637 MAINTAINER_MODE_FALSE
638 MAINTAINER_MODE_TRUE
639 enable_static
640 enable_shared
641 CPP
642 OTOOL64
643 OTOOL
644 LIPO
645 NMEDIT
646 DSYMUTIL
647 OBJDUMP
648 LN_S
649 NM
650 ac_ct_DUMPBIN
651 DUMPBIN
652 LD
653 FGREP
654 EGREP
655 GREP
656 SED
657 LIBTOOL
658 BUILD_INFO_FALSE
659 BUILD_INFO_TRUE
660 PERL
661 RANLIB
662 AR
663 am__fastdepCC_FALSE
664 am__fastdepCC_TRUE
665 CCDEPMODE
666 AMDEPBACKSLASH
667 AMDEP_FALSE
668 AMDEP_TRUE
669 am__quote
670 am__include
671 DEPDIR
672 OBJEXT
673 EXEEXT
674 ac_ct_CC
675 CPPFLAGS
676 LDFLAGS
677 CFLAGS
678 CC
679 toolexeclibdir
680 toolexecdir
681 multi_basedir
682 am__untar
683 am__tar
684 AMTAR
685 am__leading_dot
686 SET_MAKE
687 AWK
688 mkdir_p
689 MKDIR_P
690 INSTALL_STRIP_PROGRAM
691 STRIP
692 install_sh
693 MAKEINFO
694 AUTOHEADER
695 AUTOMAKE
696 AUTOCONF
697 ACLOCAL
698 VERSION
699 PACKAGE
700 CYGPATH_W
701 am__isrc
702 INSTALL_DATA
703 INSTALL_SCRIPT
704 INSTALL_PROGRAM
705 target_os
706 target_vendor
707 target_cpu
708 target
709 host_os
710 host_vendor
711 host_cpu
712 host
713 build_os
714 build_vendor
715 build_cpu
716 build
717 GENINSRC_FALSE
718 GENINSRC_TRUE
719 target_alias
720 host_alias
721 build_alias
722 LIBS
723 ECHO_T
724 ECHO_N
725 ECHO_C
726 DEFS
727 mandir
728 localedir
729 libdir
730 psdir
731 pdfdir
732 dvidir
733 htmldir
734 infodir
735 docdir
736 oldincludedir
737 includedir
738 localstatedir
739 sharedstatedir
740 sysconfdir
741 datadir
742 datarootdir
743 libexecdir
744 sbindir
745 bindir
746 program_transform_name
747 prefix
748 exec_prefix
749 PACKAGE_URL
750 PACKAGE_BUGREPORT
751 PACKAGE_STRING
752 PACKAGE_VERSION
753 PACKAGE_TARNAME
754 PACKAGE_NAME
755 PATH_SEPARATOR
756 SHELL'
757 ac_subst_files=''
758 ac_user_opts='
759 enable_option_checking
760 enable_version_specific_runtime_libs
761 enable_generated_files_in_srcdir
762 enable_multilib
763 enable_dependency_tracking
764 enable_shared
765 enable_static
766 with_pic
767 enable_fast_install
768 with_gnu_ld
769 enable_libtool_lock
770 enable_maintainer_mode
771 enable_linux_futex
772 enable_tls
773 enable_symvers
774 '
775 ac_precious_vars='build_alias
776 host_alias
777 target_alias
778 CPP
779 CPPFLAGS
780 FC
781 FCFLAGS
782 LDFLAGS
783 LIBS'
784
785
786 # Initialize some variables set by options.
787 ac_init_help=
788 ac_init_version=false
789 ac_unrecognized_opts=
790 ac_unrecognized_sep=
791 # The variables have the same names as the options, with
792 # dashes changed to underlines.
793 cache_file=/dev/null
794 exec_prefix=NONE
795 no_create=
796 no_recursion=
797 prefix=NONE
798 program_prefix=NONE
799 program_suffix=NONE
800 program_transform_name=s,x,x,
801 silent=
802 site=
803 srcdir=
804 verbose=
805 x_includes=NONE
806 x_libraries=NONE
807
808 # Installation directory options.
809 # These are left unexpanded so users can "make install exec_prefix=/foo"
810 # and all the variables that are supposed to be based on exec_prefix
811 # by default will actually change.
812 # Use braces instead of parens because sh, perl, etc. also accept them.
813 # (The list follows the same order as the GNU Coding Standards.)
814 bindir='${exec_prefix}/bin'
815 sbindir='${exec_prefix}/sbin'
816 libexecdir='${exec_prefix}/libexec'
817 datarootdir='${prefix}/share'
818 datadir='${datarootdir}'
819 sysconfdir='${prefix}/etc'
820 sharedstatedir='${prefix}/com'
821 localstatedir='${prefix}/var'
822 includedir='${prefix}/include'
823 oldincludedir='/usr/include'
824 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
825 infodir='${datarootdir}/info'
826 htmldir='${docdir}'
827 dvidir='${docdir}'
828 pdfdir='${docdir}'
829 psdir='${docdir}'
830 libdir='${exec_prefix}/lib'
831 localedir='${datarootdir}/locale'
832 mandir='${datarootdir}/man'
833
834 ac_prev=
835 ac_dashdash=
836 for ac_option
837 do
838 # If the previous option needs an argument, assign it.
839 if test -n "$ac_prev"; then
840 eval $ac_prev=\$ac_option
841 ac_prev=
842 continue
843 fi
844
845 case $ac_option in
846 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
847 *) ac_optarg=yes ;;
848 esac
849
850 # Accept the important Cygnus configure options, so we can diagnose typos.
851
852 case $ac_dashdash$ac_option in
853 --)
854 ac_dashdash=yes ;;
855
856 -bindir | --bindir | --bindi | --bind | --bin | --bi)
857 ac_prev=bindir ;;
858 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
859 bindir=$ac_optarg ;;
860
861 -build | --build | --buil | --bui | --bu)
862 ac_prev=build_alias ;;
863 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
864 build_alias=$ac_optarg ;;
865
866 -cache-file | --cache-file | --cache-fil | --cache-fi \
867 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
868 ac_prev=cache_file ;;
869 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
870 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
871 cache_file=$ac_optarg ;;
872
873 --config-cache | -C)
874 cache_file=config.cache ;;
875
876 -datadir | --datadir | --datadi | --datad)
877 ac_prev=datadir ;;
878 -datadir=* | --datadir=* | --datadi=* | --datad=*)
879 datadir=$ac_optarg ;;
880
881 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
882 | --dataroo | --dataro | --datar)
883 ac_prev=datarootdir ;;
884 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
885 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
886 datarootdir=$ac_optarg ;;
887
888 -disable-* | --disable-*)
889 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
890 # Reject names that are not valid shell variable names.
891 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
892 as_fn_error "invalid feature name: $ac_useropt"
893 ac_useropt_orig=$ac_useropt
894 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
895 case $ac_user_opts in
896 *"
897 "enable_$ac_useropt"
898 "*) ;;
899 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
900 ac_unrecognized_sep=', ';;
901 esac
902 eval enable_$ac_useropt=no ;;
903
904 -docdir | --docdir | --docdi | --doc | --do)
905 ac_prev=docdir ;;
906 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
907 docdir=$ac_optarg ;;
908
909 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
910 ac_prev=dvidir ;;
911 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
912 dvidir=$ac_optarg ;;
913
914 -enable-* | --enable-*)
915 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
916 # Reject names that are not valid shell variable names.
917 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
918 as_fn_error "invalid feature name: $ac_useropt"
919 ac_useropt_orig=$ac_useropt
920 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
921 case $ac_user_opts in
922 *"
923 "enable_$ac_useropt"
924 "*) ;;
925 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
926 ac_unrecognized_sep=', ';;
927 esac
928 eval enable_$ac_useropt=\$ac_optarg ;;
929
930 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
931 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
932 | --exec | --exe | --ex)
933 ac_prev=exec_prefix ;;
934 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
935 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
936 | --exec=* | --exe=* | --ex=*)
937 exec_prefix=$ac_optarg ;;
938
939 -gas | --gas | --ga | --g)
940 # Obsolete; use --with-gas.
941 with_gas=yes ;;
942
943 -help | --help | --hel | --he | -h)
944 ac_init_help=long ;;
945 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
946 ac_init_help=recursive ;;
947 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
948 ac_init_help=short ;;
949
950 -host | --host | --hos | --ho)
951 ac_prev=host_alias ;;
952 -host=* | --host=* | --hos=* | --ho=*)
953 host_alias=$ac_optarg ;;
954
955 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
956 ac_prev=htmldir ;;
957 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
958 | --ht=*)
959 htmldir=$ac_optarg ;;
960
961 -includedir | --includedir | --includedi | --included | --include \
962 | --includ | --inclu | --incl | --inc)
963 ac_prev=includedir ;;
964 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
965 | --includ=* | --inclu=* | --incl=* | --inc=*)
966 includedir=$ac_optarg ;;
967
968 -infodir | --infodir | --infodi | --infod | --info | --inf)
969 ac_prev=infodir ;;
970 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
971 infodir=$ac_optarg ;;
972
973 -libdir | --libdir | --libdi | --libd)
974 ac_prev=libdir ;;
975 -libdir=* | --libdir=* | --libdi=* | --libd=*)
976 libdir=$ac_optarg ;;
977
978 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
979 | --libexe | --libex | --libe)
980 ac_prev=libexecdir ;;
981 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
982 | --libexe=* | --libex=* | --libe=*)
983 libexecdir=$ac_optarg ;;
984
985 -localedir | --localedir | --localedi | --localed | --locale)
986 ac_prev=localedir ;;
987 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
988 localedir=$ac_optarg ;;
989
990 -localstatedir | --localstatedir | --localstatedi | --localstated \
991 | --localstate | --localstat | --localsta | --localst | --locals)
992 ac_prev=localstatedir ;;
993 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
994 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
995 localstatedir=$ac_optarg ;;
996
997 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
998 ac_prev=mandir ;;
999 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1000 mandir=$ac_optarg ;;
1001
1002 -nfp | --nfp | --nf)
1003 # Obsolete; use --without-fp.
1004 with_fp=no ;;
1005
1006 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1007 | --no-cr | --no-c | -n)
1008 no_create=yes ;;
1009
1010 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1011 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1012 no_recursion=yes ;;
1013
1014 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1015 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1016 | --oldin | --oldi | --old | --ol | --o)
1017 ac_prev=oldincludedir ;;
1018 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1019 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1020 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1021 oldincludedir=$ac_optarg ;;
1022
1023 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1024 ac_prev=prefix ;;
1025 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1026 prefix=$ac_optarg ;;
1027
1028 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1029 | --program-pre | --program-pr | --program-p)
1030 ac_prev=program_prefix ;;
1031 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1032 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1033 program_prefix=$ac_optarg ;;
1034
1035 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1036 | --program-suf | --program-su | --program-s)
1037 ac_prev=program_suffix ;;
1038 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1039 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1040 program_suffix=$ac_optarg ;;
1041
1042 -program-transform-name | --program-transform-name \
1043 | --program-transform-nam | --program-transform-na \
1044 | --program-transform-n | --program-transform- \
1045 | --program-transform | --program-transfor \
1046 | --program-transfo | --program-transf \
1047 | --program-trans | --program-tran \
1048 | --progr-tra | --program-tr | --program-t)
1049 ac_prev=program_transform_name ;;
1050 -program-transform-name=* | --program-transform-name=* \
1051 | --program-transform-nam=* | --program-transform-na=* \
1052 | --program-transform-n=* | --program-transform-=* \
1053 | --program-transform=* | --program-transfor=* \
1054 | --program-transfo=* | --program-transf=* \
1055 | --program-trans=* | --program-tran=* \
1056 | --progr-tra=* | --program-tr=* | --program-t=*)
1057 program_transform_name=$ac_optarg ;;
1058
1059 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1060 ac_prev=pdfdir ;;
1061 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1062 pdfdir=$ac_optarg ;;
1063
1064 -psdir | --psdir | --psdi | --psd | --ps)
1065 ac_prev=psdir ;;
1066 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1067 psdir=$ac_optarg ;;
1068
1069 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1070 | -silent | --silent | --silen | --sile | --sil)
1071 silent=yes ;;
1072
1073 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1074 ac_prev=sbindir ;;
1075 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1076 | --sbi=* | --sb=*)
1077 sbindir=$ac_optarg ;;
1078
1079 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1080 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1081 | --sharedst | --shareds | --shared | --share | --shar \
1082 | --sha | --sh)
1083 ac_prev=sharedstatedir ;;
1084 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1085 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1086 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1087 | --sha=* | --sh=*)
1088 sharedstatedir=$ac_optarg ;;
1089
1090 -site | --site | --sit)
1091 ac_prev=site ;;
1092 -site=* | --site=* | --sit=*)
1093 site=$ac_optarg ;;
1094
1095 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1096 ac_prev=srcdir ;;
1097 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1098 srcdir=$ac_optarg ;;
1099
1100 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1101 | --syscon | --sysco | --sysc | --sys | --sy)
1102 ac_prev=sysconfdir ;;
1103 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1104 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1105 sysconfdir=$ac_optarg ;;
1106
1107 -target | --target | --targe | --targ | --tar | --ta | --t)
1108 ac_prev=target_alias ;;
1109 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1110 target_alias=$ac_optarg ;;
1111
1112 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1113 verbose=yes ;;
1114
1115 -version | --version | --versio | --versi | --vers | -V)
1116 ac_init_version=: ;;
1117
1118 -with-* | --with-*)
1119 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1120 # Reject names that are not valid shell variable names.
1121 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1122 as_fn_error "invalid package name: $ac_useropt"
1123 ac_useropt_orig=$ac_useropt
1124 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1125 case $ac_user_opts in
1126 *"
1127 "with_$ac_useropt"
1128 "*) ;;
1129 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1130 ac_unrecognized_sep=', ';;
1131 esac
1132 eval with_$ac_useropt=\$ac_optarg ;;
1133
1134 -without-* | --without-*)
1135 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1136 # Reject names that are not valid shell variable names.
1137 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1138 as_fn_error "invalid package name: $ac_useropt"
1139 ac_useropt_orig=$ac_useropt
1140 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1141 case $ac_user_opts in
1142 *"
1143 "with_$ac_useropt"
1144 "*) ;;
1145 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1146 ac_unrecognized_sep=', ';;
1147 esac
1148 eval with_$ac_useropt=no ;;
1149
1150 --x)
1151 # Obsolete; use --with-x.
1152 with_x=yes ;;
1153
1154 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1155 | --x-incl | --x-inc | --x-in | --x-i)
1156 ac_prev=x_includes ;;
1157 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1158 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1159 x_includes=$ac_optarg ;;
1160
1161 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1162 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1163 ac_prev=x_libraries ;;
1164 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1165 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1166 x_libraries=$ac_optarg ;;
1167
1168 -*) as_fn_error "unrecognized option: \`$ac_option'
1169 Try \`$0 --help' for more information."
1170 ;;
1171
1172 *=*)
1173 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1174 # Reject names that are not valid shell variable names.
1175 case $ac_envvar in #(
1176 '' | [0-9]* | *[!_$as_cr_alnum]* )
1177 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1178 esac
1179 eval $ac_envvar=\$ac_optarg
1180 export $ac_envvar ;;
1181
1182 *)
1183 # FIXME: should be removed in autoconf 3.0.
1184 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1185 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1186 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1187 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1188 ;;
1189
1190 esac
1191 done
1192
1193 if test -n "$ac_prev"; then
1194 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1195 as_fn_error "missing argument to $ac_option"
1196 fi
1197
1198 if test -n "$ac_unrecognized_opts"; then
1199 case $enable_option_checking in
1200 no) ;;
1201 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1202 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1203 esac
1204 fi
1205
1206 # Check all directory arguments for consistency.
1207 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1208 datadir sysconfdir sharedstatedir localstatedir includedir \
1209 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1210 libdir localedir mandir
1211 do
1212 eval ac_val=\$$ac_var
1213 # Remove trailing slashes.
1214 case $ac_val in
1215 */ )
1216 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1217 eval $ac_var=\$ac_val;;
1218 esac
1219 # Be sure to have absolute directory names.
1220 case $ac_val in
1221 [\\/$]* | ?:[\\/]* ) continue;;
1222 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1223 esac
1224 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1225 done
1226
1227 # There might be people who depend on the old broken behavior: `$host'
1228 # used to hold the argument of --host etc.
1229 # FIXME: To remove some day.
1230 build=$build_alias
1231 host=$host_alias
1232 target=$target_alias
1233
1234 # FIXME: To remove some day.
1235 if test "x$host_alias" != x; then
1236 if test "x$build_alias" = x; then
1237 cross_compiling=maybe
1238 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1239 If a cross compiler is detected then cross compile mode will be used." >&2
1240 elif test "x$build_alias" != "x$host_alias"; then
1241 cross_compiling=yes
1242 fi
1243 fi
1244
1245 ac_tool_prefix=
1246 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1247
1248 test "$silent" = yes && exec 6>/dev/null
1249
1250
1251 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1252 ac_ls_di=`ls -di .` &&
1253 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1254 as_fn_error "working directory cannot be determined"
1255 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1256 as_fn_error "pwd does not report name of working directory"
1257
1258
1259 # Find the source files, if location was not specified.
1260 if test -z "$srcdir"; then
1261 ac_srcdir_defaulted=yes
1262 # Try the directory containing this script, then the parent directory.
1263 ac_confdir=`$as_dirname -- "$as_myself" ||
1264 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1265 X"$as_myself" : 'X\(//\)[^/]' \| \
1266 X"$as_myself" : 'X\(//\)$' \| \
1267 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1268 $as_echo X"$as_myself" |
1269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1270 s//\1/
1271 q
1272 }
1273 /^X\(\/\/\)[^/].*/{
1274 s//\1/
1275 q
1276 }
1277 /^X\(\/\/\)$/{
1278 s//\1/
1279 q
1280 }
1281 /^X\(\/\).*/{
1282 s//\1/
1283 q
1284 }
1285 s/.*/./; q'`
1286 srcdir=$ac_confdir
1287 if test ! -r "$srcdir/$ac_unique_file"; then
1288 srcdir=..
1289 fi
1290 else
1291 ac_srcdir_defaulted=no
1292 fi
1293 if test ! -r "$srcdir/$ac_unique_file"; then
1294 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1295 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1296 fi
1297 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1298 ac_abs_confdir=`(
1299 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1300 pwd)`
1301 # When building in place, set srcdir=.
1302 if test "$ac_abs_confdir" = "$ac_pwd"; then
1303 srcdir=.
1304 fi
1305 # Remove unnecessary trailing slashes from srcdir.
1306 # Double slashes in file names in object file debugging info
1307 # mess up M-x gdb in Emacs.
1308 case $srcdir in
1309 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1310 esac
1311 for ac_var in $ac_precious_vars; do
1312 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1313 eval ac_env_${ac_var}_value=\$${ac_var}
1314 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1315 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1316 done
1317
1318 #
1319 # Report the --help message.
1320 #
1321 if test "$ac_init_help" = "long"; then
1322 # Omit some internal or obsolete options to make the list less imposing.
1323 # This message is too long to be a string in the A/UX 3.1 sh.
1324 cat <<_ACEOF
1325 \`configure' configures GNU OpenMP Runtime Library 1.0 to adapt to many kinds of systems.
1326
1327 Usage: $0 [OPTION]... [VAR=VALUE]...
1328
1329 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1330 VAR=VALUE. See below for descriptions of some of the useful variables.
1331
1332 Defaults for the options are specified in brackets.
1333
1334 Configuration:
1335 -h, --help display this help and exit
1336 --help=short display options specific to this package
1337 --help=recursive display the short help of all the included packages
1338 -V, --version display version information and exit
1339 -q, --quiet, --silent do not print \`checking...' messages
1340 --cache-file=FILE cache test results in FILE [disabled]
1341 -C, --config-cache alias for \`--cache-file=config.cache'
1342 -n, --no-create do not create output files
1343 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1344
1345 Installation directories:
1346 --prefix=PREFIX install architecture-independent files in PREFIX
1347 [$ac_default_prefix]
1348 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1349 [PREFIX]
1350
1351 By default, \`make install' will install all the files in
1352 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1353 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1354 for instance \`--prefix=\$HOME'.
1355
1356 For better control, use the options below.
1357
1358 Fine tuning of the installation directories:
1359 --bindir=DIR user executables [EPREFIX/bin]
1360 --sbindir=DIR system admin executables [EPREFIX/sbin]
1361 --libexecdir=DIR program executables [EPREFIX/libexec]
1362 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1363 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1364 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1365 --libdir=DIR object code libraries [EPREFIX/lib]
1366 --includedir=DIR C header files [PREFIX/include]
1367 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1368 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1369 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1370 --infodir=DIR info documentation [DATAROOTDIR/info]
1371 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1372 --mandir=DIR man documentation [DATAROOTDIR/man]
1373 --docdir=DIR documentation root [DATAROOTDIR/doc/libgomp]
1374 --htmldir=DIR html documentation [DOCDIR]
1375 --dvidir=DIR dvi documentation [DOCDIR]
1376 --pdfdir=DIR pdf documentation [DOCDIR]
1377 --psdir=DIR ps documentation [DOCDIR]
1378 _ACEOF
1379
1380 cat <<\_ACEOF
1381
1382 Program names:
1383 --program-prefix=PREFIX prepend PREFIX to installed program names
1384 --program-suffix=SUFFIX append SUFFIX to installed program names
1385 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1386
1387 System types:
1388 --build=BUILD configure for building on BUILD [guessed]
1389 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1390 --target=TARGET configure for building compilers for TARGET [HOST]
1391 _ACEOF
1392 fi
1393
1394 if test -n "$ac_init_help"; then
1395 case $ac_init_help in
1396 short | recursive ) echo "Configuration of GNU OpenMP Runtime Library 1.0:";;
1397 esac
1398 cat <<\_ACEOF
1399
1400 Optional Features:
1401 --disable-option-checking ignore unrecognized --enable/--with options
1402 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1403 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1404 --enable-version-specific-runtime-libs
1405 Specify that runtime libraries should be installed
1406 in a compiler-specific directory [default=no]
1407 --enable-generated-files-in-srcdir
1408 put copies of generated files in source dir intended
1409 for creating source tarballs for users without
1410 texinfo bison or flex. [default=no]
1411 --enable-multilib build many library versions (default)
1412 --disable-dependency-tracking speeds up one-time build
1413 --enable-dependency-tracking do not reject slow dependency extractors
1414 --enable-shared[=PKGS] build shared libraries [default=yes]
1415 --enable-static[=PKGS] build static libraries [default=yes]
1416 --enable-fast-install[=PKGS]
1417 optimize for fast installation [default=yes]
1418 --disable-libtool-lock avoid locking (might break parallel builds)
1419 --enable-maintainer-mode enable make rules and dependencies not useful
1420 (and sometimes confusing) to the casual installer
1421 --enable-linux-futex use the Linux futex system call [default=default]
1422 --enable-tls Use thread-local storage [default=yes]
1423 --enable-symvers=STYLE enables symbol versioning of the shared library
1424 [default=yes]
1425
1426 Optional Packages:
1427 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1428 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1429 --with-pic try to use only PIC/non-PIC objects [default=use
1430 both]
1431 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1432
1433 Some influential environment variables:
1434 CC C compiler command
1435 CFLAGS C compiler flags
1436 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1437 nonstandard directory <lib dir>
1438 LIBS libraries to pass to the linker, e.g. -l<library>
1439 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1440 you have headers in a nonstandard directory <include dir>
1441 CPP C preprocessor
1442 FC Fortran compiler command
1443 FCFLAGS Fortran compiler flags
1444
1445 Use these variables to override the choices made by `configure' or to help
1446 it to find libraries and programs with nonstandard names/locations.
1447
1448 Report bugs to the package provider.
1449 GNU OpenMP Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
1450 General help using GNU software: <http://www.gnu.org/gethelp/>.
1451 _ACEOF
1452 ac_status=$?
1453 fi
1454
1455 if test "$ac_init_help" = "recursive"; then
1456 # If there are subdirs, report their specific --help.
1457 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1458 test -d "$ac_dir" ||
1459 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1460 continue
1461 ac_builddir=.
1462
1463 case "$ac_dir" in
1464 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1465 *)
1466 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1467 # A ".." for each directory in $ac_dir_suffix.
1468 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1469 case $ac_top_builddir_sub in
1470 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1471 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1472 esac ;;
1473 esac
1474 ac_abs_top_builddir=$ac_pwd
1475 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1476 # for backward compatibility:
1477 ac_top_builddir=$ac_top_build_prefix
1478
1479 case $srcdir in
1480 .) # We are building in place.
1481 ac_srcdir=.
1482 ac_top_srcdir=$ac_top_builddir_sub
1483 ac_abs_top_srcdir=$ac_pwd ;;
1484 [\\/]* | ?:[\\/]* ) # Absolute name.
1485 ac_srcdir=$srcdir$ac_dir_suffix;
1486 ac_top_srcdir=$srcdir
1487 ac_abs_top_srcdir=$srcdir ;;
1488 *) # Relative name.
1489 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1490 ac_top_srcdir=$ac_top_build_prefix$srcdir
1491 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1492 esac
1493 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1494
1495 cd "$ac_dir" || { ac_status=$?; continue; }
1496 # Check for guested configure.
1497 if test -f "$ac_srcdir/configure.gnu"; then
1498 echo &&
1499 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1500 elif test -f "$ac_srcdir/configure"; then
1501 echo &&
1502 $SHELL "$ac_srcdir/configure" --help=recursive
1503 else
1504 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1505 fi || ac_status=$?
1506 cd "$ac_pwd" || { ac_status=$?; break; }
1507 done
1508 fi
1509
1510 test -n "$ac_init_help" && exit $ac_status
1511 if $ac_init_version; then
1512 cat <<\_ACEOF
1513 GNU OpenMP Runtime Library configure 1.0
1514 generated by GNU Autoconf 2.64
1515
1516 Copyright (C) 2009 Free Software Foundation, Inc.
1517 This configure script is free software; the Free Software Foundation
1518 gives unlimited permission to copy, distribute and modify it.
1519 _ACEOF
1520 exit
1521 fi
1522
1523 ## ------------------------ ##
1524 ## Autoconf initialization. ##
1525 ## ------------------------ ##
1526
1527 # ac_fn_c_try_compile LINENO
1528 # --------------------------
1529 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1530 ac_fn_c_try_compile ()
1531 {
1532 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1533 rm -f conftest.$ac_objext
1534 if { { ac_try="$ac_compile"
1535 case "(($ac_try" in
1536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1537 *) ac_try_echo=$ac_try;;
1538 esac
1539 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1540 $as_echo "$ac_try_echo"; } >&5
1541 (eval "$ac_compile") 2>conftest.err
1542 ac_status=$?
1543 if test -s conftest.err; then
1544 grep -v '^ *+' conftest.err >conftest.er1
1545 cat conftest.er1 >&5
1546 mv -f conftest.er1 conftest.err
1547 fi
1548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1549 test $ac_status = 0; } && {
1550 test -z "$ac_c_werror_flag" ||
1551 test ! -s conftest.err
1552 } && test -s conftest.$ac_objext; then :
1553 ac_retval=0
1554 else
1555 $as_echo "$as_me: failed program was:" >&5
1556 sed 's/^/| /' conftest.$ac_ext >&5
1557
1558 ac_retval=1
1559 fi
1560 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1561 return $ac_retval
1562
1563 } # ac_fn_c_try_compile
1564
1565 # ac_fn_c_try_link LINENO
1566 # -----------------------
1567 # Try to link conftest.$ac_ext, and return whether this succeeded.
1568 ac_fn_c_try_link ()
1569 {
1570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1571 rm -f conftest.$ac_objext conftest$ac_exeext
1572 if { { ac_try="$ac_link"
1573 case "(($ac_try" in
1574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1575 *) ac_try_echo=$ac_try;;
1576 esac
1577 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1578 $as_echo "$ac_try_echo"; } >&5
1579 (eval "$ac_link") 2>conftest.err
1580 ac_status=$?
1581 if test -s conftest.err; then
1582 grep -v '^ *+' conftest.err >conftest.er1
1583 cat conftest.er1 >&5
1584 mv -f conftest.er1 conftest.err
1585 fi
1586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1587 test $ac_status = 0; } && {
1588 test -z "$ac_c_werror_flag" ||
1589 test ! -s conftest.err
1590 } && test -s conftest$ac_exeext && {
1591 test "$cross_compiling" = yes ||
1592 $as_test_x conftest$ac_exeext
1593 }; then :
1594 ac_retval=0
1595 else
1596 $as_echo "$as_me: failed program was:" >&5
1597 sed 's/^/| /' conftest.$ac_ext >&5
1598
1599 ac_retval=1
1600 fi
1601 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1602 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1603 # interfere with the next link command; also delete a directory that is
1604 # left behind by Apple's compiler. We do this before executing the actions.
1605 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1606 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1607 return $ac_retval
1608
1609 } # ac_fn_c_try_link
1610
1611 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1612 # -------------------------------------------------------
1613 # Tests whether HEADER exists and can be compiled using the include files in
1614 # INCLUDES, setting the cache variable VAR accordingly.
1615 ac_fn_c_check_header_compile ()
1616 {
1617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1619 $as_echo_n "checking for $2... " >&6; }
1620 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1621 $as_echo_n "(cached) " >&6
1622 else
1623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1624 /* end confdefs.h. */
1625 $4
1626 #include <$2>
1627 _ACEOF
1628 if ac_fn_c_try_compile "$LINENO"; then :
1629 eval "$3=yes"
1630 else
1631 eval "$3=no"
1632 fi
1633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1634 fi
1635 eval ac_res=\$$3
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1637 $as_echo "$ac_res" >&6; }
1638 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1639
1640 } # ac_fn_c_check_header_compile
1641
1642 # ac_fn_c_try_cpp LINENO
1643 # ----------------------
1644 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1645 ac_fn_c_try_cpp ()
1646 {
1647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648 if { { ac_try="$ac_cpp conftest.$ac_ext"
1649 case "(($ac_try" in
1650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1651 *) ac_try_echo=$ac_try;;
1652 esac
1653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1654 $as_echo "$ac_try_echo"; } >&5
1655 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1656 ac_status=$?
1657 if test -s conftest.err; then
1658 grep -v '^ *+' conftest.err >conftest.er1
1659 cat conftest.er1 >&5
1660 mv -f conftest.er1 conftest.err
1661 fi
1662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1663 test $ac_status = 0; } >/dev/null && {
1664 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1665 test ! -s conftest.err
1666 }; then :
1667 ac_retval=0
1668 else
1669 $as_echo "$as_me: failed program was:" >&5
1670 sed 's/^/| /' conftest.$ac_ext >&5
1671
1672 ac_retval=1
1673 fi
1674 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1675 return $ac_retval
1676
1677 } # ac_fn_c_try_cpp
1678
1679 # ac_fn_c_try_run LINENO
1680 # ----------------------
1681 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1682 # that executables *can* be run.
1683 ac_fn_c_try_run ()
1684 {
1685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686 if { { ac_try="$ac_link"
1687 case "(($ac_try" in
1688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689 *) ac_try_echo=$ac_try;;
1690 esac
1691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692 $as_echo "$ac_try_echo"; } >&5
1693 (eval "$ac_link") 2>&5
1694 ac_status=$?
1695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1697 { { case "(($ac_try" in
1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699 *) ac_try_echo=$ac_try;;
1700 esac
1701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702 $as_echo "$ac_try_echo"; } >&5
1703 (eval "$ac_try") 2>&5
1704 ac_status=$?
1705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706 test $ac_status = 0; }; }; then :
1707 ac_retval=0
1708 else
1709 $as_echo "$as_me: program exited with status $ac_status" >&5
1710 $as_echo "$as_me: failed program was:" >&5
1711 sed 's/^/| /' conftest.$ac_ext >&5
1712
1713 ac_retval=$ac_status
1714 fi
1715 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1716 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1717 return $ac_retval
1718
1719 } # ac_fn_c_try_run
1720
1721 # ac_fn_c_check_func LINENO FUNC VAR
1722 # ----------------------------------
1723 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1724 ac_fn_c_check_func ()
1725 {
1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1728 $as_echo_n "checking for $2... " >&6; }
1729 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1730 $as_echo_n "(cached) " >&6
1731 else
1732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1733 /* end confdefs.h. */
1734 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1735 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1736 #define $2 innocuous_$2
1737
1738 /* System header to define __stub macros and hopefully few prototypes,
1739 which can conflict with char $2 (); below.
1740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1741 <limits.h> exists even on freestanding compilers. */
1742
1743 #ifdef __STDC__
1744 # include <limits.h>
1745 #else
1746 # include <assert.h>
1747 #endif
1748
1749 #undef $2
1750
1751 /* Override any GCC internal prototype to avoid an error.
1752 Use char because int might match the return type of a GCC
1753 builtin and then its argument prototype would still apply. */
1754 #ifdef __cplusplus
1755 extern "C"
1756 #endif
1757 char $2 ();
1758 /* The GNU C library defines this for functions which it implements
1759 to always fail with ENOSYS. Some functions are actually named
1760 something starting with __ and the normal name is an alias. */
1761 #if defined __stub_$2 || defined __stub___$2
1762 choke me
1763 #endif
1764
1765 int
1766 main ()
1767 {
1768 return $2 ();
1769 ;
1770 return 0;
1771 }
1772 _ACEOF
1773 if ac_fn_c_try_link "$LINENO"; then :
1774 eval "$3=yes"
1775 else
1776 eval "$3=no"
1777 fi
1778 rm -f core conftest.err conftest.$ac_objext \
1779 conftest$ac_exeext conftest.$ac_ext
1780 fi
1781 eval ac_res=\$$3
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1783 $as_echo "$ac_res" >&6; }
1784 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1785
1786 } # ac_fn_c_check_func
1787
1788 # ac_fn_fc_try_compile LINENO
1789 # ---------------------------
1790 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1791 ac_fn_fc_try_compile ()
1792 {
1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794 rm -f conftest.$ac_objext
1795 if { { ac_try="$ac_compile"
1796 case "(($ac_try" in
1797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1798 *) ac_try_echo=$ac_try;;
1799 esac
1800 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1801 $as_echo "$ac_try_echo"; } >&5
1802 (eval "$ac_compile") 2>conftest.err
1803 ac_status=$?
1804 if test -s conftest.err; then
1805 grep -v '^ *+' conftest.err >conftest.er1
1806 cat conftest.er1 >&5
1807 mv -f conftest.er1 conftest.err
1808 fi
1809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1810 test $ac_status = 0; } && {
1811 test -z "$ac_fc_werror_flag" ||
1812 test ! -s conftest.err
1813 } && test -s conftest.$ac_objext; then :
1814 ac_retval=0
1815 else
1816 $as_echo "$as_me: failed program was:" >&5
1817 sed 's/^/| /' conftest.$ac_ext >&5
1818
1819 ac_retval=1
1820 fi
1821 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1822 return $ac_retval
1823
1824 } # ac_fn_fc_try_compile
1825
1826 # ac_fn_fc_try_link LINENO
1827 # ------------------------
1828 # Try to link conftest.$ac_ext, and return whether this succeeded.
1829 ac_fn_fc_try_link ()
1830 {
1831 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832 rm -f conftest.$ac_objext conftest$ac_exeext
1833 if { { ac_try="$ac_link"
1834 case "(($ac_try" in
1835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1836 *) ac_try_echo=$ac_try;;
1837 esac
1838 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1839 $as_echo "$ac_try_echo"; } >&5
1840 (eval "$ac_link") 2>conftest.err
1841 ac_status=$?
1842 if test -s conftest.err; then
1843 grep -v '^ *+' conftest.err >conftest.er1
1844 cat conftest.er1 >&5
1845 mv -f conftest.er1 conftest.err
1846 fi
1847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1848 test $ac_status = 0; } && {
1849 test -z "$ac_fc_werror_flag" ||
1850 test ! -s conftest.err
1851 } && test -s conftest$ac_exeext && {
1852 test "$cross_compiling" = yes ||
1853 $as_test_x conftest$ac_exeext
1854 }; then :
1855 ac_retval=0
1856 else
1857 $as_echo "$as_me: failed program was:" >&5
1858 sed 's/^/| /' conftest.$ac_ext >&5
1859
1860 ac_retval=1
1861 fi
1862 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1863 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1864 # interfere with the next link command; also delete a directory that is
1865 # left behind by Apple's compiler. We do this before executing the actions.
1866 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1867 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1868 return $ac_retval
1869
1870 } # ac_fn_fc_try_link
1871
1872 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1873 # -------------------------------------------------------
1874 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1875 # the include files in INCLUDES and setting the cache variable VAR
1876 # accordingly.
1877 ac_fn_c_check_header_mongrel ()
1878 {
1879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1882 $as_echo_n "checking for $2... " >&6; }
1883 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1884 $as_echo_n "(cached) " >&6
1885 fi
1886 eval ac_res=\$$3
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1888 $as_echo "$ac_res" >&6; }
1889 else
1890 # Is the header compilable?
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1892 $as_echo_n "checking $2 usability... " >&6; }
1893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1894 /* end confdefs.h. */
1895 $4
1896 #include <$2>
1897 _ACEOF
1898 if ac_fn_c_try_compile "$LINENO"; then :
1899 ac_header_compiler=yes
1900 else
1901 ac_header_compiler=no
1902 fi
1903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1905 $as_echo "$ac_header_compiler" >&6; }
1906
1907 # Is the header present?
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1909 $as_echo_n "checking $2 presence... " >&6; }
1910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1911 /* end confdefs.h. */
1912 #include <$2>
1913 _ACEOF
1914 if ac_fn_c_try_cpp "$LINENO"; then :
1915 ac_header_preproc=yes
1916 else
1917 ac_header_preproc=no
1918 fi
1919 rm -f conftest.err conftest.$ac_ext
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1921 $as_echo "$ac_header_preproc" >&6; }
1922
1923 # So? What about this header?
1924 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1925 yes:no: )
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1927 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1929 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1930 ;;
1931 no:yes:* )
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1933 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1935 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1937 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1939 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1941 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1942 ;;
1943 esac
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1945 $as_echo_n "checking for $2... " >&6; }
1946 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1947 $as_echo_n "(cached) " >&6
1948 else
1949 eval "$3=\$ac_header_compiler"
1950 fi
1951 eval ac_res=\$$3
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1953 $as_echo "$ac_res" >&6; }
1954 fi
1955 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1956
1957 } # ac_fn_c_check_header_mongrel
1958
1959 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1960 # -------------------------------------------
1961 # Tests whether TYPE exists after having included INCLUDES, setting cache
1962 # variable VAR accordingly.
1963 ac_fn_c_check_type ()
1964 {
1965 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1967 $as_echo_n "checking for $2... " >&6; }
1968 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1969 $as_echo_n "(cached) " >&6
1970 else
1971 eval "$3=no"
1972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1973 /* end confdefs.h. */
1974 $4
1975 int
1976 main ()
1977 {
1978 if (sizeof ($2))
1979 return 0;
1980 ;
1981 return 0;
1982 }
1983 _ACEOF
1984 if ac_fn_c_try_compile "$LINENO"; then :
1985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1986 /* end confdefs.h. */
1987 $4
1988 int
1989 main ()
1990 {
1991 if (sizeof (($2)))
1992 return 0;
1993 ;
1994 return 0;
1995 }
1996 _ACEOF
1997 if ac_fn_c_try_compile "$LINENO"; then :
1998
1999 else
2000 eval "$3=yes"
2001 fi
2002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2003 fi
2004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2005 fi
2006 eval ac_res=\$$3
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2008 $as_echo "$ac_res" >&6; }
2009 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2010
2011 } # ac_fn_c_check_type
2012
2013 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2014 # --------------------------------------------
2015 # Tries to find the compile-time value of EXPR in a program that includes
2016 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2017 # computed
2018 ac_fn_c_compute_int ()
2019 {
2020 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2021 if test "$cross_compiling" = yes; then
2022 # Depending upon the size, compute the lo and hi bounds.
2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024 /* end confdefs.h. */
2025 $4
2026 int
2027 main ()
2028 {
2029 static int test_array [1 - 2 * !(($2) >= 0)];
2030 test_array [0] = 0
2031
2032 ;
2033 return 0;
2034 }
2035 _ACEOF
2036 if ac_fn_c_try_compile "$LINENO"; then :
2037 ac_lo=0 ac_mid=0
2038 while :; do
2039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2040 /* end confdefs.h. */
2041 $4
2042 int
2043 main ()
2044 {
2045 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2046 test_array [0] = 0
2047
2048 ;
2049 return 0;
2050 }
2051 _ACEOF
2052 if ac_fn_c_try_compile "$LINENO"; then :
2053 ac_hi=$ac_mid; break
2054 else
2055 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2056 if test $ac_lo -le $ac_mid; then
2057 ac_lo= ac_hi=
2058 break
2059 fi
2060 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2061 fi
2062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2063 done
2064 else
2065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066 /* end confdefs.h. */
2067 $4
2068 int
2069 main ()
2070 {
2071 static int test_array [1 - 2 * !(($2) < 0)];
2072 test_array [0] = 0
2073
2074 ;
2075 return 0;
2076 }
2077 _ACEOF
2078 if ac_fn_c_try_compile "$LINENO"; then :
2079 ac_hi=-1 ac_mid=-1
2080 while :; do
2081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2082 /* end confdefs.h. */
2083 $4
2084 int
2085 main ()
2086 {
2087 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2088 test_array [0] = 0
2089
2090 ;
2091 return 0;
2092 }
2093 _ACEOF
2094 if ac_fn_c_try_compile "$LINENO"; then :
2095 ac_lo=$ac_mid; break
2096 else
2097 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2098 if test $ac_mid -le $ac_hi; then
2099 ac_lo= ac_hi=
2100 break
2101 fi
2102 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2103 fi
2104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2105 done
2106 else
2107 ac_lo= ac_hi=
2108 fi
2109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2110 fi
2111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2112 # Binary search between lo and hi bounds.
2113 while test "x$ac_lo" != "x$ac_hi"; do
2114 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2116 /* end confdefs.h. */
2117 $4
2118 int
2119 main ()
2120 {
2121 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2122 test_array [0] = 0
2123
2124 ;
2125 return 0;
2126 }
2127 _ACEOF
2128 if ac_fn_c_try_compile "$LINENO"; then :
2129 ac_hi=$ac_mid
2130 else
2131 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2132 fi
2133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2134 done
2135 case $ac_lo in #((
2136 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2137 '') ac_retval=1 ;;
2138 esac
2139 else
2140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2141 /* end confdefs.h. */
2142 $4
2143 static long int longval () { return $2; }
2144 static unsigned long int ulongval () { return $2; }
2145 #include <stdio.h>
2146 #include <stdlib.h>
2147 int
2148 main ()
2149 {
2150
2151 FILE *f = fopen ("conftest.val", "w");
2152 if (! f)
2153 return 1;
2154 if (($2) < 0)
2155 {
2156 long int i = longval ();
2157 if (i != ($2))
2158 return 1;
2159 fprintf (f, "%ld", i);
2160 }
2161 else
2162 {
2163 unsigned long int i = ulongval ();
2164 if (i != ($2))
2165 return 1;
2166 fprintf (f, "%lu", i);
2167 }
2168 /* Do not output a trailing newline, as this causes \r\n confusion
2169 on some platforms. */
2170 return ferror (f) || fclose (f) != 0;
2171
2172 ;
2173 return 0;
2174 }
2175 _ACEOF
2176 if ac_fn_c_try_run "$LINENO"; then :
2177 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2178 else
2179 ac_retval=1
2180 fi
2181 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2182 conftest.$ac_objext conftest.beam conftest.$ac_ext
2183 rm -f conftest.val
2184
2185 fi
2186 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2187 return $ac_retval
2188
2189 } # ac_fn_c_compute_int
2190 cat >config.log <<_ACEOF
2191 This file contains any messages produced by compilers while
2192 running configure, to aid debugging if configure makes a mistake.
2193
2194 It was created by GNU OpenMP Runtime Library $as_me 1.0, which was
2195 generated by GNU Autoconf 2.64. Invocation command line was
2196
2197 $ $0 $@
2198
2199 _ACEOF
2200 exec 5>>config.log
2201 {
2202 cat <<_ASUNAME
2203 ## --------- ##
2204 ## Platform. ##
2205 ## --------- ##
2206
2207 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2208 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2209 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2210 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2211 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2212
2213 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2214 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2215
2216 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2217 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2218 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2219 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2220 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2221 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2222 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2223
2224 _ASUNAME
2225
2226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2227 for as_dir in $PATH
2228 do
2229 IFS=$as_save_IFS
2230 test -z "$as_dir" && as_dir=.
2231 $as_echo "PATH: $as_dir"
2232 done
2233 IFS=$as_save_IFS
2234
2235 } >&5
2236
2237 cat >&5 <<_ACEOF
2238
2239
2240 ## ----------- ##
2241 ## Core tests. ##
2242 ## ----------- ##
2243
2244 _ACEOF
2245
2246
2247 # Keep a trace of the command line.
2248 # Strip out --no-create and --no-recursion so they do not pile up.
2249 # Strip out --silent because we don't want to record it for future runs.
2250 # Also quote any args containing shell meta-characters.
2251 # Make two passes to allow for proper duplicate-argument suppression.
2252 ac_configure_args=
2253 ac_configure_args0=
2254 ac_configure_args1=
2255 ac_must_keep_next=false
2256 for ac_pass in 1 2
2257 do
2258 for ac_arg
2259 do
2260 case $ac_arg in
2261 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2262 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2263 | -silent | --silent | --silen | --sile | --sil)
2264 continue ;;
2265 *\'*)
2266 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2267 esac
2268 case $ac_pass in
2269 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2270 2)
2271 as_fn_append ac_configure_args1 " '$ac_arg'"
2272 if test $ac_must_keep_next = true; then
2273 ac_must_keep_next=false # Got value, back to normal.
2274 else
2275 case $ac_arg in
2276 *=* | --config-cache | -C | -disable-* | --disable-* \
2277 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2278 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2279 | -with-* | --with-* | -without-* | --without-* | --x)
2280 case "$ac_configure_args0 " in
2281 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2282 esac
2283 ;;
2284 -* ) ac_must_keep_next=true ;;
2285 esac
2286 fi
2287 as_fn_append ac_configure_args " '$ac_arg'"
2288 ;;
2289 esac
2290 done
2291 done
2292 { ac_configure_args0=; unset ac_configure_args0;}
2293 { ac_configure_args1=; unset ac_configure_args1;}
2294
2295 # When interrupted or exit'd, cleanup temporary files, and complete
2296 # config.log. We remove comments because anyway the quotes in there
2297 # would cause problems or look ugly.
2298 # WARNING: Use '\'' to represent an apostrophe within the trap.
2299 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2300 trap 'exit_status=$?
2301 # Save into config.log some information that might help in debugging.
2302 {
2303 echo
2304
2305 cat <<\_ASBOX
2306 ## ---------------- ##
2307 ## Cache variables. ##
2308 ## ---------------- ##
2309 _ASBOX
2310 echo
2311 # The following way of writing the cache mishandles newlines in values,
2312 (
2313 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2314 eval ac_val=\$$ac_var
2315 case $ac_val in #(
2316 *${as_nl}*)
2317 case $ac_var in #(
2318 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2319 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2320 esac
2321 case $ac_var in #(
2322 _ | IFS | as_nl) ;; #(
2323 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2324 *) { eval $ac_var=; unset $ac_var;} ;;
2325 esac ;;
2326 esac
2327 done
2328 (set) 2>&1 |
2329 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2330 *${as_nl}ac_space=\ *)
2331 sed -n \
2332 "s/'\''/'\''\\\\'\'''\''/g;
2333 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2334 ;; #(
2335 *)
2336 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2337 ;;
2338 esac |
2339 sort
2340 )
2341 echo
2342
2343 cat <<\_ASBOX
2344 ## ----------------- ##
2345 ## Output variables. ##
2346 ## ----------------- ##
2347 _ASBOX
2348 echo
2349 for ac_var in $ac_subst_vars
2350 do
2351 eval ac_val=\$$ac_var
2352 case $ac_val in
2353 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2354 esac
2355 $as_echo "$ac_var='\''$ac_val'\''"
2356 done | sort
2357 echo
2358
2359 if test -n "$ac_subst_files"; then
2360 cat <<\_ASBOX
2361 ## ------------------- ##
2362 ## File substitutions. ##
2363 ## ------------------- ##
2364 _ASBOX
2365 echo
2366 for ac_var in $ac_subst_files
2367 do
2368 eval ac_val=\$$ac_var
2369 case $ac_val in
2370 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2371 esac
2372 $as_echo "$ac_var='\''$ac_val'\''"
2373 done | sort
2374 echo
2375 fi
2376
2377 if test -s confdefs.h; then
2378 cat <<\_ASBOX
2379 ## ----------- ##
2380 ## confdefs.h. ##
2381 ## ----------- ##
2382 _ASBOX
2383 echo
2384 cat confdefs.h
2385 echo
2386 fi
2387 test "$ac_signal" != 0 &&
2388 $as_echo "$as_me: caught signal $ac_signal"
2389 $as_echo "$as_me: exit $exit_status"
2390 } >&5
2391 rm -f core *.core core.conftest.* &&
2392 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2393 exit $exit_status
2394 ' 0
2395 for ac_signal in 1 2 13 15; do
2396 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2397 done
2398 ac_signal=0
2399
2400 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2401 rm -f -r conftest* confdefs.h
2402
2403 $as_echo "/* confdefs.h */" > confdefs.h
2404
2405 # Predefined preprocessor variables.
2406
2407 cat >>confdefs.h <<_ACEOF
2408 #define PACKAGE_NAME "$PACKAGE_NAME"
2409 _ACEOF
2410
2411 cat >>confdefs.h <<_ACEOF
2412 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2413 _ACEOF
2414
2415 cat >>confdefs.h <<_ACEOF
2416 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2417 _ACEOF
2418
2419 cat >>confdefs.h <<_ACEOF
2420 #define PACKAGE_STRING "$PACKAGE_STRING"
2421 _ACEOF
2422
2423 cat >>confdefs.h <<_ACEOF
2424 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2425 _ACEOF
2426
2427 cat >>confdefs.h <<_ACEOF
2428 #define PACKAGE_URL "$PACKAGE_URL"
2429 _ACEOF
2430
2431
2432 # Let the site file select an alternate cache file if it wants to.
2433 # Prefer an explicitly selected file to automatically selected ones.
2434 ac_site_file1=NONE
2435 ac_site_file2=NONE
2436 if test -n "$CONFIG_SITE"; then
2437 ac_site_file1=$CONFIG_SITE
2438 elif test "x$prefix" != xNONE; then
2439 ac_site_file1=$prefix/share/config.site
2440 ac_site_file2=$prefix/etc/config.site
2441 else
2442 ac_site_file1=$ac_default_prefix/share/config.site
2443 ac_site_file2=$ac_default_prefix/etc/config.site
2444 fi
2445 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2446 do
2447 test "x$ac_site_file" = xNONE && continue
2448 if test -r "$ac_site_file"; then
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2450 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2451 sed 's/^/| /' "$ac_site_file" >&5
2452 . "$ac_site_file"
2453 fi
2454 done
2455
2456 if test -r "$cache_file"; then
2457 # Some versions of bash will fail to source /dev/null (special
2458 # files actually), so we avoid doing that.
2459 if test -f "$cache_file"; then
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2461 $as_echo "$as_me: loading cache $cache_file" >&6;}
2462 case $cache_file in
2463 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2464 *) . "./$cache_file";;
2465 esac
2466 fi
2467 else
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2469 $as_echo "$as_me: creating cache $cache_file" >&6;}
2470 >$cache_file
2471 fi
2472
2473 # Check that the precious variables saved in the cache have kept the same
2474 # value.
2475 ac_cache_corrupted=false
2476 for ac_var in $ac_precious_vars; do
2477 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2478 eval ac_new_set=\$ac_env_${ac_var}_set
2479 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2480 eval ac_new_val=\$ac_env_${ac_var}_value
2481 case $ac_old_set,$ac_new_set in
2482 set,)
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2484 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2485 ac_cache_corrupted=: ;;
2486 ,set)
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2488 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2489 ac_cache_corrupted=: ;;
2490 ,);;
2491 *)
2492 if test "x$ac_old_val" != "x$ac_new_val"; then
2493 # differences in whitespace do not lead to failure.
2494 ac_old_val_w=`echo x $ac_old_val`
2495 ac_new_val_w=`echo x $ac_new_val`
2496 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2498 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2499 ac_cache_corrupted=:
2500 else
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2502 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2503 eval $ac_var=\$ac_old_val
2504 fi
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2506 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2508 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2509 fi;;
2510 esac
2511 # Pass precious variables to config.status.
2512 if test "$ac_new_set" = set; then
2513 case $ac_new_val in
2514 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2515 *) ac_arg=$ac_var=$ac_new_val ;;
2516 esac
2517 case " $ac_configure_args " in
2518 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2519 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2520 esac
2521 fi
2522 done
2523 if $ac_cache_corrupted; then
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2527 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2528 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2529 fi
2530 ## -------------------- ##
2531 ## Main body of script. ##
2532 ## -------------------- ##
2533
2534 ac_ext=c
2535 ac_cpp='$CPP $CPPFLAGS'
2536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2539
2540
2541
2542
2543
2544 ac_config_headers="$ac_config_headers config.h"
2545
2546
2547 # -------
2548 # Options
2549 # -------
2550
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2552 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2553 # Check whether --enable-version-specific-runtime-libs was given.
2554 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2555 enableval=$enable_version_specific_runtime_libs;
2556 case "$enableval" in
2557 yes|no) ;;
2558 *) as_fn_error "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2559 esac
2560
2561 else
2562 enable_version_specific_runtime_libs=no
2563 fi
2564
2565
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2567 $as_echo "$enable_version_specific_runtime_libs" >&6; }
2568
2569 # We would like our source tree to be readonly. However when releases or
2570 # pre-releases are generated, the flex/bison generated files as well as the
2571 # various formats of manuals need to be included along with the rest of the
2572 # sources. Therefore we have --enable-generated-files-in-srcdir to do
2573 # just that.
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2575 $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2576 # Check whether --enable-generated-files-in-srcdir was given.
2577 if test "${enable_generated_files_in_srcdir+set}" = set; then :
2578 enableval=$enable_generated_files_in_srcdir;
2579 case "$enableval" in
2580 yes|no) ;;
2581 *) as_fn_error "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2582 esac
2583
2584 else
2585 enable_generated_files_in_srcdir=no
2586 fi
2587
2588
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2590 $as_echo "$enable_generated_files_in_srcdir" >&6; }
2591 if test "$enable_generated_files_in_srcdir" = yes; then
2592 GENINSRC_TRUE=
2593 GENINSRC_FALSE='#'
2594 else
2595 GENINSRC_TRUE='#'
2596 GENINSRC_FALSE=
2597 fi
2598
2599
2600
2601 # -------
2602 # -------
2603
2604 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2605 #
2606 # You will slowly go insane if you do not grok the following fact: when
2607 # building this library, the top-level /target/ becomes the library's /host/.
2608 #
2609 # configure then causes --target to default to --host, exactly like any
2610 # other package using autoconf. Therefore, 'target' and 'host' will
2611 # always be the same. This makes sense both for native and cross compilers
2612 # just think about it for a little while. :-)
2613 #
2614 # Also, if this library is being configured as part of a cross compiler, the
2615 # top-level configure script will pass the "real" host as $with_cross_host.
2616 #
2617 # Do not delete or change the following two lines. For why, see
2618 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2619 ac_aux_dir=
2620 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2621 for ac_t in install-sh install.sh shtool; do
2622 if test -f "$ac_dir/$ac_t"; then
2623 ac_aux_dir=$ac_dir
2624 ac_install_sh="$ac_aux_dir/$ac_t -c"
2625 break 2
2626 fi
2627 done
2628 done
2629 if test -z "$ac_aux_dir"; then
2630 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2631 fi
2632
2633 # These three variables are undocumented and unsupported,
2634 # and are intended to be withdrawn in a future Autoconf release.
2635 # They can cause serious problems if a builder's source tree is in a directory
2636 # whose full name contains unusual characters.
2637 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2638 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2639 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2640
2641
2642 # Make sure we can run config.sub.
2643 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2644 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2645
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2647 $as_echo_n "checking build system type... " >&6; }
2648 if test "${ac_cv_build+set}" = set; then :
2649 $as_echo_n "(cached) " >&6
2650 else
2651 ac_build_alias=$build_alias
2652 test "x$ac_build_alias" = x &&
2653 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2654 test "x$ac_build_alias" = x &&
2655 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2656 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2657 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2658
2659 fi
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2661 $as_echo "$ac_cv_build" >&6; }
2662 case $ac_cv_build in
2663 *-*-*) ;;
2664 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2665 esac
2666 build=$ac_cv_build
2667 ac_save_IFS=$IFS; IFS='-'
2668 set x $ac_cv_build
2669 shift
2670 build_cpu=$1
2671 build_vendor=$2
2672 shift; shift
2673 # Remember, the first character of IFS is used to create $*,
2674 # except with old shells:
2675 build_os=$*
2676 IFS=$ac_save_IFS
2677 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2678
2679
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2681 $as_echo_n "checking host system type... " >&6; }
2682 if test "${ac_cv_host+set}" = set; then :
2683 $as_echo_n "(cached) " >&6
2684 else
2685 if test "x$host_alias" = x; then
2686 ac_cv_host=$ac_cv_build
2687 else
2688 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2689 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2690 fi
2691
2692 fi
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2694 $as_echo "$ac_cv_host" >&6; }
2695 case $ac_cv_host in
2696 *-*-*) ;;
2697 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2698 esac
2699 host=$ac_cv_host
2700 ac_save_IFS=$IFS; IFS='-'
2701 set x $ac_cv_host
2702 shift
2703 host_cpu=$1
2704 host_vendor=$2
2705 shift; shift
2706 # Remember, the first character of IFS is used to create $*,
2707 # except with old shells:
2708 host_os=$*
2709 IFS=$ac_save_IFS
2710 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2711
2712
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2714 $as_echo_n "checking target system type... " >&6; }
2715 if test "${ac_cv_target+set}" = set; then :
2716 $as_echo_n "(cached) " >&6
2717 else
2718 if test "x$target_alias" = x; then
2719 ac_cv_target=$ac_cv_host
2720 else
2721 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2722 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2723 fi
2724
2725 fi
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2727 $as_echo "$ac_cv_target" >&6; }
2728 case $ac_cv_target in
2729 *-*-*) ;;
2730 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2731 esac
2732 target=$ac_cv_target
2733 ac_save_IFS=$IFS; IFS='-'
2734 set x $ac_cv_target
2735 shift
2736 target_cpu=$1
2737 target_vendor=$2
2738 shift; shift
2739 # Remember, the first character of IFS is used to create $*,
2740 # except with old shells:
2741 target_os=$*
2742 IFS=$ac_save_IFS
2743 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2744
2745
2746 # The aliases save the names the user supplied, while $host etc.
2747 # will get canonicalized.
2748 test -n "$target_alias" &&
2749 test "$program_prefix$program_suffix$program_transform_name" = \
2750 NONENONEs,x,x, &&
2751 program_prefix=${target_alias}-
2752
2753 target_alias=${target_alias-$host_alias}
2754
2755 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2756 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2757 # 1.9.0: minimum required version
2758 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2759 # of other PACKAGE_* variables will, however, and there's nothing
2760 # we can do about that; they come from AC_INIT).
2761 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2762 # file in the top srcdir, etc, etc), so stop complaining.
2763 # no-dist: we don't want 'dist' and related rules.
2764 # -Wall: turns on all automake warnings...
2765 # -Wno-portability: ...except this one, since GNU make is required.
2766 # -Wno-override: ... and this one, since we do want this in testsuite.
2767 am__api_version='1.11'
2768
2769 # Find a good install program. We prefer a C program (faster),
2770 # so one script is as good as another. But avoid the broken or
2771 # incompatible versions:
2772 # SysV /etc/install, /usr/sbin/install
2773 # SunOS /usr/etc/install
2774 # IRIX /sbin/install
2775 # AIX /bin/install
2776 # AmigaOS /C/install, which installs bootblocks on floppy discs
2777 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2778 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2779 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2780 # OS/2's system install, which has a completely different semantic
2781 # ./install, which can be erroneously created by make from ./install.sh.
2782 # Reject install programs that cannot install multiple files.
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2784 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2785 if test -z "$INSTALL"; then
2786 if test "${ac_cv_path_install+set}" = set; then :
2787 $as_echo_n "(cached) " >&6
2788 else
2789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2790 for as_dir in $PATH
2791 do
2792 IFS=$as_save_IFS
2793 test -z "$as_dir" && as_dir=.
2794 # Account for people who put trailing slashes in PATH elements.
2795 case $as_dir/ in #((
2796 ./ | .// | /[cC]/* | \
2797 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2798 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2799 /usr/ucb/* ) ;;
2800 *)
2801 # OSF1 and SCO ODT 3.0 have their own names for install.
2802 # Don't use installbsd from OSF since it installs stuff as root
2803 # by default.
2804 for ac_prog in ginstall scoinst install; do
2805 for ac_exec_ext in '' $ac_executable_extensions; do
2806 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2807 if test $ac_prog = install &&
2808 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2809 # AIX install. It has an incompatible calling convention.
2810 :
2811 elif test $ac_prog = install &&
2812 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2813 # program-specific install script used by HP pwplus--don't use.
2814 :
2815 else
2816 rm -rf conftest.one conftest.two conftest.dir
2817 echo one > conftest.one
2818 echo two > conftest.two
2819 mkdir conftest.dir
2820 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2821 test -s conftest.one && test -s conftest.two &&
2822 test -s conftest.dir/conftest.one &&
2823 test -s conftest.dir/conftest.two
2824 then
2825 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2826 break 3
2827 fi
2828 fi
2829 fi
2830 done
2831 done
2832 ;;
2833 esac
2834
2835 done
2836 IFS=$as_save_IFS
2837
2838 rm -rf conftest.one conftest.two conftest.dir
2839
2840 fi
2841 if test "${ac_cv_path_install+set}" = set; then
2842 INSTALL=$ac_cv_path_install
2843 else
2844 # As a last resort, use the slow shell script. Don't cache a
2845 # value for INSTALL within a source directory, because that will
2846 # break other packages using the cache if that directory is
2847 # removed, or if the value is a relative name.
2848 INSTALL=$ac_install_sh
2849 fi
2850 fi
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2852 $as_echo "$INSTALL" >&6; }
2853
2854 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2855 # It thinks the first close brace ends the variable substitution.
2856 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2857
2858 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2859
2860 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2861
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2863 $as_echo_n "checking whether build environment is sane... " >&6; }
2864 # Just in case
2865 sleep 1
2866 echo timestamp > conftest.file
2867 # Reject unsafe characters in $srcdir or the absolute working directory
2868 # name. Accept space and tab only in the latter.
2869 am_lf='
2870 '
2871 case `pwd` in
2872 *[\\\"\#\$\&\'\`$am_lf]*)
2873 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2874 esac
2875 case $srcdir in
2876 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2877 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2878 esac
2879
2880 # Do `set' in a subshell so we don't clobber the current shell's
2881 # arguments. Must try -L first in case configure is actually a
2882 # symlink; some systems play weird games with the mod time of symlinks
2883 # (eg FreeBSD returns the mod time of the symlink's containing
2884 # directory).
2885 if (
2886 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2887 if test "$*" = "X"; then
2888 # -L didn't work.
2889 set X `ls -t "$srcdir/configure" conftest.file`
2890 fi
2891 rm -f conftest.file
2892 if test "$*" != "X $srcdir/configure conftest.file" \
2893 && test "$*" != "X conftest.file $srcdir/configure"; then
2894
2895 # If neither matched, then we have a broken ls. This can happen
2896 # if, for instance, CONFIG_SHELL is bash and it inherits a
2897 # broken ls alias from the environment. This has actually
2898 # happened. Such a system could not be considered "sane".
2899 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2900 alias in your environment" "$LINENO" 5
2901 fi
2902
2903 test "$2" = conftest.file
2904 )
2905 then
2906 # Ok.
2907 :
2908 else
2909 as_fn_error "newly created file is older than distributed files!
2910 Check your system clock" "$LINENO" 5
2911 fi
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2913 $as_echo "yes" >&6; }
2914 test "$program_prefix" != NONE &&
2915 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2916 # Use a double $ so make ignores it.
2917 test "$program_suffix" != NONE &&
2918 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2919 # Double any \ or $.
2920 # By default was `s,x,x', remove it if useless.
2921 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2922 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2923
2924 # expand $ac_aux_dir to an absolute path
2925 am_aux_dir=`cd $ac_aux_dir && pwd`
2926
2927 if test x"${MISSING+set}" != xset; then
2928 case $am_aux_dir in
2929 *\ * | *\ *)
2930 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2931 *)
2932 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2933 esac
2934 fi
2935 # Use eval to expand $SHELL
2936 if eval "$MISSING --run true"; then
2937 am_missing_run="$MISSING --run "
2938 else
2939 am_missing_run=
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2941 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2942 fi
2943
2944 if test x"${install_sh}" != xset; then
2945 case $am_aux_dir in
2946 *\ * | *\ *)
2947 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2948 *)
2949 install_sh="\${SHELL} $am_aux_dir/install-sh"
2950 esac
2951 fi
2952
2953 # Installed binaries are usually stripped using `strip' when the user
2954 # run `make install-strip'. However `strip' might not be the right
2955 # tool to use in cross-compilation environments, therefore Automake
2956 # will honor the `STRIP' environment variable to overrule this program.
2957 if test "$cross_compiling" != no; then
2958 if test -n "$ac_tool_prefix"; then
2959 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2960 set dummy ${ac_tool_prefix}strip; ac_word=$2
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2962 $as_echo_n "checking for $ac_word... " >&6; }
2963 if test "${ac_cv_prog_STRIP+set}" = set; then :
2964 $as_echo_n "(cached) " >&6
2965 else
2966 if test -n "$STRIP"; then
2967 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2968 else
2969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2970 for as_dir in $PATH
2971 do
2972 IFS=$as_save_IFS
2973 test -z "$as_dir" && as_dir=.
2974 for ac_exec_ext in '' $ac_executable_extensions; do
2975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2976 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2978 break 2
2979 fi
2980 done
2981 done
2982 IFS=$as_save_IFS
2983
2984 fi
2985 fi
2986 STRIP=$ac_cv_prog_STRIP
2987 if test -n "$STRIP"; then
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2989 $as_echo "$STRIP" >&6; }
2990 else
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2992 $as_echo "no" >&6; }
2993 fi
2994
2995
2996 fi
2997 if test -z "$ac_cv_prog_STRIP"; then
2998 ac_ct_STRIP=$STRIP
2999 # Extract the first word of "strip", so it can be a program name with args.
3000 set dummy strip; ac_word=$2
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3002 $as_echo_n "checking for $ac_word... " >&6; }
3003 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3004 $as_echo_n "(cached) " >&6
3005 else
3006 if test -n "$ac_ct_STRIP"; then
3007 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3008 else
3009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3010 for as_dir in $PATH
3011 do
3012 IFS=$as_save_IFS
3013 test -z "$as_dir" && as_dir=.
3014 for ac_exec_ext in '' $ac_executable_extensions; do
3015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3016 ac_cv_prog_ac_ct_STRIP="strip"
3017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3018 break 2
3019 fi
3020 done
3021 done
3022 IFS=$as_save_IFS
3023
3024 fi
3025 fi
3026 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3027 if test -n "$ac_ct_STRIP"; then
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3029 $as_echo "$ac_ct_STRIP" >&6; }
3030 else
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3032 $as_echo "no" >&6; }
3033 fi
3034
3035 if test "x$ac_ct_STRIP" = x; then
3036 STRIP=":"
3037 else
3038 case $cross_compiling:$ac_tool_warned in
3039 yes:)
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3041 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3042 ac_tool_warned=yes ;;
3043 esac
3044 STRIP=$ac_ct_STRIP
3045 fi
3046 else
3047 STRIP="$ac_cv_prog_STRIP"
3048 fi
3049
3050 fi
3051 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3052
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3054 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3055 if test -z "$MKDIR_P"; then
3056 if test "${ac_cv_path_mkdir+set}" = set; then :
3057 $as_echo_n "(cached) " >&6
3058 else
3059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3060 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3061 do
3062 IFS=$as_save_IFS
3063 test -z "$as_dir" && as_dir=.
3064 for ac_prog in mkdir gmkdir; do
3065 for ac_exec_ext in '' $ac_executable_extensions; do
3066 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3067 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3068 'mkdir (GNU coreutils) '* | \
3069 'mkdir (coreutils) '* | \
3070 'mkdir (fileutils) '4.1*)
3071 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3072 break 3;;
3073 esac
3074 done
3075 done
3076 done
3077 IFS=$as_save_IFS
3078
3079 fi
3080
3081 if test "${ac_cv_path_mkdir+set}" = set; then
3082 MKDIR_P="$ac_cv_path_mkdir -p"
3083 else
3084 # As a last resort, use the slow shell script. Don't cache a
3085 # value for MKDIR_P within a source directory, because that will
3086 # break other packages using the cache if that directory is
3087 # removed, or if the value is a relative name.
3088 test -d ./--version && rmdir ./--version
3089 MKDIR_P="$ac_install_sh -d"
3090 fi
3091 fi
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3093 $as_echo "$MKDIR_P" >&6; }
3094
3095 mkdir_p="$MKDIR_P"
3096 case $mkdir_p in
3097 [\\/$]* | ?:[\\/]*) ;;
3098 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3099 esac
3100
3101 for ac_prog in gawk mawk nawk awk
3102 do
3103 # Extract the first word of "$ac_prog", so it can be a program name with args.
3104 set dummy $ac_prog; ac_word=$2
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3106 $as_echo_n "checking for $ac_word... " >&6; }
3107 if test "${ac_cv_prog_AWK+set}" = set; then :
3108 $as_echo_n "(cached) " >&6
3109 else
3110 if test -n "$AWK"; then
3111 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3112 else
3113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3114 for as_dir in $PATH
3115 do
3116 IFS=$as_save_IFS
3117 test -z "$as_dir" && as_dir=.
3118 for ac_exec_ext in '' $ac_executable_extensions; do
3119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3120 ac_cv_prog_AWK="$ac_prog"
3121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3122 break 2
3123 fi
3124 done
3125 done
3126 IFS=$as_save_IFS
3127
3128 fi
3129 fi
3130 AWK=$ac_cv_prog_AWK
3131 if test -n "$AWK"; then
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3133 $as_echo "$AWK" >&6; }
3134 else
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3136 $as_echo "no" >&6; }
3137 fi
3138
3139
3140 test -n "$AWK" && break
3141 done
3142
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3144 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3145 set x ${MAKE-make}
3146 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3147 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3148 $as_echo_n "(cached) " >&6
3149 else
3150 cat >conftest.make <<\_ACEOF
3151 SHELL = /bin/sh
3152 all:
3153 @echo '@@@%%%=$(MAKE)=@@@%%%'
3154 _ACEOF
3155 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3156 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3157 *@@@%%%=?*=@@@%%%*)
3158 eval ac_cv_prog_make_${ac_make}_set=yes;;
3159 *)
3160 eval ac_cv_prog_make_${ac_make}_set=no;;
3161 esac
3162 rm -f conftest.make
3163 fi
3164 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3166 $as_echo "yes" >&6; }
3167 SET_MAKE=
3168 else
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3170 $as_echo "no" >&6; }
3171 SET_MAKE="MAKE=${MAKE-make}"
3172 fi
3173
3174 rm -rf .tst 2>/dev/null
3175 mkdir .tst 2>/dev/null
3176 if test -d .tst; then
3177 am__leading_dot=.
3178 else
3179 am__leading_dot=_
3180 fi
3181 rmdir .tst 2>/dev/null
3182
3183 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3184 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3185 # is not polluted with repeated "-I."
3186 am__isrc=' -I$(srcdir)'
3187 # test to see if srcdir already configured
3188 if test -f $srcdir/config.status; then
3189 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3190 fi
3191 fi
3192
3193 # test whether we have cygpath
3194 if test -z "$CYGPATH_W"; then
3195 if (cygpath --version) >/dev/null 2>/dev/null; then
3196 CYGPATH_W='cygpath -w'
3197 else
3198 CYGPATH_W=echo
3199 fi
3200 fi
3201
3202
3203 # Define the identity of the package.
3204 PACKAGE='libgomp'
3205 VERSION='1.0'
3206
3207
3208 cat >>confdefs.h <<_ACEOF
3209 #define PACKAGE "$PACKAGE"
3210 _ACEOF
3211
3212
3213 cat >>confdefs.h <<_ACEOF
3214 #define VERSION "$VERSION"
3215 _ACEOF
3216
3217 # Some tools Automake needs.
3218
3219 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3220
3221
3222 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3223
3224
3225 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3226
3227
3228 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3229
3230
3231 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3232
3233 # We need awk for the "check" target. The system "awk" is bad on
3234 # some platforms.
3235 # Always define AMTAR for backward compatibility.
3236
3237 AMTAR=${AMTAR-"${am_missing_run}tar"}
3238
3239 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3240
3241
3242
3243
3244
3245 # Default to --enable-multilib
3246 # Check whether --enable-multilib was given.
3247 if test "${enable_multilib+set}" = set; then :
3248 enableval=$enable_multilib; case "$enableval" in
3249 yes) multilib=yes ;;
3250 no) multilib=no ;;
3251 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3252 esac
3253 else
3254 multilib=yes
3255 fi
3256
3257
3258 # We may get other options which we leave undocumented:
3259 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3260 # See config-ml.in if you want the gory details.
3261
3262 if test "$srcdir" = "."; then
3263 if test "$with_target_subdir" != "."; then
3264 multi_basedir="$srcdir/$with_multisrctop../.."
3265 else
3266 multi_basedir="$srcdir/$with_multisrctop.."
3267 fi
3268 else
3269 multi_basedir="$srcdir/.."
3270 fi
3271
3272
3273 # Even if the default multilib is not a cross compilation,
3274 # it may be that some of the other multilibs are.
3275 if test $cross_compiling = no && test $multilib = yes \
3276 && test "x${with_multisubdir}" != x ; then
3277 cross_compiling=maybe
3278 fi
3279
3280 ac_config_commands="$ac_config_commands default-1"
3281
3282
3283 # Calculate toolexeclibdir
3284 # Also toolexecdir, though it's only used in toolexeclibdir
3285 case ${enable_version_specific_runtime_libs} in
3286 yes)
3287 # Need the gcc compiler version to know where to install libraries
3288 # and header files if --enable-version-specific-runtime-libs option
3289 # is selected.
3290 toolexecdir='$(libdir)/gcc/$(target_alias)'
3291 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3292 ;;
3293 no)
3294 if test -n "$with_cross_host" &&
3295 test x"$with_cross_host" != x"no"; then
3296 # Install a library built with a cross compiler in tooldir, not libdir.
3297 toolexecdir='$(exec_prefix)/$(target_alias)'
3298 toolexeclibdir='$(toolexecdir)/lib'
3299 else
3300 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3301 toolexeclibdir='$(libdir)'
3302 fi
3303 multi_os_directory=`$CC -print-multi-os-directory`
3304 case $multi_os_directory in
3305 .) ;; # Avoid trailing /.
3306 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3307 esac
3308 ;;
3309 esac
3310
3311
3312
3313 # Check the compiler.
3314 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3315 # We must force CC to /not/ be precious variables; otherwise
3316 # the wrong, non-multilib-adjusted value will be used in multilibs.
3317 # As a side effect, we have to subst CFLAGS ourselves.
3318
3319
3320
3321 ac_ext=c
3322 ac_cpp='$CPP $CPPFLAGS'
3323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3326 if test -n "$ac_tool_prefix"; then
3327 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3328 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3330 $as_echo_n "checking for $ac_word... " >&6; }
3331 if test "${ac_cv_prog_CC+set}" = set; then :
3332 $as_echo_n "(cached) " >&6
3333 else
3334 if test -n "$CC"; then
3335 ac_cv_prog_CC="$CC" # Let the user override the test.
3336 else
3337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3338 for as_dir in $PATH
3339 do
3340 IFS=$as_save_IFS
3341 test -z "$as_dir" && as_dir=.
3342 for ac_exec_ext in '' $ac_executable_extensions; do
3343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3344 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3346 break 2
3347 fi
3348 done
3349 done
3350 IFS=$as_save_IFS
3351
3352 fi
3353 fi
3354 CC=$ac_cv_prog_CC
3355 if test -n "$CC"; then
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3357 $as_echo "$CC" >&6; }
3358 else
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3360 $as_echo "no" >&6; }
3361 fi
3362
3363
3364 fi
3365 if test -z "$ac_cv_prog_CC"; then
3366 ac_ct_CC=$CC
3367 # Extract the first word of "gcc", so it can be a program name with args.
3368 set dummy gcc; ac_word=$2
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3370 $as_echo_n "checking for $ac_word... " >&6; }
3371 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3372 $as_echo_n "(cached) " >&6
3373 else
3374 if test -n "$ac_ct_CC"; then
3375 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3376 else
3377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3378 for as_dir in $PATH
3379 do
3380 IFS=$as_save_IFS
3381 test -z "$as_dir" && as_dir=.
3382 for ac_exec_ext in '' $ac_executable_extensions; do
3383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3384 ac_cv_prog_ac_ct_CC="gcc"
3385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3386 break 2
3387 fi
3388 done
3389 done
3390 IFS=$as_save_IFS
3391
3392 fi
3393 fi
3394 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3395 if test -n "$ac_ct_CC"; then
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3397 $as_echo "$ac_ct_CC" >&6; }
3398 else
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3400 $as_echo "no" >&6; }
3401 fi
3402
3403 if test "x$ac_ct_CC" = x; then
3404 CC=""
3405 else
3406 case $cross_compiling:$ac_tool_warned in
3407 yes:)
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3409 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3410 ac_tool_warned=yes ;;
3411 esac
3412 CC=$ac_ct_CC
3413 fi
3414 else
3415 CC="$ac_cv_prog_CC"
3416 fi
3417
3418 if test -z "$CC"; then
3419 if test -n "$ac_tool_prefix"; then
3420 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3421 set dummy ${ac_tool_prefix}cc; ac_word=$2
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3423 $as_echo_n "checking for $ac_word... " >&6; }
3424 if test "${ac_cv_prog_CC+set}" = set; then :
3425 $as_echo_n "(cached) " >&6
3426 else
3427 if test -n "$CC"; then
3428 ac_cv_prog_CC="$CC" # Let the user override the test.
3429 else
3430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3431 for as_dir in $PATH
3432 do
3433 IFS=$as_save_IFS
3434 test -z "$as_dir" && as_dir=.
3435 for ac_exec_ext in '' $ac_executable_extensions; do
3436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3437 ac_cv_prog_CC="${ac_tool_prefix}cc"
3438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3439 break 2
3440 fi
3441 done
3442 done
3443 IFS=$as_save_IFS
3444
3445 fi
3446 fi
3447 CC=$ac_cv_prog_CC
3448 if test -n "$CC"; then
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3450 $as_echo "$CC" >&6; }
3451 else
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3453 $as_echo "no" >&6; }
3454 fi
3455
3456
3457 fi
3458 fi
3459 if test -z "$CC"; then
3460 # Extract the first word of "cc", so it can be a program name with args.
3461 set dummy cc; ac_word=$2
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3463 $as_echo_n "checking for $ac_word... " >&6; }
3464 if test "${ac_cv_prog_CC+set}" = set; then :
3465 $as_echo_n "(cached) " >&6
3466 else
3467 if test -n "$CC"; then
3468 ac_cv_prog_CC="$CC" # Let the user override the test.
3469 else
3470 ac_prog_rejected=no
3471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3472 for as_dir in $PATH
3473 do
3474 IFS=$as_save_IFS
3475 test -z "$as_dir" && as_dir=.
3476 for ac_exec_ext in '' $ac_executable_extensions; do
3477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3478 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3479 ac_prog_rejected=yes
3480 continue
3481 fi
3482 ac_cv_prog_CC="cc"
3483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3484 break 2
3485 fi
3486 done
3487 done
3488 IFS=$as_save_IFS
3489
3490 if test $ac_prog_rejected = yes; then
3491 # We found a bogon in the path, so make sure we never use it.
3492 set dummy $ac_cv_prog_CC
3493 shift
3494 if test $# != 0; then
3495 # We chose a different compiler from the bogus one.
3496 # However, it has the same basename, so the bogon will be chosen
3497 # first if we set CC to just the basename; use the full file name.
3498 shift
3499 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3500 fi
3501 fi
3502 fi
3503 fi
3504 CC=$ac_cv_prog_CC
3505 if test -n "$CC"; then
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3507 $as_echo "$CC" >&6; }
3508 else
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3510 $as_echo "no" >&6; }
3511 fi
3512
3513
3514 fi
3515 if test -z "$CC"; then
3516 if test -n "$ac_tool_prefix"; then
3517 for ac_prog in cl.exe
3518 do
3519 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3520 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3522 $as_echo_n "checking for $ac_word... " >&6; }
3523 if test "${ac_cv_prog_CC+set}" = set; then :
3524 $as_echo_n "(cached) " >&6
3525 else
3526 if test -n "$CC"; then
3527 ac_cv_prog_CC="$CC" # Let the user override the test.
3528 else
3529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3530 for as_dir in $PATH
3531 do
3532 IFS=$as_save_IFS
3533 test -z "$as_dir" && as_dir=.
3534 for ac_exec_ext in '' $ac_executable_extensions; do
3535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3536 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3538 break 2
3539 fi
3540 done
3541 done
3542 IFS=$as_save_IFS
3543
3544 fi
3545 fi
3546 CC=$ac_cv_prog_CC
3547 if test -n "$CC"; then
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3549 $as_echo "$CC" >&6; }
3550 else
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3552 $as_echo "no" >&6; }
3553 fi
3554
3555
3556 test -n "$CC" && break
3557 done
3558 fi
3559 if test -z "$CC"; then
3560 ac_ct_CC=$CC
3561 for ac_prog in cl.exe
3562 do
3563 # Extract the first word of "$ac_prog", so it can be a program name with args.
3564 set dummy $ac_prog; ac_word=$2
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3566 $as_echo_n "checking for $ac_word... " >&6; }
3567 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3568 $as_echo_n "(cached) " >&6
3569 else
3570 if test -n "$ac_ct_CC"; then
3571 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3572 else
3573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3574 for as_dir in $PATH
3575 do
3576 IFS=$as_save_IFS
3577 test -z "$as_dir" && as_dir=.
3578 for ac_exec_ext in '' $ac_executable_extensions; do
3579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3580 ac_cv_prog_ac_ct_CC="$ac_prog"
3581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3582 break 2
3583 fi
3584 done
3585 done
3586 IFS=$as_save_IFS
3587
3588 fi
3589 fi
3590 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3591 if test -n "$ac_ct_CC"; then
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3593 $as_echo "$ac_ct_CC" >&6; }
3594 else
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3596 $as_echo "no" >&6; }
3597 fi
3598
3599
3600 test -n "$ac_ct_CC" && break
3601 done
3602
3603 if test "x$ac_ct_CC" = x; then
3604 CC=""
3605 else
3606 case $cross_compiling:$ac_tool_warned in
3607 yes:)
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3609 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3610 ac_tool_warned=yes ;;
3611 esac
3612 CC=$ac_ct_CC
3613 fi
3614 fi
3615
3616 fi
3617
3618
3619 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3620 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3621 as_fn_error "no acceptable C compiler found in \$PATH
3622 See \`config.log' for more details." "$LINENO" 5; }
3623
3624 # Provide some information about the compiler.
3625 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3626 set X $ac_compile
3627 ac_compiler=$2
3628 for ac_option in --version -v -V -qversion; do
3629 { { ac_try="$ac_compiler $ac_option >&5"
3630 case "(($ac_try" in
3631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3632 *) ac_try_echo=$ac_try;;
3633 esac
3634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3635 $as_echo "$ac_try_echo"; } >&5
3636 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3637 ac_status=$?
3638 if test -s conftest.err; then
3639 sed '10a\
3640 ... rest of stderr output deleted ...
3641 10q' conftest.err >conftest.er1
3642 cat conftest.er1 >&5
3643 rm -f conftest.er1 conftest.err
3644 fi
3645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3646 test $ac_status = 0; }
3647 done
3648
3649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3650 /* end confdefs.h. */
3651
3652 int
3653 main ()
3654 {
3655
3656 ;
3657 return 0;
3658 }
3659 _ACEOF
3660 ac_clean_files_save=$ac_clean_files
3661 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3662 # Try to create an executable without -o first, disregard a.out.
3663 # It will help us diagnose broken compilers, and finding out an intuition
3664 # of exeext.
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3666 $as_echo_n "checking for C compiler default output file name... " >&6; }
3667 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3668
3669 # The possible output files:
3670 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3671
3672 ac_rmfiles=
3673 for ac_file in $ac_files
3674 do
3675 case $ac_file in
3676 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3677 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3678 esac
3679 done
3680 rm -f $ac_rmfiles
3681
3682 if { { ac_try="$ac_link_default"
3683 case "(($ac_try" in
3684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3685 *) ac_try_echo=$ac_try;;
3686 esac
3687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3688 $as_echo "$ac_try_echo"; } >&5
3689 (eval "$ac_link_default") 2>&5
3690 ac_status=$?
3691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3692 test $ac_status = 0; }; then :
3693 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3694 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3695 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3696 # so that the user can short-circuit this test for compilers unknown to
3697 # Autoconf.
3698 for ac_file in $ac_files ''
3699 do
3700 test -f "$ac_file" || continue
3701 case $ac_file in
3702 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3703 ;;
3704 [ab].out )
3705 # We found the default executable, but exeext='' is most
3706 # certainly right.
3707 break;;
3708 *.* )
3709 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3710 then :; else
3711 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3712 fi
3713 # We set ac_cv_exeext here because the later test for it is not
3714 # safe: cross compilers may not add the suffix if given an `-o'
3715 # argument, so we may need to know it at that point already.
3716 # Even if this section looks crufty: it has the advantage of
3717 # actually working.
3718 break;;
3719 * )
3720 break;;
3721 esac
3722 done
3723 test "$ac_cv_exeext" = no && ac_cv_exeext=
3724
3725 else
3726 ac_file=''
3727 fi
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3729 $as_echo "$ac_file" >&6; }
3730 if test -z "$ac_file"; then :
3731 $as_echo "$as_me: failed program was:" >&5
3732 sed 's/^/| /' conftest.$ac_ext >&5
3733
3734 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3735 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3736 { as_fn_set_status 77
3737 as_fn_error "C compiler cannot create executables
3738 See \`config.log' for more details." "$LINENO" 5; }; }
3739 fi
3740 ac_exeext=$ac_cv_exeext
3741
3742 # Check that the compiler produces executables we can run. If not, either
3743 # the compiler is broken, or we cross compile.
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3745 $as_echo_n "checking whether the C compiler works... " >&6; }
3746 # If not cross compiling, check that we can run a simple program.
3747 if test "$cross_compiling" != yes; then
3748 if { ac_try='./$ac_file'
3749 { { case "(($ac_try" in
3750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3751 *) ac_try_echo=$ac_try;;
3752 esac
3753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3754 $as_echo "$ac_try_echo"; } >&5
3755 (eval "$ac_try") 2>&5
3756 ac_status=$?
3757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3758 test $ac_status = 0; }; }; then
3759 cross_compiling=no
3760 else
3761 if test "$cross_compiling" = maybe; then
3762 cross_compiling=yes
3763 else
3764 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3765 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3766 as_fn_error "cannot run C compiled programs.
3767 If you meant to cross compile, use \`--host'.
3768 See \`config.log' for more details." "$LINENO" 5; }
3769 fi
3770 fi
3771 fi
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3773 $as_echo "yes" >&6; }
3774
3775 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3776 ac_clean_files=$ac_clean_files_save
3777 # Check that the compiler produces executables we can run. If not, either
3778 # the compiler is broken, or we cross compile.
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3780 $as_echo_n "checking whether we are cross compiling... " >&6; }
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3782 $as_echo "$cross_compiling" >&6; }
3783
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3785 $as_echo_n "checking for suffix of executables... " >&6; }
3786 if { { ac_try="$ac_link"
3787 case "(($ac_try" in
3788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3789 *) ac_try_echo=$ac_try;;
3790 esac
3791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3792 $as_echo "$ac_try_echo"; } >&5
3793 (eval "$ac_link") 2>&5
3794 ac_status=$?
3795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3796 test $ac_status = 0; }; then :
3797 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3798 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3799 # work properly (i.e., refer to `conftest.exe'), while it won't with
3800 # `rm'.
3801 for ac_file in conftest.exe conftest conftest.*; do
3802 test -f "$ac_file" || continue
3803 case $ac_file in
3804 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3805 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3806 break;;
3807 * ) break;;
3808 esac
3809 done
3810 else
3811 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3812 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3813 as_fn_error "cannot compute suffix of executables: cannot compile and link
3814 See \`config.log' for more details." "$LINENO" 5; }
3815 fi
3816 rm -f conftest$ac_cv_exeext
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3818 $as_echo "$ac_cv_exeext" >&6; }
3819
3820 rm -f conftest.$ac_ext
3821 EXEEXT=$ac_cv_exeext
3822 ac_exeext=$EXEEXT
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3824 $as_echo_n "checking for suffix of object files... " >&6; }
3825 if test "${ac_cv_objext+set}" = set; then :
3826 $as_echo_n "(cached) " >&6
3827 else
3828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3829 /* end confdefs.h. */
3830
3831 int
3832 main ()
3833 {
3834
3835 ;
3836 return 0;
3837 }
3838 _ACEOF
3839 rm -f conftest.o conftest.obj
3840 if { { ac_try="$ac_compile"
3841 case "(($ac_try" in
3842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3843 *) ac_try_echo=$ac_try;;
3844 esac
3845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3846 $as_echo "$ac_try_echo"; } >&5
3847 (eval "$ac_compile") 2>&5
3848 ac_status=$?
3849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3850 test $ac_status = 0; }; then :
3851 for ac_file in conftest.o conftest.obj conftest.*; do
3852 test -f "$ac_file" || continue;
3853 case $ac_file in
3854 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3855 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3856 break;;
3857 esac
3858 done
3859 else
3860 $as_echo "$as_me: failed program was:" >&5
3861 sed 's/^/| /' conftest.$ac_ext >&5
3862
3863 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3864 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3865 as_fn_error "cannot compute suffix of object files: cannot compile
3866 See \`config.log' for more details." "$LINENO" 5; }
3867 fi
3868 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3869 fi
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3871 $as_echo "$ac_cv_objext" >&6; }
3872 OBJEXT=$ac_cv_objext
3873 ac_objext=$OBJEXT
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3875 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3876 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3877 $as_echo_n "(cached) " >&6
3878 else
3879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3880 /* end confdefs.h. */
3881
3882 int
3883 main ()
3884 {
3885 #ifndef __GNUC__
3886 choke me
3887 #endif
3888
3889 ;
3890 return 0;
3891 }
3892 _ACEOF
3893 if ac_fn_c_try_compile "$LINENO"; then :
3894 ac_compiler_gnu=yes
3895 else
3896 ac_compiler_gnu=no
3897 fi
3898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3899 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3900
3901 fi
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3903 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3904 if test $ac_compiler_gnu = yes; then
3905 GCC=yes
3906 else
3907 GCC=
3908 fi
3909 ac_test_CFLAGS=${CFLAGS+set}
3910 ac_save_CFLAGS=$CFLAGS
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3912 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3913 if test "${ac_cv_prog_cc_g+set}" = set; then :
3914 $as_echo_n "(cached) " >&6
3915 else
3916 ac_save_c_werror_flag=$ac_c_werror_flag
3917 ac_c_werror_flag=yes
3918 ac_cv_prog_cc_g=no
3919 CFLAGS="-g"
3920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3921 /* end confdefs.h. */
3922
3923 int
3924 main ()
3925 {
3926
3927 ;
3928 return 0;
3929 }
3930 _ACEOF
3931 if ac_fn_c_try_compile "$LINENO"; then :
3932 ac_cv_prog_cc_g=yes
3933 else
3934 CFLAGS=""
3935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3936 /* end confdefs.h. */
3937
3938 int
3939 main ()
3940 {
3941
3942 ;
3943 return 0;
3944 }
3945 _ACEOF
3946 if ac_fn_c_try_compile "$LINENO"; then :
3947
3948 else
3949 ac_c_werror_flag=$ac_save_c_werror_flag
3950 CFLAGS="-g"
3951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3952 /* end confdefs.h. */
3953
3954 int
3955 main ()
3956 {
3957
3958 ;
3959 return 0;
3960 }
3961 _ACEOF
3962 if ac_fn_c_try_compile "$LINENO"; then :
3963 ac_cv_prog_cc_g=yes
3964 fi
3965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3966 fi
3967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3968 fi
3969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3970 ac_c_werror_flag=$ac_save_c_werror_flag
3971 fi
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3973 $as_echo "$ac_cv_prog_cc_g" >&6; }
3974 if test "$ac_test_CFLAGS" = set; then
3975 CFLAGS=$ac_save_CFLAGS
3976 elif test $ac_cv_prog_cc_g = yes; then
3977 if test "$GCC" = yes; then
3978 CFLAGS="-g -O2"
3979 else
3980 CFLAGS="-g"
3981 fi
3982 else
3983 if test "$GCC" = yes; then
3984 CFLAGS="-O2"
3985 else
3986 CFLAGS=
3987 fi
3988 fi
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3990 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3991 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3992 $as_echo_n "(cached) " >&6
3993 else
3994 ac_cv_prog_cc_c89=no
3995 ac_save_CC=$CC
3996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3997 /* end confdefs.h. */
3998 #include <stdarg.h>
3999 #include <stdio.h>
4000 #include <sys/types.h>
4001 #include <sys/stat.h>
4002 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4003 struct buf { int x; };
4004 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4005 static char *e (p, i)
4006 char **p;
4007 int i;
4008 {
4009 return p[i];
4010 }
4011 static char *f (char * (*g) (char **, int), char **p, ...)
4012 {
4013 char *s;
4014 va_list v;
4015 va_start (v,p);
4016 s = g (p, va_arg (v,int));
4017 va_end (v);
4018 return s;
4019 }
4020
4021 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4022 function prototypes and stuff, but not '\xHH' hex character constants.
4023 These don't provoke an error unfortunately, instead are silently treated
4024 as 'x'. The following induces an error, until -std is added to get
4025 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4026 array size at least. It's necessary to write '\x00'==0 to get something
4027 that's true only with -std. */
4028 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4029
4030 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4031 inside strings and character constants. */
4032 #define FOO(x) 'x'
4033 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4034
4035 int test (int i, double x);
4036 struct s1 {int (*f) (int a);};
4037 struct s2 {int (*f) (double a);};
4038 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4039 int argc;
4040 char **argv;
4041 int
4042 main ()
4043 {
4044 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4045 ;
4046 return 0;
4047 }
4048 _ACEOF
4049 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4050 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4051 do
4052 CC="$ac_save_CC $ac_arg"
4053 if ac_fn_c_try_compile "$LINENO"; then :
4054 ac_cv_prog_cc_c89=$ac_arg
4055 fi
4056 rm -f core conftest.err conftest.$ac_objext
4057 test "x$ac_cv_prog_cc_c89" != "xno" && break
4058 done
4059 rm -f conftest.$ac_ext
4060 CC=$ac_save_CC
4061
4062 fi
4063 # AC_CACHE_VAL
4064 case "x$ac_cv_prog_cc_c89" in
4065 x)
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4067 $as_echo "none needed" >&6; } ;;
4068 xno)
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4070 $as_echo "unsupported" >&6; } ;;
4071 *)
4072 CC="$CC $ac_cv_prog_cc_c89"
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4074 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4075 esac
4076 if test "x$ac_cv_prog_cc_c89" != xno; then :
4077
4078 fi
4079
4080 ac_ext=c
4081 ac_cpp='$CPP $CPPFLAGS'
4082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4085 DEPDIR="${am__leading_dot}deps"
4086
4087 ac_config_commands="$ac_config_commands depfiles"
4088
4089
4090 am_make=${MAKE-make}
4091 cat > confinc << 'END'
4092 am__doit:
4093 @echo this is the am__doit target
4094 .PHONY: am__doit
4095 END
4096 # If we don't find an include directive, just comment out the code.
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4098 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4099 am__include="#"
4100 am__quote=
4101 _am_result=none
4102 # First try GNU make style include.
4103 echo "include confinc" > confmf
4104 # Ignore all kinds of additional output from `make'.
4105 case `$am_make -s -f confmf 2> /dev/null` in #(
4106 *the\ am__doit\ target*)
4107 am__include=include
4108 am__quote=
4109 _am_result=GNU
4110 ;;
4111 esac
4112 # Now try BSD make style include.
4113 if test "$am__include" = "#"; then
4114 echo '.include "confinc"' > confmf
4115 case `$am_make -s -f confmf 2> /dev/null` in #(
4116 *the\ am__doit\ target*)
4117 am__include=.include
4118 am__quote="\""
4119 _am_result=BSD
4120 ;;
4121 esac
4122 fi
4123
4124
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4126 $as_echo "$_am_result" >&6; }
4127 rm -f confinc confmf
4128
4129 # Check whether --enable-dependency-tracking was given.
4130 if test "${enable_dependency_tracking+set}" = set; then :
4131 enableval=$enable_dependency_tracking;
4132 fi
4133
4134 if test "x$enable_dependency_tracking" != xno; then
4135 am_depcomp="$ac_aux_dir/depcomp"
4136 AMDEPBACKSLASH='\'
4137 fi
4138 if test "x$enable_dependency_tracking" != xno; then
4139 AMDEP_TRUE=
4140 AMDEP_FALSE='#'
4141 else
4142 AMDEP_TRUE='#'
4143 AMDEP_FALSE=
4144 fi
4145
4146
4147
4148 depcc="$CC" am_compiler_list=
4149
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4151 $as_echo_n "checking dependency style of $depcc... " >&6; }
4152 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4153 $as_echo_n "(cached) " >&6
4154 else
4155 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4156 # We make a subdir and do the tests there. Otherwise we can end up
4157 # making bogus files that we don't know about and never remove. For
4158 # instance it was reported that on HP-UX the gcc test will end up
4159 # making a dummy file named `D' -- because `-MD' means `put the output
4160 # in D'.
4161 mkdir conftest.dir
4162 # Copy depcomp to subdir because otherwise we won't find it if we're
4163 # using a relative directory.
4164 cp "$am_depcomp" conftest.dir
4165 cd conftest.dir
4166 # We will build objects and dependencies in a subdirectory because
4167 # it helps to detect inapplicable dependency modes. For instance
4168 # both Tru64's cc and ICC support -MD to output dependencies as a
4169 # side effect of compilation, but ICC will put the dependencies in
4170 # the current directory while Tru64 will put them in the object
4171 # directory.
4172 mkdir sub
4173
4174 am_cv_CC_dependencies_compiler_type=none
4175 if test "$am_compiler_list" = ""; then
4176 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4177 fi
4178 am__universal=false
4179 case " $depcc " in #(
4180 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4181 esac
4182
4183 for depmode in $am_compiler_list; do
4184 # Setup a source with many dependencies, because some compilers
4185 # like to wrap large dependency lists on column 80 (with \), and
4186 # we should not choose a depcomp mode which is confused by this.
4187 #
4188 # We need to recreate these files for each test, as the compiler may
4189 # overwrite some of them when testing with obscure command lines.
4190 # This happens at least with the AIX C compiler.
4191 : > sub/conftest.c
4192 for i in 1 2 3 4 5 6; do
4193 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4194 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4195 # Solaris 8's {/usr,}/bin/sh.
4196 touch sub/conftst$i.h
4197 done
4198 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4199
4200 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4201 # mode. It turns out that the SunPro C++ compiler does not properly
4202 # handle `-M -o', and we need to detect this. Also, some Intel
4203 # versions had trouble with output in subdirs
4204 am__obj=sub/conftest.${OBJEXT-o}
4205 am__minus_obj="-o $am__obj"
4206 case $depmode in
4207 gcc)
4208 # This depmode causes a compiler race in universal mode.
4209 test "$am__universal" = false || continue
4210 ;;
4211 nosideeffect)
4212 # after this tag, mechanisms are not by side-effect, so they'll
4213 # only be used when explicitly requested
4214 if test "x$enable_dependency_tracking" = xyes; then
4215 continue
4216 else
4217 break
4218 fi
4219 ;;
4220 msvisualcpp | msvcmsys)
4221 # This compiler won't grok `-c -o', but also, the minuso test has
4222 # not run yet. These depmodes are late enough in the game, and
4223 # so weak that their functioning should not be impacted.
4224 am__obj=conftest.${OBJEXT-o}
4225 am__minus_obj=
4226 ;;
4227 none) break ;;
4228 esac
4229 if depmode=$depmode \
4230 source=sub/conftest.c object=$am__obj \
4231 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4232 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4233 >/dev/null 2>conftest.err &&
4234 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4235 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4236 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4237 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4238 # icc doesn't choke on unknown options, it will just issue warnings
4239 # or remarks (even with -Werror). So we grep stderr for any message
4240 # that says an option was ignored or not supported.
4241 # When given -MP, icc 7.0 and 7.1 complain thusly:
4242 # icc: Command line warning: ignoring option '-M'; no argument required
4243 # The diagnosis changed in icc 8.0:
4244 # icc: Command line remark: option '-MP' not supported
4245 if (grep 'ignoring option' conftest.err ||
4246 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4247 am_cv_CC_dependencies_compiler_type=$depmode
4248 break
4249 fi
4250 fi
4251 done
4252
4253 cd ..
4254 rm -rf conftest.dir
4255 else
4256 am_cv_CC_dependencies_compiler_type=none
4257 fi
4258
4259 fi
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4261 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4262 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4263
4264 if
4265 test "x$enable_dependency_tracking" != xno \
4266 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4267 am__fastdepCC_TRUE=
4268 am__fastdepCC_FALSE='#'
4269 else
4270 am__fastdepCC_TRUE='#'
4271 am__fastdepCC_FALSE=
4272 fi
4273
4274
4275
4276
4277
4278
4279 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
4280 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
4281 # in both places for now and restore CFLAGS at the end of config.
4282 save_CFLAGS="$CFLAGS"
4283
4284 # Add -Wall -Werror if we are using GCC.
4285 if test "x$GCC" = "xyes"; then
4286 XCFLAGS="$XCFLAGS -Wall -Werror"
4287 fi
4288
4289 # Find other programs we need.
4290 if test -n "$ac_tool_prefix"; then
4291 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4292 set dummy ${ac_tool_prefix}ar; ac_word=$2
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4294 $as_echo_n "checking for $ac_word... " >&6; }
4295 if test "${ac_cv_prog_AR+set}" = set; then :
4296 $as_echo_n "(cached) " >&6
4297 else
4298 if test -n "$AR"; then
4299 ac_cv_prog_AR="$AR" # Let the user override the test.
4300 else
4301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4302 for as_dir in $PATH
4303 do
4304 IFS=$as_save_IFS
4305 test -z "$as_dir" && as_dir=.
4306 for ac_exec_ext in '' $ac_executable_extensions; do
4307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4308 ac_cv_prog_AR="${ac_tool_prefix}ar"
4309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4310 break 2
4311 fi
4312 done
4313 done
4314 IFS=$as_save_IFS
4315
4316 fi
4317 fi
4318 AR=$ac_cv_prog_AR
4319 if test -n "$AR"; then
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4321 $as_echo "$AR" >&6; }
4322 else
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4324 $as_echo "no" >&6; }
4325 fi
4326
4327
4328 fi
4329 if test -z "$ac_cv_prog_AR"; then
4330 ac_ct_AR=$AR
4331 # Extract the first word of "ar", so it can be a program name with args.
4332 set dummy ar; ac_word=$2
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4334 $as_echo_n "checking for $ac_word... " >&6; }
4335 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4336 $as_echo_n "(cached) " >&6
4337 else
4338 if test -n "$ac_ct_AR"; then
4339 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4340 else
4341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4342 for as_dir in $PATH
4343 do
4344 IFS=$as_save_IFS
4345 test -z "$as_dir" && as_dir=.
4346 for ac_exec_ext in '' $ac_executable_extensions; do
4347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4348 ac_cv_prog_ac_ct_AR="ar"
4349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4350 break 2
4351 fi
4352 done
4353 done
4354 IFS=$as_save_IFS
4355
4356 fi
4357 fi
4358 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4359 if test -n "$ac_ct_AR"; then
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4361 $as_echo "$ac_ct_AR" >&6; }
4362 else
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4364 $as_echo "no" >&6; }
4365 fi
4366
4367 if test "x$ac_ct_AR" = x; then
4368 AR=""
4369 else
4370 case $cross_compiling:$ac_tool_warned in
4371 yes:)
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4373 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4374 ac_tool_warned=yes ;;
4375 esac
4376 AR=$ac_ct_AR
4377 fi
4378 else
4379 AR="$ac_cv_prog_AR"
4380 fi
4381
4382 if test -n "$ac_tool_prefix"; then
4383 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4384 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4386 $as_echo_n "checking for $ac_word... " >&6; }
4387 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4388 $as_echo_n "(cached) " >&6
4389 else
4390 if test -n "$RANLIB"; then
4391 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4392 else
4393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4394 for as_dir in $PATH
4395 do
4396 IFS=$as_save_IFS
4397 test -z "$as_dir" && as_dir=.
4398 for ac_exec_ext in '' $ac_executable_extensions; do
4399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4400 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4402 break 2
4403 fi
4404 done
4405 done
4406 IFS=$as_save_IFS
4407
4408 fi
4409 fi
4410 RANLIB=$ac_cv_prog_RANLIB
4411 if test -n "$RANLIB"; then
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4413 $as_echo "$RANLIB" >&6; }
4414 else
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4416 $as_echo "no" >&6; }
4417 fi
4418
4419
4420 fi
4421 if test -z "$ac_cv_prog_RANLIB"; then
4422 ac_ct_RANLIB=$RANLIB
4423 # Extract the first word of "ranlib", so it can be a program name with args.
4424 set dummy ranlib; ac_word=$2
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4426 $as_echo_n "checking for $ac_word... " >&6; }
4427 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4428 $as_echo_n "(cached) " >&6
4429 else
4430 if test -n "$ac_ct_RANLIB"; then
4431 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4432 else
4433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434 for as_dir in $PATH
4435 do
4436 IFS=$as_save_IFS
4437 test -z "$as_dir" && as_dir=.
4438 for ac_exec_ext in '' $ac_executable_extensions; do
4439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4440 ac_cv_prog_ac_ct_RANLIB="ranlib"
4441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4442 break 2
4443 fi
4444 done
4445 done
4446 IFS=$as_save_IFS
4447
4448 fi
4449 fi
4450 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4451 if test -n "$ac_ct_RANLIB"; then
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4453 $as_echo "$ac_ct_RANLIB" >&6; }
4454 else
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4456 $as_echo "no" >&6; }
4457 fi
4458
4459 if test "x$ac_ct_RANLIB" = x; then
4460 RANLIB="ranlib-not-found-in-path-error"
4461 else
4462 case $cross_compiling:$ac_tool_warned in
4463 yes:)
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4465 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4466 ac_tool_warned=yes ;;
4467 esac
4468 RANLIB=$ac_ct_RANLIB
4469 fi
4470 else
4471 RANLIB="$ac_cv_prog_RANLIB"
4472 fi
4473
4474 # Extract the first word of "perl", so it can be a program name with args.
4475 set dummy perl; ac_word=$2
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4477 $as_echo_n "checking for $ac_word... " >&6; }
4478 if test "${ac_cv_path_PERL+set}" = set; then :
4479 $as_echo_n "(cached) " >&6
4480 else
4481 case $PERL in
4482 [\\/]* | ?:[\\/]*)
4483 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4484 ;;
4485 *)
4486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487 for as_dir in $PATH
4488 do
4489 IFS=$as_save_IFS
4490 test -z "$as_dir" && as_dir=.
4491 for ac_exec_ext in '' $ac_executable_extensions; do
4492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4493 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4495 break 2
4496 fi
4497 done
4498 done
4499 IFS=$as_save_IFS
4500
4501 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
4502 ;;
4503 esac
4504 fi
4505 PERL=$ac_cv_path_PERL
4506 if test -n "$PERL"; then
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4508 $as_echo "$PERL" >&6; }
4509 else
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4511 $as_echo "no" >&6; }
4512 fi
4513
4514
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4516 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4517 set x ${MAKE-make}
4518 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4519 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4520 $as_echo_n "(cached) " >&6
4521 else
4522 cat >conftest.make <<\_ACEOF
4523 SHELL = /bin/sh
4524 all:
4525 @echo '@@@%%%=$(MAKE)=@@@%%%'
4526 _ACEOF
4527 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4528 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4529 *@@@%%%=?*=@@@%%%*)
4530 eval ac_cv_prog_make_${ac_make}_set=yes;;
4531 *)
4532 eval ac_cv_prog_make_${ac_make}_set=no;;
4533 esac
4534 rm -f conftest.make
4535 fi
4536 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4538 $as_echo "yes" >&6; }
4539 SET_MAKE=
4540 else
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4542 $as_echo "no" >&6; }
4543 SET_MAKE="MAKE=${MAKE-make}"
4544 fi
4545
4546
4547
4548 # See if makeinfo has been installed and is modern enough
4549 # that we can use it.
4550
4551 # Extract the first word of "makeinfo", so it can be a program name with args.
4552 set dummy makeinfo; ac_word=$2
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4554 $as_echo_n "checking for $ac_word... " >&6; }
4555 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
4556 $as_echo_n "(cached) " >&6
4557 else
4558 if test -n "$MAKEINFO"; then
4559 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4560 else
4561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562 for as_dir in $PATH
4563 do
4564 IFS=$as_save_IFS
4565 test -z "$as_dir" && as_dir=.
4566 for ac_exec_ext in '' $ac_executable_extensions; do
4567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4568 ac_cv_prog_MAKEINFO="makeinfo"
4569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4570 break 2
4571 fi
4572 done
4573 done
4574 IFS=$as_save_IFS
4575
4576 fi
4577 fi
4578 MAKEINFO=$ac_cv_prog_MAKEINFO
4579 if test -n "$MAKEINFO"; then
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4581 $as_echo "$MAKEINFO" >&6; }
4582 else
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4584 $as_echo "no" >&6; }
4585 fi
4586
4587
4588 if test -n "$MAKEINFO"; then
4589 # Found it, now check the version.
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
4591 $as_echo_n "checking for modern makeinfo... " >&6; }
4592 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
4593 $as_echo_n "(cached) " >&6
4594 else
4595 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
4596 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4597
4598 case $ac_prog_version in
4599 '') gcc_cv_prog_makeinfo_modern=no;;
4600 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
4601 *) gcc_cv_prog_makeinfo_modern=no;;
4602 esac
4603
4604 fi
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
4606 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
4607 else
4608 gcc_cv_prog_makeinfo_modern=no
4609 fi
4610 if test $gcc_cv_prog_makeinfo_modern = no; then
4611 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
4612 fi
4613
4614 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
4615 BUILD_INFO_TRUE=
4616 BUILD_INFO_FALSE='#'
4617 else
4618 BUILD_INFO_TRUE='#'
4619 BUILD_INFO_FALSE=
4620 fi
4621
4622
4623
4624 # Configure libtool
4625 case `pwd` in
4626 *\ * | *\ *)
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4628 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4629 esac
4630
4631
4632
4633 macro_version='2.2.7a'
4634 macro_revision='1.3134'
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648 ltmain="$ac_aux_dir/ltmain.sh"
4649
4650 # Backslashify metacharacters that are still active within
4651 # double-quoted strings.
4652 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4653
4654 # Same as above, but do not quote variable references.
4655 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4656
4657 # Sed substitution to delay expansion of an escaped shell variable in a
4658 # double_quote_subst'ed string.
4659 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4660
4661 # Sed substitution to delay expansion of an escaped single quote.
4662 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4663
4664 # Sed substitution to avoid accidental globbing in evaled expressions
4665 no_glob_subst='s/\*/\\\*/g'
4666
4667 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4668 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4669 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4670
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4672 $as_echo_n "checking how to print strings... " >&6; }
4673 # Test print first, because it will be a builtin if present.
4674 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4675 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4676 ECHO='print -r --'
4677 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4678 ECHO='printf %s\n'
4679 else
4680 # Use this function as a fallback that always works.
4681 func_fallback_echo ()
4682 {
4683 eval 'cat <<_LTECHO_EOF
4684 $1
4685 _LTECHO_EOF'
4686 }
4687 ECHO='func_fallback_echo'
4688 fi
4689
4690 # func_echo_all arg...
4691 # Invoke $ECHO with all args, space-separated.
4692 func_echo_all ()
4693 {
4694 $ECHO ""
4695 }
4696
4697 case "$ECHO" in
4698 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4699 $as_echo "printf" >&6; } ;;
4700 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4701 $as_echo "print -r" >&6; } ;;
4702 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4703 $as_echo "cat" >&6; } ;;
4704 esac
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4720 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4721 if test "${ac_cv_path_SED+set}" = set; then :
4722 $as_echo_n "(cached) " >&6
4723 else
4724 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4725 for ac_i in 1 2 3 4 5 6 7; do
4726 ac_script="$ac_script$as_nl$ac_script"
4727 done
4728 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4729 { ac_script=; unset ac_script;}
4730 if test -z "$SED"; then
4731 ac_path_SED_found=false
4732 # Loop through the user's path and test for each of PROGNAME-LIST
4733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4734 for as_dir in $PATH
4735 do
4736 IFS=$as_save_IFS
4737 test -z "$as_dir" && as_dir=.
4738 for ac_prog in sed gsed; do
4739 for ac_exec_ext in '' $ac_executable_extensions; do
4740 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4741 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4742 # Check for GNU ac_path_SED and select it if it is found.
4743 # Check for GNU $ac_path_SED
4744 case `"$ac_path_SED" --version 2>&1` in
4745 *GNU*)
4746 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4747 *)
4748 ac_count=0
4749 $as_echo_n 0123456789 >"conftest.in"
4750 while :
4751 do
4752 cat "conftest.in" "conftest.in" >"conftest.tmp"
4753 mv "conftest.tmp" "conftest.in"
4754 cp "conftest.in" "conftest.nl"
4755 $as_echo '' >> "conftest.nl"
4756 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4757 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4758 as_fn_arith $ac_count + 1 && ac_count=$as_val
4759 if test $ac_count -gt ${ac_path_SED_max-0}; then
4760 # Best one so far, save it but keep looking for a better one
4761 ac_cv_path_SED="$ac_path_SED"
4762 ac_path_SED_max=$ac_count
4763 fi
4764 # 10*(2^10) chars as input seems more than enough
4765 test $ac_count -gt 10 && break
4766 done
4767 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4768 esac
4769
4770 $ac_path_SED_found && break 3
4771 done
4772 done
4773 done
4774 IFS=$as_save_IFS
4775 if test -z "$ac_cv_path_SED"; then
4776 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4777 fi
4778 else
4779 ac_cv_path_SED=$SED
4780 fi
4781
4782 fi
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4784 $as_echo "$ac_cv_path_SED" >&6; }
4785 SED="$ac_cv_path_SED"
4786 rm -f conftest.sed
4787
4788 test -z "$SED" && SED=sed
4789 Xsed="$SED -e 1s/^X//"
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4802 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4803 if test "${ac_cv_path_GREP+set}" = set; then :
4804 $as_echo_n "(cached) " >&6
4805 else
4806 if test -z "$GREP"; then
4807 ac_path_GREP_found=false
4808 # Loop through the user's path and test for each of PROGNAME-LIST
4809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4810 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4811 do
4812 IFS=$as_save_IFS
4813 test -z "$as_dir" && as_dir=.
4814 for ac_prog in grep ggrep; do
4815 for ac_exec_ext in '' $ac_executable_extensions; do
4816 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4817 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4818 # Check for GNU ac_path_GREP and select it if it is found.
4819 # Check for GNU $ac_path_GREP
4820 case `"$ac_path_GREP" --version 2>&1` in
4821 *GNU*)
4822 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4823 *)
4824 ac_count=0
4825 $as_echo_n 0123456789 >"conftest.in"
4826 while :
4827 do
4828 cat "conftest.in" "conftest.in" >"conftest.tmp"
4829 mv "conftest.tmp" "conftest.in"
4830 cp "conftest.in" "conftest.nl"
4831 $as_echo 'GREP' >> "conftest.nl"
4832 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4833 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4834 as_fn_arith $ac_count + 1 && ac_count=$as_val
4835 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4836 # Best one so far, save it but keep looking for a better one
4837 ac_cv_path_GREP="$ac_path_GREP"
4838 ac_path_GREP_max=$ac_count
4839 fi
4840 # 10*(2^10) chars as input seems more than enough
4841 test $ac_count -gt 10 && break
4842 done
4843 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4844 esac
4845
4846 $ac_path_GREP_found && break 3
4847 done
4848 done
4849 done
4850 IFS=$as_save_IFS
4851 if test -z "$ac_cv_path_GREP"; then
4852 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4853 fi
4854 else
4855 ac_cv_path_GREP=$GREP
4856 fi
4857
4858 fi
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4860 $as_echo "$ac_cv_path_GREP" >&6; }
4861 GREP="$ac_cv_path_GREP"
4862
4863
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4865 $as_echo_n "checking for egrep... " >&6; }
4866 if test "${ac_cv_path_EGREP+set}" = set; then :
4867 $as_echo_n "(cached) " >&6
4868 else
4869 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4870 then ac_cv_path_EGREP="$GREP -E"
4871 else
4872 if test -z "$EGREP"; then
4873 ac_path_EGREP_found=false
4874 # Loop through the user's path and test for each of PROGNAME-LIST
4875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4876 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4877 do
4878 IFS=$as_save_IFS
4879 test -z "$as_dir" && as_dir=.
4880 for ac_prog in egrep; do
4881 for ac_exec_ext in '' $ac_executable_extensions; do
4882 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4883 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4884 # Check for GNU ac_path_EGREP and select it if it is found.
4885 # Check for GNU $ac_path_EGREP
4886 case `"$ac_path_EGREP" --version 2>&1` in
4887 *GNU*)
4888 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4889 *)
4890 ac_count=0
4891 $as_echo_n 0123456789 >"conftest.in"
4892 while :
4893 do
4894 cat "conftest.in" "conftest.in" >"conftest.tmp"
4895 mv "conftest.tmp" "conftest.in"
4896 cp "conftest.in" "conftest.nl"
4897 $as_echo 'EGREP' >> "conftest.nl"
4898 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4899 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4900 as_fn_arith $ac_count + 1 && ac_count=$as_val
4901 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4902 # Best one so far, save it but keep looking for a better one
4903 ac_cv_path_EGREP="$ac_path_EGREP"
4904 ac_path_EGREP_max=$ac_count
4905 fi
4906 # 10*(2^10) chars as input seems more than enough
4907 test $ac_count -gt 10 && break
4908 done
4909 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4910 esac
4911
4912 $ac_path_EGREP_found && break 3
4913 done
4914 done
4915 done
4916 IFS=$as_save_IFS
4917 if test -z "$ac_cv_path_EGREP"; then
4918 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4919 fi
4920 else
4921 ac_cv_path_EGREP=$EGREP
4922 fi
4923
4924 fi
4925 fi
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4927 $as_echo "$ac_cv_path_EGREP" >&6; }
4928 EGREP="$ac_cv_path_EGREP"
4929
4930
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4932 $as_echo_n "checking for fgrep... " >&6; }
4933 if test "${ac_cv_path_FGREP+set}" = set; then :
4934 $as_echo_n "(cached) " >&6
4935 else
4936 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4937 then ac_cv_path_FGREP="$GREP -F"
4938 else
4939 if test -z "$FGREP"; then
4940 ac_path_FGREP_found=false
4941 # Loop through the user's path and test for each of PROGNAME-LIST
4942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4943 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4944 do
4945 IFS=$as_save_IFS
4946 test -z "$as_dir" && as_dir=.
4947 for ac_prog in fgrep; do
4948 for ac_exec_ext in '' $ac_executable_extensions; do
4949 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4950 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4951 # Check for GNU ac_path_FGREP and select it if it is found.
4952 # Check for GNU $ac_path_FGREP
4953 case `"$ac_path_FGREP" --version 2>&1` in
4954 *GNU*)
4955 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4956 *)
4957 ac_count=0
4958 $as_echo_n 0123456789 >"conftest.in"
4959 while :
4960 do
4961 cat "conftest.in" "conftest.in" >"conftest.tmp"
4962 mv "conftest.tmp" "conftest.in"
4963 cp "conftest.in" "conftest.nl"
4964 $as_echo 'FGREP' >> "conftest.nl"
4965 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4966 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4967 as_fn_arith $ac_count + 1 && ac_count=$as_val
4968 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4969 # Best one so far, save it but keep looking for a better one
4970 ac_cv_path_FGREP="$ac_path_FGREP"
4971 ac_path_FGREP_max=$ac_count
4972 fi
4973 # 10*(2^10) chars as input seems more than enough
4974 test $ac_count -gt 10 && break
4975 done
4976 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4977 esac
4978
4979 $ac_path_FGREP_found && break 3
4980 done
4981 done
4982 done
4983 IFS=$as_save_IFS
4984 if test -z "$ac_cv_path_FGREP"; then
4985 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4986 fi
4987 else
4988 ac_cv_path_FGREP=$FGREP
4989 fi
4990
4991 fi
4992 fi
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4994 $as_echo "$ac_cv_path_FGREP" >&6; }
4995 FGREP="$ac_cv_path_FGREP"
4996
4997
4998 test -z "$GREP" && GREP=grep
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018 # Check whether --with-gnu-ld was given.
5019 if test "${with_gnu_ld+set}" = set; then :
5020 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5021 else
5022 with_gnu_ld=no
5023 fi
5024
5025 ac_prog=ld
5026 if test "$GCC" = yes; then
5027 # Check if gcc -print-prog-name=ld gives a path.
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5029 $as_echo_n "checking for ld used by $CC... " >&6; }
5030 case $host in
5031 *-*-mingw*)
5032 # gcc leaves a trailing carriage return which upsets mingw
5033 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5034 *)
5035 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5036 esac
5037 case $ac_prog in
5038 # Accept absolute paths.
5039 [\\/]* | ?:[\\/]*)
5040 re_direlt='/[^/][^/]*/\.\./'
5041 # Canonicalize the pathname of ld
5042 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5043 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5044 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5045 done
5046 test -z "$LD" && LD="$ac_prog"
5047 ;;
5048 "")
5049 # If it fails, then pretend we aren't using GCC.
5050 ac_prog=ld
5051 ;;
5052 *)
5053 # If it is relative, then search for the first ld in PATH.
5054 with_gnu_ld=unknown
5055 ;;
5056 esac
5057 elif test "$with_gnu_ld" = yes; then
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5059 $as_echo_n "checking for GNU ld... " >&6; }
5060 else
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5062 $as_echo_n "checking for non-GNU ld... " >&6; }
5063 fi
5064 if test "${lt_cv_path_LD+set}" = set; then :
5065 $as_echo_n "(cached) " >&6
5066 else
5067 if test -z "$LD"; then
5068 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5069 for ac_dir in $PATH; do
5070 IFS="$lt_save_ifs"
5071 test -z "$ac_dir" && ac_dir=.
5072 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5073 lt_cv_path_LD="$ac_dir/$ac_prog"
5074 # Check to see if the program is GNU ld. I'd rather use --version,
5075 # but apparently some variants of GNU ld only accept -v.
5076 # Break only if it was the GNU/non-GNU ld that we prefer.
5077 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5078 *GNU* | *'with BFD'*)
5079 test "$with_gnu_ld" != no && break
5080 ;;
5081 *)
5082 test "$with_gnu_ld" != yes && break
5083 ;;
5084 esac
5085 fi
5086 done
5087 IFS="$lt_save_ifs"
5088 else
5089 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5090 fi
5091 fi
5092
5093 LD="$lt_cv_path_LD"
5094 if test -n "$LD"; then
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5096 $as_echo "$LD" >&6; }
5097 else
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5099 $as_echo "no" >&6; }
5100 fi
5101 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5103 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5104 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5105 $as_echo_n "(cached) " >&6
5106 else
5107 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5108 case `$LD -v 2>&1 </dev/null` in
5109 *GNU* | *'with BFD'*)
5110 lt_cv_prog_gnu_ld=yes
5111 ;;
5112 *)
5113 lt_cv_prog_gnu_ld=no
5114 ;;
5115 esac
5116 fi
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5118 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5119 with_gnu_ld=$lt_cv_prog_gnu_ld
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5130 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5131 if test "${lt_cv_path_NM+set}" = set; then :
5132 $as_echo_n "(cached) " >&6
5133 else
5134 if test -n "$NM"; then
5135 # Let the user override the test.
5136 lt_cv_path_NM="$NM"
5137 else
5138 lt_nm_to_check="${ac_tool_prefix}nm"
5139 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5140 lt_nm_to_check="$lt_nm_to_check nm"
5141 fi
5142 for lt_tmp_nm in $lt_nm_to_check; do
5143 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5144 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5145 IFS="$lt_save_ifs"
5146 test -z "$ac_dir" && ac_dir=.
5147 tmp_nm="$ac_dir/$lt_tmp_nm"
5148 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5149 # Check to see if the nm accepts a BSD-compat flag.
5150 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5151 # nm: unknown option "B" ignored
5152 # Tru64's nm complains that /dev/null is an invalid object file
5153 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5154 */dev/null* | *'Invalid file or object type'*)
5155 lt_cv_path_NM="$tmp_nm -B"
5156 break
5157 ;;
5158 *)
5159 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5160 */dev/null*)
5161 lt_cv_path_NM="$tmp_nm -p"
5162 break
5163 ;;
5164 *)
5165 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5166 continue # so that we can try to find one that supports BSD flags
5167 ;;
5168 esac
5169 ;;
5170 esac
5171 fi
5172 done
5173 IFS="$lt_save_ifs"
5174 done
5175 : ${lt_cv_path_NM=no}
5176 fi
5177 fi
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5179 $as_echo "$lt_cv_path_NM" >&6; }
5180 if test "$lt_cv_path_NM" != "no"; then
5181 NM="$lt_cv_path_NM"
5182 else
5183 # Didn't find any BSD compatible name lister, look for dumpbin.
5184 if test -n "$DUMPBIN"; then :
5185 # Let the user override the test.
5186 else
5187 if test -n "$ac_tool_prefix"; then
5188 for ac_prog in dumpbin "link -dump"
5189 do
5190 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5191 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5193 $as_echo_n "checking for $ac_word... " >&6; }
5194 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5195 $as_echo_n "(cached) " >&6
5196 else
5197 if test -n "$DUMPBIN"; then
5198 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5199 else
5200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5201 for as_dir in $PATH
5202 do
5203 IFS=$as_save_IFS
5204 test -z "$as_dir" && as_dir=.
5205 for ac_exec_ext in '' $ac_executable_extensions; do
5206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5207 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5209 break 2
5210 fi
5211 done
5212 done
5213 IFS=$as_save_IFS
5214
5215 fi
5216 fi
5217 DUMPBIN=$ac_cv_prog_DUMPBIN
5218 if test -n "$DUMPBIN"; then
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5220 $as_echo "$DUMPBIN" >&6; }
5221 else
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5223 $as_echo "no" >&6; }
5224 fi
5225
5226
5227 test -n "$DUMPBIN" && break
5228 done
5229 fi
5230 if test -z "$DUMPBIN"; then
5231 ac_ct_DUMPBIN=$DUMPBIN
5232 for ac_prog in dumpbin "link -dump"
5233 do
5234 # Extract the first word of "$ac_prog", so it can be a program name with args.
5235 set dummy $ac_prog; ac_word=$2
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5237 $as_echo_n "checking for $ac_word... " >&6; }
5238 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5239 $as_echo_n "(cached) " >&6
5240 else
5241 if test -n "$ac_ct_DUMPBIN"; then
5242 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5243 else
5244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5245 for as_dir in $PATH
5246 do
5247 IFS=$as_save_IFS
5248 test -z "$as_dir" && as_dir=.
5249 for ac_exec_ext in '' $ac_executable_extensions; do
5250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5251 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5253 break 2
5254 fi
5255 done
5256 done
5257 IFS=$as_save_IFS
5258
5259 fi
5260 fi
5261 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5262 if test -n "$ac_ct_DUMPBIN"; then
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5264 $as_echo "$ac_ct_DUMPBIN" >&6; }
5265 else
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5267 $as_echo "no" >&6; }
5268 fi
5269
5270
5271 test -n "$ac_ct_DUMPBIN" && break
5272 done
5273
5274 if test "x$ac_ct_DUMPBIN" = x; then
5275 DUMPBIN=":"
5276 else
5277 case $cross_compiling:$ac_tool_warned in
5278 yes:)
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5280 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5281 ac_tool_warned=yes ;;
5282 esac
5283 DUMPBIN=$ac_ct_DUMPBIN
5284 fi
5285 fi
5286
5287 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5288 *COFF*)
5289 DUMPBIN="$DUMPBIN -symbols"
5290 ;;
5291 *)
5292 DUMPBIN=:
5293 ;;
5294 esac
5295 fi
5296
5297 if test "$DUMPBIN" != ":"; then
5298 NM="$DUMPBIN"
5299 fi
5300 fi
5301 test -z "$NM" && NM=nm
5302
5303
5304
5305
5306
5307
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5309 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5310 if test "${lt_cv_nm_interface+set}" = set; then :
5311 $as_echo_n "(cached) " >&6
5312 else
5313 lt_cv_nm_interface="BSD nm"
5314 echo "int some_variable = 0;" > conftest.$ac_ext
5315 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5316 (eval "$ac_compile" 2>conftest.err)
5317 cat conftest.err >&5
5318 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5319 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5320 cat conftest.err >&5
5321 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5322 cat conftest.out >&5
5323 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5324 lt_cv_nm_interface="MS dumpbin"
5325 fi
5326 rm -f conftest*
5327 fi
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5329 $as_echo "$lt_cv_nm_interface" >&6; }
5330
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5332 $as_echo_n "checking whether ln -s works... " >&6; }
5333 LN_S=$as_ln_s
5334 if test "$LN_S" = "ln -s"; then
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5336 $as_echo "yes" >&6; }
5337 else
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5339 $as_echo "no, using $LN_S" >&6; }
5340 fi
5341
5342 # find the maximum length of command line arguments
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5344 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5345 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5346 $as_echo_n "(cached) " >&6
5347 else
5348 i=0
5349 teststring="ABCD"
5350
5351 case $build_os in
5352 msdosdjgpp*)
5353 # On DJGPP, this test can blow up pretty badly due to problems in libc
5354 # (any single argument exceeding 2000 bytes causes a buffer overrun
5355 # during glob expansion). Even if it were fixed, the result of this
5356 # check would be larger than it should be.
5357 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5358 ;;
5359
5360 gnu*)
5361 # Under GNU Hurd, this test is not required because there is
5362 # no limit to the length of command line arguments.
5363 # Libtool will interpret -1 as no limit whatsoever
5364 lt_cv_sys_max_cmd_len=-1;
5365 ;;
5366
5367 cygwin* | mingw* | cegcc*)
5368 # On Win9x/ME, this test blows up -- it succeeds, but takes
5369 # about 5 minutes as the teststring grows exponentially.
5370 # Worse, since 9x/ME are not pre-emptively multitasking,
5371 # you end up with a "frozen" computer, even though with patience
5372 # the test eventually succeeds (with a max line length of 256k).
5373 # Instead, let's just punt: use the minimum linelength reported by
5374 # all of the supported platforms: 8192 (on NT/2K/XP).
5375 lt_cv_sys_max_cmd_len=8192;
5376 ;;
5377
5378 mint*)
5379 # On MiNT this can take a long time and run out of memory.
5380 lt_cv_sys_max_cmd_len=8192;
5381 ;;
5382
5383 amigaos*)
5384 # On AmigaOS with pdksh, this test takes hours, literally.
5385 # So we just punt and use a minimum line length of 8192.
5386 lt_cv_sys_max_cmd_len=8192;
5387 ;;
5388
5389 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5390 # This has been around since 386BSD, at least. Likely further.
5391 if test -x /sbin/sysctl; then
5392 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5393 elif test -x /usr/sbin/sysctl; then
5394 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5395 else
5396 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5397 fi
5398 # And add a safety zone
5399 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5400 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5401 ;;
5402
5403 interix*)
5404 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5405 lt_cv_sys_max_cmd_len=196608
5406 ;;
5407
5408 osf*)
5409 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5410 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5411 # nice to cause kernel panics so lets avoid the loop below.
5412 # First set a reasonable default.
5413 lt_cv_sys_max_cmd_len=16384
5414 #
5415 if test -x /sbin/sysconfig; then
5416 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5417 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5418 esac
5419 fi
5420 ;;
5421 sco3.2v5*)
5422 lt_cv_sys_max_cmd_len=102400
5423 ;;
5424 sysv5* | sco5v6* | sysv4.2uw2*)
5425 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5426 if test -n "$kargmax"; then
5427 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5428 else
5429 lt_cv_sys_max_cmd_len=32768
5430 fi
5431 ;;
5432 *)
5433 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5434 if test -n "$lt_cv_sys_max_cmd_len"; then
5435 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5436 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5437 else
5438 # Make teststring a little bigger before we do anything with it.
5439 # a 1K string should be a reasonable start.
5440 for i in 1 2 3 4 5 6 7 8 ; do
5441 teststring=$teststring$teststring
5442 done
5443 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5444 # If test is not a shell built-in, we'll probably end up computing a
5445 # maximum length that is only half of the actual maximum length, but
5446 # we can't tell.
5447 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5448 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5449 test $i != 17 # 1/2 MB should be enough
5450 do
5451 i=`expr $i + 1`
5452 teststring=$teststring$teststring
5453 done
5454 # Only check the string length outside the loop.
5455 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5456 teststring=
5457 # Add a significant safety factor because C++ compilers can tack on
5458 # massive amounts of additional arguments before passing them to the
5459 # linker. It appears as though 1/2 is a usable value.
5460 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5461 fi
5462 ;;
5463 esac
5464
5465 fi
5466
5467 if test -n $lt_cv_sys_max_cmd_len ; then
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5469 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5470 else
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5472 $as_echo "none" >&6; }
5473 fi
5474 max_cmd_len=$lt_cv_sys_max_cmd_len
5475
5476
5477
5478
5479
5480
5481 : ${CP="cp -f"}
5482 : ${MV="mv -f"}
5483 : ${RM="rm -f"}
5484
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5486 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5487 # Try some XSI features
5488 xsi_shell=no
5489 ( _lt_dummy="a/b/c"
5490 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5491 = c,a/b,, \
5492 && eval 'test $(( 1 + 1 )) -eq 2 \
5493 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5494 && xsi_shell=yes
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5496 $as_echo "$xsi_shell" >&6; }
5497
5498
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5500 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5501 lt_shell_append=no
5502 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5503 >/dev/null 2>&1 \
5504 && lt_shell_append=yes
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5506 $as_echo "$lt_shell_append" >&6; }
5507
5508
5509 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5510 lt_unset=unset
5511 else
5512 lt_unset=false
5513 fi
5514
5515
5516
5517
5518
5519 # test EBCDIC or ASCII
5520 case `echo X|tr X '\101'` in
5521 A) # ASCII based system
5522 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5523 lt_SP2NL='tr \040 \012'
5524 lt_NL2SP='tr \015\012 \040\040'
5525 ;;
5526 *) # EBCDIC based system
5527 lt_SP2NL='tr \100 \n'
5528 lt_NL2SP='tr \r\n \100\100'
5529 ;;
5530 esac
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5541 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5542 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5543 $as_echo_n "(cached) " >&6
5544 else
5545 lt_cv_ld_reload_flag='-r'
5546 fi
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5548 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5549 reload_flag=$lt_cv_ld_reload_flag
5550 case $reload_flag in
5551 "" | " "*) ;;
5552 *) reload_flag=" $reload_flag" ;;
5553 esac
5554 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5555 case $host_os in
5556 darwin*)
5557 if test "$GCC" = yes; then
5558 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5559 else
5560 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5561 fi
5562 ;;
5563 esac
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573 if test -n "$ac_tool_prefix"; then
5574 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5575 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5577 $as_echo_n "checking for $ac_word... " >&6; }
5578 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5579 $as_echo_n "(cached) " >&6
5580 else
5581 if test -n "$OBJDUMP"; then
5582 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5583 else
5584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5585 for as_dir in $PATH
5586 do
5587 IFS=$as_save_IFS
5588 test -z "$as_dir" && as_dir=.
5589 for ac_exec_ext in '' $ac_executable_extensions; do
5590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5591 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5593 break 2
5594 fi
5595 done
5596 done
5597 IFS=$as_save_IFS
5598
5599 fi
5600 fi
5601 OBJDUMP=$ac_cv_prog_OBJDUMP
5602 if test -n "$OBJDUMP"; then
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5604 $as_echo "$OBJDUMP" >&6; }
5605 else
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5607 $as_echo "no" >&6; }
5608 fi
5609
5610
5611 fi
5612 if test -z "$ac_cv_prog_OBJDUMP"; then
5613 ac_ct_OBJDUMP=$OBJDUMP
5614 # Extract the first word of "objdump", so it can be a program name with args.
5615 set dummy objdump; ac_word=$2
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5617 $as_echo_n "checking for $ac_word... " >&6; }
5618 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5619 $as_echo_n "(cached) " >&6
5620 else
5621 if test -n "$ac_ct_OBJDUMP"; then
5622 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5623 else
5624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5625 for as_dir in $PATH
5626 do
5627 IFS=$as_save_IFS
5628 test -z "$as_dir" && as_dir=.
5629 for ac_exec_ext in '' $ac_executable_extensions; do
5630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5631 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5633 break 2
5634 fi
5635 done
5636 done
5637 IFS=$as_save_IFS
5638
5639 fi
5640 fi
5641 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5642 if test -n "$ac_ct_OBJDUMP"; then
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5644 $as_echo "$ac_ct_OBJDUMP" >&6; }
5645 else
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5647 $as_echo "no" >&6; }
5648 fi
5649
5650 if test "x$ac_ct_OBJDUMP" = x; then
5651 OBJDUMP="false"
5652 else
5653 case $cross_compiling:$ac_tool_warned in
5654 yes:)
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5656 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5657 ac_tool_warned=yes ;;
5658 esac
5659 OBJDUMP=$ac_ct_OBJDUMP
5660 fi
5661 else
5662 OBJDUMP="$ac_cv_prog_OBJDUMP"
5663 fi
5664
5665 test -z "$OBJDUMP" && OBJDUMP=objdump
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5676 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5677 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5678 $as_echo_n "(cached) " >&6
5679 else
5680 lt_cv_file_magic_cmd='$MAGIC_CMD'
5681 lt_cv_file_magic_test_file=
5682 lt_cv_deplibs_check_method='unknown'
5683 # Need to set the preceding variable on all platforms that support
5684 # interlibrary dependencies.
5685 # 'none' -- dependencies not supported.
5686 # `unknown' -- same as none, but documents that we really don't know.
5687 # 'pass_all' -- all dependencies passed with no checks.
5688 # 'test_compile' -- check by making test program.
5689 # 'file_magic [[regex]]' -- check by looking for files in library path
5690 # which responds to the $file_magic_cmd with a given extended regex.
5691 # If you have `file' or equivalent on your system and you're not sure
5692 # whether `pass_all' will *always* work, you probably want this one.
5693
5694 case $host_os in
5695 aix[4-9]*)
5696 lt_cv_deplibs_check_method=pass_all
5697 ;;
5698
5699 beos*)
5700 lt_cv_deplibs_check_method=pass_all
5701 ;;
5702
5703 bsdi[45]*)
5704 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5705 lt_cv_file_magic_cmd='/usr/bin/file -L'
5706 lt_cv_file_magic_test_file=/shlib/libc.so
5707 ;;
5708
5709 cygwin*)
5710 # func_win32_libid is a shell function defined in ltmain.sh
5711 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5712 lt_cv_file_magic_cmd='func_win32_libid'
5713 ;;
5714
5715 mingw* | pw32*)
5716 # Base MSYS/MinGW do not provide the 'file' command needed by
5717 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5718 # unless we find 'file', for example because we are cross-compiling.
5719 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5720 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5721 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5722 lt_cv_file_magic_cmd='func_win32_libid'
5723 else
5724 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5725 lt_cv_file_magic_cmd='$OBJDUMP -f'
5726 fi
5727 ;;
5728
5729 cegcc*)
5730 # use the weaker test based on 'objdump'. See mingw*.
5731 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5732 lt_cv_file_magic_cmd='$OBJDUMP -f'
5733 ;;
5734
5735 darwin* | rhapsody*)
5736 lt_cv_deplibs_check_method=pass_all
5737 ;;
5738
5739 freebsd* | dragonfly*)
5740 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5741 case $host_cpu in
5742 i*86 )
5743 # Not sure whether the presence of OpenBSD here was a mistake.
5744 # Let's accept both of them until this is cleared up.
5745 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5746 lt_cv_file_magic_cmd=/usr/bin/file
5747 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5748 ;;
5749 esac
5750 else
5751 lt_cv_deplibs_check_method=pass_all
5752 fi
5753 ;;
5754
5755 gnu*)
5756 lt_cv_deplibs_check_method=pass_all
5757 ;;
5758
5759 haiku*)
5760 lt_cv_deplibs_check_method=pass_all
5761 ;;
5762
5763 hpux10.20* | hpux11*)
5764 lt_cv_file_magic_cmd=/usr/bin/file
5765 case $host_cpu in
5766 ia64*)
5767 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5768 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5769 ;;
5770 hppa*64*)
5771 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5772 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5773 ;;
5774 *)
5775 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5776 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5777 ;;
5778 esac
5779 ;;
5780
5781 interix[3-9]*)
5782 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5783 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5784 ;;
5785
5786 irix5* | irix6* | nonstopux*)
5787 case $LD in
5788 *-32|*"-32 ") libmagic=32-bit;;
5789 *-n32|*"-n32 ") libmagic=N32;;
5790 *-64|*"-64 ") libmagic=64-bit;;
5791 *) libmagic=never-match;;
5792 esac
5793 lt_cv_deplibs_check_method=pass_all
5794 ;;
5795
5796 # This must be Linux ELF.
5797 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5798 lt_cv_deplibs_check_method=pass_all
5799 ;;
5800
5801 netbsd*)
5802 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5803 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5804 else
5805 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5806 fi
5807 ;;
5808
5809 newos6*)
5810 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5811 lt_cv_file_magic_cmd=/usr/bin/file
5812 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5813 ;;
5814
5815 *nto* | *qnx*)
5816 lt_cv_deplibs_check_method=pass_all
5817 ;;
5818
5819 openbsd*)
5820 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5821 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5822 else
5823 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5824 fi
5825 ;;
5826
5827 osf3* | osf4* | osf5*)
5828 lt_cv_deplibs_check_method=pass_all
5829 ;;
5830
5831 rdos*)
5832 lt_cv_deplibs_check_method=pass_all
5833 ;;
5834
5835 solaris*)
5836 lt_cv_deplibs_check_method=pass_all
5837 ;;
5838
5839 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5840 lt_cv_deplibs_check_method=pass_all
5841 ;;
5842
5843 sysv4 | sysv4.3*)
5844 case $host_vendor in
5845 motorola)
5846 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5847 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5848 ;;
5849 ncr)
5850 lt_cv_deplibs_check_method=pass_all
5851 ;;
5852 sequent)
5853 lt_cv_file_magic_cmd='/bin/file'
5854 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5855 ;;
5856 sni)
5857 lt_cv_file_magic_cmd='/bin/file'
5858 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5859 lt_cv_file_magic_test_file=/lib/libc.so
5860 ;;
5861 siemens)
5862 lt_cv_deplibs_check_method=pass_all
5863 ;;
5864 pc)
5865 lt_cv_deplibs_check_method=pass_all
5866 ;;
5867 esac
5868 ;;
5869
5870 tpf*)
5871 lt_cv_deplibs_check_method=pass_all
5872 ;;
5873 esac
5874
5875 fi
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5877 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5878 file_magic_cmd=$lt_cv_file_magic_cmd
5879 deplibs_check_method=$lt_cv_deplibs_check_method
5880 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893 if test -n "$ac_tool_prefix"; then
5894 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5895 set dummy ${ac_tool_prefix}ar; ac_word=$2
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5897 $as_echo_n "checking for $ac_word... " >&6; }
5898 if test "${ac_cv_prog_AR+set}" = set; then :
5899 $as_echo_n "(cached) " >&6
5900 else
5901 if test -n "$AR"; then
5902 ac_cv_prog_AR="$AR" # Let the user override the test.
5903 else
5904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5905 for as_dir in $PATH
5906 do
5907 IFS=$as_save_IFS
5908 test -z "$as_dir" && as_dir=.
5909 for ac_exec_ext in '' $ac_executable_extensions; do
5910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5911 ac_cv_prog_AR="${ac_tool_prefix}ar"
5912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5913 break 2
5914 fi
5915 done
5916 done
5917 IFS=$as_save_IFS
5918
5919 fi
5920 fi
5921 AR=$ac_cv_prog_AR
5922 if test -n "$AR"; then
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5924 $as_echo "$AR" >&6; }
5925 else
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5927 $as_echo "no" >&6; }
5928 fi
5929
5930
5931 fi
5932 if test -z "$ac_cv_prog_AR"; then
5933 ac_ct_AR=$AR
5934 # Extract the first word of "ar", so it can be a program name with args.
5935 set dummy ar; ac_word=$2
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5937 $as_echo_n "checking for $ac_word... " >&6; }
5938 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5939 $as_echo_n "(cached) " >&6
5940 else
5941 if test -n "$ac_ct_AR"; then
5942 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5943 else
5944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5945 for as_dir in $PATH
5946 do
5947 IFS=$as_save_IFS
5948 test -z "$as_dir" && as_dir=.
5949 for ac_exec_ext in '' $ac_executable_extensions; do
5950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5951 ac_cv_prog_ac_ct_AR="ar"
5952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5953 break 2
5954 fi
5955 done
5956 done
5957 IFS=$as_save_IFS
5958
5959 fi
5960 fi
5961 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5962 if test -n "$ac_ct_AR"; then
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5964 $as_echo "$ac_ct_AR" >&6; }
5965 else
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5967 $as_echo "no" >&6; }
5968 fi
5969
5970 if test "x$ac_ct_AR" = x; then
5971 AR="false"
5972 else
5973 case $cross_compiling:$ac_tool_warned in
5974 yes:)
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5976 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5977 ac_tool_warned=yes ;;
5978 esac
5979 AR=$ac_ct_AR
5980 fi
5981 else
5982 AR="$ac_cv_prog_AR"
5983 fi
5984
5985 test -z "$AR" && AR=ar
5986 test -z "$AR_FLAGS" && AR_FLAGS=cru
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998 if test -n "$ac_tool_prefix"; then
5999 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6000 set dummy ${ac_tool_prefix}strip; ac_word=$2
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6002 $as_echo_n "checking for $ac_word... " >&6; }
6003 if test "${ac_cv_prog_STRIP+set}" = set; then :
6004 $as_echo_n "(cached) " >&6
6005 else
6006 if test -n "$STRIP"; then
6007 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6008 else
6009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010 for as_dir in $PATH
6011 do
6012 IFS=$as_save_IFS
6013 test -z "$as_dir" && as_dir=.
6014 for ac_exec_ext in '' $ac_executable_extensions; do
6015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6016 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6018 break 2
6019 fi
6020 done
6021 done
6022 IFS=$as_save_IFS
6023
6024 fi
6025 fi
6026 STRIP=$ac_cv_prog_STRIP
6027 if test -n "$STRIP"; then
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6029 $as_echo "$STRIP" >&6; }
6030 else
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6032 $as_echo "no" >&6; }
6033 fi
6034
6035
6036 fi
6037 if test -z "$ac_cv_prog_STRIP"; then
6038 ac_ct_STRIP=$STRIP
6039 # Extract the first word of "strip", so it can be a program name with args.
6040 set dummy strip; ac_word=$2
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6042 $as_echo_n "checking for $ac_word... " >&6; }
6043 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6044 $as_echo_n "(cached) " >&6
6045 else
6046 if test -n "$ac_ct_STRIP"; then
6047 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6048 else
6049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6050 for as_dir in $PATH
6051 do
6052 IFS=$as_save_IFS
6053 test -z "$as_dir" && as_dir=.
6054 for ac_exec_ext in '' $ac_executable_extensions; do
6055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6056 ac_cv_prog_ac_ct_STRIP="strip"
6057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6058 break 2
6059 fi
6060 done
6061 done
6062 IFS=$as_save_IFS
6063
6064 fi
6065 fi
6066 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6067 if test -n "$ac_ct_STRIP"; then
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6069 $as_echo "$ac_ct_STRIP" >&6; }
6070 else
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6072 $as_echo "no" >&6; }
6073 fi
6074
6075 if test "x$ac_ct_STRIP" = x; then
6076 STRIP=":"
6077 else
6078 case $cross_compiling:$ac_tool_warned in
6079 yes:)
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6081 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6082 ac_tool_warned=yes ;;
6083 esac
6084 STRIP=$ac_ct_STRIP
6085 fi
6086 else
6087 STRIP="$ac_cv_prog_STRIP"
6088 fi
6089
6090 test -z "$STRIP" && STRIP=:
6091
6092
6093
6094
6095
6096
6097 if test -n "$ac_tool_prefix"; then
6098 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6099 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6101 $as_echo_n "checking for $ac_word... " >&6; }
6102 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6103 $as_echo_n "(cached) " >&6
6104 else
6105 if test -n "$RANLIB"; then
6106 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6107 else
6108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6109 for as_dir in $PATH
6110 do
6111 IFS=$as_save_IFS
6112 test -z "$as_dir" && as_dir=.
6113 for ac_exec_ext in '' $ac_executable_extensions; do
6114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6115 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6117 break 2
6118 fi
6119 done
6120 done
6121 IFS=$as_save_IFS
6122
6123 fi
6124 fi
6125 RANLIB=$ac_cv_prog_RANLIB
6126 if test -n "$RANLIB"; then
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6128 $as_echo "$RANLIB" >&6; }
6129 else
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6131 $as_echo "no" >&6; }
6132 fi
6133
6134
6135 fi
6136 if test -z "$ac_cv_prog_RANLIB"; then
6137 ac_ct_RANLIB=$RANLIB
6138 # Extract the first word of "ranlib", so it can be a program name with args.
6139 set dummy ranlib; ac_word=$2
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6141 $as_echo_n "checking for $ac_word... " >&6; }
6142 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6143 $as_echo_n "(cached) " >&6
6144 else
6145 if test -n "$ac_ct_RANLIB"; then
6146 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6147 else
6148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6149 for as_dir in $PATH
6150 do
6151 IFS=$as_save_IFS
6152 test -z "$as_dir" && as_dir=.
6153 for ac_exec_ext in '' $ac_executable_extensions; do
6154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6155 ac_cv_prog_ac_ct_RANLIB="ranlib"
6156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6157 break 2
6158 fi
6159 done
6160 done
6161 IFS=$as_save_IFS
6162
6163 fi
6164 fi
6165 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6166 if test -n "$ac_ct_RANLIB"; then
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6168 $as_echo "$ac_ct_RANLIB" >&6; }
6169 else
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6171 $as_echo "no" >&6; }
6172 fi
6173
6174 if test "x$ac_ct_RANLIB" = x; then
6175 RANLIB=":"
6176 else
6177 case $cross_compiling:$ac_tool_warned in
6178 yes:)
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6180 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6181 ac_tool_warned=yes ;;
6182 esac
6183 RANLIB=$ac_ct_RANLIB
6184 fi
6185 else
6186 RANLIB="$ac_cv_prog_RANLIB"
6187 fi
6188
6189 test -z "$RANLIB" && RANLIB=:
6190
6191
6192
6193
6194
6195
6196 # Determine commands to create old-style static archives.
6197 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6198 old_postinstall_cmds='chmod 644 $oldlib'
6199 old_postuninstall_cmds=
6200
6201 if test -n "$RANLIB"; then
6202 case $host_os in
6203 openbsd*)
6204 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6205 ;;
6206 *)
6207 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6208 ;;
6209 esac
6210 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6211 fi
6212
6213 case $host_os in
6214 darwin*)
6215 lock_old_archive_extraction=yes ;;
6216 *)
6217 lock_old_archive_extraction=no ;;
6218 esac
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258 # If no C compiler was specified, use CC.
6259 LTCC=${LTCC-"$CC"}
6260
6261 # If no C compiler flags were specified, use CFLAGS.
6262 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6263
6264 # Allow CC to be a program name with arguments.
6265 compiler=$CC
6266
6267
6268 # Check for command to grab the raw symbol name followed by C symbol from nm.
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6270 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6271 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6272 $as_echo_n "(cached) " >&6
6273 else
6274
6275 # These are sane defaults that work on at least a few old systems.
6276 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6277
6278 # Character class describing NM global symbol codes.
6279 symcode='[BCDEGRST]'
6280
6281 # Regexp to match symbols that can be accessed directly from C.
6282 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6283
6284 # Define system-specific variables.
6285 case $host_os in
6286 aix*)
6287 symcode='[BCDT]'
6288 ;;
6289 cygwin* | mingw* | pw32* | cegcc*)
6290 symcode='[ABCDGISTW]'
6291 ;;
6292 hpux*)
6293 if test "$host_cpu" = ia64; then
6294 symcode='[ABCDEGRST]'
6295 fi
6296 ;;
6297 irix* | nonstopux*)
6298 symcode='[BCDEGRST]'
6299 ;;
6300 osf*)
6301 symcode='[BCDEGQRST]'
6302 ;;
6303 solaris*)
6304 symcode='[BDRT]'
6305 ;;
6306 sco3.2v5*)
6307 symcode='[DT]'
6308 ;;
6309 sysv4.2uw2*)
6310 symcode='[DT]'
6311 ;;
6312 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6313 symcode='[ABDT]'
6314 ;;
6315 sysv4)
6316 symcode='[DFNSTU]'
6317 ;;
6318 esac
6319
6320 # If we're using GNU nm, then use its standard symbol codes.
6321 case `$NM -V 2>&1` in
6322 *GNU* | *'with BFD'*)
6323 symcode='[ABCDGIRSTW]' ;;
6324 esac
6325
6326 # Transform an extracted symbol line into a proper C declaration.
6327 # Some systems (esp. on ia64) link data and code symbols differently,
6328 # so use this general approach.
6329 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6330
6331 # Transform an extracted symbol line into symbol name and symbol address
6332 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6333 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6334
6335 # Handle CRLF in mingw tool chain
6336 opt_cr=
6337 case $build_os in
6338 mingw*)
6339 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6340 ;;
6341 esac
6342
6343 # Try without a prefix underscore, then with it.
6344 for ac_symprfx in "" "_"; do
6345
6346 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6347 symxfrm="\\1 $ac_symprfx\\2 \\2"
6348
6349 # Write the raw and C identifiers.
6350 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6351 # Fake it for dumpbin and say T for any non-static function
6352 # and D for any global variable.
6353 # Also find C++ and __fastcall symbols from MSVC++,
6354 # which start with @ or ?.
6355 lt_cv_sys_global_symbol_pipe="$AWK '"\
6356 " {last_section=section; section=\$ 3};"\
6357 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6358 " \$ 0!~/External *\|/{next};"\
6359 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6360 " {if(hide[section]) next};"\
6361 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6362 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6363 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6364 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6365 " ' prfx=^$ac_symprfx"
6366 else
6367 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6368 fi
6369
6370 # Check to see that the pipe works correctly.
6371 pipe_works=no
6372
6373 rm -f conftest*
6374 cat > conftest.$ac_ext <<_LT_EOF
6375 #ifdef __cplusplus
6376 extern "C" {
6377 #endif
6378 char nm_test_var;
6379 void nm_test_func(void);
6380 void nm_test_func(void){}
6381 #ifdef __cplusplus
6382 }
6383 #endif
6384 int main(){nm_test_var='a';nm_test_func();return(0);}
6385 _LT_EOF
6386
6387 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6388 (eval $ac_compile) 2>&5
6389 ac_status=$?
6390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6391 test $ac_status = 0; }; then
6392 # Now try to grab the symbols.
6393 nlist=conftest.nm
6394 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6395 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6396 ac_status=$?
6397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6398 test $ac_status = 0; } && test -s "$nlist"; then
6399 # Try sorting and uniquifying the output.
6400 if sort "$nlist" | uniq > "$nlist"T; then
6401 mv -f "$nlist"T "$nlist"
6402 else
6403 rm -f "$nlist"T
6404 fi
6405
6406 # Make sure that we snagged all the symbols we need.
6407 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6408 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6409 cat <<_LT_EOF > conftest.$ac_ext
6410 #ifdef __cplusplus
6411 extern "C" {
6412 #endif
6413
6414 _LT_EOF
6415 # Now generate the symbol file.
6416 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6417
6418 cat <<_LT_EOF >> conftest.$ac_ext
6419
6420 /* The mapping between symbol names and symbols. */
6421 const struct {
6422 const char *name;
6423 void *address;
6424 }
6425 lt__PROGRAM__LTX_preloaded_symbols[] =
6426 {
6427 { "@PROGRAM@", (void *) 0 },
6428 _LT_EOF
6429 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6430 cat <<\_LT_EOF >> conftest.$ac_ext
6431 {0, (void *) 0}
6432 };
6433
6434 /* This works around a problem in FreeBSD linker */
6435 #ifdef FREEBSD_WORKAROUND
6436 static const void *lt_preloaded_setup() {
6437 return lt__PROGRAM__LTX_preloaded_symbols;
6438 }
6439 #endif
6440
6441 #ifdef __cplusplus
6442 }
6443 #endif
6444 _LT_EOF
6445 # Now try linking the two files.
6446 mv conftest.$ac_objext conftstm.$ac_objext
6447 lt_save_LIBS="$LIBS"
6448 lt_save_CFLAGS="$CFLAGS"
6449 LIBS="conftstm.$ac_objext"
6450 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6451 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6452 (eval $ac_link) 2>&5
6453 ac_status=$?
6454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6455 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6456 pipe_works=yes
6457 fi
6458 LIBS="$lt_save_LIBS"
6459 CFLAGS="$lt_save_CFLAGS"
6460 else
6461 echo "cannot find nm_test_func in $nlist" >&5
6462 fi
6463 else
6464 echo "cannot find nm_test_var in $nlist" >&5
6465 fi
6466 else
6467 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6468 fi
6469 else
6470 echo "$progname: failed program was:" >&5
6471 cat conftest.$ac_ext >&5
6472 fi
6473 rm -rf conftest* conftst*
6474
6475 # Do not use the global_symbol_pipe unless it works.
6476 if test "$pipe_works" = yes; then
6477 break
6478 else
6479 lt_cv_sys_global_symbol_pipe=
6480 fi
6481 done
6482
6483 fi
6484
6485 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6486 lt_cv_sys_global_symbol_to_cdecl=
6487 fi
6488 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6490 $as_echo "failed" >&6; }
6491 else
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6493 $as_echo "ok" >&6; }
6494 fi
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518 # Check whether --enable-libtool-lock was given.
6519 if test "${enable_libtool_lock+set}" = set; then :
6520 enableval=$enable_libtool_lock;
6521 fi
6522
6523 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6524
6525 # Some flags need to be propagated to the compiler or linker for good
6526 # libtool support.
6527 case $host in
6528 ia64-*-hpux*)
6529 # Find out which ABI we are using.
6530 echo 'int i;' > conftest.$ac_ext
6531 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6532 (eval $ac_compile) 2>&5
6533 ac_status=$?
6534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6535 test $ac_status = 0; }; then
6536 case `/usr/bin/file conftest.$ac_objext` in
6537 *ELF-32*)
6538 HPUX_IA64_MODE="32"
6539 ;;
6540 *ELF-64*)
6541 HPUX_IA64_MODE="64"
6542 ;;
6543 esac
6544 fi
6545 rm -rf conftest*
6546 ;;
6547 *-*-irix6*)
6548 # Find out which ABI we are using.
6549 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6551 (eval $ac_compile) 2>&5
6552 ac_status=$?
6553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6554 test $ac_status = 0; }; then
6555 if test "$lt_cv_prog_gnu_ld" = yes; then
6556 case `/usr/bin/file conftest.$ac_objext` in
6557 *32-bit*)
6558 LD="${LD-ld} -melf32bsmip"
6559 ;;
6560 *N32*)
6561 LD="${LD-ld} -melf32bmipn32"
6562 ;;
6563 *64-bit*)
6564 LD="${LD-ld} -melf64bmip"
6565 ;;
6566 esac
6567 else
6568 case `/usr/bin/file conftest.$ac_objext` in
6569 *32-bit*)
6570 LD="${LD-ld} -32"
6571 ;;
6572 *N32*)
6573 LD="${LD-ld} -n32"
6574 ;;
6575 *64-bit*)
6576 LD="${LD-ld} -64"
6577 ;;
6578 esac
6579 fi
6580 fi
6581 rm -rf conftest*
6582 ;;
6583
6584 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6585 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6586 # Find out which ABI we are using.
6587 echo 'int i;' > conftest.$ac_ext
6588 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6589 (eval $ac_compile) 2>&5
6590 ac_status=$?
6591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6592 test $ac_status = 0; }; then
6593 case `/usr/bin/file conftest.o` in
6594 *32-bit*)
6595 case $host in
6596 x86_64-*kfreebsd*-gnu)
6597 LD="${LD-ld} -m elf_i386_fbsd"
6598 ;;
6599 x86_64-*linux*)
6600 LD="${LD-ld} -m elf_i386"
6601 ;;
6602 ppc64-*linux*|powerpc64-*linux*)
6603 LD="${LD-ld} -m elf32ppclinux"
6604 ;;
6605 s390x-*linux*)
6606 LD="${LD-ld} -m elf_s390"
6607 ;;
6608 sparc64-*linux*)
6609 LD="${LD-ld} -m elf32_sparc"
6610 ;;
6611 esac
6612 ;;
6613 *64-bit*)
6614 case $host in
6615 x86_64-*kfreebsd*-gnu)
6616 LD="${LD-ld} -m elf_x86_64_fbsd"
6617 ;;
6618 x86_64-*linux*)
6619 LD="${LD-ld} -m elf_x86_64"
6620 ;;
6621 ppc*-*linux*|powerpc*-*linux*)
6622 LD="${LD-ld} -m elf64ppc"
6623 ;;
6624 s390*-*linux*|s390*-*tpf*)
6625 LD="${LD-ld} -m elf64_s390"
6626 ;;
6627 sparc*-*linux*)
6628 LD="${LD-ld} -m elf64_sparc"
6629 ;;
6630 esac
6631 ;;
6632 esac
6633 fi
6634 rm -rf conftest*
6635 ;;
6636
6637 *-*-sco3.2v5*)
6638 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6639 SAVE_CFLAGS="$CFLAGS"
6640 CFLAGS="$CFLAGS -belf"
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6642 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6643 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6644 $as_echo_n "(cached) " >&6
6645 else
6646 ac_ext=c
6647 ac_cpp='$CPP $CPPFLAGS'
6648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6651
6652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6653 /* end confdefs.h. */
6654
6655 int
6656 main ()
6657 {
6658
6659 ;
6660 return 0;
6661 }
6662 _ACEOF
6663 if ac_fn_c_try_link "$LINENO"; then :
6664 lt_cv_cc_needs_belf=yes
6665 else
6666 lt_cv_cc_needs_belf=no
6667 fi
6668 rm -f core conftest.err conftest.$ac_objext \
6669 conftest$ac_exeext conftest.$ac_ext
6670 ac_ext=c
6671 ac_cpp='$CPP $CPPFLAGS'
6672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6675
6676 fi
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6678 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6679 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6680 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6681 CFLAGS="$SAVE_CFLAGS"
6682 fi
6683 ;;
6684 sparc*-*solaris*)
6685 # Find out which ABI we are using.
6686 echo 'int i;' > conftest.$ac_ext
6687 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6688 (eval $ac_compile) 2>&5
6689 ac_status=$?
6690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6691 test $ac_status = 0; }; then
6692 case `/usr/bin/file conftest.o` in
6693 *64-bit*)
6694 case $lt_cv_prog_gnu_ld in
6695 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6696 *)
6697 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6698 LD="${LD-ld} -64"
6699 fi
6700 ;;
6701 esac
6702 ;;
6703 esac
6704 fi
6705 rm -rf conftest*
6706 ;;
6707 esac
6708
6709 need_locks="$enable_libtool_lock"
6710
6711
6712 case $host_os in
6713 rhapsody* | darwin*)
6714 if test -n "$ac_tool_prefix"; then
6715 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6716 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6718 $as_echo_n "checking for $ac_word... " >&6; }
6719 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6720 $as_echo_n "(cached) " >&6
6721 else
6722 if test -n "$DSYMUTIL"; then
6723 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6724 else
6725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6726 for as_dir in $PATH
6727 do
6728 IFS=$as_save_IFS
6729 test -z "$as_dir" && as_dir=.
6730 for ac_exec_ext in '' $ac_executable_extensions; do
6731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6732 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6734 break 2
6735 fi
6736 done
6737 done
6738 IFS=$as_save_IFS
6739
6740 fi
6741 fi
6742 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6743 if test -n "$DSYMUTIL"; then
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6745 $as_echo "$DSYMUTIL" >&6; }
6746 else
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6748 $as_echo "no" >&6; }
6749 fi
6750
6751
6752 fi
6753 if test -z "$ac_cv_prog_DSYMUTIL"; then
6754 ac_ct_DSYMUTIL=$DSYMUTIL
6755 # Extract the first word of "dsymutil", so it can be a program name with args.
6756 set dummy dsymutil; ac_word=$2
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6758 $as_echo_n "checking for $ac_word... " >&6; }
6759 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6760 $as_echo_n "(cached) " >&6
6761 else
6762 if test -n "$ac_ct_DSYMUTIL"; then
6763 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6764 else
6765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6766 for as_dir in $PATH
6767 do
6768 IFS=$as_save_IFS
6769 test -z "$as_dir" && as_dir=.
6770 for ac_exec_ext in '' $ac_executable_extensions; do
6771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6772 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6774 break 2
6775 fi
6776 done
6777 done
6778 IFS=$as_save_IFS
6779
6780 fi
6781 fi
6782 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6783 if test -n "$ac_ct_DSYMUTIL"; then
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6785 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6786 else
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6788 $as_echo "no" >&6; }
6789 fi
6790
6791 if test "x$ac_ct_DSYMUTIL" = x; then
6792 DSYMUTIL=":"
6793 else
6794 case $cross_compiling:$ac_tool_warned in
6795 yes:)
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6797 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6798 ac_tool_warned=yes ;;
6799 esac
6800 DSYMUTIL=$ac_ct_DSYMUTIL
6801 fi
6802 else
6803 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6804 fi
6805
6806 if test -n "$ac_tool_prefix"; then
6807 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6808 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6810 $as_echo_n "checking for $ac_word... " >&6; }
6811 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6812 $as_echo_n "(cached) " >&6
6813 else
6814 if test -n "$NMEDIT"; then
6815 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6816 else
6817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6818 for as_dir in $PATH
6819 do
6820 IFS=$as_save_IFS
6821 test -z "$as_dir" && as_dir=.
6822 for ac_exec_ext in '' $ac_executable_extensions; do
6823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6824 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6826 break 2
6827 fi
6828 done
6829 done
6830 IFS=$as_save_IFS
6831
6832 fi
6833 fi
6834 NMEDIT=$ac_cv_prog_NMEDIT
6835 if test -n "$NMEDIT"; then
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6837 $as_echo "$NMEDIT" >&6; }
6838 else
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6840 $as_echo "no" >&6; }
6841 fi
6842
6843
6844 fi
6845 if test -z "$ac_cv_prog_NMEDIT"; then
6846 ac_ct_NMEDIT=$NMEDIT
6847 # Extract the first word of "nmedit", so it can be a program name with args.
6848 set dummy nmedit; ac_word=$2
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6850 $as_echo_n "checking for $ac_word... " >&6; }
6851 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6852 $as_echo_n "(cached) " >&6
6853 else
6854 if test -n "$ac_ct_NMEDIT"; then
6855 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6856 else
6857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6858 for as_dir in $PATH
6859 do
6860 IFS=$as_save_IFS
6861 test -z "$as_dir" && as_dir=.
6862 for ac_exec_ext in '' $ac_executable_extensions; do
6863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6864 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6866 break 2
6867 fi
6868 done
6869 done
6870 IFS=$as_save_IFS
6871
6872 fi
6873 fi
6874 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6875 if test -n "$ac_ct_NMEDIT"; then
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6877 $as_echo "$ac_ct_NMEDIT" >&6; }
6878 else
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6880 $as_echo "no" >&6; }
6881 fi
6882
6883 if test "x$ac_ct_NMEDIT" = x; then
6884 NMEDIT=":"
6885 else
6886 case $cross_compiling:$ac_tool_warned in
6887 yes:)
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6889 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6890 ac_tool_warned=yes ;;
6891 esac
6892 NMEDIT=$ac_ct_NMEDIT
6893 fi
6894 else
6895 NMEDIT="$ac_cv_prog_NMEDIT"
6896 fi
6897
6898 if test -n "$ac_tool_prefix"; then
6899 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6900 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6902 $as_echo_n "checking for $ac_word... " >&6; }
6903 if test "${ac_cv_prog_LIPO+set}" = set; then :
6904 $as_echo_n "(cached) " >&6
6905 else
6906 if test -n "$LIPO"; then
6907 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6908 else
6909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6910 for as_dir in $PATH
6911 do
6912 IFS=$as_save_IFS
6913 test -z "$as_dir" && as_dir=.
6914 for ac_exec_ext in '' $ac_executable_extensions; do
6915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6916 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6918 break 2
6919 fi
6920 done
6921 done
6922 IFS=$as_save_IFS
6923
6924 fi
6925 fi
6926 LIPO=$ac_cv_prog_LIPO
6927 if test -n "$LIPO"; then
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6929 $as_echo "$LIPO" >&6; }
6930 else
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6932 $as_echo "no" >&6; }
6933 fi
6934
6935
6936 fi
6937 if test -z "$ac_cv_prog_LIPO"; then
6938 ac_ct_LIPO=$LIPO
6939 # Extract the first word of "lipo", so it can be a program name with args.
6940 set dummy lipo; ac_word=$2
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6942 $as_echo_n "checking for $ac_word... " >&6; }
6943 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6944 $as_echo_n "(cached) " >&6
6945 else
6946 if test -n "$ac_ct_LIPO"; then
6947 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6948 else
6949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6950 for as_dir in $PATH
6951 do
6952 IFS=$as_save_IFS
6953 test -z "$as_dir" && as_dir=.
6954 for ac_exec_ext in '' $ac_executable_extensions; do
6955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6956 ac_cv_prog_ac_ct_LIPO="lipo"
6957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6958 break 2
6959 fi
6960 done
6961 done
6962 IFS=$as_save_IFS
6963
6964 fi
6965 fi
6966 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6967 if test -n "$ac_ct_LIPO"; then
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6969 $as_echo "$ac_ct_LIPO" >&6; }
6970 else
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6972 $as_echo "no" >&6; }
6973 fi
6974
6975 if test "x$ac_ct_LIPO" = x; then
6976 LIPO=":"
6977 else
6978 case $cross_compiling:$ac_tool_warned in
6979 yes:)
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6981 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6982 ac_tool_warned=yes ;;
6983 esac
6984 LIPO=$ac_ct_LIPO
6985 fi
6986 else
6987 LIPO="$ac_cv_prog_LIPO"
6988 fi
6989
6990 if test -n "$ac_tool_prefix"; then
6991 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6992 set dummy ${ac_tool_prefix}otool; ac_word=$2
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6994 $as_echo_n "checking for $ac_word... " >&6; }
6995 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6996 $as_echo_n "(cached) " >&6
6997 else
6998 if test -n "$OTOOL"; then
6999 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7000 else
7001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7002 for as_dir in $PATH
7003 do
7004 IFS=$as_save_IFS
7005 test -z "$as_dir" && as_dir=.
7006 for ac_exec_ext in '' $ac_executable_extensions; do
7007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7008 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7010 break 2
7011 fi
7012 done
7013 done
7014 IFS=$as_save_IFS
7015
7016 fi
7017 fi
7018 OTOOL=$ac_cv_prog_OTOOL
7019 if test -n "$OTOOL"; then
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7021 $as_echo "$OTOOL" >&6; }
7022 else
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7024 $as_echo "no" >&6; }
7025 fi
7026
7027
7028 fi
7029 if test -z "$ac_cv_prog_OTOOL"; then
7030 ac_ct_OTOOL=$OTOOL
7031 # Extract the first word of "otool", so it can be a program name with args.
7032 set dummy otool; ac_word=$2
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7034 $as_echo_n "checking for $ac_word... " >&6; }
7035 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7036 $as_echo_n "(cached) " >&6
7037 else
7038 if test -n "$ac_ct_OTOOL"; then
7039 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7040 else
7041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7042 for as_dir in $PATH
7043 do
7044 IFS=$as_save_IFS
7045 test -z "$as_dir" && as_dir=.
7046 for ac_exec_ext in '' $ac_executable_extensions; do
7047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7048 ac_cv_prog_ac_ct_OTOOL="otool"
7049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7050 break 2
7051 fi
7052 done
7053 done
7054 IFS=$as_save_IFS
7055
7056 fi
7057 fi
7058 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7059 if test -n "$ac_ct_OTOOL"; then
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7061 $as_echo "$ac_ct_OTOOL" >&6; }
7062 else
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7064 $as_echo "no" >&6; }
7065 fi
7066
7067 if test "x$ac_ct_OTOOL" = x; then
7068 OTOOL=":"
7069 else
7070 case $cross_compiling:$ac_tool_warned in
7071 yes:)
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7073 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7074 ac_tool_warned=yes ;;
7075 esac
7076 OTOOL=$ac_ct_OTOOL
7077 fi
7078 else
7079 OTOOL="$ac_cv_prog_OTOOL"
7080 fi
7081
7082 if test -n "$ac_tool_prefix"; then
7083 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7084 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7086 $as_echo_n "checking for $ac_word... " >&6; }
7087 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7088 $as_echo_n "(cached) " >&6
7089 else
7090 if test -n "$OTOOL64"; then
7091 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7092 else
7093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7094 for as_dir in $PATH
7095 do
7096 IFS=$as_save_IFS
7097 test -z "$as_dir" && as_dir=.
7098 for ac_exec_ext in '' $ac_executable_extensions; do
7099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7100 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7102 break 2
7103 fi
7104 done
7105 done
7106 IFS=$as_save_IFS
7107
7108 fi
7109 fi
7110 OTOOL64=$ac_cv_prog_OTOOL64
7111 if test -n "$OTOOL64"; then
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7113 $as_echo "$OTOOL64" >&6; }
7114 else
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7116 $as_echo "no" >&6; }
7117 fi
7118
7119
7120 fi
7121 if test -z "$ac_cv_prog_OTOOL64"; then
7122 ac_ct_OTOOL64=$OTOOL64
7123 # Extract the first word of "otool64", so it can be a program name with args.
7124 set dummy otool64; ac_word=$2
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7126 $as_echo_n "checking for $ac_word... " >&6; }
7127 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7128 $as_echo_n "(cached) " >&6
7129 else
7130 if test -n "$ac_ct_OTOOL64"; then
7131 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7132 else
7133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7134 for as_dir in $PATH
7135 do
7136 IFS=$as_save_IFS
7137 test -z "$as_dir" && as_dir=.
7138 for ac_exec_ext in '' $ac_executable_extensions; do
7139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7140 ac_cv_prog_ac_ct_OTOOL64="otool64"
7141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7142 break 2
7143 fi
7144 done
7145 done
7146 IFS=$as_save_IFS
7147
7148 fi
7149 fi
7150 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7151 if test -n "$ac_ct_OTOOL64"; then
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7153 $as_echo "$ac_ct_OTOOL64" >&6; }
7154 else
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7156 $as_echo "no" >&6; }
7157 fi
7158
7159 if test "x$ac_ct_OTOOL64" = x; then
7160 OTOOL64=":"
7161 else
7162 case $cross_compiling:$ac_tool_warned in
7163 yes:)
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7165 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7166 ac_tool_warned=yes ;;
7167 esac
7168 OTOOL64=$ac_ct_OTOOL64
7169 fi
7170 else
7171 OTOOL64="$ac_cv_prog_OTOOL64"
7172 fi
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7201 $as_echo_n "checking for -single_module linker flag... " >&6; }
7202 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7203 $as_echo_n "(cached) " >&6
7204 else
7205 lt_cv_apple_cc_single_mod=no
7206 if test -z "${LT_MULTI_MODULE}"; then
7207 # By default we will add the -single_module flag. You can override
7208 # by either setting the environment variable LT_MULTI_MODULE
7209 # non-empty at configure time, or by adding -multi_module to the
7210 # link flags.
7211 rm -rf libconftest.dylib*
7212 echo "int foo(void){return 1;}" > conftest.c
7213 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7214 -dynamiclib -Wl,-single_module conftest.c" >&5
7215 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7216 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7217 _lt_result=$?
7218 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7219 lt_cv_apple_cc_single_mod=yes
7220 else
7221 cat conftest.err >&5
7222 fi
7223 rm -rf libconftest.dylib*
7224 rm -f conftest.*
7225 fi
7226 fi
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7228 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7230 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7231 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7232 $as_echo_n "(cached) " >&6
7233 else
7234 lt_cv_ld_exported_symbols_list=no
7235 save_LDFLAGS=$LDFLAGS
7236 echo "_main" > conftest.sym
7237 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7239 /* end confdefs.h. */
7240
7241 int
7242 main ()
7243 {
7244
7245 ;
7246 return 0;
7247 }
7248 _ACEOF
7249 if ac_fn_c_try_link "$LINENO"; then :
7250 lt_cv_ld_exported_symbols_list=yes
7251 else
7252 lt_cv_ld_exported_symbols_list=no
7253 fi
7254 rm -f core conftest.err conftest.$ac_objext \
7255 conftest$ac_exeext conftest.$ac_ext
7256 LDFLAGS="$save_LDFLAGS"
7257
7258 fi
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7260 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7262 $as_echo_n "checking for -force_load linker flag... " >&6; }
7263 if test "${lt_cv_ld_force_load+set}" = set; then :
7264 $as_echo_n "(cached) " >&6
7265 else
7266 lt_cv_ld_force_load=no
7267 cat > conftest.c << _LT_EOF
7268 int forced_loaded() { return 2;}
7269 _LT_EOF
7270 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7271 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7272 echo "$AR cru libconftest.a conftest.o" >&5
7273 $AR cru libconftest.a conftest.o 2>&5
7274 cat > conftest.c << _LT_EOF
7275 int main() { return 0;}
7276 _LT_EOF
7277 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7278 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7279 _lt_result=$?
7280 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7281 lt_cv_ld_force_load=yes
7282 else
7283 cat conftest.err >&5
7284 fi
7285 rm -f conftest.err libconftest.a conftest conftest.c
7286 rm -rf conftest.dSYM
7287
7288 fi
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7290 $as_echo "$lt_cv_ld_force_load" >&6; }
7291 case $host_os in
7292 rhapsody* | darwin1.[012])
7293 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7294 darwin1.*)
7295 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7296 darwin*) # darwin 5.x on
7297 # if running on 10.5 or later, the deployment target defaults
7298 # to the OS version, if on x86, and 10.4, the deployment
7299 # target defaults to 10.4. Don't you love it?
7300 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7301 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7302 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7303 10.[012]*)
7304 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7305 10.*)
7306 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7307 esac
7308 ;;
7309 esac
7310 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7311 _lt_dar_single_mod='$single_module'
7312 fi
7313 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7314 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7315 else
7316 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7317 fi
7318 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7319 _lt_dsymutil='~$DSYMUTIL $lib || :'
7320 else
7321 _lt_dsymutil=
7322 fi
7323 ;;
7324 esac
7325
7326 ac_ext=c
7327 ac_cpp='$CPP $CPPFLAGS'
7328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7332 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7333 # On Suns, sometimes $CPP names a directory.
7334 if test -n "$CPP" && test -d "$CPP"; then
7335 CPP=
7336 fi
7337 if test -z "$CPP"; then
7338 if test "${ac_cv_prog_CPP+set}" = set; then :
7339 $as_echo_n "(cached) " >&6
7340 else
7341 # Double quotes because CPP needs to be expanded
7342 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7343 do
7344 ac_preproc_ok=false
7345 for ac_c_preproc_warn_flag in '' yes
7346 do
7347 # Use a header file that comes with gcc, so configuring glibc
7348 # with a fresh cross-compiler works.
7349 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7350 # <limits.h> exists even on freestanding compilers.
7351 # On the NeXT, cc -E runs the code through the compiler's parser,
7352 # not just through cpp. "Syntax error" is here to catch this case.
7353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7354 /* end confdefs.h. */
7355 #ifdef __STDC__
7356 # include <limits.h>
7357 #else
7358 # include <assert.h>
7359 #endif
7360 Syntax error
7361 _ACEOF
7362 if ac_fn_c_try_cpp "$LINENO"; then :
7363
7364 else
7365 # Broken: fails on valid input.
7366 continue
7367 fi
7368 rm -f conftest.err conftest.$ac_ext
7369
7370 # OK, works on sane cases. Now check whether nonexistent headers
7371 # can be detected and how.
7372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7373 /* end confdefs.h. */
7374 #include <ac_nonexistent.h>
7375 _ACEOF
7376 if ac_fn_c_try_cpp "$LINENO"; then :
7377 # Broken: success on invalid input.
7378 continue
7379 else
7380 # Passes both tests.
7381 ac_preproc_ok=:
7382 break
7383 fi
7384 rm -f conftest.err conftest.$ac_ext
7385
7386 done
7387 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7388 rm -f conftest.err conftest.$ac_ext
7389 if $ac_preproc_ok; then :
7390 break
7391 fi
7392
7393 done
7394 ac_cv_prog_CPP=$CPP
7395
7396 fi
7397 CPP=$ac_cv_prog_CPP
7398 else
7399 ac_cv_prog_CPP=$CPP
7400 fi
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7402 $as_echo "$CPP" >&6; }
7403 ac_preproc_ok=false
7404 for ac_c_preproc_warn_flag in '' yes
7405 do
7406 # Use a header file that comes with gcc, so configuring glibc
7407 # with a fresh cross-compiler works.
7408 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7409 # <limits.h> exists even on freestanding compilers.
7410 # On the NeXT, cc -E runs the code through the compiler's parser,
7411 # not just through cpp. "Syntax error" is here to catch this case.
7412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7413 /* end confdefs.h. */
7414 #ifdef __STDC__
7415 # include <limits.h>
7416 #else
7417 # include <assert.h>
7418 #endif
7419 Syntax error
7420 _ACEOF
7421 if ac_fn_c_try_cpp "$LINENO"; then :
7422
7423 else
7424 # Broken: fails on valid input.
7425 continue
7426 fi
7427 rm -f conftest.err conftest.$ac_ext
7428
7429 # OK, works on sane cases. Now check whether nonexistent headers
7430 # can be detected and how.
7431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7432 /* end confdefs.h. */
7433 #include <ac_nonexistent.h>
7434 _ACEOF
7435 if ac_fn_c_try_cpp "$LINENO"; then :
7436 # Broken: success on invalid input.
7437 continue
7438 else
7439 # Passes both tests.
7440 ac_preproc_ok=:
7441 break
7442 fi
7443 rm -f conftest.err conftest.$ac_ext
7444
7445 done
7446 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7447 rm -f conftest.err conftest.$ac_ext
7448 if $ac_preproc_ok; then :
7449
7450 else
7451 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7453 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7454 See \`config.log' for more details." "$LINENO" 5; }
7455 fi
7456
7457 ac_ext=c
7458 ac_cpp='$CPP $CPPFLAGS'
7459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7462
7463
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7465 $as_echo_n "checking for ANSI C header files... " >&6; }
7466 if test "${ac_cv_header_stdc+set}" = set; then :
7467 $as_echo_n "(cached) " >&6
7468 else
7469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7470 /* end confdefs.h. */
7471 #include <stdlib.h>
7472 #include <stdarg.h>
7473 #include <string.h>
7474 #include <float.h>
7475
7476 int
7477 main ()
7478 {
7479
7480 ;
7481 return 0;
7482 }
7483 _ACEOF
7484 if ac_fn_c_try_compile "$LINENO"; then :
7485 ac_cv_header_stdc=yes
7486 else
7487 ac_cv_header_stdc=no
7488 fi
7489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7490
7491 if test $ac_cv_header_stdc = yes; then
7492 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7494 /* end confdefs.h. */
7495 #include <string.h>
7496
7497 _ACEOF
7498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7499 $EGREP "memchr" >/dev/null 2>&1; then :
7500
7501 else
7502 ac_cv_header_stdc=no
7503 fi
7504 rm -f conftest*
7505
7506 fi
7507
7508 if test $ac_cv_header_stdc = yes; then
7509 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7511 /* end confdefs.h. */
7512 #include <stdlib.h>
7513
7514 _ACEOF
7515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7516 $EGREP "free" >/dev/null 2>&1; then :
7517
7518 else
7519 ac_cv_header_stdc=no
7520 fi
7521 rm -f conftest*
7522
7523 fi
7524
7525 if test $ac_cv_header_stdc = yes; then
7526 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7527 if test "$cross_compiling" = yes; then :
7528 :
7529 else
7530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7531 /* end confdefs.h. */
7532 #include <ctype.h>
7533 #include <stdlib.h>
7534 #if ((' ' & 0x0FF) == 0x020)
7535 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7536 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7537 #else
7538 # define ISLOWER(c) \
7539 (('a' <= (c) && (c) <= 'i') \
7540 || ('j' <= (c) && (c) <= 'r') \
7541 || ('s' <= (c) && (c) <= 'z'))
7542 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7543 #endif
7544
7545 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7546 int
7547 main ()
7548 {
7549 int i;
7550 for (i = 0; i < 256; i++)
7551 if (XOR (islower (i), ISLOWER (i))
7552 || toupper (i) != TOUPPER (i))
7553 return 2;
7554 return 0;
7555 }
7556 _ACEOF
7557 if ac_fn_c_try_run "$LINENO"; then :
7558
7559 else
7560 ac_cv_header_stdc=no
7561 fi
7562 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7563 conftest.$ac_objext conftest.beam conftest.$ac_ext
7564 fi
7565
7566 fi
7567 fi
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7569 $as_echo "$ac_cv_header_stdc" >&6; }
7570 if test $ac_cv_header_stdc = yes; then
7571
7572 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7573
7574 fi
7575
7576 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7577 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7578 inttypes.h stdint.h unistd.h
7579 do :
7580 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7581 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7582 "
7583 eval as_val=\$$as_ac_Header
7584 if test "x$as_val" = x""yes; then :
7585 cat >>confdefs.h <<_ACEOF
7586 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7587 _ACEOF
7588
7589 fi
7590
7591 done
7592
7593
7594 for ac_header in dlfcn.h
7595 do :
7596 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7597 "
7598 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7599 cat >>confdefs.h <<_ACEOF
7600 #define HAVE_DLFCN_H 1
7601 _ACEOF
7602
7603 fi
7604
7605 done
7606
7607
7608
7609
7610
7611 # Set options
7612
7613
7614
7615 enable_dlopen=no
7616
7617
7618 enable_win32_dll=no
7619
7620
7621 # Check whether --enable-shared was given.
7622 if test "${enable_shared+set}" = set; then :
7623 enableval=$enable_shared; p=${PACKAGE-default}
7624 case $enableval in
7625 yes) enable_shared=yes ;;
7626 no) enable_shared=no ;;
7627 *)
7628 enable_shared=no
7629 # Look at the argument we got. We use all the common list separators.
7630 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7631 for pkg in $enableval; do
7632 IFS="$lt_save_ifs"
7633 if test "X$pkg" = "X$p"; then
7634 enable_shared=yes
7635 fi
7636 done
7637 IFS="$lt_save_ifs"
7638 ;;
7639 esac
7640 else
7641 enable_shared=yes
7642 fi
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652 # Check whether --enable-static was given.
7653 if test "${enable_static+set}" = set; then :
7654 enableval=$enable_static; p=${PACKAGE-default}
7655 case $enableval in
7656 yes) enable_static=yes ;;
7657 no) enable_static=no ;;
7658 *)
7659 enable_static=no
7660 # Look at the argument we got. We use all the common list separators.
7661 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7662 for pkg in $enableval; do
7663 IFS="$lt_save_ifs"
7664 if test "X$pkg" = "X$p"; then
7665 enable_static=yes
7666 fi
7667 done
7668 IFS="$lt_save_ifs"
7669 ;;
7670 esac
7671 else
7672 enable_static=yes
7673 fi
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684 # Check whether --with-pic was given.
7685 if test "${with_pic+set}" = set; then :
7686 withval=$with_pic; pic_mode="$withval"
7687 else
7688 pic_mode=default
7689 fi
7690
7691
7692 test -z "$pic_mode" && pic_mode=default
7693
7694
7695
7696
7697
7698
7699
7700 # Check whether --enable-fast-install was given.
7701 if test "${enable_fast_install+set}" = set; then :
7702 enableval=$enable_fast_install; p=${PACKAGE-default}
7703 case $enableval in
7704 yes) enable_fast_install=yes ;;
7705 no) enable_fast_install=no ;;
7706 *)
7707 enable_fast_install=no
7708 # Look at the argument we got. We use all the common list separators.
7709 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7710 for pkg in $enableval; do
7711 IFS="$lt_save_ifs"
7712 if test "X$pkg" = "X$p"; then
7713 enable_fast_install=yes
7714 fi
7715 done
7716 IFS="$lt_save_ifs"
7717 ;;
7718 esac
7719 else
7720 enable_fast_install=yes
7721 fi
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733 # This can be used to rebuild libtool when needed
7734 LIBTOOL_DEPS="$ltmain"
7735
7736 # Always use our own libtool.
7737 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764 test -z "$LN_S" && LN_S="ln -s"
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779 if test -n "${ZSH_VERSION+set}" ; then
7780 setopt NO_GLOB_SUBST
7781 fi
7782
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7784 $as_echo_n "checking for objdir... " >&6; }
7785 if test "${lt_cv_objdir+set}" = set; then :
7786 $as_echo_n "(cached) " >&6
7787 else
7788 rm -f .libs 2>/dev/null
7789 mkdir .libs 2>/dev/null
7790 if test -d .libs; then
7791 lt_cv_objdir=.libs
7792 else
7793 # MS-DOS does not allow filenames that begin with a dot.
7794 lt_cv_objdir=_libs
7795 fi
7796 rmdir .libs 2>/dev/null
7797 fi
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7799 $as_echo "$lt_cv_objdir" >&6; }
7800 objdir=$lt_cv_objdir
7801
7802
7803
7804
7805
7806 cat >>confdefs.h <<_ACEOF
7807 #define LT_OBJDIR "$lt_cv_objdir/"
7808 _ACEOF
7809
7810
7811
7812
7813 case $host_os in
7814 aix3*)
7815 # AIX sometimes has problems with the GCC collect2 program. For some
7816 # reason, if we set the COLLECT_NAMES environment variable, the problems
7817 # vanish in a puff of smoke.
7818 if test "X${COLLECT_NAMES+set}" != Xset; then
7819 COLLECT_NAMES=
7820 export COLLECT_NAMES
7821 fi
7822 ;;
7823 esac
7824
7825 # Global variables:
7826 ofile=libtool
7827 can_build_shared=yes
7828
7829 # All known linkers require a `.a' archive for static linking (except MSVC,
7830 # which needs '.lib').
7831 libext=a
7832
7833 with_gnu_ld="$lt_cv_prog_gnu_ld"
7834
7835 old_CC="$CC"
7836 old_CFLAGS="$CFLAGS"
7837
7838 # Set sane defaults for various variables
7839 test -z "$CC" && CC=cc
7840 test -z "$LTCC" && LTCC=$CC
7841 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7842 test -z "$LD" && LD=ld
7843 test -z "$ac_objext" && ac_objext=o
7844
7845 for cc_temp in $compiler""; do
7846 case $cc_temp in
7847 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7848 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7849 \-*) ;;
7850 *) break;;
7851 esac
7852 done
7853 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7854
7855
7856 # Only perform the check for file, if the check method requires it
7857 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7858 case $deplibs_check_method in
7859 file_magic*)
7860 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7862 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7863 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7864 $as_echo_n "(cached) " >&6
7865 else
7866 case $MAGIC_CMD in
7867 [\\/*] | ?:[\\/]*)
7868 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7869 ;;
7870 *)
7871 lt_save_MAGIC_CMD="$MAGIC_CMD"
7872 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7873 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7874 for ac_dir in $ac_dummy; do
7875 IFS="$lt_save_ifs"
7876 test -z "$ac_dir" && ac_dir=.
7877 if test -f $ac_dir/${ac_tool_prefix}file; then
7878 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7879 if test -n "$file_magic_test_file"; then
7880 case $deplibs_check_method in
7881 "file_magic "*)
7882 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7883 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7884 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7885 $EGREP "$file_magic_regex" > /dev/null; then
7886 :
7887 else
7888 cat <<_LT_EOF 1>&2
7889
7890 *** Warning: the command libtool uses to detect shared libraries,
7891 *** $file_magic_cmd, produces output that libtool cannot recognize.
7892 *** The result is that libtool may fail to recognize shared libraries
7893 *** as such. This will affect the creation of libtool libraries that
7894 *** depend on shared libraries, but programs linked with such libtool
7895 *** libraries will work regardless of this problem. Nevertheless, you
7896 *** may want to report the problem to your system manager and/or to
7897 *** bug-libtool@gnu.org
7898
7899 _LT_EOF
7900 fi ;;
7901 esac
7902 fi
7903 break
7904 fi
7905 done
7906 IFS="$lt_save_ifs"
7907 MAGIC_CMD="$lt_save_MAGIC_CMD"
7908 ;;
7909 esac
7910 fi
7911
7912 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7913 if test -n "$MAGIC_CMD"; then
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7915 $as_echo "$MAGIC_CMD" >&6; }
7916 else
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7918 $as_echo "no" >&6; }
7919 fi
7920
7921
7922
7923
7924
7925 if test -z "$lt_cv_path_MAGIC_CMD"; then
7926 if test -n "$ac_tool_prefix"; then
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7928 $as_echo_n "checking for file... " >&6; }
7929 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7930 $as_echo_n "(cached) " >&6
7931 else
7932 case $MAGIC_CMD in
7933 [\\/*] | ?:[\\/]*)
7934 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7935 ;;
7936 *)
7937 lt_save_MAGIC_CMD="$MAGIC_CMD"
7938 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7939 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7940 for ac_dir in $ac_dummy; do
7941 IFS="$lt_save_ifs"
7942 test -z "$ac_dir" && ac_dir=.
7943 if test -f $ac_dir/file; then
7944 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7945 if test -n "$file_magic_test_file"; then
7946 case $deplibs_check_method in
7947 "file_magic "*)
7948 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7949 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7950 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7951 $EGREP "$file_magic_regex" > /dev/null; then
7952 :
7953 else
7954 cat <<_LT_EOF 1>&2
7955
7956 *** Warning: the command libtool uses to detect shared libraries,
7957 *** $file_magic_cmd, produces output that libtool cannot recognize.
7958 *** The result is that libtool may fail to recognize shared libraries
7959 *** as such. This will affect the creation of libtool libraries that
7960 *** depend on shared libraries, but programs linked with such libtool
7961 *** libraries will work regardless of this problem. Nevertheless, you
7962 *** may want to report the problem to your system manager and/or to
7963 *** bug-libtool@gnu.org
7964
7965 _LT_EOF
7966 fi ;;
7967 esac
7968 fi
7969 break
7970 fi
7971 done
7972 IFS="$lt_save_ifs"
7973 MAGIC_CMD="$lt_save_MAGIC_CMD"
7974 ;;
7975 esac
7976 fi
7977
7978 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7979 if test -n "$MAGIC_CMD"; then
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7981 $as_echo "$MAGIC_CMD" >&6; }
7982 else
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7984 $as_echo "no" >&6; }
7985 fi
7986
7987
7988 else
7989 MAGIC_CMD=:
7990 fi
7991 fi
7992
7993 fi
7994 ;;
7995 esac
7996
7997 # Use C for the default configuration in the libtool script
7998
7999 lt_save_CC="$CC"
8000 ac_ext=c
8001 ac_cpp='$CPP $CPPFLAGS'
8002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8005
8006
8007 # Source file extension for C test sources.
8008 ac_ext=c
8009
8010 # Object file extension for compiled C test sources.
8011 objext=o
8012 objext=$objext
8013
8014 # Code to be used in simple compile tests
8015 lt_simple_compile_test_code="int some_variable = 0;"
8016
8017 # Code to be used in simple link tests
8018 lt_simple_link_test_code='int main(){return(0);}'
8019
8020
8021
8022
8023
8024
8025
8026 # If no C compiler was specified, use CC.
8027 LTCC=${LTCC-"$CC"}
8028
8029 # If no C compiler flags were specified, use CFLAGS.
8030 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8031
8032 # Allow CC to be a program name with arguments.
8033 compiler=$CC
8034
8035 # Save the default compiler, since it gets overwritten when the other
8036 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8037 compiler_DEFAULT=$CC
8038
8039 # save warnings/boilerplate of simple test code
8040 ac_outfile=conftest.$ac_objext
8041 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8042 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8043 _lt_compiler_boilerplate=`cat conftest.err`
8044 $RM conftest*
8045
8046 ac_outfile=conftest.$ac_objext
8047 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8048 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8049 _lt_linker_boilerplate=`cat conftest.err`
8050 $RM -r conftest*
8051
8052
8053 ## CAVEAT EMPTOR:
8054 ## There is no encapsulation within the following macros, do not change
8055 ## the running order or otherwise move them around unless you know exactly
8056 ## what you are doing...
8057 if test -n "$compiler"; then
8058
8059 lt_prog_compiler_no_builtin_flag=
8060
8061 if test "$GCC" = yes; then
8062 case $cc_basename in
8063 nvcc*)
8064 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8065 *)
8066 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8067 esac
8068
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8070 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8071 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8072 $as_echo_n "(cached) " >&6
8073 else
8074 lt_cv_prog_compiler_rtti_exceptions=no
8075 ac_outfile=conftest.$ac_objext
8076 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8077 lt_compiler_flag="-fno-rtti -fno-exceptions"
8078 # Insert the option either (1) after the last *FLAGS variable, or
8079 # (2) before a word containing "conftest.", or (3) at the end.
8080 # Note that $ac_compile itself does not contain backslashes and begins
8081 # with a dollar sign (not a hyphen), so the echo should work correctly.
8082 # The option is referenced via a variable to avoid confusing sed.
8083 lt_compile=`echo "$ac_compile" | $SED \
8084 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8085 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8086 -e 's:$: $lt_compiler_flag:'`
8087 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8088 (eval "$lt_compile" 2>conftest.err)
8089 ac_status=$?
8090 cat conftest.err >&5
8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092 if (exit $ac_status) && test -s "$ac_outfile"; then
8093 # The compiler can only warn and ignore the option if not recognized
8094 # So say no if there are warnings other than the usual output.
8095 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8096 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8097 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8098 lt_cv_prog_compiler_rtti_exceptions=yes
8099 fi
8100 fi
8101 $RM conftest*
8102
8103 fi
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8105 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8106
8107 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8108 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8109 else
8110 :
8111 fi
8112
8113 fi
8114
8115
8116
8117
8118
8119
8120 lt_prog_compiler_wl=
8121 lt_prog_compiler_pic=
8122 lt_prog_compiler_static=
8123
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8125 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8126
8127 if test "$GCC" = yes; then
8128 lt_prog_compiler_wl='-Wl,'
8129 lt_prog_compiler_static='-static'
8130
8131 case $host_os in
8132 aix*)
8133 # All AIX code is PIC.
8134 if test "$host_cpu" = ia64; then
8135 # AIX 5 now supports IA64 processor
8136 lt_prog_compiler_static='-Bstatic'
8137 fi
8138 ;;
8139
8140 amigaos*)
8141 case $host_cpu in
8142 powerpc)
8143 # see comment about AmigaOS4 .so support
8144 lt_prog_compiler_pic='-fPIC'
8145 ;;
8146 m68k)
8147 # FIXME: we need at least 68020 code to build shared libraries, but
8148 # adding the `-m68020' flag to GCC prevents building anything better,
8149 # like `-m68040'.
8150 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8151 ;;
8152 esac
8153 ;;
8154
8155 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8156 # PIC is the default for these OSes.
8157 ;;
8158
8159 mingw* | cygwin* | pw32* | os2* | cegcc*)
8160 # This hack is so that the source file can tell whether it is being
8161 # built for inclusion in a dll (and should export symbols for example).
8162 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8163 # (--disable-auto-import) libraries
8164 lt_prog_compiler_pic='-DDLL_EXPORT'
8165 ;;
8166
8167 darwin* | rhapsody*)
8168 # PIC is the default on this platform
8169 # Common symbols not allowed in MH_DYLIB files
8170 lt_prog_compiler_pic='-fno-common'
8171 ;;
8172
8173 haiku*)
8174 # PIC is the default for Haiku.
8175 # The "-static" flag exists, but is broken.
8176 lt_prog_compiler_static=
8177 ;;
8178
8179 hpux*)
8180 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8181 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8182 # sets the default TLS model and affects inlining.
8183 case $host_cpu in
8184 hppa*64*)
8185 # +Z the default
8186 ;;
8187 *)
8188 lt_prog_compiler_pic='-fPIC'
8189 ;;
8190 esac
8191 ;;
8192
8193 interix[3-9]*)
8194 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8195 # Instead, we relocate shared libraries at runtime.
8196 ;;
8197
8198 msdosdjgpp*)
8199 # Just because we use GCC doesn't mean we suddenly get shared libraries
8200 # on systems that don't support them.
8201 lt_prog_compiler_can_build_shared=no
8202 enable_shared=no
8203 ;;
8204
8205 *nto* | *qnx*)
8206 # QNX uses GNU C++, but need to define -shared option too, otherwise
8207 # it will coredump.
8208 lt_prog_compiler_pic='-fPIC -shared'
8209 ;;
8210
8211 sysv4*MP*)
8212 if test -d /usr/nec; then
8213 lt_prog_compiler_pic=-Kconform_pic
8214 fi
8215 ;;
8216
8217 *)
8218 lt_prog_compiler_pic='-fPIC'
8219 ;;
8220 esac
8221
8222 case $cc_basename in
8223 nvcc*) # Cuda Compiler Driver 2.2
8224 lt_prog_compiler_wl='-Xlinker '
8225 lt_prog_compiler_pic='-Xcompiler -fPIC'
8226 ;;
8227 esac
8228 else
8229 # PORTME Check for flag to pass linker flags through the system compiler.
8230 case $host_os in
8231 aix*)
8232 lt_prog_compiler_wl='-Wl,'
8233 if test "$host_cpu" = ia64; then
8234 # AIX 5 now supports IA64 processor
8235 lt_prog_compiler_static='-Bstatic'
8236 else
8237 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8238 fi
8239 ;;
8240
8241 mingw* | cygwin* | pw32* | os2* | cegcc*)
8242 # This hack is so that the source file can tell whether it is being
8243 # built for inclusion in a dll (and should export symbols for example).
8244 lt_prog_compiler_pic='-DDLL_EXPORT'
8245 ;;
8246
8247 hpux9* | hpux10* | hpux11*)
8248 lt_prog_compiler_wl='-Wl,'
8249 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8250 # not for PA HP-UX.
8251 case $host_cpu in
8252 hppa*64*|ia64*)
8253 # +Z the default
8254 ;;
8255 *)
8256 lt_prog_compiler_pic='+Z'
8257 ;;
8258 esac
8259 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8260 lt_prog_compiler_static='${wl}-a ${wl}archive'
8261 ;;
8262
8263 irix5* | irix6* | nonstopux*)
8264 lt_prog_compiler_wl='-Wl,'
8265 # PIC (with -KPIC) is the default.
8266 lt_prog_compiler_static='-non_shared'
8267 ;;
8268
8269 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8270 case $cc_basename in
8271 # old Intel for x86_64 which still supported -KPIC.
8272 ecc*)
8273 lt_prog_compiler_wl='-Wl,'
8274 lt_prog_compiler_pic='-KPIC'
8275 lt_prog_compiler_static='-static'
8276 ;;
8277 # icc used to be incompatible with GCC.
8278 # ICC 10 doesn't accept -KPIC any more.
8279 icc* | ifort*)
8280 lt_prog_compiler_wl='-Wl,'
8281 lt_prog_compiler_pic='-fPIC'
8282 lt_prog_compiler_static='-static'
8283 ;;
8284 # Lahey Fortran 8.1.
8285 lf95*)
8286 lt_prog_compiler_wl='-Wl,'
8287 lt_prog_compiler_pic='--shared'
8288 lt_prog_compiler_static='--static'
8289 ;;
8290 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8291 # Portland Group compilers (*not* the Pentium gcc compiler,
8292 # which looks to be a dead project)
8293 lt_prog_compiler_wl='-Wl,'
8294 lt_prog_compiler_pic='-fpic'
8295 lt_prog_compiler_static='-Bstatic'
8296 ;;
8297 ccc*)
8298 lt_prog_compiler_wl='-Wl,'
8299 # All Alpha code is PIC.
8300 lt_prog_compiler_static='-non_shared'
8301 ;;
8302 xl* | bgxl* | bgf* | mpixl*)
8303 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8304 lt_prog_compiler_wl='-Wl,'
8305 lt_prog_compiler_pic='-qpic'
8306 lt_prog_compiler_static='-qstaticlink'
8307 ;;
8308 *)
8309 case `$CC -V 2>&1 | sed 5q` in
8310 *Sun\ F* | *Sun*Fortran*)
8311 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8312 lt_prog_compiler_pic='-KPIC'
8313 lt_prog_compiler_static='-Bstatic'
8314 lt_prog_compiler_wl=''
8315 ;;
8316 *Sun\ C*)
8317 # Sun C 5.9
8318 lt_prog_compiler_pic='-KPIC'
8319 lt_prog_compiler_static='-Bstatic'
8320 lt_prog_compiler_wl='-Wl,'
8321 ;;
8322 esac
8323 ;;
8324 esac
8325 ;;
8326
8327 newsos6)
8328 lt_prog_compiler_pic='-KPIC'
8329 lt_prog_compiler_static='-Bstatic'
8330 ;;
8331
8332 *nto* | *qnx*)
8333 # QNX uses GNU C++, but need to define -shared option too, otherwise
8334 # it will coredump.
8335 lt_prog_compiler_pic='-fPIC -shared'
8336 ;;
8337
8338 osf3* | osf4* | osf5*)
8339 lt_prog_compiler_wl='-Wl,'
8340 # All OSF/1 code is PIC.
8341 lt_prog_compiler_static='-non_shared'
8342 ;;
8343
8344 rdos*)
8345 lt_prog_compiler_static='-non_shared'
8346 ;;
8347
8348 solaris*)
8349 lt_prog_compiler_pic='-KPIC'
8350 lt_prog_compiler_static='-Bstatic'
8351 case $cc_basename in
8352 f77* | f90* | f95*)
8353 lt_prog_compiler_wl='-Qoption ld ';;
8354 *)
8355 lt_prog_compiler_wl='-Wl,';;
8356 esac
8357 ;;
8358
8359 sunos4*)
8360 lt_prog_compiler_wl='-Qoption ld '
8361 lt_prog_compiler_pic='-PIC'
8362 lt_prog_compiler_static='-Bstatic'
8363 ;;
8364
8365 sysv4 | sysv4.2uw2* | sysv4.3*)
8366 lt_prog_compiler_wl='-Wl,'
8367 lt_prog_compiler_pic='-KPIC'
8368 lt_prog_compiler_static='-Bstatic'
8369 ;;
8370
8371 sysv4*MP*)
8372 if test -d /usr/nec ;then
8373 lt_prog_compiler_pic='-Kconform_pic'
8374 lt_prog_compiler_static='-Bstatic'
8375 fi
8376 ;;
8377
8378 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8379 lt_prog_compiler_wl='-Wl,'
8380 lt_prog_compiler_pic='-KPIC'
8381 lt_prog_compiler_static='-Bstatic'
8382 ;;
8383
8384 unicos*)
8385 lt_prog_compiler_wl='-Wl,'
8386 lt_prog_compiler_can_build_shared=no
8387 ;;
8388
8389 uts4*)
8390 lt_prog_compiler_pic='-pic'
8391 lt_prog_compiler_static='-Bstatic'
8392 ;;
8393
8394 *)
8395 lt_prog_compiler_can_build_shared=no
8396 ;;
8397 esac
8398 fi
8399
8400 case $host_os in
8401 # For platforms which do not support PIC, -DPIC is meaningless:
8402 *djgpp*)
8403 lt_prog_compiler_pic=
8404 ;;
8405 *)
8406 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8407 ;;
8408 esac
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8410 $as_echo "$lt_prog_compiler_pic" >&6; }
8411
8412
8413
8414
8415
8416
8417 #
8418 # Check to make sure the PIC flag actually works.
8419 #
8420 if test -n "$lt_prog_compiler_pic"; then
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8422 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8423 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8424 $as_echo_n "(cached) " >&6
8425 else
8426 lt_cv_prog_compiler_pic_works=no
8427 ac_outfile=conftest.$ac_objext
8428 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8429 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8430 # Insert the option either (1) after the last *FLAGS variable, or
8431 # (2) before a word containing "conftest.", or (3) at the end.
8432 # Note that $ac_compile itself does not contain backslashes and begins
8433 # with a dollar sign (not a hyphen), so the echo should work correctly.
8434 # The option is referenced via a variable to avoid confusing sed.
8435 lt_compile=`echo "$ac_compile" | $SED \
8436 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8437 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8438 -e 's:$: $lt_compiler_flag:'`
8439 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8440 (eval "$lt_compile" 2>conftest.err)
8441 ac_status=$?
8442 cat conftest.err >&5
8443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444 if (exit $ac_status) && test -s "$ac_outfile"; then
8445 # The compiler can only warn and ignore the option if not recognized
8446 # So say no if there are warnings other than the usual output.
8447 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8448 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8449 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8450 lt_cv_prog_compiler_pic_works=yes
8451 fi
8452 fi
8453 $RM conftest*
8454
8455 fi
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8457 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8458
8459 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8460 case $lt_prog_compiler_pic in
8461 "" | " "*) ;;
8462 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8463 esac
8464 else
8465 lt_prog_compiler_pic=
8466 lt_prog_compiler_can_build_shared=no
8467 fi
8468
8469 fi
8470
8471
8472
8473
8474
8475
8476 #
8477 # Check to make sure the static flag actually works.
8478 #
8479 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8481 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8482 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8483 $as_echo_n "(cached) " >&6
8484 else
8485 lt_cv_prog_compiler_static_works=no
8486 save_LDFLAGS="$LDFLAGS"
8487 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8488 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8489 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8490 # The linker can only warn and ignore the option if not recognized
8491 # So say no if there are warnings
8492 if test -s conftest.err; then
8493 # Append any errors to the config.log.
8494 cat conftest.err 1>&5
8495 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8496 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8497 if diff conftest.exp conftest.er2 >/dev/null; then
8498 lt_cv_prog_compiler_static_works=yes
8499 fi
8500 else
8501 lt_cv_prog_compiler_static_works=yes
8502 fi
8503 fi
8504 $RM -r conftest*
8505 LDFLAGS="$save_LDFLAGS"
8506
8507 fi
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8509 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8510
8511 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8512 :
8513 else
8514 lt_prog_compiler_static=
8515 fi
8516
8517
8518
8519
8520
8521
8522
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8524 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8525 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8526 $as_echo_n "(cached) " >&6
8527 else
8528 lt_cv_prog_compiler_c_o=no
8529 $RM -r conftest 2>/dev/null
8530 mkdir conftest
8531 cd conftest
8532 mkdir out
8533 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8534
8535 lt_compiler_flag="-o out/conftest2.$ac_objext"
8536 # Insert the option either (1) after the last *FLAGS variable, or
8537 # (2) before a word containing "conftest.", or (3) at the end.
8538 # Note that $ac_compile itself does not contain backslashes and begins
8539 # with a dollar sign (not a hyphen), so the echo should work correctly.
8540 lt_compile=`echo "$ac_compile" | $SED \
8541 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8542 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8543 -e 's:$: $lt_compiler_flag:'`
8544 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8545 (eval "$lt_compile" 2>out/conftest.err)
8546 ac_status=$?
8547 cat out/conftest.err >&5
8548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8550 then
8551 # The compiler can only warn and ignore the option if not recognized
8552 # So say no if there are warnings
8553 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8554 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8555 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8556 lt_cv_prog_compiler_c_o=yes
8557 fi
8558 fi
8559 chmod u+w . 2>&5
8560 $RM conftest*
8561 # SGI C++ compiler will create directory out/ii_files/ for
8562 # template instantiation
8563 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8564 $RM out/* && rmdir out
8565 cd ..
8566 $RM -r conftest
8567 $RM conftest*
8568
8569 fi
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8571 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8572
8573
8574
8575
8576
8577
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8579 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8580 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8581 $as_echo_n "(cached) " >&6
8582 else
8583 lt_cv_prog_compiler_c_o=no
8584 $RM -r conftest 2>/dev/null
8585 mkdir conftest
8586 cd conftest
8587 mkdir out
8588 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8589
8590 lt_compiler_flag="-o out/conftest2.$ac_objext"
8591 # Insert the option either (1) after the last *FLAGS variable, or
8592 # (2) before a word containing "conftest.", or (3) at the end.
8593 # Note that $ac_compile itself does not contain backslashes and begins
8594 # with a dollar sign (not a hyphen), so the echo should work correctly.
8595 lt_compile=`echo "$ac_compile" | $SED \
8596 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8597 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8598 -e 's:$: $lt_compiler_flag:'`
8599 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8600 (eval "$lt_compile" 2>out/conftest.err)
8601 ac_status=$?
8602 cat out/conftest.err >&5
8603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8605 then
8606 # The compiler can only warn and ignore the option if not recognized
8607 # So say no if there are warnings
8608 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8609 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8610 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8611 lt_cv_prog_compiler_c_o=yes
8612 fi
8613 fi
8614 chmod u+w . 2>&5
8615 $RM conftest*
8616 # SGI C++ compiler will create directory out/ii_files/ for
8617 # template instantiation
8618 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8619 $RM out/* && rmdir out
8620 cd ..
8621 $RM -r conftest
8622 $RM conftest*
8623
8624 fi
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8626 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8627
8628
8629
8630
8631 hard_links="nottested"
8632 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8633 # do not overwrite the value of need_locks provided by the user
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8635 $as_echo_n "checking if we can lock with hard links... " >&6; }
8636 hard_links=yes
8637 $RM conftest*
8638 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8639 touch conftest.a
8640 ln conftest.a conftest.b 2>&5 || hard_links=no
8641 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8643 $as_echo "$hard_links" >&6; }
8644 if test "$hard_links" = no; then
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8646 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8647 need_locks=warn
8648 fi
8649 else
8650 need_locks=no
8651 fi
8652
8653
8654
8655
8656
8657
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8659 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8660
8661 runpath_var=
8662 allow_undefined_flag=
8663 always_export_symbols=no
8664 archive_cmds=
8665 archive_expsym_cmds=
8666 compiler_needs_object=no
8667 enable_shared_with_static_runtimes=no
8668 export_dynamic_flag_spec=
8669 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8670 hardcode_automatic=no
8671 hardcode_direct=no
8672 hardcode_direct_absolute=no
8673 hardcode_libdir_flag_spec=
8674 hardcode_libdir_flag_spec_ld=
8675 hardcode_libdir_separator=
8676 hardcode_minus_L=no
8677 hardcode_shlibpath_var=unsupported
8678 inherit_rpath=no
8679 link_all_deplibs=unknown
8680 module_cmds=
8681 module_expsym_cmds=
8682 old_archive_from_new_cmds=
8683 old_archive_from_expsyms_cmds=
8684 thread_safe_flag_spec=
8685 whole_archive_flag_spec=
8686 # include_expsyms should be a list of space-separated symbols to be *always*
8687 # included in the symbol list
8688 include_expsyms=
8689 # exclude_expsyms can be an extended regexp of symbols to exclude
8690 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8691 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8692 # as well as any symbol that contains `d'.
8693 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8694 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8695 # platforms (ab)use it in PIC code, but their linkers get confused if
8696 # the symbol is explicitly referenced. Since portable code cannot
8697 # rely on this symbol name, it's probably fine to never include it in
8698 # preloaded symbol tables.
8699 # Exclude shared library initialization/finalization symbols.
8700 extract_expsyms_cmds=
8701
8702 case $host_os in
8703 cygwin* | mingw* | pw32* | cegcc*)
8704 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8705 # When not using gcc, we currently assume that we are using
8706 # Microsoft Visual C++.
8707 if test "$GCC" != yes; then
8708 with_gnu_ld=no
8709 fi
8710 ;;
8711 interix*)
8712 # we just hope/assume this is gcc and not c89 (= MSVC++)
8713 with_gnu_ld=yes
8714 ;;
8715 openbsd*)
8716 with_gnu_ld=no
8717 ;;
8718 esac
8719
8720 ld_shlibs=yes
8721
8722 # On some targets, GNU ld is compatible enough with the native linker
8723 # that we're better off using the native interface for both.
8724 lt_use_gnu_ld_interface=no
8725 if test "$with_gnu_ld" = yes; then
8726 case $host_os in
8727 aix*)
8728 # The AIX port of GNU ld has always aspired to compatibility
8729 # with the native linker. However, as the warning in the GNU ld
8730 # block says, versions before 2.19.5* couldn't really create working
8731 # shared libraries, regardless of the interface used.
8732 case `$LD -v 2>&1` in
8733 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8734 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8735 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8736 *)
8737 lt_use_gnu_ld_interface=yes
8738 ;;
8739 esac
8740 ;;
8741 *)
8742 lt_use_gnu_ld_interface=yes
8743 ;;
8744 esac
8745 fi
8746
8747 if test "$lt_use_gnu_ld_interface" = yes; then
8748 # If archive_cmds runs LD, not CC, wlarc should be empty
8749 wlarc='${wl}'
8750
8751 # Set some defaults for GNU ld with shared library support. These
8752 # are reset later if shared libraries are not supported. Putting them
8753 # here allows them to be overridden if necessary.
8754 runpath_var=LD_RUN_PATH
8755 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8756 export_dynamic_flag_spec='${wl}--export-dynamic'
8757 # ancient GNU ld didn't support --whole-archive et. al.
8758 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8759 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8760 else
8761 whole_archive_flag_spec=
8762 fi
8763 supports_anon_versioning=no
8764 case `$LD -v 2>&1` in
8765 *GNU\ gold*) supports_anon_versioning=yes ;;
8766 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8767 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8768 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8769 *\ 2.11.*) ;; # other 2.11 versions
8770 *) supports_anon_versioning=yes ;;
8771 esac
8772
8773 # See if GNU ld supports shared libraries.
8774 case $host_os in
8775 aix[3-9]*)
8776 # On AIX/PPC, the GNU linker is very broken
8777 if test "$host_cpu" != ia64; then
8778 ld_shlibs=no
8779 cat <<_LT_EOF 1>&2
8780
8781 *** Warning: the GNU linker, at least up to release 2.19, is reported
8782 *** to be unable to reliably create shared libraries on AIX.
8783 *** Therefore, libtool is disabling shared libraries support. If you
8784 *** really care for shared libraries, you may want to install binutils
8785 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8786 *** You will then need to restart the configuration process.
8787
8788 _LT_EOF
8789 fi
8790 ;;
8791
8792 amigaos*)
8793 case $host_cpu in
8794 powerpc)
8795 # see comment about AmigaOS4 .so support
8796 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8797 archive_expsym_cmds=''
8798 ;;
8799 m68k)
8800 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8801 hardcode_libdir_flag_spec='-L$libdir'
8802 hardcode_minus_L=yes
8803 ;;
8804 esac
8805 ;;
8806
8807 beos*)
8808 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8809 allow_undefined_flag=unsupported
8810 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8811 # support --undefined. This deserves some investigation. FIXME
8812 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8813 else
8814 ld_shlibs=no
8815 fi
8816 ;;
8817
8818 cygwin* | mingw* | pw32* | cegcc*)
8819 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8820 # as there is no search path for DLLs.
8821 hardcode_libdir_flag_spec='-L$libdir'
8822 export_dynamic_flag_spec='${wl}--export-all-symbols'
8823 allow_undefined_flag=unsupported
8824 always_export_symbols=no
8825 enable_shared_with_static_runtimes=yes
8826 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8827
8828 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8829 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8830 # If the export-symbols file already is a .def file (1st line
8831 # is EXPORTS), use it as is; otherwise, prepend...
8832 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8833 cp $export_symbols $output_objdir/$soname.def;
8834 else
8835 echo EXPORTS > $output_objdir/$soname.def;
8836 cat $export_symbols >> $output_objdir/$soname.def;
8837 fi~
8838 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8839 else
8840 ld_shlibs=no
8841 fi
8842 ;;
8843
8844 haiku*)
8845 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8846 link_all_deplibs=yes
8847 ;;
8848
8849 interix[3-9]*)
8850 hardcode_direct=no
8851 hardcode_shlibpath_var=no
8852 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8853 export_dynamic_flag_spec='${wl}-E'
8854 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8855 # Instead, shared libraries are loaded at an image base (0x10000000 by
8856 # default) and relocated if they conflict, which is a slow very memory
8857 # consuming and fragmenting process. To avoid this, we pick a random,
8858 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8859 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8860 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8861 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8862 ;;
8863
8864 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8865 tmp_diet=no
8866 if test "$host_os" = linux-dietlibc; then
8867 case $cc_basename in
8868 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8869 esac
8870 fi
8871 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8872 && test "$tmp_diet" = no
8873 then
8874 tmp_addflag=
8875 tmp_sharedflag='-shared'
8876 case $cc_basename,$host_cpu in
8877 pgcc*) # Portland Group C compiler
8878 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8879 tmp_addflag=' $pic_flag'
8880 ;;
8881 pgf77* | pgf90* | pgf95* | pgfortran*)
8882 # Portland Group f77 and f90 compilers
8883 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8884 tmp_addflag=' $pic_flag -Mnomain' ;;
8885 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8886 tmp_addflag=' -i_dynamic' ;;
8887 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8888 tmp_addflag=' -i_dynamic -nofor_main' ;;
8889 ifc* | ifort*) # Intel Fortran compiler
8890 tmp_addflag=' -nofor_main' ;;
8891 lf95*) # Lahey Fortran 8.1
8892 whole_archive_flag_spec=
8893 tmp_sharedflag='--shared' ;;
8894 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8895 tmp_sharedflag='-qmkshrobj'
8896 tmp_addflag= ;;
8897 nvcc*) # Cuda Compiler Driver 2.2
8898 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8899 compiler_needs_object=yes
8900 ;;
8901 esac
8902 case `$CC -V 2>&1 | sed 5q` in
8903 *Sun\ C*) # Sun C 5.9
8904 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8905 compiler_needs_object=yes
8906 tmp_sharedflag='-G' ;;
8907 *Sun\ F*) # Sun Fortran 8.3
8908 tmp_sharedflag='-G' ;;
8909 esac
8910 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8911
8912 if test "x$supports_anon_versioning" = xyes; then
8913 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8914 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8915 echo "local: *; };" >> $output_objdir/$libname.ver~
8916 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8917 fi
8918
8919 case $cc_basename in
8920 xlf* | bgf* | bgxlf* | mpixlf*)
8921 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8922 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8923 hardcode_libdir_flag_spec=
8924 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8925 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8926 if test "x$supports_anon_versioning" = xyes; then
8927 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8928 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8929 echo "local: *; };" >> $output_objdir/$libname.ver~
8930 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8931 fi
8932 ;;
8933 esac
8934 else
8935 ld_shlibs=no
8936 fi
8937 ;;
8938
8939 netbsd*)
8940 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8941 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8942 wlarc=
8943 else
8944 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8945 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8946 fi
8947 ;;
8948
8949 solaris*)
8950 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8951 ld_shlibs=no
8952 cat <<_LT_EOF 1>&2
8953
8954 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8955 *** create shared libraries on Solaris systems. Therefore, libtool
8956 *** is disabling shared libraries support. We urge you to upgrade GNU
8957 *** binutils to release 2.9.1 or newer. Another option is to modify
8958 *** your PATH or compiler configuration so that the native linker is
8959 *** used, and then restart.
8960
8961 _LT_EOF
8962 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8963 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8964 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8965 else
8966 ld_shlibs=no
8967 fi
8968 ;;
8969
8970 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8971 case `$LD -v 2>&1` in
8972 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8973 ld_shlibs=no
8974 cat <<_LT_EOF 1>&2
8975
8976 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8977 *** reliably create shared libraries on SCO systems. Therefore, libtool
8978 *** is disabling shared libraries support. We urge you to upgrade GNU
8979 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8980 *** your PATH or compiler configuration so that the native linker is
8981 *** used, and then restart.
8982
8983 _LT_EOF
8984 ;;
8985 *)
8986 # For security reasons, it is highly recommended that you always
8987 # use absolute paths for naming shared libraries, and exclude the
8988 # DT_RUNPATH tag from executables and libraries. But doing so
8989 # requires that you compile everything twice, which is a pain.
8990 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8991 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8992 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8993 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8994 else
8995 ld_shlibs=no
8996 fi
8997 ;;
8998 esac
8999 ;;
9000
9001 sunos4*)
9002 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9003 wlarc=
9004 hardcode_direct=yes
9005 hardcode_shlibpath_var=no
9006 ;;
9007
9008 *)
9009 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9010 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9011 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9012 else
9013 ld_shlibs=no
9014 fi
9015 ;;
9016 esac
9017
9018 if test "$ld_shlibs" = no; then
9019 runpath_var=
9020 hardcode_libdir_flag_spec=
9021 export_dynamic_flag_spec=
9022 whole_archive_flag_spec=
9023 fi
9024 else
9025 # PORTME fill in a description of your system's linker (not GNU ld)
9026 case $host_os in
9027 aix3*)
9028 allow_undefined_flag=unsupported
9029 always_export_symbols=yes
9030 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
9031 # Note: this linker hardcodes the directories in LIBPATH if there
9032 # are no directories specified by -L.
9033 hardcode_minus_L=yes
9034 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9035 # Neither direct hardcoding nor static linking is supported with a
9036 # broken collect2.
9037 hardcode_direct=unsupported
9038 fi
9039 ;;
9040
9041 aix[4-9]*)
9042 if test "$host_cpu" = ia64; then
9043 # On IA64, the linker does run time linking by default, so we don't
9044 # have to do anything special.
9045 aix_use_runtimelinking=no
9046 exp_sym_flag='-Bexport'
9047 no_entry_flag=""
9048 else
9049 # If we're using GNU nm, then we don't want the "-C" option.
9050 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9051 # Also, AIX nm treats weak defined symbols like other global
9052 # defined symbols, whereas GNU nm marks them as "W".
9053 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9054 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9055 else
9056 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9057 fi
9058 aix_use_runtimelinking=no
9059
9060 # Test if we are trying to use run time linking or normal
9061 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9062 # need to do runtime linking.
9063 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9064 for ld_flag in $LDFLAGS; do
9065 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9066 aix_use_runtimelinking=yes
9067 break
9068 fi
9069 done
9070 ;;
9071 esac
9072
9073 exp_sym_flag='-bexport'
9074 no_entry_flag='-bnoentry'
9075 fi
9076
9077 # When large executables or shared objects are built, AIX ld can
9078 # have problems creating the table of contents. If linking a library
9079 # or program results in "error TOC overflow" add -mminimal-toc to
9080 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9081 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9082
9083 archive_cmds=''
9084 hardcode_direct=yes
9085 hardcode_direct_absolute=yes
9086 hardcode_libdir_separator=':'
9087 link_all_deplibs=yes
9088 file_list_spec='${wl}-f,'
9089
9090 if test "$GCC" = yes; then
9091 case $host_os in aix4.[012]|aix4.[012].*)
9092 # We only want to do this on AIX 4.2 and lower, the check
9093 # below for broken collect2 doesn't work under 4.3+
9094 collect2name=`${CC} -print-prog-name=collect2`
9095 if test -f "$collect2name" &&
9096 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9097 then
9098 # We have reworked collect2
9099 :
9100 else
9101 # We have old collect2
9102 hardcode_direct=unsupported
9103 # It fails to find uninstalled libraries when the uninstalled
9104 # path is not listed in the libpath. Setting hardcode_minus_L
9105 # to unsupported forces relinking
9106 hardcode_minus_L=yes
9107 hardcode_libdir_flag_spec='-L$libdir'
9108 hardcode_libdir_separator=
9109 fi
9110 ;;
9111 esac
9112 shared_flag='-shared'
9113 if test "$aix_use_runtimelinking" = yes; then
9114 shared_flag="$shared_flag "'${wl}-G'
9115 fi
9116 else
9117 # not using gcc
9118 if test "$host_cpu" = ia64; then
9119 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9120 # chokes on -Wl,-G. The following line is correct:
9121 shared_flag='-G'
9122 else
9123 if test "$aix_use_runtimelinking" = yes; then
9124 shared_flag='${wl}-G'
9125 else
9126 shared_flag='${wl}-bM:SRE'
9127 fi
9128 fi
9129 fi
9130
9131 export_dynamic_flag_spec='${wl}-bexpall'
9132 # It seems that -bexpall does not export symbols beginning with
9133 # underscore (_), so it is better to generate a list of symbols to export.
9134 always_export_symbols=yes
9135 if test "$aix_use_runtimelinking" = yes; then
9136 # Warning - without using the other runtime loading flags (-brtl),
9137 # -berok will link without error, but may produce a broken library.
9138 allow_undefined_flag='-berok'
9139 # Determine the default libpath from the value encoded in an
9140 # empty executable.
9141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9142 /* end confdefs.h. */
9143
9144 int
9145 main ()
9146 {
9147
9148 ;
9149 return 0;
9150 }
9151 _ACEOF
9152 if ac_fn_c_try_link "$LINENO"; then :
9153
9154 lt_aix_libpath_sed='
9155 /Import File Strings/,/^$/ {
9156 /^0/ {
9157 s/^0 *\(.*\)$/\1/
9158 p
9159 }
9160 }'
9161 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9162 # Check for a 64-bit object if we didn't find anything.
9163 if test -z "$aix_libpath"; then
9164 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9165 fi
9166 fi
9167 rm -f core conftest.err conftest.$ac_objext \
9168 conftest$ac_exeext conftest.$ac_ext
9169 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9170
9171 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9172 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9173 else
9174 if test "$host_cpu" = ia64; then
9175 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9176 allow_undefined_flag="-z nodefs"
9177 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9178 else
9179 # Determine the default libpath from the value encoded in an
9180 # empty executable.
9181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9182 /* end confdefs.h. */
9183
9184 int
9185 main ()
9186 {
9187
9188 ;
9189 return 0;
9190 }
9191 _ACEOF
9192 if ac_fn_c_try_link "$LINENO"; then :
9193
9194 lt_aix_libpath_sed='
9195 /Import File Strings/,/^$/ {
9196 /^0/ {
9197 s/^0 *\(.*\)$/\1/
9198 p
9199 }
9200 }'
9201 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9202 # Check for a 64-bit object if we didn't find anything.
9203 if test -z "$aix_libpath"; then
9204 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9205 fi
9206 fi
9207 rm -f core conftest.err conftest.$ac_objext \
9208 conftest$ac_exeext conftest.$ac_ext
9209 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9210
9211 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9212 # Warning - without using the other run time loading flags,
9213 # -berok will link without error, but may produce a broken library.
9214 no_undefined_flag=' ${wl}-bernotok'
9215 allow_undefined_flag=' ${wl}-berok'
9216 if test "$with_gnu_ld" = yes; then
9217 # We only use this code for GNU lds that support --whole-archive.
9218 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9219 else
9220 # Exported symbols can be pulled into shared objects from archives
9221 whole_archive_flag_spec='$convenience'
9222 fi
9223 archive_cmds_need_lc=yes
9224 # This is similar to how AIX traditionally builds its shared libraries.
9225 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9226 fi
9227 fi
9228 ;;
9229
9230 amigaos*)
9231 case $host_cpu in
9232 powerpc)
9233 # see comment about AmigaOS4 .so support
9234 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9235 archive_expsym_cmds=''
9236 ;;
9237 m68k)
9238 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9239 hardcode_libdir_flag_spec='-L$libdir'
9240 hardcode_minus_L=yes
9241 ;;
9242 esac
9243 ;;
9244
9245 bsdi[45]*)
9246 export_dynamic_flag_spec=-rdynamic
9247 ;;
9248
9249 cygwin* | mingw* | pw32* | cegcc*)
9250 # When not using gcc, we currently assume that we are using
9251 # Microsoft Visual C++.
9252 # hardcode_libdir_flag_spec is actually meaningless, as there is
9253 # no search path for DLLs.
9254 hardcode_libdir_flag_spec=' '
9255 allow_undefined_flag=unsupported
9256 # Tell ltmain to make .lib files, not .a files.
9257 libext=lib
9258 # Tell ltmain to make .dll files, not .so files.
9259 shrext_cmds=".dll"
9260 # FIXME: Setting linknames here is a bad hack.
9261 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9262 # The linker will automatically build a .lib file if we build a DLL.
9263 old_archive_from_new_cmds='true'
9264 # FIXME: Should let the user specify the lib program.
9265 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9266 fix_srcfile_path='`cygpath -w "$srcfile"`'
9267 enable_shared_with_static_runtimes=yes
9268 ;;
9269
9270 darwin* | rhapsody*)
9271
9272
9273 archive_cmds_need_lc=no
9274 hardcode_direct=no
9275 hardcode_automatic=yes
9276 hardcode_shlibpath_var=unsupported
9277 if test "$lt_cv_ld_force_load" = "yes"; then
9278 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9279 else
9280 whole_archive_flag_spec=''
9281 fi
9282 link_all_deplibs=yes
9283 allow_undefined_flag="$_lt_dar_allow_undefined"
9284 case $cc_basename in
9285 ifort*) _lt_dar_can_shared=yes ;;
9286 *) _lt_dar_can_shared=$GCC ;;
9287 esac
9288 if test "$_lt_dar_can_shared" = "yes"; then
9289 output_verbose_link_cmd=func_echo_all
9290 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9291 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9292 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9293 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9294
9295 else
9296 ld_shlibs=no
9297 fi
9298
9299 ;;
9300
9301 dgux*)
9302 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9303 hardcode_libdir_flag_spec='-L$libdir'
9304 hardcode_shlibpath_var=no
9305 ;;
9306
9307 freebsd1*)
9308 ld_shlibs=no
9309 ;;
9310
9311 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9312 # support. Future versions do this automatically, but an explicit c++rt0.o
9313 # does not break anything, and helps significantly (at the cost of a little
9314 # extra space).
9315 freebsd2.2*)
9316 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9317 hardcode_libdir_flag_spec='-R$libdir'
9318 hardcode_direct=yes
9319 hardcode_shlibpath_var=no
9320 ;;
9321
9322 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9323 freebsd2*)
9324 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9325 hardcode_direct=yes
9326 hardcode_minus_L=yes
9327 hardcode_shlibpath_var=no
9328 ;;
9329
9330 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9331 freebsd* | dragonfly*)
9332 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9333 hardcode_libdir_flag_spec='-R$libdir'
9334 hardcode_direct=yes
9335 hardcode_shlibpath_var=no
9336 ;;
9337
9338 hpux9*)
9339 if test "$GCC" = yes; then
9340 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9341 else
9342 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9343 fi
9344 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9345 hardcode_libdir_separator=:
9346 hardcode_direct=yes
9347
9348 # hardcode_minus_L: Not really in the search PATH,
9349 # but as the default location of the library.
9350 hardcode_minus_L=yes
9351 export_dynamic_flag_spec='${wl}-E'
9352 ;;
9353
9354 hpux10*)
9355 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9356 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9357 else
9358 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9359 fi
9360 if test "$with_gnu_ld" = no; then
9361 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9362 hardcode_libdir_flag_spec_ld='+b $libdir'
9363 hardcode_libdir_separator=:
9364 hardcode_direct=yes
9365 hardcode_direct_absolute=yes
9366 export_dynamic_flag_spec='${wl}-E'
9367 # hardcode_minus_L: Not really in the search PATH,
9368 # but as the default location of the library.
9369 hardcode_minus_L=yes
9370 fi
9371 ;;
9372
9373 hpux11*)
9374 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9375 case $host_cpu in
9376 hppa*64*)
9377 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9378 ;;
9379 ia64*)
9380 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9381 ;;
9382 *)
9383 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9384 ;;
9385 esac
9386 else
9387 case $host_cpu in
9388 hppa*64*)
9389 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9390 ;;
9391 ia64*)
9392 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9393 ;;
9394 *)
9395
9396 # Older versions of the 11.00 compiler do not understand -b yet
9397 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9399 $as_echo_n "checking if $CC understands -b... " >&6; }
9400 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9401 $as_echo_n "(cached) " >&6
9402 else
9403 lt_cv_prog_compiler__b=no
9404 save_LDFLAGS="$LDFLAGS"
9405 LDFLAGS="$LDFLAGS -b"
9406 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9407 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9408 # The linker can only warn and ignore the option if not recognized
9409 # So say no if there are warnings
9410 if test -s conftest.err; then
9411 # Append any errors to the config.log.
9412 cat conftest.err 1>&5
9413 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9414 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9415 if diff conftest.exp conftest.er2 >/dev/null; then
9416 lt_cv_prog_compiler__b=yes
9417 fi
9418 else
9419 lt_cv_prog_compiler__b=yes
9420 fi
9421 fi
9422 $RM -r conftest*
9423 LDFLAGS="$save_LDFLAGS"
9424
9425 fi
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9427 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9428
9429 if test x"$lt_cv_prog_compiler__b" = xyes; then
9430 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9431 else
9432 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9433 fi
9434
9435 ;;
9436 esac
9437 fi
9438 if test "$with_gnu_ld" = no; then
9439 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9440 hardcode_libdir_separator=:
9441
9442 case $host_cpu in
9443 hppa*64*|ia64*)
9444 hardcode_direct=no
9445 hardcode_shlibpath_var=no
9446 ;;
9447 *)
9448 hardcode_direct=yes
9449 hardcode_direct_absolute=yes
9450 export_dynamic_flag_spec='${wl}-E'
9451
9452 # hardcode_minus_L: Not really in the search PATH,
9453 # but as the default location of the library.
9454 hardcode_minus_L=yes
9455 ;;
9456 esac
9457 fi
9458 ;;
9459
9460 irix5* | irix6* | nonstopux*)
9461 if test "$GCC" = yes; then
9462 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9463 # Try to use the -exported_symbol ld option, if it does not
9464 # work, assume that -exports_file does not work either and
9465 # implicitly export all symbols.
9466 save_LDFLAGS="$LDFLAGS"
9467 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9469 /* end confdefs.h. */
9470 int foo(void) {}
9471 _ACEOF
9472 if ac_fn_c_try_link "$LINENO"; then :
9473 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9474
9475 fi
9476 rm -f core conftest.err conftest.$ac_objext \
9477 conftest$ac_exeext conftest.$ac_ext
9478 LDFLAGS="$save_LDFLAGS"
9479 else
9480 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9481 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9482 fi
9483 archive_cmds_need_lc='no'
9484 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9485 hardcode_libdir_separator=:
9486 inherit_rpath=yes
9487 link_all_deplibs=yes
9488 ;;
9489
9490 netbsd*)
9491 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9492 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9493 else
9494 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9495 fi
9496 hardcode_libdir_flag_spec='-R$libdir'
9497 hardcode_direct=yes
9498 hardcode_shlibpath_var=no
9499 ;;
9500
9501 newsos6)
9502 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9503 hardcode_direct=yes
9504 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9505 hardcode_libdir_separator=:
9506 hardcode_shlibpath_var=no
9507 ;;
9508
9509 *nto* | *qnx*)
9510 ;;
9511
9512 openbsd*)
9513 if test -f /usr/libexec/ld.so; then
9514 hardcode_direct=yes
9515 hardcode_shlibpath_var=no
9516 hardcode_direct_absolute=yes
9517 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9518 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9519 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9520 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9521 export_dynamic_flag_spec='${wl}-E'
9522 else
9523 case $host_os in
9524 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9525 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9526 hardcode_libdir_flag_spec='-R$libdir'
9527 ;;
9528 *)
9529 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9530 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9531 ;;
9532 esac
9533 fi
9534 else
9535 ld_shlibs=no
9536 fi
9537 ;;
9538
9539 os2*)
9540 hardcode_libdir_flag_spec='-L$libdir'
9541 hardcode_minus_L=yes
9542 allow_undefined_flag=unsupported
9543 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9544 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9545 ;;
9546
9547 osf3*)
9548 if test "$GCC" = yes; then
9549 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9550 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9551 else
9552 allow_undefined_flag=' -expect_unresolved \*'
9553 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9554 fi
9555 archive_cmds_need_lc='no'
9556 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9557 hardcode_libdir_separator=:
9558 ;;
9559
9560 osf4* | osf5*) # as osf3* with the addition of -msym flag
9561 if test "$GCC" = yes; then
9562 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9563 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9564 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9565 else
9566 allow_undefined_flag=' -expect_unresolved \*'
9567 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9568 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9569 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9570
9571 # Both c and cxx compiler support -rpath directly
9572 hardcode_libdir_flag_spec='-rpath $libdir'
9573 fi
9574 archive_cmds_need_lc='no'
9575 hardcode_libdir_separator=:
9576 ;;
9577
9578 solaris*)
9579 no_undefined_flag=' -z defs'
9580 if test "$GCC" = yes; then
9581 wlarc='${wl}'
9582 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9583 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9584 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9585 else
9586 case `$CC -V 2>&1` in
9587 *"Compilers 5.0"*)
9588 wlarc=''
9589 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9590 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9591 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9592 ;;
9593 *)
9594 wlarc='${wl}'
9595 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9596 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9597 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9598 ;;
9599 esac
9600 fi
9601 hardcode_libdir_flag_spec='-R$libdir'
9602 hardcode_shlibpath_var=no
9603 case $host_os in
9604 solaris2.[0-5] | solaris2.[0-5].*) ;;
9605 *)
9606 # The compiler driver will combine and reorder linker options,
9607 # but understands `-z linker_flag'. GCC discards it without `$wl',
9608 # but is careful enough not to reorder.
9609 # Supported since Solaris 2.6 (maybe 2.5.1?)
9610 if test "$GCC" = yes; then
9611 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9612 else
9613 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9614 fi
9615 ;;
9616 esac
9617 link_all_deplibs=yes
9618 ;;
9619
9620 sunos4*)
9621 if test "x$host_vendor" = xsequent; then
9622 # Use $CC to link under sequent, because it throws in some extra .o
9623 # files that make .init and .fini sections work.
9624 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9625 else
9626 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9627 fi
9628 hardcode_libdir_flag_spec='-L$libdir'
9629 hardcode_direct=yes
9630 hardcode_minus_L=yes
9631 hardcode_shlibpath_var=no
9632 ;;
9633
9634 sysv4)
9635 case $host_vendor in
9636 sni)
9637 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9638 hardcode_direct=yes # is this really true???
9639 ;;
9640 siemens)
9641 ## LD is ld it makes a PLAMLIB
9642 ## CC just makes a GrossModule.
9643 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9644 reload_cmds='$CC -r -o $output$reload_objs'
9645 hardcode_direct=no
9646 ;;
9647 motorola)
9648 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9649 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9650 ;;
9651 esac
9652 runpath_var='LD_RUN_PATH'
9653 hardcode_shlibpath_var=no
9654 ;;
9655
9656 sysv4.3*)
9657 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9658 hardcode_shlibpath_var=no
9659 export_dynamic_flag_spec='-Bexport'
9660 ;;
9661
9662 sysv4*MP*)
9663 if test -d /usr/nec; then
9664 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9665 hardcode_shlibpath_var=no
9666 runpath_var=LD_RUN_PATH
9667 hardcode_runpath_var=yes
9668 ld_shlibs=yes
9669 fi
9670 ;;
9671
9672 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9673 no_undefined_flag='${wl}-z,text'
9674 archive_cmds_need_lc=no
9675 hardcode_shlibpath_var=no
9676 runpath_var='LD_RUN_PATH'
9677
9678 if test "$GCC" = yes; then
9679 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9680 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9681 else
9682 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9683 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9684 fi
9685 ;;
9686
9687 sysv5* | sco3.2v5* | sco5v6*)
9688 # Note: We can NOT use -z defs as we might desire, because we do not
9689 # link with -lc, and that would cause any symbols used from libc to
9690 # always be unresolved, which means just about no library would
9691 # ever link correctly. If we're not using GNU ld we use -z text
9692 # though, which does catch some bad symbols but isn't as heavy-handed
9693 # as -z defs.
9694 no_undefined_flag='${wl}-z,text'
9695 allow_undefined_flag='${wl}-z,nodefs'
9696 archive_cmds_need_lc=no
9697 hardcode_shlibpath_var=no
9698 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9699 hardcode_libdir_separator=':'
9700 link_all_deplibs=yes
9701 export_dynamic_flag_spec='${wl}-Bexport'
9702 runpath_var='LD_RUN_PATH'
9703
9704 if test "$GCC" = yes; then
9705 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9706 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9707 else
9708 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9709 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9710 fi
9711 ;;
9712
9713 uts4*)
9714 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9715 hardcode_libdir_flag_spec='-L$libdir'
9716 hardcode_shlibpath_var=no
9717 ;;
9718
9719 *)
9720 ld_shlibs=no
9721 ;;
9722 esac
9723
9724 if test x$host_vendor = xsni; then
9725 case $host in
9726 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9727 export_dynamic_flag_spec='${wl}-Blargedynsym'
9728 ;;
9729 esac
9730 fi
9731 fi
9732
9733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9734 $as_echo "$ld_shlibs" >&6; }
9735 test "$ld_shlibs" = no && can_build_shared=no
9736
9737 with_gnu_ld=$with_gnu_ld
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753 #
9754 # Do we need to explicitly link libc?
9755 #
9756 case "x$archive_cmds_need_lc" in
9757 x|xyes)
9758 # Assume -lc should be added
9759 archive_cmds_need_lc=yes
9760
9761 if test "$enable_shared" = yes && test "$GCC" = yes; then
9762 case $archive_cmds in
9763 *'~'*)
9764 # FIXME: we may have to deal with multi-command sequences.
9765 ;;
9766 '$CC '*)
9767 # Test whether the compiler implicitly links with -lc since on some
9768 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9769 # to ld, don't add -lc before -lgcc.
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9771 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9772 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9773 $as_echo_n "(cached) " >&6
9774 else
9775 $RM conftest*
9776 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9777
9778 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9779 (eval $ac_compile) 2>&5
9780 ac_status=$?
9781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9782 test $ac_status = 0; } 2>conftest.err; then
9783 soname=conftest
9784 lib=conftest
9785 libobjs=conftest.$ac_objext
9786 deplibs=
9787 wl=$lt_prog_compiler_wl
9788 pic_flag=$lt_prog_compiler_pic
9789 compiler_flags=-v
9790 linker_flags=-v
9791 verstring=
9792 output_objdir=.
9793 libname=conftest
9794 lt_save_allow_undefined_flag=$allow_undefined_flag
9795 allow_undefined_flag=
9796 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9797 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9798 ac_status=$?
9799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9800 test $ac_status = 0; }
9801 then
9802 lt_cv_archive_cmds_need_lc=no
9803 else
9804 lt_cv_archive_cmds_need_lc=yes
9805 fi
9806 allow_undefined_flag=$lt_save_allow_undefined_flag
9807 else
9808 cat conftest.err 1>&5
9809 fi
9810 $RM conftest*
9811
9812 fi
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9814 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9815 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9816 ;;
9817 esac
9818 fi
9819 ;;
9820 esac
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9979 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9980
9981 if test "$GCC" = yes; then
9982 case $host_os in
9983 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9984 *) lt_awk_arg="/^libraries:/" ;;
9985 esac
9986 case $host_os in
9987 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9988 *) lt_sed_strip_eq="s,=/,/,g" ;;
9989 esac
9990 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9991 case $lt_search_path_spec in
9992 *\;*)
9993 # if the path contains ";" then we assume it to be the separator
9994 # otherwise default to the standard path separator (i.e. ":") - it is
9995 # assumed that no part of a normal pathname contains ";" but that should
9996 # okay in the real world where ";" in dirpaths is itself problematic.
9997 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9998 ;;
9999 *)
10000 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10001 ;;
10002 esac
10003 # Ok, now we have the path, separated by spaces, we can step through it
10004 # and add multilib dir if necessary.
10005 lt_tmp_lt_search_path_spec=
10006 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10007 for lt_sys_path in $lt_search_path_spec; do
10008 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10009 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10010 else
10011 test -d "$lt_sys_path" && \
10012 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10013 fi
10014 done
10015 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10016 BEGIN {RS=" "; FS="/|\n";} {
10017 lt_foo="";
10018 lt_count=0;
10019 for (lt_i = NF; lt_i > 0; lt_i--) {
10020 if ($lt_i != "" && $lt_i != ".") {
10021 if ($lt_i == "..") {
10022 lt_count++;
10023 } else {
10024 if (lt_count == 0) {
10025 lt_foo="/" $lt_i lt_foo;
10026 } else {
10027 lt_count--;
10028 }
10029 }
10030 }
10031 }
10032 if (lt_foo != "") { lt_freq[lt_foo]++; }
10033 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10034 }'`
10035 # AWK program above erroneously prepends '/' to C:/dos/paths
10036 # for these hosts.
10037 case $host_os in
10038 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10039 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10040 esac
10041 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10042 else
10043 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10044 fi
10045 library_names_spec=
10046 libname_spec='lib$name'
10047 soname_spec=
10048 shrext_cmds=".so"
10049 postinstall_cmds=
10050 postuninstall_cmds=
10051 finish_cmds=
10052 finish_eval=
10053 shlibpath_var=
10054 shlibpath_overrides_runpath=unknown
10055 version_type=none
10056 dynamic_linker="$host_os ld.so"
10057 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10058 need_lib_prefix=unknown
10059 hardcode_into_libs=no
10060
10061 # when you set need_version to no, make sure it does not cause -set_version
10062 # flags to be left without arguments
10063 need_version=unknown
10064
10065 case $host_os in
10066 aix3*)
10067 version_type=linux
10068 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10069 shlibpath_var=LIBPATH
10070
10071 # AIX 3 has no versioning support, so we append a major version to the name.
10072 soname_spec='${libname}${release}${shared_ext}$major'
10073 ;;
10074
10075 aix[4-9]*)
10076 version_type=linux
10077 need_lib_prefix=no
10078 need_version=no
10079 hardcode_into_libs=yes
10080 if test "$host_cpu" = ia64; then
10081 # AIX 5 supports IA64
10082 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10083 shlibpath_var=LD_LIBRARY_PATH
10084 else
10085 # With GCC up to 2.95.x, collect2 would create an import file
10086 # for dependence libraries. The import file would start with
10087 # the line `#! .'. This would cause the generated library to
10088 # depend on `.', always an invalid library. This was fixed in
10089 # development snapshots of GCC prior to 3.0.
10090 case $host_os in
10091 aix4 | aix4.[01] | aix4.[01].*)
10092 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10093 echo ' yes '
10094 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10095 :
10096 else
10097 can_build_shared=no
10098 fi
10099 ;;
10100 esac
10101 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10102 # soname into executable. Probably we can add versioning support to
10103 # collect2, so additional links can be useful in future.
10104 if test "$aix_use_runtimelinking" = yes; then
10105 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10106 # instead of lib<name>.a to let people know that these are not
10107 # typical AIX shared libraries.
10108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10109 else
10110 # We preserve .a as extension for shared libraries through AIX4.2
10111 # and later when we are not doing run time linking.
10112 library_names_spec='${libname}${release}.a $libname.a'
10113 soname_spec='${libname}${release}${shared_ext}$major'
10114 fi
10115 shlibpath_var=LIBPATH
10116 fi
10117 ;;
10118
10119 amigaos*)
10120 case $host_cpu in
10121 powerpc)
10122 # Since July 2007 AmigaOS4 officially supports .so libraries.
10123 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10125 ;;
10126 m68k)
10127 library_names_spec='$libname.ixlibrary $libname.a'
10128 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10129 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10130 ;;
10131 esac
10132 ;;
10133
10134 beos*)
10135 library_names_spec='${libname}${shared_ext}'
10136 dynamic_linker="$host_os ld.so"
10137 shlibpath_var=LIBRARY_PATH
10138 ;;
10139
10140 bsdi[45]*)
10141 version_type=linux
10142 need_version=no
10143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10144 soname_spec='${libname}${release}${shared_ext}$major'
10145 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10146 shlibpath_var=LD_LIBRARY_PATH
10147 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10148 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10149 # the default ld.so.conf also contains /usr/contrib/lib and
10150 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10151 # libtool to hard-code these into programs
10152 ;;
10153
10154 cygwin* | mingw* | pw32* | cegcc*)
10155 version_type=windows
10156 shrext_cmds=".dll"
10157 need_version=no
10158 need_lib_prefix=no
10159
10160 case $GCC,$host_os in
10161 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10162 library_names_spec='$libname.dll.a'
10163 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10164 postinstall_cmds='base_file=`basename \${file}`~
10165 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10166 dldir=$destdir/`dirname \$dlpath`~
10167 test -d \$dldir || mkdir -p \$dldir~
10168 $install_prog $dir/$dlname \$dldir/$dlname~
10169 chmod a+x \$dldir/$dlname~
10170 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10171 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10172 fi'
10173 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10174 dlpath=$dir/\$dldll~
10175 $RM \$dlpath'
10176 shlibpath_overrides_runpath=yes
10177
10178 case $host_os in
10179 cygwin*)
10180 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10181 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10182
10183 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10184 ;;
10185 mingw* | cegcc*)
10186 # MinGW DLLs use traditional 'lib' prefix
10187 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10188 ;;
10189 pw32*)
10190 # pw32 DLLs use 'pw' prefix rather than 'lib'
10191 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10192 ;;
10193 esac
10194 ;;
10195
10196 *)
10197 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10198 ;;
10199 esac
10200 dynamic_linker='Win32 ld.exe'
10201 # FIXME: first we should search . and the directory the executable is in
10202 shlibpath_var=PATH
10203 ;;
10204
10205 darwin* | rhapsody*)
10206 dynamic_linker="$host_os dyld"
10207 version_type=darwin
10208 need_lib_prefix=no
10209 need_version=no
10210 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10211 soname_spec='${libname}${release}${major}$shared_ext'
10212 shlibpath_overrides_runpath=yes
10213 shlibpath_var=DYLD_LIBRARY_PATH
10214 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10215
10216 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10217 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10218 ;;
10219
10220 dgux*)
10221 version_type=linux
10222 need_lib_prefix=no
10223 need_version=no
10224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10225 soname_spec='${libname}${release}${shared_ext}$major'
10226 shlibpath_var=LD_LIBRARY_PATH
10227 ;;
10228
10229 freebsd1*)
10230 dynamic_linker=no
10231 ;;
10232
10233 freebsd* | dragonfly*)
10234 # DragonFly does not have aout. When/if they implement a new
10235 # versioning mechanism, adjust this.
10236 if test -x /usr/bin/objformat; then
10237 objformat=`/usr/bin/objformat`
10238 else
10239 case $host_os in
10240 freebsd[123]*) objformat=aout ;;
10241 *) objformat=elf ;;
10242 esac
10243 fi
10244 version_type=freebsd-$objformat
10245 case $version_type in
10246 freebsd-elf*)
10247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10248 need_version=no
10249 need_lib_prefix=no
10250 ;;
10251 freebsd-*)
10252 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10253 need_version=yes
10254 ;;
10255 esac
10256 shlibpath_var=LD_LIBRARY_PATH
10257 case $host_os in
10258 freebsd2*)
10259 shlibpath_overrides_runpath=yes
10260 ;;
10261 freebsd3.[01]* | freebsdelf3.[01]*)
10262 shlibpath_overrides_runpath=yes
10263 hardcode_into_libs=yes
10264 ;;
10265 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10266 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10267 shlibpath_overrides_runpath=no
10268 hardcode_into_libs=yes
10269 ;;
10270 *) # from 4.6 on, and DragonFly
10271 shlibpath_overrides_runpath=yes
10272 hardcode_into_libs=yes
10273 ;;
10274 esac
10275 ;;
10276
10277 gnu*)
10278 version_type=linux
10279 need_lib_prefix=no
10280 need_version=no
10281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10282 soname_spec='${libname}${release}${shared_ext}$major'
10283 shlibpath_var=LD_LIBRARY_PATH
10284 hardcode_into_libs=yes
10285 ;;
10286
10287 haiku*)
10288 version_type=linux
10289 need_lib_prefix=no
10290 need_version=no
10291 dynamic_linker="$host_os runtime_loader"
10292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10293 soname_spec='${libname}${release}${shared_ext}$major'
10294 shlibpath_var=LIBRARY_PATH
10295 shlibpath_overrides_runpath=yes
10296 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10297 hardcode_into_libs=yes
10298 ;;
10299
10300 hpux9* | hpux10* | hpux11*)
10301 # Give a soname corresponding to the major version so that dld.sl refuses to
10302 # link against other versions.
10303 version_type=sunos
10304 need_lib_prefix=no
10305 need_version=no
10306 case $host_cpu in
10307 ia64*)
10308 shrext_cmds='.so'
10309 hardcode_into_libs=yes
10310 dynamic_linker="$host_os dld.so"
10311 shlibpath_var=LD_LIBRARY_PATH
10312 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10314 soname_spec='${libname}${release}${shared_ext}$major'
10315 if test "X$HPUX_IA64_MODE" = X32; then
10316 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10317 else
10318 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10319 fi
10320 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10321 ;;
10322 hppa*64*)
10323 shrext_cmds='.sl'
10324 hardcode_into_libs=yes
10325 dynamic_linker="$host_os dld.sl"
10326 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10327 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10329 soname_spec='${libname}${release}${shared_ext}$major'
10330 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10331 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10332 ;;
10333 *)
10334 shrext_cmds='.sl'
10335 dynamic_linker="$host_os dld.sl"
10336 shlibpath_var=SHLIB_PATH
10337 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10339 soname_spec='${libname}${release}${shared_ext}$major'
10340 ;;
10341 esac
10342 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10343 postinstall_cmds='chmod 555 $lib'
10344 # or fails outright, so override atomically:
10345 install_override_mode=555
10346 ;;
10347
10348 interix[3-9]*)
10349 version_type=linux
10350 need_lib_prefix=no
10351 need_version=no
10352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10353 soname_spec='${libname}${release}${shared_ext}$major'
10354 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10355 shlibpath_var=LD_LIBRARY_PATH
10356 shlibpath_overrides_runpath=no
10357 hardcode_into_libs=yes
10358 ;;
10359
10360 irix5* | irix6* | nonstopux*)
10361 case $host_os in
10362 nonstopux*) version_type=nonstopux ;;
10363 *)
10364 if test "$lt_cv_prog_gnu_ld" = yes; then
10365 version_type=linux
10366 else
10367 version_type=irix
10368 fi ;;
10369 esac
10370 need_lib_prefix=no
10371 need_version=no
10372 soname_spec='${libname}${release}${shared_ext}$major'
10373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10374 case $host_os in
10375 irix5* | nonstopux*)
10376 libsuff= shlibsuff=
10377 ;;
10378 *)
10379 case $LD in # libtool.m4 will add one of these switches to LD
10380 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10381 libsuff= shlibsuff= libmagic=32-bit;;
10382 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10383 libsuff=32 shlibsuff=N32 libmagic=N32;;
10384 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10385 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10386 *) libsuff= shlibsuff= libmagic=never-match;;
10387 esac
10388 ;;
10389 esac
10390 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10391 shlibpath_overrides_runpath=no
10392 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10393 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10394 hardcode_into_libs=yes
10395 ;;
10396
10397 # No shared lib support for Linux oldld, aout, or coff.
10398 linux*oldld* | linux*aout* | linux*coff*)
10399 dynamic_linker=no
10400 ;;
10401
10402 # This must be Linux ELF.
10403 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10404 version_type=linux
10405 need_lib_prefix=no
10406 need_version=no
10407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10408 soname_spec='${libname}${release}${shared_ext}$major'
10409 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10410 shlibpath_var=LD_LIBRARY_PATH
10411 shlibpath_overrides_runpath=no
10412
10413 # Some binutils ld are patched to set DT_RUNPATH
10414 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10415 $as_echo_n "(cached) " >&6
10416 else
10417 lt_cv_shlibpath_overrides_runpath=no
10418 save_LDFLAGS=$LDFLAGS
10419 save_libdir=$libdir
10420 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10421 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10423 /* end confdefs.h. */
10424
10425 int
10426 main ()
10427 {
10428
10429 ;
10430 return 0;
10431 }
10432 _ACEOF
10433 if ac_fn_c_try_link "$LINENO"; then :
10434 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10435 lt_cv_shlibpath_overrides_runpath=yes
10436 fi
10437 fi
10438 rm -f core conftest.err conftest.$ac_objext \
10439 conftest$ac_exeext conftest.$ac_ext
10440 LDFLAGS=$save_LDFLAGS
10441 libdir=$save_libdir
10442
10443 fi
10444
10445 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10446
10447 # This implies no fast_install, which is unacceptable.
10448 # Some rework will be needed to allow for fast_install
10449 # before this can be enabled.
10450 hardcode_into_libs=yes
10451
10452 # Append ld.so.conf contents to the search path
10453 if test -f /etc/ld.so.conf; then
10454 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10455 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10456 fi
10457
10458 # We used to test for /lib/ld.so.1 and disable shared libraries on
10459 # powerpc, because MkLinux only supported shared libraries with the
10460 # GNU dynamic linker. Since this was broken with cross compilers,
10461 # most powerpc-linux boxes support dynamic linking these days and
10462 # people can always --disable-shared, the test was removed, and we
10463 # assume the GNU/Linux dynamic linker is in use.
10464 dynamic_linker='GNU/Linux ld.so'
10465 ;;
10466
10467 netbsd*)
10468 version_type=sunos
10469 need_lib_prefix=no
10470 need_version=no
10471 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10473 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10474 dynamic_linker='NetBSD (a.out) ld.so'
10475 else
10476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10477 soname_spec='${libname}${release}${shared_ext}$major'
10478 dynamic_linker='NetBSD ld.elf_so'
10479 fi
10480 shlibpath_var=LD_LIBRARY_PATH
10481 shlibpath_overrides_runpath=yes
10482 hardcode_into_libs=yes
10483 ;;
10484
10485 newsos6)
10486 version_type=linux
10487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10488 shlibpath_var=LD_LIBRARY_PATH
10489 shlibpath_overrides_runpath=yes
10490 ;;
10491
10492 *nto* | *qnx*)
10493 version_type=qnx
10494 need_lib_prefix=no
10495 need_version=no
10496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10497 soname_spec='${libname}${release}${shared_ext}$major'
10498 shlibpath_var=LD_LIBRARY_PATH
10499 shlibpath_overrides_runpath=no
10500 hardcode_into_libs=yes
10501 dynamic_linker='ldqnx.so'
10502 ;;
10503
10504 openbsd*)
10505 version_type=sunos
10506 sys_lib_dlsearch_path_spec="/usr/lib"
10507 need_lib_prefix=no
10508 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10509 case $host_os in
10510 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10511 *) need_version=no ;;
10512 esac
10513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10514 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10515 shlibpath_var=LD_LIBRARY_PATH
10516 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10517 case $host_os in
10518 openbsd2.[89] | openbsd2.[89].*)
10519 shlibpath_overrides_runpath=no
10520 ;;
10521 *)
10522 shlibpath_overrides_runpath=yes
10523 ;;
10524 esac
10525 else
10526 shlibpath_overrides_runpath=yes
10527 fi
10528 ;;
10529
10530 os2*)
10531 libname_spec='$name'
10532 shrext_cmds=".dll"
10533 need_lib_prefix=no
10534 library_names_spec='$libname${shared_ext} $libname.a'
10535 dynamic_linker='OS/2 ld.exe'
10536 shlibpath_var=LIBPATH
10537 ;;
10538
10539 osf3* | osf4* | osf5*)
10540 version_type=osf
10541 need_lib_prefix=no
10542 need_version=no
10543 soname_spec='${libname}${release}${shared_ext}$major'
10544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10545 shlibpath_var=LD_LIBRARY_PATH
10546 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10547 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10548 ;;
10549
10550 rdos*)
10551 dynamic_linker=no
10552 ;;
10553
10554 solaris*)
10555 version_type=linux
10556 need_lib_prefix=no
10557 need_version=no
10558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10559 soname_spec='${libname}${release}${shared_ext}$major'
10560 shlibpath_var=LD_LIBRARY_PATH
10561 shlibpath_overrides_runpath=yes
10562 hardcode_into_libs=yes
10563 # ldd complains unless libraries are executable
10564 postinstall_cmds='chmod +x $lib'
10565 ;;
10566
10567 sunos4*)
10568 version_type=sunos
10569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10570 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10571 shlibpath_var=LD_LIBRARY_PATH
10572 shlibpath_overrides_runpath=yes
10573 if test "$with_gnu_ld" = yes; then
10574 need_lib_prefix=no
10575 fi
10576 need_version=yes
10577 ;;
10578
10579 sysv4 | sysv4.3*)
10580 version_type=linux
10581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10582 soname_spec='${libname}${release}${shared_ext}$major'
10583 shlibpath_var=LD_LIBRARY_PATH
10584 case $host_vendor in
10585 sni)
10586 shlibpath_overrides_runpath=no
10587 need_lib_prefix=no
10588 runpath_var=LD_RUN_PATH
10589 ;;
10590 siemens)
10591 need_lib_prefix=no
10592 ;;
10593 motorola)
10594 need_lib_prefix=no
10595 need_version=no
10596 shlibpath_overrides_runpath=no
10597 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10598 ;;
10599 esac
10600 ;;
10601
10602 sysv4*MP*)
10603 if test -d /usr/nec ;then
10604 version_type=linux
10605 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10606 soname_spec='$libname${shared_ext}.$major'
10607 shlibpath_var=LD_LIBRARY_PATH
10608 fi
10609 ;;
10610
10611 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10612 version_type=freebsd-elf
10613 need_lib_prefix=no
10614 need_version=no
10615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10616 soname_spec='${libname}${release}${shared_ext}$major'
10617 shlibpath_var=LD_LIBRARY_PATH
10618 shlibpath_overrides_runpath=yes
10619 hardcode_into_libs=yes
10620 if test "$with_gnu_ld" = yes; then
10621 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10622 else
10623 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10624 case $host_os in
10625 sco3.2v5*)
10626 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10627 ;;
10628 esac
10629 fi
10630 sys_lib_dlsearch_path_spec='/usr/lib'
10631 ;;
10632
10633 tpf*)
10634 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10635 version_type=linux
10636 need_lib_prefix=no
10637 need_version=no
10638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10639 shlibpath_var=LD_LIBRARY_PATH
10640 shlibpath_overrides_runpath=no
10641 hardcode_into_libs=yes
10642 ;;
10643
10644 uts4*)
10645 version_type=linux
10646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10647 soname_spec='${libname}${release}${shared_ext}$major'
10648 shlibpath_var=LD_LIBRARY_PATH
10649 ;;
10650
10651 *)
10652 dynamic_linker=no
10653 ;;
10654 esac
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10656 $as_echo "$dynamic_linker" >&6; }
10657 test "$dynamic_linker" = no && can_build_shared=no
10658
10659 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10660 if test "$GCC" = yes; then
10661 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10662 fi
10663
10664 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10665 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10666 fi
10667 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10668 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10669 fi
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10763 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10764 hardcode_action=
10765 if test -n "$hardcode_libdir_flag_spec" ||
10766 test -n "$runpath_var" ||
10767 test "X$hardcode_automatic" = "Xyes" ; then
10768
10769 # We can hardcode non-existent directories.
10770 if test "$hardcode_direct" != no &&
10771 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10772 # have to relink, otherwise we might link with an installed library
10773 # when we should be linking with a yet-to-be-installed one
10774 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10775 test "$hardcode_minus_L" != no; then
10776 # Linking always hardcodes the temporary library directory.
10777 hardcode_action=relink
10778 else
10779 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10780 hardcode_action=immediate
10781 fi
10782 else
10783 # We cannot hardcode anything, or else we can only hardcode existing
10784 # directories.
10785 hardcode_action=unsupported
10786 fi
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10788 $as_echo "$hardcode_action" >&6; }
10789
10790 if test "$hardcode_action" = relink ||
10791 test "$inherit_rpath" = yes; then
10792 # Fast installation is not supported
10793 enable_fast_install=no
10794 elif test "$shlibpath_overrides_runpath" = yes ||
10795 test "$enable_shared" = no; then
10796 # Fast installation is not necessary
10797 enable_fast_install=needless
10798 fi
10799
10800
10801
10802
10803
10804
10805 if test "x$enable_dlopen" != xyes; then
10806 enable_dlopen=unknown
10807 enable_dlopen_self=unknown
10808 enable_dlopen_self_static=unknown
10809 else
10810 lt_cv_dlopen=no
10811 lt_cv_dlopen_libs=
10812
10813 case $host_os in
10814 beos*)
10815 lt_cv_dlopen="load_add_on"
10816 lt_cv_dlopen_libs=
10817 lt_cv_dlopen_self=yes
10818 ;;
10819
10820 mingw* | pw32* | cegcc*)
10821 lt_cv_dlopen="LoadLibrary"
10822 lt_cv_dlopen_libs=
10823 ;;
10824
10825 cygwin*)
10826 lt_cv_dlopen="dlopen"
10827 lt_cv_dlopen_libs=
10828 ;;
10829
10830 darwin*)
10831 # if libdl is installed we need to link against it
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10833 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10834 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10835 $as_echo_n "(cached) " >&6
10836 else
10837 ac_check_lib_save_LIBS=$LIBS
10838 LIBS="-ldl $LIBS"
10839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10840 /* end confdefs.h. */
10841
10842 /* Override any GCC internal prototype to avoid an error.
10843 Use char because int might match the return type of a GCC
10844 builtin and then its argument prototype would still apply. */
10845 #ifdef __cplusplus
10846 extern "C"
10847 #endif
10848 char dlopen ();
10849 int
10850 main ()
10851 {
10852 return dlopen ();
10853 ;
10854 return 0;
10855 }
10856 _ACEOF
10857 if ac_fn_c_try_link "$LINENO"; then :
10858 ac_cv_lib_dl_dlopen=yes
10859 else
10860 ac_cv_lib_dl_dlopen=no
10861 fi
10862 rm -f core conftest.err conftest.$ac_objext \
10863 conftest$ac_exeext conftest.$ac_ext
10864 LIBS=$ac_check_lib_save_LIBS
10865 fi
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10867 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10868 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10869 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10870 else
10871
10872 lt_cv_dlopen="dyld"
10873 lt_cv_dlopen_libs=
10874 lt_cv_dlopen_self=yes
10875
10876 fi
10877
10878 ;;
10879
10880 *)
10881 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10882 if test "x$ac_cv_func_shl_load" = x""yes; then :
10883 lt_cv_dlopen="shl_load"
10884 else
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10886 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10887 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10888 $as_echo_n "(cached) " >&6
10889 else
10890 ac_check_lib_save_LIBS=$LIBS
10891 LIBS="-ldld $LIBS"
10892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10893 /* end confdefs.h. */
10894
10895 /* Override any GCC internal prototype to avoid an error.
10896 Use char because int might match the return type of a GCC
10897 builtin and then its argument prototype would still apply. */
10898 #ifdef __cplusplus
10899 extern "C"
10900 #endif
10901 char shl_load ();
10902 int
10903 main ()
10904 {
10905 return shl_load ();
10906 ;
10907 return 0;
10908 }
10909 _ACEOF
10910 if ac_fn_c_try_link "$LINENO"; then :
10911 ac_cv_lib_dld_shl_load=yes
10912 else
10913 ac_cv_lib_dld_shl_load=no
10914 fi
10915 rm -f core conftest.err conftest.$ac_objext \
10916 conftest$ac_exeext conftest.$ac_ext
10917 LIBS=$ac_check_lib_save_LIBS
10918 fi
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10920 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10921 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10922 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10923 else
10924 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10925 if test "x$ac_cv_func_dlopen" = x""yes; then :
10926 lt_cv_dlopen="dlopen"
10927 else
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10929 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10930 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10931 $as_echo_n "(cached) " >&6
10932 else
10933 ac_check_lib_save_LIBS=$LIBS
10934 LIBS="-ldl $LIBS"
10935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10936 /* end confdefs.h. */
10937
10938 /* Override any GCC internal prototype to avoid an error.
10939 Use char because int might match the return type of a GCC
10940 builtin and then its argument prototype would still apply. */
10941 #ifdef __cplusplus
10942 extern "C"
10943 #endif
10944 char dlopen ();
10945 int
10946 main ()
10947 {
10948 return dlopen ();
10949 ;
10950 return 0;
10951 }
10952 _ACEOF
10953 if ac_fn_c_try_link "$LINENO"; then :
10954 ac_cv_lib_dl_dlopen=yes
10955 else
10956 ac_cv_lib_dl_dlopen=no
10957 fi
10958 rm -f core conftest.err conftest.$ac_objext \
10959 conftest$ac_exeext conftest.$ac_ext
10960 LIBS=$ac_check_lib_save_LIBS
10961 fi
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10963 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10964 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10965 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10966 else
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10968 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10969 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10970 $as_echo_n "(cached) " >&6
10971 else
10972 ac_check_lib_save_LIBS=$LIBS
10973 LIBS="-lsvld $LIBS"
10974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10975 /* end confdefs.h. */
10976
10977 /* Override any GCC internal prototype to avoid an error.
10978 Use char because int might match the return type of a GCC
10979 builtin and then its argument prototype would still apply. */
10980 #ifdef __cplusplus
10981 extern "C"
10982 #endif
10983 char dlopen ();
10984 int
10985 main ()
10986 {
10987 return dlopen ();
10988 ;
10989 return 0;
10990 }
10991 _ACEOF
10992 if ac_fn_c_try_link "$LINENO"; then :
10993 ac_cv_lib_svld_dlopen=yes
10994 else
10995 ac_cv_lib_svld_dlopen=no
10996 fi
10997 rm -f core conftest.err conftest.$ac_objext \
10998 conftest$ac_exeext conftest.$ac_ext
10999 LIBS=$ac_check_lib_save_LIBS
11000 fi
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11002 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11003 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11004 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11005 else
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11007 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11008 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11009 $as_echo_n "(cached) " >&6
11010 else
11011 ac_check_lib_save_LIBS=$LIBS
11012 LIBS="-ldld $LIBS"
11013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11014 /* end confdefs.h. */
11015
11016 /* Override any GCC internal prototype to avoid an error.
11017 Use char because int might match the return type of a GCC
11018 builtin and then its argument prototype would still apply. */
11019 #ifdef __cplusplus
11020 extern "C"
11021 #endif
11022 char dld_link ();
11023 int
11024 main ()
11025 {
11026 return dld_link ();
11027 ;
11028 return 0;
11029 }
11030 _ACEOF
11031 if ac_fn_c_try_link "$LINENO"; then :
11032 ac_cv_lib_dld_dld_link=yes
11033 else
11034 ac_cv_lib_dld_dld_link=no
11035 fi
11036 rm -f core conftest.err conftest.$ac_objext \
11037 conftest$ac_exeext conftest.$ac_ext
11038 LIBS=$ac_check_lib_save_LIBS
11039 fi
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11041 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11042 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11043 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11044 fi
11045
11046
11047 fi
11048
11049
11050 fi
11051
11052
11053 fi
11054
11055
11056 fi
11057
11058
11059 fi
11060
11061 ;;
11062 esac
11063
11064 if test "x$lt_cv_dlopen" != xno; then
11065 enable_dlopen=yes
11066 else
11067 enable_dlopen=no
11068 fi
11069
11070 case $lt_cv_dlopen in
11071 dlopen)
11072 save_CPPFLAGS="$CPPFLAGS"
11073 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11074
11075 save_LDFLAGS="$LDFLAGS"
11076 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11077
11078 save_LIBS="$LIBS"
11079 LIBS="$lt_cv_dlopen_libs $LIBS"
11080
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11082 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11083 if test "${lt_cv_dlopen_self+set}" = set; then :
11084 $as_echo_n "(cached) " >&6
11085 else
11086 if test "$cross_compiling" = yes; then :
11087 lt_cv_dlopen_self=cross
11088 else
11089 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11090 lt_status=$lt_dlunknown
11091 cat > conftest.$ac_ext <<_LT_EOF
11092 #line 11092 "configure"
11093 #include "confdefs.h"
11094
11095 #if HAVE_DLFCN_H
11096 #include <dlfcn.h>
11097 #endif
11098
11099 #include <stdio.h>
11100
11101 #ifdef RTLD_GLOBAL
11102 # define LT_DLGLOBAL RTLD_GLOBAL
11103 #else
11104 # ifdef DL_GLOBAL
11105 # define LT_DLGLOBAL DL_GLOBAL
11106 # else
11107 # define LT_DLGLOBAL 0
11108 # endif
11109 #endif
11110
11111 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11112 find out it does not work in some platform. */
11113 #ifndef LT_DLLAZY_OR_NOW
11114 # ifdef RTLD_LAZY
11115 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11116 # else
11117 # ifdef DL_LAZY
11118 # define LT_DLLAZY_OR_NOW DL_LAZY
11119 # else
11120 # ifdef RTLD_NOW
11121 # define LT_DLLAZY_OR_NOW RTLD_NOW
11122 # else
11123 # ifdef DL_NOW
11124 # define LT_DLLAZY_OR_NOW DL_NOW
11125 # else
11126 # define LT_DLLAZY_OR_NOW 0
11127 # endif
11128 # endif
11129 # endif
11130 # endif
11131 #endif
11132
11133 /* When -fvisbility=hidden is used, assume the code has been annotated
11134 correspondingly for the symbols needed. */
11135 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11136 void fnord () __attribute__((visibility("default")));
11137 #endif
11138
11139 void fnord () { int i=42; }
11140 int main ()
11141 {
11142 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11143 int status = $lt_dlunknown;
11144
11145 if (self)
11146 {
11147 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11148 else
11149 {
11150 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11151 else puts (dlerror ());
11152 }
11153 /* dlclose (self); */
11154 }
11155 else
11156 puts (dlerror ());
11157
11158 return status;
11159 }
11160 _LT_EOF
11161 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11162 (eval $ac_link) 2>&5
11163 ac_status=$?
11164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11165 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11166 (./conftest; exit; ) >&5 2>/dev/null
11167 lt_status=$?
11168 case x$lt_status in
11169 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11170 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11171 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11172 esac
11173 else :
11174 # compilation failed
11175 lt_cv_dlopen_self=no
11176 fi
11177 fi
11178 rm -fr conftest*
11179
11180
11181 fi
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11183 $as_echo "$lt_cv_dlopen_self" >&6; }
11184
11185 if test "x$lt_cv_dlopen_self" = xyes; then
11186 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11188 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11189 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11190 $as_echo_n "(cached) " >&6
11191 else
11192 if test "$cross_compiling" = yes; then :
11193 lt_cv_dlopen_self_static=cross
11194 else
11195 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11196 lt_status=$lt_dlunknown
11197 cat > conftest.$ac_ext <<_LT_EOF
11198 #line 11198 "configure"
11199 #include "confdefs.h"
11200
11201 #if HAVE_DLFCN_H
11202 #include <dlfcn.h>
11203 #endif
11204
11205 #include <stdio.h>
11206
11207 #ifdef RTLD_GLOBAL
11208 # define LT_DLGLOBAL RTLD_GLOBAL
11209 #else
11210 # ifdef DL_GLOBAL
11211 # define LT_DLGLOBAL DL_GLOBAL
11212 # else
11213 # define LT_DLGLOBAL 0
11214 # endif
11215 #endif
11216
11217 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11218 find out it does not work in some platform. */
11219 #ifndef LT_DLLAZY_OR_NOW
11220 # ifdef RTLD_LAZY
11221 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11222 # else
11223 # ifdef DL_LAZY
11224 # define LT_DLLAZY_OR_NOW DL_LAZY
11225 # else
11226 # ifdef RTLD_NOW
11227 # define LT_DLLAZY_OR_NOW RTLD_NOW
11228 # else
11229 # ifdef DL_NOW
11230 # define LT_DLLAZY_OR_NOW DL_NOW
11231 # else
11232 # define LT_DLLAZY_OR_NOW 0
11233 # endif
11234 # endif
11235 # endif
11236 # endif
11237 #endif
11238
11239 /* When -fvisbility=hidden is used, assume the code has been annotated
11240 correspondingly for the symbols needed. */
11241 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11242 void fnord () __attribute__((visibility("default")));
11243 #endif
11244
11245 void fnord () { int i=42; }
11246 int main ()
11247 {
11248 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11249 int status = $lt_dlunknown;
11250
11251 if (self)
11252 {
11253 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11254 else
11255 {
11256 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11257 else puts (dlerror ());
11258 }
11259 /* dlclose (self); */
11260 }
11261 else
11262 puts (dlerror ());
11263
11264 return status;
11265 }
11266 _LT_EOF
11267 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11268 (eval $ac_link) 2>&5
11269 ac_status=$?
11270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11271 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11272 (./conftest; exit; ) >&5 2>/dev/null
11273 lt_status=$?
11274 case x$lt_status in
11275 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11276 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11277 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11278 esac
11279 else :
11280 # compilation failed
11281 lt_cv_dlopen_self_static=no
11282 fi
11283 fi
11284 rm -fr conftest*
11285
11286
11287 fi
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11289 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11290 fi
11291
11292 CPPFLAGS="$save_CPPFLAGS"
11293 LDFLAGS="$save_LDFLAGS"
11294 LIBS="$save_LIBS"
11295 ;;
11296 esac
11297
11298 case $lt_cv_dlopen_self in
11299 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11300 *) enable_dlopen_self=unknown ;;
11301 esac
11302
11303 case $lt_cv_dlopen_self_static in
11304 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11305 *) enable_dlopen_self_static=unknown ;;
11306 esac
11307 fi
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325 striplib=
11326 old_striplib=
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11328 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11329 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11330 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11331 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11333 $as_echo "yes" >&6; }
11334 else
11335 # FIXME - insert some real tests, host_os isn't really good enough
11336 case $host_os in
11337 darwin*)
11338 if test -n "$STRIP" ; then
11339 striplib="$STRIP -x"
11340 old_striplib="$STRIP -S"
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11342 $as_echo "yes" >&6; }
11343 else
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11345 $as_echo "no" >&6; }
11346 fi
11347 ;;
11348 *)
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11350 $as_echo "no" >&6; }
11351 ;;
11352 esac
11353 fi
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366 # Report which library types will actually be built
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11368 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11370 $as_echo "$can_build_shared" >&6; }
11371
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11373 $as_echo_n "checking whether to build shared libraries... " >&6; }
11374 test "$can_build_shared" = "no" && enable_shared=no
11375
11376 # On AIX, shared libraries and static libraries use the same namespace, and
11377 # are all built from PIC.
11378 case $host_os in
11379 aix3*)
11380 test "$enable_shared" = yes && enable_static=no
11381 if test -n "$RANLIB"; then
11382 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11383 postinstall_cmds='$RANLIB $lib'
11384 fi
11385 ;;
11386
11387 aix[4-9]*)
11388 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11389 test "$enable_shared" = yes && enable_static=no
11390 fi
11391 ;;
11392 esac
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11394 $as_echo "$enable_shared" >&6; }
11395
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11397 $as_echo_n "checking whether to build static libraries... " >&6; }
11398 # Make sure either enable_shared or enable_static is yes.
11399 test "$enable_shared" = yes || enable_static=yes
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11401 $as_echo "$enable_static" >&6; }
11402
11403
11404
11405
11406 fi
11407 ac_ext=c
11408 ac_cpp='$CPP $CPPFLAGS'
11409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11412
11413 CC="$lt_save_CC"
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427 ac_config_commands="$ac_config_commands libtool"
11428
11429
11430
11431
11432 # Only expand once:
11433
11434
11435
11436
11437
11438
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11440 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11441 # Check whether --enable-maintainer-mode was given.
11442 if test "${enable_maintainer_mode+set}" = set; then :
11443 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11444 else
11445 USE_MAINTAINER_MODE=no
11446 fi
11447
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11449 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11450 if test $USE_MAINTAINER_MODE = yes; then
11451 MAINTAINER_MODE_TRUE=
11452 MAINTAINER_MODE_FALSE='#'
11453 else
11454 MAINTAINER_MODE_TRUE='#'
11455 MAINTAINER_MODE_FALSE=
11456 fi
11457
11458 MAINT=$MAINTAINER_MODE_TRUE
11459
11460
11461
11462 # Create a spec file, so that compile/link tests don't fail
11463 test -f libgfortran.spec || touch libgfortran.spec
11464 FCFLAGS="$FCFLAGS -L."
11465
11466 # We need gfortran to compile parts of the library
11467 # We can't use AC_PROG_FC because it expects a fully working gfortran.
11468 #AC_PROG_FC(gfortran)
11469 case `echo $GFORTRAN` in
11470 -* | no* )
11471 FC=no ;;
11472 *)
11473 set dummy $GFORTRAN; ac_word=$2
11474 if test -x "$ac_word"; then
11475 FC="$GFORTRAN"
11476 else
11477 FC=no
11478 fi ;;
11479 esac
11480 ac_ext=${ac_fc_srcext-f}
11481 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11482 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11483 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11484 if test -n "$ac_tool_prefix"; then
11485 for ac_prog in gfortran
11486 do
11487 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11488 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11490 $as_echo_n "checking for $ac_word... " >&6; }
11491 if test "${ac_cv_prog_FC+set}" = set; then :
11492 $as_echo_n "(cached) " >&6
11493 else
11494 if test -n "$FC"; then
11495 ac_cv_prog_FC="$FC" # Let the user override the test.
11496 else
11497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11498 for as_dir in $PATH
11499 do
11500 IFS=$as_save_IFS
11501 test -z "$as_dir" && as_dir=.
11502 for ac_exec_ext in '' $ac_executable_extensions; do
11503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11504 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
11505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11506 break 2
11507 fi
11508 done
11509 done
11510 IFS=$as_save_IFS
11511
11512 fi
11513 fi
11514 FC=$ac_cv_prog_FC
11515 if test -n "$FC"; then
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
11517 $as_echo "$FC" >&6; }
11518 else
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11520 $as_echo "no" >&6; }
11521 fi
11522
11523
11524 test -n "$FC" && break
11525 done
11526 fi
11527 if test -z "$FC"; then
11528 ac_ct_FC=$FC
11529 for ac_prog in gfortran
11530 do
11531 # Extract the first word of "$ac_prog", so it can be a program name with args.
11532 set dummy $ac_prog; ac_word=$2
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11534 $as_echo_n "checking for $ac_word... " >&6; }
11535 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
11536 $as_echo_n "(cached) " >&6
11537 else
11538 if test -n "$ac_ct_FC"; then
11539 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
11540 else
11541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11542 for as_dir in $PATH
11543 do
11544 IFS=$as_save_IFS
11545 test -z "$as_dir" && as_dir=.
11546 for ac_exec_ext in '' $ac_executable_extensions; do
11547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11548 ac_cv_prog_ac_ct_FC="$ac_prog"
11549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11550 break 2
11551 fi
11552 done
11553 done
11554 IFS=$as_save_IFS
11555
11556 fi
11557 fi
11558 ac_ct_FC=$ac_cv_prog_ac_ct_FC
11559 if test -n "$ac_ct_FC"; then
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
11561 $as_echo "$ac_ct_FC" >&6; }
11562 else
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11564 $as_echo "no" >&6; }
11565 fi
11566
11567
11568 test -n "$ac_ct_FC" && break
11569 done
11570
11571 if test "x$ac_ct_FC" = x; then
11572 FC=""
11573 else
11574 case $cross_compiling:$ac_tool_warned in
11575 yes:)
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11577 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11578 ac_tool_warned=yes ;;
11579 esac
11580 FC=$ac_ct_FC
11581 fi
11582 fi
11583
11584
11585 # Provide some information about the compiler.
11586 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
11587 set X $ac_compile
11588 ac_compiler=$2
11589 for ac_option in --version -v -V -qversion; do
11590 { { ac_try="$ac_compiler $ac_option >&5"
11591 case "(($ac_try" in
11592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11593 *) ac_try_echo=$ac_try;;
11594 esac
11595 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11596 $as_echo "$ac_try_echo"; } >&5
11597 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11598 ac_status=$?
11599 if test -s conftest.err; then
11600 sed '10a\
11601 ... rest of stderr output deleted ...
11602 10q' conftest.err >conftest.er1
11603 cat conftest.er1 >&5
11604 rm -f conftest.er1 conftest.err
11605 fi
11606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11607 test $ac_status = 0; }
11608 done
11609 rm -f a.out
11610
11611 # If we don't use `.F' as extension, the preprocessor is not run on the
11612 # input file. (Note that this only needs to work for GNU compilers.)
11613 ac_save_ext=$ac_ext
11614 ac_ext=F
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
11616 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
11617 if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
11618 $as_echo_n "(cached) " >&6
11619 else
11620 cat > conftest.$ac_ext <<_ACEOF
11621 program main
11622 #ifndef __GNUC__
11623 choke me
11624 #endif
11625
11626 end
11627 _ACEOF
11628 if ac_fn_fc_try_compile "$LINENO"; then :
11629 ac_compiler_gnu=yes
11630 else
11631 ac_compiler_gnu=no
11632 fi
11633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11634 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
11635
11636 fi
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
11638 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
11639 ac_ext=$ac_save_ext
11640 ac_test_FCFLAGS=${FCFLAGS+set}
11641 ac_save_FCFLAGS=$FCFLAGS
11642 FCFLAGS=
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
11644 $as_echo_n "checking whether $FC accepts -g... " >&6; }
11645 if test "${ac_cv_prog_fc_g+set}" = set; then :
11646 $as_echo_n "(cached) " >&6
11647 else
11648 FCFLAGS=-g
11649 cat > conftest.$ac_ext <<_ACEOF
11650 program main
11651
11652 end
11653 _ACEOF
11654 if ac_fn_fc_try_compile "$LINENO"; then :
11655 ac_cv_prog_fc_g=yes
11656 else
11657 ac_cv_prog_fc_g=no
11658 fi
11659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11660
11661 fi
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
11663 $as_echo "$ac_cv_prog_fc_g" >&6; }
11664 if test "$ac_test_FCFLAGS" = set; then
11665 FCFLAGS=$ac_save_FCFLAGS
11666 elif test $ac_cv_prog_fc_g = yes; then
11667 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11668 FCFLAGS="-g -O2"
11669 else
11670 FCFLAGS="-g"
11671 fi
11672 else
11673 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11674 FCFLAGS="-O2"
11675 else
11676 FCFLAGS=
11677 fi
11678 fi
11679
11680 ac_ext=c
11681 ac_cpp='$CPP $CPPFLAGS'
11682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11685
11686 ac_ext=${ac_fc_srcext-f}
11687 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11688 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11689 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11690
11691
11692 if test -z "$FC" || test "X$FC" = "Xno"; then
11693 _lt_disable_FC=yes
11694 fi
11695
11696 archive_cmds_need_lc_FC=no
11697 allow_undefined_flag_FC=
11698 always_export_symbols_FC=no
11699 archive_expsym_cmds_FC=
11700 export_dynamic_flag_spec_FC=
11701 hardcode_direct_FC=no
11702 hardcode_direct_absolute_FC=no
11703 hardcode_libdir_flag_spec_FC=
11704 hardcode_libdir_flag_spec_ld_FC=
11705 hardcode_libdir_separator_FC=
11706 hardcode_minus_L_FC=no
11707 hardcode_automatic_FC=no
11708 inherit_rpath_FC=no
11709 module_cmds_FC=
11710 module_expsym_cmds_FC=
11711 link_all_deplibs_FC=unknown
11712 old_archive_cmds_FC=$old_archive_cmds
11713 reload_flag_FC=$reload_flag
11714 reload_cmds_FC=$reload_cmds
11715 no_undefined_flag_FC=
11716 whole_archive_flag_spec_FC=
11717 enable_shared_with_static_runtimes_FC=no
11718
11719 # Source file extension for fc test sources.
11720 ac_ext=${ac_fc_srcext-f}
11721
11722 # Object file extension for compiled fc test sources.
11723 objext=o
11724 objext_FC=$objext
11725
11726 # No sense in running all these tests if we already determined that
11727 # the FC compiler isn't working. Some variables (like enable_shared)
11728 # are currently assumed to apply to all compilers on this platform,
11729 # and will be corrupted by setting them based on a non-working compiler.
11730 if test "$_lt_disable_FC" != yes; then
11731 # Code to be used in simple compile tests
11732 lt_simple_compile_test_code="\
11733 subroutine t
11734 return
11735 end
11736 "
11737
11738 # Code to be used in simple link tests
11739 lt_simple_link_test_code="\
11740 program t
11741 end
11742 "
11743
11744 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11745
11746
11747
11748
11749
11750
11751 # If no C compiler was specified, use CC.
11752 LTCC=${LTCC-"$CC"}
11753
11754 # If no C compiler flags were specified, use CFLAGS.
11755 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11756
11757 # Allow CC to be a program name with arguments.
11758 compiler=$CC
11759
11760
11761 # save warnings/boilerplate of simple test code
11762 ac_outfile=conftest.$ac_objext
11763 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11764 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11765 _lt_compiler_boilerplate=`cat conftest.err`
11766 $RM conftest*
11767
11768 ac_outfile=conftest.$ac_objext
11769 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11770 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11771 _lt_linker_boilerplate=`cat conftest.err`
11772 $RM -r conftest*
11773
11774
11775 # Allow CC to be a program name with arguments.
11776 lt_save_CC="$CC"
11777 lt_save_GCC=$GCC
11778 CC=${FC-"f95"}
11779 compiler=$CC
11780 GCC=$ac_cv_fc_compiler_gnu
11781
11782 compiler_FC=$CC
11783 for cc_temp in $compiler""; do
11784 case $cc_temp in
11785 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11786 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11787 \-*) ;;
11788 *) break;;
11789 esac
11790 done
11791 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11792
11793
11794 if test -n "$compiler"; then
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11796 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11798 $as_echo "$can_build_shared" >&6; }
11799
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11801 $as_echo_n "checking whether to build shared libraries... " >&6; }
11802 test "$can_build_shared" = "no" && enable_shared=no
11803
11804 # On AIX, shared libraries and static libraries use the same namespace, and
11805 # are all built from PIC.
11806 case $host_os in
11807 aix3*)
11808 test "$enable_shared" = yes && enable_static=no
11809 if test -n "$RANLIB"; then
11810 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11811 postinstall_cmds='$RANLIB $lib'
11812 fi
11813 ;;
11814 aix[4-9]*)
11815 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11816 test "$enable_shared" = yes && enable_static=no
11817 fi
11818 ;;
11819 esac
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11821 $as_echo "$enable_shared" >&6; }
11822
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11824 $as_echo_n "checking whether to build static libraries... " >&6; }
11825 # Make sure either enable_shared or enable_static is yes.
11826 test "$enable_shared" = yes || enable_static=yes
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11828 $as_echo "$enable_static" >&6; }
11829
11830 GCC_FC="$ac_cv_fc_compiler_gnu"
11831 LD_FC="$LD"
11832
11833 ## CAVEAT EMPTOR:
11834 ## There is no encapsulation within the following macros, do not change
11835 ## the running order or otherwise move them around unless you know exactly
11836 ## what you are doing...
11837 # Dependencies to place before and after the object being linked:
11838 predep_objects_FC=
11839 postdep_objects_FC=
11840 predeps_FC=
11841 postdeps_FC=
11842 compiler_lib_search_path_FC=
11843
11844 cat > conftest.$ac_ext <<_LT_EOF
11845 subroutine foo
11846 implicit none
11847 integer a
11848 a=0
11849 return
11850 end
11851 _LT_EOF
11852
11853 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11854 (eval $ac_compile) 2>&5
11855 ac_status=$?
11856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11857 test $ac_status = 0; }; then
11858 # Parse the compiler output and extract the necessary
11859 # objects, libraries and library flags.
11860
11861 # Sentinel used to keep track of whether or not we are before
11862 # the conftest object file.
11863 pre_test_object_deps_done=no
11864
11865 for p in `eval "$output_verbose_link_cmd"`; do
11866 case $p in
11867
11868 -L* | -R* | -l*)
11869 # Some compilers place space between "-{L,R}" and the path.
11870 # Remove the space.
11871 if test $p = "-L" ||
11872 test $p = "-R"; then
11873 prev=$p
11874 continue
11875 else
11876 prev=
11877 fi
11878
11879 if test "$pre_test_object_deps_done" = no; then
11880 case $p in
11881 -L* | -R*)
11882 # Internal compiler library paths should come after those
11883 # provided the user. The postdeps already come after the
11884 # user supplied libs so there is no need to process them.
11885 if test -z "$compiler_lib_search_path_FC"; then
11886 compiler_lib_search_path_FC="${prev}${p}"
11887 else
11888 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
11889 fi
11890 ;;
11891 # The "-l" case would never come before the object being
11892 # linked, so don't bother handling this case.
11893 esac
11894 else
11895 if test -z "$postdeps_FC"; then
11896 postdeps_FC="${prev}${p}"
11897 else
11898 postdeps_FC="${postdeps_FC} ${prev}${p}"
11899 fi
11900 fi
11901 ;;
11902
11903 *.$objext)
11904 # This assumes that the test object file only shows up
11905 # once in the compiler output.
11906 if test "$p" = "conftest.$objext"; then
11907 pre_test_object_deps_done=yes
11908 continue
11909 fi
11910
11911 if test "$pre_test_object_deps_done" = no; then
11912 if test -z "$predep_objects_FC"; then
11913 predep_objects_FC="$p"
11914 else
11915 predep_objects_FC="$predep_objects_FC $p"
11916 fi
11917 else
11918 if test -z "$postdep_objects_FC"; then
11919 postdep_objects_FC="$p"
11920 else
11921 postdep_objects_FC="$postdep_objects_FC $p"
11922 fi
11923 fi
11924 ;;
11925
11926 *) ;; # Ignore the rest.
11927
11928 esac
11929 done
11930
11931 # Clean up.
11932 rm -f a.out a.exe
11933 else
11934 echo "libtool.m4: error: problem compiling FC test program"
11935 fi
11936
11937 $RM -f confest.$objext
11938
11939 # PORTME: override above test on systems where it is broken
11940
11941
11942 case " $postdeps_FC " in
11943 *" -lc "*) archive_cmds_need_lc_FC=no ;;
11944 esac
11945 compiler_lib_search_dirs_FC=
11946 if test -n "${compiler_lib_search_path_FC}"; then
11947 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
11948 fi
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980 lt_prog_compiler_wl_FC=
11981 lt_prog_compiler_pic_FC=
11982 lt_prog_compiler_static_FC=
11983
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11985 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11986
11987 if test "$GCC" = yes; then
11988 lt_prog_compiler_wl_FC='-Wl,'
11989 lt_prog_compiler_static_FC='-static'
11990
11991 case $host_os in
11992 aix*)
11993 # All AIX code is PIC.
11994 if test "$host_cpu" = ia64; then
11995 # AIX 5 now supports IA64 processor
11996 lt_prog_compiler_static_FC='-Bstatic'
11997 fi
11998 ;;
11999
12000 amigaos*)
12001 case $host_cpu in
12002 powerpc)
12003 # see comment about AmigaOS4 .so support
12004 lt_prog_compiler_pic_FC='-fPIC'
12005 ;;
12006 m68k)
12007 # FIXME: we need at least 68020 code to build shared libraries, but
12008 # adding the `-m68020' flag to GCC prevents building anything better,
12009 # like `-m68040'.
12010 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
12011 ;;
12012 esac
12013 ;;
12014
12015 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12016 # PIC is the default for these OSes.
12017 ;;
12018
12019 mingw* | cygwin* | pw32* | os2* | cegcc*)
12020 # This hack is so that the source file can tell whether it is being
12021 # built for inclusion in a dll (and should export symbols for example).
12022 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12023 # (--disable-auto-import) libraries
12024 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12025 ;;
12026
12027 darwin* | rhapsody*)
12028 # PIC is the default on this platform
12029 # Common symbols not allowed in MH_DYLIB files
12030 lt_prog_compiler_pic_FC='-fno-common'
12031 ;;
12032
12033 haiku*)
12034 # PIC is the default for Haiku.
12035 # The "-static" flag exists, but is broken.
12036 lt_prog_compiler_static_FC=
12037 ;;
12038
12039 hpux*)
12040 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12041 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12042 # sets the default TLS model and affects inlining.
12043 case $host_cpu in
12044 hppa*64*)
12045 # +Z the default
12046 ;;
12047 *)
12048 lt_prog_compiler_pic_FC='-fPIC'
12049 ;;
12050 esac
12051 ;;
12052
12053 interix[3-9]*)
12054 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12055 # Instead, we relocate shared libraries at runtime.
12056 ;;
12057
12058 msdosdjgpp*)
12059 # Just because we use GCC doesn't mean we suddenly get shared libraries
12060 # on systems that don't support them.
12061 lt_prog_compiler_can_build_shared_FC=no
12062 enable_shared=no
12063 ;;
12064
12065 *nto* | *qnx*)
12066 # QNX uses GNU C++, but need to define -shared option too, otherwise
12067 # it will coredump.
12068 lt_prog_compiler_pic_FC='-fPIC -shared'
12069 ;;
12070
12071 sysv4*MP*)
12072 if test -d /usr/nec; then
12073 lt_prog_compiler_pic_FC=-Kconform_pic
12074 fi
12075 ;;
12076
12077 *)
12078 lt_prog_compiler_pic_FC='-fPIC'
12079 ;;
12080 esac
12081
12082 case $cc_basename in
12083 nvcc*) # Cuda Compiler Driver 2.2
12084 lt_prog_compiler_wl_FC='-Xlinker '
12085 lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
12086 ;;
12087 esac
12088 else
12089 # PORTME Check for flag to pass linker flags through the system compiler.
12090 case $host_os in
12091 aix*)
12092 lt_prog_compiler_wl_FC='-Wl,'
12093 if test "$host_cpu" = ia64; then
12094 # AIX 5 now supports IA64 processor
12095 lt_prog_compiler_static_FC='-Bstatic'
12096 else
12097 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
12098 fi
12099 ;;
12100
12101 mingw* | cygwin* | pw32* | os2* | cegcc*)
12102 # This hack is so that the source file can tell whether it is being
12103 # built for inclusion in a dll (and should export symbols for example).
12104 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12105 ;;
12106
12107 hpux9* | hpux10* | hpux11*)
12108 lt_prog_compiler_wl_FC='-Wl,'
12109 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12110 # not for PA HP-UX.
12111 case $host_cpu in
12112 hppa*64*|ia64*)
12113 # +Z the default
12114 ;;
12115 *)
12116 lt_prog_compiler_pic_FC='+Z'
12117 ;;
12118 esac
12119 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12120 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
12121 ;;
12122
12123 irix5* | irix6* | nonstopux*)
12124 lt_prog_compiler_wl_FC='-Wl,'
12125 # PIC (with -KPIC) is the default.
12126 lt_prog_compiler_static_FC='-non_shared'
12127 ;;
12128
12129 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12130 case $cc_basename in
12131 # old Intel for x86_64 which still supported -KPIC.
12132 ecc*)
12133 lt_prog_compiler_wl_FC='-Wl,'
12134 lt_prog_compiler_pic_FC='-KPIC'
12135 lt_prog_compiler_static_FC='-static'
12136 ;;
12137 # icc used to be incompatible with GCC.
12138 # ICC 10 doesn't accept -KPIC any more.
12139 icc* | ifort*)
12140 lt_prog_compiler_wl_FC='-Wl,'
12141 lt_prog_compiler_pic_FC='-fPIC'
12142 lt_prog_compiler_static_FC='-static'
12143 ;;
12144 # Lahey Fortran 8.1.
12145 lf95*)
12146 lt_prog_compiler_wl_FC='-Wl,'
12147 lt_prog_compiler_pic_FC='--shared'
12148 lt_prog_compiler_static_FC='--static'
12149 ;;
12150 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12151 # Portland Group compilers (*not* the Pentium gcc compiler,
12152 # which looks to be a dead project)
12153 lt_prog_compiler_wl_FC='-Wl,'
12154 lt_prog_compiler_pic_FC='-fpic'
12155 lt_prog_compiler_static_FC='-Bstatic'
12156 ;;
12157 ccc*)
12158 lt_prog_compiler_wl_FC='-Wl,'
12159 # All Alpha code is PIC.
12160 lt_prog_compiler_static_FC='-non_shared'
12161 ;;
12162 xl* | bgxl* | bgf* | mpixl*)
12163 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12164 lt_prog_compiler_wl_FC='-Wl,'
12165 lt_prog_compiler_pic_FC='-qpic'
12166 lt_prog_compiler_static_FC='-qstaticlink'
12167 ;;
12168 *)
12169 case `$CC -V 2>&1 | sed 5q` in
12170 *Sun\ F* | *Sun*Fortran*)
12171 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12172 lt_prog_compiler_pic_FC='-KPIC'
12173 lt_prog_compiler_static_FC='-Bstatic'
12174 lt_prog_compiler_wl_FC=''
12175 ;;
12176 *Sun\ C*)
12177 # Sun C 5.9
12178 lt_prog_compiler_pic_FC='-KPIC'
12179 lt_prog_compiler_static_FC='-Bstatic'
12180 lt_prog_compiler_wl_FC='-Wl,'
12181 ;;
12182 esac
12183 ;;
12184 esac
12185 ;;
12186
12187 newsos6)
12188 lt_prog_compiler_pic_FC='-KPIC'
12189 lt_prog_compiler_static_FC='-Bstatic'
12190 ;;
12191
12192 *nto* | *qnx*)
12193 # QNX uses GNU C++, but need to define -shared option too, otherwise
12194 # it will coredump.
12195 lt_prog_compiler_pic_FC='-fPIC -shared'
12196 ;;
12197
12198 osf3* | osf4* | osf5*)
12199 lt_prog_compiler_wl_FC='-Wl,'
12200 # All OSF/1 code is PIC.
12201 lt_prog_compiler_static_FC='-non_shared'
12202 ;;
12203
12204 rdos*)
12205 lt_prog_compiler_static_FC='-non_shared'
12206 ;;
12207
12208 solaris*)
12209 lt_prog_compiler_pic_FC='-KPIC'
12210 lt_prog_compiler_static_FC='-Bstatic'
12211 case $cc_basename in
12212 f77* | f90* | f95*)
12213 lt_prog_compiler_wl_FC='-Qoption ld ';;
12214 *)
12215 lt_prog_compiler_wl_FC='-Wl,';;
12216 esac
12217 ;;
12218
12219 sunos4*)
12220 lt_prog_compiler_wl_FC='-Qoption ld '
12221 lt_prog_compiler_pic_FC='-PIC'
12222 lt_prog_compiler_static_FC='-Bstatic'
12223 ;;
12224
12225 sysv4 | sysv4.2uw2* | sysv4.3*)
12226 lt_prog_compiler_wl_FC='-Wl,'
12227 lt_prog_compiler_pic_FC='-KPIC'
12228 lt_prog_compiler_static_FC='-Bstatic'
12229 ;;
12230
12231 sysv4*MP*)
12232 if test -d /usr/nec ;then
12233 lt_prog_compiler_pic_FC='-Kconform_pic'
12234 lt_prog_compiler_static_FC='-Bstatic'
12235 fi
12236 ;;
12237
12238 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12239 lt_prog_compiler_wl_FC='-Wl,'
12240 lt_prog_compiler_pic_FC='-KPIC'
12241 lt_prog_compiler_static_FC='-Bstatic'
12242 ;;
12243
12244 unicos*)
12245 lt_prog_compiler_wl_FC='-Wl,'
12246 lt_prog_compiler_can_build_shared_FC=no
12247 ;;
12248
12249 uts4*)
12250 lt_prog_compiler_pic_FC='-pic'
12251 lt_prog_compiler_static_FC='-Bstatic'
12252 ;;
12253
12254 *)
12255 lt_prog_compiler_can_build_shared_FC=no
12256 ;;
12257 esac
12258 fi
12259
12260 case $host_os in
12261 # For platforms which do not support PIC, -DPIC is meaningless:
12262 *djgpp*)
12263 lt_prog_compiler_pic_FC=
12264 ;;
12265 *)
12266 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
12267 ;;
12268 esac
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
12270 $as_echo "$lt_prog_compiler_pic_FC" >&6; }
12271
12272
12273
12274 #
12275 # Check to make sure the PIC flag actually works.
12276 #
12277 if test -n "$lt_prog_compiler_pic_FC"; then
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
12279 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
12280 if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then :
12281 $as_echo_n "(cached) " >&6
12282 else
12283 lt_cv_prog_compiler_pic_works_FC=no
12284 ac_outfile=conftest.$ac_objext
12285 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12286 lt_compiler_flag="$lt_prog_compiler_pic_FC"
12287 # Insert the option either (1) after the last *FLAGS variable, or
12288 # (2) before a word containing "conftest.", or (3) at the end.
12289 # Note that $ac_compile itself does not contain backslashes and begins
12290 # with a dollar sign (not a hyphen), so the echo should work correctly.
12291 # The option is referenced via a variable to avoid confusing sed.
12292 lt_compile=`echo "$ac_compile" | $SED \
12293 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12294 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12295 -e 's:$: $lt_compiler_flag:'`
12296 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12297 (eval "$lt_compile" 2>conftest.err)
12298 ac_status=$?
12299 cat conftest.err >&5
12300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301 if (exit $ac_status) && test -s "$ac_outfile"; then
12302 # The compiler can only warn and ignore the option if not recognized
12303 # So say no if there are warnings other than the usual output.
12304 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12305 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12306 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12307 lt_cv_prog_compiler_pic_works_FC=yes
12308 fi
12309 fi
12310 $RM conftest*
12311
12312 fi
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
12314 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
12315
12316 if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
12317 case $lt_prog_compiler_pic_FC in
12318 "" | " "*) ;;
12319 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
12320 esac
12321 else
12322 lt_prog_compiler_pic_FC=
12323 lt_prog_compiler_can_build_shared_FC=no
12324 fi
12325
12326 fi
12327
12328
12329
12330 #
12331 # Check to make sure the static flag actually works.
12332 #
12333 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12335 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12336 if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then :
12337 $as_echo_n "(cached) " >&6
12338 else
12339 lt_cv_prog_compiler_static_works_FC=no
12340 save_LDFLAGS="$LDFLAGS"
12341 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12342 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12343 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12344 # The linker can only warn and ignore the option if not recognized
12345 # So say no if there are warnings
12346 if test -s conftest.err; then
12347 # Append any errors to the config.log.
12348 cat conftest.err 1>&5
12349 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12350 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12351 if diff conftest.exp conftest.er2 >/dev/null; then
12352 lt_cv_prog_compiler_static_works_FC=yes
12353 fi
12354 else
12355 lt_cv_prog_compiler_static_works_FC=yes
12356 fi
12357 fi
12358 $RM -r conftest*
12359 LDFLAGS="$save_LDFLAGS"
12360
12361 fi
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
12363 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
12364
12365 if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
12366 :
12367 else
12368 lt_prog_compiler_static_FC=
12369 fi
12370
12371
12372
12373
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12375 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12376 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
12377 $as_echo_n "(cached) " >&6
12378 else
12379 lt_cv_prog_compiler_c_o_FC=no
12380 $RM -r conftest 2>/dev/null
12381 mkdir conftest
12382 cd conftest
12383 mkdir out
12384 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12385
12386 lt_compiler_flag="-o out/conftest2.$ac_objext"
12387 # Insert the option either (1) after the last *FLAGS variable, or
12388 # (2) before a word containing "conftest.", or (3) at the end.
12389 # Note that $ac_compile itself does not contain backslashes and begins
12390 # with a dollar sign (not a hyphen), so the echo should work correctly.
12391 lt_compile=`echo "$ac_compile" | $SED \
12392 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12393 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12394 -e 's:$: $lt_compiler_flag:'`
12395 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12396 (eval "$lt_compile" 2>out/conftest.err)
12397 ac_status=$?
12398 cat out/conftest.err >&5
12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12401 then
12402 # The compiler can only warn and ignore the option if not recognized
12403 # So say no if there are warnings
12404 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12405 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12406 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12407 lt_cv_prog_compiler_c_o_FC=yes
12408 fi
12409 fi
12410 chmod u+w . 2>&5
12411 $RM conftest*
12412 # SGI C++ compiler will create directory out/ii_files/ for
12413 # template instantiation
12414 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12415 $RM out/* && rmdir out
12416 cd ..
12417 $RM -r conftest
12418 $RM conftest*
12419
12420 fi
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12422 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12423
12424
12425
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12427 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12428 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
12429 $as_echo_n "(cached) " >&6
12430 else
12431 lt_cv_prog_compiler_c_o_FC=no
12432 $RM -r conftest 2>/dev/null
12433 mkdir conftest
12434 cd conftest
12435 mkdir out
12436 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12437
12438 lt_compiler_flag="-o out/conftest2.$ac_objext"
12439 # Insert the option either (1) after the last *FLAGS variable, or
12440 # (2) before a word containing "conftest.", or (3) at the end.
12441 # Note that $ac_compile itself does not contain backslashes and begins
12442 # with a dollar sign (not a hyphen), so the echo should work correctly.
12443 lt_compile=`echo "$ac_compile" | $SED \
12444 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12445 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12446 -e 's:$: $lt_compiler_flag:'`
12447 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12448 (eval "$lt_compile" 2>out/conftest.err)
12449 ac_status=$?
12450 cat out/conftest.err >&5
12451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12453 then
12454 # The compiler can only warn and ignore the option if not recognized
12455 # So say no if there are warnings
12456 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12457 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12458 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12459 lt_cv_prog_compiler_c_o_FC=yes
12460 fi
12461 fi
12462 chmod u+w . 2>&5
12463 $RM conftest*
12464 # SGI C++ compiler will create directory out/ii_files/ for
12465 # template instantiation
12466 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12467 $RM out/* && rmdir out
12468 cd ..
12469 $RM -r conftest
12470 $RM conftest*
12471
12472 fi
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12474 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12475
12476
12477
12478
12479 hard_links="nottested"
12480 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
12481 # do not overwrite the value of need_locks provided by the user
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12483 $as_echo_n "checking if we can lock with hard links... " >&6; }
12484 hard_links=yes
12485 $RM conftest*
12486 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12487 touch conftest.a
12488 ln conftest.a conftest.b 2>&5 || hard_links=no
12489 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12491 $as_echo "$hard_links" >&6; }
12492 if test "$hard_links" = no; then
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12494 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12495 need_locks=warn
12496 fi
12497 else
12498 need_locks=no
12499 fi
12500
12501
12502
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12504 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12505
12506 runpath_var=
12507 allow_undefined_flag_FC=
12508 always_export_symbols_FC=no
12509 archive_cmds_FC=
12510 archive_expsym_cmds_FC=
12511 compiler_needs_object_FC=no
12512 enable_shared_with_static_runtimes_FC=no
12513 export_dynamic_flag_spec_FC=
12514 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12515 hardcode_automatic_FC=no
12516 hardcode_direct_FC=no
12517 hardcode_direct_absolute_FC=no
12518 hardcode_libdir_flag_spec_FC=
12519 hardcode_libdir_flag_spec_ld_FC=
12520 hardcode_libdir_separator_FC=
12521 hardcode_minus_L_FC=no
12522 hardcode_shlibpath_var_FC=unsupported
12523 inherit_rpath_FC=no
12524 link_all_deplibs_FC=unknown
12525 module_cmds_FC=
12526 module_expsym_cmds_FC=
12527 old_archive_from_new_cmds_FC=
12528 old_archive_from_expsyms_cmds_FC=
12529 thread_safe_flag_spec_FC=
12530 whole_archive_flag_spec_FC=
12531 # include_expsyms should be a list of space-separated symbols to be *always*
12532 # included in the symbol list
12533 include_expsyms_FC=
12534 # exclude_expsyms can be an extended regexp of symbols to exclude
12535 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12536 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12537 # as well as any symbol that contains `d'.
12538 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12539 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12540 # platforms (ab)use it in PIC code, but their linkers get confused if
12541 # the symbol is explicitly referenced. Since portable code cannot
12542 # rely on this symbol name, it's probably fine to never include it in
12543 # preloaded symbol tables.
12544 # Exclude shared library initialization/finalization symbols.
12545 extract_expsyms_cmds=
12546
12547 case $host_os in
12548 cygwin* | mingw* | pw32* | cegcc*)
12549 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12550 # When not using gcc, we currently assume that we are using
12551 # Microsoft Visual C++.
12552 if test "$GCC" != yes; then
12553 with_gnu_ld=no
12554 fi
12555 ;;
12556 interix*)
12557 # we just hope/assume this is gcc and not c89 (= MSVC++)
12558 with_gnu_ld=yes
12559 ;;
12560 openbsd*)
12561 with_gnu_ld=no
12562 ;;
12563 esac
12564
12565 ld_shlibs_FC=yes
12566
12567 # On some targets, GNU ld is compatible enough with the native linker
12568 # that we're better off using the native interface for both.
12569 lt_use_gnu_ld_interface=no
12570 if test "$with_gnu_ld" = yes; then
12571 case $host_os in
12572 aix*)
12573 # The AIX port of GNU ld has always aspired to compatibility
12574 # with the native linker. However, as the warning in the GNU ld
12575 # block says, versions before 2.19.5* couldn't really create working
12576 # shared libraries, regardless of the interface used.
12577 case `$LD -v 2>&1` in
12578 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12579 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12580 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12581 *)
12582 lt_use_gnu_ld_interface=yes
12583 ;;
12584 esac
12585 ;;
12586 *)
12587 lt_use_gnu_ld_interface=yes
12588 ;;
12589 esac
12590 fi
12591
12592 if test "$lt_use_gnu_ld_interface" = yes; then
12593 # If archive_cmds runs LD, not CC, wlarc should be empty
12594 wlarc='${wl}'
12595
12596 # Set some defaults for GNU ld with shared library support. These
12597 # are reset later if shared libraries are not supported. Putting them
12598 # here allows them to be overridden if necessary.
12599 runpath_var=LD_RUN_PATH
12600 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12601 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
12602 # ancient GNU ld didn't support --whole-archive et. al.
12603 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12604 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12605 else
12606 whole_archive_flag_spec_FC=
12607 fi
12608 supports_anon_versioning=no
12609 case `$LD -v 2>&1` in
12610 *GNU\ gold*) supports_anon_versioning=yes ;;
12611 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12612 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12613 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12614 *\ 2.11.*) ;; # other 2.11 versions
12615 *) supports_anon_versioning=yes ;;
12616 esac
12617
12618 # See if GNU ld supports shared libraries.
12619 case $host_os in
12620 aix[3-9]*)
12621 # On AIX/PPC, the GNU linker is very broken
12622 if test "$host_cpu" != ia64; then
12623 ld_shlibs_FC=no
12624 cat <<_LT_EOF 1>&2
12625
12626 *** Warning: the GNU linker, at least up to release 2.19, is reported
12627 *** to be unable to reliably create shared libraries on AIX.
12628 *** Therefore, libtool is disabling shared libraries support. If you
12629 *** really care for shared libraries, you may want to install binutils
12630 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12631 *** You will then need to restart the configuration process.
12632
12633 _LT_EOF
12634 fi
12635 ;;
12636
12637 amigaos*)
12638 case $host_cpu in
12639 powerpc)
12640 # see comment about AmigaOS4 .so support
12641 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12642 archive_expsym_cmds_FC=''
12643 ;;
12644 m68k)
12645 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)'
12646 hardcode_libdir_flag_spec_FC='-L$libdir'
12647 hardcode_minus_L_FC=yes
12648 ;;
12649 esac
12650 ;;
12651
12652 beos*)
12653 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12654 allow_undefined_flag_FC=unsupported
12655 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12656 # support --undefined. This deserves some investigation. FIXME
12657 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12658 else
12659 ld_shlibs_FC=no
12660 fi
12661 ;;
12662
12663 cygwin* | mingw* | pw32* | cegcc*)
12664 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
12665 # as there is no search path for DLLs.
12666 hardcode_libdir_flag_spec_FC='-L$libdir'
12667 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
12668 allow_undefined_flag_FC=unsupported
12669 always_export_symbols_FC=no
12670 enable_shared_with_static_runtimes_FC=yes
12671 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12672
12673 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12674 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12675 # If the export-symbols file already is a .def file (1st line
12676 # is EXPORTS), use it as is; otherwise, prepend...
12677 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12678 cp $export_symbols $output_objdir/$soname.def;
12679 else
12680 echo EXPORTS > $output_objdir/$soname.def;
12681 cat $export_symbols >> $output_objdir/$soname.def;
12682 fi~
12683 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12684 else
12685 ld_shlibs_FC=no
12686 fi
12687 ;;
12688
12689 haiku*)
12690 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12691 link_all_deplibs_FC=yes
12692 ;;
12693
12694 interix[3-9]*)
12695 hardcode_direct_FC=no
12696 hardcode_shlibpath_var_FC=no
12697 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
12698 export_dynamic_flag_spec_FC='${wl}-E'
12699 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12700 # Instead, shared libraries are loaded at an image base (0x10000000 by
12701 # default) and relocated if they conflict, which is a slow very memory
12702 # consuming and fragmenting process. To avoid this, we pick a random,
12703 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12704 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12705 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'
12706 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'
12707 ;;
12708
12709 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12710 tmp_diet=no
12711 if test "$host_os" = linux-dietlibc; then
12712 case $cc_basename in
12713 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12714 esac
12715 fi
12716 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12717 && test "$tmp_diet" = no
12718 then
12719 tmp_addflag=
12720 tmp_sharedflag='-shared'
12721 case $cc_basename,$host_cpu in
12722 pgcc*) # Portland Group C compiler
12723 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'
12724 tmp_addflag=' $pic_flag'
12725 ;;
12726 pgf77* | pgf90* | pgf95* | pgfortran*)
12727 # Portland Group f77 and f90 compilers
12728 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'
12729 tmp_addflag=' $pic_flag -Mnomain' ;;
12730 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12731 tmp_addflag=' -i_dynamic' ;;
12732 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12733 tmp_addflag=' -i_dynamic -nofor_main' ;;
12734 ifc* | ifort*) # Intel Fortran compiler
12735 tmp_addflag=' -nofor_main' ;;
12736 lf95*) # Lahey Fortran 8.1
12737 whole_archive_flag_spec_FC=
12738 tmp_sharedflag='--shared' ;;
12739 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12740 tmp_sharedflag='-qmkshrobj'
12741 tmp_addflag= ;;
12742 nvcc*) # Cuda Compiler Driver 2.2
12743 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'
12744 compiler_needs_object_FC=yes
12745 ;;
12746 esac
12747 case `$CC -V 2>&1 | sed 5q` in
12748 *Sun\ C*) # Sun C 5.9
12749 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'
12750 compiler_needs_object_FC=yes
12751 tmp_sharedflag='-G' ;;
12752 *Sun\ F*) # Sun Fortran 8.3
12753 tmp_sharedflag='-G' ;;
12754 esac
12755 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12756
12757 if test "x$supports_anon_versioning" = xyes; then
12758 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
12759 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12760 echo "local: *; };" >> $output_objdir/$libname.ver~
12761 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12762 fi
12763
12764 case $cc_basename in
12765 xlf* | bgf* | bgxlf* | mpixlf*)
12766 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12767 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
12768 hardcode_libdir_flag_spec_FC=
12769 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
12770 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12771 if test "x$supports_anon_versioning" = xyes; then
12772 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
12773 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12774 echo "local: *; };" >> $output_objdir/$libname.ver~
12775 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12776 fi
12777 ;;
12778 esac
12779 else
12780 ld_shlibs_FC=no
12781 fi
12782 ;;
12783
12784 netbsd*)
12785 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12786 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12787 wlarc=
12788 else
12789 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12790 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12791 fi
12792 ;;
12793
12794 solaris*)
12795 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12796 ld_shlibs_FC=no
12797 cat <<_LT_EOF 1>&2
12798
12799 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12800 *** create shared libraries on Solaris systems. Therefore, libtool
12801 *** is disabling shared libraries support. We urge you to upgrade GNU
12802 *** binutils to release 2.9.1 or newer. Another option is to modify
12803 *** your PATH or compiler configuration so that the native linker is
12804 *** used, and then restart.
12805
12806 _LT_EOF
12807 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12808 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12809 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12810 else
12811 ld_shlibs_FC=no
12812 fi
12813 ;;
12814
12815 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12816 case `$LD -v 2>&1` in
12817 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12818 ld_shlibs_FC=no
12819 cat <<_LT_EOF 1>&2
12820
12821 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12822 *** reliably create shared libraries on SCO systems. Therefore, libtool
12823 *** is disabling shared libraries support. We urge you to upgrade GNU
12824 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12825 *** your PATH or compiler configuration so that the native linker is
12826 *** used, and then restart.
12827
12828 _LT_EOF
12829 ;;
12830 *)
12831 # For security reasons, it is highly recommended that you always
12832 # use absolute paths for naming shared libraries, and exclude the
12833 # DT_RUNPATH tag from executables and libraries. But doing so
12834 # requires that you compile everything twice, which is a pain.
12835 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12836 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12837 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12838 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12839 else
12840 ld_shlibs_FC=no
12841 fi
12842 ;;
12843 esac
12844 ;;
12845
12846 sunos4*)
12847 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12848 wlarc=
12849 hardcode_direct_FC=yes
12850 hardcode_shlibpath_var_FC=no
12851 ;;
12852
12853 *)
12854 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12855 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12856 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12857 else
12858 ld_shlibs_FC=no
12859 fi
12860 ;;
12861 esac
12862
12863 if test "$ld_shlibs_FC" = no; then
12864 runpath_var=
12865 hardcode_libdir_flag_spec_FC=
12866 export_dynamic_flag_spec_FC=
12867 whole_archive_flag_spec_FC=
12868 fi
12869 else
12870 # PORTME fill in a description of your system's linker (not GNU ld)
12871 case $host_os in
12872 aix3*)
12873 allow_undefined_flag_FC=unsupported
12874 always_export_symbols_FC=yes
12875 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'
12876 # Note: this linker hardcodes the directories in LIBPATH if there
12877 # are no directories specified by -L.
12878 hardcode_minus_L_FC=yes
12879 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12880 # Neither direct hardcoding nor static linking is supported with a
12881 # broken collect2.
12882 hardcode_direct_FC=unsupported
12883 fi
12884 ;;
12885
12886 aix[4-9]*)
12887 if test "$host_cpu" = ia64; then
12888 # On IA64, the linker does run time linking by default, so we don't
12889 # have to do anything special.
12890 aix_use_runtimelinking=no
12891 exp_sym_flag='-Bexport'
12892 no_entry_flag=""
12893 else
12894 # If we're using GNU nm, then we don't want the "-C" option.
12895 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12896 # Also, AIX nm treats weak defined symbols like other global
12897 # defined symbols, whereas GNU nm marks them as "W".
12898 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12899 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'
12900 else
12901 export_symbols_cmds_FC='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12902 fi
12903 aix_use_runtimelinking=no
12904
12905 # Test if we are trying to use run time linking or normal
12906 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12907 # need to do runtime linking.
12908 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12909 for ld_flag in $LDFLAGS; do
12910 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12911 aix_use_runtimelinking=yes
12912 break
12913 fi
12914 done
12915 ;;
12916 esac
12917
12918 exp_sym_flag='-bexport'
12919 no_entry_flag='-bnoentry'
12920 fi
12921
12922 # When large executables or shared objects are built, AIX ld can
12923 # have problems creating the table of contents. If linking a library
12924 # or program results in "error TOC overflow" add -mminimal-toc to
12925 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12926 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12927
12928 archive_cmds_FC=''
12929 hardcode_direct_FC=yes
12930 hardcode_direct_absolute_FC=yes
12931 hardcode_libdir_separator_FC=':'
12932 link_all_deplibs_FC=yes
12933 file_list_spec_FC='${wl}-f,'
12934
12935 if test "$GCC" = yes; then
12936 case $host_os in aix4.[012]|aix4.[012].*)
12937 # We only want to do this on AIX 4.2 and lower, the check
12938 # below for broken collect2 doesn't work under 4.3+
12939 collect2name=`${CC} -print-prog-name=collect2`
12940 if test -f "$collect2name" &&
12941 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12942 then
12943 # We have reworked collect2
12944 :
12945 else
12946 # We have old collect2
12947 hardcode_direct_FC=unsupported
12948 # It fails to find uninstalled libraries when the uninstalled
12949 # path is not listed in the libpath. Setting hardcode_minus_L
12950 # to unsupported forces relinking
12951 hardcode_minus_L_FC=yes
12952 hardcode_libdir_flag_spec_FC='-L$libdir'
12953 hardcode_libdir_separator_FC=
12954 fi
12955 ;;
12956 esac
12957 shared_flag='-shared'
12958 if test "$aix_use_runtimelinking" = yes; then
12959 shared_flag="$shared_flag "'${wl}-G'
12960 fi
12961 else
12962 # not using gcc
12963 if test "$host_cpu" = ia64; then
12964 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12965 # chokes on -Wl,-G. The following line is correct:
12966 shared_flag='-G'
12967 else
12968 if test "$aix_use_runtimelinking" = yes; then
12969 shared_flag='${wl}-G'
12970 else
12971 shared_flag='${wl}-bM:SRE'
12972 fi
12973 fi
12974 fi
12975
12976 export_dynamic_flag_spec_FC='${wl}-bexpall'
12977 # It seems that -bexpall does not export symbols beginning with
12978 # underscore (_), so it is better to generate a list of symbols to export.
12979 always_export_symbols_FC=yes
12980 if test "$aix_use_runtimelinking" = yes; then
12981 # Warning - without using the other runtime loading flags (-brtl),
12982 # -berok will link without error, but may produce a broken library.
12983 allow_undefined_flag_FC='-berok'
12984 # Determine the default libpath from the value encoded in an
12985 # empty executable.
12986 cat > conftest.$ac_ext <<_ACEOF
12987 program main
12988
12989 end
12990 _ACEOF
12991 if ac_fn_fc_try_link "$LINENO"; then :
12992
12993 lt_aix_libpath_sed='
12994 /Import File Strings/,/^$/ {
12995 /^0/ {
12996 s/^0 *\(.*\)$/\1/
12997 p
12998 }
12999 }'
13000 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13001 # Check for a 64-bit object if we didn't find anything.
13002 if test -z "$aix_libpath"; then
13003 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13004 fi
13005 fi
13006 rm -f core conftest.err conftest.$ac_objext \
13007 conftest$ac_exeext conftest.$ac_ext
13008 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13009
13010 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13011 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"
13012 else
13013 if test "$host_cpu" = ia64; then
13014 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
13015 allow_undefined_flag_FC="-z nodefs"
13016 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"
13017 else
13018 # Determine the default libpath from the value encoded in an
13019 # empty executable.
13020 cat > conftest.$ac_ext <<_ACEOF
13021 program main
13022
13023 end
13024 _ACEOF
13025 if ac_fn_fc_try_link "$LINENO"; then :
13026
13027 lt_aix_libpath_sed='
13028 /Import File Strings/,/^$/ {
13029 /^0/ {
13030 s/^0 *\(.*\)$/\1/
13031 p
13032 }
13033 }'
13034 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13035 # Check for a 64-bit object if we didn't find anything.
13036 if test -z "$aix_libpath"; then
13037 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13038 fi
13039 fi
13040 rm -f core conftest.err conftest.$ac_objext \
13041 conftest$ac_exeext conftest.$ac_ext
13042 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13043
13044 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13045 # Warning - without using the other run time loading flags,
13046 # -berok will link without error, but may produce a broken library.
13047 no_undefined_flag_FC=' ${wl}-bernotok'
13048 allow_undefined_flag_FC=' ${wl}-berok'
13049 if test "$with_gnu_ld" = yes; then
13050 # We only use this code for GNU lds that support --whole-archive.
13051 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13052 else
13053 # Exported symbols can be pulled into shared objects from archives
13054 whole_archive_flag_spec_FC='$convenience'
13055 fi
13056 archive_cmds_need_lc_FC=yes
13057 # This is similar to how AIX traditionally builds its shared libraries.
13058 archive_expsym_cmds_FC="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13059 fi
13060 fi
13061 ;;
13062
13063 amigaos*)
13064 case $host_cpu in
13065 powerpc)
13066 # see comment about AmigaOS4 .so support
13067 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13068 archive_expsym_cmds_FC=''
13069 ;;
13070 m68k)
13071 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)'
13072 hardcode_libdir_flag_spec_FC='-L$libdir'
13073 hardcode_minus_L_FC=yes
13074 ;;
13075 esac
13076 ;;
13077
13078 bsdi[45]*)
13079 export_dynamic_flag_spec_FC=-rdynamic
13080 ;;
13081
13082 cygwin* | mingw* | pw32* | cegcc*)
13083 # When not using gcc, we currently assume that we are using
13084 # Microsoft Visual C++.
13085 # hardcode_libdir_flag_spec is actually meaningless, as there is
13086 # no search path for DLLs.
13087 hardcode_libdir_flag_spec_FC=' '
13088 allow_undefined_flag_FC=unsupported
13089 # Tell ltmain to make .lib files, not .a files.
13090 libext=lib
13091 # Tell ltmain to make .dll files, not .so files.
13092 shrext_cmds=".dll"
13093 # FIXME: Setting linknames here is a bad hack.
13094 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13095 # The linker will automatically build a .lib file if we build a DLL.
13096 old_archive_from_new_cmds_FC='true'
13097 # FIXME: Should let the user specify the lib program.
13098 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
13099 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
13100 enable_shared_with_static_runtimes_FC=yes
13101 ;;
13102
13103 darwin* | rhapsody*)
13104
13105
13106 archive_cmds_need_lc_FC=no
13107 hardcode_direct_FC=no
13108 hardcode_automatic_FC=yes
13109 hardcode_shlibpath_var_FC=unsupported
13110 if test "$lt_cv_ld_force_load" = "yes"; then
13111 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\"`'
13112 else
13113 whole_archive_flag_spec_FC=''
13114 fi
13115 link_all_deplibs_FC=yes
13116 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
13117 case $cc_basename in
13118 ifort*) _lt_dar_can_shared=yes ;;
13119 *) _lt_dar_can_shared=$GCC ;;
13120 esac
13121 if test "$_lt_dar_can_shared" = "yes"; then
13122 output_verbose_link_cmd=func_echo_all
13123 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}"
13124 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13125 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}"
13126 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}"
13127
13128 else
13129 ld_shlibs_FC=no
13130 fi
13131
13132 ;;
13133
13134 dgux*)
13135 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13136 hardcode_libdir_flag_spec_FC='-L$libdir'
13137 hardcode_shlibpath_var_FC=no
13138 ;;
13139
13140 freebsd1*)
13141 ld_shlibs_FC=no
13142 ;;
13143
13144 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13145 # support. Future versions do this automatically, but an explicit c++rt0.o
13146 # does not break anything, and helps significantly (at the cost of a little
13147 # extra space).
13148 freebsd2.2*)
13149 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13150 hardcode_libdir_flag_spec_FC='-R$libdir'
13151 hardcode_direct_FC=yes
13152 hardcode_shlibpath_var_FC=no
13153 ;;
13154
13155 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13156 freebsd2*)
13157 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13158 hardcode_direct_FC=yes
13159 hardcode_minus_L_FC=yes
13160 hardcode_shlibpath_var_FC=no
13161 ;;
13162
13163 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13164 freebsd* | dragonfly*)
13165 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13166 hardcode_libdir_flag_spec_FC='-R$libdir'
13167 hardcode_direct_FC=yes
13168 hardcode_shlibpath_var_FC=no
13169 ;;
13170
13171 hpux9*)
13172 if test "$GCC" = yes; then
13173 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'
13174 else
13175 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'
13176 fi
13177 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13178 hardcode_libdir_separator_FC=:
13179 hardcode_direct_FC=yes
13180
13181 # hardcode_minus_L: Not really in the search PATH,
13182 # but as the default location of the library.
13183 hardcode_minus_L_FC=yes
13184 export_dynamic_flag_spec_FC='${wl}-E'
13185 ;;
13186
13187 hpux10*)
13188 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13189 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13190 else
13191 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13192 fi
13193 if test "$with_gnu_ld" = no; then
13194 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13195 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
13196 hardcode_libdir_separator_FC=:
13197 hardcode_direct_FC=yes
13198 hardcode_direct_absolute_FC=yes
13199 export_dynamic_flag_spec_FC='${wl}-E'
13200 # hardcode_minus_L: Not really in the search PATH,
13201 # but as the default location of the library.
13202 hardcode_minus_L_FC=yes
13203 fi
13204 ;;
13205
13206 hpux11*)
13207 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13208 case $host_cpu in
13209 hppa*64*)
13210 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13211 ;;
13212 ia64*)
13213 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13214 ;;
13215 *)
13216 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13217 ;;
13218 esac
13219 else
13220 case $host_cpu in
13221 hppa*64*)
13222 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13223 ;;
13224 ia64*)
13225 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13226 ;;
13227 *)
13228 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13229 ;;
13230 esac
13231 fi
13232 if test "$with_gnu_ld" = no; then
13233 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13234 hardcode_libdir_separator_FC=:
13235
13236 case $host_cpu in
13237 hppa*64*|ia64*)
13238 hardcode_direct_FC=no
13239 hardcode_shlibpath_var_FC=no
13240 ;;
13241 *)
13242 hardcode_direct_FC=yes
13243 hardcode_direct_absolute_FC=yes
13244 export_dynamic_flag_spec_FC='${wl}-E'
13245
13246 # hardcode_minus_L: Not really in the search PATH,
13247 # but as the default location of the library.
13248 hardcode_minus_L_FC=yes
13249 ;;
13250 esac
13251 fi
13252 ;;
13253
13254 irix5* | irix6* | nonstopux*)
13255 if test "$GCC" = yes; then
13256 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'
13257 # Try to use the -exported_symbol ld option, if it does not
13258 # work, assume that -exports_file does not work either and
13259 # implicitly export all symbols.
13260 save_LDFLAGS="$LDFLAGS"
13261 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13262 cat > conftest.$ac_ext <<_ACEOF
13263 int foo(void) {}
13264 _ACEOF
13265 if ac_fn_fc_try_link "$LINENO"; then :
13266 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'
13267
13268 fi
13269 rm -f core conftest.err conftest.$ac_objext \
13270 conftest$ac_exeext conftest.$ac_ext
13271 LDFLAGS="$save_LDFLAGS"
13272 else
13273 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'
13274 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'
13275 fi
13276 archive_cmds_need_lc_FC='no'
13277 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13278 hardcode_libdir_separator_FC=:
13279 inherit_rpath_FC=yes
13280 link_all_deplibs_FC=yes
13281 ;;
13282
13283 netbsd*)
13284 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13285 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13286 else
13287 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13288 fi
13289 hardcode_libdir_flag_spec_FC='-R$libdir'
13290 hardcode_direct_FC=yes
13291 hardcode_shlibpath_var_FC=no
13292 ;;
13293
13294 newsos6)
13295 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13296 hardcode_direct_FC=yes
13297 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13298 hardcode_libdir_separator_FC=:
13299 hardcode_shlibpath_var_FC=no
13300 ;;
13301
13302 *nto* | *qnx*)
13303 ;;
13304
13305 openbsd*)
13306 if test -f /usr/libexec/ld.so; then
13307 hardcode_direct_FC=yes
13308 hardcode_shlibpath_var_FC=no
13309 hardcode_direct_absolute_FC=yes
13310 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13311 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13312 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13313 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13314 export_dynamic_flag_spec_FC='${wl}-E'
13315 else
13316 case $host_os in
13317 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13318 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13319 hardcode_libdir_flag_spec_FC='-R$libdir'
13320 ;;
13321 *)
13322 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13323 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13324 ;;
13325 esac
13326 fi
13327 else
13328 ld_shlibs_FC=no
13329 fi
13330 ;;
13331
13332 os2*)
13333 hardcode_libdir_flag_spec_FC='-L$libdir'
13334 hardcode_minus_L_FC=yes
13335 allow_undefined_flag_FC=unsupported
13336 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'
13337 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13338 ;;
13339
13340 osf3*)
13341 if test "$GCC" = yes; then
13342 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13343 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'
13344 else
13345 allow_undefined_flag_FC=' -expect_unresolved \*'
13346 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'
13347 fi
13348 archive_cmds_need_lc_FC='no'
13349 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13350 hardcode_libdir_separator_FC=:
13351 ;;
13352
13353 osf4* | osf5*) # as osf3* with the addition of -msym flag
13354 if test "$GCC" = yes; then
13355 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13356 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'
13357 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13358 else
13359 allow_undefined_flag_FC=' -expect_unresolved \*'
13360 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'
13361 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~
13362 $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'
13363
13364 # Both c and cxx compiler support -rpath directly
13365 hardcode_libdir_flag_spec_FC='-rpath $libdir'
13366 fi
13367 archive_cmds_need_lc_FC='no'
13368 hardcode_libdir_separator_FC=:
13369 ;;
13370
13371 solaris*)
13372 no_undefined_flag_FC=' -z defs'
13373 if test "$GCC" = yes; then
13374 wlarc='${wl}'
13375 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13376 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13377 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13378 else
13379 case `$CC -V 2>&1` in
13380 *"Compilers 5.0"*)
13381 wlarc=''
13382 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13383 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13384 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13385 ;;
13386 *)
13387 wlarc='${wl}'
13388 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13389 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13390 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13391 ;;
13392 esac
13393 fi
13394 hardcode_libdir_flag_spec_FC='-R$libdir'
13395 hardcode_shlibpath_var_FC=no
13396 case $host_os in
13397 solaris2.[0-5] | solaris2.[0-5].*) ;;
13398 *)
13399 # The compiler driver will combine and reorder linker options,
13400 # but understands `-z linker_flag'. GCC discards it without `$wl',
13401 # but is careful enough not to reorder.
13402 # Supported since Solaris 2.6 (maybe 2.5.1?)
13403 if test "$GCC" = yes; then
13404 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13405 else
13406 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
13407 fi
13408 ;;
13409 esac
13410 link_all_deplibs_FC=yes
13411 ;;
13412
13413 sunos4*)
13414 if test "x$host_vendor" = xsequent; then
13415 # Use $CC to link under sequent, because it throws in some extra .o
13416 # files that make .init and .fini sections work.
13417 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13418 else
13419 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13420 fi
13421 hardcode_libdir_flag_spec_FC='-L$libdir'
13422 hardcode_direct_FC=yes
13423 hardcode_minus_L_FC=yes
13424 hardcode_shlibpath_var_FC=no
13425 ;;
13426
13427 sysv4)
13428 case $host_vendor in
13429 sni)
13430 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13431 hardcode_direct_FC=yes # is this really true???
13432 ;;
13433 siemens)
13434 ## LD is ld it makes a PLAMLIB
13435 ## CC just makes a GrossModule.
13436 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13437 reload_cmds_FC='$CC -r -o $output$reload_objs'
13438 hardcode_direct_FC=no
13439 ;;
13440 motorola)
13441 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13442 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
13443 ;;
13444 esac
13445 runpath_var='LD_RUN_PATH'
13446 hardcode_shlibpath_var_FC=no
13447 ;;
13448
13449 sysv4.3*)
13450 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13451 hardcode_shlibpath_var_FC=no
13452 export_dynamic_flag_spec_FC='-Bexport'
13453 ;;
13454
13455 sysv4*MP*)
13456 if test -d /usr/nec; then
13457 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13458 hardcode_shlibpath_var_FC=no
13459 runpath_var=LD_RUN_PATH
13460 hardcode_runpath_var=yes
13461 ld_shlibs_FC=yes
13462 fi
13463 ;;
13464
13465 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13466 no_undefined_flag_FC='${wl}-z,text'
13467 archive_cmds_need_lc_FC=no
13468 hardcode_shlibpath_var_FC=no
13469 runpath_var='LD_RUN_PATH'
13470
13471 if test "$GCC" = yes; then
13472 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13473 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13474 else
13475 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13476 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13477 fi
13478 ;;
13479
13480 sysv5* | sco3.2v5* | sco5v6*)
13481 # Note: We can NOT use -z defs as we might desire, because we do not
13482 # link with -lc, and that would cause any symbols used from libc to
13483 # always be unresolved, which means just about no library would
13484 # ever link correctly. If we're not using GNU ld we use -z text
13485 # though, which does catch some bad symbols but isn't as heavy-handed
13486 # as -z defs.
13487 no_undefined_flag_FC='${wl}-z,text'
13488 allow_undefined_flag_FC='${wl}-z,nodefs'
13489 archive_cmds_need_lc_FC=no
13490 hardcode_shlibpath_var_FC=no
13491 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
13492 hardcode_libdir_separator_FC=':'
13493 link_all_deplibs_FC=yes
13494 export_dynamic_flag_spec_FC='${wl}-Bexport'
13495 runpath_var='LD_RUN_PATH'
13496
13497 if test "$GCC" = yes; then
13498 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13499 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13500 else
13501 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13502 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13503 fi
13504 ;;
13505
13506 uts4*)
13507 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13508 hardcode_libdir_flag_spec_FC='-L$libdir'
13509 hardcode_shlibpath_var_FC=no
13510 ;;
13511
13512 *)
13513 ld_shlibs_FC=no
13514 ;;
13515 esac
13516
13517 if test x$host_vendor = xsni; then
13518 case $host in
13519 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13520 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
13521 ;;
13522 esac
13523 fi
13524 fi
13525
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
13527 $as_echo "$ld_shlibs_FC" >&6; }
13528 test "$ld_shlibs_FC" = no && can_build_shared=no
13529
13530 with_gnu_ld_FC=$with_gnu_ld
13531
13532
13533
13534
13535
13536
13537 #
13538 # Do we need to explicitly link libc?
13539 #
13540 case "x$archive_cmds_need_lc_FC" in
13541 x|xyes)
13542 # Assume -lc should be added
13543 archive_cmds_need_lc_FC=yes
13544
13545 if test "$enable_shared" = yes && test "$GCC" = yes; then
13546 case $archive_cmds_FC in
13547 *'~'*)
13548 # FIXME: we may have to deal with multi-command sequences.
13549 ;;
13550 '$CC '*)
13551 # Test whether the compiler implicitly links with -lc since on some
13552 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13553 # to ld, don't add -lc before -lgcc.
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13555 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13556 if test "${lt_cv_archive_cmds_need_lc_FC+set}" = set; then :
13557 $as_echo_n "(cached) " >&6
13558 else
13559 $RM conftest*
13560 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13561
13562 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13563 (eval $ac_compile) 2>&5
13564 ac_status=$?
13565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13566 test $ac_status = 0; } 2>conftest.err; then
13567 soname=conftest
13568 lib=conftest
13569 libobjs=conftest.$ac_objext
13570 deplibs=
13571 wl=$lt_prog_compiler_wl_FC
13572 pic_flag=$lt_prog_compiler_pic_FC
13573 compiler_flags=-v
13574 linker_flags=-v
13575 verstring=
13576 output_objdir=.
13577 libname=conftest
13578 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
13579 allow_undefined_flag_FC=
13580 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13581 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13582 ac_status=$?
13583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13584 test $ac_status = 0; }
13585 then
13586 lt_cv_archive_cmds_need_lc_FC=no
13587 else
13588 lt_cv_archive_cmds_need_lc_FC=yes
13589 fi
13590 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
13591 else
13592 cat conftest.err 1>&5
13593 fi
13594 $RM conftest*
13595
13596 fi
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
13598 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
13599 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
13600 ;;
13601 esac
13602 fi
13603 ;;
13604 esac
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13670 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13671
13672 library_names_spec=
13673 libname_spec='lib$name'
13674 soname_spec=
13675 shrext_cmds=".so"
13676 postinstall_cmds=
13677 postuninstall_cmds=
13678 finish_cmds=
13679 finish_eval=
13680 shlibpath_var=
13681 shlibpath_overrides_runpath=unknown
13682 version_type=none
13683 dynamic_linker="$host_os ld.so"
13684 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13685 need_lib_prefix=unknown
13686 hardcode_into_libs=no
13687
13688 # when you set need_version to no, make sure it does not cause -set_version
13689 # flags to be left without arguments
13690 need_version=unknown
13691
13692 case $host_os in
13693 aix3*)
13694 version_type=linux
13695 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13696 shlibpath_var=LIBPATH
13697
13698 # AIX 3 has no versioning support, so we append a major version to the name.
13699 soname_spec='${libname}${release}${shared_ext}$major'
13700 ;;
13701
13702 aix[4-9]*)
13703 version_type=linux
13704 need_lib_prefix=no
13705 need_version=no
13706 hardcode_into_libs=yes
13707 if test "$host_cpu" = ia64; then
13708 # AIX 5 supports IA64
13709 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13710 shlibpath_var=LD_LIBRARY_PATH
13711 else
13712 # With GCC up to 2.95.x, collect2 would create an import file
13713 # for dependence libraries. The import file would start with
13714 # the line `#! .'. This would cause the generated library to
13715 # depend on `.', always an invalid library. This was fixed in
13716 # development snapshots of GCC prior to 3.0.
13717 case $host_os in
13718 aix4 | aix4.[01] | aix4.[01].*)
13719 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13720 echo ' yes '
13721 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13722 :
13723 else
13724 can_build_shared=no
13725 fi
13726 ;;
13727 esac
13728 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13729 # soname into executable. Probably we can add versioning support to
13730 # collect2, so additional links can be useful in future.
13731 if test "$aix_use_runtimelinking" = yes; then
13732 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13733 # instead of lib<name>.a to let people know that these are not
13734 # typical AIX shared libraries.
13735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13736 else
13737 # We preserve .a as extension for shared libraries through AIX4.2
13738 # and later when we are not doing run time linking.
13739 library_names_spec='${libname}${release}.a $libname.a'
13740 soname_spec='${libname}${release}${shared_ext}$major'
13741 fi
13742 shlibpath_var=LIBPATH
13743 fi
13744 ;;
13745
13746 amigaos*)
13747 case $host_cpu in
13748 powerpc)
13749 # Since July 2007 AmigaOS4 officially supports .so libraries.
13750 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13752 ;;
13753 m68k)
13754 library_names_spec='$libname.ixlibrary $libname.a'
13755 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13756 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'
13757 ;;
13758 esac
13759 ;;
13760
13761 beos*)
13762 library_names_spec='${libname}${shared_ext}'
13763 dynamic_linker="$host_os ld.so"
13764 shlibpath_var=LIBRARY_PATH
13765 ;;
13766
13767 bsdi[45]*)
13768 version_type=linux
13769 need_version=no
13770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13771 soname_spec='${libname}${release}${shared_ext}$major'
13772 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13773 shlibpath_var=LD_LIBRARY_PATH
13774 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13775 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13776 # the default ld.so.conf also contains /usr/contrib/lib and
13777 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13778 # libtool to hard-code these into programs
13779 ;;
13780
13781 cygwin* | mingw* | pw32* | cegcc*)
13782 version_type=windows
13783 shrext_cmds=".dll"
13784 need_version=no
13785 need_lib_prefix=no
13786
13787 case $GCC,$host_os in
13788 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13789 library_names_spec='$libname.dll.a'
13790 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13791 postinstall_cmds='base_file=`basename \${file}`~
13792 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13793 dldir=$destdir/`dirname \$dlpath`~
13794 test -d \$dldir || mkdir -p \$dldir~
13795 $install_prog $dir/$dlname \$dldir/$dlname~
13796 chmod a+x \$dldir/$dlname~
13797 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13798 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13799 fi'
13800 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13801 dlpath=$dir/\$dldll~
13802 $RM \$dlpath'
13803 shlibpath_overrides_runpath=yes
13804
13805 case $host_os in
13806 cygwin*)
13807 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13808 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13809
13810 ;;
13811 mingw* | cegcc*)
13812 # MinGW DLLs use traditional 'lib' prefix
13813 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13814 ;;
13815 pw32*)
13816 # pw32 DLLs use 'pw' prefix rather than 'lib'
13817 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13818 ;;
13819 esac
13820 ;;
13821
13822 *)
13823 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13824 ;;
13825 esac
13826 dynamic_linker='Win32 ld.exe'
13827 # FIXME: first we should search . and the directory the executable is in
13828 shlibpath_var=PATH
13829 ;;
13830
13831 darwin* | rhapsody*)
13832 dynamic_linker="$host_os dyld"
13833 version_type=darwin
13834 need_lib_prefix=no
13835 need_version=no
13836 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13837 soname_spec='${libname}${release}${major}$shared_ext'
13838 shlibpath_overrides_runpath=yes
13839 shlibpath_var=DYLD_LIBRARY_PATH
13840 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13841
13842 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13843 ;;
13844
13845 dgux*)
13846 version_type=linux
13847 need_lib_prefix=no
13848 need_version=no
13849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13850 soname_spec='${libname}${release}${shared_ext}$major'
13851 shlibpath_var=LD_LIBRARY_PATH
13852 ;;
13853
13854 freebsd1*)
13855 dynamic_linker=no
13856 ;;
13857
13858 freebsd* | dragonfly*)
13859 # DragonFly does not have aout. When/if they implement a new
13860 # versioning mechanism, adjust this.
13861 if test -x /usr/bin/objformat; then
13862 objformat=`/usr/bin/objformat`
13863 else
13864 case $host_os in
13865 freebsd[123]*) objformat=aout ;;
13866 *) objformat=elf ;;
13867 esac
13868 fi
13869 version_type=freebsd-$objformat
13870 case $version_type in
13871 freebsd-elf*)
13872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13873 need_version=no
13874 need_lib_prefix=no
13875 ;;
13876 freebsd-*)
13877 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13878 need_version=yes
13879 ;;
13880 esac
13881 shlibpath_var=LD_LIBRARY_PATH
13882 case $host_os in
13883 freebsd2*)
13884 shlibpath_overrides_runpath=yes
13885 ;;
13886 freebsd3.[01]* | freebsdelf3.[01]*)
13887 shlibpath_overrides_runpath=yes
13888 hardcode_into_libs=yes
13889 ;;
13890 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13891 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13892 shlibpath_overrides_runpath=no
13893 hardcode_into_libs=yes
13894 ;;
13895 *) # from 4.6 on, and DragonFly
13896 shlibpath_overrides_runpath=yes
13897 hardcode_into_libs=yes
13898 ;;
13899 esac
13900 ;;
13901
13902 gnu*)
13903 version_type=linux
13904 need_lib_prefix=no
13905 need_version=no
13906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13907 soname_spec='${libname}${release}${shared_ext}$major'
13908 shlibpath_var=LD_LIBRARY_PATH
13909 hardcode_into_libs=yes
13910 ;;
13911
13912 haiku*)
13913 version_type=linux
13914 need_lib_prefix=no
13915 need_version=no
13916 dynamic_linker="$host_os runtime_loader"
13917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13918 soname_spec='${libname}${release}${shared_ext}$major'
13919 shlibpath_var=LIBRARY_PATH
13920 shlibpath_overrides_runpath=yes
13921 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
13922 hardcode_into_libs=yes
13923 ;;
13924
13925 hpux9* | hpux10* | hpux11*)
13926 # Give a soname corresponding to the major version so that dld.sl refuses to
13927 # link against other versions.
13928 version_type=sunos
13929 need_lib_prefix=no
13930 need_version=no
13931 case $host_cpu in
13932 ia64*)
13933 shrext_cmds='.so'
13934 hardcode_into_libs=yes
13935 dynamic_linker="$host_os dld.so"
13936 shlibpath_var=LD_LIBRARY_PATH
13937 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13939 soname_spec='${libname}${release}${shared_ext}$major'
13940 if test "X$HPUX_IA64_MODE" = X32; then
13941 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13942 else
13943 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13944 fi
13945 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13946 ;;
13947 hppa*64*)
13948 shrext_cmds='.sl'
13949 hardcode_into_libs=yes
13950 dynamic_linker="$host_os dld.sl"
13951 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13952 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13954 soname_spec='${libname}${release}${shared_ext}$major'
13955 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13956 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13957 ;;
13958 *)
13959 shrext_cmds='.sl'
13960 dynamic_linker="$host_os dld.sl"
13961 shlibpath_var=SHLIB_PATH
13962 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13964 soname_spec='${libname}${release}${shared_ext}$major'
13965 ;;
13966 esac
13967 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13968 postinstall_cmds='chmod 555 $lib'
13969 # or fails outright, so override atomically:
13970 install_override_mode=555
13971 ;;
13972
13973 interix[3-9]*)
13974 version_type=linux
13975 need_lib_prefix=no
13976 need_version=no
13977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13978 soname_spec='${libname}${release}${shared_ext}$major'
13979 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13980 shlibpath_var=LD_LIBRARY_PATH
13981 shlibpath_overrides_runpath=no
13982 hardcode_into_libs=yes
13983 ;;
13984
13985 irix5* | irix6* | nonstopux*)
13986 case $host_os in
13987 nonstopux*) version_type=nonstopux ;;
13988 *)
13989 if test "$lt_cv_prog_gnu_ld" = yes; then
13990 version_type=linux
13991 else
13992 version_type=irix
13993 fi ;;
13994 esac
13995 need_lib_prefix=no
13996 need_version=no
13997 soname_spec='${libname}${release}${shared_ext}$major'
13998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13999 case $host_os in
14000 irix5* | nonstopux*)
14001 libsuff= shlibsuff=
14002 ;;
14003 *)
14004 case $LD in # libtool.m4 will add one of these switches to LD
14005 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14006 libsuff= shlibsuff= libmagic=32-bit;;
14007 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14008 libsuff=32 shlibsuff=N32 libmagic=N32;;
14009 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14010 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14011 *) libsuff= shlibsuff= libmagic=never-match;;
14012 esac
14013 ;;
14014 esac
14015 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14016 shlibpath_overrides_runpath=no
14017 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14018 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14019 hardcode_into_libs=yes
14020 ;;
14021
14022 # No shared lib support for Linux oldld, aout, or coff.
14023 linux*oldld* | linux*aout* | linux*coff*)
14024 dynamic_linker=no
14025 ;;
14026
14027 # This must be Linux ELF.
14028 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14029 version_type=linux
14030 need_lib_prefix=no
14031 need_version=no
14032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14033 soname_spec='${libname}${release}${shared_ext}$major'
14034 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14035 shlibpath_var=LD_LIBRARY_PATH
14036 shlibpath_overrides_runpath=no
14037
14038 # Some binutils ld are patched to set DT_RUNPATH
14039 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14040 $as_echo_n "(cached) " >&6
14041 else
14042 lt_cv_shlibpath_overrides_runpath=no
14043 save_LDFLAGS=$LDFLAGS
14044 save_libdir=$libdir
14045 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
14046 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
14047 cat > conftest.$ac_ext <<_ACEOF
14048 program main
14049
14050 end
14051 _ACEOF
14052 if ac_fn_fc_try_link "$LINENO"; then :
14053 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14054 lt_cv_shlibpath_overrides_runpath=yes
14055 fi
14056 fi
14057 rm -f core conftest.err conftest.$ac_objext \
14058 conftest$ac_exeext conftest.$ac_ext
14059 LDFLAGS=$save_LDFLAGS
14060 libdir=$save_libdir
14061
14062 fi
14063
14064 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14065
14066 # This implies no fast_install, which is unacceptable.
14067 # Some rework will be needed to allow for fast_install
14068 # before this can be enabled.
14069 hardcode_into_libs=yes
14070
14071 # Append ld.so.conf contents to the search path
14072 if test -f /etc/ld.so.conf; then
14073 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' ' '`
14074 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14075 fi
14076
14077 # We used to test for /lib/ld.so.1 and disable shared libraries on
14078 # powerpc, because MkLinux only supported shared libraries with the
14079 # GNU dynamic linker. Since this was broken with cross compilers,
14080 # most powerpc-linux boxes support dynamic linking these days and
14081 # people can always --disable-shared, the test was removed, and we
14082 # assume the GNU/Linux dynamic linker is in use.
14083 dynamic_linker='GNU/Linux ld.so'
14084 ;;
14085
14086 netbsd*)
14087 version_type=sunos
14088 need_lib_prefix=no
14089 need_version=no
14090 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14092 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14093 dynamic_linker='NetBSD (a.out) ld.so'
14094 else
14095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14096 soname_spec='${libname}${release}${shared_ext}$major'
14097 dynamic_linker='NetBSD ld.elf_so'
14098 fi
14099 shlibpath_var=LD_LIBRARY_PATH
14100 shlibpath_overrides_runpath=yes
14101 hardcode_into_libs=yes
14102 ;;
14103
14104 newsos6)
14105 version_type=linux
14106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14107 shlibpath_var=LD_LIBRARY_PATH
14108 shlibpath_overrides_runpath=yes
14109 ;;
14110
14111 *nto* | *qnx*)
14112 version_type=qnx
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 shlibpath_var=LD_LIBRARY_PATH
14118 shlibpath_overrides_runpath=no
14119 hardcode_into_libs=yes
14120 dynamic_linker='ldqnx.so'
14121 ;;
14122
14123 openbsd*)
14124 version_type=sunos
14125 sys_lib_dlsearch_path_spec="/usr/lib"
14126 need_lib_prefix=no
14127 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14128 case $host_os in
14129 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14130 *) need_version=no ;;
14131 esac
14132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14133 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14134 shlibpath_var=LD_LIBRARY_PATH
14135 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14136 case $host_os in
14137 openbsd2.[89] | openbsd2.[89].*)
14138 shlibpath_overrides_runpath=no
14139 ;;
14140 *)
14141 shlibpath_overrides_runpath=yes
14142 ;;
14143 esac
14144 else
14145 shlibpath_overrides_runpath=yes
14146 fi
14147 ;;
14148
14149 os2*)
14150 libname_spec='$name'
14151 shrext_cmds=".dll"
14152 need_lib_prefix=no
14153 library_names_spec='$libname${shared_ext} $libname.a'
14154 dynamic_linker='OS/2 ld.exe'
14155 shlibpath_var=LIBPATH
14156 ;;
14157
14158 osf3* | osf4* | osf5*)
14159 version_type=osf
14160 need_lib_prefix=no
14161 need_version=no
14162 soname_spec='${libname}${release}${shared_ext}$major'
14163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14164 shlibpath_var=LD_LIBRARY_PATH
14165 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14166 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14167 ;;
14168
14169 rdos*)
14170 dynamic_linker=no
14171 ;;
14172
14173 solaris*)
14174 version_type=linux
14175 need_lib_prefix=no
14176 need_version=no
14177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14178 soname_spec='${libname}${release}${shared_ext}$major'
14179 shlibpath_var=LD_LIBRARY_PATH
14180 shlibpath_overrides_runpath=yes
14181 hardcode_into_libs=yes
14182 # ldd complains unless libraries are executable
14183 postinstall_cmds='chmod +x $lib'
14184 ;;
14185
14186 sunos4*)
14187 version_type=sunos
14188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14189 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14190 shlibpath_var=LD_LIBRARY_PATH
14191 shlibpath_overrides_runpath=yes
14192 if test "$with_gnu_ld" = yes; then
14193 need_lib_prefix=no
14194 fi
14195 need_version=yes
14196 ;;
14197
14198 sysv4 | sysv4.3*)
14199 version_type=linux
14200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14201 soname_spec='${libname}${release}${shared_ext}$major'
14202 shlibpath_var=LD_LIBRARY_PATH
14203 case $host_vendor in
14204 sni)
14205 shlibpath_overrides_runpath=no
14206 need_lib_prefix=no
14207 runpath_var=LD_RUN_PATH
14208 ;;
14209 siemens)
14210 need_lib_prefix=no
14211 ;;
14212 motorola)
14213 need_lib_prefix=no
14214 need_version=no
14215 shlibpath_overrides_runpath=no
14216 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14217 ;;
14218 esac
14219 ;;
14220
14221 sysv4*MP*)
14222 if test -d /usr/nec ;then
14223 version_type=linux
14224 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14225 soname_spec='$libname${shared_ext}.$major'
14226 shlibpath_var=LD_LIBRARY_PATH
14227 fi
14228 ;;
14229
14230 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14231 version_type=freebsd-elf
14232 need_lib_prefix=no
14233 need_version=no
14234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14235 soname_spec='${libname}${release}${shared_ext}$major'
14236 shlibpath_var=LD_LIBRARY_PATH
14237 shlibpath_overrides_runpath=yes
14238 hardcode_into_libs=yes
14239 if test "$with_gnu_ld" = yes; then
14240 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14241 else
14242 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14243 case $host_os in
14244 sco3.2v5*)
14245 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14246 ;;
14247 esac
14248 fi
14249 sys_lib_dlsearch_path_spec='/usr/lib'
14250 ;;
14251
14252 tpf*)
14253 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14254 version_type=linux
14255 need_lib_prefix=no
14256 need_version=no
14257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14258 shlibpath_var=LD_LIBRARY_PATH
14259 shlibpath_overrides_runpath=no
14260 hardcode_into_libs=yes
14261 ;;
14262
14263 uts4*)
14264 version_type=linux
14265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14266 soname_spec='${libname}${release}${shared_ext}$major'
14267 shlibpath_var=LD_LIBRARY_PATH
14268 ;;
14269
14270 *)
14271 dynamic_linker=no
14272 ;;
14273 esac
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14275 $as_echo "$dynamic_linker" >&6; }
14276 test "$dynamic_linker" = no && can_build_shared=no
14277
14278 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14279 if test "$GCC" = yes; then
14280 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14281 fi
14282
14283 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14284 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14285 fi
14286 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14287 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14288 fi
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14328 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14329 hardcode_action_FC=
14330 if test -n "$hardcode_libdir_flag_spec_FC" ||
14331 test -n "$runpath_var_FC" ||
14332 test "X$hardcode_automatic_FC" = "Xyes" ; then
14333
14334 # We can hardcode non-existent directories.
14335 if test "$hardcode_direct_FC" != no &&
14336 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14337 # have to relink, otherwise we might link with an installed library
14338 # when we should be linking with a yet-to-be-installed one
14339 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
14340 test "$hardcode_minus_L_FC" != no; then
14341 # Linking always hardcodes the temporary library directory.
14342 hardcode_action_FC=relink
14343 else
14344 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14345 hardcode_action_FC=immediate
14346 fi
14347 else
14348 # We cannot hardcode anything, or else we can only hardcode existing
14349 # directories.
14350 hardcode_action_FC=unsupported
14351 fi
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
14353 $as_echo "$hardcode_action_FC" >&6; }
14354
14355 if test "$hardcode_action_FC" = relink ||
14356 test "$inherit_rpath_FC" = yes; then
14357 # Fast installation is not supported
14358 enable_fast_install=no
14359 elif test "$shlibpath_overrides_runpath" = yes ||
14360 test "$enable_shared" = no; then
14361 # Fast installation is not necessary
14362 enable_fast_install=needless
14363 fi
14364
14365
14366
14367
14368
14369
14370
14371 fi # test -n "$compiler"
14372
14373 GCC=$lt_save_GCC
14374 CC="$lt_save_CC"
14375 fi # test "$_lt_disable_FC" != yes
14376
14377 ac_ext=c
14378 ac_cpp='$CPP $CPPFLAGS'
14379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14382
14383
14384 FCFLAGS="$FCFLAGS -Wall -L../libgfortran"
14385
14386 # For libtool versioning info, format is CURRENT:REVISION:AGE
14387 libtool_VERSION=1:0:0
14388
14389
14390 # Check header files.
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14392 $as_echo_n "checking for ANSI C header files... " >&6; }
14393 if test "${ac_cv_header_stdc+set}" = set; then :
14394 $as_echo_n "(cached) " >&6
14395 else
14396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14397 /* end confdefs.h. */
14398 #include <stdlib.h>
14399 #include <stdarg.h>
14400 #include <string.h>
14401 #include <float.h>
14402
14403 int
14404 main ()
14405 {
14406
14407 ;
14408 return 0;
14409 }
14410 _ACEOF
14411 if ac_fn_c_try_compile "$LINENO"; then :
14412 ac_cv_header_stdc=yes
14413 else
14414 ac_cv_header_stdc=no
14415 fi
14416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14417
14418 if test $ac_cv_header_stdc = yes; then
14419 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14421 /* end confdefs.h. */
14422 #include <string.h>
14423
14424 _ACEOF
14425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14426 $EGREP "memchr" >/dev/null 2>&1; then :
14427
14428 else
14429 ac_cv_header_stdc=no
14430 fi
14431 rm -f conftest*
14432
14433 fi
14434
14435 if test $ac_cv_header_stdc = yes; then
14436 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14438 /* end confdefs.h. */
14439 #include <stdlib.h>
14440
14441 _ACEOF
14442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14443 $EGREP "free" >/dev/null 2>&1; then :
14444
14445 else
14446 ac_cv_header_stdc=no
14447 fi
14448 rm -f conftest*
14449
14450 fi
14451
14452 if test $ac_cv_header_stdc = yes; then
14453 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14454 if test "$cross_compiling" = yes; then :
14455 :
14456 else
14457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14458 /* end confdefs.h. */
14459 #include <ctype.h>
14460 #include <stdlib.h>
14461 #if ((' ' & 0x0FF) == 0x020)
14462 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14463 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14464 #else
14465 # define ISLOWER(c) \
14466 (('a' <= (c) && (c) <= 'i') \
14467 || ('j' <= (c) && (c) <= 'r') \
14468 || ('s' <= (c) && (c) <= 'z'))
14469 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14470 #endif
14471
14472 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14473 int
14474 main ()
14475 {
14476 int i;
14477 for (i = 0; i < 256; i++)
14478 if (XOR (islower (i), ISLOWER (i))
14479 || toupper (i) != TOUPPER (i))
14480 return 2;
14481 return 0;
14482 }
14483 _ACEOF
14484 if ac_fn_c_try_run "$LINENO"; then :
14485
14486 else
14487 ac_cv_header_stdc=no
14488 fi
14489 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14490 conftest.$ac_objext conftest.beam conftest.$ac_ext
14491 fi
14492
14493 fi
14494 fi
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14496 $as_echo "$ac_cv_header_stdc" >&6; }
14497 if test $ac_cv_header_stdc = yes; then
14498
14499 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14500
14501 fi
14502
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14504 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14505 if test "${ac_cv_header_time+set}" = set; then :
14506 $as_echo_n "(cached) " >&6
14507 else
14508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14509 /* end confdefs.h. */
14510 #include <sys/types.h>
14511 #include <sys/time.h>
14512 #include <time.h>
14513
14514 int
14515 main ()
14516 {
14517 if ((struct tm *) 0)
14518 return 0;
14519 ;
14520 return 0;
14521 }
14522 _ACEOF
14523 if ac_fn_c_try_compile "$LINENO"; then :
14524 ac_cv_header_time=yes
14525 else
14526 ac_cv_header_time=no
14527 fi
14528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14529 fi
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14531 $as_echo "$ac_cv_header_time" >&6; }
14532 if test $ac_cv_header_time = yes; then
14533
14534 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14535
14536 fi
14537
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
14539 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
14540 if test "${gcc_cv_header_string+set}" = set; then :
14541 $as_echo_n "(cached) " >&6
14542 else
14543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14544 /* end confdefs.h. */
14545 #include <string.h>
14546 #include <strings.h>
14547 int
14548 main ()
14549 {
14550
14551 ;
14552 return 0;
14553 }
14554 _ACEOF
14555 if ac_fn_c_try_compile "$LINENO"; then :
14556 gcc_cv_header_string=yes
14557 else
14558 gcc_cv_header_string=no
14559 fi
14560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14561 fi
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
14563 $as_echo "$gcc_cv_header_string" >&6; }
14564 if test $gcc_cv_header_string = yes; then
14565
14566 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
14567
14568 fi
14569
14570 for ac_header in unistd.h semaphore.h sys/loadavg.h sys/time.h sys/time.h
14571 do :
14572 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14573 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14574 eval as_val=\$$as_ac_Header
14575 if test "x$as_val" = x""yes; then :
14576 cat >>confdefs.h <<_ACEOF
14577 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14578 _ACEOF
14579
14580 fi
14581
14582 done
14583
14584
14585
14586
14587 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
14588
14589 acx_cv_header_stdint=stddef.h
14590 acx_cv_header_stdint_kind="(already complete)"
14591 for i in stdint.h $inttype_headers; do
14592 unset ac_cv_type_uintptr_t
14593 unset ac_cv_type_uintmax_t
14594 unset ac_cv_type_int_least32_t
14595 unset ac_cv_type_int_fast32_t
14596 unset ac_cv_type_uint64_t
14597 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
14598 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
14599 #include <$i>
14600 "
14601 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
14602 acx_cv_header_stdint=$i
14603 else
14604 continue
14605 fi
14606
14607 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
14608 #include <$i>
14609 "
14610 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
14611
14612 else
14613 acx_cv_header_stdint_kind="(mostly complete)"
14614 fi
14615
14616 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
14617 #include <$i>
14618 "
14619 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
14620
14621 else
14622 acx_cv_header_stdint_kind="(mostly complete)"
14623 fi
14624
14625 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
14626 #include <$i>
14627 "
14628 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
14629
14630 else
14631 acx_cv_header_stdint_kind="(mostly complete)"
14632 fi
14633
14634 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
14635 #include <$i>
14636 "
14637 if test "x$ac_cv_type_uint64_t" = x""yes; then :
14638
14639 else
14640 acx_cv_header_stdint_kind="(lacks uint64_t)"
14641 fi
14642
14643 break
14644 done
14645 if test "$acx_cv_header_stdint" = stddef.h; then
14646 acx_cv_header_stdint_kind="(lacks uintmax_t)"
14647 for i in stdint.h $inttype_headers; do
14648 unset ac_cv_type_uintptr_t
14649 unset ac_cv_type_uint32_t
14650 unset ac_cv_type_uint64_t
14651 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
14652 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
14653 #include <$i>
14654 "
14655 if test "x$ac_cv_type_uint32_t" = x""yes; then :
14656 acx_cv_header_stdint=$i
14657 else
14658 continue
14659 fi
14660
14661 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
14662 #include <$i>
14663 "
14664 if test "x$ac_cv_type_uint64_t" = x""yes; then :
14665
14666 fi
14667
14668 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
14669 #include <$i>
14670 "
14671 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
14672
14673 fi
14674
14675 break
14676 done
14677 fi
14678 if test "$acx_cv_header_stdint" = stddef.h; then
14679 acx_cv_header_stdint_kind="(u_intXX_t style)"
14680 for i in sys/types.h $inttype_headers; do
14681 unset ac_cv_type_u_int32_t
14682 unset ac_cv_type_u_int64_t
14683 $as_echo_n "looking for u_intXX_t types in $i, " >&6
14684 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
14685 #include <$i>
14686 "
14687 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
14688 acx_cv_header_stdint=$i
14689 else
14690 continue
14691 fi
14692
14693 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
14694 #include <$i>
14695 "
14696 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
14697
14698 fi
14699
14700 break
14701 done
14702 fi
14703 if test "$acx_cv_header_stdint" = stddef.h; then
14704 acx_cv_header_stdint_kind="(using manual detection)"
14705 fi
14706
14707 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
14708 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
14709 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
14710 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
14711 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
14712
14713 # ----------------- Summarize what we found so far
14714
14715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
14716 $as_echo_n "checking what to include in gstdint.h... " >&6; }
14717
14718 case `$as_basename -- gstdint.h ||
14719 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
14720 Xgstdint.h : 'X\(//\)$' \| \
14721 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
14722 $as_echo X/gstdint.h |
14723 sed '/^.*\/\([^/][^/]*\)\/*$/{
14724 s//\1/
14725 q
14726 }
14727 /^X\/\(\/\/\)$/{
14728 s//\1/
14729 q
14730 }
14731 /^X\/\(\/\).*/{
14732 s//\1/
14733 q
14734 }
14735 s/.*/./; q'` in
14736 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
14737 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14738 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
14739 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14740 *) ;;
14741 esac
14742
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
14744 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
14745
14746 # ----------------- done included file, check C basic types --------
14747
14748 # Lacking an uintptr_t? Test size of void *
14749 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
14750 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
14751 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14752 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14753 # This bug is HP SR number 8606223364.
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
14755 $as_echo_n "checking size of void *... " >&6; }
14756 if test "${ac_cv_sizeof_void_p+set}" = set; then :
14757 $as_echo_n "(cached) " >&6
14758 else
14759 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
14760
14761 else
14762 if test "$ac_cv_type_void_p" = yes; then
14763 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14764 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14765 { as_fn_set_status 77
14766 as_fn_error "cannot compute sizeof (void *)
14767 See \`config.log' for more details." "$LINENO" 5; }; }
14768 else
14769 ac_cv_sizeof_void_p=0
14770 fi
14771 fi
14772
14773 fi
14774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
14775 $as_echo "$ac_cv_sizeof_void_p" >&6; }
14776
14777
14778
14779 cat >>confdefs.h <<_ACEOF
14780 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14781 _ACEOF
14782
14783 ;;
14784 esac
14785
14786 # Lacking an uint64_t? Test size of long
14787 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
14788 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
14789 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14790 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14791 # This bug is HP SR number 8606223364.
14792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
14793 $as_echo_n "checking size of long... " >&6; }
14794 if test "${ac_cv_sizeof_long+set}" = set; then :
14795 $as_echo_n "(cached) " >&6
14796 else
14797 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
14798
14799 else
14800 if test "$ac_cv_type_long" = yes; then
14801 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14802 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14803 { as_fn_set_status 77
14804 as_fn_error "cannot compute sizeof (long)
14805 See \`config.log' for more details." "$LINENO" 5; }; }
14806 else
14807 ac_cv_sizeof_long=0
14808 fi
14809 fi
14810
14811 fi
14812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
14813 $as_echo "$ac_cv_sizeof_long" >&6; }
14814
14815
14816
14817 cat >>confdefs.h <<_ACEOF
14818 #define SIZEOF_LONG $ac_cv_sizeof_long
14819 _ACEOF
14820
14821 ;;
14822 esac
14823
14824 if test $acx_cv_header_stdint = stddef.h; then
14825 # Lacking a good header? Test size of everything and deduce all types.
14826 # The cast to long int works around a bug in the HP C Compiler
14827 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14828 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14829 # This bug is HP SR number 8606223364.
14830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
14831 $as_echo_n "checking size of int... " >&6; }
14832 if test "${ac_cv_sizeof_int+set}" = set; then :
14833 $as_echo_n "(cached) " >&6
14834 else
14835 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
14836
14837 else
14838 if test "$ac_cv_type_int" = yes; then
14839 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14840 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14841 { as_fn_set_status 77
14842 as_fn_error "cannot compute sizeof (int)
14843 See \`config.log' for more details." "$LINENO" 5; }; }
14844 else
14845 ac_cv_sizeof_int=0
14846 fi
14847 fi
14848
14849 fi
14850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
14851 $as_echo "$ac_cv_sizeof_int" >&6; }
14852
14853
14854
14855 cat >>confdefs.h <<_ACEOF
14856 #define SIZEOF_INT $ac_cv_sizeof_int
14857 _ACEOF
14858
14859
14860 # The cast to long int works around a bug in the HP C Compiler
14861 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14862 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14863 # This bug is HP SR number 8606223364.
14864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
14865 $as_echo_n "checking size of short... " >&6; }
14866 if test "${ac_cv_sizeof_short+set}" = set; then :
14867 $as_echo_n "(cached) " >&6
14868 else
14869 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
14870
14871 else
14872 if test "$ac_cv_type_short" = yes; then
14873 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14874 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14875 { as_fn_set_status 77
14876 as_fn_error "cannot compute sizeof (short)
14877 See \`config.log' for more details." "$LINENO" 5; }; }
14878 else
14879 ac_cv_sizeof_short=0
14880 fi
14881 fi
14882
14883 fi
14884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
14885 $as_echo "$ac_cv_sizeof_short" >&6; }
14886
14887
14888
14889 cat >>confdefs.h <<_ACEOF
14890 #define SIZEOF_SHORT $ac_cv_sizeof_short
14891 _ACEOF
14892
14893
14894 # The cast to long int works around a bug in the HP C Compiler
14895 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14896 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14897 # This bug is HP SR number 8606223364.
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
14899 $as_echo_n "checking size of char... " >&6; }
14900 if test "${ac_cv_sizeof_char+set}" = set; then :
14901 $as_echo_n "(cached) " >&6
14902 else
14903 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
14904
14905 else
14906 if test "$ac_cv_type_char" = yes; then
14907 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14908 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14909 { as_fn_set_status 77
14910 as_fn_error "cannot compute sizeof (char)
14911 See \`config.log' for more details." "$LINENO" 5; }; }
14912 else
14913 ac_cv_sizeof_char=0
14914 fi
14915 fi
14916
14917 fi
14918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
14919 $as_echo "$ac_cv_sizeof_char" >&6; }
14920
14921
14922
14923 cat >>confdefs.h <<_ACEOF
14924 #define SIZEOF_CHAR $ac_cv_sizeof_char
14925 _ACEOF
14926
14927
14928
14929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
14930 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
14931 case "$ac_cv_sizeof_char" in
14932 1) acx_cv_type_int8_t=char ;;
14933 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
14934 esac
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
14936 $as_echo "$acx_cv_type_int8_t" >&6; }
14937
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
14939 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
14940 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
14941 2:*) acx_cv_type_int16_t=int ;;
14942 *:2) acx_cv_type_int16_t=short ;;
14943 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
14944 esac
14945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
14946 $as_echo "$acx_cv_type_int16_t" >&6; }
14947
14948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
14949 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
14950 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
14951 4:*) acx_cv_type_int32_t=int ;;
14952 *:4) acx_cv_type_int32_t=long ;;
14953 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
14954 esac
14955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
14956 $as_echo "$acx_cv_type_int32_t" >&6; }
14957 fi
14958
14959 # These tests are here to make the output prettier
14960
14961 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
14962 case "$ac_cv_sizeof_long" in
14963 8) acx_cv_type_int64_t=long ;;
14964 esac
14965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
14966 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
14968 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
14969 fi
14970
14971 # Now we can use the above types
14972
14973 if test "$ac_cv_type_uintptr_t" != yes; then
14974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
14975 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
14976 case $ac_cv_sizeof_void_p in
14977 2) acx_cv_type_intptr_t=int16_t ;;
14978 4) acx_cv_type_intptr_t=int32_t ;;
14979 8) acx_cv_type_intptr_t=int64_t ;;
14980 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
14981 esac
14982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
14983 $as_echo "$acx_cv_type_intptr_t" >&6; }
14984 fi
14985
14986 # ----------------- done all checks, emit header -------------
14987 ac_config_commands="$ac_config_commands gstdint.h"
14988
14989
14990
14991
14992 # Check to see if -pthread or -lpthread is needed. Prefer the former.
14993 # In case the pthread.h system header is not found, this test will fail.
14994 XPCFLAGS=""
14995 CFLAGS="$CFLAGS -pthread"
14996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14997 /* end confdefs.h. */
14998 #include <pthread.h>
14999 void *g(void *d) { return NULL; }
15000 int
15001 main ()
15002 {
15003 pthread_t t; pthread_create(&t,NULL,g,NULL);
15004 ;
15005 return 0;
15006 }
15007 _ACEOF
15008 if ac_fn_c_try_link "$LINENO"; then :
15009 XPCFLAGS=" -Wc,-pthread"
15010 else
15011 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
15012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15013 /* end confdefs.h. */
15014 #include <pthread.h>
15015 void *g(void *d) { return NULL; }
15016 int
15017 main ()
15018 {
15019 pthread_t t; pthread_create(&t,NULL,g,NULL);
15020 ;
15021 return 0;
15022 }
15023 _ACEOF
15024 if ac_fn_c_try_link "$LINENO"; then :
15025
15026 else
15027 as_fn_error "Pthreads are required to build libgomp" "$LINENO" 5
15028 fi
15029 rm -f core conftest.err conftest.$ac_objext \
15030 conftest$ac_exeext conftest.$ac_ext
15031 fi
15032 rm -f core conftest.err conftest.$ac_objext \
15033 conftest$ac_exeext conftest.$ac_ext
15034
15035 # Check for functions needed.
15036 for ac_func in getloadavg clock_gettime strtoull
15037 do :
15038 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15039 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15040 eval as_val=\$$as_ac_var
15041 if test "x$as_val" = x""yes; then :
15042 cat >>confdefs.h <<_ACEOF
15043 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15044 _ACEOF
15045
15046 fi
15047 done
15048
15049
15050 # Check for broken semaphore implementation on darwin.
15051 # sem_init returns: sem_init error: Function not implemented.
15052 case "$host" in
15053 *-darwin*)
15054
15055 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
15056
15057 ;;
15058 esac
15059
15060 # Check whether --enable-linux-futex was given.
15061 if test "${enable_linux_futex+set}" = set; then :
15062 enableval=$enable_linux_futex;
15063 case "$enableval" in
15064 yes|no|default) ;;
15065 *) as_fn_error "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
15066 esac
15067
15068 else
15069 enable_linux_futex=default
15070 fi
15071
15072
15073 case "$target" in
15074 *-linux*)
15075 case "$enable_linux_futex" in
15076 default)
15077 # If headers don't have gettid/futex syscalls definition, then
15078 # default to no, otherwise there will be compile time failures.
15079 # Otherwise, default to yes. If we don't detect we are
15080 # compiled/linked against NPTL and not cross-compiling, check
15081 # if programs are run by default against NPTL and if not, issue
15082 # a warning.
15083 enable_linux_futex=no
15084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15085 /* end confdefs.h. */
15086 #include <sys/syscall.h>
15087 int lk;
15088 int
15089 main ()
15090 {
15091 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15092 ;
15093 return 0;
15094 }
15095 _ACEOF
15096 if ac_fn_c_try_link "$LINENO"; then :
15097 save_LIBS="$LIBS"
15098 LIBS="-lpthread $LIBS"
15099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15100 /* end confdefs.h. */
15101 #ifndef _GNU_SOURCE
15102 #define _GNU_SOURCE 1
15103 #endif
15104 #include <pthread.h>
15105 pthread_t th; void *status;
15106 int
15107 main ()
15108 {
15109 pthread_tryjoin_np (th, &status);
15110 ;
15111 return 0;
15112 }
15113 _ACEOF
15114 if ac_fn_c_try_link "$LINENO"; then :
15115 enable_linux_futex=yes
15116 else
15117 if test x$cross_compiling = xno; then
15118 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
15119 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
15120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
15121 If so, please configure with --disable-linux-futex" >&5
15122 $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
15123 If so, please configure with --disable-linux-futex" >&2;}
15124 fi
15125 fi
15126 enable_linux_futex=yes
15127 fi
15128 rm -f core conftest.err conftest.$ac_objext \
15129 conftest$ac_exeext conftest.$ac_ext
15130 LIBS="$save_LIBS"
15131 fi
15132 rm -f core conftest.err conftest.$ac_objext \
15133 conftest$ac_exeext conftest.$ac_ext
15134 ;;
15135 yes)
15136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15137 /* end confdefs.h. */
15138 #include <sys/syscall.h>
15139 int lk;
15140 int
15141 main ()
15142 {
15143 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15144 ;
15145 return 0;
15146 }
15147 _ACEOF
15148 if ac_fn_c_try_link "$LINENO"; then :
15149
15150 else
15151 as_fn_error "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
15152 fi
15153 rm -f core conftest.err conftest.$ac_objext \
15154 conftest$ac_exeext conftest.$ac_ext
15155 ;;
15156 esac
15157 ;;
15158 *)
15159 enable_linux_futex=no
15160 ;;
15161 esac
15162 if test x$enable_linux_futex = xyes; then
15163 :
15164 fi
15165
15166
15167 # Check for pthread_{,attr_}[sg]etaffinity_np.
15168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15169 /* end confdefs.h. */
15170 #define _GNU_SOURCE
15171 #include <pthread.h>
15172 int
15173 main ()
15174 {
15175 cpu_set_t cpuset;
15176 pthread_attr_t attr;
15177 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15178 if (CPU_ISSET (0, &cpuset))
15179 CPU_SET (1, &cpuset);
15180 else
15181 CPU_ZERO (&cpuset);
15182 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15183 pthread_attr_init (&attr);
15184 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15185 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15186 ;
15187 return 0;
15188 }
15189 _ACEOF
15190 if ac_fn_c_try_link "$LINENO"; then :
15191
15192 $as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h
15193
15194 fi
15195 rm -f core conftest.err conftest.$ac_objext \
15196 conftest$ac_exeext conftest.$ac_ext
15197
15198 # At least for glibc, clock_gettime is in librt. But don't pull that
15199 # in if it still doesn't give us the function we want.
15200 if test $ac_cv_func_clock_gettime = no; then
15201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
15202 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
15203 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
15204 $as_echo_n "(cached) " >&6
15205 else
15206 ac_check_lib_save_LIBS=$LIBS
15207 LIBS="-lrt $LIBS"
15208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15209 /* end confdefs.h. */
15210
15211 /* Override any GCC internal prototype to avoid an error.
15212 Use char because int might match the return type of a GCC
15213 builtin and then its argument prototype would still apply. */
15214 #ifdef __cplusplus
15215 extern "C"
15216 #endif
15217 char clock_gettime ();
15218 int
15219 main ()
15220 {
15221 return clock_gettime ();
15222 ;
15223 return 0;
15224 }
15225 _ACEOF
15226 if ac_fn_c_try_link "$LINENO"; then :
15227 ac_cv_lib_rt_clock_gettime=yes
15228 else
15229 ac_cv_lib_rt_clock_gettime=no
15230 fi
15231 rm -f core conftest.err conftest.$ac_objext \
15232 conftest$ac_exeext conftest.$ac_ext
15233 LIBS=$ac_check_lib_save_LIBS
15234 fi
15235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
15236 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15237 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
15238 LIBS="-lrt $LIBS"
15239
15240 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
15241
15242 fi
15243
15244 fi
15245
15246 # See if we support thread-local storage.
15247
15248
15249 # Check whether --enable-tls was given.
15250 if test "${enable_tls+set}" = set; then :
15251 enableval=$enable_tls;
15252 case "$enableval" in
15253 yes|no) ;;
15254 *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
15255 esac
15256
15257 else
15258 enable_tls=yes
15259 fi
15260
15261
15262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
15263 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
15264 if test "${gcc_cv_have_tls+set}" = set; then :
15265 $as_echo_n "(cached) " >&6
15266 else
15267
15268 if test "$cross_compiling" = yes; then :
15269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15270 /* end confdefs.h. */
15271 __thread int a; int b; int main() { return a = b; }
15272 _ACEOF
15273 if ac_fn_c_try_link "$LINENO"; then :
15274 chktls_save_LDFLAGS="$LDFLAGS"
15275 case $host in
15276 *-*-linux*)
15277 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
15278 ;;
15279 esac
15280 chktls_save_CFLAGS="$CFLAGS"
15281 CFLAGS="-fPIC $CFLAGS"
15282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15283 /* end confdefs.h. */
15284 int f() { return 0; }
15285 _ACEOF
15286 if ac_fn_c_try_link "$LINENO"; then :
15287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15288 /* end confdefs.h. */
15289 __thread int a; int b; int f() { return a = b; }
15290 _ACEOF
15291 if ac_fn_c_try_link "$LINENO"; then :
15292 gcc_cv_have_tls=yes
15293 else
15294 gcc_cv_have_tls=no
15295 fi
15296 rm -f core conftest.err conftest.$ac_objext \
15297 conftest$ac_exeext conftest.$ac_ext
15298 else
15299 gcc_cv_have_tls=yes
15300 fi
15301 rm -f core conftest.err conftest.$ac_objext \
15302 conftest$ac_exeext conftest.$ac_ext
15303 CFLAGS="$chktls_save_CFLAGS"
15304 LDFLAGS="$chktls_save_LDFLAGS"
15305 else
15306 gcc_cv_have_tls=no
15307 fi
15308 rm -f core conftest.err conftest.$ac_objext \
15309 conftest$ac_exeext conftest.$ac_ext
15310
15311
15312 else
15313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15314 /* end confdefs.h. */
15315 __thread int a; int b; int main() { return a = b; }
15316 _ACEOF
15317 if ac_fn_c_try_run "$LINENO"; then :
15318 chktls_save_LDFLAGS="$LDFLAGS"
15319 LDFLAGS="-static $LDFLAGS"
15320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15321 /* end confdefs.h. */
15322 int main() { return 0; }
15323 _ACEOF
15324 if ac_fn_c_try_link "$LINENO"; then :
15325 if test "$cross_compiling" = yes; then :
15326 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15327 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15328 as_fn_error "cannot run test program while cross compiling
15329 See \`config.log' for more details." "$LINENO" 5; }
15330 else
15331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15332 /* end confdefs.h. */
15333 __thread int a; int b; int main() { return a = b; }
15334 _ACEOF
15335 if ac_fn_c_try_run "$LINENO"; then :
15336 gcc_cv_have_tls=yes
15337 else
15338 gcc_cv_have_tls=no
15339 fi
15340 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15341 conftest.$ac_objext conftest.beam conftest.$ac_ext
15342 fi
15343
15344 else
15345 gcc_cv_have_tls=yes
15346 fi
15347 rm -f core conftest.err conftest.$ac_objext \
15348 conftest$ac_exeext conftest.$ac_ext
15349 LDFLAGS="$chktls_save_LDFLAGS"
15350 if test $gcc_cv_have_tls = yes; then
15351 chktls_save_CFLAGS="$CFLAGS"
15352 thread_CFLAGS=failed
15353 for flag in '' '-pthread' '-lpthread'; do
15354 CFLAGS="$flag $chktls_save_CFLAGS"
15355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15356 /* end confdefs.h. */
15357 #include <pthread.h>
15358 void *g(void *d) { return NULL; }
15359 int
15360 main ()
15361 {
15362 pthread_t t; pthread_create(&t,NULL,g,NULL);
15363 ;
15364 return 0;
15365 }
15366 _ACEOF
15367 if ac_fn_c_try_link "$LINENO"; then :
15368 thread_CFLAGS="$flag"
15369 fi
15370 rm -f core conftest.err conftest.$ac_objext \
15371 conftest$ac_exeext conftest.$ac_ext
15372 if test "X$thread_CFLAGS" != Xfailed; then
15373 break
15374 fi
15375 done
15376 CFLAGS="$chktls_save_CFLAGS"
15377 if test "X$thread_CFLAGS" != Xfailed; then
15378 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
15379 if test "$cross_compiling" = yes; then :
15380 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15381 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15382 as_fn_error "cannot run test program while cross compiling
15383 See \`config.log' for more details." "$LINENO" 5; }
15384 else
15385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15386 /* end confdefs.h. */
15387 #include <pthread.h>
15388 __thread int a;
15389 static int *volatile a_in_other_thread;
15390 static void *
15391 thread_func (void *arg)
15392 {
15393 a_in_other_thread = &a;
15394 return (void *)0;
15395 }
15396 int
15397 main ()
15398 {
15399 pthread_t thread;
15400 void *thread_retval;
15401 int *volatile a_in_main_thread;
15402 a_in_main_thread = &a;
15403 if (pthread_create (&thread, (pthread_attr_t *)0,
15404 thread_func, (void *)0))
15405 return 0;
15406 if (pthread_join (thread, &thread_retval))
15407 return 0;
15408 return (a_in_other_thread == a_in_main_thread);
15409 ;
15410 return 0;
15411 }
15412 _ACEOF
15413 if ac_fn_c_try_run "$LINENO"; then :
15414 gcc_cv_have_tls=yes
15415 else
15416 gcc_cv_have_tls=no
15417 fi
15418 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15419 conftest.$ac_objext conftest.beam conftest.$ac_ext
15420 fi
15421
15422 CFLAGS="$chktls_save_CFLAGS"
15423 fi
15424 fi
15425 else
15426 gcc_cv_have_tls=no
15427 fi
15428 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15429 conftest.$ac_objext conftest.beam conftest.$ac_ext
15430 fi
15431
15432 fi
15433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
15434 $as_echo "$gcc_cv_have_tls" >&6; }
15435 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
15436
15437 $as_echo "#define HAVE_TLS 1" >>confdefs.h
15438
15439 fi
15440
15441 # See what sort of export controls are availible.
15442
15443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
15444 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
15445 if test "${libgomp_cv_have_attribute_visibility+set}" = set; then :
15446 $as_echo_n "(cached) " >&6
15447 else
15448
15449 save_CFLAGS="$CFLAGS"
15450 CFLAGS="$CFLAGS -Werror"
15451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15452 /* end confdefs.h. */
15453 void __attribute__((visibility("hidden"))) foo(void) { }
15454 int
15455 main ()
15456 {
15457
15458 ;
15459 return 0;
15460 }
15461 _ACEOF
15462 if ac_fn_c_try_compile "$LINENO"; then :
15463 libgomp_cv_have_attribute_visibility=yes
15464 else
15465 libgomp_cv_have_attribute_visibility=no
15466 fi
15467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15468 CFLAGS="$save_CFLAGS"
15469 fi
15470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_visibility" >&5
15471 $as_echo "$libgomp_cv_have_attribute_visibility" >&6; }
15472 if test $libgomp_cv_have_attribute_visibility = yes; then
15473
15474 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
15475
15476 fi
15477
15478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
15479 $as_echo_n "checking whether the target supports dllexport... " >&6; }
15480 if test "${libgomp_cv_have_attribute_dllexport+set}" = set; then :
15481 $as_echo_n "(cached) " >&6
15482 else
15483
15484 save_CFLAGS="$CFLAGS"
15485 CFLAGS="$CFLAGS -Werror"
15486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15487 /* end confdefs.h. */
15488 void __attribute__((dllexport)) foo(void) { }
15489 int
15490 main ()
15491 {
15492
15493 ;
15494 return 0;
15495 }
15496 _ACEOF
15497 if ac_fn_c_try_compile "$LINENO"; then :
15498 libgomp_cv_have_attribute_dllexport=yes
15499 else
15500 libgomp_cv_have_attribute_dllexport=no
15501 fi
15502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15503 CFLAGS="$save_CFLAGS"
15504 fi
15505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_dllexport" >&5
15506 $as_echo "$libgomp_cv_have_attribute_dllexport" >&6; }
15507 if test $libgomp_cv_have_attribute_dllexport = yes; then
15508
15509 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
15510
15511 fi
15512
15513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
15514 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
15515 if test "${libgomp_cv_have_attribute_alias+set}" = set; then :
15516 $as_echo_n "(cached) " >&6
15517 else
15518
15519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15520 /* end confdefs.h. */
15521
15522 void foo(void) { }
15523 extern void bar(void) __attribute__((alias("foo")));
15524 int
15525 main ()
15526 {
15527 bar();
15528 ;
15529 return 0;
15530 }
15531 _ACEOF
15532 if ac_fn_c_try_link "$LINENO"; then :
15533 libgomp_cv_have_attribute_alias=yes
15534 else
15535 libgomp_cv_have_attribute_alias=no
15536 fi
15537 rm -f core conftest.err conftest.$ac_objext \
15538 conftest$ac_exeext conftest.$ac_ext
15539 fi
15540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_alias" >&5
15541 $as_echo "$libgomp_cv_have_attribute_alias" >&6; }
15542 if test $libgomp_cv_have_attribute_alias = yes; then
15543
15544 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
15545
15546 fi
15547
15548
15549 # Check whether --with-gnu-ld was given.
15550 if test "${with_gnu_ld+set}" = set; then :
15551 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15552 else
15553 with_gnu_ld=no
15554 fi
15555
15556 ac_prog=ld
15557 if test "$GCC" = yes; then
15558 # Check if gcc -print-prog-name=ld gives a path.
15559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15560 $as_echo_n "checking for ld used by $CC... " >&6; }
15561 case $host in
15562 *-*-mingw*)
15563 # gcc leaves a trailing carriage return which upsets mingw
15564 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15565 *)
15566 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15567 esac
15568 case $ac_prog in
15569 # Accept absolute paths.
15570 [\\/]* | ?:[\\/]*)
15571 re_direlt='/[^/][^/]*/\.\./'
15572 # Canonicalize the pathname of ld
15573 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15574 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15575 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15576 done
15577 test -z "$LD" && LD="$ac_prog"
15578 ;;
15579 "")
15580 # If it fails, then pretend we aren't using GCC.
15581 ac_prog=ld
15582 ;;
15583 *)
15584 # If it is relative, then search for the first ld in PATH.
15585 with_gnu_ld=unknown
15586 ;;
15587 esac
15588 elif test "$with_gnu_ld" = yes; then
15589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15590 $as_echo_n "checking for GNU ld... " >&6; }
15591 else
15592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15593 $as_echo_n "checking for non-GNU ld... " >&6; }
15594 fi
15595 if test "${lt_cv_path_LD+set}" = set; then :
15596 $as_echo_n "(cached) " >&6
15597 else
15598 if test -z "$LD"; then
15599 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15600 for ac_dir in $PATH; do
15601 IFS="$lt_save_ifs"
15602 test -z "$ac_dir" && ac_dir=.
15603 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15604 lt_cv_path_LD="$ac_dir/$ac_prog"
15605 # Check to see if the program is GNU ld. I'd rather use --version,
15606 # but apparently some variants of GNU ld only accept -v.
15607 # Break only if it was the GNU/non-GNU ld that we prefer.
15608 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15609 *GNU* | *'with BFD'*)
15610 test "$with_gnu_ld" != no && break
15611 ;;
15612 *)
15613 test "$with_gnu_ld" != yes && break
15614 ;;
15615 esac
15616 fi
15617 done
15618 IFS="$lt_save_ifs"
15619 else
15620 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15621 fi
15622 fi
15623
15624 LD="$lt_cv_path_LD"
15625 if test -n "$LD"; then
15626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15627 $as_echo "$LD" >&6; }
15628 else
15629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15630 $as_echo "no" >&6; }
15631 fi
15632 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
15633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15634 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15635 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
15636 $as_echo_n "(cached) " >&6
15637 else
15638 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15639 case `$LD -v 2>&1 </dev/null` in
15640 *GNU* | *'with BFD'*)
15641 lt_cv_prog_gnu_ld=yes
15642 ;;
15643 *)
15644 lt_cv_prog_gnu_ld=no
15645 ;;
15646 esac
15647 fi
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15649 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15650 with_gnu_ld=$lt_cv_prog_gnu_ld
15651
15652
15653
15654
15655
15656
15657
15658 # If we're not using GNU ld, then there's no point in even trying these
15659 # tests. Check for that first. We should have already tested for gld
15660 # by now (in libtool), but require it now just to be safe...
15661 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
15662 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
15663
15664
15665
15666 # The name set by libtool depends on the version of libtool. Shame on us
15667 # for depending on an impl detail, but c'est la vie. Older versions used
15668 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
15669 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
15670 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
15671 # set (hence we're using an older libtool), then set it.
15672 if test x${with_gnu_ld+set} != xset; then
15673 if test x${ac_cv_prog_gnu_ld+set} != xset; then
15674 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
15675 with_gnu_ld=no
15676 else
15677 with_gnu_ld=$ac_cv_prog_gnu_ld
15678 fi
15679 fi
15680
15681 # Start by getting the version number. I think the libtool test already
15682 # does some of this, but throws away the result.
15683 libgomp_ld_is_gold=no
15684 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
15685 libgomp_ld_is_gold=yes
15686 fi
15687
15688 ldver=`$LD --version 2>/dev/null |
15689 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'`
15690
15691 libgomp_gnu_ld_version=`echo $ldver | \
15692 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
15693
15694 # Set --gc-sections.
15695 if test "$with_gnu_ld" = "notbroken"; then
15696 # GNU ld it is! Joy and bunny rabbits!
15697
15698 # All these tests are for C++; save the language and the compiler flags.
15699 # Need to do this so that g++ won't try to link in libstdc++
15700 ac_test_CFLAGS="${CFLAGS+set}"
15701 ac_save_CFLAGS="$CFLAGS"
15702 CFLAGS='-x c++ -Wl,--gc-sections'
15703
15704 # Check for -Wl,--gc-sections
15705 # XXX This test is broken at the moment, as symbols required for linking
15706 # are now in libsupc++ (not built yet). In addition, this test has
15707 # cored on solaris in the past. In addition, --gc-sections doesn't
15708 # really work at the moment (keeps on discarding used sections, first
15709 # .eh_frame and now some of the glibc sections for iconv).
15710 # Bzzzzt. Thanks for playing, maybe next time.
15711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
15712 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
15713 if test "$cross_compiling" = yes; then :
15714 ac_sectionLDflags=yes
15715 else
15716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15717 /* end confdefs.h. */
15718
15719 int main(void)
15720 {
15721 try { throw 1; }
15722 catch (...) { };
15723 return 0;
15724 }
15725
15726 _ACEOF
15727 if ac_fn_c_try_run "$LINENO"; then :
15728 ac_sectionLDflags=yes
15729 else
15730 ac_sectionLDflags=no
15731 fi
15732 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15733 conftest.$ac_objext conftest.beam conftest.$ac_ext
15734 fi
15735
15736 if test "$ac_test_CFLAGS" = set; then
15737 CFLAGS="$ac_save_CFLAGS"
15738 else
15739 # this is the suspicious part
15740 CFLAGS=''
15741 fi
15742 if test "$ac_sectionLDflags" = "yes"; then
15743 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
15744 fi
15745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
15746 $as_echo "$ac_sectionLDflags" >&6; }
15747 fi
15748
15749 # Set linker optimization flags.
15750 if test x"$with_gnu_ld" = x"yes"; then
15751 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
15752 fi
15753
15754
15755
15756
15757
15758
15759 # Check whether --enable-symvers was given.
15760 if test "${enable_symvers+set}" = set; then :
15761 enableval=$enable_symvers;
15762 case "$enableval" in
15763 yes|no|gnu|sun) ;;
15764 *) as_fn_error "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
15765 esac
15766
15767 else
15768 enable_symvers=yes
15769 fi
15770
15771
15772
15773 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
15774 # don't know enough about $LD to do tricks...
15775
15776 # FIXME The following test is too strict, in theory.
15777 if test $enable_shared = no || test "x$LD" = x; then
15778 enable_symvers=no
15779 else
15780 if test $with_gnu_ld = yes ; then
15781 enable_symvers=gnu
15782 else
15783 case ${target_os} in
15784 # Sun symbol versioning exists since Solaris 2.5.
15785 solaris2.[5-9]* | solaris2.1[0-9]*)
15786 enable_symvers=sun ;;
15787 *)
15788 enable_symvers=no ;;
15789 esac
15790 fi
15791 fi
15792
15793 # Check if 'sun' was requested on non-Solaris 2 platforms.
15794 if test x$enable_symvers = xsun ; then
15795 case ${target_os} in
15796 solaris2*)
15797 # All fine.
15798 ;;
15799 *)
15800 # Unlikely to work.
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
15802 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
15803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
15804 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
15805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15806 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15807 enable_symvers=no
15808 ;;
15809 esac
15810 fi
15811
15812 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
15813 if test $enable_symvers != no; then
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
15815 $as_echo_n "checking for shared libgcc... " >&6; }
15816 ac_save_CFLAGS="$CFLAGS"
15817 CFLAGS=' -lgcc_s'
15818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15819 /* end confdefs.h. */
15820
15821 int
15822 main ()
15823 {
15824 return 0;
15825 ;
15826 return 0;
15827 }
15828 _ACEOF
15829 if ac_fn_c_try_link "$LINENO"; then :
15830 libgomp_shared_libgcc=yes
15831 else
15832 libgomp_shared_libgcc=no
15833 fi
15834 rm -f core conftest.err conftest.$ac_objext \
15835 conftest$ac_exeext conftest.$ac_ext
15836 CFLAGS="$ac_save_CFLAGS"
15837 if test $libgomp_shared_libgcc = no; then
15838 cat > conftest.c <<EOF
15839 int main (void) { return 0; }
15840 EOF
15841 libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
15842 -shared -shared-libgcc -o conftest.so \
15843 conftest.c -v 2>&1 >/dev/null \
15844 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
15845 rm -f conftest.c conftest.so
15846 if test x${libgomp_libgcc_s_suffix+set} = xset; then
15847 CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
15848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15849 /* end confdefs.h. */
15850
15851 int
15852 main ()
15853 {
15854 return 0;
15855 ;
15856 return 0;
15857 }
15858 _ACEOF
15859 if ac_fn_c_try_link "$LINENO"; then :
15860 libgomp_shared_libgcc=yes
15861 fi
15862 rm -f core conftest.err conftest.$ac_objext \
15863 conftest$ac_exeext conftest.$ac_ext
15864 CFLAGS="$ac_save_CFLAGS"
15865 fi
15866 fi
15867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_shared_libgcc" >&5
15868 $as_echo "$libgomp_shared_libgcc" >&6; }
15869 fi
15870
15871 # For GNU ld, we need at least this version. The format is described in
15872 # LIBGOMP_CHECK_LINKER_FEATURES above.
15873 libgomp_min_gnu_ld_version=21400
15874 # XXXXXXXXXXX libgomp_gnu_ld_version=21390
15875
15876 # Check to see if unspecified "yes" value can win, given results above.
15877 # Change "yes" into either "no" or a style name.
15878 if test $enable_symvers != no && test $libgomp_shared_libgcc = yes; then
15879 if test $with_gnu_ld = yes; then
15880 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
15881 enable_symvers=gnu
15882 elif test $libgomp_ld_is_gold = yes ; then
15883 enable_symvers=gnu
15884 else
15885 # The right tools, the right setup, but too old. Fallbacks?
15886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
15887 $as_echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
15888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
15889 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
15890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
15891 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
15892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
15893 $as_echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
15894 if test $libgomp_gnu_ld_version -ge 21200 ; then
15895 # Globbing fix is present, proper block support is not.
15896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15897 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15898 enable_symvers=no
15899 else
15900 # 2.11 or older.
15901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15902 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15903 enable_symvers=no
15904 fi
15905 fi
15906 elif test $enable_symvers = sun; then
15907 : All interesting versions of Sun ld support sun style symbol versioning.
15908 else
15909 # just fail for now
15910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
15911 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
15912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
15913 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
15914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
15915 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
15916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15917 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15918 enable_symvers=no
15919 fi
15920 fi
15921
15922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports .symver directive" >&5
15923 $as_echo_n "checking whether the target supports .symver directive... " >&6; }
15924 if test "${libgomp_cv_have_as_symver_directive+set}" = set; then :
15925 $as_echo_n "(cached) " >&6
15926 else
15927
15928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15929 /* end confdefs.h. */
15930 void foo (void); __asm (".symver foo, bar@SYMVER");
15931 int
15932 main ()
15933 {
15934
15935 ;
15936 return 0;
15937 }
15938 _ACEOF
15939 if ac_fn_c_try_compile "$LINENO"; then :
15940 libgomp_cv_have_as_symver_directive=yes
15941 else
15942 libgomp_cv_have_as_symver_directive=no
15943 fi
15944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15945 fi
15946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_as_symver_directive" >&5
15947 $as_echo "$libgomp_cv_have_as_symver_directive" >&6; }
15948 if test $libgomp_cv_have_as_symver_directive = yes; then
15949
15950 $as_echo "#define HAVE_AS_SYMVER_DIRECTIVE 1" >>confdefs.h
15951
15952 fi
15953
15954 if test $enable_symvers != no; then
15955 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
15956 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
15957 else
15958 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
15959 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
15960 fi
15961
15962 if test $enable_symvers = gnu; then
15963 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE=
15964 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
15965 else
15966 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
15967 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE=
15968 fi
15969
15970 if test $enable_symvers = sun; then
15971 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE=
15972 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
15973 else
15974 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
15975 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE=
15976 fi
15977
15978 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
15979 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
15980
15981 if test $enable_symvers != no ; then
15982 case ${target_os} in
15983 # The Solaris 2 runtime linker doesn't support the GNU extension of
15984 # binding the same symbol to different versions
15985 solaris2*)
15986 symvers_renaming=no ;;
15987 # Other platforms with GNU symbol versioning (GNU/Linux, more?) do.
15988 *)
15989
15990 $as_echo "#define HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT 1" >>confdefs.h
15991
15992 symvers_renaming=yes ;;
15993 esac
15994 fi
15995 if test $symvers_renaming = no; then
15996 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2_TRUE=
15997 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2_FALSE='#'
15998 else
15999 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2_TRUE='#'
16000 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2_FALSE=
16001 fi
16002
16003
16004
16005 if test $enable_symvers = gnu; then
16006
16007 $as_echo "#define LIBGOMP_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
16008
16009 fi
16010
16011 # Get target configury.
16012 . ${srcdir}/configure.tgt
16013 CFLAGS="$save_CFLAGS $XCFLAGS"
16014
16015 # Check for __sync_val_compare_and_swap, but only after the target has
16016 # had a chance to set XCFLAGS.
16017
16018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
16019 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
16020 if test "${libgomp_cv_have_sync_builtins+set}" = set; then :
16021 $as_echo_n "(cached) " >&6
16022 else
16023
16024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16025 /* end confdefs.h. */
16026
16027 int
16028 main ()
16029 {
16030 int foo; __sync_val_compare_and_swap(&foo, 0, 1);
16031 ;
16032 return 0;
16033 }
16034 _ACEOF
16035 if ac_fn_c_try_link "$LINENO"; then :
16036 libgomp_cv_have_sync_builtins=yes
16037 else
16038 libgomp_cv_have_sync_builtins=no
16039 fi
16040 rm -f core conftest.err conftest.$ac_objext \
16041 conftest$ac_exeext conftest.$ac_ext
16042 fi
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_sync_builtins" >&5
16044 $as_echo "$libgomp_cv_have_sync_builtins" >&6; }
16045 if test $libgomp_cv_have_sync_builtins = yes; then
16046
16047 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
16048
16049 fi
16050
16051 XCFLAGS="$XCFLAGS$XPCFLAGS"
16052
16053
16054
16055
16056
16057 # Cleanup and exit.
16058 CFLAGS="$save_CFLAGS"
16059 cat >confcache <<\_ACEOF
16060 # This file is a shell script that caches the results of configure
16061 # tests run on this system so they can be shared between configure
16062 # scripts and configure runs, see configure's option --config-cache.
16063 # It is not useful on other systems. If it contains results you don't
16064 # want to keep, you may remove or edit it.
16065 #
16066 # config.status only pays attention to the cache file if you give it
16067 # the --recheck option to rerun configure.
16068 #
16069 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16070 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16071 # following values.
16072
16073 _ACEOF
16074
16075 # The following way of writing the cache mishandles newlines in values,
16076 # but we know of no workaround that is simple, portable, and efficient.
16077 # So, we kill variables containing newlines.
16078 # Ultrix sh set writes to stderr and can't be redirected directly,
16079 # and sets the high bit in the cache file unless we assign to the vars.
16080 (
16081 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16082 eval ac_val=\$$ac_var
16083 case $ac_val in #(
16084 *${as_nl}*)
16085 case $ac_var in #(
16086 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16087 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16088 esac
16089 case $ac_var in #(
16090 _ | IFS | as_nl) ;; #(
16091 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16092 *) { eval $ac_var=; unset $ac_var;} ;;
16093 esac ;;
16094 esac
16095 done
16096
16097 (set) 2>&1 |
16098 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16099 *${as_nl}ac_space=\ *)
16100 # `set' does not quote correctly, so add quotes: double-quote
16101 # substitution turns \\\\ into \\, and sed turns \\ into \.
16102 sed -n \
16103 "s/'/'\\\\''/g;
16104 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16105 ;; #(
16106 *)
16107 # `set' quotes correctly as required by POSIX, so do not add quotes.
16108 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16109 ;;
16110 esac |
16111 sort
16112 ) |
16113 sed '
16114 /^ac_cv_env_/b end
16115 t clear
16116 :clear
16117 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16118 t end
16119 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16120 :end' >>confcache
16121 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16122 if test -w "$cache_file"; then
16123 test "x$cache_file" != "x/dev/null" &&
16124 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16125 $as_echo "$as_me: updating cache $cache_file" >&6;}
16126 cat confcache >$cache_file
16127 else
16128 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16129 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16130 fi
16131 fi
16132 rm -f confcache
16133
16134 if test ${multilib} = yes; then
16135 multilib_arg="--enable-multilib"
16136 else
16137 multilib_arg=
16138 fi
16139
16140 # Set up the set of libraries that we need to link against for libgomp.
16141 # Note that the GOMP_SELF_SPEC in gcc.c will force -pthread for -fopenmp,
16142 # which will force linkage against -lpthread (or equivalent for the system).
16143 # That's not 100% ideal, but about the best we can do easily.
16144 if test $enable_shared = yes; then
16145 link_gomp="-lgomp %{static: $LIBS}"
16146 else
16147 link_gomp="-lgomp $LIBS"
16148 fi
16149
16150
16151 if test "$ac_cv_fc_compiler_gnu" = yes; then
16152 USE_FORTRAN_TRUE=
16153 USE_FORTRAN_FALSE='#'
16154 else
16155 USE_FORTRAN_TRUE='#'
16156 USE_FORTRAN_FALSE=
16157 fi
16158
16159
16160 # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
16161 # and export AC_COMPUTE_INT. If that happens, then we'll need to remove
16162 # the underscore here and update the PREREQ. If it doesn't, then we'll
16163 # need to copy this macro to our acinclude.m4.
16164 save_CFLAGS="$CFLAGS"
16165 for i in $config_path; do
16166 if test -f $srcdir/config/$i/omp-lock.h; then
16167 CFLAGS="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h"
16168 break
16169 fi
16170 done
16171
16172 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_t)" "OMP_LOCK_SIZE" ""; then :
16173
16174 else
16175 as_fn_error "unsupported system, cannot find sizeof (omp_lock_t)" "$LINENO" 5
16176 fi
16177
16178
16179 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_t)" "OMP_LOCK_ALIGN" ""; then :
16180
16181 fi
16182
16183
16184 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_t)" "OMP_NEST_LOCK_SIZE" ""; then :
16185
16186 fi
16187
16188
16189 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_t)" "OMP_NEST_LOCK_ALIGN" ""; then :
16190
16191 fi
16192
16193
16194 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_25_t)" "OMP_LOCK_25_SIZE" ""; then :
16195
16196 else
16197 as_fn_error "unsupported system, cannot find sizeof (omp_lock_25_t)" "$LINENO" 5
16198 fi
16199
16200
16201 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_25_t)" "OMP_LOCK_25_ALIGN" ""; then :
16202
16203 fi
16204
16205
16206 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_SIZE" ""; then :
16207
16208 fi
16209
16210
16211 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_ALIGN" ""; then :
16212
16213 fi
16214
16215
16216
16217 # If the lock fits in an integer, then arrange for Fortran to use that
16218 # integer. If it doesn't, then arrange for Fortran to use a pointer.
16219 # Except that we don't have a way at present to multi-lib the installed
16220 # Fortran modules, so we assume 8 bytes for pointers, regardless of the
16221 # actual target.
16222 OMP_LOCK_KIND=$OMP_LOCK_SIZE
16223 OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
16224 if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
16225 OMP_LOCK_KIND=8
16226 fi
16227 if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
16228 OMP_NEST_LOCK_KIND=8
16229 fi
16230 OMP_LOCK_25_KIND=$OMP_LOCK_25_SIZE
16231 OMP_NEST_LOCK_25_KIND=$OMP_NEST_LOCK_25_SIZE
16232 if test $OMP_LOCK_25_SIZE -gt 8 || test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then
16233 OMP_LOCK_25_KIND=8
16234 fi
16235 if test $OMP_NEST_LOCK_25_SIZE -gt 8 || test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then
16236 OMP_NEST_LOCK_25_KIND=8
16237 fi
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251 CFLAGS="$save_CFLAGS"
16252
16253 ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
16254
16255 ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
16256
16257 cat >confcache <<\_ACEOF
16258 # This file is a shell script that caches the results of configure
16259 # tests run on this system so they can be shared between configure
16260 # scripts and configure runs, see configure's option --config-cache.
16261 # It is not useful on other systems. If it contains results you don't
16262 # want to keep, you may remove or edit it.
16263 #
16264 # config.status only pays attention to the cache file if you give it
16265 # the --recheck option to rerun configure.
16266 #
16267 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16268 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16269 # following values.
16270
16271 _ACEOF
16272
16273 # The following way of writing the cache mishandles newlines in values,
16274 # but we know of no workaround that is simple, portable, and efficient.
16275 # So, we kill variables containing newlines.
16276 # Ultrix sh set writes to stderr and can't be redirected directly,
16277 # and sets the high bit in the cache file unless we assign to the vars.
16278 (
16279 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16280 eval ac_val=\$$ac_var
16281 case $ac_val in #(
16282 *${as_nl}*)
16283 case $ac_var in #(
16284 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16285 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16286 esac
16287 case $ac_var in #(
16288 _ | IFS | as_nl) ;; #(
16289 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16290 *) { eval $ac_var=; unset $ac_var;} ;;
16291 esac ;;
16292 esac
16293 done
16294
16295 (set) 2>&1 |
16296 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16297 *${as_nl}ac_space=\ *)
16298 # `set' does not quote correctly, so add quotes: double-quote
16299 # substitution turns \\\\ into \\, and sed turns \\ into \.
16300 sed -n \
16301 "s/'/'\\\\''/g;
16302 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16303 ;; #(
16304 *)
16305 # `set' quotes correctly as required by POSIX, so do not add quotes.
16306 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16307 ;;
16308 esac |
16309 sort
16310 ) |
16311 sed '
16312 /^ac_cv_env_/b end
16313 t clear
16314 :clear
16315 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16316 t end
16317 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16318 :end' >>confcache
16319 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16320 if test -w "$cache_file"; then
16321 test "x$cache_file" != "x/dev/null" &&
16322 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16323 $as_echo "$as_me: updating cache $cache_file" >&6;}
16324 cat confcache >$cache_file
16325 else
16326 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16327 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16328 fi
16329 fi
16330 rm -f confcache
16331
16332 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16333 # Let make expand exec_prefix.
16334 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16335
16336 DEFS=-DHAVE_CONFIG_H
16337
16338 ac_libobjs=
16339 ac_ltlibobjs=
16340 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16341 # 1. Remove the extension, and $U if already installed.
16342 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16343 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16344 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16345 # will be set to the directory where LIBOBJS objects are built.
16346 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16347 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16348 done
16349 LIBOBJS=$ac_libobjs
16350
16351 LTLIBOBJS=$ac_ltlibobjs
16352
16353
16354 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
16355 as_fn_error "conditional \"GENINSRC\" was never defined.
16356 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16357 fi
16358 if test -n "$EXEEXT"; then
16359 am__EXEEXT_TRUE=
16360 am__EXEEXT_FALSE='#'
16361 else
16362 am__EXEEXT_TRUE='#'
16363 am__EXEEXT_FALSE=
16364 fi
16365
16366 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16367 as_fn_error "conditional \"AMDEP\" was never defined.
16368 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16369 fi
16370 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16371 as_fn_error "conditional \"am__fastdepCC\" was never defined.
16372 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16373 fi
16374 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
16375 as_fn_error "conditional \"BUILD_INFO\" was never defined.
16376 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16377 fi
16378 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16379 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
16380 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16381 fi
16382 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
16383 as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
16384 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16385 fi
16386 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
16387 as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
16388 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16389 fi
16390 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
16391 as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
16392 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16393 fi
16394 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2_FALSE}"; then
16395 as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2\" was never defined.
16396 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16397 fi
16398 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
16399 as_fn_error "conditional \"USE_FORTRAN\" was never defined.
16400 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16401 fi
16402
16403 : ${CONFIG_STATUS=./config.status}
16404 ac_write_fail=0
16405 ac_clean_files_save=$ac_clean_files
16406 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16407 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16408 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16409 as_write_fail=0
16410 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16411 #! $SHELL
16412 # Generated by $as_me.
16413 # Run this file to recreate the current configuration.
16414 # Compiler output produced by configure, useful for debugging
16415 # configure, is in config.log if it exists.
16416
16417 debug=false
16418 ac_cs_recheck=false
16419 ac_cs_silent=false
16420
16421 SHELL=\${CONFIG_SHELL-$SHELL}
16422 export SHELL
16423 _ASEOF
16424 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16425 ## -------------------- ##
16426 ## M4sh Initialization. ##
16427 ## -------------------- ##
16428
16429 # Be more Bourne compatible
16430 DUALCASE=1; export DUALCASE # for MKS sh
16431 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16432 emulate sh
16433 NULLCMD=:
16434 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16435 # is contrary to our usage. Disable this feature.
16436 alias -g '${1+"$@"}'='"$@"'
16437 setopt NO_GLOB_SUBST
16438 else
16439 case `(set -o) 2>/dev/null` in #(
16440 *posix*) :
16441 set -o posix ;; #(
16442 *) :
16443 ;;
16444 esac
16445 fi
16446
16447
16448 as_nl='
16449 '
16450 export as_nl
16451 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16452 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16453 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16454 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16455 # Prefer a ksh shell builtin over an external printf program on Solaris,
16456 # but without wasting forks for bash or zsh.
16457 if test -z "$BASH_VERSION$ZSH_VERSION" \
16458 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16459 as_echo='print -r --'
16460 as_echo_n='print -rn --'
16461 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16462 as_echo='printf %s\n'
16463 as_echo_n='printf %s'
16464 else
16465 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16466 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16467 as_echo_n='/usr/ucb/echo -n'
16468 else
16469 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16470 as_echo_n_body='eval
16471 arg=$1;
16472 case $arg in #(
16473 *"$as_nl"*)
16474 expr "X$arg" : "X\\(.*\\)$as_nl";
16475 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16476 esac;
16477 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16478 '
16479 export as_echo_n_body
16480 as_echo_n='sh -c $as_echo_n_body as_echo'
16481 fi
16482 export as_echo_body
16483 as_echo='sh -c $as_echo_body as_echo'
16484 fi
16485
16486 # The user is always right.
16487 if test "${PATH_SEPARATOR+set}" != set; then
16488 PATH_SEPARATOR=:
16489 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16490 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16491 PATH_SEPARATOR=';'
16492 }
16493 fi
16494
16495
16496 # IFS
16497 # We need space, tab and new line, in precisely that order. Quoting is
16498 # there to prevent editors from complaining about space-tab.
16499 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16500 # splitting by setting IFS to empty value.)
16501 IFS=" "" $as_nl"
16502
16503 # Find who we are. Look in the path if we contain no directory separator.
16504 case $0 in #((
16505 *[\\/]* ) as_myself=$0 ;;
16506 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16507 for as_dir in $PATH
16508 do
16509 IFS=$as_save_IFS
16510 test -z "$as_dir" && as_dir=.
16511 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16512 done
16513 IFS=$as_save_IFS
16514
16515 ;;
16516 esac
16517 # We did not find ourselves, most probably we were run as `sh COMMAND'
16518 # in which case we are not to be found in the path.
16519 if test "x$as_myself" = x; then
16520 as_myself=$0
16521 fi
16522 if test ! -f "$as_myself"; then
16523 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16524 exit 1
16525 fi
16526
16527 # Unset variables that we do not need and which cause bugs (e.g. in
16528 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16529 # suppresses any "Segmentation fault" message there. '((' could
16530 # trigger a bug in pdksh 5.2.14.
16531 for as_var in BASH_ENV ENV MAIL MAILPATH
16532 do eval test x\${$as_var+set} = xset \
16533 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16534 done
16535 PS1='$ '
16536 PS2='> '
16537 PS4='+ '
16538
16539 # NLS nuisances.
16540 LC_ALL=C
16541 export LC_ALL
16542 LANGUAGE=C
16543 export LANGUAGE
16544
16545 # CDPATH.
16546 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16547
16548
16549 # as_fn_error ERROR [LINENO LOG_FD]
16550 # ---------------------------------
16551 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16552 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16553 # script with status $?, using 1 if that was 0.
16554 as_fn_error ()
16555 {
16556 as_status=$?; test $as_status -eq 0 && as_status=1
16557 if test "$3"; then
16558 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16559 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16560 fi
16561 $as_echo "$as_me: error: $1" >&2
16562 as_fn_exit $as_status
16563 } # as_fn_error
16564
16565
16566 # as_fn_set_status STATUS
16567 # -----------------------
16568 # Set $? to STATUS, without forking.
16569 as_fn_set_status ()
16570 {
16571 return $1
16572 } # as_fn_set_status
16573
16574 # as_fn_exit STATUS
16575 # -----------------
16576 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16577 as_fn_exit ()
16578 {
16579 set +e
16580 as_fn_set_status $1
16581 exit $1
16582 } # as_fn_exit
16583
16584 # as_fn_unset VAR
16585 # ---------------
16586 # Portably unset VAR.
16587 as_fn_unset ()
16588 {
16589 { eval $1=; unset $1;}
16590 }
16591 as_unset=as_fn_unset
16592 # as_fn_append VAR VALUE
16593 # ----------------------
16594 # Append the text in VALUE to the end of the definition contained in VAR. Take
16595 # advantage of any shell optimizations that allow amortized linear growth over
16596 # repeated appends, instead of the typical quadratic growth present in naive
16597 # implementations.
16598 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16599 eval 'as_fn_append ()
16600 {
16601 eval $1+=\$2
16602 }'
16603 else
16604 as_fn_append ()
16605 {
16606 eval $1=\$$1\$2
16607 }
16608 fi # as_fn_append
16609
16610 # as_fn_arith ARG...
16611 # ------------------
16612 # Perform arithmetic evaluation on the ARGs, and store the result in the
16613 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16614 # must be portable across $(()) and expr.
16615 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16616 eval 'as_fn_arith ()
16617 {
16618 as_val=$(( $* ))
16619 }'
16620 else
16621 as_fn_arith ()
16622 {
16623 as_val=`expr "$@" || test $? -eq 1`
16624 }
16625 fi # as_fn_arith
16626
16627
16628 if expr a : '\(a\)' >/dev/null 2>&1 &&
16629 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16630 as_expr=expr
16631 else
16632 as_expr=false
16633 fi
16634
16635 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16636 as_basename=basename
16637 else
16638 as_basename=false
16639 fi
16640
16641 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16642 as_dirname=dirname
16643 else
16644 as_dirname=false
16645 fi
16646
16647 as_me=`$as_basename -- "$0" ||
16648 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16649 X"$0" : 'X\(//\)$' \| \
16650 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16651 $as_echo X/"$0" |
16652 sed '/^.*\/\([^/][^/]*\)\/*$/{
16653 s//\1/
16654 q
16655 }
16656 /^X\/\(\/\/\)$/{
16657 s//\1/
16658 q
16659 }
16660 /^X\/\(\/\).*/{
16661 s//\1/
16662 q
16663 }
16664 s/.*/./; q'`
16665
16666 # Avoid depending upon Character Ranges.
16667 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16668 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16669 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16670 as_cr_digits='0123456789'
16671 as_cr_alnum=$as_cr_Letters$as_cr_digits
16672
16673 ECHO_C= ECHO_N= ECHO_T=
16674 case `echo -n x` in #(((((
16675 -n*)
16676 case `echo 'xy\c'` in
16677 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16678 xy) ECHO_C='\c';;
16679 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16680 ECHO_T=' ';;
16681 esac;;
16682 *)
16683 ECHO_N='-n';;
16684 esac
16685
16686 rm -f conf$$ conf$$.exe conf$$.file
16687 if test -d conf$$.dir; then
16688 rm -f conf$$.dir/conf$$.file
16689 else
16690 rm -f conf$$.dir
16691 mkdir conf$$.dir 2>/dev/null
16692 fi
16693 if (echo >conf$$.file) 2>/dev/null; then
16694 if ln -s conf$$.file conf$$ 2>/dev/null; then
16695 as_ln_s='ln -s'
16696 # ... but there are two gotchas:
16697 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16698 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16699 # In both cases, we have to default to `cp -p'.
16700 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16701 as_ln_s='cp -p'
16702 elif ln conf$$.file conf$$ 2>/dev/null; then
16703 as_ln_s=ln
16704 else
16705 as_ln_s='cp -p'
16706 fi
16707 else
16708 as_ln_s='cp -p'
16709 fi
16710 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16711 rmdir conf$$.dir 2>/dev/null
16712
16713
16714 # as_fn_mkdir_p
16715 # -------------
16716 # Create "$as_dir" as a directory, including parents if necessary.
16717 as_fn_mkdir_p ()
16718 {
16719
16720 case $as_dir in #(
16721 -*) as_dir=./$as_dir;;
16722 esac
16723 test -d "$as_dir" || eval $as_mkdir_p || {
16724 as_dirs=
16725 while :; do
16726 case $as_dir in #(
16727 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16728 *) as_qdir=$as_dir;;
16729 esac
16730 as_dirs="'$as_qdir' $as_dirs"
16731 as_dir=`$as_dirname -- "$as_dir" ||
16732 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16733 X"$as_dir" : 'X\(//\)[^/]' \| \
16734 X"$as_dir" : 'X\(//\)$' \| \
16735 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16736 $as_echo X"$as_dir" |
16737 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16738 s//\1/
16739 q
16740 }
16741 /^X\(\/\/\)[^/].*/{
16742 s//\1/
16743 q
16744 }
16745 /^X\(\/\/\)$/{
16746 s//\1/
16747 q
16748 }
16749 /^X\(\/\).*/{
16750 s//\1/
16751 q
16752 }
16753 s/.*/./; q'`
16754 test -d "$as_dir" && break
16755 done
16756 test -z "$as_dirs" || eval "mkdir $as_dirs"
16757 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16758
16759
16760 } # as_fn_mkdir_p
16761 if mkdir -p . 2>/dev/null; then
16762 as_mkdir_p='mkdir -p "$as_dir"'
16763 else
16764 test -d ./-p && rmdir ./-p
16765 as_mkdir_p=false
16766 fi
16767
16768 if test -x / >/dev/null 2>&1; then
16769 as_test_x='test -x'
16770 else
16771 if ls -dL / >/dev/null 2>&1; then
16772 as_ls_L_option=L
16773 else
16774 as_ls_L_option=
16775 fi
16776 as_test_x='
16777 eval sh -c '\''
16778 if test -d "$1"; then
16779 test -d "$1/.";
16780 else
16781 case $1 in #(
16782 -*)set "./$1";;
16783 esac;
16784 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16785 ???[sx]*):;;*)false;;esac;fi
16786 '\'' sh
16787 '
16788 fi
16789 as_executable_p=$as_test_x
16790
16791 # Sed expression to map a string onto a valid CPP name.
16792 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16793
16794 # Sed expression to map a string onto a valid variable name.
16795 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16796
16797
16798 exec 6>&1
16799 ## ----------------------------------- ##
16800 ## Main body of $CONFIG_STATUS script. ##
16801 ## ----------------------------------- ##
16802 _ASEOF
16803 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16804
16805 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16806 # Save the log message, to keep $0 and so on meaningful, and to
16807 # report actual input values of CONFIG_FILES etc. instead of their
16808 # values after options handling.
16809 ac_log="
16810 This file was extended by GNU OpenMP Runtime Library $as_me 1.0, which was
16811 generated by GNU Autoconf 2.64. Invocation command line was
16812
16813 CONFIG_FILES = $CONFIG_FILES
16814 CONFIG_HEADERS = $CONFIG_HEADERS
16815 CONFIG_LINKS = $CONFIG_LINKS
16816 CONFIG_COMMANDS = $CONFIG_COMMANDS
16817 $ $0 $@
16818
16819 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16820 "
16821
16822 _ACEOF
16823
16824 case $ac_config_files in *"
16825 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16826 esac
16827
16828 case $ac_config_headers in *"
16829 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16830 esac
16831
16832
16833 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16834 # Files that config.status was made for.
16835 config_files="$ac_config_files"
16836 config_headers="$ac_config_headers"
16837 config_commands="$ac_config_commands"
16838
16839 _ACEOF
16840
16841 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16842 ac_cs_usage="\
16843 \`$as_me' instantiates files and other configuration actions
16844 from templates according to the current configuration. Unless the files
16845 and actions are specified as TAGs, all are instantiated by default.
16846
16847 Usage: $0 [OPTION]... [TAG]...
16848
16849 -h, --help print this help, then exit
16850 -V, --version print version number and configuration settings, then exit
16851 -q, --quiet, --silent
16852 do not print progress messages
16853 -d, --debug don't remove temporary files
16854 --recheck update $as_me by reconfiguring in the same conditions
16855 --file=FILE[:TEMPLATE]
16856 instantiate the configuration file FILE
16857 --header=FILE[:TEMPLATE]
16858 instantiate the configuration header FILE
16859
16860 Configuration files:
16861 $config_files
16862
16863 Configuration headers:
16864 $config_headers
16865
16866 Configuration commands:
16867 $config_commands
16868
16869 Report bugs to the package provider.
16870 GNU OpenMP Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
16871 General help using GNU software: <http://www.gnu.org/gethelp/>."
16872
16873 _ACEOF
16874 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16875 ac_cs_version="\\
16876 GNU OpenMP Runtime Library config.status 1.0
16877 configured by $0, generated by GNU Autoconf 2.64,
16878 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16879
16880 Copyright (C) 2009 Free Software Foundation, Inc.
16881 This config.status script is free software; the Free Software Foundation
16882 gives unlimited permission to copy, distribute and modify it."
16883
16884 ac_pwd='$ac_pwd'
16885 srcdir='$srcdir'
16886 INSTALL='$INSTALL'
16887 MKDIR_P='$MKDIR_P'
16888 AWK='$AWK'
16889 test -n "\$AWK" || AWK=awk
16890 _ACEOF
16891
16892 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16893 # The default lists apply if the user does not specify any file.
16894 ac_need_defaults=:
16895 while test $# != 0
16896 do
16897 case $1 in
16898 --*=*)
16899 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16900 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16901 ac_shift=:
16902 ;;
16903 *)
16904 ac_option=$1
16905 ac_optarg=$2
16906 ac_shift=shift
16907 ;;
16908 esac
16909
16910 case $ac_option in
16911 # Handling of the options.
16912 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16913 ac_cs_recheck=: ;;
16914 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16915 $as_echo "$ac_cs_version"; exit ;;
16916 --debug | --debu | --deb | --de | --d | -d )
16917 debug=: ;;
16918 --file | --fil | --fi | --f )
16919 $ac_shift
16920 case $ac_optarg in
16921 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16922 esac
16923 as_fn_append CONFIG_FILES " '$ac_optarg'"
16924 ac_need_defaults=false;;
16925 --header | --heade | --head | --hea )
16926 $ac_shift
16927 case $ac_optarg in
16928 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16929 esac
16930 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16931 ac_need_defaults=false;;
16932 --he | --h)
16933 # Conflict between --help and --header
16934 as_fn_error "ambiguous option: \`$1'
16935 Try \`$0 --help' for more information.";;
16936 --help | --hel | -h )
16937 $as_echo "$ac_cs_usage"; exit ;;
16938 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16939 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16940 ac_cs_silent=: ;;
16941
16942 # This is an error.
16943 -*) as_fn_error "unrecognized option: \`$1'
16944 Try \`$0 --help' for more information." ;;
16945
16946 *) as_fn_append ac_config_targets " $1"
16947 ac_need_defaults=false ;;
16948
16949 esac
16950 shift
16951 done
16952
16953 ac_configure_extra_args=
16954
16955 if $ac_cs_silent; then
16956 exec 6>/dev/null
16957 ac_configure_extra_args="$ac_configure_extra_args --silent"
16958 fi
16959
16960 _ACEOF
16961 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16962 if \$ac_cs_recheck; then
16963 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16964 shift
16965 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16966 CONFIG_SHELL='$SHELL'
16967 export CONFIG_SHELL
16968 exec "\$@"
16969 fi
16970
16971 _ACEOF
16972 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16973 exec 5>>config.log
16974 {
16975 echo
16976 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16977 ## Running $as_me. ##
16978 _ASBOX
16979 $as_echo "$ac_log"
16980 } >&5
16981
16982 _ACEOF
16983 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16984 #
16985 # INIT-COMMANDS
16986 #
16987
16988 srcdir="$srcdir"
16989 host="$host"
16990 target="$target"
16991 with_multisubdir="$with_multisubdir"
16992 with_multisrctop="$with_multisrctop"
16993 with_target_subdir="$with_target_subdir"
16994 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16995 multi_basedir="$multi_basedir"
16996 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16997 CC="$CC"
16998 CXX="$CXX"
16999 GFORTRAN="$GFORTRAN"
17000 GCJ="$GCJ"
17001 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17002
17003
17004 # The HP-UX ksh and POSIX shell print the target directory to stdout
17005 # if CDPATH is set.
17006 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17007
17008 sed_quote_subst='$sed_quote_subst'
17009 double_quote_subst='$double_quote_subst'
17010 delay_variable_subst='$delay_variable_subst'
17011 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17012 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17013 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17014 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17015 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17016 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17017 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17018 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17019 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17020 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17021 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17022 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17023 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17024 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17025 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17026 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17027 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17028 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17029 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17030 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17031 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17032 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17033 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17034 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17035 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17036 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17037 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17038 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17039 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17040 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17041 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17042 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17043 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17044 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17045 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17046 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17047 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17048 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17049 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17050 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17051 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17052 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17053 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17054 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17055 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17056 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17057 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17058 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17059 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"`'
17060 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17061 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17062 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17063 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17064 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17065 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17066 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17067 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17068 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17069 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17070 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17071 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17072 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17073 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17074 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17075 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17076 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17077 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17078 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17079 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17080 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17081 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17082 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17083 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17084 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17085 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17086 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17087 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17088 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17089 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17090 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17091 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17092 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17093 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17094 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17095 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17096 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17097 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17098 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17099 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17100 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17101 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17102 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17103 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17104 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17105 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17106 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17107 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17108 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17109 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17110 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17111 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17112 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17113 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17114 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17115 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17116 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17117 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17118 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17119 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17120 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17121 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17122 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17123 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17124 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17125 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17126 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17127 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17128 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17129 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17130 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17131 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17132 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17133 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17134 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17135 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17136 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17137 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
17138 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
17139 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
17140 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17141 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
17142 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
17143 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
17144 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
17145 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
17146 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
17147 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
17148 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
17149 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
17150 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17151 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17152 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
17153 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
17154 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
17155 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17156 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17157 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
17158 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17159 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
17160 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17161 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17162 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17163 hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
17164 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
17165 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
17166 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
17167 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
17168 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
17169 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
17170 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
17171 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
17172 fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
17173 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
17174 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
17175 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17176 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17177 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
17178 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
17179 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
17180 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
17181 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
17182 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
17183 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
17184 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
17185 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
17186
17187 LTCC='$LTCC'
17188 LTCFLAGS='$LTCFLAGS'
17189 compiler='$compiler_DEFAULT'
17190
17191 # A function that is used when there is no print builtin or printf.
17192 func_fallback_echo ()
17193 {
17194 eval 'cat <<_LTECHO_EOF
17195 \$1
17196 _LTECHO_EOF'
17197 }
17198
17199 # Quote evaled strings.
17200 for var in SHELL \
17201 ECHO \
17202 SED \
17203 GREP \
17204 EGREP \
17205 FGREP \
17206 LD \
17207 NM \
17208 LN_S \
17209 lt_SP2NL \
17210 lt_NL2SP \
17211 reload_flag \
17212 OBJDUMP \
17213 deplibs_check_method \
17214 file_magic_cmd \
17215 AR \
17216 AR_FLAGS \
17217 STRIP \
17218 RANLIB \
17219 CC \
17220 CFLAGS \
17221 compiler \
17222 lt_cv_sys_global_symbol_pipe \
17223 lt_cv_sys_global_symbol_to_cdecl \
17224 lt_cv_sys_global_symbol_to_c_name_address \
17225 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17226 lt_prog_compiler_no_builtin_flag \
17227 lt_prog_compiler_wl \
17228 lt_prog_compiler_pic \
17229 lt_prog_compiler_static \
17230 lt_cv_prog_compiler_c_o \
17231 need_locks \
17232 DSYMUTIL \
17233 NMEDIT \
17234 LIPO \
17235 OTOOL \
17236 OTOOL64 \
17237 shrext_cmds \
17238 export_dynamic_flag_spec \
17239 whole_archive_flag_spec \
17240 compiler_needs_object \
17241 with_gnu_ld \
17242 allow_undefined_flag \
17243 no_undefined_flag \
17244 hardcode_libdir_flag_spec \
17245 hardcode_libdir_flag_spec_ld \
17246 hardcode_libdir_separator \
17247 fix_srcfile_path \
17248 exclude_expsyms \
17249 include_expsyms \
17250 file_list_spec \
17251 variables_saved_for_relink \
17252 libname_spec \
17253 library_names_spec \
17254 soname_spec \
17255 install_override_mode \
17256 finish_eval \
17257 old_striplib \
17258 striplib \
17259 compiler_lib_search_dirs \
17260 predep_objects \
17261 postdep_objects \
17262 predeps \
17263 postdeps \
17264 compiler_lib_search_path \
17265 LD_FC \
17266 reload_flag_FC \
17267 compiler_FC \
17268 lt_prog_compiler_no_builtin_flag_FC \
17269 lt_prog_compiler_wl_FC \
17270 lt_prog_compiler_pic_FC \
17271 lt_prog_compiler_static_FC \
17272 lt_cv_prog_compiler_c_o_FC \
17273 export_dynamic_flag_spec_FC \
17274 whole_archive_flag_spec_FC \
17275 compiler_needs_object_FC \
17276 with_gnu_ld_FC \
17277 allow_undefined_flag_FC \
17278 no_undefined_flag_FC \
17279 hardcode_libdir_flag_spec_FC \
17280 hardcode_libdir_flag_spec_ld_FC \
17281 hardcode_libdir_separator_FC \
17282 fix_srcfile_path_FC \
17283 exclude_expsyms_FC \
17284 include_expsyms_FC \
17285 file_list_spec_FC \
17286 compiler_lib_search_dirs_FC \
17287 predep_objects_FC \
17288 postdep_objects_FC \
17289 predeps_FC \
17290 postdeps_FC \
17291 compiler_lib_search_path_FC; do
17292 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17293 *[\\\\\\\`\\"\\\$]*)
17294 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17295 ;;
17296 *)
17297 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17298 ;;
17299 esac
17300 done
17301
17302 # Double-quote double-evaled strings.
17303 for var in reload_cmds \
17304 old_postinstall_cmds \
17305 old_postuninstall_cmds \
17306 old_archive_cmds \
17307 extract_expsyms_cmds \
17308 old_archive_from_new_cmds \
17309 old_archive_from_expsyms_cmds \
17310 archive_cmds \
17311 archive_expsym_cmds \
17312 module_cmds \
17313 module_expsym_cmds \
17314 export_symbols_cmds \
17315 prelink_cmds \
17316 postinstall_cmds \
17317 postuninstall_cmds \
17318 finish_cmds \
17319 sys_lib_search_path_spec \
17320 sys_lib_dlsearch_path_spec \
17321 reload_cmds_FC \
17322 old_archive_cmds_FC \
17323 old_archive_from_new_cmds_FC \
17324 old_archive_from_expsyms_cmds_FC \
17325 archive_cmds_FC \
17326 archive_expsym_cmds_FC \
17327 module_cmds_FC \
17328 module_expsym_cmds_FC \
17329 export_symbols_cmds_FC \
17330 prelink_cmds_FC; do
17331 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17332 *[\\\\\\\`\\"\\\$]*)
17333 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17334 ;;
17335 *)
17336 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17337 ;;
17338 esac
17339 done
17340
17341 ac_aux_dir='$ac_aux_dir'
17342 xsi_shell='$xsi_shell'
17343 lt_shell_append='$lt_shell_append'
17344
17345 # See if we are running on zsh, and set the options which allow our
17346 # commands through without removal of \ escapes INIT.
17347 if test -n "\${ZSH_VERSION+set}" ; then
17348 setopt NO_GLOB_SUBST
17349 fi
17350
17351
17352 PACKAGE='$PACKAGE'
17353 VERSION='$VERSION'
17354 TIMESTAMP='$TIMESTAMP'
17355 RM='$RM'
17356 ofile='$ofile'
17357
17358
17359
17360
17361
17362
17363 GCC="$GCC"
17364 CC="$CC"
17365 acx_cv_header_stdint="$acx_cv_header_stdint"
17366 acx_cv_type_int8_t="$acx_cv_type_int8_t"
17367 acx_cv_type_int16_t="$acx_cv_type_int16_t"
17368 acx_cv_type_int32_t="$acx_cv_type_int32_t"
17369 acx_cv_type_int64_t="$acx_cv_type_int64_t"
17370 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
17371 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
17372 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
17373 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
17374 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
17375 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
17376 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
17377 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
17378 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
17379
17380
17381 _ACEOF
17382
17383 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17384
17385 # Handling of arguments.
17386 for ac_config_target in $ac_config_targets
17387 do
17388 case $ac_config_target in
17389 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17390 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17391 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17392 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17393 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
17394 "omp.h") CONFIG_FILES="$CONFIG_FILES omp.h" ;;
17395 "omp_lib.h") CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
17396 "omp_lib.f90") CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
17397 "libgomp_f.h") CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
17398 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17399 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17400 "libgomp.spec") CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
17401
17402 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17403 esac
17404 done
17405
17406
17407 # If the user did not use the arguments to specify the items to instantiate,
17408 # then the envvar interface is used. Set only those that are not.
17409 # We use the long form for the default assignment because of an extremely
17410 # bizarre bug on SunOS 4.1.3.
17411 if $ac_need_defaults; then
17412 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17413 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17414 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17415 fi
17416
17417 # Have a temporary directory for convenience. Make it in the build tree
17418 # simply because there is no reason against having it here, and in addition,
17419 # creating and moving files from /tmp can sometimes cause problems.
17420 # Hook for its removal unless debugging.
17421 # Note that there is a small window in which the directory will not be cleaned:
17422 # after its creation but before its name has been assigned to `$tmp'.
17423 $debug ||
17424 {
17425 tmp=
17426 trap 'exit_status=$?
17427 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17428 ' 0
17429 trap 'as_fn_exit 1' 1 2 13 15
17430 }
17431 # Create a (secure) tmp directory for tmp files.
17432
17433 {
17434 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17435 test -n "$tmp" && test -d "$tmp"
17436 } ||
17437 {
17438 tmp=./conf$$-$RANDOM
17439 (umask 077 && mkdir "$tmp")
17440 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17441
17442 # Set up the scripts for CONFIG_FILES section.
17443 # No need to generate them if there are no CONFIG_FILES.
17444 # This happens for instance with `./config.status config.h'.
17445 if test -n "$CONFIG_FILES"; then
17446
17447
17448 ac_cr=`echo X | tr X '\015'`
17449 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17450 # But we know of no other shell where ac_cr would be empty at this
17451 # point, so we can use a bashism as a fallback.
17452 if test "x$ac_cr" = x; then
17453 eval ac_cr=\$\'\\r\'
17454 fi
17455 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17456 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17457 ac_cs_awk_cr='\r'
17458 else
17459 ac_cs_awk_cr=$ac_cr
17460 fi
17461
17462 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17463 _ACEOF
17464
17465
17466 {
17467 echo "cat >conf$$subs.awk <<_ACEOF" &&
17468 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17469 echo "_ACEOF"
17470 } >conf$$subs.sh ||
17471 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17472 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17473 ac_delim='%!_!# '
17474 for ac_last_try in false false false false false :; do
17475 . ./conf$$subs.sh ||
17476 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17477
17478 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17479 if test $ac_delim_n = $ac_delim_num; then
17480 break
17481 elif $ac_last_try; then
17482 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17483 else
17484 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17485 fi
17486 done
17487 rm -f conf$$subs.sh
17488
17489 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17490 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17491 _ACEOF
17492 sed -n '
17493 h
17494 s/^/S["/; s/!.*/"]=/
17495 p
17496 g
17497 s/^[^!]*!//
17498 :repl
17499 t repl
17500 s/'"$ac_delim"'$//
17501 t delim
17502 :nl
17503 h
17504 s/\(.\{148\}\).*/\1/
17505 t more1
17506 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17507 p
17508 n
17509 b repl
17510 :more1
17511 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17512 p
17513 g
17514 s/.\{148\}//
17515 t nl
17516 :delim
17517 h
17518 s/\(.\{148\}\).*/\1/
17519 t more2
17520 s/["\\]/\\&/g; s/^/"/; s/$/"/
17521 p
17522 b
17523 :more2
17524 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17525 p
17526 g
17527 s/.\{148\}//
17528 t delim
17529 ' <conf$$subs.awk | sed '
17530 /^[^""]/{
17531 N
17532 s/\n//
17533 }
17534 ' >>$CONFIG_STATUS || ac_write_fail=1
17535 rm -f conf$$subs.awk
17536 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17537 _ACAWK
17538 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17539 for (key in S) S_is_set[key] = 1
17540 FS = "\a"
17541
17542 }
17543 {
17544 line = $ 0
17545 nfields = split(line, field, "@")
17546 substed = 0
17547 len = length(field[1])
17548 for (i = 2; i < nfields; i++) {
17549 key = field[i]
17550 keylen = length(key)
17551 if (S_is_set[key]) {
17552 value = S[key]
17553 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17554 len += length(value) + length(field[++i])
17555 substed = 1
17556 } else
17557 len += 1 + keylen
17558 }
17559
17560 print line
17561 }
17562
17563 _ACAWK
17564 _ACEOF
17565 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17566 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17567 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17568 else
17569 cat
17570 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17571 || as_fn_error "could not setup config files machinery" "$LINENO" 5
17572 _ACEOF
17573
17574 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17575 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17576 # trailing colons and then remove the whole line if VPATH becomes empty
17577 # (actually we leave an empty line to preserve line numbers).
17578 if test "x$srcdir" = x.; then
17579 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17580 s/:*\$(srcdir):*/:/
17581 s/:*\${srcdir}:*/:/
17582 s/:*@srcdir@:*/:/
17583 s/^\([^=]*=[ ]*\):*/\1/
17584 s/:*$//
17585 s/^[^=]*=[ ]*$//
17586 }'
17587 fi
17588
17589 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17590 fi # test -n "$CONFIG_FILES"
17591
17592 # Set up the scripts for CONFIG_HEADERS section.
17593 # No need to generate them if there are no CONFIG_HEADERS.
17594 # This happens for instance with `./config.status Makefile'.
17595 if test -n "$CONFIG_HEADERS"; then
17596 cat >"$tmp/defines.awk" <<\_ACAWK ||
17597 BEGIN {
17598 _ACEOF
17599
17600 # Transform confdefs.h into an awk script `defines.awk', embedded as
17601 # here-document in config.status, that substitutes the proper values into
17602 # config.h.in to produce config.h.
17603
17604 # Create a delimiter string that does not exist in confdefs.h, to ease
17605 # handling of long lines.
17606 ac_delim='%!_!# '
17607 for ac_last_try in false false :; do
17608 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17609 if test -z "$ac_t"; then
17610 break
17611 elif $ac_last_try; then
17612 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17613 else
17614 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17615 fi
17616 done
17617
17618 # For the awk script, D is an array of macro values keyed by name,
17619 # likewise P contains macro parameters if any. Preserve backslash
17620 # newline sequences.
17621
17622 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17623 sed -n '
17624 s/.\{148\}/&'"$ac_delim"'/g
17625 t rset
17626 :rset
17627 s/^[ ]*#[ ]*define[ ][ ]*/ /
17628 t def
17629 d
17630 :def
17631 s/\\$//
17632 t bsnl
17633 s/["\\]/\\&/g
17634 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17635 D["\1"]=" \3"/p
17636 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17637 d
17638 :bsnl
17639 s/["\\]/\\&/g
17640 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17641 D["\1"]=" \3\\\\\\n"\\/p
17642 t cont
17643 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17644 t cont
17645 d
17646 :cont
17647 n
17648 s/.\{148\}/&'"$ac_delim"'/g
17649 t clear
17650 :clear
17651 s/\\$//
17652 t bsnlc
17653 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17654 d
17655 :bsnlc
17656 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17657 b cont
17658 ' <confdefs.h | sed '
17659 s/'"$ac_delim"'/"\\\
17660 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17661
17662 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17663 for (key in D) D_is_set[key] = 1
17664 FS = "\a"
17665 }
17666 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17667 line = \$ 0
17668 split(line, arg, " ")
17669 if (arg[1] == "#") {
17670 defundef = arg[2]
17671 mac1 = arg[3]
17672 } else {
17673 defundef = substr(arg[1], 2)
17674 mac1 = arg[2]
17675 }
17676 split(mac1, mac2, "(") #)
17677 macro = mac2[1]
17678 prefix = substr(line, 1, index(line, defundef) - 1)
17679 if (D_is_set[macro]) {
17680 # Preserve the white space surrounding the "#".
17681 print prefix "define", macro P[macro] D[macro]
17682 next
17683 } else {
17684 # Replace #undef with comments. This is necessary, for example,
17685 # in the case of _POSIX_SOURCE, which is predefined and required
17686 # on some systems where configure will not decide to define it.
17687 if (defundef == "undef") {
17688 print "/*", prefix defundef, macro, "*/"
17689 next
17690 }
17691 }
17692 }
17693 { print }
17694 _ACAWK
17695 _ACEOF
17696 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17697 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17698 fi # test -n "$CONFIG_HEADERS"
17699
17700
17701 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17702 shift
17703 for ac_tag
17704 do
17705 case $ac_tag in
17706 :[FHLC]) ac_mode=$ac_tag; continue;;
17707 esac
17708 case $ac_mode$ac_tag in
17709 :[FHL]*:*);;
17710 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17711 :[FH]-) ac_tag=-:-;;
17712 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17713 esac
17714 ac_save_IFS=$IFS
17715 IFS=:
17716 set x $ac_tag
17717 IFS=$ac_save_IFS
17718 shift
17719 ac_file=$1
17720 shift
17721
17722 case $ac_mode in
17723 :L) ac_source=$1;;
17724 :[FH])
17725 ac_file_inputs=
17726 for ac_f
17727 do
17728 case $ac_f in
17729 -) ac_f="$tmp/stdin";;
17730 *) # Look for the file first in the build tree, then in the source tree
17731 # (if the path is not absolute). The absolute path cannot be DOS-style,
17732 # because $ac_f cannot contain `:'.
17733 test -f "$ac_f" ||
17734 case $ac_f in
17735 [\\/$]*) false;;
17736 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17737 esac ||
17738 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17739 esac
17740 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17741 as_fn_append ac_file_inputs " '$ac_f'"
17742 done
17743
17744 # Let's still pretend it is `configure' which instantiates (i.e., don't
17745 # use $as_me), people would be surprised to read:
17746 # /* config.h. Generated by config.status. */
17747 configure_input='Generated from '`
17748 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17749 `' by configure.'
17750 if test x"$ac_file" != x-; then
17751 configure_input="$ac_file. $configure_input"
17752 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17753 $as_echo "$as_me: creating $ac_file" >&6;}
17754 fi
17755 # Neutralize special characters interpreted by sed in replacement strings.
17756 case $configure_input in #(
17757 *\&* | *\|* | *\\* )
17758 ac_sed_conf_input=`$as_echo "$configure_input" |
17759 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17760 *) ac_sed_conf_input=$configure_input;;
17761 esac
17762
17763 case $ac_tag in
17764 *:-:* | *:-) cat >"$tmp/stdin" \
17765 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17766 esac
17767 ;;
17768 esac
17769
17770 ac_dir=`$as_dirname -- "$ac_file" ||
17771 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17772 X"$ac_file" : 'X\(//\)[^/]' \| \
17773 X"$ac_file" : 'X\(//\)$' \| \
17774 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17775 $as_echo X"$ac_file" |
17776 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17777 s//\1/
17778 q
17779 }
17780 /^X\(\/\/\)[^/].*/{
17781 s//\1/
17782 q
17783 }
17784 /^X\(\/\/\)$/{
17785 s//\1/
17786 q
17787 }
17788 /^X\(\/\).*/{
17789 s//\1/
17790 q
17791 }
17792 s/.*/./; q'`
17793 as_dir="$ac_dir"; as_fn_mkdir_p
17794 ac_builddir=.
17795
17796 case "$ac_dir" in
17797 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17798 *)
17799 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17800 # A ".." for each directory in $ac_dir_suffix.
17801 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17802 case $ac_top_builddir_sub in
17803 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17804 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17805 esac ;;
17806 esac
17807 ac_abs_top_builddir=$ac_pwd
17808 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17809 # for backward compatibility:
17810 ac_top_builddir=$ac_top_build_prefix
17811
17812 case $srcdir in
17813 .) # We are building in place.
17814 ac_srcdir=.
17815 ac_top_srcdir=$ac_top_builddir_sub
17816 ac_abs_top_srcdir=$ac_pwd ;;
17817 [\\/]* | ?:[\\/]* ) # Absolute name.
17818 ac_srcdir=$srcdir$ac_dir_suffix;
17819 ac_top_srcdir=$srcdir
17820 ac_abs_top_srcdir=$srcdir ;;
17821 *) # Relative name.
17822 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17823 ac_top_srcdir=$ac_top_build_prefix$srcdir
17824 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17825 esac
17826 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17827
17828
17829 case $ac_mode in
17830 :F)
17831 #
17832 # CONFIG_FILE
17833 #
17834
17835 case $INSTALL in
17836 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17837 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17838 esac
17839 ac_MKDIR_P=$MKDIR_P
17840 case $MKDIR_P in
17841 [\\/$]* | ?:[\\/]* ) ;;
17842 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17843 esac
17844 _ACEOF
17845
17846 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17847 # If the template does not know about datarootdir, expand it.
17848 # FIXME: This hack should be removed a few years after 2.60.
17849 ac_datarootdir_hack=; ac_datarootdir_seen=
17850 ac_sed_dataroot='
17851 /datarootdir/ {
17852 p
17853 q
17854 }
17855 /@datadir@/p
17856 /@docdir@/p
17857 /@infodir@/p
17858 /@localedir@/p
17859 /@mandir@/p'
17860 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17861 *datarootdir*) ac_datarootdir_seen=yes;;
17862 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17864 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17865 _ACEOF
17866 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17867 ac_datarootdir_hack='
17868 s&@datadir@&$datadir&g
17869 s&@docdir@&$docdir&g
17870 s&@infodir@&$infodir&g
17871 s&@localedir@&$localedir&g
17872 s&@mandir@&$mandir&g
17873 s&\\\${datarootdir}&$datarootdir&g' ;;
17874 esac
17875 _ACEOF
17876
17877 # Neutralize VPATH when `$srcdir' = `.'.
17878 # Shell code in configure.ac might set extrasub.
17879 # FIXME: do we really want to maintain this feature?
17880 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17881 ac_sed_extra="$ac_vpsub
17882 $extrasub
17883 _ACEOF
17884 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17885 :t
17886 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17887 s|@configure_input@|$ac_sed_conf_input|;t t
17888 s&@top_builddir@&$ac_top_builddir_sub&;t t
17889 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17890 s&@srcdir@&$ac_srcdir&;t t
17891 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17892 s&@top_srcdir@&$ac_top_srcdir&;t t
17893 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17894 s&@builddir@&$ac_builddir&;t t
17895 s&@abs_builddir@&$ac_abs_builddir&;t t
17896 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17897 s&@INSTALL@&$ac_INSTALL&;t t
17898 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17899 $ac_datarootdir_hack
17900 "
17901 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17902 || as_fn_error "could not create $ac_file" "$LINENO" 5
17903
17904 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17905 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17906 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17908 which seems to be undefined. Please make sure it is defined." >&5
17909 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17910 which seems to be undefined. Please make sure it is defined." >&2;}
17911
17912 rm -f "$tmp/stdin"
17913 case $ac_file in
17914 -) cat "$tmp/out" && rm -f "$tmp/out";;
17915 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17916 esac \
17917 || as_fn_error "could not create $ac_file" "$LINENO" 5
17918 ;;
17919 :H)
17920 #
17921 # CONFIG_HEADER
17922 #
17923 if test x"$ac_file" != x-; then
17924 {
17925 $as_echo "/* $configure_input */" \
17926 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17927 } >"$tmp/config.h" \
17928 || as_fn_error "could not create $ac_file" "$LINENO" 5
17929 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17930 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17931 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17932 else
17933 rm -f "$ac_file"
17934 mv "$tmp/config.h" "$ac_file" \
17935 || as_fn_error "could not create $ac_file" "$LINENO" 5
17936 fi
17937 else
17938 $as_echo "/* $configure_input */" \
17939 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17940 || as_fn_error "could not create -" "$LINENO" 5
17941 fi
17942 # Compute "$ac_file"'s index in $config_headers.
17943 _am_arg="$ac_file"
17944 _am_stamp_count=1
17945 for _am_header in $config_headers :; do
17946 case $_am_header in
17947 $_am_arg | $_am_arg:* )
17948 break ;;
17949 * )
17950 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17951 esac
17952 done
17953 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17954 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17955 X"$_am_arg" : 'X\(//\)[^/]' \| \
17956 X"$_am_arg" : 'X\(//\)$' \| \
17957 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17958 $as_echo X"$_am_arg" |
17959 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17960 s//\1/
17961 q
17962 }
17963 /^X\(\/\/\)[^/].*/{
17964 s//\1/
17965 q
17966 }
17967 /^X\(\/\/\)$/{
17968 s//\1/
17969 q
17970 }
17971 /^X\(\/\).*/{
17972 s//\1/
17973 q
17974 }
17975 s/.*/./; q'`/stamp-h$_am_stamp_count
17976 ;;
17977
17978 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17979 $as_echo "$as_me: executing $ac_file commands" >&6;}
17980 ;;
17981 esac
17982
17983
17984 case $ac_file$ac_mode in
17985 "default-1":C)
17986 # Only add multilib support code if we just rebuilt the top-level
17987 # Makefile.
17988 case " $CONFIG_FILES " in
17989 *" Makefile "*)
17990 ac_file=Makefile . ${multi_basedir}/config-ml.in
17991 ;;
17992 esac ;;
17993 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17994 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17995 # are listed without --file. Let's play safe and only enable the eval
17996 # if we detect the quoting.
17997 case $CONFIG_FILES in
17998 *\'*) eval set x "$CONFIG_FILES" ;;
17999 *) set x $CONFIG_FILES ;;
18000 esac
18001 shift
18002 for mf
18003 do
18004 # Strip MF so we end up with the name of the file.
18005 mf=`echo "$mf" | sed -e 's/:.*$//'`
18006 # Check whether this is an Automake generated Makefile or not.
18007 # We used to match only the files named `Makefile.in', but
18008 # some people rename them; so instead we look at the file content.
18009 # Grep'ing the first line is not enough: some people post-process
18010 # each Makefile.in and add a new line on top of each file to say so.
18011 # Grep'ing the whole file is not good either: AIX grep has a line
18012 # limit of 2048, but all sed's we know have understand at least 4000.
18013 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18014 dirpart=`$as_dirname -- "$mf" ||
18015 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18016 X"$mf" : 'X\(//\)[^/]' \| \
18017 X"$mf" : 'X\(//\)$' \| \
18018 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18019 $as_echo X"$mf" |
18020 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18021 s//\1/
18022 q
18023 }
18024 /^X\(\/\/\)[^/].*/{
18025 s//\1/
18026 q
18027 }
18028 /^X\(\/\/\)$/{
18029 s//\1/
18030 q
18031 }
18032 /^X\(\/\).*/{
18033 s//\1/
18034 q
18035 }
18036 s/.*/./; q'`
18037 else
18038 continue
18039 fi
18040 # Extract the definition of DEPDIR, am__include, and am__quote
18041 # from the Makefile without running `make'.
18042 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18043 test -z "$DEPDIR" && continue
18044 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18045 test -z "am__include" && continue
18046 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18047 # When using ansi2knr, U may be empty or an underscore; expand it
18048 U=`sed -n 's/^U = //p' < "$mf"`
18049 # Find all dependency output files, they are included files with
18050 # $(DEPDIR) in their names. We invoke sed twice because it is the
18051 # simplest approach to changing $(DEPDIR) to its actual value in the
18052 # expansion.
18053 for file in `sed -n "
18054 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18055 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18056 # Make sure the directory exists.
18057 test -f "$dirpart/$file" && continue
18058 fdir=`$as_dirname -- "$file" ||
18059 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18060 X"$file" : 'X\(//\)[^/]' \| \
18061 X"$file" : 'X\(//\)$' \| \
18062 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18063 $as_echo X"$file" |
18064 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18065 s//\1/
18066 q
18067 }
18068 /^X\(\/\/\)[^/].*/{
18069 s//\1/
18070 q
18071 }
18072 /^X\(\/\/\)$/{
18073 s//\1/
18074 q
18075 }
18076 /^X\(\/\).*/{
18077 s//\1/
18078 q
18079 }
18080 s/.*/./; q'`
18081 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18082 # echo "creating $dirpart/$file"
18083 echo '# dummy' > "$dirpart/$file"
18084 done
18085 done
18086 }
18087 ;;
18088 "libtool":C)
18089
18090 # See if we are running on zsh, and set the options which allow our
18091 # commands through without removal of \ escapes.
18092 if test -n "${ZSH_VERSION+set}" ; then
18093 setopt NO_GLOB_SUBST
18094 fi
18095
18096 cfgfile="${ofile}T"
18097 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18098 $RM "$cfgfile"
18099
18100 cat <<_LT_EOF >> "$cfgfile"
18101 #! $SHELL
18102
18103 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18104 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18105 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18106 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18107 #
18108 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18109 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18110 # Written by Gordon Matzigkeit, 1996
18111 #
18112 # This file is part of GNU Libtool.
18113 #
18114 # GNU Libtool is free software; you can redistribute it and/or
18115 # modify it under the terms of the GNU General Public License as
18116 # published by the Free Software Foundation; either version 2 of
18117 # the License, or (at your option) any later version.
18118 #
18119 # As a special exception to the GNU General Public License,
18120 # if you distribute this file as part of a program or library that
18121 # is built using GNU Libtool, you may include this file under the
18122 # same distribution terms that you use for the rest of that program.
18123 #
18124 # GNU Libtool is distributed in the hope that it will be useful,
18125 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18126 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18127 # GNU General Public License for more details.
18128 #
18129 # You should have received a copy of the GNU General Public License
18130 # along with GNU Libtool; see the file COPYING. If not, a copy
18131 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18132 # obtained by writing to the Free Software Foundation, Inc.,
18133 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18134
18135
18136 # The names of the tagged configurations supported by this script.
18137 available_tags="FC "
18138
18139 # ### BEGIN LIBTOOL CONFIG
18140
18141 # Which release of libtool.m4 was used?
18142 macro_version=$macro_version
18143 macro_revision=$macro_revision
18144
18145 # Whether or not to build shared libraries.
18146 build_libtool_libs=$enable_shared
18147
18148 # Whether or not to build static libraries.
18149 build_old_libs=$enable_static
18150
18151 # What type of objects to build.
18152 pic_mode=$pic_mode
18153
18154 # Whether or not to optimize for fast installation.
18155 fast_install=$enable_fast_install
18156
18157 # Shell to use when invoking shell scripts.
18158 SHELL=$lt_SHELL
18159
18160 # An echo program that protects backslashes.
18161 ECHO=$lt_ECHO
18162
18163 # The host system.
18164 host_alias=$host_alias
18165 host=$host
18166 host_os=$host_os
18167
18168 # The build system.
18169 build_alias=$build_alias
18170 build=$build
18171 build_os=$build_os
18172
18173 # A sed program that does not truncate output.
18174 SED=$lt_SED
18175
18176 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18177 Xsed="\$SED -e 1s/^X//"
18178
18179 # A grep program that handles long lines.
18180 GREP=$lt_GREP
18181
18182 # An ERE matcher.
18183 EGREP=$lt_EGREP
18184
18185 # A literal string matcher.
18186 FGREP=$lt_FGREP
18187
18188 # A BSD- or MS-compatible name lister.
18189 NM=$lt_NM
18190
18191 # Whether we need soft or hard links.
18192 LN_S=$lt_LN_S
18193
18194 # What is the maximum length of a command?
18195 max_cmd_len=$max_cmd_len
18196
18197 # Object file suffix (normally "o").
18198 objext=$ac_objext
18199
18200 # Executable file suffix (normally "").
18201 exeext=$exeext
18202
18203 # whether the shell understands "unset".
18204 lt_unset=$lt_unset
18205
18206 # turn spaces into newlines.
18207 SP2NL=$lt_lt_SP2NL
18208
18209 # turn newlines into spaces.
18210 NL2SP=$lt_lt_NL2SP
18211
18212 # An object symbol dumper.
18213 OBJDUMP=$lt_OBJDUMP
18214
18215 # Method to check whether dependent libraries are shared objects.
18216 deplibs_check_method=$lt_deplibs_check_method
18217
18218 # Command to use when deplibs_check_method == "file_magic".
18219 file_magic_cmd=$lt_file_magic_cmd
18220
18221 # The archiver.
18222 AR=$lt_AR
18223 AR_FLAGS=$lt_AR_FLAGS
18224
18225 # A symbol stripping program.
18226 STRIP=$lt_STRIP
18227
18228 # Commands used to install an old-style archive.
18229 RANLIB=$lt_RANLIB
18230 old_postinstall_cmds=$lt_old_postinstall_cmds
18231 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18232
18233 # Whether to use a lock for old archive extraction.
18234 lock_old_archive_extraction=$lock_old_archive_extraction
18235
18236 # A C compiler.
18237 LTCC=$lt_CC
18238
18239 # LTCC compiler flags.
18240 LTCFLAGS=$lt_CFLAGS
18241
18242 # Take the output of nm and produce a listing of raw symbols and C names.
18243 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18244
18245 # Transform the output of nm in a proper C declaration.
18246 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18247
18248 # Transform the output of nm in a C name address pair.
18249 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18250
18251 # Transform the output of nm in a C name address pair when lib prefix is needed.
18252 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18253
18254 # The name of the directory that contains temporary libtool files.
18255 objdir=$objdir
18256
18257 # Used to examine libraries when file_magic_cmd begins with "file".
18258 MAGIC_CMD=$MAGIC_CMD
18259
18260 # Must we lock files when doing compilation?
18261 need_locks=$lt_need_locks
18262
18263 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18264 DSYMUTIL=$lt_DSYMUTIL
18265
18266 # Tool to change global to local symbols on Mac OS X.
18267 NMEDIT=$lt_NMEDIT
18268
18269 # Tool to manipulate fat objects and archives on Mac OS X.
18270 LIPO=$lt_LIPO
18271
18272 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18273 OTOOL=$lt_OTOOL
18274
18275 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18276 OTOOL64=$lt_OTOOL64
18277
18278 # Old archive suffix (normally "a").
18279 libext=$libext
18280
18281 # Shared library suffix (normally ".so").
18282 shrext_cmds=$lt_shrext_cmds
18283
18284 # The commands to extract the exported symbol list from a shared archive.
18285 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18286
18287 # Variables whose values should be saved in libtool wrapper scripts and
18288 # restored at link time.
18289 variables_saved_for_relink=$lt_variables_saved_for_relink
18290
18291 # Do we need the "lib" prefix for modules?
18292 need_lib_prefix=$need_lib_prefix
18293
18294 # Do we need a version for libraries?
18295 need_version=$need_version
18296
18297 # Library versioning type.
18298 version_type=$version_type
18299
18300 # Shared library runtime path variable.
18301 runpath_var=$runpath_var
18302
18303 # Shared library path variable.
18304 shlibpath_var=$shlibpath_var
18305
18306 # Is shlibpath searched before the hard-coded library search path?
18307 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18308
18309 # Format of library name prefix.
18310 libname_spec=$lt_libname_spec
18311
18312 # List of archive names. First name is the real one, the rest are links.
18313 # The last name is the one that the linker finds with -lNAME
18314 library_names_spec=$lt_library_names_spec
18315
18316 # The coded name of the library, if different from the real name.
18317 soname_spec=$lt_soname_spec
18318
18319 # Permission mode override for installation of shared libraries.
18320 install_override_mode=$lt_install_override_mode
18321
18322 # Command to use after installation of a shared archive.
18323 postinstall_cmds=$lt_postinstall_cmds
18324
18325 # Command to use after uninstallation of a shared archive.
18326 postuninstall_cmds=$lt_postuninstall_cmds
18327
18328 # Commands used to finish a libtool library installation in a directory.
18329 finish_cmds=$lt_finish_cmds
18330
18331 # As "finish_cmds", except a single script fragment to be evaled but
18332 # not shown.
18333 finish_eval=$lt_finish_eval
18334
18335 # Whether we should hardcode library paths into libraries.
18336 hardcode_into_libs=$hardcode_into_libs
18337
18338 # Compile-time system search path for libraries.
18339 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18340
18341 # Run-time system search path for libraries.
18342 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18343
18344 # Whether dlopen is supported.
18345 dlopen_support=$enable_dlopen
18346
18347 # Whether dlopen of programs is supported.
18348 dlopen_self=$enable_dlopen_self
18349
18350 # Whether dlopen of statically linked programs is supported.
18351 dlopen_self_static=$enable_dlopen_self_static
18352
18353 # Commands to strip libraries.
18354 old_striplib=$lt_old_striplib
18355 striplib=$lt_striplib
18356
18357
18358 # The linker used to build libraries.
18359 LD=$lt_LD
18360
18361 # How to create reloadable object files.
18362 reload_flag=$lt_reload_flag
18363 reload_cmds=$lt_reload_cmds
18364
18365 # Commands used to build an old-style archive.
18366 old_archive_cmds=$lt_old_archive_cmds
18367
18368 # A language specific compiler.
18369 CC=$lt_compiler
18370
18371 # Is the compiler the GNU compiler?
18372 with_gcc=$GCC
18373
18374 # Compiler flag to turn off builtin functions.
18375 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18376
18377 # How to pass a linker flag through the compiler.
18378 wl=$lt_lt_prog_compiler_wl
18379
18380 # Additional compiler flags for building library objects.
18381 pic_flag=$lt_lt_prog_compiler_pic
18382
18383 # Compiler flag to prevent dynamic linking.
18384 link_static_flag=$lt_lt_prog_compiler_static
18385
18386 # Does compiler simultaneously support -c and -o options?
18387 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18388
18389 # Whether or not to add -lc for building shared libraries.
18390 build_libtool_need_lc=$archive_cmds_need_lc
18391
18392 # Whether or not to disallow shared libs when runtime libs are static.
18393 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18394
18395 # Compiler flag to allow reflexive dlopens.
18396 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18397
18398 # Compiler flag to generate shared objects directly from archives.
18399 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18400
18401 # Whether the compiler copes with passing no objects directly.
18402 compiler_needs_object=$lt_compiler_needs_object
18403
18404 # Create an old-style archive from a shared archive.
18405 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18406
18407 # Create a temporary old-style archive to link instead of a shared archive.
18408 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18409
18410 # Commands used to build a shared archive.
18411 archive_cmds=$lt_archive_cmds
18412 archive_expsym_cmds=$lt_archive_expsym_cmds
18413
18414 # Commands used to build a loadable module if different from building
18415 # a shared archive.
18416 module_cmds=$lt_module_cmds
18417 module_expsym_cmds=$lt_module_expsym_cmds
18418
18419 # Whether we are building with GNU ld or not.
18420 with_gnu_ld=$lt_with_gnu_ld
18421
18422 # Flag that allows shared libraries with undefined symbols to be built.
18423 allow_undefined_flag=$lt_allow_undefined_flag
18424
18425 # Flag that enforces no undefined symbols.
18426 no_undefined_flag=$lt_no_undefined_flag
18427
18428 # Flag to hardcode \$libdir into a binary during linking.
18429 # This must work even if \$libdir does not exist
18430 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18431
18432 # If ld is used when linking, flag to hardcode \$libdir into a binary
18433 # during linking. This must work even if \$libdir does not exist.
18434 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18435
18436 # Whether we need a single "-rpath" flag with a separated argument.
18437 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18438
18439 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18440 # DIR into the resulting binary.
18441 hardcode_direct=$hardcode_direct
18442
18443 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18444 # DIR into the resulting binary and the resulting library dependency is
18445 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18446 # library is relocated.
18447 hardcode_direct_absolute=$hardcode_direct_absolute
18448
18449 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18450 # into the resulting binary.
18451 hardcode_minus_L=$hardcode_minus_L
18452
18453 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18454 # into the resulting binary.
18455 hardcode_shlibpath_var=$hardcode_shlibpath_var
18456
18457 # Set to "yes" if building a shared library automatically hardcodes DIR
18458 # into the library and all subsequent libraries and executables linked
18459 # against it.
18460 hardcode_automatic=$hardcode_automatic
18461
18462 # Set to yes if linker adds runtime paths of dependent libraries
18463 # to runtime path list.
18464 inherit_rpath=$inherit_rpath
18465
18466 # Whether libtool must link a program against all its dependency libraries.
18467 link_all_deplibs=$link_all_deplibs
18468
18469 # Fix the shell variable \$srcfile for the compiler.
18470 fix_srcfile_path=$lt_fix_srcfile_path
18471
18472 # Set to "yes" if exported symbols are required.
18473 always_export_symbols=$always_export_symbols
18474
18475 # The commands to list exported symbols.
18476 export_symbols_cmds=$lt_export_symbols_cmds
18477
18478 # Symbols that should not be listed in the preloaded symbols.
18479 exclude_expsyms=$lt_exclude_expsyms
18480
18481 # Symbols that must always be exported.
18482 include_expsyms=$lt_include_expsyms
18483
18484 # Commands necessary for linking programs (against libraries) with templates.
18485 prelink_cmds=$lt_prelink_cmds
18486
18487 # Specify filename containing input files.
18488 file_list_spec=$lt_file_list_spec
18489
18490 # How to hardcode a shared library path into an executable.
18491 hardcode_action=$hardcode_action
18492
18493 # The directories searched by this compiler when creating a shared library.
18494 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18495
18496 # Dependencies to place before and after the objects being linked to
18497 # create a shared library.
18498 predep_objects=$lt_predep_objects
18499 postdep_objects=$lt_postdep_objects
18500 predeps=$lt_predeps
18501 postdeps=$lt_postdeps
18502
18503 # The library search path used internally by the compiler when linking
18504 # a shared library.
18505 compiler_lib_search_path=$lt_compiler_lib_search_path
18506
18507 # ### END LIBTOOL CONFIG
18508
18509 _LT_EOF
18510
18511 case $host_os in
18512 aix3*)
18513 cat <<\_LT_EOF >> "$cfgfile"
18514 # AIX sometimes has problems with the GCC collect2 program. For some
18515 # reason, if we set the COLLECT_NAMES environment variable, the problems
18516 # vanish in a puff of smoke.
18517 if test "X${COLLECT_NAMES+set}" != Xset; then
18518 COLLECT_NAMES=
18519 export COLLECT_NAMES
18520 fi
18521 _LT_EOF
18522 ;;
18523 esac
18524
18525
18526 ltmain="$ac_aux_dir/ltmain.sh"
18527
18528
18529 # We use sed instead of cat because bash on DJGPP gets confused if
18530 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18531 # text mode, it properly converts lines to CR/LF. This bash problem
18532 # is reportedly fixed, but why not run on old versions too?
18533 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18534 || (rm -f "$cfgfile"; exit 1)
18535
18536 case $xsi_shell in
18537 yes)
18538 cat << \_LT_EOF >> "$cfgfile"
18539
18540 # func_dirname file append nondir_replacement
18541 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18542 # otherwise set result to NONDIR_REPLACEMENT.
18543 func_dirname ()
18544 {
18545 case ${1} in
18546 */*) func_dirname_result="${1%/*}${2}" ;;
18547 * ) func_dirname_result="${3}" ;;
18548 esac
18549 }
18550
18551 # func_basename file
18552 func_basename ()
18553 {
18554 func_basename_result="${1##*/}"
18555 }
18556
18557 # func_dirname_and_basename file append nondir_replacement
18558 # perform func_basename and func_dirname in a single function
18559 # call:
18560 # dirname: Compute the dirname of FILE. If nonempty,
18561 # add APPEND to the result, otherwise set result
18562 # to NONDIR_REPLACEMENT.
18563 # value returned in "$func_dirname_result"
18564 # basename: Compute filename of FILE.
18565 # value retuned in "$func_basename_result"
18566 # Implementation must be kept synchronized with func_dirname
18567 # and func_basename. For efficiency, we do not delegate to
18568 # those functions but instead duplicate the functionality here.
18569 func_dirname_and_basename ()
18570 {
18571 case ${1} in
18572 */*) func_dirname_result="${1%/*}${2}" ;;
18573 * ) func_dirname_result="${3}" ;;
18574 esac
18575 func_basename_result="${1##*/}"
18576 }
18577
18578 # func_stripname prefix suffix name
18579 # strip PREFIX and SUFFIX off of NAME.
18580 # PREFIX and SUFFIX must not contain globbing or regex special
18581 # characters, hashes, percent signs, but SUFFIX may contain a leading
18582 # dot (in which case that matches only a dot).
18583 func_stripname ()
18584 {
18585 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18586 # positional parameters, so assign one to ordinary parameter first.
18587 func_stripname_result=${3}
18588 func_stripname_result=${func_stripname_result#"${1}"}
18589 func_stripname_result=${func_stripname_result%"${2}"}
18590 }
18591
18592 # func_opt_split
18593 func_opt_split ()
18594 {
18595 func_opt_split_opt=${1%%=*}
18596 func_opt_split_arg=${1#*=}
18597 }
18598
18599 # func_lo2o object
18600 func_lo2o ()
18601 {
18602 case ${1} in
18603 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18604 *) func_lo2o_result=${1} ;;
18605 esac
18606 }
18607
18608 # func_xform libobj-or-source
18609 func_xform ()
18610 {
18611 func_xform_result=${1%.*}.lo
18612 }
18613
18614 # func_arith arithmetic-term...
18615 func_arith ()
18616 {
18617 func_arith_result=$(( $* ))
18618 }
18619
18620 # func_len string
18621 # STRING may not start with a hyphen.
18622 func_len ()
18623 {
18624 func_len_result=${#1}
18625 }
18626
18627 _LT_EOF
18628 ;;
18629 *) # Bourne compatible functions.
18630 cat << \_LT_EOF >> "$cfgfile"
18631
18632 # func_dirname file append nondir_replacement
18633 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18634 # otherwise set result to NONDIR_REPLACEMENT.
18635 func_dirname ()
18636 {
18637 # Extract subdirectory from the argument.
18638 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18639 if test "X$func_dirname_result" = "X${1}"; then
18640 func_dirname_result="${3}"
18641 else
18642 func_dirname_result="$func_dirname_result${2}"
18643 fi
18644 }
18645
18646 # func_basename file
18647 func_basename ()
18648 {
18649 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18650 }
18651
18652
18653 # func_stripname prefix suffix name
18654 # strip PREFIX and SUFFIX off of NAME.
18655 # PREFIX and SUFFIX must not contain globbing or regex special
18656 # characters, hashes, percent signs, but SUFFIX may contain a leading
18657 # dot (in which case that matches only a dot).
18658 # func_strip_suffix prefix name
18659 func_stripname ()
18660 {
18661 case ${2} in
18662 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18663 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18664 esac
18665 }
18666
18667 # sed scripts:
18668 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18669 my_sed_long_arg='1s/^-[^=]*=//'
18670
18671 # func_opt_split
18672 func_opt_split ()
18673 {
18674 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18675 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18676 }
18677
18678 # func_lo2o object
18679 func_lo2o ()
18680 {
18681 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18682 }
18683
18684 # func_xform libobj-or-source
18685 func_xform ()
18686 {
18687 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18688 }
18689
18690 # func_arith arithmetic-term...
18691 func_arith ()
18692 {
18693 func_arith_result=`expr "$@"`
18694 }
18695
18696 # func_len string
18697 # STRING may not start with a hyphen.
18698 func_len ()
18699 {
18700 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18701 }
18702
18703 _LT_EOF
18704 esac
18705
18706 case $lt_shell_append in
18707 yes)
18708 cat << \_LT_EOF >> "$cfgfile"
18709
18710 # func_append var value
18711 # Append VALUE to the end of shell variable VAR.
18712 func_append ()
18713 {
18714 eval "$1+=\$2"
18715 }
18716 _LT_EOF
18717 ;;
18718 *)
18719 cat << \_LT_EOF >> "$cfgfile"
18720
18721 # func_append var value
18722 # Append VALUE to the end of shell variable VAR.
18723 func_append ()
18724 {
18725 eval "$1=\$$1\$2"
18726 }
18727
18728 _LT_EOF
18729 ;;
18730 esac
18731
18732
18733 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18734 || (rm -f "$cfgfile"; exit 1)
18735
18736 mv -f "$cfgfile" "$ofile" ||
18737 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18738 chmod +x "$ofile"
18739
18740
18741 cat <<_LT_EOF >> "$ofile"
18742
18743 # ### BEGIN LIBTOOL TAG CONFIG: FC
18744
18745 # The linker used to build libraries.
18746 LD=$lt_LD_FC
18747
18748 # How to create reloadable object files.
18749 reload_flag=$lt_reload_flag_FC
18750 reload_cmds=$lt_reload_cmds_FC
18751
18752 # Commands used to build an old-style archive.
18753 old_archive_cmds=$lt_old_archive_cmds_FC
18754
18755 # A language specific compiler.
18756 CC=$lt_compiler_FC
18757
18758 # Is the compiler the GNU compiler?
18759 with_gcc=$GCC_FC
18760
18761 # Compiler flag to turn off builtin functions.
18762 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
18763
18764 # How to pass a linker flag through the compiler.
18765 wl=$lt_lt_prog_compiler_wl_FC
18766
18767 # Additional compiler flags for building library objects.
18768 pic_flag=$lt_lt_prog_compiler_pic_FC
18769
18770 # Compiler flag to prevent dynamic linking.
18771 link_static_flag=$lt_lt_prog_compiler_static_FC
18772
18773 # Does compiler simultaneously support -c and -o options?
18774 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
18775
18776 # Whether or not to add -lc for building shared libraries.
18777 build_libtool_need_lc=$archive_cmds_need_lc_FC
18778
18779 # Whether or not to disallow shared libs when runtime libs are static.
18780 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
18781
18782 # Compiler flag to allow reflexive dlopens.
18783 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
18784
18785 # Compiler flag to generate shared objects directly from archives.
18786 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
18787
18788 # Whether the compiler copes with passing no objects directly.
18789 compiler_needs_object=$lt_compiler_needs_object_FC
18790
18791 # Create an old-style archive from a shared archive.
18792 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
18793
18794 # Create a temporary old-style archive to link instead of a shared archive.
18795 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
18796
18797 # Commands used to build a shared archive.
18798 archive_cmds=$lt_archive_cmds_FC
18799 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
18800
18801 # Commands used to build a loadable module if different from building
18802 # a shared archive.
18803 module_cmds=$lt_module_cmds_FC
18804 module_expsym_cmds=$lt_module_expsym_cmds_FC
18805
18806 # Whether we are building with GNU ld or not.
18807 with_gnu_ld=$lt_with_gnu_ld_FC
18808
18809 # Flag that allows shared libraries with undefined symbols to be built.
18810 allow_undefined_flag=$lt_allow_undefined_flag_FC
18811
18812 # Flag that enforces no undefined symbols.
18813 no_undefined_flag=$lt_no_undefined_flag_FC
18814
18815 # Flag to hardcode \$libdir into a binary during linking.
18816 # This must work even if \$libdir does not exist
18817 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
18818
18819 # If ld is used when linking, flag to hardcode \$libdir into a binary
18820 # during linking. This must work even if \$libdir does not exist.
18821 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
18822
18823 # Whether we need a single "-rpath" flag with a separated argument.
18824 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
18825
18826 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18827 # DIR into the resulting binary.
18828 hardcode_direct=$hardcode_direct_FC
18829
18830 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18831 # DIR into the resulting binary and the resulting library dependency is
18832 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18833 # library is relocated.
18834 hardcode_direct_absolute=$hardcode_direct_absolute_FC
18835
18836 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18837 # into the resulting binary.
18838 hardcode_minus_L=$hardcode_minus_L_FC
18839
18840 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18841 # into the resulting binary.
18842 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
18843
18844 # Set to "yes" if building a shared library automatically hardcodes DIR
18845 # into the library and all subsequent libraries and executables linked
18846 # against it.
18847 hardcode_automatic=$hardcode_automatic_FC
18848
18849 # Set to yes if linker adds runtime paths of dependent libraries
18850 # to runtime path list.
18851 inherit_rpath=$inherit_rpath_FC
18852
18853 # Whether libtool must link a program against all its dependency libraries.
18854 link_all_deplibs=$link_all_deplibs_FC
18855
18856 # Fix the shell variable \$srcfile for the compiler.
18857 fix_srcfile_path=$lt_fix_srcfile_path_FC
18858
18859 # Set to "yes" if exported symbols are required.
18860 always_export_symbols=$always_export_symbols_FC
18861
18862 # The commands to list exported symbols.
18863 export_symbols_cmds=$lt_export_symbols_cmds_FC
18864
18865 # Symbols that should not be listed in the preloaded symbols.
18866 exclude_expsyms=$lt_exclude_expsyms_FC
18867
18868 # Symbols that must always be exported.
18869 include_expsyms=$lt_include_expsyms_FC
18870
18871 # Commands necessary for linking programs (against libraries) with templates.
18872 prelink_cmds=$lt_prelink_cmds_FC
18873
18874 # Specify filename containing input files.
18875 file_list_spec=$lt_file_list_spec_FC
18876
18877 # How to hardcode a shared library path into an executable.
18878 hardcode_action=$hardcode_action_FC
18879
18880 # The directories searched by this compiler when creating a shared library.
18881 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
18882
18883 # Dependencies to place before and after the objects being linked to
18884 # create a shared library.
18885 predep_objects=$lt_predep_objects_FC
18886 postdep_objects=$lt_postdep_objects_FC
18887 predeps=$lt_predeps_FC
18888 postdeps=$lt_postdeps_FC
18889
18890 # The library search path used internally by the compiler when linking
18891 # a shared library.
18892 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
18893
18894 # ### END LIBTOOL TAG CONFIG: FC
18895 _LT_EOF
18896
18897 ;;
18898 "gstdint.h":C)
18899 if test "$GCC" = yes; then
18900 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
18901 else
18902 echo "/* generated for $CC */" > tmp-stdint.h
18903 fi
18904
18905 sed 's/^ *//' >> tmp-stdint.h <<EOF
18906
18907 #ifndef GCC_GENERATED_STDINT_H
18908 #define GCC_GENERATED_STDINT_H 1
18909
18910 #include <sys/types.h>
18911 EOF
18912
18913 if test "$acx_cv_header_stdint" != stdint.h; then
18914 echo "#include <stddef.h>" >> tmp-stdint.h
18915 fi
18916 if test "$acx_cv_header_stdint" != stddef.h; then
18917 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
18918 fi
18919
18920 sed 's/^ *//' >> tmp-stdint.h <<EOF
18921 /* glibc uses these symbols as guards to prevent redefinitions. */
18922 #ifdef __int8_t_defined
18923 #define _INT8_T
18924 #define _INT16_T
18925 #define _INT32_T
18926 #endif
18927 #ifdef __uint32_t_defined
18928 #define _UINT32_T
18929 #endif
18930
18931 EOF
18932
18933 # ----------------- done header, emit basic int types -------------
18934 if test "$acx_cv_header_stdint" = stddef.h; then
18935 sed 's/^ *//' >> tmp-stdint.h <<EOF
18936
18937 #ifndef _UINT8_T
18938 #define _UINT8_T
18939 #ifndef __uint8_t_defined
18940 #define __uint8_t_defined
18941 #ifndef uint8_t
18942 typedef unsigned $acx_cv_type_int8_t uint8_t;
18943 #endif
18944 #endif
18945 #endif
18946
18947 #ifndef _UINT16_T
18948 #define _UINT16_T
18949 #ifndef __uint16_t_defined
18950 #define __uint16_t_defined
18951 #ifndef uint16_t
18952 typedef unsigned $acx_cv_type_int16_t uint16_t;
18953 #endif
18954 #endif
18955 #endif
18956
18957 #ifndef _UINT32_T
18958 #define _UINT32_T
18959 #ifndef __uint32_t_defined
18960 #define __uint32_t_defined
18961 #ifndef uint32_t
18962 typedef unsigned $acx_cv_type_int32_t uint32_t;
18963 #endif
18964 #endif
18965 #endif
18966
18967 #ifndef _INT8_T
18968 #define _INT8_T
18969 #ifndef __int8_t_defined
18970 #define __int8_t_defined
18971 #ifndef int8_t
18972 typedef $acx_cv_type_int8_t int8_t;
18973 #endif
18974 #endif
18975 #endif
18976
18977 #ifndef _INT16_T
18978 #define _INT16_T
18979 #ifndef __int16_t_defined
18980 #define __int16_t_defined
18981 #ifndef int16_t
18982 typedef $acx_cv_type_int16_t int16_t;
18983 #endif
18984 #endif
18985 #endif
18986
18987 #ifndef _INT32_T
18988 #define _INT32_T
18989 #ifndef __int32_t_defined
18990 #define __int32_t_defined
18991 #ifndef int32_t
18992 typedef $acx_cv_type_int32_t int32_t;
18993 #endif
18994 #endif
18995 #endif
18996 EOF
18997 elif test "$ac_cv_type_u_int32_t" = yes; then
18998 sed 's/^ *//' >> tmp-stdint.h <<EOF
18999
19000 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
19001 #ifndef _INT8_T
19002 #define _INT8_T
19003 #endif
19004 #ifndef _INT16_T
19005 #define _INT16_T
19006 #endif
19007 #ifndef _INT32_T
19008 #define _INT32_T
19009 #endif
19010
19011 #ifndef _UINT8_T
19012 #define _UINT8_T
19013 #ifndef __uint8_t_defined
19014 #define __uint8_t_defined
19015 #ifndef uint8_t
19016 typedef u_int8_t uint8_t;
19017 #endif
19018 #endif
19019 #endif
19020
19021 #ifndef _UINT16_T
19022 #define _UINT16_T
19023 #ifndef __uint16_t_defined
19024 #define __uint16_t_defined
19025 #ifndef uint16_t
19026 typedef u_int16_t uint16_t;
19027 #endif
19028 #endif
19029 #endif
19030
19031 #ifndef _UINT32_T
19032 #define _UINT32_T
19033 #ifndef __uint32_t_defined
19034 #define __uint32_t_defined
19035 #ifndef uint32_t
19036 typedef u_int32_t uint32_t;
19037 #endif
19038 #endif
19039 #endif
19040 EOF
19041 else
19042 sed 's/^ *//' >> tmp-stdint.h <<EOF
19043
19044 /* Some systems have guard macros to prevent redefinitions, define them. */
19045 #ifndef _INT8_T
19046 #define _INT8_T
19047 #endif
19048 #ifndef _INT16_T
19049 #define _INT16_T
19050 #endif
19051 #ifndef _INT32_T
19052 #define _INT32_T
19053 #endif
19054 #ifndef _UINT8_T
19055 #define _UINT8_T
19056 #endif
19057 #ifndef _UINT16_T
19058 #define _UINT16_T
19059 #endif
19060 #ifndef _UINT32_T
19061 #define _UINT32_T
19062 #endif
19063 EOF
19064 fi
19065
19066 # ------------- done basic int types, emit int64_t types ------------
19067 if test "$ac_cv_type_uint64_t" = yes; then
19068 sed 's/^ *//' >> tmp-stdint.h <<EOF
19069
19070 /* system headers have good uint64_t and int64_t */
19071 #ifndef _INT64_T
19072 #define _INT64_T
19073 #endif
19074 #ifndef _UINT64_T
19075 #define _UINT64_T
19076 #endif
19077 EOF
19078 elif test "$ac_cv_type_u_int64_t" = yes; then
19079 sed 's/^ *//' >> tmp-stdint.h <<EOF
19080
19081 /* system headers have an u_int64_t (and int64_t) */
19082 #ifndef _INT64_T
19083 #define _INT64_T
19084 #endif
19085 #ifndef _UINT64_T
19086 #define _UINT64_T
19087 #ifndef __uint64_t_defined
19088 #define __uint64_t_defined
19089 #ifndef uint64_t
19090 typedef u_int64_t uint64_t;
19091 #endif
19092 #endif
19093 #endif
19094 EOF
19095 elif test -n "$acx_cv_type_int64_t"; then
19096 sed 's/^ *//' >> tmp-stdint.h <<EOF
19097
19098 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
19099 #ifndef _INT64_T
19100 #define _INT64_T
19101 #ifndef int64_t
19102 typedef $acx_cv_type_int64_t int64_t;
19103 #endif
19104 #endif
19105 #ifndef _UINT64_T
19106 #define _UINT64_T
19107 #ifndef __uint64_t_defined
19108 #define __uint64_t_defined
19109 #ifndef uint64_t
19110 typedef unsigned $acx_cv_type_int64_t uint64_t;
19111 #endif
19112 #endif
19113 #endif
19114 EOF
19115 else
19116 sed 's/^ *//' >> tmp-stdint.h <<EOF
19117
19118 /* some common heuristics for int64_t, using compiler-specific tests */
19119 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
19120 #ifndef _INT64_T
19121 #define _INT64_T
19122 #ifndef __int64_t_defined
19123 #ifndef int64_t
19124 typedef long long int64_t;
19125 #endif
19126 #endif
19127 #endif
19128 #ifndef _UINT64_T
19129 #define _UINT64_T
19130 #ifndef uint64_t
19131 typedef unsigned long long uint64_t;
19132 #endif
19133 #endif
19134
19135 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
19136 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
19137 does not implement __extension__. But that compiler doesn't define
19138 __GNUC_MINOR__. */
19139 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
19140 # define __extension__
19141 # endif
19142
19143 # ifndef _INT64_T
19144 # define _INT64_T
19145 # ifndef int64_t
19146 __extension__ typedef long long int64_t;
19147 # endif
19148 # endif
19149 # ifndef _UINT64_T
19150 # define _UINT64_T
19151 # ifndef uint64_t
19152 __extension__ typedef unsigned long long uint64_t;
19153 # endif
19154 # endif
19155
19156 #elif !defined __STRICT_ANSI__
19157 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
19158
19159 # ifndef _INT64_T
19160 # define _INT64_T
19161 # ifndef int64_t
19162 typedef __int64 int64_t;
19163 # endif
19164 # endif
19165 # ifndef _UINT64_T
19166 # define _UINT64_T
19167 # ifndef uint64_t
19168 typedef unsigned __int64 uint64_t;
19169 # endif
19170 # endif
19171 # endif /* compiler */
19172
19173 #endif /* ANSI version */
19174 EOF
19175 fi
19176
19177 # ------------- done int64_t types, emit intptr types ------------
19178 if test "$ac_cv_type_uintptr_t" != yes; then
19179 sed 's/^ *//' >> tmp-stdint.h <<EOF
19180
19181 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
19182 #ifndef __uintptr_t_defined
19183 #ifndef uintptr_t
19184 typedef u$acx_cv_type_intptr_t uintptr_t;
19185 #endif
19186 #endif
19187 #ifndef __intptr_t_defined
19188 #ifndef intptr_t
19189 typedef $acx_cv_type_intptr_t intptr_t;
19190 #endif
19191 #endif
19192 EOF
19193 fi
19194
19195 # ------------- done intptr types, emit int_least types ------------
19196 if test "$ac_cv_type_int_least32_t" != yes; then
19197 sed 's/^ *//' >> tmp-stdint.h <<EOF
19198
19199 /* Define int_least types */
19200 typedef int8_t int_least8_t;
19201 typedef int16_t int_least16_t;
19202 typedef int32_t int_least32_t;
19203 #ifdef _INT64_T
19204 typedef int64_t int_least64_t;
19205 #endif
19206
19207 typedef uint8_t uint_least8_t;
19208 typedef uint16_t uint_least16_t;
19209 typedef uint32_t uint_least32_t;
19210 #ifdef _UINT64_T
19211 typedef uint64_t uint_least64_t;
19212 #endif
19213 EOF
19214 fi
19215
19216 # ------------- done intptr types, emit int_fast types ------------
19217 if test "$ac_cv_type_int_fast32_t" != yes; then
19218 sed 's/^ *//' >> tmp-stdint.h <<EOF
19219
19220 /* Define int_fast types. short is often slow */
19221 typedef int8_t int_fast8_t;
19222 typedef int int_fast16_t;
19223 typedef int32_t int_fast32_t;
19224 #ifdef _INT64_T
19225 typedef int64_t int_fast64_t;
19226 #endif
19227
19228 typedef uint8_t uint_fast8_t;
19229 typedef unsigned int uint_fast16_t;
19230 typedef uint32_t uint_fast32_t;
19231 #ifdef _UINT64_T
19232 typedef uint64_t uint_fast64_t;
19233 #endif
19234 EOF
19235 fi
19236
19237 if test "$ac_cv_type_uintmax_t" != yes; then
19238 sed 's/^ *//' >> tmp-stdint.h <<EOF
19239
19240 /* Define intmax based on what we found */
19241 #ifndef intmax_t
19242 #ifdef _INT64_T
19243 typedef int64_t intmax_t;
19244 #else
19245 typedef long intmax_t;
19246 #endif
19247 #endif
19248 #ifndef uintmax_t
19249 #ifdef _UINT64_T
19250 typedef uint64_t uintmax_t;
19251 #else
19252 typedef unsigned long uintmax_t;
19253 #endif
19254 #endif
19255 EOF
19256 fi
19257
19258 sed 's/^ *//' >> tmp-stdint.h <<EOF
19259
19260 #endif /* GCC_GENERATED_STDINT_H */
19261 EOF
19262
19263 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
19264 rm -f tmp-stdint.h
19265 else
19266 mv -f tmp-stdint.h gstdint.h
19267 fi
19268
19269 ;;
19270
19271 esac
19272 done # for ac_tag
19273
19274
19275 as_fn_exit 0
19276 _ACEOF
19277 ac_clean_files=$ac_clean_files_save
19278
19279 test $ac_write_fail = 0 ||
19280 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19281
19282
19283 # configure is writing to config.log, and then calls config.status.
19284 # config.status does its own redirection, appending to config.log.
19285 # Unfortunately, on DOS this fails, as config.log is still kept open
19286 # by configure, so config.status won't be able to write to it; its
19287 # output is simply discarded. So we exec the FD to /dev/null,
19288 # effectively closing config.log, so it can be properly (re)opened and
19289 # appended to by config.status. When coming back to configure, we
19290 # need to make the FD available again.
19291 if test "$no_create" != yes; then
19292 ac_cs_success=:
19293 ac_config_status_args=
19294 test "$silent" = yes &&
19295 ac_config_status_args="$ac_config_status_args --quiet"
19296 exec 5>/dev/null
19297 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19298 exec 5>>config.log
19299 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19300 # would make configure fail if this is the last instruction.
19301 $ac_cs_success || as_fn_exit $?
19302 fi
19303 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19305 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19306 fi
19307