]> gcc.gnu.org Git - gcc.git/blame - libgomp/configure
Regenerate tree using Autoconf 2.64 and Automake 1.11.
[gcc.git] / libgomp / configure
CommitLineData
953ff289
DN
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
5213506e
RW
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.
953ff289 8#
953ff289
DN
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
5213506e
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
953ff289 14
5213506e
RW
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
953ff289
DN
18 emulate sh
19 NULLCMD=:
5213506e 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
953ff289
DN
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
953ff289 31fi
953ff289 32
5213506e
RW
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_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.
43if 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 --'
47elif (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'
50else
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'
70fi
71
72# The user is always right.
73if 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 }
953ff289
DN
79fi
80
81
5213506e
RW
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.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
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
99IFS=$as_save_IFS
100
101 ;;
102esac
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.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
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.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
953ff289
DN
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
5213506e
RW
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if 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
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test 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
172test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175else
176 as_have_required=no
177fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182as_found=false
183for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
953ff289 184do
5213506e
RW
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198fi
199fi
200 done;;
201 esac
202 as_found=false
203done
204$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207fi; }
208IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
953ff289 228 else
5213506e
RW
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230$0: including any error possibly output before this
231$0: message. Then install a modern shell, or manually run
232$0: the script under such a shell if you do have one."
953ff289 233 fi
5213506e
RW
234 exit 1
235fi
236fi
237fi
238SHELL=${CONFIG_SHELL-/bin/sh}
239export SHELL
240# Unset more variables known to interfere with behavior of common tools.
241CLICOLOR_FORCE= GREP_OPTIONS=
242unset CLICOLOR_FORCE GREP_OPTIONS
243
244## --------------------- ##
245## M4sh Shell Functions. ##
246## --------------------- ##
247# as_fn_unset VAR
248# ---------------
249# Portably unset VAR.
250as_fn_unset ()
251{
252 { eval $1=; unset $1;}
253}
254as_unset=as_fn_unset
255
256# as_fn_set_status STATUS
257# -----------------------
258# Set $? to STATUS, without forking.
259as_fn_set_status ()
260{
261 return $1
262} # as_fn_set_status
263
264# as_fn_exit STATUS
265# -----------------
266# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267as_fn_exit ()
268{
269 set +e
270 as_fn_set_status $1
271 exit $1
272} # as_fn_exit
273
274# as_fn_mkdir_p
275# -------------
276# Create "$as_dir" as a directory, including parents if necessary.
277as_fn_mkdir_p ()
278{
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296$as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320} # as_fn_mkdir_p
321# as_fn_append VAR VALUE
322# ----------------------
323# Append the text in VALUE to the end of the definition contained in VAR. Take
324# advantage of any shell optimizations that allow amortized linear growth over
325# repeated appends, instead of the typical quadratic growth present in naive
326# implementations.
327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337fi # as_fn_append
338
339# as_fn_arith ARG...
340# ------------------
341# Perform arithmetic evaluation on the ARGs, and store the result in the
342# global $as_val. Take advantage of shells that can avoid forks. The arguments
343# must be portable across $(()) and expr.
344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354fi # as_fn_arith
355
356
357# as_fn_error ERROR [LINENO LOG_FD]
358# ---------------------------------
359# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361# script with status $?, using 1 if that was 0.
362as_fn_error ()
363{
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371} # as_fn_error
953ff289 372
5213506e
RW
373if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
953ff289
DN
375 as_expr=expr
376else
377 as_expr=false
378fi
379
5213506e 380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
953ff289
DN
381 as_basename=basename
382else
383 as_basename=false
384fi
385
5213506e
RW
386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388else
389 as_dirname=false
390fi
953ff289 391
5213506e 392as_me=`$as_basename -- "$0" ||
953ff289
DN
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
5213506e
RW
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396$as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
953ff289 410
953ff289
DN
411# Avoid depending upon Character Ranges.
412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415as_cr_digits='0123456789'
416as_cr_alnum=$as_cr_Letters$as_cr_digits
417
953ff289 418
5213506e
RW
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
953ff289 428 sed '
5213506e
RW
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
953ff289 433 N
5213506e
RW
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
953ff289 436 t loop
5213506e 437 s/-\n.*//
953ff289 438 ' >$as_me.lineno &&
5213506e
RW
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
953ff289
DN
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
5213506e
RW
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
953ff289
DN
446 # Exit status is that of the last command.
447 exit
448}
449
5213506e
RW
450ECHO_C= ECHO_N= ECHO_T=
451case `echo -n x` in #(((((
452-n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459*)
460 ECHO_N='-n';;
953ff289
DN
461esac
462
5213506e
RW
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
953ff289 466else
5213506e
RW
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
953ff289 469fi
5213506e
RW
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
953ff289 472 as_ln_s='ln -s'
5213506e
RW
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
953ff289 483 fi
953ff289
DN
484else
485 as_ln_s='cp -p'
486fi
5213506e
RW
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
953ff289
DN
489
490if mkdir -p . 2>/dev/null; then
5213506e 491 as_mkdir_p='mkdir -p "$as_dir"'
953ff289
DN
492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
496
5213506e
RW
497if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517fi
518as_executable_p=$as_test_x
953ff289
DN
519
520# Sed expression to map a string onto a valid CPP name.
521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523# Sed expression to map a string onto a valid variable name.
524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
1cf3d07d
SE
527
528# Check that we are running under the correct shell.
529SHELL=${CONFIG_SHELL-/bin/sh}
530
531case X$lt_ECHO in
532X*--fallback-echo)
533 # Remove one level of quotation (which was required for Make).
534 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
535 ;;
536esac
537
538ECHO=${lt_ECHO-echo}
539if test "X$1" = X--no-reexec; then
540 # Discard the --no-reexec flag, and continue.
541 shift
542elif test "X$1" = X--fallback-echo; then
543 # Avoid inline document here, it may be left over
544 :
545elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
546 # Yippee, $ECHO works!
547 :
548else
549 # Restart under the correct shell.
550 exec $SHELL "$0" --no-reexec ${1+"$@"}
551fi
552
553if test "X$1" = X--fallback-echo; then
554 # used as fallback echo
555 shift
556 cat <<_LT_EOF
557$*
558_LT_EOF
559 exit 0
560fi
561
562# The HP-UX ksh and POSIX shell print the target directory to stdout
563# if CDPATH is set.
564(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
565
566if test -z "$lt_ECHO"; then
567 if test "X${echo_test_string+set}" != Xset; then
568 # find a string as large as possible, as long as the shell can cope with it
569 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
570 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
571 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
572 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
573 then
574 break
575 fi
576 done
577 fi
578
579 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
580 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
581 test "X$echo_testing_string" = "X$echo_test_string"; then
582 :
583 else
584 # The Solaris, AIX, and Digital Unix default echo programs unquote
585 # backslashes. This makes it impossible to quote backslashes using
586 # echo "$something" | sed 's/\\/\\\\/g'
587 #
588 # So, first we look for a working echo in the user's PATH.
589
590 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
591 for dir in $PATH /usr/ucb; do
592 IFS="$lt_save_ifs"
593 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
594 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
597 ECHO="$dir/echo"
598 break
599 fi
600 done
601 IFS="$lt_save_ifs"
602
603 if test "X$ECHO" = Xecho; then
604 # We didn't find a better echo, so look for alternatives.
605 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
608 # This shell has a builtin print -r that does the trick.
609 ECHO='print -r'
610 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
611 test "X$CONFIG_SHELL" != X/bin/ksh; then
612 # If we have ksh, try running configure again with it.
613 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
614 export ORIGINAL_CONFIG_SHELL
615 CONFIG_SHELL=/bin/ksh
616 export CONFIG_SHELL
617 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
618 else
619 # Try using printf.
620 ECHO='printf %s\n'
621 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
622 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
623 test "X$echo_testing_string" = "X$echo_test_string"; then
624 # Cool, printf works
625 :
626 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
627 test "X$echo_testing_string" = 'X\t' &&
628 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
629 test "X$echo_testing_string" = "X$echo_test_string"; then
630 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
631 export CONFIG_SHELL
632 SHELL="$CONFIG_SHELL"
633 export SHELL
634 ECHO="$CONFIG_SHELL $0 --fallback-echo"
635 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
636 test "X$echo_testing_string" = 'X\t' &&
637 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
639 ECHO="$CONFIG_SHELL $0 --fallback-echo"
640 else
641 # maybe with a smaller string...
642 prev=:
643
644 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
645 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
646 then
647 break
648 fi
649 prev="$cmd"
650 done
651
652 if test "$prev" != 'sed 50q "$0"'; then
653 echo_test_string=`eval $prev`
654 export echo_test_string
655 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
656 else
657 # Oops. We lost completely, so just stick with echo.
658 ECHO=echo
659 fi
660 fi
661 fi
662 fi
663 fi
664fi
665
666# Copy echo and quote the copy suitably for passing to libtool from
667# the Makefile, instead of quoting the original, which is used later.
668lt_ECHO=$ECHO
669if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
670 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
671fi
672
673
674
675
5213506e
RW
676exec 7<&0 </dev/null 6>&1
677
953ff289
DN
678# Name of the host.
679# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
680# so uname gets run too.
681ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
682
953ff289
DN
683#
684# Initializations.
685#
686ac_default_prefix=/usr/local
5213506e 687ac_clean_files=
953ff289 688ac_config_libobj_dir=.
5213506e 689LIBOBJS=
953ff289
DN
690cross_compiling=no
691subdirs=
692MFLAGS=
693MAKEFLAGS=
953ff289
DN
694
695# Identity of this package.
696PACKAGE_NAME='GNU OpenMP Runtime Library'
697PACKAGE_TARNAME='libgomp'
698PACKAGE_VERSION='1.0'
699PACKAGE_STRING='GNU OpenMP Runtime Library 1.0'
700PACKAGE_BUGREPORT=''
5213506e 701PACKAGE_URL='http://www.gnu.org/software/libgomp/'
953ff289
DN
702
703# Factoring default headers for most tests.
704ac_includes_default="\
705#include <stdio.h>
5213506e 706#ifdef HAVE_SYS_TYPES_H
953ff289
DN
707# include <sys/types.h>
708#endif
5213506e 709#ifdef HAVE_SYS_STAT_H
953ff289
DN
710# include <sys/stat.h>
711#endif
5213506e 712#ifdef STDC_HEADERS
953ff289
DN
713# include <stdlib.h>
714# include <stddef.h>
715#else
5213506e 716# ifdef HAVE_STDLIB_H
953ff289
DN
717# include <stdlib.h>
718# endif
719#endif
5213506e
RW
720#ifdef HAVE_STRING_H
721# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
953ff289
DN
722# include <memory.h>
723# endif
724# include <string.h>
725#endif
5213506e 726#ifdef HAVE_STRINGS_H
953ff289
DN
727# include <strings.h>
728#endif
5213506e 729#ifdef HAVE_INTTYPES_H
953ff289 730# include <inttypes.h>
953ff289 731#endif
5213506e
RW
732#ifdef HAVE_STDINT_H
733# include <stdint.h>
734#endif
735#ifdef HAVE_UNISTD_H
953ff289
DN
736# include <unistd.h>
737#endif"
738
5213506e
RW
739ac_subst_vars='am__EXEEXT_FALSE
740am__EXEEXT_TRUE
741LTLIBOBJS
742LIBOBJS
743OMP_NEST_LOCK_25_KIND
744OMP_LOCK_25_KIND
745OMP_NEST_LOCK_25_ALIGN
746OMP_NEST_LOCK_25_SIZE
747OMP_LOCK_25_ALIGN
748OMP_LOCK_25_SIZE
749OMP_NEST_LOCK_KIND
750OMP_LOCK_KIND
751OMP_NEST_LOCK_ALIGN
752OMP_NEST_LOCK_SIZE
753OMP_LOCK_ALIGN
754OMP_LOCK_SIZE
755USE_FORTRAN_FALSE
756USE_FORTRAN_TRUE
757link_gomp
758XLDFLAGS
759XCFLAGS
760config_path
761LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
762LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
763OPT_LDFLAGS
764SECTION_LDFLAGS
765libtool_VERSION
766ac_ct_FC
767FCFLAGS
768FC
769MAINT
770MAINTAINER_MODE_FALSE
771MAINTAINER_MODE_TRUE
772enable_static
773enable_shared
774CPP
775OTOOL64
776OTOOL
777LIPO
778NMEDIT
779DSYMUTIL
780lt_ECHO
781OBJDUMP
782LN_S
783NM
784ac_ct_DUMPBIN
785DUMPBIN
786LD
787FGREP
788EGREP
789GREP
790SED
791LIBTOOL
792BUILD_INFO_FALSE
793BUILD_INFO_TRUE
794PERL
795RANLIB
796AR
797am__fastdepCC_FALSE
798am__fastdepCC_TRUE
799CCDEPMODE
800AMDEPBACKSLASH
801AMDEP_FALSE
802AMDEP_TRUE
803am__quote
804am__include
805DEPDIR
806OBJEXT
807EXEEXT
808ac_ct_CC
809CPPFLAGS
810LDFLAGS
811CFLAGS
812CC
813toolexeclibdir
814toolexecdir
815multi_basedir
816am__untar
817am__tar
818AMTAR
819am__leading_dot
820SET_MAKE
821AWK
822mkdir_p
823MKDIR_P
824INSTALL_STRIP_PROGRAM
825STRIP
826install_sh
827MAKEINFO
828AUTOHEADER
829AUTOMAKE
830AUTOCONF
831ACLOCAL
832VERSION
833PACKAGE
834CYGPATH_W
835am__isrc
836INSTALL_DATA
837INSTALL_SCRIPT
838INSTALL_PROGRAM
839target_os
840target_vendor
841target_cpu
842target
843host_os
844host_vendor
845host_cpu
846host
847build_os
848build_vendor
849build_cpu
850build
851GENINSRC_FALSE
852GENINSRC_TRUE
853target_alias
854host_alias
855build_alias
856LIBS
857ECHO_T
858ECHO_N
859ECHO_C
860DEFS
861mandir
862localedir
863libdir
864psdir
865pdfdir
866dvidir
867htmldir
868infodir
869docdir
870oldincludedir
871includedir
872localstatedir
873sharedstatedir
874sysconfdir
875datadir
876datarootdir
877libexecdir
878sbindir
879bindir
880program_transform_name
881prefix
882exec_prefix
883PACKAGE_URL
884PACKAGE_BUGREPORT
885PACKAGE_STRING
886PACKAGE_VERSION
887PACKAGE_TARNAME
888PACKAGE_NAME
889PATH_SEPARATOR
890SHELL'
953ff289 891ac_subst_files=''
5213506e
RW
892ac_user_opts='
893enable_option_checking
894enable_version_specific_runtime_libs
895enable_generated_files_in_srcdir
896enable_multilib
897enable_dependency_tracking
898enable_shared
899enable_static
900with_pic
901enable_fast_install
902with_gnu_ld
903enable_libtool_lock
904enable_maintainer_mode
905enable_linux_futex
906enable_tls
907enable_symvers
908'
909 ac_precious_vars='build_alias
910host_alias
911target_alias
912CPP
913CPPFLAGS
914FC
915FCFLAGS
916LDFLAGS
917LIBS'
918
953ff289
DN
919
920# Initialize some variables set by options.
921ac_init_help=
922ac_init_version=false
5213506e
RW
923ac_unrecognized_opts=
924ac_unrecognized_sep=
953ff289
DN
925# The variables have the same names as the options, with
926# dashes changed to underlines.
927cache_file=/dev/null
928exec_prefix=NONE
929no_create=
930no_recursion=
931prefix=NONE
932program_prefix=NONE
933program_suffix=NONE
934program_transform_name=s,x,x,
935silent=
936site=
937srcdir=
938verbose=
939x_includes=NONE
940x_libraries=NONE
941
942# Installation directory options.
943# These are left unexpanded so users can "make install exec_prefix=/foo"
944# and all the variables that are supposed to be based on exec_prefix
945# by default will actually change.
946# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 947# (The list follows the same order as the GNU Coding Standards.)
953ff289
DN
948bindir='${exec_prefix}/bin'
949sbindir='${exec_prefix}/sbin'
950libexecdir='${exec_prefix}/libexec'
5213506e
RW
951datarootdir='${prefix}/share'
952datadir='${datarootdir}'
953ff289
DN
953sysconfdir='${prefix}/etc'
954sharedstatedir='${prefix}/com'
955localstatedir='${prefix}/var'
953ff289
DN
956includedir='${prefix}/include'
957oldincludedir='/usr/include'
5213506e
RW
958docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
959infodir='${datarootdir}/info'
960htmldir='${docdir}'
961dvidir='${docdir}'
962pdfdir='${docdir}'
963psdir='${docdir}'
964libdir='${exec_prefix}/lib'
965localedir='${datarootdir}/locale'
966mandir='${datarootdir}/man'
953ff289
DN
967
968ac_prev=
5213506e 969ac_dashdash=
953ff289
DN
970for ac_option
971do
972 # If the previous option needs an argument, assign it.
973 if test -n "$ac_prev"; then
5213506e 974 eval $ac_prev=\$ac_option
953ff289
DN
975 ac_prev=
976 continue
977 fi
978
5213506e
RW
979 case $ac_option in
980 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
981 *) ac_optarg=yes ;;
982 esac
953ff289
DN
983
984 # Accept the important Cygnus configure options, so we can diagnose typos.
985
5213506e
RW
986 case $ac_dashdash$ac_option in
987 --)
988 ac_dashdash=yes ;;
953ff289
DN
989
990 -bindir | --bindir | --bindi | --bind | --bin | --bi)
991 ac_prev=bindir ;;
992 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
993 bindir=$ac_optarg ;;
994
995 -build | --build | --buil | --bui | --bu)
996 ac_prev=build_alias ;;
997 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
998 build_alias=$ac_optarg ;;
999
1000 -cache-file | --cache-file | --cache-fil | --cache-fi \
1001 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1002 ac_prev=cache_file ;;
1003 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1004 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1005 cache_file=$ac_optarg ;;
1006
1007 --config-cache | -C)
1008 cache_file=config.cache ;;
1009
5213506e 1010 -datadir | --datadir | --datadi | --datad)
953ff289 1011 ac_prev=datadir ;;
5213506e 1012 -datadir=* | --datadir=* | --datadi=* | --datad=*)
953ff289
DN
1013 datadir=$ac_optarg ;;
1014
5213506e
RW
1015 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1016 | --dataroo | --dataro | --datar)
1017 ac_prev=datarootdir ;;
1018 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1019 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1020 datarootdir=$ac_optarg ;;
1021
953ff289 1022 -disable-* | --disable-*)
5213506e 1023 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
953ff289 1024 # Reject names that are not valid shell variable names.
5213506e
RW
1025 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1026 as_fn_error "invalid feature name: $ac_useropt"
1027 ac_useropt_orig=$ac_useropt
1028 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1029 case $ac_user_opts in
1030 *"
1031"enable_$ac_useropt"
1032"*) ;;
1033 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1034 ac_unrecognized_sep=', ';;
1035 esac
1036 eval enable_$ac_useropt=no ;;
1037
1038 -docdir | --docdir | --docdi | --doc | --do)
1039 ac_prev=docdir ;;
1040 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1041 docdir=$ac_optarg ;;
1042
1043 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1044 ac_prev=dvidir ;;
1045 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1046 dvidir=$ac_optarg ;;
953ff289
DN
1047
1048 -enable-* | --enable-*)
5213506e 1049 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
953ff289 1050 # Reject names that are not valid shell variable names.
5213506e
RW
1051 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1052 as_fn_error "invalid feature name: $ac_useropt"
1053 ac_useropt_orig=$ac_useropt
1054 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1055 case $ac_user_opts in
1056 *"
1057"enable_$ac_useropt"
1058"*) ;;
1059 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1060 ac_unrecognized_sep=', ';;
953ff289 1061 esac
5213506e 1062 eval enable_$ac_useropt=\$ac_optarg ;;
953ff289
DN
1063
1064 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1065 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1066 | --exec | --exe | --ex)
1067 ac_prev=exec_prefix ;;
1068 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1069 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1070 | --exec=* | --exe=* | --ex=*)
1071 exec_prefix=$ac_optarg ;;
1072
1073 -gas | --gas | --ga | --g)
1074 # Obsolete; use --with-gas.
1075 with_gas=yes ;;
1076
1077 -help | --help | --hel | --he | -h)
1078 ac_init_help=long ;;
1079 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1080 ac_init_help=recursive ;;
1081 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1082 ac_init_help=short ;;
1083
1084 -host | --host | --hos | --ho)
1085 ac_prev=host_alias ;;
1086 -host=* | --host=* | --hos=* | --ho=*)
1087 host_alias=$ac_optarg ;;
1088
5213506e
RW
1089 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1090 ac_prev=htmldir ;;
1091 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1092 | --ht=*)
1093 htmldir=$ac_optarg ;;
1094
953ff289
DN
1095 -includedir | --includedir | --includedi | --included | --include \
1096 | --includ | --inclu | --incl | --inc)
1097 ac_prev=includedir ;;
1098 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1099 | --includ=* | --inclu=* | --incl=* | --inc=*)
1100 includedir=$ac_optarg ;;
1101
1102 -infodir | --infodir | --infodi | --infod | --info | --inf)
1103 ac_prev=infodir ;;
1104 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1105 infodir=$ac_optarg ;;
1106
1107 -libdir | --libdir | --libdi | --libd)
1108 ac_prev=libdir ;;
1109 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1110 libdir=$ac_optarg ;;
1111
1112 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1113 | --libexe | --libex | --libe)
1114 ac_prev=libexecdir ;;
1115 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1116 | --libexe=* | --libex=* | --libe=*)
1117 libexecdir=$ac_optarg ;;
1118
5213506e
RW
1119 -localedir | --localedir | --localedi | --localed | --locale)
1120 ac_prev=localedir ;;
1121 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1122 localedir=$ac_optarg ;;
1123
953ff289 1124 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 1125 | --localstate | --localstat | --localsta | --localst | --locals)
953ff289
DN
1126 ac_prev=localstatedir ;;
1127 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 1128 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
953ff289
DN
1129 localstatedir=$ac_optarg ;;
1130
1131 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1132 ac_prev=mandir ;;
1133 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1134 mandir=$ac_optarg ;;
1135
1136 -nfp | --nfp | --nf)
1137 # Obsolete; use --without-fp.
1138 with_fp=no ;;
1139
1140 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1141 | --no-cr | --no-c | -n)
1142 no_create=yes ;;
1143
1144 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1145 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1146 no_recursion=yes ;;
1147
1148 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1149 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1150 | --oldin | --oldi | --old | --ol | --o)
1151 ac_prev=oldincludedir ;;
1152 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1153 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1154 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1155 oldincludedir=$ac_optarg ;;
1156
1157 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1158 ac_prev=prefix ;;
1159 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1160 prefix=$ac_optarg ;;
1161
1162 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1163 | --program-pre | --program-pr | --program-p)
1164 ac_prev=program_prefix ;;
1165 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1166 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1167 program_prefix=$ac_optarg ;;
1168
1169 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1170 | --program-suf | --program-su | --program-s)
1171 ac_prev=program_suffix ;;
1172 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1173 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1174 program_suffix=$ac_optarg ;;
1175
1176 -program-transform-name | --program-transform-name \
1177 | --program-transform-nam | --program-transform-na \
1178 | --program-transform-n | --program-transform- \
1179 | --program-transform | --program-transfor \
1180 | --program-transfo | --program-transf \
1181 | --program-trans | --program-tran \
1182 | --progr-tra | --program-tr | --program-t)
1183 ac_prev=program_transform_name ;;
1184 -program-transform-name=* | --program-transform-name=* \
1185 | --program-transform-nam=* | --program-transform-na=* \
1186 | --program-transform-n=* | --program-transform-=* \
1187 | --program-transform=* | --program-transfor=* \
1188 | --program-transfo=* | --program-transf=* \
1189 | --program-trans=* | --program-tran=* \
1190 | --progr-tra=* | --program-tr=* | --program-t=*)
1191 program_transform_name=$ac_optarg ;;
1192
5213506e
RW
1193 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1194 ac_prev=pdfdir ;;
1195 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1196 pdfdir=$ac_optarg ;;
1197
1198 -psdir | --psdir | --psdi | --psd | --ps)
1199 ac_prev=psdir ;;
1200 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1201 psdir=$ac_optarg ;;
1202
953ff289
DN
1203 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1204 | -silent | --silent | --silen | --sile | --sil)
1205 silent=yes ;;
1206
1207 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1208 ac_prev=sbindir ;;
1209 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1210 | --sbi=* | --sb=*)
1211 sbindir=$ac_optarg ;;
1212
1213 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1214 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1215 | --sharedst | --shareds | --shared | --share | --shar \
1216 | --sha | --sh)
1217 ac_prev=sharedstatedir ;;
1218 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1219 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1220 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1221 | --sha=* | --sh=*)
1222 sharedstatedir=$ac_optarg ;;
1223
1224 -site | --site | --sit)
1225 ac_prev=site ;;
1226 -site=* | --site=* | --sit=*)
1227 site=$ac_optarg ;;
1228
1229 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1230 ac_prev=srcdir ;;
1231 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1232 srcdir=$ac_optarg ;;
1233
1234 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1235 | --syscon | --sysco | --sysc | --sys | --sy)
1236 ac_prev=sysconfdir ;;
1237 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1238 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1239 sysconfdir=$ac_optarg ;;
1240
1241 -target | --target | --targe | --targ | --tar | --ta | --t)
1242 ac_prev=target_alias ;;
1243 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1244 target_alias=$ac_optarg ;;
1245
1246 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1247 verbose=yes ;;
1248
1249 -version | --version | --versio | --versi | --vers | -V)
1250 ac_init_version=: ;;
1251
1252 -with-* | --with-*)
5213506e 1253 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
953ff289 1254 # Reject names that are not valid shell variable names.
5213506e
RW
1255 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1256 as_fn_error "invalid package name: $ac_useropt"
1257 ac_useropt_orig=$ac_useropt
1258 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1259 case $ac_user_opts in
1260 *"
1261"with_$ac_useropt"
1262"*) ;;
1263 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1264 ac_unrecognized_sep=', ';;
953ff289 1265 esac
5213506e 1266 eval with_$ac_useropt=\$ac_optarg ;;
953ff289
DN
1267
1268 -without-* | --without-*)
5213506e 1269 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
953ff289 1270 # Reject names that are not valid shell variable names.
5213506e
RW
1271 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1272 as_fn_error "invalid package name: $ac_useropt"
1273 ac_useropt_orig=$ac_useropt
1274 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1275 case $ac_user_opts in
1276 *"
1277"with_$ac_useropt"
1278"*) ;;
1279 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1280 ac_unrecognized_sep=', ';;
1281 esac
1282 eval with_$ac_useropt=no ;;
953ff289
DN
1283
1284 --x)
1285 # Obsolete; use --with-x.
1286 with_x=yes ;;
1287
1288 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1289 | --x-incl | --x-inc | --x-in | --x-i)
1290 ac_prev=x_includes ;;
1291 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1292 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1293 x_includes=$ac_optarg ;;
1294
1295 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1296 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1297 ac_prev=x_libraries ;;
1298 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1299 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1300 x_libraries=$ac_optarg ;;
1301
5213506e
RW
1302 -*) as_fn_error "unrecognized option: \`$ac_option'
1303Try \`$0 --help' for more information."
953ff289
DN
1304 ;;
1305
1306 *=*)
1307 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1308 # Reject names that are not valid shell variable names.
5213506e
RW
1309 case $ac_envvar in #(
1310 '' | [0-9]* | *[!_$as_cr_alnum]* )
1311 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1312 esac
1313 eval $ac_envvar=\$ac_optarg
953ff289
DN
1314 export $ac_envvar ;;
1315
1316 *)
1317 # FIXME: should be removed in autoconf 3.0.
5213506e 1318 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
953ff289 1319 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1320 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
953ff289
DN
1321 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1322 ;;
1323
1324 esac
1325done
1326
1327if test -n "$ac_prev"; then
1328 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
5213506e 1329 as_fn_error "missing argument to $ac_option"
953ff289
DN
1330fi
1331
5213506e
RW
1332if test -n "$ac_unrecognized_opts"; then
1333 case $enable_option_checking in
1334 no) ;;
1335 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1336 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
953ff289 1337 esac
5213506e 1338fi
953ff289 1339
5213506e
RW
1340# Check all directory arguments for consistency.
1341for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1342 datadir sysconfdir sharedstatedir localstatedir includedir \
1343 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1344 libdir localedir mandir
953ff289 1345do
5213506e
RW
1346 eval ac_val=\$$ac_var
1347 # Remove trailing slashes.
953ff289 1348 case $ac_val in
5213506e
RW
1349 */ )
1350 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1351 eval $ac_var=\$ac_val;;
953ff289 1352 esac
5213506e
RW
1353 # Be sure to have absolute directory names.
1354 case $ac_val in
1355 [\\/$]* | ?:[\\/]* ) continue;;
1356 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1357 esac
1358 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
953ff289
DN
1359done
1360
1361# There might be people who depend on the old broken behavior: `$host'
1362# used to hold the argument of --host etc.
1363# FIXME: To remove some day.
1364build=$build_alias
1365host=$host_alias
1366target=$target_alias
1367
1368# FIXME: To remove some day.
1369if test "x$host_alias" != x; then
1370 if test "x$build_alias" = x; then
1371 cross_compiling=maybe
5213506e 1372 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
953ff289
DN
1373 If a cross compiler is detected then cross compile mode will be used." >&2
1374 elif test "x$build_alias" != "x$host_alias"; then
1375 cross_compiling=yes
1376 fi
1377fi
1378
1379ac_tool_prefix=
1380test -n "$host_alias" && ac_tool_prefix=$host_alias-
1381
1382test "$silent" = yes && exec 6>/dev/null
1383
1384
5213506e
RW
1385ac_pwd=`pwd` && test -n "$ac_pwd" &&
1386ac_ls_di=`ls -di .` &&
1387ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1388 as_fn_error "working directory cannot be determined"
1389test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1390 as_fn_error "pwd does not report name of working directory"
1391
1392
953ff289
DN
1393# Find the source files, if location was not specified.
1394if test -z "$srcdir"; then
1395 ac_srcdir_defaulted=yes
5213506e
RW
1396 # Try the directory containing this script, then the parent directory.
1397 ac_confdir=`$as_dirname -- "$as_myself" ||
1398$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1399 X"$as_myself" : 'X\(//\)[^/]' \| \
1400 X"$as_myself" : 'X\(//\)$' \| \
1401 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1402$as_echo X"$as_myself" |
1403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1404 s//\1/
1405 q
1406 }
1407 /^X\(\/\/\)[^/].*/{
1408 s//\1/
1409 q
1410 }
1411 /^X\(\/\/\)$/{
1412 s//\1/
1413 q
1414 }
1415 /^X\(\/\).*/{
1416 s//\1/
1417 q
1418 }
1419 s/.*/./; q'`
953ff289 1420 srcdir=$ac_confdir
5213506e 1421 if test ! -r "$srcdir/$ac_unique_file"; then
953ff289
DN
1422 srcdir=..
1423 fi
1424else
1425 ac_srcdir_defaulted=no
1426fi
5213506e
RW
1427if test ! -r "$srcdir/$ac_unique_file"; then
1428 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1429 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1430fi
1431ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1432ac_abs_confdir=`(
1433 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1434 pwd)`
1435# When building in place, set srcdir=.
1436if test "$ac_abs_confdir" = "$ac_pwd"; then
1437 srcdir=.
1438fi
1439# Remove unnecessary trailing slashes from srcdir.
1440# Double slashes in file names in object file debugging info
1441# mess up M-x gdb in Emacs.
1442case $srcdir in
1443*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1444esac
1445for ac_var in $ac_precious_vars; do
1446 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1447 eval ac_env_${ac_var}_value=\$${ac_var}
1448 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1449 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1450done
953ff289
DN
1451
1452#
1453# Report the --help message.
1454#
1455if test "$ac_init_help" = "long"; then
1456 # Omit some internal or obsolete options to make the list less imposing.
1457 # This message is too long to be a string in the A/UX 3.1 sh.
1458 cat <<_ACEOF
1459\`configure' configures GNU OpenMP Runtime Library 1.0 to adapt to many kinds of systems.
1460
1461Usage: $0 [OPTION]... [VAR=VALUE]...
1462
1463To assign environment variables (e.g., CC, CFLAGS...), specify them as
1464VAR=VALUE. See below for descriptions of some of the useful variables.
1465
1466Defaults for the options are specified in brackets.
1467
1468Configuration:
1469 -h, --help display this help and exit
1470 --help=short display options specific to this package
1471 --help=recursive display the short help of all the included packages
1472 -V, --version display version information and exit
1473 -q, --quiet, --silent do not print \`checking...' messages
1474 --cache-file=FILE cache test results in FILE [disabled]
1475 -C, --config-cache alias for \`--cache-file=config.cache'
1476 -n, --no-create do not create output files
1477 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1478
953ff289
DN
1479Installation directories:
1480 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1481 [$ac_default_prefix]
953ff289 1482 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1483 [PREFIX]
953ff289
DN
1484
1485By default, \`make install' will install all the files in
1486\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1487an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1488for instance \`--prefix=\$HOME'.
1489
1490For better control, use the options below.
1491
1492Fine tuning of the installation directories:
5213506e
RW
1493 --bindir=DIR user executables [EPREFIX/bin]
1494 --sbindir=DIR system admin executables [EPREFIX/sbin]
1495 --libexecdir=DIR program executables [EPREFIX/libexec]
1496 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1497 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1498 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1499 --libdir=DIR object code libraries [EPREFIX/lib]
1500 --includedir=DIR C header files [PREFIX/include]
1501 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1502 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1503 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1504 --infodir=DIR info documentation [DATAROOTDIR/info]
1505 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1506 --mandir=DIR man documentation [DATAROOTDIR/man]
1507 --docdir=DIR documentation root [DATAROOTDIR/doc/libgomp]
1508 --htmldir=DIR html documentation [DOCDIR]
1509 --dvidir=DIR dvi documentation [DOCDIR]
1510 --pdfdir=DIR pdf documentation [DOCDIR]
1511 --psdir=DIR ps documentation [DOCDIR]
953ff289
DN
1512_ACEOF
1513
1514 cat <<\_ACEOF
1515
1516Program names:
1517 --program-prefix=PREFIX prepend PREFIX to installed program names
1518 --program-suffix=SUFFIX append SUFFIX to installed program names
1519 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1520
1521System types:
1522 --build=BUILD configure for building on BUILD [guessed]
1523 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1524 --target=TARGET configure for building compilers for TARGET [HOST]
1525_ACEOF
1526fi
1527
1528if test -n "$ac_init_help"; then
1529 case $ac_init_help in
1530 short | recursive ) echo "Configuration of GNU OpenMP Runtime Library 1.0:";;
1531 esac
1532 cat <<\_ACEOF
1533
1534Optional Features:
5213506e 1535 --disable-option-checking ignore unrecognized --enable/--with options
953ff289
DN
1536 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1537 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1538 --enable-version-specific-runtime-libs
1539 Specify that runtime libraries should be installed
1540 in a compiler-specific directory [default=no]
627ab4b8
TT
1541 --enable-generated-files-in-srcdir
1542 put copies of generated files in source dir intended
1543 for creating source tarballs for users without
1544 texinfo bison or flex. [default=no]
953ff289
DN
1545 --enable-multilib build many library versions (default)
1546 --disable-dependency-tracking speeds up one-time build
1547 --enable-dependency-tracking do not reject slow dependency extractors
5213506e
RW
1548 --enable-shared[=PKGS] build shared libraries [default=yes]
1549 --enable-static[=PKGS] build static libraries [default=yes]
1cf3d07d
SE
1550 --enable-fast-install[=PKGS]
1551 optimize for fast installation [default=yes]
953ff289 1552 --disable-libtool-lock avoid locking (might break parallel builds)
c41303c6
RH
1553 --enable-maintainer-mode enable make rules and dependencies not useful
1554 (and sometimes confusing) to the casual installer
5213506e 1555 --enable-linux-futex use the Linux futex system call [default=default]
2fb31455 1556 --enable-tls Use thread-local storage [default=yes]
953ff289
DN
1557 --enable-symvers=STYLE enables symbol versioning of the shared library
1558 [default=yes]
1559
1560Optional Packages:
1561 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1562 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1cf3d07d
SE
1563 --with-pic try to use only PIC/non-PIC objects [default=use
1564 both]
1565 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
953ff289
DN
1566
1567Some influential environment variables:
1568 CC C compiler command
1569 CFLAGS C compiler flags
1570 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1571 nonstandard directory <lib dir>
5213506e
RW
1572 LIBS libraries to pass to the linker, e.g. -l<library>
1573 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1574 you have headers in a nonstandard directory <include dir>
1cf3d07d 1575 CPP C preprocessor
953ff289
DN
1576 FC Fortran compiler command
1577 FCFLAGS Fortran compiler flags
953ff289
DN
1578
1579Use these variables to override the choices made by `configure' or to help
1580it to find libraries and programs with nonstandard names/locations.
1581
5213506e
RW
1582Report bugs to the package provider.
1583GNU OpenMP Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
1584General help using GNU software: <http://www.gnu.org/gethelp/>.
953ff289 1585_ACEOF
5213506e 1586ac_status=$?
953ff289
DN
1587fi
1588
1589if test "$ac_init_help" = "recursive"; then
1590 # If there are subdirs, report their specific --help.
953ff289 1591 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1592 test -d "$ac_dir" ||
1593 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1594 continue
953ff289
DN
1595 ac_builddir=.
1596
5213506e
RW
1597case "$ac_dir" in
1598.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1599*)
1600 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1601 # A ".." for each directory in $ac_dir_suffix.
1602 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1603 case $ac_top_builddir_sub in
1604 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1605 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1606 esac ;;
1607esac
1608ac_abs_top_builddir=$ac_pwd
1609ac_abs_builddir=$ac_pwd$ac_dir_suffix
1610# for backward compatibility:
1611ac_top_builddir=$ac_top_build_prefix
953ff289
DN
1612
1613case $srcdir in
5213506e 1614 .) # We are building in place.
953ff289 1615 ac_srcdir=.
5213506e
RW
1616 ac_top_srcdir=$ac_top_builddir_sub
1617 ac_abs_top_srcdir=$ac_pwd ;;
1618 [\\/]* | ?:[\\/]* ) # Absolute name.
953ff289 1619 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1620 ac_top_srcdir=$srcdir
1621 ac_abs_top_srcdir=$srcdir ;;
1622 *) # Relative name.
1623 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1624 ac_top_srcdir=$ac_top_build_prefix$srcdir
1625 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
953ff289 1626esac
5213506e
RW
1627ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1628
1629 cd "$ac_dir" || { ac_status=$?; continue; }
1630 # Check for guested configure.
1631 if test -f "$ac_srcdir/configure.gnu"; then
1632 echo &&
1633 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1634 elif test -f "$ac_srcdir/configure"; then
1635 echo &&
1636 $SHELL "$ac_srcdir/configure" --help=recursive
953ff289 1637 else
5213506e
RW
1638 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1639 fi || ac_status=$?
1640 cd "$ac_pwd" || { ac_status=$?; break; }
953ff289
DN
1641 done
1642fi
1643
5213506e 1644test -n "$ac_init_help" && exit $ac_status
953ff289
DN
1645if $ac_init_version; then
1646 cat <<\_ACEOF
1647GNU OpenMP Runtime Library configure 1.0
5213506e 1648generated by GNU Autoconf 2.64
953ff289 1649
5213506e 1650Copyright (C) 2009 Free Software Foundation, Inc.
953ff289
DN
1651This configure script is free software; the Free Software Foundation
1652gives unlimited permission to copy, distribute and modify it.
1653_ACEOF
5213506e 1654 exit
953ff289 1655fi
953ff289 1656
5213506e
RW
1657## ------------------------ ##
1658## Autoconf initialization. ##
1659## ------------------------ ##
953ff289 1660
5213506e
RW
1661# ac_fn_c_try_compile LINENO
1662# --------------------------
1663# Try to compile conftest.$ac_ext, and return whether this succeeded.
1664ac_fn_c_try_compile ()
953ff289 1665{
5213506e
RW
1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667 rm -f conftest.$ac_objext
1668 if { { ac_try="$ac_compile"
1669case "(($ac_try" in
1670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671 *) ac_try_echo=$ac_try;;
1672esac
1673eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674$as_echo "$ac_try_echo"; } >&5
1675 (eval "$ac_compile") 2>conftest.err
1676 ac_status=$?
1677 if test -s conftest.err; then
1678 grep -v '^ *+' conftest.err >conftest.er1
1679 cat conftest.er1 >&5
1680 mv -f conftest.er1 conftest.err
1681 fi
1682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683 test $ac_status = 0; } && {
1684 test -z "$ac_c_werror_flag" ||
1685 test ! -s conftest.err
1686 } && test -s conftest.$ac_objext; then :
1687 ac_retval=0
1688else
1689 $as_echo "$as_me: failed program was:" >&5
1690sed 's/^/| /' conftest.$ac_ext >&5
953ff289 1691
5213506e
RW
1692 ac_retval=1
1693fi
1694 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1695 return $ac_retval
953ff289 1696
5213506e 1697} # ac_fn_c_try_compile
953ff289 1698
5213506e
RW
1699# ac_fn_c_try_link LINENO
1700# -----------------------
1701# Try to link conftest.$ac_ext, and return whether this succeeded.
1702ac_fn_c_try_link ()
1703{
1704 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705 rm -f conftest.$ac_objext conftest$ac_exeext
1706 if { { ac_try="$ac_link"
1707case "(($ac_try" in
1708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709 *) ac_try_echo=$ac_try;;
1710esac
1711eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712$as_echo "$ac_try_echo"; } >&5
1713 (eval "$ac_link") 2>conftest.err
1714 ac_status=$?
1715 if test -s conftest.err; then
1716 grep -v '^ *+' conftest.err >conftest.er1
1717 cat conftest.er1 >&5
1718 mv -f conftest.er1 conftest.err
1719 fi
1720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721 test $ac_status = 0; } && {
1722 test -z "$ac_c_werror_flag" ||
1723 test ! -s conftest.err
1724 } && test -s conftest$ac_exeext && {
1725 test "$cross_compiling" = yes ||
1726 $as_test_x conftest$ac_exeext
1727 }; then :
1728 ac_retval=0
1729else
1730 $as_echo "$as_me: failed program was:" >&5
1731sed 's/^/| /' conftest.$ac_ext >&5
953ff289 1732
5213506e
RW
1733 ac_retval=1
1734fi
1735 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1736 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1737 # interfere with the next link command; also delete a directory that is
1738 # left behind by Apple's compiler. We do this before executing the actions.
1739 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1740 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1741 return $ac_retval
953ff289 1742
5213506e 1743} # ac_fn_c_try_link
953ff289 1744
5213506e
RW
1745# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1746# -------------------------------------------------------
1747# Tests whether HEADER exists and can be compiled using the include files in
1748# INCLUDES, setting the cache variable VAR accordingly.
1749ac_fn_c_check_header_compile ()
1750{
1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1753$as_echo_n "checking for $2... " >&6; }
1754if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1755 $as_echo_n "(cached) " >&6
1756else
1757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1758/* end confdefs.h. */
1759$4
1760#include <$2>
1761_ACEOF
1762if ac_fn_c_try_compile "$LINENO"; then :
1763 eval "$3=yes"
1764else
1765 eval "$3=no"
1766fi
1767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1768fi
1769eval ac_res=\$$3
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1771$as_echo "$ac_res" >&6; }
1772 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
953ff289 1773
5213506e 1774} # ac_fn_c_check_header_compile
953ff289 1775
5213506e
RW
1776# ac_fn_c_try_cpp LINENO
1777# ----------------------
1778# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1779ac_fn_c_try_cpp ()
1780{
1781 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1782 if { { ac_try="$ac_cpp conftest.$ac_ext"
1783case "(($ac_try" in
1784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1785 *) ac_try_echo=$ac_try;;
1786esac
1787eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788$as_echo "$ac_try_echo"; } >&5
1789 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1790 ac_status=$?
1791 if test -s conftest.err; then
1792 grep -v '^ *+' conftest.err >conftest.er1
1793 cat conftest.er1 >&5
1794 mv -f conftest.er1 conftest.err
1795 fi
1796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1797 test $ac_status = 0; } >/dev/null && {
1798 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1799 test ! -s conftest.err
1800 }; then :
1801 ac_retval=0
1802else
1803 $as_echo "$as_me: failed program was:" >&5
1804sed 's/^/| /' conftest.$ac_ext >&5
953ff289 1805
5213506e
RW
1806 ac_retval=1
1807fi
1808 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1809 return $ac_retval
953ff289 1810
5213506e 1811} # ac_fn_c_try_cpp
953ff289 1812
5213506e
RW
1813# ac_fn_c_try_run LINENO
1814# ----------------------
1815# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1816# that executables *can* be run.
1817ac_fn_c_try_run ()
1818{
1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820 if { { ac_try="$ac_link"
1821case "(($ac_try" in
1822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1823 *) ac_try_echo=$ac_try;;
1824esac
1825eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1826$as_echo "$ac_try_echo"; } >&5
1827 (eval "$ac_link") 2>&5
1828 ac_status=$?
1829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1831 { { case "(($ac_try" in
1832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1833 *) ac_try_echo=$ac_try;;
1834esac
1835eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1836$as_echo "$ac_try_echo"; } >&5
1837 (eval "$ac_try") 2>&5
1838 ac_status=$?
1839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1840 test $ac_status = 0; }; }; then :
1841 ac_retval=0
1842else
1843 $as_echo "$as_me: program exited with status $ac_status" >&5
1844 $as_echo "$as_me: failed program was:" >&5
1845sed 's/^/| /' conftest.$ac_ext >&5
953ff289 1846
5213506e
RW
1847 ac_retval=$ac_status
1848fi
1849 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1850 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1851 return $ac_retval
953ff289 1852
5213506e 1853} # ac_fn_c_try_run
953ff289 1854
5213506e
RW
1855# ac_fn_c_check_func LINENO FUNC VAR
1856# ----------------------------------
1857# Tests whether FUNC exists, setting the cache variable VAR accordingly
1858ac_fn_c_check_func ()
953ff289 1859{
5213506e
RW
1860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1862$as_echo_n "checking for $2... " >&6; }
1863if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1864 $as_echo_n "(cached) " >&6
1865else
1866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1867/* end confdefs.h. */
1868/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1869 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1870#define $2 innocuous_$2
953ff289 1871
5213506e
RW
1872/* System header to define __stub macros and hopefully few prototypes,
1873 which can conflict with char $2 (); below.
1874 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1875 <limits.h> exists even on freestanding compilers. */
953ff289 1876
5213506e
RW
1877#ifdef __STDC__
1878# include <limits.h>
1879#else
1880# include <assert.h>
1881#endif
953ff289 1882
5213506e 1883#undef $2
953ff289 1884
5213506e
RW
1885/* Override any GCC internal prototype to avoid an error.
1886 Use char because int might match the return type of a GCC
1887 builtin and then its argument prototype would still apply. */
1888#ifdef __cplusplus
1889extern "C"
1890#endif
1891char $2 ();
1892/* The GNU C library defines this for functions which it implements
1893 to always fail with ENOSYS. Some functions are actually named
1894 something starting with __ and the normal name is an alias. */
1895#if defined __stub_$2 || defined __stub___$2
1896choke me
1897#endif
953ff289 1898
5213506e
RW
1899int
1900main ()
1901{
1902return $2 ();
1903 ;
1904 return 0;
1905}
953ff289 1906_ACEOF
5213506e
RW
1907if ac_fn_c_try_link "$LINENO"; then :
1908 eval "$3=yes"
1909else
1910 eval "$3=no"
1911fi
1912rm -f core conftest.err conftest.$ac_objext \
1913 conftest$ac_exeext conftest.$ac_ext
1914fi
1915eval ac_res=\$$3
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1917$as_echo "$ac_res" >&6; }
1918 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
953ff289 1919
5213506e 1920} # ac_fn_c_check_func
953ff289 1921
5213506e
RW
1922# ac_fn_fc_try_compile LINENO
1923# ---------------------------
1924# Try to compile conftest.$ac_ext, and return whether this succeeded.
1925ac_fn_fc_try_compile ()
1926{
1927 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1928 rm -f conftest.$ac_objext
1929 if { { ac_try="$ac_compile"
1930case "(($ac_try" in
1931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1932 *) ac_try_echo=$ac_try;;
1933esac
1934eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1935$as_echo "$ac_try_echo"; } >&5
1936 (eval "$ac_compile") 2>conftest.err
1937 ac_status=$?
1938 if test -s conftest.err; then
1939 grep -v '^ *+' conftest.err >conftest.er1
1940 cat conftest.er1 >&5
1941 mv -f conftest.er1 conftest.err
1942 fi
1943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1944 test $ac_status = 0; } && {
1945 test -z "$ac_fc_werror_flag" ||
1946 test ! -s conftest.err
1947 } && test -s conftest.$ac_objext; then :
1948 ac_retval=0
1949else
1950 $as_echo "$as_me: failed program was:" >&5
1951sed 's/^/| /' conftest.$ac_ext >&5
953ff289 1952
5213506e
RW
1953 ac_retval=1
1954fi
1955 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1956 return $ac_retval
953ff289 1957
5213506e 1958} # ac_fn_fc_try_compile
953ff289 1959
5213506e
RW
1960# ac_fn_fc_try_link LINENO
1961# ------------------------
1962# Try to link conftest.$ac_ext, and return whether this succeeded.
1963ac_fn_fc_try_link ()
1964{
1965 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1966 rm -f conftest.$ac_objext conftest$ac_exeext
1967 if { { ac_try="$ac_link"
1968case "(($ac_try" in
1969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1970 *) ac_try_echo=$ac_try;;
1971esac
1972eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1973$as_echo "$ac_try_echo"; } >&5
1974 (eval "$ac_link") 2>conftest.err
1975 ac_status=$?
1976 if test -s conftest.err; then
1977 grep -v '^ *+' conftest.err >conftest.er1
1978 cat conftest.er1 >&5
1979 mv -f conftest.er1 conftest.err
1980 fi
1981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1982 test $ac_status = 0; } && {
1983 test -z "$ac_fc_werror_flag" ||
1984 test ! -s conftest.err
1985 } && test -s conftest$ac_exeext && {
1986 test "$cross_compiling" = yes ||
1987 $as_test_x conftest$ac_exeext
1988 }; then :
1989 ac_retval=0
1990else
1991 $as_echo "$as_me: failed program was:" >&5
1992sed 's/^/| /' conftest.$ac_ext >&5
953ff289 1993
5213506e
RW
1994 ac_retval=1
1995fi
1996 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1997 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1998 # interfere with the next link command; also delete a directory that is
1999 # left behind by Apple's compiler. We do this before executing the actions.
2000 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2001 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2002 return $ac_retval
953ff289 2003
5213506e 2004} # ac_fn_fc_try_link
953ff289 2005
5213506e
RW
2006# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2007# -------------------------------------------------------
2008# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2009# the include files in INCLUDES and setting the cache variable VAR
2010# accordingly.
2011ac_fn_c_check_header_mongrel ()
2012{
2013 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2014 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2016$as_echo_n "checking for $2... " >&6; }
2017if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2018 $as_echo_n "(cached) " >&6
2019fi
2020eval ac_res=\$$3
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2022$as_echo "$ac_res" >&6; }
2023else
2024 # Is the header compilable?
2025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2026$as_echo_n "checking $2 usability... " >&6; }
2027cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028/* end confdefs.h. */
2029$4
2030#include <$2>
953ff289 2031_ACEOF
5213506e
RW
2032if ac_fn_c_try_compile "$LINENO"; then :
2033 ac_header_compiler=yes
2034else
2035 ac_header_compiler=no
953ff289 2036fi
5213506e
RW
2037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2039$as_echo "$ac_header_compiler" >&6; }
953ff289 2040
5213506e
RW
2041# Is the header present?
2042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2043$as_echo_n "checking $2 presence... " >&6; }
2044cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2045/* end confdefs.h. */
2046#include <$2>
2047_ACEOF
2048if ac_fn_c_try_cpp "$LINENO"; then :
2049 ac_header_preproc=yes
953ff289 2050else
5213506e 2051 ac_header_preproc=no
953ff289 2052fi
5213506e
RW
2053rm -f conftest.err conftest.$ac_ext
2054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2055$as_echo "$ac_header_preproc" >&6; }
953ff289 2056
5213506e
RW
2057# So? What about this header?
2058case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2059 yes:no: )
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2061$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2063$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2064 ;;
2065 no:yes:* )
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2067$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2069$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2071$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2073$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2075$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2076 ;;
2077esac
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2079$as_echo_n "checking for $2... " >&6; }
2080if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2081 $as_echo_n "(cached) " >&6
2082else
2083 eval "$3=\$ac_header_compiler"
953ff289 2084fi
5213506e
RW
2085eval ac_res=\$$3
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2087$as_echo "$ac_res" >&6; }
2088fi
2089 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
953ff289 2090
5213506e 2091} # ac_fn_c_check_header_mongrel
953ff289 2092
5213506e
RW
2093# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2094# -------------------------------------------
2095# Tests whether TYPE exists after having included INCLUDES, setting cache
2096# variable VAR accordingly.
2097ac_fn_c_check_type ()
2098{
2099 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2101$as_echo_n "checking for $2... " >&6; }
2102if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2103 $as_echo_n "(cached) " >&6
2104else
2105 eval "$3=no"
2106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2107/* end confdefs.h. */
2108$4
2109int
2110main ()
2111{
2112if (sizeof ($2))
2113 return 0;
2114 ;
2115 return 0;
2116}
2117_ACEOF
2118if ac_fn_c_try_compile "$LINENO"; then :
2119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2120/* end confdefs.h. */
2121$4
2122int
2123main ()
2124{
2125if (sizeof (($2)))
2126 return 0;
2127 ;
2128 return 0;
2129}
2130_ACEOF
2131if ac_fn_c_try_compile "$LINENO"; then :
953ff289 2132
5213506e
RW
2133else
2134 eval "$3=yes"
2135fi
2136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2137fi
2138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2139fi
2140eval ac_res=\$$3
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2142$as_echo "$ac_res" >&6; }
2143 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
953ff289 2144
5213506e 2145} # ac_fn_c_check_type
953ff289 2146
5213506e
RW
2147# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2148# --------------------------------------------
2149# Tries to find the compile-time value of EXPR in a program that includes
2150# INCLUDES, setting VAR accordingly. Returns whether the value could be
2151# computed
2152ac_fn_c_compute_int ()
2153{
2154 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2155 if test "$cross_compiling" = yes; then
2156 # Depending upon the size, compute the lo and hi bounds.
2157cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2158/* end confdefs.h. */
2159$4
2160int
2161main ()
2162{
2163static int test_array [1 - 2 * !(($2) >= 0)];
2164test_array [0] = 0
953ff289 2165
5213506e
RW
2166 ;
2167 return 0;
2168}
2169_ACEOF
2170if ac_fn_c_try_compile "$LINENO"; then :
2171 ac_lo=0 ac_mid=0
2172 while :; do
2173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2174/* end confdefs.h. */
2175$4
2176int
2177main ()
2178{
2179static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2180test_array [0] = 0
953ff289 2181
5213506e
RW
2182 ;
2183 return 0;
2184}
2185_ACEOF
2186if ac_fn_c_try_compile "$LINENO"; then :
2187 ac_hi=$ac_mid; break
2188else
2189 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2190 if test $ac_lo -le $ac_mid; then
2191 ac_lo= ac_hi=
2192 break
2193 fi
2194 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2195fi
2196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2197 done
2198else
2199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2200/* end confdefs.h. */
2201$4
2202int
2203main ()
2204{
2205static int test_array [1 - 2 * !(($2) < 0)];
2206test_array [0] = 0
953ff289 2207
5213506e
RW
2208 ;
2209 return 0;
2210}
2211_ACEOF
2212if ac_fn_c_try_compile "$LINENO"; then :
2213 ac_hi=-1 ac_mid=-1
2214 while :; do
2215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2216/* end confdefs.h. */
2217$4
2218int
2219main ()
2220{
2221static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2222test_array [0] = 0
953ff289 2223
5213506e
RW
2224 ;
2225 return 0;
2226}
2227_ACEOF
2228if ac_fn_c_try_compile "$LINENO"; then :
2229 ac_lo=$ac_mid; break
2230else
2231 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2232 if test $ac_mid -le $ac_hi; then
2233 ac_lo= ac_hi=
2234 break
2235 fi
2236 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2237fi
2238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2239 done
2240else
2241 ac_lo= ac_hi=
2242fi
2243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2244fi
2245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2246# Binary search between lo and hi bounds.
2247while test "x$ac_lo" != "x$ac_hi"; do
2248 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2250/* end confdefs.h. */
2251$4
2252int
2253main ()
2254{
2255static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2256test_array [0] = 0
953ff289 2257
5213506e
RW
2258 ;
2259 return 0;
2260}
2261_ACEOF
2262if ac_fn_c_try_compile "$LINENO"; then :
2263 ac_hi=$ac_mid
2264else
2265 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2266fi
2267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2268done
2269case $ac_lo in #((
2270?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2271'') ac_retval=1 ;;
2272esac
2273 else
2274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2275/* end confdefs.h. */
2276$4
2277static long int longval () { return $2; }
2278static unsigned long int ulongval () { return $2; }
2279#include <stdio.h>
2280#include <stdlib.h>
2281int
2282main ()
2283{
953ff289 2284
5213506e
RW
2285 FILE *f = fopen ("conftest.val", "w");
2286 if (! f)
2287 return 1;
2288 if (($2) < 0)
2289 {
2290 long int i = longval ();
2291 if (i != ($2))
2292 return 1;
2293 fprintf (f, "%ld", i);
2294 }
2295 else
2296 {
2297 unsigned long int i = ulongval ();
2298 if (i != ($2))
2299 return 1;
2300 fprintf (f, "%lu", i);
2301 }
2302 /* Do not output a trailing newline, as this causes \r\n confusion
2303 on some platforms. */
2304 return ferror (f) || fclose (f) != 0;
953ff289 2305
5213506e
RW
2306 ;
2307 return 0;
2308}
2309_ACEOF
2310if ac_fn_c_try_run "$LINENO"; then :
2311 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2312else
2313 ac_retval=1
2314fi
2315rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2316 conftest.$ac_objext conftest.beam conftest.$ac_ext
2317rm -f conftest.val
953ff289 2318
5213506e
RW
2319 fi
2320 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2321 return $ac_retval
953ff289 2322
5213506e
RW
2323} # ac_fn_c_compute_int
2324cat >config.log <<_ACEOF
2325This file contains any messages produced by compilers while
2326running configure, to aid debugging if configure makes a mistake.
953ff289 2327
5213506e
RW
2328It was created by GNU OpenMP Runtime Library $as_me 1.0, which was
2329generated by GNU Autoconf 2.64. Invocation command line was
953ff289 2330
5213506e 2331 $ $0 $@
953ff289 2332
5213506e
RW
2333_ACEOF
2334exec 5>>config.log
2335{
2336cat <<_ASUNAME
2337## --------- ##
2338## Platform. ##
2339## --------- ##
953ff289 2340
5213506e
RW
2341hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2342uname -m = `(uname -m) 2>/dev/null || echo unknown`
2343uname -r = `(uname -r) 2>/dev/null || echo unknown`
2344uname -s = `(uname -s) 2>/dev/null || echo unknown`
2345uname -v = `(uname -v) 2>/dev/null || echo unknown`
953ff289 2346
5213506e
RW
2347/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2348/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
953ff289 2349
5213506e
RW
2350/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2351/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2352/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2353/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2354/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2355/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2356/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
953ff289 2357
5213506e 2358_ASUNAME
953ff289 2359
5213506e
RW
2360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2361for as_dir in $PATH
2362do
2363 IFS=$as_save_IFS
2364 test -z "$as_dir" && as_dir=.
2365 $as_echo "PATH: $as_dir"
2366 done
2367IFS=$as_save_IFS
953ff289 2368
5213506e 2369} >&5
953ff289 2370
5213506e 2371cat >&5 <<_ACEOF
18c04407
RW
2372
2373
5213506e
RW
2374## ----------- ##
2375## Core tests. ##
2376## ----------- ##
18c04407 2377
5213506e 2378_ACEOF
953ff289
DN
2379
2380
5213506e
RW
2381# Keep a trace of the command line.
2382# Strip out --no-create and --no-recursion so they do not pile up.
2383# Strip out --silent because we don't want to record it for future runs.
2384# Also quote any args containing shell meta-characters.
2385# Make two passes to allow for proper duplicate-argument suppression.
2386ac_configure_args=
2387ac_configure_args0=
2388ac_configure_args1=
2389ac_must_keep_next=false
2390for ac_pass in 1 2
2391do
2392 for ac_arg
2393 do
2394 case $ac_arg in
2395 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2396 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2397 | -silent | --silent | --silen | --sile | --sil)
2398 continue ;;
2399 *\'*)
2400 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2401 esac
2402 case $ac_pass in
2403 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2404 2)
2405 as_fn_append ac_configure_args1 " '$ac_arg'"
2406 if test $ac_must_keep_next = true; then
2407 ac_must_keep_next=false # Got value, back to normal.
2408 else
2409 case $ac_arg in
2410 *=* | --config-cache | -C | -disable-* | --disable-* \
2411 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2412 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2413 | -with-* | --with-* | -without-* | --without-* | --x)
2414 case "$ac_configure_args0 " in
2415 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2416 esac
2417 ;;
2418 -* ) ac_must_keep_next=true ;;
2419 esac
2420 fi
2421 as_fn_append ac_configure_args " '$ac_arg'"
2422 ;;
2423 esac
2424 done
2425done
2426{ ac_configure_args0=; unset ac_configure_args0;}
2427{ ac_configure_args1=; unset ac_configure_args1;}
953ff289 2428
5213506e
RW
2429# When interrupted or exit'd, cleanup temporary files, and complete
2430# config.log. We remove comments because anyway the quotes in there
2431# would cause problems or look ugly.
2432# WARNING: Use '\'' to represent an apostrophe within the trap.
2433# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2434trap 'exit_status=$?
2435 # Save into config.log some information that might help in debugging.
2436 {
2437 echo
953ff289 2438
5213506e
RW
2439 cat <<\_ASBOX
2440## ---------------- ##
2441## Cache variables. ##
2442## ---------------- ##
2443_ASBOX
2444 echo
2445 # The following way of writing the cache mishandles newlines in values,
2446(
2447 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2448 eval ac_val=\$$ac_var
2449 case $ac_val in #(
2450 *${as_nl}*)
2451 case $ac_var in #(
2452 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2453$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2454 esac
2455 case $ac_var in #(
2456 _ | IFS | as_nl) ;; #(
2457 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2458 *) { eval $ac_var=; unset $ac_var;} ;;
2459 esac ;;
2460 esac
2461 done
2462 (set) 2>&1 |
2463 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2464 *${as_nl}ac_space=\ *)
2465 sed -n \
2466 "s/'\''/'\''\\\\'\'''\''/g;
2467 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2468 ;; #(
2469 *)
2470 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2471 ;;
2472 esac |
2473 sort
2474)
2475 echo
953ff289 2476
5213506e
RW
2477 cat <<\_ASBOX
2478## ----------------- ##
2479## Output variables. ##
2480## ----------------- ##
2481_ASBOX
2482 echo
2483 for ac_var in $ac_subst_vars
2484 do
2485 eval ac_val=\$$ac_var
2486 case $ac_val in
2487 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2488 esac
2489 $as_echo "$ac_var='\''$ac_val'\''"
2490 done | sort
2491 echo
953ff289 2492
5213506e
RW
2493 if test -n "$ac_subst_files"; then
2494 cat <<\_ASBOX
2495## ------------------- ##
2496## File substitutions. ##
2497## ------------------- ##
2498_ASBOX
2499 echo
2500 for ac_var in $ac_subst_files
2501 do
2502 eval ac_val=\$$ac_var
2503 case $ac_val in
2504 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2505 esac
2506 $as_echo "$ac_var='\''$ac_val'\''"
2507 done | sort
2508 echo
2509 fi
953ff289 2510
5213506e
RW
2511 if test -s confdefs.h; then
2512 cat <<\_ASBOX
2513## ----------- ##
2514## confdefs.h. ##
2515## ----------- ##
2516_ASBOX
2517 echo
2518 cat confdefs.h
2519 echo
2520 fi
2521 test "$ac_signal" != 0 &&
2522 $as_echo "$as_me: caught signal $ac_signal"
2523 $as_echo "$as_me: exit $exit_status"
2524 } >&5
2525 rm -f core *.core core.conftest.* &&
2526 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2527 exit $exit_status
2528' 0
2529for ac_signal in 1 2 13 15; do
2530 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2531done
2532ac_signal=0
953ff289 2533
5213506e
RW
2534# confdefs.h avoids OS command line length limits that DEFS can exceed.
2535rm -f -r conftest* confdefs.h
2536
2537$as_echo "/* confdefs.h */" > confdefs.h
2538
2539# Predefined preprocessor variables.
2540
2541cat >>confdefs.h <<_ACEOF
2542#define PACKAGE_NAME "$PACKAGE_NAME"
2543_ACEOF
2544
2545cat >>confdefs.h <<_ACEOF
2546#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2547_ACEOF
2548
2549cat >>confdefs.h <<_ACEOF
2550#define PACKAGE_VERSION "$PACKAGE_VERSION"
2551_ACEOF
2552
2553cat >>confdefs.h <<_ACEOF
2554#define PACKAGE_STRING "$PACKAGE_STRING"
2555_ACEOF
2556
2557cat >>confdefs.h <<_ACEOF
2558#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2559_ACEOF
2560
2561cat >>confdefs.h <<_ACEOF
2562#define PACKAGE_URL "$PACKAGE_URL"
2563_ACEOF
2564
2565
2566# Let the site file select an alternate cache file if it wants to.
2567# Prefer an explicitly selected file to automatically selected ones.
2568ac_site_file1=NONE
2569ac_site_file2=NONE
2570if test -n "$CONFIG_SITE"; then
2571 ac_site_file1=$CONFIG_SITE
2572elif test "x$prefix" != xNONE; then
2573 ac_site_file1=$prefix/share/config.site
2574 ac_site_file2=$prefix/etc/config.site
2575else
2576 ac_site_file1=$ac_default_prefix/share/config.site
2577 ac_site_file2=$ac_default_prefix/etc/config.site
2578fi
2579for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2580do
2581 test "x$ac_site_file" = xNONE && continue
2582 if test -r "$ac_site_file"; then
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2584$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2585 sed 's/^/| /' "$ac_site_file" >&5
2586 . "$ac_site_file"
2587 fi
2588done
2589
2590if test -r "$cache_file"; then
2591 # Some versions of bash will fail to source /dev/null (special
2592 # files actually), so we avoid doing that.
2593 if test -f "$cache_file"; then
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2595$as_echo "$as_me: loading cache $cache_file" >&6;}
2596 case $cache_file in
2597 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2598 *) . "./$cache_file";;
2599 esac
2600 fi
2601else
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2603$as_echo "$as_me: creating cache $cache_file" >&6;}
2604 >$cache_file
2605fi
2606
2607# Check that the precious variables saved in the cache have kept the same
2608# value.
2609ac_cache_corrupted=false
2610for ac_var in $ac_precious_vars; do
2611 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2612 eval ac_new_set=\$ac_env_${ac_var}_set
2613 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2614 eval ac_new_val=\$ac_env_${ac_var}_value
2615 case $ac_old_set,$ac_new_set in
2616 set,)
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2618$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2619 ac_cache_corrupted=: ;;
2620 ,set)
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2622$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2623 ac_cache_corrupted=: ;;
2624 ,);;
2625 *)
2626 if test "x$ac_old_val" != "x$ac_new_val"; then
2627 # differences in whitespace do not lead to failure.
2628 ac_old_val_w=`echo x $ac_old_val`
2629 ac_new_val_w=`echo x $ac_new_val`
2630 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2632$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2633 ac_cache_corrupted=:
2634 else
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2636$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2637 eval $ac_var=\$ac_old_val
2638 fi
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2640$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2642$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2643 fi;;
2644 esac
2645 # Pass precious variables to config.status.
2646 if test "$ac_new_set" = set; then
2647 case $ac_new_val in
2648 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2649 *) ac_arg=$ac_var=$ac_new_val ;;
2650 esac
2651 case " $ac_configure_args " in
2652 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2653 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2654 esac
2655 fi
2656done
2657if $ac_cache_corrupted; then
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2659$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2661$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2662 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2663fi
2664## -------------------- ##
2665## Main body of script. ##
2666## -------------------- ##
2667
2668ac_ext=c
2669ac_cpp='$CPP $CPPFLAGS'
2670ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2671ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2672ac_compiler_gnu=$ac_cv_c_compiler_gnu
2673
2674
2675
2676
2677
2678ac_config_headers="$ac_config_headers config.h"
2679
2680
2681# -------
2682# Options
2683# -------
2684
2685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2686$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2687 # Check whether --enable-version-specific-runtime-libs was given.
2688if test "${enable_version_specific_runtime_libs+set}" = set; then :
2689 enableval=$enable_version_specific_runtime_libs;
953ff289
DN
2690 case "$enableval" in
2691 yes|no) ;;
5213506e 2692 *) as_fn_error "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
953ff289
DN
2693 esac
2694
2695else
2696 enable_version_specific_runtime_libs=no
5213506e
RW
2697fi
2698
953ff289 2699
5213506e
RW
2700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2701$as_echo "$enable_version_specific_runtime_libs" >&6; }
953ff289 2702
627ab4b8
TT
2703# We would like our source tree to be readonly. However when releases or
2704# pre-releases are generated, the flex/bison generated files as well as the
2705# various formats of manuals need to be included along with the rest of the
2706# sources. Therefore we have --enable-generated-files-in-srcdir to do
2707# just that.
5213506e
RW
2708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2709$as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2710 # Check whether --enable-generated-files-in-srcdir was given.
2711if test "${enable_generated_files_in_srcdir+set}" = set; then :
2712 enableval=$enable_generated_files_in_srcdir;
627ab4b8
TT
2713 case "$enableval" in
2714 yes|no) ;;
5213506e 2715 *) as_fn_error "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
627ab4b8
TT
2716 esac
2717
2718else
2719 enable_generated_files_in_srcdir=no
5213506e 2720fi
627ab4b8
TT
2721
2722
5213506e
RW
2723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2724$as_echo "$enable_generated_files_in_srcdir" >&6; }
2725 if test "$enable_generated_files_in_srcdir" = yes; then
627ab4b8
TT
2726 GENINSRC_TRUE=
2727 GENINSRC_FALSE='#'
2728else
2729 GENINSRC_TRUE='#'
2730 GENINSRC_FALSE=
2731fi
2732
2733
2734
953ff289
DN
2735# -------
2736# -------
2737
2738# Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2739#
2740# You will slowly go insane if you do not grok the following fact: when
2741# building this library, the top-level /target/ becomes the library's /host/.
2742#
2743# configure then causes --target to default to --host, exactly like any
2744# other package using autoconf. Therefore, 'target' and 'host' will
2745# always be the same. This makes sense both for native and cross compilers
2746# just think about it for a little while. :-)
2747#
2748# Also, if this library is being configured as part of a cross compiler, the
2749# top-level configure script will pass the "real" host as $with_cross_host.
2750#
2751# Do not delete or change the following two lines. For why, see
2752# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2753ac_aux_dir=
5213506e
RW
2754for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2755 for ac_t in install-sh install.sh shtool; do
2756 if test -f "$ac_dir/$ac_t"; then
2757 ac_aux_dir=$ac_dir
2758 ac_install_sh="$ac_aux_dir/$ac_t -c"
2759 break 2
2760 fi
2761 done
953ff289
DN
2762done
2763if test -z "$ac_aux_dir"; then
5213506e 2764 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
953ff289 2765fi
5213506e
RW
2766
2767# These three variables are undocumented and unsupported,
2768# and are intended to be withdrawn in a future Autoconf release.
2769# They can cause serious problems if a builder's source tree is in a directory
2770# whose full name contains unusual characters.
2771ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2772ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2773ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2774
953ff289
DN
2775
2776# Make sure we can run config.sub.
5213506e
RW
2777$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2778 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2779
2780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2781$as_echo_n "checking build system type... " >&6; }
2782if test "${ac_cv_build+set}" = set; then :
2783 $as_echo_n "(cached) " >&6
2784else
2785 ac_build_alias=$build_alias
2786test "x$ac_build_alias" = x &&
2787 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2788test "x$ac_build_alias" = x &&
2789 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2790ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2791 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2792
2793fi
2794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2795$as_echo "$ac_cv_build" >&6; }
2796case $ac_cv_build in
2797*-*-*) ;;
2798*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2799esac
953ff289 2800build=$ac_cv_build
5213506e
RW
2801ac_save_IFS=$IFS; IFS='-'
2802set x $ac_cv_build
2803shift
2804build_cpu=$1
2805build_vendor=$2
2806shift; shift
2807# Remember, the first character of IFS is used to create $*,
2808# except with old shells:
2809build_os=$*
2810IFS=$ac_save_IFS
2811case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
953ff289
DN
2812
2813
5213506e
RW
2814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2815$as_echo_n "checking host system type... " >&6; }
2816if test "${ac_cv_host+set}" = set; then :
2817 $as_echo_n "(cached) " >&6
953ff289 2818else
5213506e
RW
2819 if test "x$host_alias" = x; then
2820 ac_cv_host=$ac_cv_build
2821else
2822 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2823 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2824fi
953ff289
DN
2825
2826fi
5213506e
RW
2827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2828$as_echo "$ac_cv_host" >&6; }
2829case $ac_cv_host in
2830*-*-*) ;;
2831*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2832esac
953ff289 2833host=$ac_cv_host
5213506e
RW
2834ac_save_IFS=$IFS; IFS='-'
2835set x $ac_cv_host
2836shift
2837host_cpu=$1
2838host_vendor=$2
2839shift; shift
2840# Remember, the first character of IFS is used to create $*,
2841# except with old shells:
2842host_os=$*
2843IFS=$ac_save_IFS
2844case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
953ff289
DN
2845
2846
5213506e
RW
2847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2848$as_echo_n "checking target system type... " >&6; }
2849if test "${ac_cv_target+set}" = set; then :
2850 $as_echo_n "(cached) " >&6
2851else
2852 if test "x$target_alias" = x; then
2853 ac_cv_target=$ac_cv_host
953ff289 2854else
5213506e
RW
2855 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2856 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2857fi
953ff289
DN
2858
2859fi
5213506e
RW
2860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2861$as_echo "$ac_cv_target" >&6; }
2862case $ac_cv_target in
2863*-*-*) ;;
2864*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2865esac
953ff289 2866target=$ac_cv_target
5213506e
RW
2867ac_save_IFS=$IFS; IFS='-'
2868set x $ac_cv_target
2869shift
2870target_cpu=$1
2871target_vendor=$2
2872shift; shift
2873# Remember, the first character of IFS is used to create $*,
2874# except with old shells:
2875target_os=$*
2876IFS=$ac_save_IFS
2877case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
953ff289
DN
2878
2879
2880# The aliases save the names the user supplied, while $host etc.
2881# will get canonicalized.
2882test -n "$target_alias" &&
2883 test "$program_prefix$program_suffix$program_transform_name" = \
2884 NONENONEs,x,x, &&
2885 program_prefix=${target_alias}-
5213506e 2886
953ff289
DN
2887target_alias=${target_alias-$host_alias}
2888
2889# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2890# following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2891# 1.9.0: minimum required version
2892# no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2893# of other PACKAGE_* variables will, however, and there's nothing
2894# we can do about that; they come from AC_INIT).
2895# foreign: we don't follow the normal rules for GNU packages (no COPYING
2896# file in the top srcdir, etc, etc), so stop complaining.
953ff289
DN
2897# -Wall: turns on all automake warnings...
2898# -Wno-portability: ...except this one, since GNU make is required.
2899# -Wno-override: ... and this one, since we do want this in testsuite.
5213506e
RW
2900am__api_version='1.11'
2901
953ff289
DN
2902# Find a good install program. We prefer a C program (faster),
2903# so one script is as good as another. But avoid the broken or
2904# incompatible versions:
2905# SysV /etc/install, /usr/sbin/install
2906# SunOS /usr/etc/install
2907# IRIX /sbin/install
2908# AIX /bin/install
2909# AmigaOS /C/install, which installs bootblocks on floppy discs
2910# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2911# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2912# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2913# OS/2's system install, which has a completely different semantic
2914# ./install, which can be erroneously created by make from ./install.sh.
38d24731 2915# Reject install programs that cannot install multiple files.
5213506e
RW
2916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2917$as_echo_n "checking for a BSD-compatible install... " >&6; }
953ff289 2918if test -z "$INSTALL"; then
5213506e
RW
2919if test "${ac_cv_path_install+set}" = set; then :
2920 $as_echo_n "(cached) " >&6
953ff289
DN
2921else
2922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923for as_dir in $PATH
2924do
2925 IFS=$as_save_IFS
2926 test -z "$as_dir" && as_dir=.
5213506e
RW
2927 # Account for people who put trailing slashes in PATH elements.
2928case $as_dir/ in #((
2929 ./ | .// | /[cC]/* | \
953ff289 2930 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 2931 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
953ff289
DN
2932 /usr/ucb/* ) ;;
2933 *)
2934 # OSF1 and SCO ODT 3.0 have their own names for install.
2935 # Don't use installbsd from OSF since it installs stuff as root
2936 # by default.
2937 for ac_prog in ginstall scoinst install; do
2938 for ac_exec_ext in '' $ac_executable_extensions; do
5213506e 2939 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
953ff289
DN
2940 if test $ac_prog = install &&
2941 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2942 # AIX install. It has an incompatible calling convention.
2943 :
2944 elif test $ac_prog = install &&
2945 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2946 # program-specific install script used by HP pwplus--don't use.
2947 :
2948 else
38d24731
RW
2949 rm -rf conftest.one conftest.two conftest.dir
2950 echo one > conftest.one
2951 echo two > conftest.two
2952 mkdir conftest.dir
2953 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2954 test -s conftest.one && test -s conftest.two &&
2955 test -s conftest.dir/conftest.one &&
2956 test -s conftest.dir/conftest.two
2957 then
2958 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2959 break 3
2960 fi
953ff289
DN
2961 fi
2962 fi
2963 done
2964 done
2965 ;;
2966esac
5213506e
RW
2967
2968 done
2969IFS=$as_save_IFS
953ff289 2970
38d24731 2971rm -rf conftest.one conftest.two conftest.dir
953ff289
DN
2972
2973fi
2974 if test "${ac_cv_path_install+set}" = set; then
2975 INSTALL=$ac_cv_path_install
2976 else
38d24731
RW
2977 # As a last resort, use the slow shell script. Don't cache a
2978 # value for INSTALL within a source directory, because that will
953ff289 2979 # break other packages using the cache if that directory is
38d24731 2980 # removed, or if the value is a relative name.
953ff289
DN
2981 INSTALL=$ac_install_sh
2982 fi
2983fi
5213506e
RW
2984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2985$as_echo "$INSTALL" >&6; }
953ff289
DN
2986
2987# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2988# It thinks the first close brace ends the variable substitution.
2989test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2990
2991test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2992
2993test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2994
5213506e
RW
2995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2996$as_echo_n "checking whether build environment is sane... " >&6; }
953ff289
DN
2997# Just in case
2998sleep 1
2999echo timestamp > conftest.file
5213506e
RW
3000# Reject unsafe characters in $srcdir or the absolute working directory
3001# name. Accept space and tab only in the latter.
3002am_lf='
3003'
3004case `pwd` in
3005 *[\\\"\#\$\&\'\`$am_lf]*)
3006 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3007esac
3008case $srcdir in
3009 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3010 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3011esac
3012
953ff289
DN
3013# Do `set' in a subshell so we don't clobber the current shell's
3014# arguments. Must try -L first in case configure is actually a
3015# symlink; some systems play weird games with the mod time of symlinks
3016# (eg FreeBSD returns the mod time of the symlink's containing
3017# directory).
3018if (
5213506e 3019 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
953ff289
DN
3020 if test "$*" = "X"; then
3021 # -L didn't work.
5213506e 3022 set X `ls -t "$srcdir/configure" conftest.file`
953ff289
DN
3023 fi
3024 rm -f conftest.file
3025 if test "$*" != "X $srcdir/configure conftest.file" \
3026 && test "$*" != "X conftest.file $srcdir/configure"; then
3027
3028 # If neither matched, then we have a broken ls. This can happen
3029 # if, for instance, CONFIG_SHELL is bash and it inherits a
3030 # broken ls alias from the environment. This has actually
3031 # happened. Such a system could not be considered "sane".
5213506e
RW
3032 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3033alias in your environment" "$LINENO" 5
953ff289
DN
3034 fi
3035
3036 test "$2" = conftest.file
3037 )
3038then
3039 # Ok.
3040 :
3041else
5213506e
RW
3042 as_fn_error "newly created file is older than distributed files!
3043Check your system clock" "$LINENO" 5
953ff289 3044fi
5213506e
RW
3045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3046$as_echo "yes" >&6; }
953ff289 3047test "$program_prefix" != NONE &&
5213506e 3048 program_transform_name="s&^&$program_prefix&;$program_transform_name"
953ff289
DN
3049# Use a double $ so make ignores it.
3050test "$program_suffix" != NONE &&
5213506e
RW
3051 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3052# Double any \ or $.
953ff289 3053# By default was `s,x,x', remove it if useless.
5213506e
RW
3054ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3055program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
953ff289
DN
3056
3057# expand $ac_aux_dir to an absolute path
3058am_aux_dir=`cd $ac_aux_dir && pwd`
3059
5213506e
RW
3060if test x"${MISSING+set}" != xset; then
3061 case $am_aux_dir in
3062 *\ * | *\ *)
3063 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3064 *)
3065 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3066 esac
3067fi
953ff289
DN
3068# Use eval to expand $SHELL
3069if eval "$MISSING --run true"; then
3070 am_missing_run="$MISSING --run "
3071else
3072 am_missing_run=
5213506e
RW
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3074$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3075fi
3076
3077if test x"${install_sh}" != xset; then
3078 case $am_aux_dir in
3079 *\ * | *\ *)
3080 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3081 *)
3082 install_sh="\${SHELL} $am_aux_dir/install-sh"
3083 esac
3084fi
3085
3086# Installed binaries are usually stripped using `strip' when the user
3087# run `make install-strip'. However `strip' might not be the right
3088# tool to use in cross-compilation environments, therefore Automake
3089# will honor the `STRIP' environment variable to overrule this program.
3090if test "$cross_compiling" != no; then
3091 if test -n "$ac_tool_prefix"; then
3092 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3093set dummy ${ac_tool_prefix}strip; ac_word=$2
3094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3095$as_echo_n "checking for $ac_word... " >&6; }
3096if test "${ac_cv_prog_STRIP+set}" = set; then :
3097 $as_echo_n "(cached) " >&6
3098else
3099 if test -n "$STRIP"; then
3100 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3101else
3102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3103for as_dir in $PATH
3104do
3105 IFS=$as_save_IFS
3106 test -z "$as_dir" && as_dir=.
3107 for ac_exec_ext in '' $ac_executable_extensions; do
3108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3109 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3111 break 2
3112 fi
3113done
3114 done
3115IFS=$as_save_IFS
3116
3117fi
3118fi
3119STRIP=$ac_cv_prog_STRIP
3120if test -n "$STRIP"; then
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3122$as_echo "$STRIP" >&6; }
3123else
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3125$as_echo "no" >&6; }
3126fi
3127
3128
3129fi
3130if test -z "$ac_cv_prog_STRIP"; then
3131 ac_ct_STRIP=$STRIP
3132 # Extract the first word of "strip", so it can be a program name with args.
3133set dummy strip; ac_word=$2
3134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3135$as_echo_n "checking for $ac_word... " >&6; }
3136if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3137 $as_echo_n "(cached) " >&6
3138else
3139 if test -n "$ac_ct_STRIP"; then
3140 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3141else
3142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3143for as_dir in $PATH
3144do
3145 IFS=$as_save_IFS
3146 test -z "$as_dir" && as_dir=.
3147 for ac_exec_ext in '' $ac_executable_extensions; do
3148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3149 ac_cv_prog_ac_ct_STRIP="strip"
3150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3151 break 2
3152 fi
3153done
3154 done
3155IFS=$as_save_IFS
3156
3157fi
3158fi
3159ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3160if test -n "$ac_ct_STRIP"; then
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3162$as_echo "$ac_ct_STRIP" >&6; }
3163else
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3165$as_echo "no" >&6; }
3166fi
3167
3168 if test "x$ac_ct_STRIP" = x; then
3169 STRIP=":"
3170 else
3171 case $cross_compiling:$ac_tool_warned in
3172yes:)
3173{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3174$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3175ac_tool_warned=yes ;;
3176esac
3177 STRIP=$ac_ct_STRIP
3178 fi
3179else
3180 STRIP="$ac_cv_prog_STRIP"
3181fi
3182
3183fi
3184INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3185
3186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3187$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3188if test -z "$MKDIR_P"; then
3189 if test "${ac_cv_path_mkdir+set}" = set; then :
3190 $as_echo_n "(cached) " >&6
3191else
3192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3194do
3195 IFS=$as_save_IFS
3196 test -z "$as_dir" && as_dir=.
3197 for ac_prog in mkdir gmkdir; do
3198 for ac_exec_ext in '' $ac_executable_extensions; do
3199 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3200 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3201 'mkdir (GNU coreutils) '* | \
3202 'mkdir (coreutils) '* | \
3203 'mkdir (fileutils) '4.1*)
3204 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3205 break 3;;
3206 esac
3207 done
3208 done
953ff289 3209 done
5213506e
RW
3210IFS=$as_save_IFS
3211
3212fi
3213
3214 if test "${ac_cv_path_mkdir+set}" = set; then
3215 MKDIR_P="$ac_cv_path_mkdir -p"
953ff289 3216 else
5213506e
RW
3217 # As a last resort, use the slow shell script. Don't cache a
3218 # value for MKDIR_P within a source directory, because that will
3219 # break other packages using the cache if that directory is
3220 # removed, or if the value is a relative name.
3221 test -d ./--version && rmdir ./--version
3222 MKDIR_P="$ac_install_sh -d"
953ff289
DN
3223 fi
3224fi
5213506e
RW
3225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3226$as_echo "$MKDIR_P" >&6; }
3227
3228mkdir_p="$MKDIR_P"
3229case $mkdir_p in
3230 [\\/$]* | ?:[\\/]*) ;;
3231 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3232esac
953ff289
DN
3233
3234for ac_prog in gawk mawk nawk awk
3235do
3236 # Extract the first word of "$ac_prog", so it can be a program name with args.
3237set dummy $ac_prog; ac_word=$2
5213506e
RW
3238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3239$as_echo_n "checking for $ac_word... " >&6; }
3240if test "${ac_cv_prog_AWK+set}" = set; then :
3241 $as_echo_n "(cached) " >&6
953ff289
DN
3242else
3243 if test -n "$AWK"; then
3244 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3245else
3246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3247for as_dir in $PATH
3248do
3249 IFS=$as_save_IFS
3250 test -z "$as_dir" && as_dir=.
5213506e
RW
3251 for ac_exec_ext in '' $ac_executable_extensions; do
3252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
953ff289 3253 ac_cv_prog_AWK="$ac_prog"
5213506e 3254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
953ff289
DN
3255 break 2
3256 fi
3257done
5213506e
RW
3258 done
3259IFS=$as_save_IFS
953ff289
DN
3260
3261fi
3262fi
3263AWK=$ac_cv_prog_AWK
3264if test -n "$AWK"; then
5213506e
RW
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3266$as_echo "$AWK" >&6; }
953ff289 3267else
5213506e
RW
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3269$as_echo "no" >&6; }
953ff289
DN
3270fi
3271
5213506e 3272
953ff289
DN
3273 test -n "$AWK" && break
3274done
3275
5213506e
RW
3276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3277$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3278set x ${MAKE-make}
3279ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3280if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3281 $as_echo_n "(cached) " >&6
953ff289
DN
3282else
3283 cat >conftest.make <<\_ACEOF
5213506e 3284SHELL = /bin/sh
953ff289 3285all:
5213506e 3286 @echo '@@@%%%=$(MAKE)=@@@%%%'
953ff289
DN
3287_ACEOF
3288# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5213506e
RW
3289case `${MAKE-make} -f conftest.make 2>/dev/null` in
3290 *@@@%%%=?*=@@@%%%*)
3291 eval ac_cv_prog_make_${ac_make}_set=yes;;
3292 *)
3293 eval ac_cv_prog_make_${ac_make}_set=no;;
3294esac
953ff289
DN
3295rm -f conftest.make
3296fi
5213506e
RW
3297if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3299$as_echo "yes" >&6; }
953ff289
DN
3300 SET_MAKE=
3301else
5213506e
RW
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3303$as_echo "no" >&6; }
953ff289
DN
3304 SET_MAKE="MAKE=${MAKE-make}"
3305fi
3306
3307rm -rf .tst 2>/dev/null
3308mkdir .tst 2>/dev/null
3309if test -d .tst; then
3310 am__leading_dot=.
3311else
3312 am__leading_dot=_
3313fi
3314rmdir .tst 2>/dev/null
3315
5213506e
RW
3316if test "`cd $srcdir && pwd`" != "`pwd`"; then
3317 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3318 # is not polluted with repeated "-I."
3319 am__isrc=' -I$(srcdir)'
3320 # test to see if srcdir already configured
3321 if test -f $srcdir/config.status; then
3322 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3323 fi
953ff289
DN
3324fi
3325
3326# test whether we have cygpath
3327if test -z "$CYGPATH_W"; then
3328 if (cygpath --version) >/dev/null 2>/dev/null; then
3329 CYGPATH_W='cygpath -w'
3330 else
3331 CYGPATH_W=echo
3332 fi
3333fi
3334
3335
3336# Define the identity of the package.
3337 PACKAGE='libgomp'
3338 VERSION='1.0'
3339
3340
3341cat >>confdefs.h <<_ACEOF
3342#define PACKAGE "$PACKAGE"
3343_ACEOF
3344
3345
3346cat >>confdefs.h <<_ACEOF
3347#define VERSION "$VERSION"
3348_ACEOF
3349
3350# Some tools Automake needs.
3351
3352ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3353
3354
3355AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3356
3357
3358AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3359
3360
3361AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3362
3363
3364MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3365
5213506e
RW
3366# We need awk for the "check" target. The system "awk" is bad on
3367# some platforms.
3368# Always define AMTAR for backward compatibility.
953ff289
DN
3369
3370AMTAR=${AMTAR-"${am_missing_run}tar"}
3371
3372am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3373
3374
3375
3376
3377
3378# Default to --enable-multilib
5213506e
RW
3379# Check whether --enable-multilib was given.
3380if test "${enable_multilib+set}" = set; then :
3381 enableval=$enable_multilib; case "$enableval" in
953ff289
DN
3382 yes) multilib=yes ;;
3383 no) multilib=no ;;
5213506e 3384 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
953ff289
DN
3385 esac
3386else
3387 multilib=yes
5213506e
RW
3388fi
3389
953ff289
DN
3390
3391# We may get other options which we leave undocumented:
3392# --with-target-subdir, --with-multisrctop, --with-multisubdir
3393# See config-ml.in if you want the gory details.
3394
3395if test "$srcdir" = "."; then
3396 if test "$with_target_subdir" != "."; then
3397 multi_basedir="$srcdir/$with_multisrctop../.."
3398 else
3399 multi_basedir="$srcdir/$with_multisrctop.."
3400 fi
3401else
3402 multi_basedir="$srcdir/.."
3403fi
3404
3405
5b043f08
GK
3406# Even if the default multilib is not a cross compilation,
3407# it may be that some of the other multilibs are.
3408if test $cross_compiling = no && test $multilib = yes \
3409 && test "x${with_multisubdir}" != x ; then
3410 cross_compiling=maybe
3411fi
3412
5213506e 3413ac_config_commands="$ac_config_commands default-1"
953ff289
DN
3414
3415
3416# Calculate toolexeclibdir
3417# Also toolexecdir, though it's only used in toolexeclibdir
3418case ${enable_version_specific_runtime_libs} in
3419 yes)
3420 # Need the gcc compiler version to know where to install libraries
3421 # and header files if --enable-version-specific-runtime-libs option
3422 # is selected.
3423 toolexecdir='$(libdir)/gcc/$(target_alias)'
3424 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3425 ;;
3426 no)
3427 if test -n "$with_cross_host" &&
3428 test x"$with_cross_host" != x"no"; then
3429 # Install a library built with a cross compiler in tooldir, not libdir.
3430 toolexecdir='$(exec_prefix)/$(target_alias)'
3431 toolexeclibdir='$(toolexecdir)/lib'
3432 else
3433 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3434 toolexeclibdir='$(libdir)'
3435 fi
3436 multi_os_directory=`$CC -print-multi-os-directory`
3437 case $multi_os_directory in
3438 .) ;; # Avoid trailing /.
3439 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3440 esac
3441 ;;
3442esac
3443
3444
3445
3446# Check the compiler.
3447# The same as in boehm-gc and libstdc++. Have to borrow it from there.
3448# We must force CC to /not/ be precious variables; otherwise
3449# the wrong, non-multilib-adjusted value will be used in multilibs.
3450# As a side effect, we have to subst CFLAGS ourselves.
3451
3452
3453
3454ac_ext=c
3455ac_cpp='$CPP $CPPFLAGS'
3456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3458ac_compiler_gnu=$ac_cv_c_compiler_gnu
3459if test -n "$ac_tool_prefix"; then
3460 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3461set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
3462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3463$as_echo_n "checking for $ac_word... " >&6; }
3464if test "${ac_cv_prog_CC+set}" = set; then :
3465 $as_echo_n "(cached) " >&6
953ff289
DN
3466else
3467 if test -n "$CC"; then
3468 ac_cv_prog_CC="$CC" # Let the user override the test.
3469else
3470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3471for as_dir in $PATH
3472do
3473 IFS=$as_save_IFS
3474 test -z "$as_dir" && as_dir=.
5213506e
RW
3475 for ac_exec_ext in '' $ac_executable_extensions; do
3476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
953ff289 3477 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 3478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
953ff289
DN
3479 break 2
3480 fi
3481done
5213506e
RW
3482 done
3483IFS=$as_save_IFS
953ff289
DN
3484
3485fi
3486fi
3487CC=$ac_cv_prog_CC
3488if test -n "$CC"; then
5213506e
RW
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3490$as_echo "$CC" >&6; }
953ff289 3491else
5213506e
RW
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3493$as_echo "no" >&6; }
953ff289
DN
3494fi
3495
5213506e 3496
953ff289
DN
3497fi
3498if test -z "$ac_cv_prog_CC"; then
3499 ac_ct_CC=$CC
3500 # Extract the first word of "gcc", so it can be a program name with args.
3501set dummy gcc; ac_word=$2
5213506e
RW
3502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3503$as_echo_n "checking for $ac_word... " >&6; }
3504if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3505 $as_echo_n "(cached) " >&6
953ff289
DN
3506else
3507 if test -n "$ac_ct_CC"; then
3508 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3509else
3510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3511for as_dir in $PATH
3512do
3513 IFS=$as_save_IFS
3514 test -z "$as_dir" && as_dir=.
5213506e
RW
3515 for ac_exec_ext in '' $ac_executable_extensions; do
3516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
953ff289 3517 ac_cv_prog_ac_ct_CC="gcc"
5213506e 3518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
953ff289
DN
3519 break 2
3520 fi
3521done
5213506e
RW
3522 done
3523IFS=$as_save_IFS
953ff289
DN
3524
3525fi
3526fi
3527ac_ct_CC=$ac_cv_prog_ac_ct_CC
3528if test -n "$ac_ct_CC"; then
5213506e
RW
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3530$as_echo "$ac_ct_CC" >&6; }
953ff289 3531else
5213506e
RW
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3533$as_echo "no" >&6; }
953ff289
DN
3534fi
3535
5213506e
RW
3536 if test "x$ac_ct_CC" = x; then
3537 CC=""
3538 else
3539 case $cross_compiling:$ac_tool_warned in
3540yes:)
3541{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3542$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3543ac_tool_warned=yes ;;
3544esac
3545 CC=$ac_ct_CC
3546 fi
953ff289
DN
3547else
3548 CC="$ac_cv_prog_CC"
3549fi
3550
3551if test -z "$CC"; then
5213506e
RW
3552 if test -n "$ac_tool_prefix"; then
3553 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
953ff289 3554set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
3555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3556$as_echo_n "checking for $ac_word... " >&6; }
3557if test "${ac_cv_prog_CC+set}" = set; then :
3558 $as_echo_n "(cached) " >&6
953ff289
DN
3559else
3560 if test -n "$CC"; then
3561 ac_cv_prog_CC="$CC" # Let the user override the test.
3562else
3563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3564for as_dir in $PATH
3565do
3566 IFS=$as_save_IFS
3567 test -z "$as_dir" && as_dir=.
5213506e
RW
3568 for ac_exec_ext in '' $ac_executable_extensions; do
3569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
953ff289 3570 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 3571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
953ff289
DN
3572 break 2
3573 fi
3574done
5213506e
RW
3575 done
3576IFS=$as_save_IFS
953ff289
DN
3577
3578fi
3579fi
3580CC=$ac_cv_prog_CC
3581if test -n "$CC"; then
5213506e
RW
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3583$as_echo "$CC" >&6; }
953ff289 3584else
5213506e
RW
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3586$as_echo "no" >&6; }
953ff289
DN
3587fi
3588
953ff289 3589
5213506e 3590 fi
953ff289
DN
3591fi
3592if test -z "$CC"; then
3593 # Extract the first word of "cc", so it can be a program name with args.
3594set dummy cc; ac_word=$2
5213506e
RW
3595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3596$as_echo_n "checking for $ac_word... " >&6; }
3597if test "${ac_cv_prog_CC+set}" = set; then :
3598 $as_echo_n "(cached) " >&6
953ff289
DN
3599else
3600 if test -n "$CC"; then
3601 ac_cv_prog_CC="$CC" # Let the user override the test.
3602else
3603 ac_prog_rejected=no
3604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3605for as_dir in $PATH
3606do
3607 IFS=$as_save_IFS
3608 test -z "$as_dir" && as_dir=.
5213506e
RW
3609 for ac_exec_ext in '' $ac_executable_extensions; do
3610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
953ff289
DN
3611 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3612 ac_prog_rejected=yes
3613 continue
3614 fi
3615 ac_cv_prog_CC="cc"
5213506e 3616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
953ff289
DN
3617 break 2
3618 fi
3619done
5213506e
RW
3620 done
3621IFS=$as_save_IFS
953ff289
DN
3622
3623if test $ac_prog_rejected = yes; then
3624 # We found a bogon in the path, so make sure we never use it.
3625 set dummy $ac_cv_prog_CC
3626 shift
3627 if test $# != 0; then
3628 # We chose a different compiler from the bogus one.
3629 # However, it has the same basename, so the bogon will be chosen
3630 # first if we set CC to just the basename; use the full file name.
3631 shift
3632 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3633 fi
3634fi
3635fi
3636fi
3637CC=$ac_cv_prog_CC
3638if test -n "$CC"; then
5213506e
RW
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3640$as_echo "$CC" >&6; }
953ff289 3641else
5213506e
RW
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3643$as_echo "no" >&6; }
953ff289
DN
3644fi
3645
5213506e 3646
953ff289
DN
3647fi
3648if test -z "$CC"; then
3649 if test -n "$ac_tool_prefix"; then
5213506e 3650 for ac_prog in cl.exe
953ff289
DN
3651 do
3652 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3653set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
3654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3655$as_echo_n "checking for $ac_word... " >&6; }
3656if test "${ac_cv_prog_CC+set}" = set; then :
3657 $as_echo_n "(cached) " >&6
953ff289
DN
3658else
3659 if test -n "$CC"; then
3660 ac_cv_prog_CC="$CC" # Let the user override the test.
3661else
3662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3663for as_dir in $PATH
3664do
3665 IFS=$as_save_IFS
3666 test -z "$as_dir" && as_dir=.
5213506e
RW
3667 for ac_exec_ext in '' $ac_executable_extensions; do
3668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
953ff289 3669 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 3670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
953ff289
DN
3671 break 2
3672 fi
3673done
5213506e
RW
3674 done
3675IFS=$as_save_IFS
953ff289
DN
3676
3677fi
3678fi
3679CC=$ac_cv_prog_CC
3680if test -n "$CC"; then
5213506e
RW
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3682$as_echo "$CC" >&6; }
953ff289 3683else
5213506e
RW
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3685$as_echo "no" >&6; }
953ff289
DN
3686fi
3687
5213506e 3688
953ff289
DN
3689 test -n "$CC" && break
3690 done
3691fi
3692if test -z "$CC"; then
3693 ac_ct_CC=$CC
5213506e 3694 for ac_prog in cl.exe
953ff289
DN
3695do
3696 # Extract the first word of "$ac_prog", so it can be a program name with args.
3697set dummy $ac_prog; ac_word=$2
5213506e
RW
3698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3699$as_echo_n "checking for $ac_word... " >&6; }
3700if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3701 $as_echo_n "(cached) " >&6
953ff289
DN
3702else
3703 if test -n "$ac_ct_CC"; then
3704 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3705else
3706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3707for as_dir in $PATH
3708do
3709 IFS=$as_save_IFS
3710 test -z "$as_dir" && as_dir=.
5213506e
RW
3711 for ac_exec_ext in '' $ac_executable_extensions; do
3712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
953ff289 3713 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 3714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
953ff289
DN
3715 break 2
3716 fi
3717done
5213506e
RW
3718 done
3719IFS=$as_save_IFS
953ff289
DN
3720
3721fi
3722fi
3723ac_ct_CC=$ac_cv_prog_ac_ct_CC
3724if test -n "$ac_ct_CC"; then
5213506e
RW
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3726$as_echo "$ac_ct_CC" >&6; }
953ff289 3727else
5213506e
RW
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3729$as_echo "no" >&6; }
953ff289
DN
3730fi
3731
5213506e 3732
953ff289
DN
3733 test -n "$ac_ct_CC" && break
3734done
3735
5213506e
RW
3736 if test "x$ac_ct_CC" = x; then
3737 CC=""
3738 else
3739 case $cross_compiling:$ac_tool_warned in
3740yes:)
3741{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3742$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3743ac_tool_warned=yes ;;
3744esac
3745 CC=$ac_ct_CC
3746 fi
953ff289
DN
3747fi
3748
3749fi
3750
3751
5213506e
RW
3752test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3753$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3754as_fn_error "no acceptable C compiler found in \$PATH
3755See \`config.log' for more details." "$LINENO" 5; }
953ff289
DN
3756
3757# Provide some information about the compiler.
5213506e
RW
3758$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3759set X $ac_compile
3760ac_compiler=$2
3761for ac_option in --version -v -V -qversion; do
3762 { { ac_try="$ac_compiler $ac_option >&5"
3763case "(($ac_try" in
3764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3765 *) ac_try_echo=$ac_try;;
3766esac
3767eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3768$as_echo "$ac_try_echo"; } >&5
3769 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
953ff289 3770 ac_status=$?
5213506e
RW
3771 if test -s conftest.err; then
3772 sed '10a\
3773... rest of stderr output deleted ...
3774 10q' conftest.err >conftest.er1
3775 cat conftest.er1 >&5
3776 rm -f conftest.er1 conftest.err
3777 fi
3778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3779 test $ac_status = 0; }
3780done
953ff289 3781
5213506e 3782cat confdefs.h - <<_ACEOF >conftest.$ac_ext
953ff289
DN
3783/* end confdefs.h. */
3784
3785int
3786main ()
3787{
3788
3789 ;
3790 return 0;
3791}
3792_ACEOF
3793ac_clean_files_save=$ac_clean_files
5213506e 3794ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
953ff289
DN
3795# Try to create an executable without -o first, disregard a.out.
3796# It will help us diagnose broken compilers, and finding out an intuition
3797# of exeext.
5213506e
RW
3798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3799$as_echo_n "checking for C compiler default output file name... " >&6; }
3800ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3801
3802# The possible output files:
3803ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3804
3805ac_rmfiles=
3806for ac_file in $ac_files
3807do
3808 case $ac_file in
3809 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3810 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3811 esac
3812done
3813rm -f $ac_rmfiles
3814
3815if { { ac_try="$ac_link_default"
3816case "(($ac_try" in
3817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3818 *) ac_try_echo=$ac_try;;
3819esac
3820eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3821$as_echo "$ac_try_echo"; } >&5
3822 (eval "$ac_link_default") 2>&5
3823 ac_status=$?
3824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3825 test $ac_status = 0; }; then :
3826 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3827# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3828# in a Makefile. We should not override ac_cv_exeext if it was cached,
3829# so that the user can short-circuit this test for compilers unknown to
3830# Autoconf.
3831for ac_file in $ac_files ''
953ff289
DN
3832do
3833 test -f "$ac_file" || continue
3834 case $ac_file in
5213506e 3835 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
953ff289
DN
3836 ;;
3837 [ab].out )
3838 # We found the default executable, but exeext='' is most
3839 # certainly right.
3840 break;;
3841 *.* )
5213506e
RW
3842 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3843 then :; else
3844 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3845 fi
3846 # We set ac_cv_exeext here because the later test for it is not
3847 # safe: cross compilers may not add the suffix if given an `-o'
3848 # argument, so we may need to know it at that point already.
3849 # Even if this section looks crufty: it has the advantage of
3850 # actually working.
953ff289
DN
3851 break;;
3852 * )
3853 break;;
3854 esac
3855done
5213506e
RW
3856test "$ac_cv_exeext" = no && ac_cv_exeext=
3857
953ff289 3858else
5213506e
RW
3859 ac_file=''
3860fi
3861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3862$as_echo "$ac_file" >&6; }
3863if test -z "$ac_file"; then :
3864 $as_echo "$as_me: failed program was:" >&5
953ff289
DN
3865sed 's/^/| /' conftest.$ac_ext >&5
3866
5213506e
RW
3867{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3868$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3869{ as_fn_set_status 77
3870as_fn_error "C compiler cannot create executables
3871See \`config.log' for more details." "$LINENO" 5; }; }
953ff289 3872fi
953ff289 3873ac_exeext=$ac_cv_exeext
953ff289 3874
5213506e 3875# Check that the compiler produces executables we can run. If not, either
953ff289 3876# the compiler is broken, or we cross compile.
5213506e
RW
3877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3878$as_echo_n "checking whether the C compiler works... " >&6; }
953ff289
DN
3879# If not cross compiling, check that we can run a simple program.
3880if test "$cross_compiling" != yes; then
3881 if { ac_try='./$ac_file'
5213506e
RW
3882 { { case "(($ac_try" in
3883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3884 *) ac_try_echo=$ac_try;;
3885esac
3886eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3887$as_echo "$ac_try_echo"; } >&5
3888 (eval "$ac_try") 2>&5
953ff289 3889 ac_status=$?
5213506e
RW
3890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3891 test $ac_status = 0; }; }; then
953ff289
DN
3892 cross_compiling=no
3893 else
3894 if test "$cross_compiling" = maybe; then
3895 cross_compiling=yes
3896 else
5213506e
RW
3897 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3898$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3899as_fn_error "cannot run C compiled programs.
953ff289 3900If you meant to cross compile, use \`--host'.
5213506e 3901See \`config.log' for more details." "$LINENO" 5; }
953ff289
DN
3902 fi
3903 fi
3904fi
5213506e
RW
3905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3906$as_echo "yes" >&6; }
953ff289 3907
5213506e 3908rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
953ff289 3909ac_clean_files=$ac_clean_files_save
5213506e 3910# Check that the compiler produces executables we can run. If not, either
953ff289 3911# the compiler is broken, or we cross compile.
5213506e
RW
3912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3913$as_echo_n "checking whether we are cross compiling... " >&6; }
3914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3915$as_echo "$cross_compiling" >&6; }
3916
3917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3918$as_echo_n "checking for suffix of executables... " >&6; }
3919if { { ac_try="$ac_link"
3920case "(($ac_try" in
3921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3922 *) ac_try_echo=$ac_try;;
3923esac
3924eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3925$as_echo "$ac_try_echo"; } >&5
3926 (eval "$ac_link") 2>&5
953ff289 3927 ac_status=$?
5213506e
RW
3928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3929 test $ac_status = 0; }; then :
953ff289
DN
3930 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3931# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3932# work properly (i.e., refer to `conftest.exe'), while it won't with
3933# `rm'.
3934for ac_file in conftest.exe conftest conftest.*; do
3935 test -f "$ac_file" || continue
3936 case $ac_file in
5213506e 3937 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
953ff289 3938 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
953ff289
DN
3939 break;;
3940 * ) break;;
3941 esac
3942done
3943else
5213506e
RW
3944 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3945$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3946as_fn_error "cannot compute suffix of executables: cannot compile and link
3947See \`config.log' for more details." "$LINENO" 5; }
953ff289 3948fi
953ff289 3949rm -f conftest$ac_cv_exeext
5213506e
RW
3950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3951$as_echo "$ac_cv_exeext" >&6; }
953ff289
DN
3952
3953rm -f conftest.$ac_ext
3954EXEEXT=$ac_cv_exeext
3955ac_exeext=$EXEEXT
5213506e
RW
3956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3957$as_echo_n "checking for suffix of object files... " >&6; }
3958if test "${ac_cv_objext+set}" = set; then :
3959 $as_echo_n "(cached) " >&6
953ff289 3960else
5213506e 3961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
953ff289
DN
3962/* end confdefs.h. */
3963
3964int
3965main ()
3966{
3967
3968 ;
3969 return 0;
3970}
3971_ACEOF
3972rm -f conftest.o conftest.obj
5213506e
RW
3973if { { ac_try="$ac_compile"
3974case "(($ac_try" in
3975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3976 *) ac_try_echo=$ac_try;;
3977esac
3978eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3979$as_echo "$ac_try_echo"; } >&5
3980 (eval "$ac_compile") 2>&5
3981 ac_status=$?
3982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3983 test $ac_status = 0; }; then :
3984 for ac_file in conftest.o conftest.obj conftest.*; do
3985 test -f "$ac_file" || continue;
953ff289 3986 case $ac_file in
5213506e 3987 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
953ff289
DN
3988 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3989 break;;
3990 esac
3991done
3992else
5213506e 3993 $as_echo "$as_me: failed program was:" >&5
953ff289
DN
3994sed 's/^/| /' conftest.$ac_ext >&5
3995
5213506e
RW
3996{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3997$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3998as_fn_error "cannot compute suffix of object files: cannot compile
3999See \`config.log' for more details." "$LINENO" 5; }
953ff289 4000fi
953ff289
DN
4001rm -f conftest.$ac_cv_objext conftest.$ac_ext
4002fi
5213506e
RW
4003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4004$as_echo "$ac_cv_objext" >&6; }
953ff289
DN
4005OBJEXT=$ac_cv_objext
4006ac_objext=$OBJEXT
5213506e
RW
4007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4008$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4009if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4010 $as_echo_n "(cached) " >&6
953ff289 4011else
5213506e 4012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
953ff289
DN
4013/* end confdefs.h. */
4014
4015int
4016main ()
4017{
4018#ifndef __GNUC__
4019 choke me
4020#endif
4021
4022 ;
4023 return 0;
4024}
4025_ACEOF
5213506e 4026if ac_fn_c_try_compile "$LINENO"; then :
953ff289
DN
4027 ac_compiler_gnu=yes
4028else
5213506e 4029 ac_compiler_gnu=no
953ff289 4030fi
5213506e 4031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
953ff289
DN
4032ac_cv_c_compiler_gnu=$ac_compiler_gnu
4033
4034fi
5213506e
RW
4035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4036$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4037if test $ac_compiler_gnu = yes; then
4038 GCC=yes
4039else
4040 GCC=
4041fi
953ff289
DN
4042ac_test_CFLAGS=${CFLAGS+set}
4043ac_save_CFLAGS=$CFLAGS
5213506e
RW
4044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4045$as_echo_n "checking whether $CC accepts -g... " >&6; }
4046if test "${ac_cv_prog_cc_g+set}" = set; then :
4047 $as_echo_n "(cached) " >&6
4048else
4049 ac_save_c_werror_flag=$ac_c_werror_flag
4050 ac_c_werror_flag=yes
4051 ac_cv_prog_cc_g=no
4052 CFLAGS="-g"
4053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
953ff289
DN
4054/* end confdefs.h. */
4055
4056int
4057main ()
4058{
4059
4060 ;
4061 return 0;
4062}
4063_ACEOF
5213506e 4064if ac_fn_c_try_compile "$LINENO"; then :
953ff289
DN
4065 ac_cv_prog_cc_g=yes
4066else
5213506e
RW
4067 CFLAGS=""
4068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4069/* end confdefs.h. */
4070
4071int
4072main ()
4073{
4074
4075 ;
4076 return 0;
4077}
4078_ACEOF
4079if ac_fn_c_try_compile "$LINENO"; then :
4080
4081else
4082 ac_c_werror_flag=$ac_save_c_werror_flag
4083 CFLAGS="-g"
4084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4085/* end confdefs.h. */
4086
4087int
4088main ()
4089{
953ff289 4090
5213506e
RW
4091 ;
4092 return 0;
4093}
4094_ACEOF
4095if ac_fn_c_try_compile "$LINENO"; then :
4096 ac_cv_prog_cc_g=yes
953ff289 4097fi
5213506e 4098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
953ff289 4099fi
5213506e
RW
4100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4101fi
4102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4103 ac_c_werror_flag=$ac_save_c_werror_flag
4104fi
4105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4106$as_echo "$ac_cv_prog_cc_g" >&6; }
953ff289
DN
4107if test "$ac_test_CFLAGS" = set; then
4108 CFLAGS=$ac_save_CFLAGS
4109elif test $ac_cv_prog_cc_g = yes; then
4110 if test "$GCC" = yes; then
4111 CFLAGS="-g -O2"
4112 else
4113 CFLAGS="-g"
4114 fi
4115else
4116 if test "$GCC" = yes; then
4117 CFLAGS="-O2"
4118 else
4119 CFLAGS=
4120 fi
4121fi
5213506e
RW
4122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4123$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4124if test "${ac_cv_prog_cc_c89+set}" = set; then :
4125 $as_echo_n "(cached) " >&6
953ff289 4126else
5213506e 4127 ac_cv_prog_cc_c89=no
953ff289 4128ac_save_CC=$CC
5213506e 4129cat confdefs.h - <<_ACEOF >conftest.$ac_ext
953ff289
DN
4130/* end confdefs.h. */
4131#include <stdarg.h>
4132#include <stdio.h>
4133#include <sys/types.h>
4134#include <sys/stat.h>
4135/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4136struct buf { int x; };
4137FILE * (*rcsopen) (struct buf *, struct stat *, int);
4138static char *e (p, i)
4139 char **p;
4140 int i;
4141{
4142 return p[i];
4143}
4144static char *f (char * (*g) (char **, int), char **p, ...)
4145{
4146 char *s;
4147 va_list v;
4148 va_start (v,p);
4149 s = g (p, va_arg (v,int));
4150 va_end (v);
4151 return s;
4152}
4153
4154/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4155 function prototypes and stuff, but not '\xHH' hex character constants.
4156 These don't provoke an error unfortunately, instead are silently treated
5213506e 4157 as 'x'. The following induces an error, until -std is added to get
953ff289
DN
4158 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4159 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4160 that's true only with -std. */
953ff289
DN
4161int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4162
5213506e
RW
4163/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4164 inside strings and character constants. */
4165#define FOO(x) 'x'
4166int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4167
953ff289
DN
4168int test (int i, double x);
4169struct s1 {int (*f) (int a);};
4170struct s2 {int (*f) (double a);};
4171int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4172int argc;
4173char **argv;
4174int
4175main ()
4176{
4177return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4178 ;
4179 return 0;
4180}
4181_ACEOF
5213506e
RW
4182for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4183 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
953ff289
DN
4184do
4185 CC="$ac_save_CC $ac_arg"
5213506e
RW
4186 if ac_fn_c_try_compile "$LINENO"; then :
4187 ac_cv_prog_cc_c89=$ac_arg
953ff289 4188fi
5213506e
RW
4189rm -f core conftest.err conftest.$ac_objext
4190 test "x$ac_cv_prog_cc_c89" != "xno" && break
953ff289 4191done
5213506e 4192rm -f conftest.$ac_ext
953ff289
DN
4193CC=$ac_save_CC
4194
4195fi
5213506e
RW
4196# AC_CACHE_VAL
4197case "x$ac_cv_prog_cc_c89" in
4198 x)
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4200$as_echo "none needed" >&6; } ;;
4201 xno)
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4203$as_echo "unsupported" >&6; } ;;
953ff289 4204 *)
5213506e
RW
4205 CC="$CC $ac_cv_prog_cc_c89"
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4207$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
953ff289 4208esac
5213506e 4209if test "x$ac_cv_prog_cc_c89" != xno; then :
953ff289 4210
953ff289
DN
4211fi
4212
953ff289
DN
4213ac_ext=c
4214ac_cpp='$CPP $CPPFLAGS'
4215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4217ac_compiler_gnu=$ac_cv_c_compiler_gnu
4218DEPDIR="${am__leading_dot}deps"
4219
5213506e 4220ac_config_commands="$ac_config_commands depfiles"
953ff289
DN
4221
4222
4223am_make=${MAKE-make}
4224cat > confinc << 'END'
4225am__doit:
5213506e 4226 @echo this is the am__doit target
953ff289
DN
4227.PHONY: am__doit
4228END
4229# If we don't find an include directive, just comment out the code.
5213506e
RW
4230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4231$as_echo_n "checking for style of include used by $am_make... " >&6; }
953ff289
DN
4232am__include="#"
4233am__quote=
4234_am_result=none
4235# First try GNU make style include.
4236echo "include confinc" > confmf
5213506e
RW
4237# Ignore all kinds of additional output from `make'.
4238case `$am_make -s -f confmf 2> /dev/null` in #(
4239*the\ am__doit\ target*)
4240 am__include=include
4241 am__quote=
4242 _am_result=GNU
4243 ;;
4244esac
953ff289
DN
4245# Now try BSD make style include.
4246if test "$am__include" = "#"; then
4247 echo '.include "confinc"' > confmf
5213506e
RW
4248 case `$am_make -s -f confmf 2> /dev/null` in #(
4249 *the\ am__doit\ target*)
4250 am__include=.include
4251 am__quote="\""
4252 _am_result=BSD
4253 ;;
4254 esac
953ff289
DN
4255fi
4256
4257
5213506e
RW
4258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4259$as_echo "$_am_result" >&6; }
953ff289
DN
4260rm -f confinc confmf
4261
5213506e
RW
4262# Check whether --enable-dependency-tracking was given.
4263if test "${enable_dependency_tracking+set}" = set; then :
4264 enableval=$enable_dependency_tracking;
4265fi
953ff289 4266
953ff289
DN
4267if test "x$enable_dependency_tracking" != xno; then
4268 am_depcomp="$ac_aux_dir/depcomp"
4269 AMDEPBACKSLASH='\'
4270fi
5213506e 4271 if test "x$enable_dependency_tracking" != xno; then
953ff289
DN
4272 AMDEP_TRUE=
4273 AMDEP_FALSE='#'
4274else
4275 AMDEP_TRUE='#'
4276 AMDEP_FALSE=
4277fi
4278
4279
4280
953ff289
DN
4281depcc="$CC" am_compiler_list=
4282
5213506e
RW
4283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4284$as_echo_n "checking dependency style of $depcc... " >&6; }
4285if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4286 $as_echo_n "(cached) " >&6
953ff289
DN
4287else
4288 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4289 # We make a subdir and do the tests there. Otherwise we can end up
4290 # making bogus files that we don't know about and never remove. For
4291 # instance it was reported that on HP-UX the gcc test will end up
4292 # making a dummy file named `D' -- because `-MD' means `put the output
4293 # in D'.
4294 mkdir conftest.dir
4295 # Copy depcomp to subdir because otherwise we won't find it if we're
4296 # using a relative directory.
4297 cp "$am_depcomp" conftest.dir
4298 cd conftest.dir
4299 # We will build objects and dependencies in a subdirectory because
4300 # it helps to detect inapplicable dependency modes. For instance
4301 # both Tru64's cc and ICC support -MD to output dependencies as a
4302 # side effect of compilation, but ICC will put the dependencies in
4303 # the current directory while Tru64 will put them in the object
4304 # directory.
4305 mkdir sub
4306
4307 am_cv_CC_dependencies_compiler_type=none
4308 if test "$am_compiler_list" = ""; then
4309 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4310 fi
5213506e
RW
4311 am__universal=false
4312 case " $depcc " in #(
4313 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4314 esac
4315
953ff289
DN
4316 for depmode in $am_compiler_list; do
4317 # Setup a source with many dependencies, because some compilers
4318 # like to wrap large dependency lists on column 80 (with \), and
4319 # we should not choose a depcomp mode which is confused by this.
4320 #
4321 # We need to recreate these files for each test, as the compiler may
4322 # overwrite some of them when testing with obscure command lines.
4323 # This happens at least with the AIX C compiler.
4324 : > sub/conftest.c
4325 for i in 1 2 3 4 5 6; do
4326 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4327 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4328 # Solaris 8's {/usr,}/bin/sh.
4329 touch sub/conftst$i.h
4330 done
4331 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4332
5213506e
RW
4333 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4334 # mode. It turns out that the SunPro C++ compiler does not properly
4335 # handle `-M -o', and we need to detect this. Also, some Intel
4336 # versions had trouble with output in subdirs
4337 am__obj=sub/conftest.${OBJEXT-o}
4338 am__minus_obj="-o $am__obj"
953ff289 4339 case $depmode in
5213506e
RW
4340 gcc)
4341 # This depmode causes a compiler race in universal mode.
4342 test "$am__universal" = false || continue
4343 ;;
953ff289
DN
4344 nosideeffect)
4345 # after this tag, mechanisms are not by side-effect, so they'll
4346 # only be used when explicitly requested
4347 if test "x$enable_dependency_tracking" = xyes; then
4348 continue
4349 else
4350 break
4351 fi
4352 ;;
5213506e
RW
4353 msvisualcpp | msvcmsys)
4354 # This compiler won't grok `-c -o', but also, the minuso test has
4355 # not run yet. These depmodes are late enough in the game, and
4356 # so weak that their functioning should not be impacted.
4357 am__obj=conftest.${OBJEXT-o}
4358 am__minus_obj=
4359 ;;
953ff289
DN
4360 none) break ;;
4361 esac
953ff289 4362 if depmode=$depmode \
5213506e 4363 source=sub/conftest.c object=$am__obj \
953ff289 4364 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5213506e 4365 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
953ff289 4366 >/dev/null 2>conftest.err &&
5213506e 4367 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
953ff289 4368 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5213506e 4369 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
953ff289
DN
4370 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4371 # icc doesn't choke on unknown options, it will just issue warnings
4372 # or remarks (even with -Werror). So we grep stderr for any message
4373 # that says an option was ignored or not supported.
4374 # When given -MP, icc 7.0 and 7.1 complain thusly:
4375 # icc: Command line warning: ignoring option '-M'; no argument required
4376 # The diagnosis changed in icc 8.0:
4377 # icc: Command line remark: option '-MP' not supported
4378 if (grep 'ignoring option' conftest.err ||
4379 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4380 am_cv_CC_dependencies_compiler_type=$depmode
4381 break
4382 fi
4383 fi
4384 done
4385
4386 cd ..
4387 rm -rf conftest.dir
4388else
4389 am_cv_CC_dependencies_compiler_type=none
4390fi
4391
4392fi
5213506e
RW
4393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4394$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
953ff289
DN
4395CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4396
5213506e 4397 if
953ff289
DN
4398 test "x$enable_dependency_tracking" != xno \
4399 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4400 am__fastdepCC_TRUE=
4401 am__fastdepCC_FALSE='#'
4402else
4403 am__fastdepCC_TRUE='#'
4404 am__fastdepCC_FALSE=
4405fi
4406
4407
4408
4409
4410
4411
4412# In order to override CFLAGS_FOR_TARGET, all of our special flags go
4413# in XCFLAGS. But we need them in CFLAGS during configury. So put them
4414# in both places for now and restore CFLAGS at the end of config.
4415save_CFLAGS="$CFLAGS"
4416
4417# Add -Wall -Werror if we are using GCC.
4418if test "x$GCC" = "xyes"; then
4419 XCFLAGS="$XCFLAGS -Wall -Werror"
4420fi
4421
4422# Find other programs we need.
4423if test -n "$ac_tool_prefix"; then
4424 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4425set dummy ${ac_tool_prefix}ar; ac_word=$2
5213506e
RW
4426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4427$as_echo_n "checking for $ac_word... " >&6; }
4428if test "${ac_cv_prog_AR+set}" = set; then :
4429 $as_echo_n "(cached) " >&6
953ff289
DN
4430else
4431 if test -n "$AR"; then
4432 ac_cv_prog_AR="$AR" # Let the user override the test.
4433else
4434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4435for as_dir in $PATH
4436do
4437 IFS=$as_save_IFS
4438 test -z "$as_dir" && as_dir=.
5213506e
RW
4439 for ac_exec_ext in '' $ac_executable_extensions; do
4440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
953ff289 4441 ac_cv_prog_AR="${ac_tool_prefix}ar"
5213506e 4442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
953ff289
DN
4443 break 2
4444 fi
4445done
5213506e
RW
4446 done
4447IFS=$as_save_IFS
953ff289
DN
4448
4449fi
4450fi
4451AR=$ac_cv_prog_AR
4452if test -n "$AR"; then
5213506e
RW
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4454$as_echo "$AR" >&6; }
953ff289 4455else
5213506e
RW
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4457$as_echo "no" >&6; }
953ff289
DN
4458fi
4459
5213506e 4460
953ff289
DN
4461fi
4462if test -z "$ac_cv_prog_AR"; then
4463 ac_ct_AR=$AR
4464 # Extract the first word of "ar", so it can be a program name with args.
4465set dummy ar; ac_word=$2
5213506e
RW
4466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4467$as_echo_n "checking for $ac_word... " >&6; }
4468if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4469 $as_echo_n "(cached) " >&6
953ff289
DN
4470else
4471 if test -n "$ac_ct_AR"; then
4472 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4473else
4474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4475for as_dir in $PATH
4476do
4477 IFS=$as_save_IFS
4478 test -z "$as_dir" && as_dir=.
5213506e
RW
4479 for ac_exec_ext in '' $ac_executable_extensions; do
4480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
953ff289 4481 ac_cv_prog_ac_ct_AR="ar"
5213506e 4482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
953ff289
DN
4483 break 2
4484 fi
4485done
5213506e
RW
4486 done
4487IFS=$as_save_IFS
953ff289
DN
4488
4489fi
4490fi
4491ac_ct_AR=$ac_cv_prog_ac_ct_AR
4492if test -n "$ac_ct_AR"; then
5213506e
RW
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4494$as_echo "$ac_ct_AR" >&6; }
953ff289 4495else
5213506e
RW
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4497$as_echo "no" >&6; }
953ff289
DN
4498fi
4499
5213506e
RW
4500 if test "x$ac_ct_AR" = x; then
4501 AR=""
4502 else
4503 case $cross_compiling:$ac_tool_warned in
4504yes:)
4505{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4506$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4507ac_tool_warned=yes ;;
4508esac
4509 AR=$ac_ct_AR
4510 fi
953ff289
DN
4511else
4512 AR="$ac_cv_prog_AR"
4513fi
4514
4515if test -n "$ac_tool_prefix"; then
4516 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4517set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5213506e
RW
4518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4519$as_echo_n "checking for $ac_word... " >&6; }
4520if test "${ac_cv_prog_RANLIB+set}" = set; then :
4521 $as_echo_n "(cached) " >&6
953ff289
DN
4522else
4523 if test -n "$RANLIB"; then
4524 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4525else
4526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4527for as_dir in $PATH
4528do
4529 IFS=$as_save_IFS
4530 test -z "$as_dir" && as_dir=.
5213506e
RW
4531 for ac_exec_ext in '' $ac_executable_extensions; do
4532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
953ff289 4533 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5213506e 4534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
953ff289
DN
4535 break 2
4536 fi
4537done
5213506e
RW
4538 done
4539IFS=$as_save_IFS
953ff289
DN
4540
4541fi
4542fi
4543RANLIB=$ac_cv_prog_RANLIB
4544if test -n "$RANLIB"; then
5213506e
RW
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4546$as_echo "$RANLIB" >&6; }
953ff289 4547else
5213506e
RW
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4549$as_echo "no" >&6; }
953ff289
DN
4550fi
4551
5213506e 4552
953ff289
DN
4553fi
4554if test -z "$ac_cv_prog_RANLIB"; then
4555 ac_ct_RANLIB=$RANLIB
4556 # Extract the first word of "ranlib", so it can be a program name with args.
4557set dummy ranlib; ac_word=$2
5213506e
RW
4558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4559$as_echo_n "checking for $ac_word... " >&6; }
4560if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4561 $as_echo_n "(cached) " >&6
953ff289
DN
4562else
4563 if test -n "$ac_ct_RANLIB"; then
4564 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4565else
4566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4567for as_dir in $PATH
4568do
4569 IFS=$as_save_IFS
4570 test -z "$as_dir" && as_dir=.
5213506e
RW
4571 for ac_exec_ext in '' $ac_executable_extensions; do
4572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
953ff289 4573 ac_cv_prog_ac_ct_RANLIB="ranlib"
5213506e 4574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
953ff289
DN
4575 break 2
4576 fi
4577done
5213506e
RW
4578 done
4579IFS=$as_save_IFS
953ff289 4580
953ff289
DN
4581fi
4582fi
4583ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4584if test -n "$ac_ct_RANLIB"; then
5213506e
RW
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4586$as_echo "$ac_ct_RANLIB" >&6; }
953ff289 4587else
5213506e
RW
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4589$as_echo "no" >&6; }
953ff289
DN
4590fi
4591
5213506e
RW
4592 if test "x$ac_ct_RANLIB" = x; then
4593 RANLIB="ranlib-not-found-in-path-error"
4594 else
4595 case $cross_compiling:$ac_tool_warned in
4596yes:)
4597{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4598$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4599ac_tool_warned=yes ;;
4600esac
4601 RANLIB=$ac_ct_RANLIB
4602 fi
953ff289
DN
4603else
4604 RANLIB="$ac_cv_prog_RANLIB"
4605fi
4606
4607# Extract the first word of "perl", so it can be a program name with args.
4608set dummy perl; ac_word=$2
5213506e
RW
4609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4610$as_echo_n "checking for $ac_word... " >&6; }
4611if test "${ac_cv_path_PERL+set}" = set; then :
4612 $as_echo_n "(cached) " >&6
953ff289
DN
4613else
4614 case $PERL in
4615 [\\/]* | ?:[\\/]*)
4616 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4617 ;;
4618 *)
4619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4620for as_dir in $PATH
4621do
4622 IFS=$as_save_IFS
4623 test -z "$as_dir" && as_dir=.
5213506e
RW
4624 for ac_exec_ext in '' $ac_executable_extensions; do
4625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
953ff289 4626 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5213506e 4627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
953ff289
DN
4628 break 2
4629 fi
4630done
5213506e
RW
4631 done
4632IFS=$as_save_IFS
953ff289
DN
4633
4634 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
4635 ;;
4636esac
4637fi
4638PERL=$ac_cv_path_PERL
953ff289 4639if test -n "$PERL"; then
5213506e
RW
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4641$as_echo "$PERL" >&6; }
953ff289 4642else
5213506e
RW
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4644$as_echo "no" >&6; }
953ff289
DN
4645fi
4646
5213506e
RW
4647
4648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4649$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4650set x ${MAKE-make}
4651ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4652if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4653 $as_echo_n "(cached) " >&6
953ff289
DN
4654else
4655 cat >conftest.make <<\_ACEOF
5213506e 4656SHELL = /bin/sh
953ff289 4657all:
5213506e 4658 @echo '@@@%%%=$(MAKE)=@@@%%%'
953ff289
DN
4659_ACEOF
4660# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5213506e
RW
4661case `${MAKE-make} -f conftest.make 2>/dev/null` in
4662 *@@@%%%=?*=@@@%%%*)
4663 eval ac_cv_prog_make_${ac_make}_set=yes;;
4664 *)
4665 eval ac_cv_prog_make_${ac_make}_set=no;;
4666esac
953ff289
DN
4667rm -f conftest.make
4668fi
5213506e
RW
4669if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4671$as_echo "yes" >&6; }
953ff289
DN
4672 SET_MAKE=
4673else
5213506e
RW
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4675$as_echo "no" >&6; }
953ff289
DN
4676 SET_MAKE="MAKE=${MAKE-make}"
4677fi
4678
953ff289
DN
4679
4680
748b9d7c
DF
4681# See if makeinfo has been installed and is modern enough
4682# that we can use it.
4683
4684 # Extract the first word of "makeinfo", so it can be a program name with args.
4685set dummy makeinfo; ac_word=$2
5213506e
RW
4686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4687$as_echo_n "checking for $ac_word... " >&6; }
4688if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
4689 $as_echo_n "(cached) " >&6
748b9d7c
DF
4690else
4691 if test -n "$MAKEINFO"; then
4692 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4693else
4694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695for as_dir in $PATH
4696do
4697 IFS=$as_save_IFS
4698 test -z "$as_dir" && as_dir=.
5213506e
RW
4699 for ac_exec_ext in '' $ac_executable_extensions; do
4700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
748b9d7c 4701 ac_cv_prog_MAKEINFO="makeinfo"
5213506e 4702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
748b9d7c
DF
4703 break 2
4704 fi
4705done
5213506e
RW
4706 done
4707IFS=$as_save_IFS
748b9d7c
DF
4708
4709fi
4710fi
4711MAKEINFO=$ac_cv_prog_MAKEINFO
4712if test -n "$MAKEINFO"; then
5213506e
RW
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4714$as_echo "$MAKEINFO" >&6; }
748b9d7c 4715else
5213506e
RW
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4717$as_echo "no" >&6; }
748b9d7c
DF
4718fi
4719
5213506e 4720
748b9d7c
DF
4721 if test -n "$MAKEINFO"; then
4722 # Found it, now check the version.
5213506e
RW
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
4724$as_echo_n "checking for modern makeinfo... " >&6; }
4725if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
4726 $as_echo_n "(cached) " >&6
748b9d7c
DF
4727else
4728 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
4729 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4730
4731 case $ac_prog_version in
4732 '') gcc_cv_prog_makeinfo_modern=no;;
a7415017 4733 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
748b9d7c
DF
4734 *) gcc_cv_prog_makeinfo_modern=no;;
4735 esac
4736
4737fi
5213506e
RW
4738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
4739$as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
748b9d7c
DF
4740 else
4741 gcc_cv_prog_makeinfo_modern=no
4742 fi
1cf3d07d
SE
4743 if test $gcc_cv_prog_makeinfo_modern = no; then
4744 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
4745 fi
748b9d7c 4746
5213506e 4747 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
748b9d7c
DF
4748 BUILD_INFO_TRUE=
4749 BUILD_INFO_FALSE='#'
4750else
4751 BUILD_INFO_TRUE='#'
4752 BUILD_INFO_FALSE=
4753fi
4754
4755
4756
953ff289 4757# Configure libtool
6b4a97ed
PG
4758case `pwd` in
4759 *\ * | *\ *)
5213506e
RW
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4761$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6b4a97ed 4762esac
1cf3d07d
SE
4763
4764
1cf3d07d 4765
6b4a97ed
PG
4766macro_version='2.2.6'
4767macro_revision='1.3012'
1cf3d07d
SE
4768
4769
4770
4771
4772
4773
953ff289 4774
1cf3d07d
SE
4775
4776
4777
4778
4779
4780
6b4a97ed 4781ltmain="$ac_aux_dir/ltmain.sh"
1cf3d07d 4782
5213506e
RW
4783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4784$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4785if test "${ac_cv_path_SED+set}" = set; then :
4786 $as_echo_n "(cached) " >&6
4787else
4788 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4789 for ac_i in 1 2 3 4 5 6 7; do
4790 ac_script="$ac_script$as_nl$ac_script"
4791 done
4792 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4793 { ac_script=; unset ac_script;}
4794 if test -z "$SED"; then
4795 ac_path_SED_found=false
4796 # Loop through the user's path and test for each of PROGNAME-LIST
4797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1cf3d07d
SE
4798for as_dir in $PATH
4799do
4800 IFS=$as_save_IFS
4801 test -z "$as_dir" && as_dir=.
5213506e 4802 for ac_prog in sed gsed; do
1cf3d07d 4803 for ac_exec_ext in '' $ac_executable_extensions; do
5213506e
RW
4804 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4805 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4806# Check for GNU ac_path_SED and select it if it is found.
4807 # Check for GNU $ac_path_SED
4808case `"$ac_path_SED" --version 2>&1` in
4809*GNU*)
4810 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4811*)
4812 ac_count=0
4813 $as_echo_n 0123456789 >"conftest.in"
4814 while :
4815 do
4816 cat "conftest.in" "conftest.in" >"conftest.tmp"
4817 mv "conftest.tmp" "conftest.in"
4818 cp "conftest.in" "conftest.nl"
4819 $as_echo '' >> "conftest.nl"
4820 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4821 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4822 as_fn_arith $ac_count + 1 && ac_count=$as_val
4823 if test $ac_count -gt ${ac_path_SED_max-0}; then
4824 # Best one so far, save it but keep looking for a better one
4825 ac_cv_path_SED="$ac_path_SED"
4826 ac_path_SED_max=$ac_count
4827 fi
4828 # 10*(2^10) chars as input seems more than enough
4829 test $ac_count -gt 10 && break
4830 done
4831 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4832esac
4833
4834 $ac_path_SED_found && break 3
1cf3d07d
SE
4835 done
4836 done
5213506e 4837 done
1cf3d07d 4838IFS=$as_save_IFS
5213506e
RW
4839 if test -z "$ac_cv_path_SED"; then
4840 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
1cf3d07d 4841 fi
5213506e
RW
4842else
4843 ac_cv_path_SED=$SED
1cf3d07d
SE
4844fi
4845
5213506e
RW
4846fi
4847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4848$as_echo "$ac_cv_path_SED" >&6; }
4849 SED="$ac_cv_path_SED"
4850 rm -f conftest.sed
1cf3d07d
SE
4851
4852test -z "$SED" && SED=sed
4853Xsed="$SED -e 1s/^X//"
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
5213506e
RW
4865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4866$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4867if test "${ac_cv_path_GREP+set}" = set; then :
4868 $as_echo_n "(cached) " >&6
4869else
4870 if test -z "$GREP"; then
4871 ac_path_GREP_found=false
4872 # Loop through the user's path and test for each of PROGNAME-LIST
4873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4875do
4876 IFS=$as_save_IFS
4877 test -z "$as_dir" && as_dir=.
4878 for ac_prog in grep ggrep; do
4879 for ac_exec_ext in '' $ac_executable_extensions; do
4880 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4881 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4882# Check for GNU ac_path_GREP and select it if it is found.
4883 # Check for GNU $ac_path_GREP
4884case `"$ac_path_GREP" --version 2>&1` in
4885*GNU*)
4886 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4887*)
4888 ac_count=0
4889 $as_echo_n 0123456789 >"conftest.in"
4890 while :
4891 do
4892 cat "conftest.in" "conftest.in" >"conftest.tmp"
4893 mv "conftest.tmp" "conftest.in"
4894 cp "conftest.in" "conftest.nl"
4895 $as_echo 'GREP' >> "conftest.nl"
4896 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4897 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4898 as_fn_arith $ac_count + 1 && ac_count=$as_val
4899 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4900 # Best one so far, save it but keep looking for a better one
4901 ac_cv_path_GREP="$ac_path_GREP"
4902 ac_path_GREP_max=$ac_count
4903 fi
4904 # 10*(2^10) chars as input seems more than enough
4905 test $ac_count -gt 10 && break
4906 done
4907 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4908esac
4909
4910 $ac_path_GREP_found && break 3
4911 done
4912 done
4913 done
4914IFS=$as_save_IFS
4915 if test -z "$ac_cv_path_GREP"; then
4916 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4917 fi
4918else
4919 ac_cv_path_GREP=$GREP
4920fi
4921
4922fi
4923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4924$as_echo "$ac_cv_path_GREP" >&6; }
4925 GREP="$ac_cv_path_GREP"
4926
4927
4928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4929$as_echo_n "checking for egrep... " >&6; }
4930if test "${ac_cv_path_EGREP+set}" = set; then :
4931 $as_echo_n "(cached) " >&6
1cf3d07d 4932else
5213506e
RW
4933 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4934 then ac_cv_path_EGREP="$GREP -E"
4935 else
4936 if test -z "$EGREP"; then
4937 ac_path_EGREP_found=false
4938 # Loop through the user's path and test for each of PROGNAME-LIST
4939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4940for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4941do
4942 IFS=$as_save_IFS
4943 test -z "$as_dir" && as_dir=.
4944 for ac_prog in egrep; do
4945 for ac_exec_ext in '' $ac_executable_extensions; do
4946 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4947 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4948# Check for GNU ac_path_EGREP and select it if it is found.
4949 # Check for GNU $ac_path_EGREP
4950case `"$ac_path_EGREP" --version 2>&1` in
4951*GNU*)
4952 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4953*)
4954 ac_count=0
4955 $as_echo_n 0123456789 >"conftest.in"
4956 while :
4957 do
4958 cat "conftest.in" "conftest.in" >"conftest.tmp"
4959 mv "conftest.tmp" "conftest.in"
4960 cp "conftest.in" "conftest.nl"
4961 $as_echo 'EGREP' >> "conftest.nl"
4962 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4963 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4964 as_fn_arith $ac_count + 1 && ac_count=$as_val
4965 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4966 # Best one so far, save it but keep looking for a better one
4967 ac_cv_path_EGREP="$ac_path_EGREP"
4968 ac_path_EGREP_max=$ac_count
1cf3d07d 4969 fi
5213506e
RW
4970 # 10*(2^10) chars as input seems more than enough
4971 test $ac_count -gt 10 && break
4972 done
4973 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4974esac
4975
4976 $ac_path_EGREP_found && break 3
4977 done
4978 done
4979 done
4980IFS=$as_save_IFS
4981 if test -z "$ac_cv_path_EGREP"; then
4982 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4983 fi
4984else
4985 ac_cv_path_EGREP=$EGREP
4986fi
4987
4988 fi
1cf3d07d 4989fi
5213506e
RW
4990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4991$as_echo "$ac_cv_path_EGREP" >&6; }
4992 EGREP="$ac_cv_path_EGREP"
1cf3d07d
SE
4993
4994
5213506e
RW
4995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4996$as_echo_n "checking for fgrep... " >&6; }
4997if test "${ac_cv_path_FGREP+set}" = set; then :
4998 $as_echo_n "(cached) " >&6
1cf3d07d 4999else
5213506e
RW
5000 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5001 then ac_cv_path_FGREP="$GREP -F"
5002 else
5003 if test -z "$FGREP"; then
5004 ac_path_FGREP_found=false
5005 # Loop through the user's path and test for each of PROGNAME-LIST
5006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5007for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5008do
5009 IFS=$as_save_IFS
5010 test -z "$as_dir" && as_dir=.
5011 for ac_prog in fgrep; do
5012 for ac_exec_ext in '' $ac_executable_extensions; do
5013 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5014 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5015# Check for GNU ac_path_FGREP and select it if it is found.
5016 # Check for GNU $ac_path_FGREP
5017case `"$ac_path_FGREP" --version 2>&1` in
5018*GNU*)
5019 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5020*)
5021 ac_count=0
5022 $as_echo_n 0123456789 >"conftest.in"
5023 while :
5024 do
5025 cat "conftest.in" "conftest.in" >"conftest.tmp"
5026 mv "conftest.tmp" "conftest.in"
5027 cp "conftest.in" "conftest.nl"
5028 $as_echo 'FGREP' >> "conftest.nl"
5029 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5030 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5031 as_fn_arith $ac_count + 1 && ac_count=$as_val
5032 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5033 # Best one so far, save it but keep looking for a better one
5034 ac_cv_path_FGREP="$ac_path_FGREP"
5035 ac_path_FGREP_max=$ac_count
1cf3d07d 5036 fi
5213506e
RW
5037 # 10*(2^10) chars as input seems more than enough
5038 test $ac_count -gt 10 && break
5039 done
5040 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5041esac
5042
5043 $ac_path_FGREP_found && break 3
5044 done
5045 done
5046 done
5047IFS=$as_save_IFS
5048 if test -z "$ac_cv_path_FGREP"; then
5049 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5050 fi
5051else
5052 ac_cv_path_FGREP=$FGREP
5053fi
5054
5055 fi
1cf3d07d 5056fi
5213506e
RW
5057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5058$as_echo "$ac_cv_path_FGREP" >&6; }
5059 FGREP="$ac_cv_path_FGREP"
1cf3d07d
SE
5060
5061
5062test -z "$GREP" && GREP=grep
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5213506e
RW
5082# Check whether --with-gnu-ld was given.
5083if test "${with_gnu_ld+set}" = set; then :
5084 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
953ff289
DN
5085else
5086 with_gnu_ld=no
5213506e
RW
5087fi
5088
953ff289
DN
5089ac_prog=ld
5090if test "$GCC" = yes; then
5091 # Check if gcc -print-prog-name=ld gives a path.
5213506e
RW
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5093$as_echo_n "checking for ld used by $CC... " >&6; }
953ff289
DN
5094 case $host in
5095 *-*-mingw*)
5096 # gcc leaves a trailing carriage return which upsets mingw
5097 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5098 *)
5099 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5100 esac
5101 case $ac_prog in
5102 # Accept absolute paths.
1cf3d07d 5103 [\\/]* | ?:[\\/]*)
953ff289 5104 re_direlt='/[^/][^/]*/\.\./'
1cf3d07d
SE
5105 # Canonicalize the pathname of ld
5106 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5107 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5108 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
953ff289
DN
5109 done
5110 test -z "$LD" && LD="$ac_prog"
5111 ;;
5112 "")
5113 # If it fails, then pretend we aren't using GCC.
5114 ac_prog=ld
5115 ;;
5116 *)
5117 # If it is relative, then search for the first ld in PATH.
5118 with_gnu_ld=unknown
5119 ;;
5120 esac
5121elif test "$with_gnu_ld" = yes; then
5213506e
RW
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5123$as_echo_n "checking for GNU ld... " >&6; }
953ff289 5124else
5213506e
RW
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5126$as_echo_n "checking for non-GNU ld... " >&6; }
953ff289 5127fi
5213506e
RW
5128if test "${lt_cv_path_LD+set}" = set; then :
5129 $as_echo_n "(cached) " >&6
953ff289
DN
5130else
5131 if test -z "$LD"; then
1cf3d07d 5132 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
953ff289 5133 for ac_dir in $PATH; do
1cf3d07d 5134 IFS="$lt_save_ifs"
953ff289
DN
5135 test -z "$ac_dir" && ac_dir=.
5136 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5137 lt_cv_path_LD="$ac_dir/$ac_prog"
5138 # Check to see if the program is GNU ld. I'd rather use --version,
1cf3d07d 5139 # but apparently some variants of GNU ld only accept -v.
953ff289 5140 # Break only if it was the GNU/non-GNU ld that we prefer.
1cf3d07d
SE
5141 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5142 *GNU* | *'with BFD'*)
953ff289 5143 test "$with_gnu_ld" != no && break
1cf3d07d
SE
5144 ;;
5145 *)
953ff289 5146 test "$with_gnu_ld" != yes && break
1cf3d07d
SE
5147 ;;
5148 esac
953ff289
DN
5149 fi
5150 done
1cf3d07d 5151 IFS="$lt_save_ifs"
953ff289
DN
5152else
5153 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5154fi
5155fi
5156
5157LD="$lt_cv_path_LD"
5158if test -n "$LD"; then
5213506e
RW
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5160$as_echo "$LD" >&6; }
953ff289 5161else
5213506e
RW
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5163$as_echo "no" >&6; }
953ff289 5164fi
5213506e
RW
5165test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5167$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5168if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5169 $as_echo_n "(cached) " >&6
953ff289 5170else
1cf3d07d
SE
5171 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5172case `$LD -v 2>&1 </dev/null` in
5173*GNU* | *'with BFD'*)
953ff289 5174 lt_cv_prog_gnu_ld=yes
1cf3d07d
SE
5175 ;;
5176*)
953ff289 5177 lt_cv_prog_gnu_ld=no
1cf3d07d
SE
5178 ;;
5179esac
953ff289 5180fi
5213506e
RW
5181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5182$as_echo "$lt_cv_prog_gnu_ld" >&6; }
953ff289
DN
5183with_gnu_ld=$lt_cv_prog_gnu_ld
5184
5185
953ff289 5186
1cf3d07d
SE
5187
5188
5189
5190
5191
5192
5213506e
RW
5193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5194$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5195if test "${lt_cv_path_NM+set}" = set; then :
5196 $as_echo_n "(cached) " >&6
953ff289
DN
5197else
5198 if test -n "$NM"; then
5199 # Let the user override the test.
5200 lt_cv_path_NM="$NM"
5201else
1cf3d07d
SE
5202 lt_nm_to_check="${ac_tool_prefix}nm"
5203 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5204 lt_nm_to_check="$lt_nm_to_check nm"
5205 fi
5206 for lt_tmp_nm in $lt_nm_to_check; do
5207 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5208 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5209 IFS="$lt_save_ifs"
5210 test -z "$ac_dir" && ac_dir=.
5211 tmp_nm="$ac_dir/$lt_tmp_nm"
5212 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5213 # Check to see if the nm accepts a BSD-compat flag.
5214 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5215 # nm: unknown option "B" ignored
5216 # Tru64's nm complains that /dev/null is an invalid object file
5217 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5218 */dev/null* | *'Invalid file or object type'*)
5219 lt_cv_path_NM="$tmp_nm -B"
5220 break
5221 ;;
5222 *)
5223 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5224 */dev/null*)
5225 lt_cv_path_NM="$tmp_nm -p"
5226 break
5227 ;;
5228 *)
5229 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5230 continue # so that we can try to find one that supports BSD flags
5231 ;;
5232 esac
5233 ;;
5234 esac
5235 fi
5236 done
5237 IFS="$lt_save_ifs"
5238 done
5239 : ${lt_cv_path_NM=no}
5240fi
5241fi
5213506e
RW
5242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5243$as_echo "$lt_cv_path_NM" >&6; }
1cf3d07d
SE
5244if test "$lt_cv_path_NM" != "no"; then
5245 NM="$lt_cv_path_NM"
5246else
5247 # Didn't find any BSD compatible name lister, look for dumpbin.
5248 if test -n "$ac_tool_prefix"; then
5249 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5250 do
5251 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5252set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
5253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5254$as_echo_n "checking for $ac_word... " >&6; }
5255if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5256 $as_echo_n "(cached) " >&6
1cf3d07d
SE
5257else
5258 if test -n "$DUMPBIN"; then
5259 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5260else
5261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5262for as_dir in $PATH
5263do
5264 IFS=$as_save_IFS
5265 test -z "$as_dir" && as_dir=.
5213506e
RW
5266 for ac_exec_ext in '' $ac_executable_extensions; do
5267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 5268 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5213506e 5269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
5270 break 2
5271 fi
5272done
5213506e
RW
5273 done
5274IFS=$as_save_IFS
1cf3d07d
SE
5275
5276fi
5277fi
5278DUMPBIN=$ac_cv_prog_DUMPBIN
5279if test -n "$DUMPBIN"; then
5213506e
RW
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5281$as_echo "$DUMPBIN" >&6; }
1cf3d07d 5282else
5213506e
RW
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5284$as_echo "no" >&6; }
1cf3d07d
SE
5285fi
5286
5213506e 5287
1cf3d07d
SE
5288 test -n "$DUMPBIN" && break
5289 done
5290fi
5291if test -z "$DUMPBIN"; then
5292 ac_ct_DUMPBIN=$DUMPBIN
5293 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5294do
5295 # Extract the first word of "$ac_prog", so it can be a program name with args.
5296set dummy $ac_prog; ac_word=$2
5213506e
RW
5297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5298$as_echo_n "checking for $ac_word... " >&6; }
5299if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5300 $as_echo_n "(cached) " >&6
1cf3d07d
SE
5301else
5302 if test -n "$ac_ct_DUMPBIN"; then
5303 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5304else
5305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5306for as_dir in $PATH
5307do
5308 IFS=$as_save_IFS
5309 test -z "$as_dir" && as_dir=.
5213506e
RW
5310 for ac_exec_ext in '' $ac_executable_extensions; do
5311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 5312 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5213506e 5313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
5314 break 2
5315 fi
5316done
5213506e
RW
5317 done
5318IFS=$as_save_IFS
1cf3d07d
SE
5319
5320fi
953ff289 5321fi
1cf3d07d
SE
5322ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5323if test -n "$ac_ct_DUMPBIN"; then
5213506e
RW
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5325$as_echo "$ac_ct_DUMPBIN" >&6; }
1cf3d07d 5326else
5213506e
RW
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5328$as_echo "no" >&6; }
1cf3d07d
SE
5329fi
5330
5213506e 5331
1cf3d07d
SE
5332 test -n "$ac_ct_DUMPBIN" && break
5333done
1cf3d07d 5334
5213506e
RW
5335 if test "x$ac_ct_DUMPBIN" = x; then
5336 DUMPBIN=":"
5337 else
5338 case $cross_compiling:$ac_tool_warned in
5339yes:)
5340{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5341$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5342ac_tool_warned=yes ;;
5343esac
5344 DUMPBIN=$ac_ct_DUMPBIN
5345 fi
1cf3d07d
SE
5346fi
5347
5348
5349 if test "$DUMPBIN" != ":"; then
5350 NM="$DUMPBIN"
5351 fi
953ff289 5352fi
1cf3d07d
SE
5353test -z "$NM" && NM=nm
5354
5355
5356
5357
5358
953ff289 5359
5213506e
RW
5360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5361$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5362if test "${lt_cv_nm_interface+set}" = set; then :
5363 $as_echo_n "(cached) " >&6
1cf3d07d
SE
5364else
5365 lt_cv_nm_interface="BSD nm"
5366 echo "int some_variable = 0;" > conftest.$ac_ext
5213506e 5367 (eval echo "\"\$as_me:5367: $ac_compile\"" >&5)
1cf3d07d
SE
5368 (eval "$ac_compile" 2>conftest.err)
5369 cat conftest.err >&5
5213506e 5370 (eval echo "\"\$as_me:5370: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
1cf3d07d
SE
5371 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5372 cat conftest.err >&5
5213506e 5373 (eval echo "\"\$as_me:5373: output\"" >&5)
1cf3d07d
SE
5374 cat conftest.out >&5
5375 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5376 lt_cv_nm_interface="MS dumpbin"
5377 fi
5378 rm -f conftest*
5379fi
5213506e
RW
5380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5381$as_echo "$lt_cv_nm_interface" >&6; }
953ff289 5382
5213506e
RW
5383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5384$as_echo_n "checking whether ln -s works... " >&6; }
953ff289
DN
5385LN_S=$as_ln_s
5386if test "$LN_S" = "ln -s"; then
5213506e
RW
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5388$as_echo "yes" >&6; }
953ff289 5389else
5213506e
RW
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5391$as_echo "no, using $LN_S" >&6; }
953ff289
DN
5392fi
5393
1cf3d07d 5394# find the maximum length of command line arguments
5213506e
RW
5395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5396$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5397if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5398 $as_echo_n "(cached) " >&6
1cf3d07d
SE
5399else
5400 i=0
5401 teststring="ABCD"
5402
5403 case $build_os in
5404 msdosdjgpp*)
5405 # On DJGPP, this test can blow up pretty badly due to problems in libc
5406 # (any single argument exceeding 2000 bytes causes a buffer overrun
5407 # during glob expansion). Even if it were fixed, the result of this
5408 # check would be larger than it should be.
5409 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5410 ;;
5411
5412 gnu*)
5413 # Under GNU Hurd, this test is not required because there is
5414 # no limit to the length of command line arguments.
5415 # Libtool will interpret -1 as no limit whatsoever
5416 lt_cv_sys_max_cmd_len=-1;
5417 ;;
5418
6b4a97ed 5419 cygwin* | mingw* | cegcc*)
1cf3d07d
SE
5420 # On Win9x/ME, this test blows up -- it succeeds, but takes
5421 # about 5 minutes as the teststring grows exponentially.
5422 # Worse, since 9x/ME are not pre-emptively multitasking,
5423 # you end up with a "frozen" computer, even though with patience
5424 # the test eventually succeeds (with a max line length of 256k).
5425 # Instead, let's just punt: use the minimum linelength reported by
5426 # all of the supported platforms: 8192 (on NT/2K/XP).
5427 lt_cv_sys_max_cmd_len=8192;
5428 ;;
5429
5430 amigaos*)
5431 # On AmigaOS with pdksh, this test takes hours, literally.
5432 # So we just punt and use a minimum line length of 8192.
5433 lt_cv_sys_max_cmd_len=8192;
5434 ;;
5435
5436 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5437 # This has been around since 386BSD, at least. Likely further.
5438 if test -x /sbin/sysctl; then
5439 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5440 elif test -x /usr/sbin/sysctl; then
5441 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5442 else
5443 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5444 fi
5445 # And add a safety zone
5446 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5447 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5448 ;;
5449
5450 interix*)
5451 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5452 lt_cv_sys_max_cmd_len=196608
5453 ;;
5454
5455 osf*)
5456 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5457 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5458 # nice to cause kernel panics so lets avoid the loop below.
5459 # First set a reasonable default.
5460 lt_cv_sys_max_cmd_len=16384
5461 #
5462 if test -x /sbin/sysconfig; then
5463 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5464 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5465 esac
5466 fi
5467 ;;
5468 sco3.2v5*)
5469 lt_cv_sys_max_cmd_len=102400
5470 ;;
5471 sysv5* | sco5v6* | sysv4.2uw2*)
5472 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5473 if test -n "$kargmax"; then
5474 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5475 else
5476 lt_cv_sys_max_cmd_len=32768
5477 fi
5478 ;;
5479 *)
6b4a97ed
PG
5480 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5481 if test -n "$lt_cv_sys_max_cmd_len"; then
82a6cadf
PB
5482 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5483 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5484 else
5485 # Make teststring a little bigger before we do anything with it.
5486 # a 1K string should be a reasonable start.
5487 for i in 1 2 3 4 5 6 7 8 ; do
5488 teststring=$teststring$teststring
5489 done
5490 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5491 # If test is not a shell built-in, we'll probably end up computing a
5492 # maximum length that is only half of the actual maximum length, but
5493 # we can't tell.
5494 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5495 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5496 test $i != 17 # 1/2 MB should be enough
5497 do
5498 i=`expr $i + 1`
5499 teststring=$teststring$teststring
5500 done
5501 # Only check the string length outside the loop.
5502 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5503 teststring=
5504 # Add a significant safety factor because C++ compilers can tack on
5505 # massive amounts of additional arguments before passing them to the
5506 # linker. It appears as though 1/2 is a usable value.
5507 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5508 fi
1cf3d07d
SE
5509 ;;
5510 esac
5511
5512fi
5513
5514if test -n $lt_cv_sys_max_cmd_len ; then
5213506e
RW
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5516$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
1cf3d07d 5517else
5213506e
RW
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5519$as_echo "none" >&6; }
1cf3d07d
SE
5520fi
5521max_cmd_len=$lt_cv_sys_max_cmd_len
5522
5523
5524
5525
5526
5527
1cf3d07d
SE
5528: ${CP="cp -f"}
5529: ${MV="mv -f"}
5530: ${RM="rm -f"}
5531
5213506e
RW
5532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5533$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
1cf3d07d
SE
5534# Try some XSI features
5535xsi_shell=no
5536( _lt_dummy="a/b/c"
5537 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6b4a97ed
PG
5538 = c,a/b,, \
5539 && eval 'test $(( 1 + 1 )) -eq 2 \
5540 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
1cf3d07d 5541 && xsi_shell=yes
5213506e
RW
5542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5543$as_echo "$xsi_shell" >&6; }
1cf3d07d
SE
5544
5545
5213506e
RW
5546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5547$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
1cf3d07d
SE
5548lt_shell_append=no
5549( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5550 >/dev/null 2>&1 \
5551 && lt_shell_append=yes
5213506e
RW
5552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5553$as_echo "$lt_shell_append" >&6; }
1cf3d07d
SE
5554
5555
5556if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5557 lt_unset=unset
5558else
5559 lt_unset=false
5560fi
5561
5562
5563
5564
5565
5566# test EBCDIC or ASCII
5567case `echo X|tr X '\101'` in
5568 A) # ASCII based system
5569 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5570 lt_SP2NL='tr \040 \012'
5571 lt_NL2SP='tr \015\012 \040\040'
5572 ;;
5573 *) # EBCDIC based system
5574 lt_SP2NL='tr \100 \n'
5575 lt_NL2SP='tr \r\n \100\100'
5576 ;;
5577esac
5578
5579
5580
5581
5582
5583
5584
5585
5586
5213506e
RW
5587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5588$as_echo_n "checking for $LD option to reload object files... " >&6; }
5589if test "${lt_cv_ld_reload_flag+set}" = set; then :
5590 $as_echo_n "(cached) " >&6
1cf3d07d
SE
5591else
5592 lt_cv_ld_reload_flag='-r'
5593fi
5213506e
RW
5594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5595$as_echo "$lt_cv_ld_reload_flag" >&6; }
1cf3d07d
SE
5596reload_flag=$lt_cv_ld_reload_flag
5597case $reload_flag in
5598"" | " "*) ;;
5599*) reload_flag=" $reload_flag" ;;
5600esac
5601reload_cmds='$LD$reload_flag -o $output$reload_objs'
5602case $host_os in
5603 darwin*)
5604 if test "$GCC" = yes; then
5605 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5606 else
5607 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5608 fi
5609 ;;
5610esac
5611
5612
5613
5614
5615
5616
5617
5618
5619
6b4a97ed
PG
5620if test -n "$ac_tool_prefix"; then
5621 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5622set dummy ${ac_tool_prefix}objdump; ac_word=$2
5213506e
RW
5623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5624$as_echo_n "checking for $ac_word... " >&6; }
5625if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5626 $as_echo_n "(cached) " >&6
6b4a97ed
PG
5627else
5628 if test -n "$OBJDUMP"; then
5629 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5630else
5631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5632for as_dir in $PATH
5633do
5634 IFS=$as_save_IFS
5635 test -z "$as_dir" && as_dir=.
5213506e
RW
5636 for ac_exec_ext in '' $ac_executable_extensions; do
5637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6b4a97ed 5638 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5213506e 5639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6b4a97ed
PG
5640 break 2
5641 fi
5642done
5213506e
RW
5643 done
5644IFS=$as_save_IFS
6b4a97ed
PG
5645
5646fi
5647fi
5648OBJDUMP=$ac_cv_prog_OBJDUMP
5649if test -n "$OBJDUMP"; then
5213506e
RW
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5651$as_echo "$OBJDUMP" >&6; }
6b4a97ed 5652else
5213506e
RW
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5654$as_echo "no" >&6; }
6b4a97ed
PG
5655fi
5656
5213506e 5657
6b4a97ed
PG
5658fi
5659if test -z "$ac_cv_prog_OBJDUMP"; then
5660 ac_ct_OBJDUMP=$OBJDUMP
5661 # Extract the first word of "objdump", so it can be a program name with args.
5662set dummy objdump; ac_word=$2
5213506e
RW
5663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5664$as_echo_n "checking for $ac_word... " >&6; }
5665if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5666 $as_echo_n "(cached) " >&6
6b4a97ed
PG
5667else
5668 if test -n "$ac_ct_OBJDUMP"; then
5669 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5670else
5671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5672for as_dir in $PATH
5673do
5674 IFS=$as_save_IFS
5675 test -z "$as_dir" && as_dir=.
5213506e
RW
5676 for ac_exec_ext in '' $ac_executable_extensions; do
5677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6b4a97ed 5678 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5213506e 5679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6b4a97ed
PG
5680 break 2
5681 fi
5682done
5213506e
RW
5683 done
5684IFS=$as_save_IFS
6b4a97ed 5685
6b4a97ed
PG
5686fi
5687fi
5688ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5689if test -n "$ac_ct_OBJDUMP"; then
5213506e
RW
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5691$as_echo "$ac_ct_OBJDUMP" >&6; }
6b4a97ed 5692else
5213506e
RW
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5694$as_echo "no" >&6; }
6b4a97ed
PG
5695fi
5696
5213506e
RW
5697 if test "x$ac_ct_OBJDUMP" = x; then
5698 OBJDUMP="false"
5699 else
5700 case $cross_compiling:$ac_tool_warned in
5701yes:)
5702{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5703$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5704ac_tool_warned=yes ;;
5705esac
5706 OBJDUMP=$ac_ct_OBJDUMP
5707 fi
6b4a97ed
PG
5708else
5709 OBJDUMP="$ac_cv_prog_OBJDUMP"
5710fi
5711
5712test -z "$OBJDUMP" && OBJDUMP=objdump
5713
5714
5715
5716
5717
5718
5719
5720
1cf3d07d 5721
5213506e
RW
5722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5723$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5724if test "${lt_cv_deplibs_check_method+set}" = set; then :
5725 $as_echo_n "(cached) " >&6
953ff289
DN
5726else
5727 lt_cv_file_magic_cmd='$MAGIC_CMD'
5728lt_cv_file_magic_test_file=
5729lt_cv_deplibs_check_method='unknown'
5730# Need to set the preceding variable on all platforms that support
5731# interlibrary dependencies.
5732# 'none' -- dependencies not supported.
5733# `unknown' -- same as none, but documents that we really don't know.
5734# 'pass_all' -- all dependencies passed with no checks.
5735# 'test_compile' -- check by making test program.
1cf3d07d
SE
5736# 'file_magic [[regex]]' -- check by looking for files in library path
5737# which responds to the $file_magic_cmd with a given extended regex.
953ff289
DN
5738# If you have `file' or equivalent on your system and you're not sure
5739# whether `pass_all' will *always* work, you probably want this one.
5740
5741case $host_os in
d653fdfb 5742aix[4-9]*)
953ff289
DN
5743 lt_cv_deplibs_check_method=pass_all
5744 ;;
5745
5746beos*)
5747 lt_cv_deplibs_check_method=pass_all
5748 ;;
5749
1cf3d07d 5750bsdi[45]*)
953ff289
DN
5751 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5752 lt_cv_file_magic_cmd='/usr/bin/file -L'
5753 lt_cv_file_magic_test_file=/shlib/libc.so
5754 ;;
5755
1cf3d07d
SE
5756cygwin*)
5757 # func_win32_libid is a shell function defined in ltmain.sh
5758 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5759 lt_cv_file_magic_cmd='func_win32_libid'
5760 ;;
5761
5762mingw* | pw32*)
5763 # Base MSYS/MinGW do not provide the 'file' command needed by
5764 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5765 # unless we find 'file', for example because we are cross-compiling.
5766 if ( file / ) >/dev/null 2>&1; then
5767 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5768 lt_cv_file_magic_cmd='func_win32_libid'
5769 else
5770 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5771 lt_cv_file_magic_cmd='$OBJDUMP -f'
5772 fi
953ff289
DN
5773 ;;
5774
6b4a97ed
PG
5775cegcc)
5776 # use the weaker test based on 'objdump'. See mingw*.
5777 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5778 lt_cv_file_magic_cmd='$OBJDUMP -f'
5779 ;;
5780
953ff289 5781darwin* | rhapsody*)
953ff289
DN
5782 lt_cv_deplibs_check_method=pass_all
5783 ;;
5784
1cf3d07d
SE
5785freebsd* | dragonfly*)
5786 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
953ff289
DN
5787 case $host_cpu in
5788 i*86 )
5789 # Not sure whether the presence of OpenBSD here was a mistake.
5790 # Let's accept both of them until this is cleared up.
1cf3d07d 5791 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
953ff289
DN
5792 lt_cv_file_magic_cmd=/usr/bin/file
5793 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5794 ;;
5795 esac
5796 else
5797 lt_cv_deplibs_check_method=pass_all
5798 fi
5799 ;;
5800
5801gnu*)
5802 lt_cv_deplibs_check_method=pass_all
5803 ;;
5804
1cf3d07d
SE
5805hpux10.20* | hpux11*)
5806 lt_cv_file_magic_cmd=/usr/bin/file
953ff289 5807 case $host_cpu in
953ff289
DN
5808 ia64*)
5809 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
953ff289
DN
5810 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5811 ;;
1cf3d07d
SE
5812 hppa*64*)
5813 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5814 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
953ff289
DN
5815 ;;
5816 *)
1cf3d07d
SE
5817 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5818 lt_cv_file_magic_test_file=/usr/lib/libc.sl
953ff289
DN
5819 ;;
5820 esac
1cf3d07d
SE
5821 ;;
5822
5823interix[3-9]*)
5824 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5825 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5826 ;;
5827
5828irix5* | irix6* | nonstopux*)
5829 case $LD in
5830 *-32|*"-32 ") libmagic=32-bit;;
5831 *-n32|*"-n32 ") libmagic=N32;;
5832 *-64|*"-64 ") libmagic=64-bit;;
5833 *) libmagic=never-match;;
5834 esac
953ff289
DN
5835 lt_cv_deplibs_check_method=pass_all
5836 ;;
5837
5838# This must be Linux ELF.
7a9d3fe8 5839linux* | k*bsd*-gnu | kopensolaris*-gnu)
953ff289
DN
5840 lt_cv_deplibs_check_method=pass_all
5841 ;;
5842
1cf3d07d
SE
5843netbsd*)
5844 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5845 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
953ff289 5846 else
1cf3d07d 5847 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
953ff289
DN
5848 fi
5849 ;;
5850
1cf3d07d 5851newos6*)
953ff289
DN
5852 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5853 lt_cv_file_magic_cmd=/usr/bin/file
5854 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5855 ;;
5856
1cf3d07d
SE
5857*nto* | *qnx*)
5858 lt_cv_deplibs_check_method=pass_all
5859 ;;
5860
5861openbsd*)
5862 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5863 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5864 else
5865 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5866 fi
5867 ;;
5868
953ff289 5869osf3* | osf4* | osf5*)
953ff289
DN
5870 lt_cv_deplibs_check_method=pass_all
5871 ;;
5872
1cf3d07d 5873rdos*)
953ff289
DN
5874 lt_cv_deplibs_check_method=pass_all
5875 ;;
5876
5877solaris*)
5878 lt_cv_deplibs_check_method=pass_all
953ff289
DN
5879 ;;
5880
1cf3d07d 5881sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
953ff289
DN
5882 lt_cv_deplibs_check_method=pass_all
5883 ;;
5884
1cf3d07d 5885sysv4 | sysv4.3*)
953ff289 5886 case $host_vendor in
953ff289
DN
5887 motorola)
5888 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]'
5889 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5890 ;;
1cf3d07d
SE
5891 ncr)
5892 lt_cv_deplibs_check_method=pass_all
5893 ;;
5894 sequent)
5895 lt_cv_file_magic_cmd='/bin/file'
5896 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5897 ;;
5898 sni)
5899 lt_cv_file_magic_cmd='/bin/file'
5900 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5901 lt_cv_file_magic_test_file=/lib/libc.so
5902 ;;
5903 siemens)
5904 lt_cv_deplibs_check_method=pass_all
5905 ;;
5906 pc)
5907 lt_cv_deplibs_check_method=pass_all
5908 ;;
953ff289
DN
5909 esac
5910 ;;
1cf3d07d
SE
5911
5912tpf*)
5913 lt_cv_deplibs_check_method=pass_all
5914 ;;
953ff289
DN
5915esac
5916
5917fi
5213506e
RW
5918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5919$as_echo "$lt_cv_deplibs_check_method" >&6; }
953ff289
DN
5920file_magic_cmd=$lt_cv_file_magic_cmd
5921deplibs_check_method=$lt_cv_deplibs_check_method
1cf3d07d 5922test -z "$deplibs_check_method" && deplibs_check_method=unknown
953ff289
DN
5923
5924
5925
5926
5927
953ff289 5928
953ff289 5929
953ff289 5930
953ff289 5931
953ff289 5932
953ff289 5933
953ff289
DN
5934
5935if test -n "$ac_tool_prefix"; then
1cf3d07d
SE
5936 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5937set dummy ${ac_tool_prefix}ar; ac_word=$2
5213506e
RW
5938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5939$as_echo_n "checking for $ac_word... " >&6; }
5940if test "${ac_cv_prog_AR+set}" = set; then :
5941 $as_echo_n "(cached) " >&6
953ff289 5942else
1cf3d07d
SE
5943 if test -n "$AR"; then
5944 ac_cv_prog_AR="$AR" # Let the user override the test.
953ff289
DN
5945else
5946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5947for as_dir in $PATH
5948do
5949 IFS=$as_save_IFS
5950 test -z "$as_dir" && as_dir=.
5213506e
RW
5951 for ac_exec_ext in '' $ac_executable_extensions; do
5952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 5953 ac_cv_prog_AR="${ac_tool_prefix}ar"
5213506e 5954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
953ff289
DN
5955 break 2
5956 fi
5957done
5213506e
RW
5958 done
5959IFS=$as_save_IFS
953ff289
DN
5960
5961fi
5962fi
1cf3d07d
SE
5963AR=$ac_cv_prog_AR
5964if test -n "$AR"; then
5213506e
RW
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5966$as_echo "$AR" >&6; }
953ff289 5967else
5213506e
RW
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5969$as_echo "no" >&6; }
953ff289
DN
5970fi
5971
5213506e 5972
953ff289 5973fi
1cf3d07d
SE
5974if test -z "$ac_cv_prog_AR"; then
5975 ac_ct_AR=$AR
5976 # Extract the first word of "ar", so it can be a program name with args.
5977set dummy ar; ac_word=$2
5213506e
RW
5978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5979$as_echo_n "checking for $ac_word... " >&6; }
5980if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5981 $as_echo_n "(cached) " >&6
953ff289 5982else
1cf3d07d
SE
5983 if test -n "$ac_ct_AR"; then
5984 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
953ff289
DN
5985else
5986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5987for as_dir in $PATH
5988do
5989 IFS=$as_save_IFS
5990 test -z "$as_dir" && as_dir=.
5213506e
RW
5991 for ac_exec_ext in '' $ac_executable_extensions; do
5992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 5993 ac_cv_prog_ac_ct_AR="ar"
5213506e 5994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
953ff289
DN
5995 break 2
5996 fi
5997done
5213506e
RW
5998 done
5999IFS=$as_save_IFS
953ff289 6000
953ff289
DN
6001fi
6002fi
1cf3d07d
SE
6003ac_ct_AR=$ac_cv_prog_ac_ct_AR
6004if test -n "$ac_ct_AR"; then
5213506e
RW
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6006$as_echo "$ac_ct_AR" >&6; }
953ff289 6007else
5213506e
RW
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6009$as_echo "no" >&6; }
953ff289
DN
6010fi
6011
5213506e
RW
6012 if test "x$ac_ct_AR" = x; then
6013 AR="false"
6014 else
6015 case $cross_compiling:$ac_tool_warned in
6016yes:)
6017{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6018$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6019ac_tool_warned=yes ;;
6020esac
6021 AR=$ac_ct_AR
6022 fi
953ff289 6023else
1cf3d07d 6024 AR="$ac_cv_prog_AR"
953ff289
DN
6025fi
6026
1cf3d07d
SE
6027test -z "$AR" && AR=ar
6028test -z "$AR_FLAGS" && AR_FLAGS=cru
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
953ff289
DN
6040if test -n "$ac_tool_prefix"; then
6041 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6042set dummy ${ac_tool_prefix}strip; ac_word=$2
5213506e
RW
6043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6044$as_echo_n "checking for $ac_word... " >&6; }
6045if test "${ac_cv_prog_STRIP+set}" = set; then :
6046 $as_echo_n "(cached) " >&6
953ff289
DN
6047else
6048 if test -n "$STRIP"; then
6049 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6050else
6051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6052for as_dir in $PATH
6053do
6054 IFS=$as_save_IFS
6055 test -z "$as_dir" && as_dir=.
5213506e
RW
6056 for ac_exec_ext in '' $ac_executable_extensions; do
6057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
953ff289 6058 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5213506e 6059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
953ff289
DN
6060 break 2
6061 fi
6062done
5213506e
RW
6063 done
6064IFS=$as_save_IFS
953ff289
DN
6065
6066fi
6067fi
6068STRIP=$ac_cv_prog_STRIP
6069if test -n "$STRIP"; then
5213506e
RW
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6071$as_echo "$STRIP" >&6; }
953ff289 6072else
5213506e
RW
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6074$as_echo "no" >&6; }
953ff289
DN
6075fi
6076
5213506e 6077
953ff289
DN
6078fi
6079if test -z "$ac_cv_prog_STRIP"; then
6080 ac_ct_STRIP=$STRIP
6081 # Extract the first word of "strip", so it can be a program name with args.
6082set dummy strip; ac_word=$2
5213506e
RW
6083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6084$as_echo_n "checking for $ac_word... " >&6; }
6085if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6086 $as_echo_n "(cached) " >&6
953ff289
DN
6087else
6088 if test -n "$ac_ct_STRIP"; then
6089 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6090else
6091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6092for as_dir in $PATH
6093do
6094 IFS=$as_save_IFS
6095 test -z "$as_dir" && as_dir=.
5213506e
RW
6096 for ac_exec_ext in '' $ac_executable_extensions; do
6097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
953ff289 6098 ac_cv_prog_ac_ct_STRIP="strip"
5213506e 6099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
953ff289
DN
6100 break 2
6101 fi
6102done
5213506e
RW
6103 done
6104IFS=$as_save_IFS
953ff289 6105
953ff289
DN
6106fi
6107fi
6108ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6109if test -n "$ac_ct_STRIP"; then
5213506e
RW
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6111$as_echo "$ac_ct_STRIP" >&6; }
953ff289 6112else
5213506e
RW
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6114$as_echo "no" >&6; }
953ff289
DN
6115fi
6116
5213506e
RW
6117 if test "x$ac_ct_STRIP" = x; then
6118 STRIP=":"
6119 else
6120 case $cross_compiling:$ac_tool_warned in
6121yes:)
6122{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6123$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6124ac_tool_warned=yes ;;
6125esac
6126 STRIP=$ac_ct_STRIP
6127 fi
953ff289
DN
6128else
6129 STRIP="$ac_cv_prog_STRIP"
6130fi
6131
1cf3d07d 6132test -z "$STRIP" && STRIP=:
953ff289
DN
6133
6134
953ff289 6135
953ff289
DN
6136
6137
953ff289 6138
1cf3d07d
SE
6139if test -n "$ac_tool_prefix"; then
6140 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6141set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5213506e
RW
6142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6143$as_echo_n "checking for $ac_word... " >&6; }
6144if test "${ac_cv_prog_RANLIB+set}" = set; then :
6145 $as_echo_n "(cached) " >&6
1cf3d07d
SE
6146else
6147 if test -n "$RANLIB"; then
6148 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6149else
6150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6151for as_dir in $PATH
6152do
6153 IFS=$as_save_IFS
6154 test -z "$as_dir" && as_dir=.
5213506e
RW
6155 for ac_exec_ext in '' $ac_executable_extensions; do
6156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 6157 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5213506e 6158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
6159 break 2
6160 fi
6161done
5213506e
RW
6162 done
6163IFS=$as_save_IFS
1cf3d07d
SE
6164
6165fi
6166fi
6167RANLIB=$ac_cv_prog_RANLIB
6168if test -n "$RANLIB"; then
5213506e
RW
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6170$as_echo "$RANLIB" >&6; }
1cf3d07d 6171else
5213506e
RW
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6173$as_echo "no" >&6; }
1cf3d07d
SE
6174fi
6175
5213506e 6176
1cf3d07d
SE
6177fi
6178if test -z "$ac_cv_prog_RANLIB"; then
6179 ac_ct_RANLIB=$RANLIB
6180 # Extract the first word of "ranlib", so it can be a program name with args.
6181set dummy ranlib; ac_word=$2
5213506e
RW
6182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6183$as_echo_n "checking for $ac_word... " >&6; }
6184if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6185 $as_echo_n "(cached) " >&6
1cf3d07d
SE
6186else
6187 if test -n "$ac_ct_RANLIB"; then
6188 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6189else
6190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6191for as_dir in $PATH
6192do
6193 IFS=$as_save_IFS
6194 test -z "$as_dir" && as_dir=.
5213506e
RW
6195 for ac_exec_ext in '' $ac_executable_extensions; do
6196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 6197 ac_cv_prog_ac_ct_RANLIB="ranlib"
5213506e 6198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
6199 break 2
6200 fi
6201done
5213506e
RW
6202 done
6203IFS=$as_save_IFS
1cf3d07d 6204
1cf3d07d
SE
6205fi
6206fi
6207ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6208if test -n "$ac_ct_RANLIB"; then
5213506e
RW
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6210$as_echo "$ac_ct_RANLIB" >&6; }
1cf3d07d 6211else
5213506e
RW
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6213$as_echo "no" >&6; }
1cf3d07d
SE
6214fi
6215
5213506e
RW
6216 if test "x$ac_ct_RANLIB" = x; then
6217 RANLIB=":"
6218 else
6219 case $cross_compiling:$ac_tool_warned in
6220yes:)
6221{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6222$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6223ac_tool_warned=yes ;;
6224esac
6225 RANLIB=$ac_ct_RANLIB
6226 fi
1cf3d07d
SE
6227else
6228 RANLIB="$ac_cv_prog_RANLIB"
6229fi
6230
6231test -z "$RANLIB" && RANLIB=:
6232
6233
6234
6235
6236
6237
6238# Determine commands to create old-style static archives.
6b4a97ed 6239old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1cf3d07d
SE
6240old_postinstall_cmds='chmod 644 $oldlib'
6241old_postuninstall_cmds=
6242
6243if test -n "$RANLIB"; then
6244 case $host_os in
6245 openbsd*)
6246 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6247 ;;
6248 *)
6249 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6250 ;;
6251 esac
6252 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6253fi
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288# If no C compiler was specified, use CC.
6289LTCC=${LTCC-"$CC"}
6290
6291# If no C compiler flags were specified, use CFLAGS.
6292LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6293
6294# Allow CC to be a program name with arguments.
6295compiler=$CC
6296
6297
6298# Check for command to grab the raw symbol name followed by C symbol from nm.
5213506e
RW
6299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6300$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6301if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6302 $as_echo_n "(cached) " >&6
1cf3d07d
SE
6303else
6304
6305# These are sane defaults that work on at least a few old systems.
6306# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6307
6308# Character class describing NM global symbol codes.
6309symcode='[BCDEGRST]'
6310
6311# Regexp to match symbols that can be accessed directly from C.
6312sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6313
6314# Define system-specific variables.
6315case $host_os in
6316aix*)
6317 symcode='[BCDT]'
6318 ;;
6b4a97ed 6319cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
6320 symcode='[ABCDGISTW]'
6321 ;;
6322hpux*)
6323 if test "$host_cpu" = ia64; then
6324 symcode='[ABCDEGRST]'
6325 fi
6326 ;;
6327irix* | nonstopux*)
6328 symcode='[BCDEGRST]'
6329 ;;
6330osf*)
6331 symcode='[BCDEGQRST]'
6332 ;;
6333solaris*)
6334 symcode='[BDRT]'
6335 ;;
6336sco3.2v5*)
6337 symcode='[DT]'
6338 ;;
6339sysv4.2uw2*)
6340 symcode='[DT]'
6341 ;;
6342sysv5* | sco5v6* | unixware* | OpenUNIX*)
6343 symcode='[ABDT]'
6344 ;;
6345sysv4)
6346 symcode='[DFNSTU]'
6347 ;;
6348esac
6349
6350# If we're using GNU nm, then use its standard symbol codes.
6351case `$NM -V 2>&1` in
6352*GNU* | *'with BFD'*)
6353 symcode='[ABCDGIRSTW]' ;;
6354esac
6355
6356# Transform an extracted symbol line into a proper C declaration.
6357# Some systems (esp. on ia64) link data and code symbols differently,
6358# so use this general approach.
6359lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6360
6361# Transform an extracted symbol line into symbol name and symbol address
6362lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6b4a97ed 6363lt_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'"
1cf3d07d
SE
6364
6365# Handle CRLF in mingw tool chain
6366opt_cr=
6367case $build_os in
6368mingw*)
6369 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6370 ;;
6371esac
6372
6373# Try without a prefix underscore, then with it.
6374for ac_symprfx in "" "_"; do
6375
6376 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6377 symxfrm="\\1 $ac_symprfx\\2 \\2"
6378
6379 # Write the raw and C identifiers.
6380 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6381 # Fake it for dumpbin and say T for any non-static function
6382 # and D for any global variable.
6383 # Also find C++ and __fastcall symbols from MSVC++,
6384 # which start with @ or ?.
6385 lt_cv_sys_global_symbol_pipe="$AWK '"\
6386" {last_section=section; section=\$ 3};"\
6387" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6388" \$ 0!~/External *\|/{next};"\
6389" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6390" {if(hide[section]) next};"\
6391" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6392" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6393" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6394" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6395" ' prfx=^$ac_symprfx"
6396 else
6397 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6398 fi
6399
6400 # Check to see that the pipe works correctly.
6401 pipe_works=no
6402
6403 rm -f conftest*
6404 cat > conftest.$ac_ext <<_LT_EOF
6405#ifdef __cplusplus
6406extern "C" {
6407#endif
6408char nm_test_var;
6409void nm_test_func(void);
6410void nm_test_func(void){}
6411#ifdef __cplusplus
6412}
6413#endif
6414int main(){nm_test_var='a';nm_test_func();return(0);}
6415_LT_EOF
6416
5213506e 6417 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
6418 (eval $ac_compile) 2>&5
6419 ac_status=$?
5213506e
RW
6420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6421 test $ac_status = 0; }; then
1cf3d07d
SE
6422 # Now try to grab the symbols.
6423 nlist=conftest.nm
5213506e 6424 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
1cf3d07d
SE
6425 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6426 ac_status=$?
5213506e
RW
6427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6428 test $ac_status = 0; } && test -s "$nlist"; then
1cf3d07d
SE
6429 # Try sorting and uniquifying the output.
6430 if sort "$nlist" | uniq > "$nlist"T; then
6431 mv -f "$nlist"T "$nlist"
6432 else
6433 rm -f "$nlist"T
6434 fi
6435
6436 # Make sure that we snagged all the symbols we need.
6437 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6438 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6439 cat <<_LT_EOF > conftest.$ac_ext
6440#ifdef __cplusplus
6441extern "C" {
6442#endif
6443
6444_LT_EOF
6445 # Now generate the symbol file.
6446 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6447
6448 cat <<_LT_EOF >> conftest.$ac_ext
6449
6450/* The mapping between symbol names and symbols. */
6451const struct {
6452 const char *name;
6453 void *address;
6454}
6455lt__PROGRAM__LTX_preloaded_symbols[] =
6456{
6457 { "@PROGRAM@", (void *) 0 },
6458_LT_EOF
6459 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6460 cat <<\_LT_EOF >> conftest.$ac_ext
6461 {0, (void *) 0}
6462};
6463
6464/* This works around a problem in FreeBSD linker */
6465#ifdef FREEBSD_WORKAROUND
6466static const void *lt_preloaded_setup() {
6467 return lt__PROGRAM__LTX_preloaded_symbols;
6468}
6469#endif
6470
6471#ifdef __cplusplus
6472}
6473#endif
6474_LT_EOF
6475 # Now try linking the two files.
6476 mv conftest.$ac_objext conftstm.$ac_objext
6477 lt_save_LIBS="$LIBS"
6478 lt_save_CFLAGS="$CFLAGS"
6479 LIBS="conftstm.$ac_objext"
6480 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5213506e 6481 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d
SE
6482 (eval $ac_link) 2>&5
6483 ac_status=$?
5213506e
RW
6484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6485 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
1cf3d07d
SE
6486 pipe_works=yes
6487 fi
6488 LIBS="$lt_save_LIBS"
6489 CFLAGS="$lt_save_CFLAGS"
6490 else
6491 echo "cannot find nm_test_func in $nlist" >&5
6492 fi
6493 else
6494 echo "cannot find nm_test_var in $nlist" >&5
6495 fi
6496 else
6497 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6498 fi
6499 else
6500 echo "$progname: failed program was:" >&5
6501 cat conftest.$ac_ext >&5
6502 fi
6b4a97ed 6503 rm -rf conftest* conftst*
1cf3d07d
SE
6504
6505 # Do not use the global_symbol_pipe unless it works.
6506 if test "$pipe_works" = yes; then
6507 break
6508 else
6509 lt_cv_sys_global_symbol_pipe=
6510 fi
6511done
6512
6513fi
6514
6515if test -z "$lt_cv_sys_global_symbol_pipe"; then
6516 lt_cv_sys_global_symbol_to_cdecl=
6517fi
6518if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5213506e
RW
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6520$as_echo "failed" >&6; }
1cf3d07d 6521else
5213506e
RW
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6523$as_echo "ok" >&6; }
1cf3d07d
SE
6524fi
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6b4a97ed
PG
6540
6541
6542
6543
6544
1cf3d07d
SE
6545
6546
6547
5213506e
RW
6548# Check whether --enable-libtool-lock was given.
6549if test "${enable_libtool_lock+set}" = set; then :
6550 enableval=$enable_libtool_lock;
6551fi
1cf3d07d 6552
1cf3d07d
SE
6553test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6554
6555# Some flags need to be propagated to the compiler or linker for good
953ff289
DN
6556# libtool support.
6557case $host in
1cf3d07d 6558ia64-*-hpux*)
953ff289 6559 # Find out which ABI we are using.
1cf3d07d 6560 echo 'int i;' > conftest.$ac_ext
5213506e 6561 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
953ff289
DN
6562 (eval $ac_compile) 2>&5
6563 ac_status=$?
5213506e
RW
6564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6565 test $ac_status = 0; }; then
1cf3d07d
SE
6566 case `/usr/bin/file conftest.$ac_objext` in
6567 *ELF-32*)
6568 HPUX_IA64_MODE="32"
6569 ;;
6570 *ELF-64*)
6571 HPUX_IA64_MODE="64"
6572 ;;
6573 esac
6574 fi
6575 rm -rf conftest*
6576 ;;
6577*-*-irix6*)
6578 # Find out which ABI we are using.
5213506e
RW
6579 echo '#line 6579 "configure"' > conftest.$ac_ext
6580 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
6581 (eval $ac_compile) 2>&5
6582 ac_status=$?
5213506e
RW
6583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6584 test $ac_status = 0; }; then
1cf3d07d
SE
6585 if test "$lt_cv_prog_gnu_ld" = yes; then
6586 case `/usr/bin/file conftest.$ac_objext` in
6587 *32-bit*)
6588 LD="${LD-ld} -melf32bsmip"
6589 ;;
6590 *N32*)
6591 LD="${LD-ld} -melf32bmipn32"
6592 ;;
6593 *64-bit*)
6594 LD="${LD-ld} -melf64bmip"
6595 ;;
6596 esac
6597 else
6598 case `/usr/bin/file conftest.$ac_objext` in
6599 *32-bit*)
6600 LD="${LD-ld} -32"
6601 ;;
6602 *N32*)
6603 LD="${LD-ld} -n32"
6604 ;;
6605 *64-bit*)
6606 LD="${LD-ld} -64"
6607 ;;
6608 esac
6609 fi
6610 fi
6611 rm -rf conftest*
6612 ;;
6613
6614x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6615s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6616 # Find out which ABI we are using.
6617 echo 'int i;' > conftest.$ac_ext
5213506e 6618 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
6619 (eval $ac_compile) 2>&5
6620 ac_status=$?
5213506e
RW
6621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6622 test $ac_status = 0; }; then
1cf3d07d
SE
6623 case `/usr/bin/file conftest.o` in
6624 *32-bit*)
6625 case $host in
6626 x86_64-*kfreebsd*-gnu)
6627 LD="${LD-ld} -m elf_i386_fbsd"
6628 ;;
6629 x86_64-*linux*)
6630 LD="${LD-ld} -m elf_i386"
6631 ;;
6632 ppc64-*linux*|powerpc64-*linux*)
6633 LD="${LD-ld} -m elf32ppclinux"
6634 ;;
6635 s390x-*linux*)
6636 LD="${LD-ld} -m elf_s390"
6637 ;;
6638 sparc64-*linux*)
6639 LD="${LD-ld} -m elf32_sparc"
6640 ;;
6641 esac
6642 ;;
6643 *64-bit*)
6644 case $host in
6645 x86_64-*kfreebsd*-gnu)
6646 LD="${LD-ld} -m elf_x86_64_fbsd"
6647 ;;
6648 x86_64-*linux*)
6649 LD="${LD-ld} -m elf_x86_64"
6650 ;;
6651 ppc*-*linux*|powerpc*-*linux*)
6652 LD="${LD-ld} -m elf64ppc"
6653 ;;
6654 s390*-*linux*|s390*-*tpf*)
6655 LD="${LD-ld} -m elf64_s390"
6656 ;;
6657 sparc*-*linux*)
6658 LD="${LD-ld} -m elf64_sparc"
6659 ;;
6660 esac
6661 ;;
6662 esac
6663 fi
6664 rm -rf conftest*
6665 ;;
6666
6667*-*-sco3.2v5*)
6668 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6669 SAVE_CFLAGS="$CFLAGS"
6670 CFLAGS="$CFLAGS -belf"
5213506e
RW
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6672$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6673if test "${lt_cv_cc_needs_belf+set}" = set; then :
6674 $as_echo_n "(cached) " >&6
1cf3d07d
SE
6675else
6676 ac_ext=c
6677ac_cpp='$CPP $CPPFLAGS'
6678ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6679ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6680ac_compiler_gnu=$ac_cv_c_compiler_gnu
6681
5213506e 6682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
6683/* end confdefs.h. */
6684
6685int
6686main ()
6687{
6688
6689 ;
6690 return 0;
6691}
6692_ACEOF
5213506e 6693if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
6694 lt_cv_cc_needs_belf=yes
6695else
5213506e 6696 lt_cv_cc_needs_belf=no
1cf3d07d 6697fi
5213506e
RW
6698rm -f core conftest.err conftest.$ac_objext \
6699 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
6700 ac_ext=c
6701ac_cpp='$CPP $CPPFLAGS'
6702ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6703ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6704ac_compiler_gnu=$ac_cv_c_compiler_gnu
6705
6706fi
5213506e
RW
6707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6708$as_echo "$lt_cv_cc_needs_belf" >&6; }
1cf3d07d
SE
6709 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6710 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6711 CFLAGS="$SAVE_CFLAGS"
6712 fi
6713 ;;
6714sparc*-*solaris*)
6715 # Find out which ABI we are using.
6716 echo 'int i;' > conftest.$ac_ext
5213506e 6717 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
6718 (eval $ac_compile) 2>&5
6719 ac_status=$?
5213506e
RW
6720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6721 test $ac_status = 0; }; then
1cf3d07d
SE
6722 case `/usr/bin/file conftest.o` in
6723 *64-bit*)
6724 case $lt_cv_prog_gnu_ld in
6725 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6b4a97ed
PG
6726 *)
6727 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6728 LD="${LD-ld} -64"
6729 fi
6730 ;;
1cf3d07d
SE
6731 esac
6732 ;;
6733 esac
6734 fi
6735 rm -rf conftest*
6736 ;;
6737esac
6738
6739need_locks="$enable_libtool_lock"
6740
6b4a97ed
PG
6741
6742 case $host_os in
6743 rhapsody* | darwin*)
6744 if test -n "$ac_tool_prefix"; then
6745 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6746set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5213506e
RW
6747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6748$as_echo_n "checking for $ac_word... " >&6; }
6749if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6750 $as_echo_n "(cached) " >&6
1cf3d07d 6751else
6b4a97ed
PG
6752 if test -n "$DSYMUTIL"; then
6753 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6754else
6755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6756for as_dir in $PATH
1cf3d07d 6757do
6b4a97ed
PG
6758 IFS=$as_save_IFS
6759 test -z "$as_dir" && as_dir=.
5213506e
RW
6760 for ac_exec_ext in '' $ac_executable_extensions; do
6761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6b4a97ed 6762 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5213506e 6763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6b4a97ed 6764 break 2
1cf3d07d 6765 fi
6b4a97ed 6766done
5213506e
RW
6767 done
6768IFS=$as_save_IFS
6b4a97ed
PG
6769
6770fi
6771fi
6772DSYMUTIL=$ac_cv_prog_DSYMUTIL
6773if test -n "$DSYMUTIL"; then
5213506e
RW
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6775$as_echo "$DSYMUTIL" >&6; }
6b4a97ed 6776else
5213506e
RW
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6778$as_echo "no" >&6; }
6b4a97ed
PG
6779fi
6780
5213506e 6781
6b4a97ed
PG
6782fi
6783if test -z "$ac_cv_prog_DSYMUTIL"; then
6784 ac_ct_DSYMUTIL=$DSYMUTIL
6785 # Extract the first word of "dsymutil", so it can be a program name with args.
6786set dummy dsymutil; ac_word=$2
5213506e
RW
6787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6788$as_echo_n "checking for $ac_word... " >&6; }
6789if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6790 $as_echo_n "(cached) " >&6
6b4a97ed
PG
6791else
6792 if test -n "$ac_ct_DSYMUTIL"; then
6793 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6794else
6795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6796for as_dir in $PATH
6797do
6798 IFS=$as_save_IFS
6799 test -z "$as_dir" && as_dir=.
5213506e
RW
6800 for ac_exec_ext in '' $ac_executable_extensions; do
6801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6b4a97ed 6802 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5213506e 6803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6b4a97ed
PG
6804 break 2
6805 fi
6806done
5213506e
RW
6807 done
6808IFS=$as_save_IFS
6b4a97ed 6809
6b4a97ed
PG
6810fi
6811fi
6812ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6813if test -n "$ac_ct_DSYMUTIL"; then
5213506e
RW
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6815$as_echo "$ac_ct_DSYMUTIL" >&6; }
6b4a97ed 6816else
5213506e
RW
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6818$as_echo "no" >&6; }
6b4a97ed
PG
6819fi
6820
5213506e
RW
6821 if test "x$ac_ct_DSYMUTIL" = x; then
6822 DSYMUTIL=":"
6823 else
6824 case $cross_compiling:$ac_tool_warned in
6825yes:)
6826{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6827$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6828ac_tool_warned=yes ;;
6829esac
6830 DSYMUTIL=$ac_ct_DSYMUTIL
6831 fi
6b4a97ed
PG
6832else
6833 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6834fi
6835
6836 if test -n "$ac_tool_prefix"; then
6837 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6838set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5213506e
RW
6839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6840$as_echo_n "checking for $ac_word... " >&6; }
6841if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6842 $as_echo_n "(cached) " >&6
6b4a97ed
PG
6843else
6844 if test -n "$NMEDIT"; then
6845 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6846else
6847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6848for as_dir in $PATH
6849do
6850 IFS=$as_save_IFS
6851 test -z "$as_dir" && as_dir=.
5213506e
RW
6852 for ac_exec_ext in '' $ac_executable_extensions; do
6853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6b4a97ed 6854 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5213506e 6855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6b4a97ed
PG
6856 break 2
6857 fi
6858done
5213506e
RW
6859 done
6860IFS=$as_save_IFS
6b4a97ed
PG
6861
6862fi
6863fi
6864NMEDIT=$ac_cv_prog_NMEDIT
6865if test -n "$NMEDIT"; then
5213506e
RW
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6867$as_echo "$NMEDIT" >&6; }
6b4a97ed 6868else
5213506e
RW
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6870$as_echo "no" >&6; }
6b4a97ed
PG
6871fi
6872
5213506e 6873
6b4a97ed
PG
6874fi
6875if test -z "$ac_cv_prog_NMEDIT"; then
6876 ac_ct_NMEDIT=$NMEDIT
6877 # Extract the first word of "nmedit", so it can be a program name with args.
6878set dummy nmedit; ac_word=$2
5213506e
RW
6879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6880$as_echo_n "checking for $ac_word... " >&6; }
6881if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6882 $as_echo_n "(cached) " >&6
6b4a97ed
PG
6883else
6884 if test -n "$ac_ct_NMEDIT"; then
6885 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6886else
6887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6888for as_dir in $PATH
6889do
6890 IFS=$as_save_IFS
6891 test -z "$as_dir" && as_dir=.
5213506e
RW
6892 for ac_exec_ext in '' $ac_executable_extensions; do
6893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6b4a97ed 6894 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5213506e 6895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6b4a97ed
PG
6896 break 2
6897 fi
6898done
5213506e
RW
6899 done
6900IFS=$as_save_IFS
6b4a97ed 6901
6b4a97ed
PG
6902fi
6903fi
6904ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6905if test -n "$ac_ct_NMEDIT"; then
5213506e
RW
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6907$as_echo "$ac_ct_NMEDIT" >&6; }
6b4a97ed 6908else
5213506e
RW
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6910$as_echo "no" >&6; }
6b4a97ed
PG
6911fi
6912
5213506e
RW
6913 if test "x$ac_ct_NMEDIT" = x; then
6914 NMEDIT=":"
6915 else
6916 case $cross_compiling:$ac_tool_warned in
6917yes:)
6918{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6919$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6920ac_tool_warned=yes ;;
6921esac
6922 NMEDIT=$ac_ct_NMEDIT
6923 fi
6b4a97ed
PG
6924else
6925 NMEDIT="$ac_cv_prog_NMEDIT"
6926fi
6927
6928 if test -n "$ac_tool_prefix"; then
6929 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6930set dummy ${ac_tool_prefix}lipo; ac_word=$2
5213506e
RW
6931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6932$as_echo_n "checking for $ac_word... " >&6; }
6933if test "${ac_cv_prog_LIPO+set}" = set; then :
6934 $as_echo_n "(cached) " >&6
6b4a97ed
PG
6935else
6936 if test -n "$LIPO"; then
6937 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6938else
6939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6940for as_dir in $PATH
6941do
6942 IFS=$as_save_IFS
6943 test -z "$as_dir" && as_dir=.
5213506e
RW
6944 for ac_exec_ext in '' $ac_executable_extensions; do
6945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6b4a97ed 6946 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5213506e 6947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6b4a97ed
PG
6948 break 2
6949 fi
6950done
5213506e
RW
6951 done
6952IFS=$as_save_IFS
6b4a97ed
PG
6953
6954fi
6955fi
6956LIPO=$ac_cv_prog_LIPO
6957if test -n "$LIPO"; then
5213506e
RW
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6959$as_echo "$LIPO" >&6; }
6b4a97ed 6960else
5213506e
RW
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6962$as_echo "no" >&6; }
6b4a97ed
PG
6963fi
6964
5213506e 6965
6b4a97ed
PG
6966fi
6967if test -z "$ac_cv_prog_LIPO"; then
6968 ac_ct_LIPO=$LIPO
6969 # Extract the first word of "lipo", so it can be a program name with args.
6970set dummy lipo; ac_word=$2
5213506e
RW
6971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6972$as_echo_n "checking for $ac_word... " >&6; }
6973if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6974 $as_echo_n "(cached) " >&6
6b4a97ed
PG
6975else
6976 if test -n "$ac_ct_LIPO"; then
6977 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6978else
6979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6980for as_dir in $PATH
6981do
6982 IFS=$as_save_IFS
6983 test -z "$as_dir" && as_dir=.
5213506e
RW
6984 for ac_exec_ext in '' $ac_executable_extensions; do
6985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6b4a97ed 6986 ac_cv_prog_ac_ct_LIPO="lipo"
5213506e 6987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6b4a97ed
PG
6988 break 2
6989 fi
6990done
5213506e
RW
6991 done
6992IFS=$as_save_IFS
6b4a97ed 6993
6b4a97ed
PG
6994fi
6995fi
6996ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6997if test -n "$ac_ct_LIPO"; then
5213506e
RW
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6999$as_echo "$ac_ct_LIPO" >&6; }
6b4a97ed 7000else
5213506e
RW
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7002$as_echo "no" >&6; }
6b4a97ed
PG
7003fi
7004
5213506e
RW
7005 if test "x$ac_ct_LIPO" = x; then
7006 LIPO=":"
7007 else
7008 case $cross_compiling:$ac_tool_warned in
7009yes:)
7010{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7011$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7012ac_tool_warned=yes ;;
7013esac
7014 LIPO=$ac_ct_LIPO
7015 fi
6b4a97ed
PG
7016else
7017 LIPO="$ac_cv_prog_LIPO"
7018fi
7019
7020 if test -n "$ac_tool_prefix"; then
7021 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7022set dummy ${ac_tool_prefix}otool; ac_word=$2
5213506e
RW
7023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7024$as_echo_n "checking for $ac_word... " >&6; }
7025if test "${ac_cv_prog_OTOOL+set}" = set; then :
7026 $as_echo_n "(cached) " >&6
6b4a97ed
PG
7027else
7028 if test -n "$OTOOL"; then
7029 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7030else
7031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7032for as_dir in $PATH
7033do
7034 IFS=$as_save_IFS
7035 test -z "$as_dir" && as_dir=.
5213506e
RW
7036 for ac_exec_ext in '' $ac_executable_extensions; do
7037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6b4a97ed 7038 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5213506e 7039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6b4a97ed
PG
7040 break 2
7041 fi
7042done
5213506e
RW
7043 done
7044IFS=$as_save_IFS
6b4a97ed
PG
7045
7046fi
7047fi
7048OTOOL=$ac_cv_prog_OTOOL
7049if test -n "$OTOOL"; then
5213506e
RW
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7051$as_echo "$OTOOL" >&6; }
6b4a97ed 7052else
5213506e
RW
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7054$as_echo "no" >&6; }
6b4a97ed
PG
7055fi
7056
5213506e 7057
6b4a97ed
PG
7058fi
7059if test -z "$ac_cv_prog_OTOOL"; then
7060 ac_ct_OTOOL=$OTOOL
7061 # Extract the first word of "otool", so it can be a program name with args.
7062set dummy otool; ac_word=$2
5213506e
RW
7063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7064$as_echo_n "checking for $ac_word... " >&6; }
7065if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7066 $as_echo_n "(cached) " >&6
6b4a97ed
PG
7067else
7068 if test -n "$ac_ct_OTOOL"; then
7069 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7070else
7071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7072for as_dir in $PATH
7073do
7074 IFS=$as_save_IFS
7075 test -z "$as_dir" && as_dir=.
5213506e
RW
7076 for ac_exec_ext in '' $ac_executable_extensions; do
7077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6b4a97ed 7078 ac_cv_prog_ac_ct_OTOOL="otool"
5213506e 7079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6b4a97ed
PG
7080 break 2
7081 fi
7082done
5213506e
RW
7083 done
7084IFS=$as_save_IFS
6b4a97ed 7085
6b4a97ed
PG
7086fi
7087fi
7088ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7089if test -n "$ac_ct_OTOOL"; then
5213506e
RW
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7091$as_echo "$ac_ct_OTOOL" >&6; }
6b4a97ed 7092else
5213506e
RW
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7094$as_echo "no" >&6; }
6b4a97ed
PG
7095fi
7096
5213506e
RW
7097 if test "x$ac_ct_OTOOL" = x; then
7098 OTOOL=":"
7099 else
7100 case $cross_compiling:$ac_tool_warned in
7101yes:)
7102{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7103$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7104ac_tool_warned=yes ;;
7105esac
7106 OTOOL=$ac_ct_OTOOL
7107 fi
6b4a97ed
PG
7108else
7109 OTOOL="$ac_cv_prog_OTOOL"
7110fi
7111
7112 if test -n "$ac_tool_prefix"; then
7113 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7114set dummy ${ac_tool_prefix}otool64; ac_word=$2
5213506e
RW
7115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7116$as_echo_n "checking for $ac_word... " >&6; }
7117if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7118 $as_echo_n "(cached) " >&6
6b4a97ed
PG
7119else
7120 if test -n "$OTOOL64"; then
7121 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7122else
7123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7124for as_dir in $PATH
7125do
7126 IFS=$as_save_IFS
7127 test -z "$as_dir" && as_dir=.
5213506e
RW
7128 for ac_exec_ext in '' $ac_executable_extensions; do
7129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6b4a97ed 7130 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5213506e 7131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6b4a97ed
PG
7132 break 2
7133 fi
7134done
5213506e
RW
7135 done
7136IFS=$as_save_IFS
6b4a97ed
PG
7137
7138fi
7139fi
7140OTOOL64=$ac_cv_prog_OTOOL64
7141if test -n "$OTOOL64"; then
5213506e
RW
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7143$as_echo "$OTOOL64" >&6; }
6b4a97ed 7144else
5213506e
RW
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7146$as_echo "no" >&6; }
6b4a97ed
PG
7147fi
7148
5213506e 7149
6b4a97ed
PG
7150fi
7151if test -z "$ac_cv_prog_OTOOL64"; then
7152 ac_ct_OTOOL64=$OTOOL64
7153 # Extract the first word of "otool64", so it can be a program name with args.
7154set dummy otool64; ac_word=$2
5213506e
RW
7155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7156$as_echo_n "checking for $ac_word... " >&6; }
7157if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7158 $as_echo_n "(cached) " >&6
6b4a97ed
PG
7159else
7160 if test -n "$ac_ct_OTOOL64"; then
7161 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7162else
7163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7164for as_dir in $PATH
7165do
7166 IFS=$as_save_IFS
7167 test -z "$as_dir" && as_dir=.
5213506e
RW
7168 for ac_exec_ext in '' $ac_executable_extensions; do
7169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6b4a97ed 7170 ac_cv_prog_ac_ct_OTOOL64="otool64"
5213506e 7171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6b4a97ed
PG
7172 break 2
7173 fi
7174done
5213506e
RW
7175 done
7176IFS=$as_save_IFS
6b4a97ed 7177
6b4a97ed
PG
7178fi
7179fi
7180ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7181if test -n "$ac_ct_OTOOL64"; then
5213506e
RW
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7183$as_echo "$ac_ct_OTOOL64" >&6; }
6b4a97ed 7184else
5213506e
RW
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7186$as_echo "no" >&6; }
6b4a97ed
PG
7187fi
7188
5213506e
RW
7189 if test "x$ac_ct_OTOOL64" = x; then
7190 OTOOL64=":"
7191 else
7192 case $cross_compiling:$ac_tool_warned in
7193yes:)
7194{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7195$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7196ac_tool_warned=yes ;;
7197esac
7198 OTOOL64=$ac_ct_OTOOL64
7199 fi
6b4a97ed
PG
7200else
7201 OTOOL64="$ac_cv_prog_OTOOL64"
7202fi
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
5213506e
RW
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7231$as_echo_n "checking for -single_module linker flag... " >&6; }
7232if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7233 $as_echo_n "(cached) " >&6
6b4a97ed
PG
7234else
7235 lt_cv_apple_cc_single_mod=no
7236 if test -z "${LT_MULTI_MODULE}"; then
7237 # By default we will add the -single_module flag. You can override
7238 # by either setting the environment variable LT_MULTI_MODULE
7239 # non-empty at configure time, or by adding -multi_module to the
7240 # link flags.
7241 rm -rf libconftest.dylib*
7242 echo "int foo(void){return 1;}" > conftest.c
7243 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7244-dynamiclib -Wl,-single_module conftest.c" >&5
7245 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7246 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7247 _lt_result=$?
7248 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7249 lt_cv_apple_cc_single_mod=yes
7250 else
7251 cat conftest.err >&5
7252 fi
7253 rm -rf libconftest.dylib*
7254 rm -f conftest.*
7255 fi
7256fi
5213506e
RW
7257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7258$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7260$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7261if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7262 $as_echo_n "(cached) " >&6
6b4a97ed
PG
7263else
7264 lt_cv_ld_exported_symbols_list=no
7265 save_LDFLAGS=$LDFLAGS
7266 echo "_main" > conftest.sym
7267 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5213506e 7268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6b4a97ed
PG
7269/* end confdefs.h. */
7270
7271int
7272main ()
7273{
7274
7275 ;
7276 return 0;
7277}
7278_ACEOF
5213506e 7279if ac_fn_c_try_link "$LINENO"; then :
6b4a97ed
PG
7280 lt_cv_ld_exported_symbols_list=yes
7281else
5213506e 7282 lt_cv_ld_exported_symbols_list=no
6b4a97ed 7283fi
5213506e
RW
7284rm -f core conftest.err conftest.$ac_objext \
7285 conftest$ac_exeext conftest.$ac_ext
6b4a97ed
PG
7286 LDFLAGS="$save_LDFLAGS"
7287
7288fi
5213506e
RW
7289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7290$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6b4a97ed
PG
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" != ":"; then
7319 _lt_dsymutil='~$DSYMUTIL $lib || :'
7320 else
7321 _lt_dsymutil=
7322 fi
7323 ;;
7324 esac
7325
7326ac_ext=c
7327ac_cpp='$CPP $CPPFLAGS'
7328ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7329ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7330ac_compiler_gnu=$ac_cv_c_compiler_gnu
5213506e
RW
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; }
6b4a97ed
PG
7333# On Suns, sometimes $CPP names a directory.
7334if test -n "$CPP" && test -d "$CPP"; then
7335 CPP=
7336fi
7337if test -z "$CPP"; then
5213506e
RW
7338 if test "${ac_cv_prog_CPP+set}" = set; then :
7339 $as_echo_n "(cached) " >&6
6b4a97ed
PG
7340else
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
7345for ac_c_preproc_warn_flag in '' yes
7346do
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.
5213506e 7353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6b4a97ed
PG
7354/* end confdefs.h. */
7355#ifdef __STDC__
7356# include <limits.h>
7357#else
7358# include <assert.h>
7359#endif
7360 Syntax error
7361_ACEOF
5213506e 7362if ac_fn_c_try_cpp "$LINENO"; then :
1cf3d07d 7363
5213506e 7364else
1cf3d07d
SE
7365 # Broken: fails on valid input.
7366continue
7367fi
7368rm -f conftest.err conftest.$ac_ext
7369
5213506e 7370 # OK, works on sane cases. Now check whether nonexistent headers
1cf3d07d 7371 # can be detected and how.
5213506e 7372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7373/* end confdefs.h. */
7374#include <ac_nonexistent.h>
7375_ACEOF
5213506e 7376if ac_fn_c_try_cpp "$LINENO"; then :
1cf3d07d
SE
7377 # Broken: success on invalid input.
7378continue
7379else
1cf3d07d
SE
7380 # Passes both tests.
7381ac_preproc_ok=:
7382break
7383fi
7384rm -f conftest.err conftest.$ac_ext
7385
7386done
7387# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7388rm -f conftest.err conftest.$ac_ext
5213506e 7389if $ac_preproc_ok; then :
1cf3d07d
SE
7390 break
7391fi
7392
7393 done
7394 ac_cv_prog_CPP=$CPP
7395
7396fi
7397 CPP=$ac_cv_prog_CPP
7398else
7399 ac_cv_prog_CPP=$CPP
7400fi
5213506e
RW
7401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7402$as_echo "$CPP" >&6; }
1cf3d07d
SE
7403ac_preproc_ok=false
7404for ac_c_preproc_warn_flag in '' yes
7405do
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.
5213506e 7412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7413/* end confdefs.h. */
7414#ifdef __STDC__
7415# include <limits.h>
7416#else
7417# include <assert.h>
7418#endif
7419 Syntax error
7420_ACEOF
5213506e 7421if ac_fn_c_try_cpp "$LINENO"; then :
1cf3d07d 7422
5213506e 7423else
1cf3d07d
SE
7424 # Broken: fails on valid input.
7425continue
7426fi
7427rm -f conftest.err conftest.$ac_ext
7428
5213506e 7429 # OK, works on sane cases. Now check whether nonexistent headers
1cf3d07d 7430 # can be detected and how.
5213506e 7431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7432/* end confdefs.h. */
7433#include <ac_nonexistent.h>
7434_ACEOF
5213506e 7435if ac_fn_c_try_cpp "$LINENO"; then :
1cf3d07d
SE
7436 # Broken: success on invalid input.
7437continue
7438else
1cf3d07d
SE
7439 # Passes both tests.
7440ac_preproc_ok=:
7441break
7442fi
7443rm -f conftest.err conftest.$ac_ext
7444
7445done
7446# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7447rm -f conftest.err conftest.$ac_ext
5213506e
RW
7448if $ac_preproc_ok; then :
7449
1cf3d07d 7450else
5213506e
RW
7451 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7452$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7453as_fn_error "C preprocessor \"$CPP\" fails sanity check
7454See \`config.log' for more details." "$LINENO" 5; }
1cf3d07d
SE
7455fi
7456
7457ac_ext=c
7458ac_cpp='$CPP $CPPFLAGS'
7459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7461ac_compiler_gnu=$ac_cv_c_compiler_gnu
7462
7463
5213506e
RW
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; }
7466if test "${ac_cv_header_stdc+set}" = set; then :
7467 $as_echo_n "(cached) " >&6
1cf3d07d 7468else
5213506e 7469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7470/* end confdefs.h. */
7471#include <stdlib.h>
7472#include <stdarg.h>
7473#include <string.h>
7474#include <float.h>
7475
7476int
7477main ()
7478{
7479
7480 ;
7481 return 0;
7482}
7483_ACEOF
5213506e 7484if ac_fn_c_try_compile "$LINENO"; then :
1cf3d07d
SE
7485 ac_cv_header_stdc=yes
7486else
5213506e 7487 ac_cv_header_stdc=no
1cf3d07d 7488fi
5213506e 7489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d
SE
7490
7491if test $ac_cv_header_stdc = yes; then
7492 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5213506e 7493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7494/* end confdefs.h. */
7495#include <string.h>
7496
7497_ACEOF
7498if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e
RW
7499 $EGREP "memchr" >/dev/null 2>&1; then :
7500
1cf3d07d
SE
7501else
7502 ac_cv_header_stdc=no
7503fi
7504rm -f conftest*
7505
7506fi
7507
7508if test $ac_cv_header_stdc = yes; then
7509 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5213506e 7510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7511/* end confdefs.h. */
7512#include <stdlib.h>
7513
7514_ACEOF
7515if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e
RW
7516 $EGREP "free" >/dev/null 2>&1; then :
7517
1cf3d07d
SE
7518else
7519 ac_cv_header_stdc=no
7520fi
7521rm -f conftest*
7522
7523fi
7524
7525if test $ac_cv_header_stdc = yes; then
7526 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5213506e 7527 if test "$cross_compiling" = yes; then :
1cf3d07d
SE
7528 :
7529else
5213506e 7530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7531/* end confdefs.h. */
7532#include <ctype.h>
5213506e 7533#include <stdlib.h>
1cf3d07d
SE
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)))
7546int
7547main ()
7548{
7549 int i;
7550 for (i = 0; i < 256; i++)
7551 if (XOR (islower (i), ISLOWER (i))
7552 || toupper (i) != TOUPPER (i))
5213506e
RW
7553 return 2;
7554 return 0;
1cf3d07d
SE
7555}
7556_ACEOF
5213506e 7557if ac_fn_c_try_run "$LINENO"; then :
1cf3d07d 7558
5213506e
RW
7559else
7560 ac_cv_header_stdc=no
1cf3d07d 7561fi
5213506e
RW
7562rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7563 conftest.$ac_objext conftest.beam conftest.$ac_ext
1cf3d07d 7564fi
5213506e 7565
1cf3d07d
SE
7566fi
7567fi
5213506e
RW
7568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7569$as_echo "$ac_cv_header_stdc" >&6; }
1cf3d07d
SE
7570if test $ac_cv_header_stdc = yes; then
7571
5213506e 7572$as_echo "#define STDC_HEADERS 1" >>confdefs.h
1cf3d07d
SE
7573
7574fi
7575
7576# On IRIX 5.3, sys/types and inttypes.h are conflicting.
1cf3d07d
SE
7577for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7578 inttypes.h stdint.h unistd.h
5213506e
RW
7579do :
7580 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7581ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7582"
7583eval as_val=\$$as_ac_Header
7584 if test "x$as_val" = x""yes; then :
1cf3d07d 7585 cat >>confdefs.h <<_ACEOF
5213506e 7586#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1cf3d07d
SE
7587_ACEOF
7588
7589fi
7590
7591done
7592
7593
1cf3d07d 7594for ac_header in dlfcn.h
5213506e
RW
7595do :
7596 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7597"
7598if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
1cf3d07d 7599 cat >>confdefs.h <<_ACEOF
5213506e 7600#define HAVE_DLFCN_H 1
1cf3d07d
SE
7601_ACEOF
7602
7603fi
7604
7605done
7606
7607
7608
6b4a97ed
PG
7609# Set options
7610
7611
7612
7613 enable_dlopen=no
7614
7615
7616 enable_win32_dll=no
7617
7618
5213506e
RW
7619 # Check whether --enable-shared was given.
7620if test "${enable_shared+set}" = set; then :
7621 enableval=$enable_shared; p=${PACKAGE-default}
6b4a97ed
PG
7622 case $enableval in
7623 yes) enable_shared=yes ;;
7624 no) enable_shared=no ;;
7625 *)
7626 enable_shared=no
7627 # Look at the argument we got. We use all the common list separators.
7628 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7629 for pkg in $enableval; do
7630 IFS="$lt_save_ifs"
7631 if test "X$pkg" = "X$p"; then
7632 enable_shared=yes
7633 fi
7634 done
7635 IFS="$lt_save_ifs"
7636 ;;
7637 esac
7638else
7639 enable_shared=yes
5213506e
RW
7640fi
7641
6b4a97ed
PG
7642
7643
7644
7645
7646
7647
7648
7649
5213506e
RW
7650 # Check whether --enable-static was given.
7651if test "${enable_static+set}" = set; then :
7652 enableval=$enable_static; p=${PACKAGE-default}
6b4a97ed
PG
7653 case $enableval in
7654 yes) enable_static=yes ;;
7655 no) enable_static=no ;;
7656 *)
7657 enable_static=no
7658 # Look at the argument we got. We use all the common list separators.
7659 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7660 for pkg in $enableval; do
7661 IFS="$lt_save_ifs"
7662 if test "X$pkg" = "X$p"; then
7663 enable_static=yes
7664 fi
7665 done
7666 IFS="$lt_save_ifs"
7667 ;;
7668 esac
7669else
7670 enable_static=yes
5213506e
RW
7671fi
7672
6b4a97ed
PG
7673
7674
7675
7676
7677
7678
7679
7680
7681
5213506e
RW
7682# Check whether --with-pic was given.
7683if test "${with_pic+set}" = set; then :
7684 withval=$with_pic; pic_mode="$withval"
6b4a97ed
PG
7685else
7686 pic_mode=default
5213506e
RW
7687fi
7688
6b4a97ed
PG
7689
7690test -z "$pic_mode" && pic_mode=default
7691
7692
7693
7694
7695
7696
7697
5213506e
RW
7698 # Check whether --enable-fast-install was given.
7699if test "${enable_fast_install+set}" = set; then :
7700 enableval=$enable_fast_install; p=${PACKAGE-default}
6b4a97ed
PG
7701 case $enableval in
7702 yes) enable_fast_install=yes ;;
7703 no) enable_fast_install=no ;;
7704 *)
7705 enable_fast_install=no
7706 # Look at the argument we got. We use all the common list separators.
7707 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7708 for pkg in $enableval; do
7709 IFS="$lt_save_ifs"
7710 if test "X$pkg" = "X$p"; then
7711 enable_fast_install=yes
7712 fi
7713 done
7714 IFS="$lt_save_ifs"
7715 ;;
7716 esac
7717else
7718 enable_fast_install=yes
5213506e
RW
7719fi
7720
6b4a97ed
PG
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
1cf3d07d
SE
7731# This can be used to rebuild libtool when needed
7732LIBTOOL_DEPS="$ltmain"
7733
7734# Always use our own libtool.
7735LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761test -z "$LN_S" && LN_S="ln -s"
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776if test -n "${ZSH_VERSION+set}" ; then
7777 setopt NO_GLOB_SUBST
7778fi
7779
5213506e
RW
7780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7781$as_echo_n "checking for objdir... " >&6; }
7782if test "${lt_cv_objdir+set}" = set; then :
7783 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7784else
7785 rm -f .libs 2>/dev/null
7786mkdir .libs 2>/dev/null
7787if test -d .libs; then
7788 lt_cv_objdir=.libs
7789else
7790 # MS-DOS does not allow filenames that begin with a dot.
7791 lt_cv_objdir=_libs
7792fi
7793rmdir .libs 2>/dev/null
7794fi
5213506e
RW
7795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7796$as_echo "$lt_cv_objdir" >&6; }
1cf3d07d
SE
7797objdir=$lt_cv_objdir
7798
7799
7800
7801
7802
7803cat >>confdefs.h <<_ACEOF
7804#define LT_OBJDIR "$lt_cv_objdir/"
7805_ACEOF
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823case $host_os in
7824aix3*)
7825 # AIX sometimes has problems with the GCC collect2 program. For some
7826 # reason, if we set the COLLECT_NAMES environment variable, the problems
7827 # vanish in a puff of smoke.
7828 if test "X${COLLECT_NAMES+set}" != Xset; then
7829 COLLECT_NAMES=
7830 export COLLECT_NAMES
7831 fi
7832 ;;
7833esac
7834
7835# Sed substitution that helps us do robust quoting. It backslashifies
7836# metacharacters that are still active within double-quoted strings.
7837sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7838
7839# Same as above, but do not quote variable references.
7840double_quote_subst='s/\(["`\\]\)/\\\1/g'
7841
7842# Sed substitution to delay expansion of an escaped shell variable in a
7843# double_quote_subst'ed string.
7844delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7845
7846# Sed substitution to delay expansion of an escaped single quote.
7847delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7848
7849# Sed substitution to avoid accidental globbing in evaled expressions
7850no_glob_subst='s/\*/\\\*/g'
7851
7852# Global variables:
7853ofile=libtool
7854can_build_shared=yes
7855
7856# All known linkers require a `.a' archive for static linking (except MSVC,
7857# which needs '.lib').
7858libext=a
7859
7860with_gnu_ld="$lt_cv_prog_gnu_ld"
7861
7862old_CC="$CC"
7863old_CFLAGS="$CFLAGS"
7864
7865# Set sane defaults for various variables
7866test -z "$CC" && CC=cc
7867test -z "$LTCC" && LTCC=$CC
7868test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7869test -z "$LD" && LD=ld
7870test -z "$ac_objext" && ac_objext=o
7871
7872for cc_temp in $compiler""; do
7873 case $cc_temp in
7874 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7875 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7876 \-*) ;;
7877 *) break;;
7878 esac
7879done
7880cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7881
7882
7883# Only perform the check for file, if the check method requires it
7884test -z "$MAGIC_CMD" && MAGIC_CMD=file
7885case $deplibs_check_method in
7886file_magic*)
7887 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5213506e
RW
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7889$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7890if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7891 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7892else
7893 case $MAGIC_CMD in
7894[\\/*] | ?:[\\/]*)
7895 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7896 ;;
7897*)
7898 lt_save_MAGIC_CMD="$MAGIC_CMD"
7899 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7900 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7901 for ac_dir in $ac_dummy; do
7902 IFS="$lt_save_ifs"
7903 test -z "$ac_dir" && ac_dir=.
7904 if test -f $ac_dir/${ac_tool_prefix}file; then
7905 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7906 if test -n "$file_magic_test_file"; then
7907 case $deplibs_check_method in
7908 "file_magic "*)
7909 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7910 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7911 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7912 $EGREP "$file_magic_regex" > /dev/null; then
7913 :
7914 else
7915 cat <<_LT_EOF 1>&2
7916
7917*** Warning: the command libtool uses to detect shared libraries,
7918*** $file_magic_cmd, produces output that libtool cannot recognize.
7919*** The result is that libtool may fail to recognize shared libraries
7920*** as such. This will affect the creation of libtool libraries that
7921*** depend on shared libraries, but programs linked with such libtool
7922*** libraries will work regardless of this problem. Nevertheless, you
7923*** may want to report the problem to your system manager and/or to
7924*** bug-libtool@gnu.org
7925
7926_LT_EOF
7927 fi ;;
7928 esac
7929 fi
7930 break
7931 fi
7932 done
7933 IFS="$lt_save_ifs"
7934 MAGIC_CMD="$lt_save_MAGIC_CMD"
7935 ;;
7936esac
7937fi
7938
7939MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7940if test -n "$MAGIC_CMD"; then
5213506e
RW
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7942$as_echo "$MAGIC_CMD" >&6; }
1cf3d07d 7943else
5213506e
RW
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7945$as_echo "no" >&6; }
1cf3d07d
SE
7946fi
7947
7948
7949
7950
7951
7952if test -z "$lt_cv_path_MAGIC_CMD"; then
7953 if test -n "$ac_tool_prefix"; then
5213506e
RW
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7955$as_echo_n "checking for file... " >&6; }
7956if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7957 $as_echo_n "(cached) " >&6
1cf3d07d
SE
7958else
7959 case $MAGIC_CMD in
7960[\\/*] | ?:[\\/]*)
7961 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7962 ;;
7963*)
7964 lt_save_MAGIC_CMD="$MAGIC_CMD"
7965 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7966 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7967 for ac_dir in $ac_dummy; do
7968 IFS="$lt_save_ifs"
7969 test -z "$ac_dir" && ac_dir=.
7970 if test -f $ac_dir/file; then
7971 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7972 if test -n "$file_magic_test_file"; then
7973 case $deplibs_check_method in
7974 "file_magic "*)
7975 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7976 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7977 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7978 $EGREP "$file_magic_regex" > /dev/null; then
7979 :
7980 else
7981 cat <<_LT_EOF 1>&2
7982
7983*** Warning: the command libtool uses to detect shared libraries,
7984*** $file_magic_cmd, produces output that libtool cannot recognize.
7985*** The result is that libtool may fail to recognize shared libraries
7986*** as such. This will affect the creation of libtool libraries that
7987*** depend on shared libraries, but programs linked with such libtool
7988*** libraries will work regardless of this problem. Nevertheless, you
7989*** may want to report the problem to your system manager and/or to
7990*** bug-libtool@gnu.org
7991
7992_LT_EOF
7993 fi ;;
7994 esac
7995 fi
7996 break
7997 fi
7998 done
7999 IFS="$lt_save_ifs"
8000 MAGIC_CMD="$lt_save_MAGIC_CMD"
8001 ;;
8002esac
8003fi
8004
8005MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8006if test -n "$MAGIC_CMD"; then
5213506e
RW
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8008$as_echo "$MAGIC_CMD" >&6; }
1cf3d07d 8009else
5213506e
RW
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8011$as_echo "no" >&6; }
1cf3d07d
SE
8012fi
8013
8014
8015 else
8016 MAGIC_CMD=:
8017 fi
8018fi
8019
8020 fi
8021 ;;
8022esac
8023
8024# Use C for the default configuration in the libtool script
8025
8026lt_save_CC="$CC"
8027ac_ext=c
8028ac_cpp='$CPP $CPPFLAGS'
8029ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8030ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8031ac_compiler_gnu=$ac_cv_c_compiler_gnu
8032
8033
8034# Source file extension for C test sources.
8035ac_ext=c
8036
8037# Object file extension for compiled C test sources.
8038objext=o
8039objext=$objext
8040
8041# Code to be used in simple compile tests
8042lt_simple_compile_test_code="int some_variable = 0;"
8043
8044# Code to be used in simple link tests
8045lt_simple_link_test_code='int main(){return(0);}'
8046
8047
8048
8049
8050
8051
8052
8053# If no C compiler was specified, use CC.
8054LTCC=${LTCC-"$CC"}
8055
8056# If no C compiler flags were specified, use CFLAGS.
8057LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8058
8059# Allow CC to be a program name with arguments.
8060compiler=$CC
8061
8062# Save the default compiler, since it gets overwritten when the other
8063# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8064compiler_DEFAULT=$CC
8065
8066# save warnings/boilerplate of simple test code
8067ac_outfile=conftest.$ac_objext
8068echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8069eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8070_lt_compiler_boilerplate=`cat conftest.err`
8071$RM conftest*
8072
8073ac_outfile=conftest.$ac_objext
8074echo "$lt_simple_link_test_code" >conftest.$ac_ext
8075eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8076_lt_linker_boilerplate=`cat conftest.err`
6b4a97ed 8077$RM -r conftest*
1cf3d07d
SE
8078
8079
8080## CAVEAT EMPTOR:
8081## There is no encapsulation within the following macros, do not change
8082## the running order or otherwise move them around unless you know exactly
8083## what you are doing...
8084if test -n "$compiler"; then
8085
8086lt_prog_compiler_no_builtin_flag=
8087
8088if test "$GCC" = yes; then
8089 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8090
5213506e
RW
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8092$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8093if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8094 $as_echo_n "(cached) " >&6
1cf3d07d
SE
8095else
8096 lt_cv_prog_compiler_rtti_exceptions=no
8097 ac_outfile=conftest.$ac_objext
8098 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8099 lt_compiler_flag="-fno-rtti -fno-exceptions"
8100 # Insert the option either (1) after the last *FLAGS variable, or
8101 # (2) before a word containing "conftest.", or (3) at the end.
8102 # Note that $ac_compile itself does not contain backslashes and begins
8103 # with a dollar sign (not a hyphen), so the echo should work correctly.
8104 # The option is referenced via a variable to avoid confusing sed.
8105 lt_compile=`echo "$ac_compile" | $SED \
8106 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8107 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8108 -e 's:$: $lt_compiler_flag:'`
5213506e 8109 (eval echo "\"\$as_me:8109: $lt_compile\"" >&5)
1cf3d07d
SE
8110 (eval "$lt_compile" 2>conftest.err)
8111 ac_status=$?
8112 cat conftest.err >&5
5213506e 8113 echo "$as_me:8113: \$? = $ac_status" >&5
1cf3d07d
SE
8114 if (exit $ac_status) && test -s "$ac_outfile"; then
8115 # The compiler can only warn and ignore the option if not recognized
8116 # So say no if there are warnings other than the usual output.
8117 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8118 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8119 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8120 lt_cv_prog_compiler_rtti_exceptions=yes
8121 fi
8122 fi
8123 $RM conftest*
8124
8125fi
5213506e
RW
8126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8127$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
1cf3d07d
SE
8128
8129if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8130 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8131else
8132 :
8133fi
8134
8135fi
8136
8137
8138
8139
8140
8141
8142 lt_prog_compiler_wl=
8143lt_prog_compiler_pic=
8144lt_prog_compiler_static=
8145
5213506e
RW
8146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8147$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
1cf3d07d
SE
8148
8149 if test "$GCC" = yes; then
8150 lt_prog_compiler_wl='-Wl,'
8151 lt_prog_compiler_static='-static'
8152
8153 case $host_os in
8154 aix*)
8155 # All AIX code is PIC.
8156 if test "$host_cpu" = ia64; then
8157 # AIX 5 now supports IA64 processor
8158 lt_prog_compiler_static='-Bstatic'
8159 fi
8160 ;;
8161
8162 amigaos*)
6b4a97ed
PG
8163 case $host_cpu in
8164 powerpc)
8165 # see comment about AmigaOS4 .so support
8166 lt_prog_compiler_pic='-fPIC'
8167 ;;
8168 m68k)
8169 # FIXME: we need at least 68020 code to build shared libraries, but
8170 # adding the `-m68020' flag to GCC prevents building anything better,
8171 # like `-m68040'.
8172 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8173 ;;
8174 esac
1cf3d07d
SE
8175 ;;
8176
8177 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8178 # PIC is the default for these OSes.
8179 ;;
8180
6b4a97ed 8181 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
8182 # This hack is so that the source file can tell whether it is being
8183 # built for inclusion in a dll (and should export symbols for example).
8184 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8185 # (--disable-auto-import) libraries
8186 lt_prog_compiler_pic='-DDLL_EXPORT'
8187 ;;
8188
8189 darwin* | rhapsody*)
8190 # PIC is the default on this platform
8191 # Common symbols not allowed in MH_DYLIB files
8192 lt_prog_compiler_pic='-fno-common'
8193 ;;
8194
8195 hpux*)
6b4a97ed
PG
8196 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8197 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8198 # sets the default TLS model and affects inlining.
1cf3d07d 8199 case $host_cpu in
6b4a97ed 8200 hppa*64*)
1cf3d07d
SE
8201 # +Z the default
8202 ;;
8203 *)
8204 lt_prog_compiler_pic='-fPIC'
8205 ;;
8206 esac
8207 ;;
8208
8209 interix[3-9]*)
8210 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8211 # Instead, we relocate shared libraries at runtime.
8212 ;;
8213
8214 msdosdjgpp*)
8215 # Just because we use GCC doesn't mean we suddenly get shared libraries
8216 # on systems that don't support them.
8217 lt_prog_compiler_can_build_shared=no
8218 enable_shared=no
8219 ;;
8220
8221 *nto* | *qnx*)
8222 # QNX uses GNU C++, but need to define -shared option too, otherwise
8223 # it will coredump.
8224 lt_prog_compiler_pic='-fPIC -shared'
8225 ;;
8226
8227 sysv4*MP*)
8228 if test -d /usr/nec; then
8229 lt_prog_compiler_pic=-Kconform_pic
8230 fi
8231 ;;
8232
8233 *)
8234 lt_prog_compiler_pic='-fPIC'
8235 ;;
8236 esac
8237 else
8238 # PORTME Check for flag to pass linker flags through the system compiler.
8239 case $host_os in
8240 aix*)
8241 lt_prog_compiler_wl='-Wl,'
8242 if test "$host_cpu" = ia64; then
8243 # AIX 5 now supports IA64 processor
8244 lt_prog_compiler_static='-Bstatic'
8245 else
8246 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8247 fi
8248 ;;
1cf3d07d 8249
6b4a97ed 8250 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
8251 # This hack is so that the source file can tell whether it is being
8252 # built for inclusion in a dll (and should export symbols for example).
8253 lt_prog_compiler_pic='-DDLL_EXPORT'
8254 ;;
8255
8256 hpux9* | hpux10* | hpux11*)
8257 lt_prog_compiler_wl='-Wl,'
8258 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8259 # not for PA HP-UX.
8260 case $host_cpu in
8261 hppa*64*|ia64*)
8262 # +Z the default
8263 ;;
8264 *)
8265 lt_prog_compiler_pic='+Z'
8266 ;;
8267 esac
8268 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8269 lt_prog_compiler_static='${wl}-a ${wl}archive'
8270 ;;
8271
8272 irix5* | irix6* | nonstopux*)
8273 lt_prog_compiler_wl='-Wl,'
8274 # PIC (with -KPIC) is the default.
8275 lt_prog_compiler_static='-non_shared'
8276 ;;
8277
7a9d3fe8 8278 linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d 8279 case $cc_basename in
6b4a97ed
PG
8280 # old Intel for x86_64 which still supported -KPIC.
8281 ecc*)
1cf3d07d
SE
8282 lt_prog_compiler_wl='-Wl,'
8283 lt_prog_compiler_pic='-KPIC'
8284 lt_prog_compiler_static='-static'
8285 ;;
6b4a97ed
PG
8286 # icc used to be incompatible with GCC.
8287 # ICC 10 doesn't accept -KPIC any more.
8288 icc* | ifort*)
8289 lt_prog_compiler_wl='-Wl,'
8290 lt_prog_compiler_pic='-fPIC'
8291 lt_prog_compiler_static='-static'
8292 ;;
8293 # Lahey Fortran 8.1.
8294 lf95*)
8295 lt_prog_compiler_wl='-Wl,'
8296 lt_prog_compiler_pic='--shared'
8297 lt_prog_compiler_static='--static'
8298 ;;
1cf3d07d
SE
8299 pgcc* | pgf77* | pgf90* | pgf95*)
8300 # Portland Group compilers (*not* the Pentium gcc compiler,
8301 # which looks to be a dead project)
8302 lt_prog_compiler_wl='-Wl,'
8303 lt_prog_compiler_pic='-fpic'
8304 lt_prog_compiler_static='-Bstatic'
8305 ;;
8306 ccc*)
8307 lt_prog_compiler_wl='-Wl,'
8308 # All Alpha code is PIC.
8309 lt_prog_compiler_static='-non_shared'
8310 ;;
6b4a97ed
PG
8311 xl*)
8312 # IBM XL C 8.0/Fortran 10.1 on PPC
8313 lt_prog_compiler_wl='-Wl,'
8314 lt_prog_compiler_pic='-qpic'
8315 lt_prog_compiler_static='-qstaticlink'
8316 ;;
1cf3d07d
SE
8317 *)
8318 case `$CC -V 2>&1 | sed 5q` in
8319 *Sun\ C*)
8320 # Sun C 5.9
8321 lt_prog_compiler_pic='-KPIC'
8322 lt_prog_compiler_static='-Bstatic'
8323 lt_prog_compiler_wl='-Wl,'
8324 ;;
8325 *Sun\ F*)
8326 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8327 lt_prog_compiler_pic='-KPIC'
8328 lt_prog_compiler_static='-Bstatic'
8329 lt_prog_compiler_wl=''
8330 ;;
8331 esac
8332 ;;
8333 esac
8334 ;;
8335
8336 newsos6)
8337 lt_prog_compiler_pic='-KPIC'
8338 lt_prog_compiler_static='-Bstatic'
8339 ;;
8340
8341 *nto* | *qnx*)
8342 # QNX uses GNU C++, but need to define -shared option too, otherwise
8343 # it will coredump.
8344 lt_prog_compiler_pic='-fPIC -shared'
8345 ;;
8346
8347 osf3* | osf4* | osf5*)
8348 lt_prog_compiler_wl='-Wl,'
8349 # All OSF/1 code is PIC.
8350 lt_prog_compiler_static='-non_shared'
8351 ;;
8352
8353 rdos*)
8354 lt_prog_compiler_static='-non_shared'
8355 ;;
8356
8357 solaris*)
8358 lt_prog_compiler_pic='-KPIC'
8359 lt_prog_compiler_static='-Bstatic'
8360 case $cc_basename in
8361 f77* | f90* | f95*)
8362 lt_prog_compiler_wl='-Qoption ld ';;
8363 *)
8364 lt_prog_compiler_wl='-Wl,';;
8365 esac
8366 ;;
8367
8368 sunos4*)
8369 lt_prog_compiler_wl='-Qoption ld '
8370 lt_prog_compiler_pic='-PIC'
8371 lt_prog_compiler_static='-Bstatic'
8372 ;;
8373
8374 sysv4 | sysv4.2uw2* | sysv4.3*)
8375 lt_prog_compiler_wl='-Wl,'
8376 lt_prog_compiler_pic='-KPIC'
8377 lt_prog_compiler_static='-Bstatic'
8378 ;;
8379
8380 sysv4*MP*)
8381 if test -d /usr/nec ;then
8382 lt_prog_compiler_pic='-Kconform_pic'
8383 lt_prog_compiler_static='-Bstatic'
8384 fi
8385 ;;
8386
8387 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8388 lt_prog_compiler_wl='-Wl,'
8389 lt_prog_compiler_pic='-KPIC'
8390 lt_prog_compiler_static='-Bstatic'
8391 ;;
8392
8393 unicos*)
8394 lt_prog_compiler_wl='-Wl,'
8395 lt_prog_compiler_can_build_shared=no
8396 ;;
8397
8398 uts4*)
8399 lt_prog_compiler_pic='-pic'
8400 lt_prog_compiler_static='-Bstatic'
8401 ;;
8402
8403 *)
8404 lt_prog_compiler_can_build_shared=no
8405 ;;
8406 esac
8407 fi
8408
8409case $host_os in
8410 # For platforms which do not support PIC, -DPIC is meaningless:
8411 *djgpp*)
8412 lt_prog_compiler_pic=
8413 ;;
8414 *)
8415 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8416 ;;
8417esac
5213506e
RW
8418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8419$as_echo "$lt_prog_compiler_pic" >&6; }
1cf3d07d
SE
8420
8421
8422
8423
8424
8425
8426#
8427# Check to make sure the PIC flag actually works.
8428#
8429if test -n "$lt_prog_compiler_pic"; then
5213506e
RW
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8431$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8432if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8433 $as_echo_n "(cached) " >&6
1cf3d07d 8434else
6b4a97ed 8435 lt_cv_prog_compiler_pic_works=no
1cf3d07d
SE
8436 ac_outfile=conftest.$ac_objext
8437 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8438 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8439 # Insert the option either (1) after the last *FLAGS variable, or
8440 # (2) before a word containing "conftest.", or (3) at the end.
8441 # Note that $ac_compile itself does not contain backslashes and begins
8442 # with a dollar sign (not a hyphen), so the echo should work correctly.
8443 # The option is referenced via a variable to avoid confusing sed.
8444 lt_compile=`echo "$ac_compile" | $SED \
8445 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8446 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8447 -e 's:$: $lt_compiler_flag:'`
5213506e 8448 (eval echo "\"\$as_me:8448: $lt_compile\"" >&5)
1cf3d07d
SE
8449 (eval "$lt_compile" 2>conftest.err)
8450 ac_status=$?
8451 cat conftest.err >&5
5213506e 8452 echo "$as_me:8452: \$? = $ac_status" >&5
1cf3d07d
SE
8453 if (exit $ac_status) && test -s "$ac_outfile"; then
8454 # The compiler can only warn and ignore the option if not recognized
8455 # So say no if there are warnings other than the usual output.
8456 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8457 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8458 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6b4a97ed 8459 lt_cv_prog_compiler_pic_works=yes
1cf3d07d
SE
8460 fi
8461 fi
8462 $RM conftest*
8463
8464fi
5213506e
RW
8465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8466$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
1cf3d07d 8467
6b4a97ed 8468if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
1cf3d07d
SE
8469 case $lt_prog_compiler_pic in
8470 "" | " "*) ;;
8471 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8472 esac
8473else
8474 lt_prog_compiler_pic=
8475 lt_prog_compiler_can_build_shared=no
8476fi
8477
8478fi
8479
8480
8481
8482
8483
8484
8485#
8486# Check to make sure the static flag actually works.
8487#
8488wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
5213506e
RW
8489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8490$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8491if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8492 $as_echo_n "(cached) " >&6
1cf3d07d 8493else
6b4a97ed 8494 lt_cv_prog_compiler_static_works=no
1cf3d07d
SE
8495 save_LDFLAGS="$LDFLAGS"
8496 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8497 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8498 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8499 # The linker can only warn and ignore the option if not recognized
8500 # So say no if there are warnings
8501 if test -s conftest.err; then
8502 # Append any errors to the config.log.
8503 cat conftest.err 1>&5
8504 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8505 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8506 if diff conftest.exp conftest.er2 >/dev/null; then
6b4a97ed 8507 lt_cv_prog_compiler_static_works=yes
1cf3d07d
SE
8508 fi
8509 else
6b4a97ed 8510 lt_cv_prog_compiler_static_works=yes
1cf3d07d
SE
8511 fi
8512 fi
6b4a97ed 8513 $RM -r conftest*
1cf3d07d
SE
8514 LDFLAGS="$save_LDFLAGS"
8515
8516fi
5213506e
RW
8517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8518$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
1cf3d07d 8519
6b4a97ed 8520if test x"$lt_cv_prog_compiler_static_works" = xyes; then
1cf3d07d
SE
8521 :
8522else
8523 lt_prog_compiler_static=
8524fi
8525
8526
8527
8528
8529
8530
8531
5213506e
RW
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8533$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8534if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8535 $as_echo_n "(cached) " >&6
1cf3d07d
SE
8536else
8537 lt_cv_prog_compiler_c_o=no
8538 $RM -r conftest 2>/dev/null
8539 mkdir conftest
8540 cd conftest
8541 mkdir out
8542 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8543
8544 lt_compiler_flag="-o out/conftest2.$ac_objext"
8545 # Insert the option either (1) after the last *FLAGS variable, or
8546 # (2) before a word containing "conftest.", or (3) at the end.
8547 # Note that $ac_compile itself does not contain backslashes and begins
8548 # with a dollar sign (not a hyphen), so the echo should work correctly.
8549 lt_compile=`echo "$ac_compile" | $SED \
8550 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8551 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8552 -e 's:$: $lt_compiler_flag:'`
5213506e 8553 (eval echo "\"\$as_me:8553: $lt_compile\"" >&5)
1cf3d07d
SE
8554 (eval "$lt_compile" 2>out/conftest.err)
8555 ac_status=$?
8556 cat out/conftest.err >&5
5213506e 8557 echo "$as_me:8557: \$? = $ac_status" >&5
1cf3d07d
SE
8558 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8559 then
8560 # The compiler can only warn and ignore the option if not recognized
8561 # So say no if there are warnings
8562 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8563 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8564 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8565 lt_cv_prog_compiler_c_o=yes
8566 fi
8567 fi
8568 chmod u+w . 2>&5
8569 $RM conftest*
8570 # SGI C++ compiler will create directory out/ii_files/ for
8571 # template instantiation
8572 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8573 $RM out/* && rmdir out
8574 cd ..
8575 $RM -r conftest
8576 $RM conftest*
8577
8578fi
5213506e
RW
8579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8580$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1cf3d07d
SE
8581
8582
8583
8584
8585
8586
5213506e
RW
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8588$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8589if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8590 $as_echo_n "(cached) " >&6
1cf3d07d
SE
8591else
8592 lt_cv_prog_compiler_c_o=no
8593 $RM -r conftest 2>/dev/null
8594 mkdir conftest
8595 cd conftest
8596 mkdir out
8597 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8598
8599 lt_compiler_flag="-o out/conftest2.$ac_objext"
8600 # Insert the option either (1) after the last *FLAGS variable, or
8601 # (2) before a word containing "conftest.", or (3) at the end.
8602 # Note that $ac_compile itself does not contain backslashes and begins
8603 # with a dollar sign (not a hyphen), so the echo should work correctly.
8604 lt_compile=`echo "$ac_compile" | $SED \
8605 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8606 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8607 -e 's:$: $lt_compiler_flag:'`
5213506e 8608 (eval echo "\"\$as_me:8608: $lt_compile\"" >&5)
1cf3d07d
SE
8609 (eval "$lt_compile" 2>out/conftest.err)
8610 ac_status=$?
8611 cat out/conftest.err >&5
5213506e 8612 echo "$as_me:8612: \$? = $ac_status" >&5
1cf3d07d
SE
8613 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8614 then
8615 # The compiler can only warn and ignore the option if not recognized
8616 # So say no if there are warnings
8617 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8618 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8619 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8620 lt_cv_prog_compiler_c_o=yes
8621 fi
8622 fi
8623 chmod u+w . 2>&5
8624 $RM conftest*
8625 # SGI C++ compiler will create directory out/ii_files/ for
8626 # template instantiation
8627 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8628 $RM out/* && rmdir out
8629 cd ..
8630 $RM -r conftest
8631 $RM conftest*
8632
8633fi
5213506e
RW
8634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8635$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1cf3d07d
SE
8636
8637
8638
8639
8640hard_links="nottested"
8641if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8642 # do not overwrite the value of need_locks provided by the user
5213506e
RW
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8644$as_echo_n "checking if we can lock with hard links... " >&6; }
1cf3d07d
SE
8645 hard_links=yes
8646 $RM conftest*
8647 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8648 touch conftest.a
8649 ln conftest.a conftest.b 2>&5 || hard_links=no
8650 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5213506e
RW
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8652$as_echo "$hard_links" >&6; }
1cf3d07d 8653 if test "$hard_links" = no; then
5213506e
RW
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8655$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1cf3d07d
SE
8656 need_locks=warn
8657 fi
8658else
8659 need_locks=no
8660fi
8661
8662
8663
8664
8665
8666
5213506e
RW
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8668$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1cf3d07d
SE
8669
8670 runpath_var=
8671 allow_undefined_flag=
8672 always_export_symbols=no
8673 archive_cmds=
8674 archive_expsym_cmds=
8675 compiler_needs_object=no
8676 enable_shared_with_static_runtimes=no
8677 export_dynamic_flag_spec=
8678 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8679 hardcode_automatic=no
8680 hardcode_direct=no
8681 hardcode_direct_absolute=no
8682 hardcode_libdir_flag_spec=
8683 hardcode_libdir_flag_spec_ld=
8684 hardcode_libdir_separator=
8685 hardcode_minus_L=no
8686 hardcode_shlibpath_var=unsupported
8687 inherit_rpath=no
8688 link_all_deplibs=unknown
8689 module_cmds=
8690 module_expsym_cmds=
8691 old_archive_from_new_cmds=
8692 old_archive_from_expsyms_cmds=
8693 thread_safe_flag_spec=
8694 whole_archive_flag_spec=
8695 # include_expsyms should be a list of space-separated symbols to be *always*
8696 # included in the symbol list
8697 include_expsyms=
8698 # exclude_expsyms can be an extended regexp of symbols to exclude
8699 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8700 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8701 # as well as any symbol that contains `d'.
6b4a97ed 8702 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1cf3d07d
SE
8703 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8704 # platforms (ab)use it in PIC code, but their linkers get confused if
8705 # the symbol is explicitly referenced. Since portable code cannot
8706 # rely on this symbol name, it's probably fine to never include it in
8707 # preloaded symbol tables.
6b4a97ed 8708 # Exclude shared library initialization/finalization symbols.
1cf3d07d
SE
8709 extract_expsyms_cmds=
8710
8711 case $host_os in
6b4a97ed 8712 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
8713 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8714 # When not using gcc, we currently assume that we are using
8715 # Microsoft Visual C++.
8716 if test "$GCC" != yes; then
8717 with_gnu_ld=no
8718 fi
8719 ;;
8720 interix*)
8721 # we just hope/assume this is gcc and not c89 (= MSVC++)
8722 with_gnu_ld=yes
8723 ;;
8724 openbsd*)
8725 with_gnu_ld=no
8726 ;;
8727 esac
8728
8729 ld_shlibs=yes
8730 if test "$with_gnu_ld" = yes; then
8731 # If archive_cmds runs LD, not CC, wlarc should be empty
8732 wlarc='${wl}'
8733
8734 # Set some defaults for GNU ld with shared library support. These
8735 # are reset later if shared libraries are not supported. Putting them
8736 # here allows them to be overridden if necessary.
8737 runpath_var=LD_RUN_PATH
8738 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8739 export_dynamic_flag_spec='${wl}--export-dynamic'
8740 # ancient GNU ld didn't support --whole-archive et. al.
8741 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8742 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8743 else
8744 whole_archive_flag_spec=
8745 fi
8746 supports_anon_versioning=no
8747 case `$LD -v 2>&1` in
8748 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8749 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8750 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8751 *\ 2.11.*) ;; # other 2.11 versions
8752 *) supports_anon_versioning=yes ;;
8753 esac
8754
8755 # See if GNU ld supports shared libraries.
8756 case $host_os in
d653fdfb 8757 aix[3-9]*)
1cf3d07d
SE
8758 # On AIX/PPC, the GNU linker is very broken
8759 if test "$host_cpu" != ia64; then
8760 ld_shlibs=no
8761 cat <<_LT_EOF 1>&2
8762
8763*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8764*** to be unable to reliably create shared libraries on AIX.
8765*** Therefore, libtool is disabling shared libraries support. If you
8766*** really care for shared libraries, you may want to modify your PATH
8767*** so that a non-GNU linker is found, and then restart.
8768
8769_LT_EOF
8770 fi
8771 ;;
8772
8773 amigaos*)
6b4a97ed
PG
8774 case $host_cpu in
8775 powerpc)
8776 # see comment about AmigaOS4 .so support
8777 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8778 archive_expsym_cmds=''
8779 ;;
8780 m68k)
8781 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)'
8782 hardcode_libdir_flag_spec='-L$libdir'
8783 hardcode_minus_L=yes
8784 ;;
8785 esac
1cf3d07d
SE
8786 ;;
8787
8788 beos*)
8789 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8790 allow_undefined_flag=unsupported
8791 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8792 # support --undefined. This deserves some investigation. FIXME
8793 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8794 else
8795 ld_shlibs=no
8796 fi
8797 ;;
8798
6b4a97ed 8799 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
8800 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8801 # as there is no search path for DLLs.
8802 hardcode_libdir_flag_spec='-L$libdir'
8803 allow_undefined_flag=unsupported
8804 always_export_symbols=no
8805 enable_shared_with_static_runtimes=yes
8806 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8807
8808 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8809 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8810 # If the export-symbols file already is a .def file (1st line
8811 # is EXPORTS), use it as is; otherwise, prepend...
8812 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8813 cp $export_symbols $output_objdir/$soname.def;
8814 else
8815 echo EXPORTS > $output_objdir/$soname.def;
8816 cat $export_symbols >> $output_objdir/$soname.def;
8817 fi~
8818 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8819 else
8820 ld_shlibs=no
8821 fi
8822 ;;
8823
8824 interix[3-9]*)
8825 hardcode_direct=no
8826 hardcode_shlibpath_var=no
8827 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8828 export_dynamic_flag_spec='${wl}-E'
8829 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8830 # Instead, shared libraries are loaded at an image base (0x10000000 by
8831 # default) and relocated if they conflict, which is a slow very memory
8832 # consuming and fragmenting process. To avoid this, we pick a random,
8833 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8834 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8835 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8836 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'
8837 ;;
8838
7a9d3fe8 8839 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
8840 tmp_diet=no
8841 if test "$host_os" = linux-dietlibc; then
8842 case $cc_basename in
8843 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8844 esac
8845 fi
8846 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8847 && test "$tmp_diet" = no
8848 then
8849 tmp_addflag=
6b4a97ed 8850 tmp_sharedflag='-shared'
1cf3d07d
SE
8851 case $cc_basename,$host_cpu in
8852 pgcc*) # Portland Group C compiler
8853 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8854 tmp_addflag=' $pic_flag'
8855 ;;
8856 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8857 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8858 tmp_addflag=' $pic_flag -Mnomain' ;;
8859 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8860 tmp_addflag=' -i_dynamic' ;;
8861 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8862 tmp_addflag=' -i_dynamic -nofor_main' ;;
8863 ifc* | ifort*) # Intel Fortran compiler
8864 tmp_addflag=' -nofor_main' ;;
6b4a97ed
PG
8865 lf95*) # Lahey Fortran 8.1
8866 whole_archive_flag_spec=
8867 tmp_sharedflag='--shared' ;;
8868 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8869 tmp_sharedflag='-qmkshrobj'
8870 tmp_addflag= ;;
1cf3d07d
SE
8871 esac
8872 case `$CC -V 2>&1 | sed 5q` in
8873 *Sun\ C*) # Sun C 5.9
8874 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8875 compiler_needs_object=yes
8876 tmp_sharedflag='-G' ;;
8877 *Sun\ F*) # Sun Fortran 8.3
8878 tmp_sharedflag='-G' ;;
1cf3d07d
SE
8879 esac
8880 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8881
8882 if test "x$supports_anon_versioning" = xyes; then
8883 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8884 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8885 echo "local: *; };" >> $output_objdir/$libname.ver~
8886 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8887 fi
6b4a97ed
PG
8888
8889 case $cc_basename in
8890 xlf*)
8891 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8892 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8893 hardcode_libdir_flag_spec=
8894 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8895 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8896 if test "x$supports_anon_versioning" = xyes; then
8897 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8898 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8899 echo "local: *; };" >> $output_objdir/$libname.ver~
8900 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8901 fi
8902 ;;
8903 esac
1cf3d07d
SE
8904 else
8905 ld_shlibs=no
8906 fi
8907 ;;
8908
8909 netbsd*)
8910 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8911 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8912 wlarc=
8913 else
8914 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8915 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8916 fi
8917 ;;
8918
8919 solaris*)
8920 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8921 ld_shlibs=no
8922 cat <<_LT_EOF 1>&2
8923
8924*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8925*** create shared libraries on Solaris systems. Therefore, libtool
8926*** is disabling shared libraries support. We urge you to upgrade GNU
8927*** binutils to release 2.9.1 or newer. Another option is to modify
8928*** your PATH or compiler configuration so that the native linker is
8929*** used, and then restart.
8930
8931_LT_EOF
8932 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8933 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8934 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8935 else
8936 ld_shlibs=no
8937 fi
8938 ;;
8939
8940 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8941 case `$LD -v 2>&1` in
8942 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8943 ld_shlibs=no
8944 cat <<_LT_EOF 1>&2
8945
8946*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8947*** reliably create shared libraries on SCO systems. Therefore, libtool
8948*** is disabling shared libraries support. We urge you to upgrade GNU
8949*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8950*** your PATH or compiler configuration so that the native linker is
8951*** used, and then restart.
8952
8953_LT_EOF
8954 ;;
8955 *)
8956 # For security reasons, it is highly recommended that you always
8957 # use absolute paths for naming shared libraries, and exclude the
8958 # DT_RUNPATH tag from executables and libraries. But doing so
8959 # requires that you compile everything twice, which is a pain.
8960 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8961 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8962 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8963 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8964 else
8965 ld_shlibs=no
8966 fi
8967 ;;
8968 esac
8969 ;;
8970
8971 sunos4*)
8972 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8973 wlarc=
8974 hardcode_direct=yes
8975 hardcode_shlibpath_var=no
8976 ;;
8977
8978 *)
8979 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8980 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8981 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8982 else
8983 ld_shlibs=no
8984 fi
8985 ;;
8986 esac
8987
8988 if test "$ld_shlibs" = no; then
8989 runpath_var=
8990 hardcode_libdir_flag_spec=
8991 export_dynamic_flag_spec=
8992 whole_archive_flag_spec=
8993 fi
8994 else
8995 # PORTME fill in a description of your system's linker (not GNU ld)
8996 case $host_os in
8997 aix3*)
8998 allow_undefined_flag=unsupported
8999 always_export_symbols=yes
9000 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'
9001 # Note: this linker hardcodes the directories in LIBPATH if there
9002 # are no directories specified by -L.
9003 hardcode_minus_L=yes
9004 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9005 # Neither direct hardcoding nor static linking is supported with a
9006 # broken collect2.
9007 hardcode_direct=unsupported
9008 fi
9009 ;;
9010
d653fdfb 9011 aix[4-9]*)
1cf3d07d
SE
9012 if test "$host_cpu" = ia64; then
9013 # On IA64, the linker does run time linking by default, so we don't
9014 # have to do anything special.
9015 aix_use_runtimelinking=no
9016 exp_sym_flag='-Bexport'
9017 no_entry_flag=""
9018 else
9019 # If we're using GNU nm, then we don't want the "-C" option.
9020 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9021 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9022 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9023 else
9024 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'
9025 fi
9026 aix_use_runtimelinking=no
9027
9028 # Test if we are trying to use run time linking or normal
9029 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9030 # need to do runtime linking.
d653fdfb 9031 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1cf3d07d
SE
9032 for ld_flag in $LDFLAGS; do
9033 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9034 aix_use_runtimelinking=yes
9035 break
9036 fi
9037 done
9038 ;;
9039 esac
9040
9041 exp_sym_flag='-bexport'
9042 no_entry_flag='-bnoentry'
9043 fi
9044
9045 # When large executables or shared objects are built, AIX ld can
9046 # have problems creating the table of contents. If linking a library
9047 # or program results in "error TOC overflow" add -mminimal-toc to
9048 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9049 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9050
9051 archive_cmds=''
9052 hardcode_direct=yes
9053 hardcode_direct_absolute=yes
9054 hardcode_libdir_separator=':'
9055 link_all_deplibs=yes
9056 file_list_spec='${wl}-f,'
9057
9058 if test "$GCC" = yes; then
9059 case $host_os in aix4.[012]|aix4.[012].*)
9060 # We only want to do this on AIX 4.2 and lower, the check
9061 # below for broken collect2 doesn't work under 4.3+
9062 collect2name=`${CC} -print-prog-name=collect2`
9063 if test -f "$collect2name" &&
9064 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9065 then
9066 # We have reworked collect2
9067 :
9068 else
9069 # We have old collect2
9070 hardcode_direct=unsupported
9071 # It fails to find uninstalled libraries when the uninstalled
9072 # path is not listed in the libpath. Setting hardcode_minus_L
9073 # to unsupported forces relinking
9074 hardcode_minus_L=yes
9075 hardcode_libdir_flag_spec='-L$libdir'
9076 hardcode_libdir_separator=
9077 fi
9078 ;;
9079 esac
9080 shared_flag='-shared'
9081 if test "$aix_use_runtimelinking" = yes; then
9082 shared_flag="$shared_flag "'${wl}-G'
9083 fi
9084 else
9085 # not using gcc
9086 if test "$host_cpu" = ia64; then
9087 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9088 # chokes on -Wl,-G. The following line is correct:
9089 shared_flag='-G'
9090 else
9091 if test "$aix_use_runtimelinking" = yes; then
9092 shared_flag='${wl}-G'
9093 else
9094 shared_flag='${wl}-bM:SRE'
9095 fi
9096 fi
9097 fi
9098
6b4a97ed 9099 export_dynamic_flag_spec='${wl}-bexpall'
1cf3d07d
SE
9100 # It seems that -bexpall does not export symbols beginning with
9101 # underscore (_), so it is better to generate a list of symbols to export.
9102 always_export_symbols=yes
9103 if test "$aix_use_runtimelinking" = yes; then
9104 # Warning - without using the other runtime loading flags (-brtl),
9105 # -berok will link without error, but may produce a broken library.
9106 allow_undefined_flag='-berok'
9107 # Determine the default libpath from the value encoded in an
9108 # empty executable.
5213506e 9109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
9110/* end confdefs.h. */
9111
9112int
9113main ()
9114{
9115
9116 ;
9117 return 0;
9118}
9119_ACEOF
5213506e 9120if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
9121
9122lt_aix_libpath_sed='
9123 /Import File Strings/,/^$/ {
9124 /^0/ {
9125 s/^0 *\(.*\)$/\1/
9126 p
9127 }
9128 }'
9129aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9130# Check for a 64-bit object if we didn't find anything.
9131if test -z "$aix_libpath"; then
9132 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9133fi
1cf3d07d 9134fi
5213506e
RW
9135rm -f core conftest.err conftest.$ac_objext \
9136 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
9137if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9138
9139 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9140 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9141 else
9142 if test "$host_cpu" = ia64; then
9143 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9144 allow_undefined_flag="-z nodefs"
9145 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"
9146 else
9147 # Determine the default libpath from the value encoded in an
9148 # empty executable.
5213506e 9149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
9150/* end confdefs.h. */
9151
9152int
9153main ()
9154{
9155
9156 ;
9157 return 0;
9158}
9159_ACEOF
5213506e 9160if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
9161
9162lt_aix_libpath_sed='
9163 /Import File Strings/,/^$/ {
9164 /^0/ {
9165 s/^0 *\(.*\)$/\1/
9166 p
9167 }
9168 }'
9169aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9170# Check for a 64-bit object if we didn't find anything.
9171if test -z "$aix_libpath"; then
9172 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9173fi
1cf3d07d 9174fi
5213506e
RW
9175rm -f core conftest.err conftest.$ac_objext \
9176 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
9177if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9178
9179 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9180 # Warning - without using the other run time loading flags,
9181 # -berok will link without error, but may produce a broken library.
9182 no_undefined_flag=' ${wl}-bernotok'
9183 allow_undefined_flag=' ${wl}-berok'
9184 # Exported symbols can be pulled into shared objects from archives
9185 whole_archive_flag_spec='$convenience'
9186 archive_cmds_need_lc=yes
9187 # This is similar to how AIX traditionally builds its shared libraries.
9188 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'
9189 fi
9190 fi
9191 ;;
9192
9193 amigaos*)
6b4a97ed
PG
9194 case $host_cpu in
9195 powerpc)
9196 # see comment about AmigaOS4 .so support
9197 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9198 archive_expsym_cmds=''
9199 ;;
9200 m68k)
9201 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)'
9202 hardcode_libdir_flag_spec='-L$libdir'
9203 hardcode_minus_L=yes
9204 ;;
9205 esac
1cf3d07d
SE
9206 ;;
9207
9208 bsdi[45]*)
9209 export_dynamic_flag_spec=-rdynamic
9210 ;;
9211
6b4a97ed 9212 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
9213 # When not using gcc, we currently assume that we are using
9214 # Microsoft Visual C++.
9215 # hardcode_libdir_flag_spec is actually meaningless, as there is
9216 # no search path for DLLs.
9217 hardcode_libdir_flag_spec=' '
9218 allow_undefined_flag=unsupported
9219 # Tell ltmain to make .lib files, not .a files.
9220 libext=lib
9221 # Tell ltmain to make .dll files, not .so files.
9222 shrext_cmds=".dll"
9223 # FIXME: Setting linknames here is a bad hack.
9224 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9225 # The linker will automatically build a .lib file if we build a DLL.
9226 old_archive_from_new_cmds='true'
9227 # FIXME: Should let the user specify the lib program.
9228 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9229 fix_srcfile_path='`cygpath -w "$srcfile"`'
9230 enable_shared_with_static_runtimes=yes
9231 ;;
9232
9233 darwin* | rhapsody*)
1cf3d07d 9234
6b4a97ed
PG
9235
9236 archive_cmds_need_lc=no
9237 hardcode_direct=no
9238 hardcode_automatic=yes
9239 hardcode_shlibpath_var=unsupported
9240 whole_archive_flag_spec=''
9241 link_all_deplibs=yes
9242 allow_undefined_flag="$_lt_dar_allow_undefined"
9243 case $cc_basename in
9244 ifort*) _lt_dar_can_shared=yes ;;
9245 *) _lt_dar_can_shared=$GCC ;;
9246 esac
9247 if test "$_lt_dar_can_shared" = "yes"; then
9248 output_verbose_link_cmd=echo
9249 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9250 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9251 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}"
9252 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}"
9253
9254 else
9255 ld_shlibs=no
9256 fi
9257
1cf3d07d
SE
9258 ;;
9259
9260 dgux*)
9261 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9262 hardcode_libdir_flag_spec='-L$libdir'
9263 hardcode_shlibpath_var=no
9264 ;;
9265
9266 freebsd1*)
9267 ld_shlibs=no
9268 ;;
9269
9270 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9271 # support. Future versions do this automatically, but an explicit c++rt0.o
9272 # does not break anything, and helps significantly (at the cost of a little
9273 # extra space).
9274 freebsd2.2*)
9275 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9276 hardcode_libdir_flag_spec='-R$libdir'
9277 hardcode_direct=yes
9278 hardcode_shlibpath_var=no
9279 ;;
9280
9281 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9282 freebsd2*)
9283 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9284 hardcode_direct=yes
9285 hardcode_minus_L=yes
9286 hardcode_shlibpath_var=no
9287 ;;
9288
9289 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9290 freebsd* | dragonfly*)
9291 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9292 hardcode_libdir_flag_spec='-R$libdir'
9293 hardcode_direct=yes
9294 hardcode_shlibpath_var=no
9295 ;;
9296
9297 hpux9*)
9298 if test "$GCC" = yes; then
9299 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'
9300 else
9301 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'
9302 fi
9303 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9304 hardcode_libdir_separator=:
9305 hardcode_direct=yes
9306
9307 # hardcode_minus_L: Not really in the search PATH,
9308 # but as the default location of the library.
9309 hardcode_minus_L=yes
9310 export_dynamic_flag_spec='${wl}-E'
9311 ;;
9312
9313 hpux10*)
9314 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9315 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9316 else
9317 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9318 fi
9319 if test "$with_gnu_ld" = no; then
9320 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9321 hardcode_libdir_flag_spec_ld='+b $libdir'
9322 hardcode_libdir_separator=:
9323 hardcode_direct=yes
9324 hardcode_direct_absolute=yes
9325 export_dynamic_flag_spec='${wl}-E'
9326 # hardcode_minus_L: Not really in the search PATH,
9327 # but as the default location of the library.
9328 hardcode_minus_L=yes
9329 fi
9330 ;;
9331
9332 hpux11*)
9333 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9334 case $host_cpu in
9335 hppa*64*)
9336 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9337 ;;
9338 ia64*)
6b4a97ed 9339 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
9340 ;;
9341 *)
9342 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9343 ;;
9344 esac
9345 else
9346 case $host_cpu in
9347 hppa*64*)
9348 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9349 ;;
9350 ia64*)
9351 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9352 ;;
9353 *)
9354 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9355 ;;
9356 esac
9357 fi
9358 if test "$with_gnu_ld" = no; then
9359 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9360 hardcode_libdir_separator=:
9361
9362 case $host_cpu in
9363 hppa*64*|ia64*)
9364 hardcode_direct=no
9365 hardcode_shlibpath_var=no
9366 ;;
9367 *)
9368 hardcode_direct=yes
9369 hardcode_direct_absolute=yes
9370 export_dynamic_flag_spec='${wl}-E'
9371
9372 # hardcode_minus_L: Not really in the search PATH,
9373 # but as the default location of the library.
9374 hardcode_minus_L=yes
9375 ;;
9376 esac
9377 fi
9378 ;;
9379
9380 irix5* | irix6* | nonstopux*)
9381 if test "$GCC" = yes; then
9382 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9383 # Try to use the -exported_symbol ld option, if it does not
9384 # work, assume that -exports_file does not work either and
9385 # implicitly export all symbols.
9386 save_LDFLAGS="$LDFLAGS"
9387 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5213506e
RW
9388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9389/* end confdefs.h. */
1cf3d07d
SE
9390int foo(void) {}
9391_ACEOF
5213506e 9392if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
9393 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9394
1cf3d07d 9395fi
5213506e
RW
9396rm -f core conftest.err conftest.$ac_objext \
9397 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
9398 LDFLAGS="$save_LDFLAGS"
9399 else
9400 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9401 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9402 fi
9403 archive_cmds_need_lc='no'
9404 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9405 hardcode_libdir_separator=:
9406 inherit_rpath=yes
9407 link_all_deplibs=yes
9408 ;;
9409
9410 netbsd*)
9411 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9412 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9413 else
9414 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9415 fi
9416 hardcode_libdir_flag_spec='-R$libdir'
9417 hardcode_direct=yes
9418 hardcode_shlibpath_var=no
9419 ;;
9420
9421 newsos6)
9422 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9423 hardcode_direct=yes
9424 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9425 hardcode_libdir_separator=:
9426 hardcode_shlibpath_var=no
9427 ;;
9428
9429 *nto* | *qnx*)
9430 ;;
9431
9432 openbsd*)
6b4a97ed
PG
9433 if test -f /usr/libexec/ld.so; then
9434 hardcode_direct=yes
9435 hardcode_shlibpath_var=no
9436 hardcode_direct_absolute=yes
9437 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1cf3d07d 9438 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6b4a97ed 9439 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
1cf3d07d 9440 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6b4a97ed
PG
9441 export_dynamic_flag_spec='${wl}-E'
9442 else
9443 case $host_os in
9444 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9445 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9446 hardcode_libdir_flag_spec='-R$libdir'
9447 ;;
9448 *)
9449 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9450 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9451 ;;
9452 esac
9453 fi
9454 else
9455 ld_shlibs=no
1cf3d07d
SE
9456 fi
9457 ;;
9458
9459 os2*)
9460 hardcode_libdir_flag_spec='-L$libdir'
9461 hardcode_minus_L=yes
9462 allow_undefined_flag=unsupported
9463 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'
9464 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9465 ;;
9466
9467 osf3*)
9468 if test "$GCC" = yes; then
9469 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9470 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9471 else
9472 allow_undefined_flag=' -expect_unresolved \*'
9473 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9474 fi
9475 archive_cmds_need_lc='no'
9476 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9477 hardcode_libdir_separator=:
9478 ;;
9479
9480 osf4* | osf5*) # as osf3* with the addition of -msym flag
9481 if test "$GCC" = yes; then
9482 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9483 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9484 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9485 else
9486 allow_undefined_flag=' -expect_unresolved \*'
9487 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9488 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~
9489 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9490
9491 # Both c and cxx compiler support -rpath directly
9492 hardcode_libdir_flag_spec='-rpath $libdir'
9493 fi
9494 archive_cmds_need_lc='no'
9495 hardcode_libdir_separator=:
9496 ;;
9497
9498 solaris*)
9499 no_undefined_flag=' -z defs'
9500 if test "$GCC" = yes; then
9501 wlarc='${wl}'
9502 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9503 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9504 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9505 else
9506 case `$CC -V 2>&1` in
9507 *"Compilers 5.0"*)
9508 wlarc=''
9509 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9510 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9511 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9512 ;;
9513 *)
9514 wlarc='${wl}'
9515 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9516 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9517 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9518 ;;
9519 esac
9520 fi
9521 hardcode_libdir_flag_spec='-R$libdir'
9522 hardcode_shlibpath_var=no
9523 case $host_os in
9524 solaris2.[0-5] | solaris2.[0-5].*) ;;
9525 *)
9526 # The compiler driver will combine and reorder linker options,
9527 # but understands `-z linker_flag'. GCC discards it without `$wl',
9528 # but is careful enough not to reorder.
9529 # Supported since Solaris 2.6 (maybe 2.5.1?)
9530 if test "$GCC" = yes; then
9531 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9532 else
9533 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9534 fi
9535 ;;
9536 esac
9537 link_all_deplibs=yes
9538 ;;
9539
9540 sunos4*)
9541 if test "x$host_vendor" = xsequent; then
9542 # Use $CC to link under sequent, because it throws in some extra .o
9543 # files that make .init and .fini sections work.
9544 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9545 else
9546 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9547 fi
9548 hardcode_libdir_flag_spec='-L$libdir'
9549 hardcode_direct=yes
9550 hardcode_minus_L=yes
9551 hardcode_shlibpath_var=no
9552 ;;
9553
9554 sysv4)
9555 case $host_vendor in
9556 sni)
9557 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9558 hardcode_direct=yes # is this really true???
9559 ;;
9560 siemens)
9561 ## LD is ld it makes a PLAMLIB
9562 ## CC just makes a GrossModule.
9563 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9564 reload_cmds='$CC -r -o $output$reload_objs'
9565 hardcode_direct=no
9566 ;;
9567 motorola)
9568 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9569 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9570 ;;
9571 esac
9572 runpath_var='LD_RUN_PATH'
9573 hardcode_shlibpath_var=no
9574 ;;
9575
9576 sysv4.3*)
9577 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9578 hardcode_shlibpath_var=no
9579 export_dynamic_flag_spec='-Bexport'
9580 ;;
9581
9582 sysv4*MP*)
9583 if test -d /usr/nec; then
9584 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9585 hardcode_shlibpath_var=no
9586 runpath_var=LD_RUN_PATH
9587 hardcode_runpath_var=yes
9588 ld_shlibs=yes
9589 fi
9590 ;;
9591
9592 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9593 no_undefined_flag='${wl}-z,text'
9594 archive_cmds_need_lc=no
9595 hardcode_shlibpath_var=no
9596 runpath_var='LD_RUN_PATH'
9597
9598 if test "$GCC" = yes; then
9599 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9600 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9601 else
9602 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9603 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9604 fi
9605 ;;
9606
9607 sysv5* | sco3.2v5* | sco5v6*)
9608 # Note: We can NOT use -z defs as we might desire, because we do not
9609 # link with -lc, and that would cause any symbols used from libc to
9610 # always be unresolved, which means just about no library would
9611 # ever link correctly. If we're not using GNU ld we use -z text
9612 # though, which does catch some bad symbols but isn't as heavy-handed
9613 # as -z defs.
9614 no_undefined_flag='${wl}-z,text'
9615 allow_undefined_flag='${wl}-z,nodefs'
9616 archive_cmds_need_lc=no
9617 hardcode_shlibpath_var=no
9618 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9619 hardcode_libdir_separator=':'
9620 link_all_deplibs=yes
9621 export_dynamic_flag_spec='${wl}-Bexport'
9622 runpath_var='LD_RUN_PATH'
9623
9624 if test "$GCC" = yes; then
9625 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9626 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9627 else
9628 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9629 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9630 fi
9631 ;;
9632
9633 uts4*)
9634 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9635 hardcode_libdir_flag_spec='-L$libdir'
9636 hardcode_shlibpath_var=no
9637 ;;
9638
9639 *)
9640 ld_shlibs=no
9641 ;;
9642 esac
9643
9644 if test x$host_vendor = xsni; then
9645 case $host in
9646 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9647 export_dynamic_flag_spec='${wl}-Blargedynsym'
9648 ;;
9649 esac
9650 fi
9651 fi
9652
5213506e
RW
9653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9654$as_echo "$ld_shlibs" >&6; }
1cf3d07d
SE
9655test "$ld_shlibs" = no && can_build_shared=no
9656
9657with_gnu_ld=$with_gnu_ld
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673#
9674# Do we need to explicitly link libc?
9675#
9676case "x$archive_cmds_need_lc" in
9677x|xyes)
9678 # Assume -lc should be added
9679 archive_cmds_need_lc=yes
9680
9681 if test "$enable_shared" = yes && test "$GCC" = yes; then
9682 case $archive_cmds in
9683 *'~'*)
9684 # FIXME: we may have to deal with multi-command sequences.
9685 ;;
9686 '$CC '*)
9687 # Test whether the compiler implicitly links with -lc since on some
9688 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9689 # to ld, don't add -lc before -lgcc.
5213506e
RW
9690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9691$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9692if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9693 $as_echo_n "(cached) " >&6
baafc534
RW
9694else
9695 $RM conftest*
9696 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1cf3d07d 9697
5213506e 9698 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
9699 (eval $ac_compile) 2>&5
9700 ac_status=$?
5213506e
RW
9701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9702 test $ac_status = 0; } 2>conftest.err; then
baafc534
RW
9703 soname=conftest
9704 lib=conftest
9705 libobjs=conftest.$ac_objext
9706 deplibs=
9707 wl=$lt_prog_compiler_wl
9708 pic_flag=$lt_prog_compiler_pic
9709 compiler_flags=-v
9710 linker_flags=-v
9711 verstring=
9712 output_objdir=.
9713 libname=conftest
9714 lt_save_allow_undefined_flag=$allow_undefined_flag
9715 allow_undefined_flag=
5213506e 9716 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1cf3d07d
SE
9717 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9718 ac_status=$?
5213506e
RW
9719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9720 test $ac_status = 0; }
baafc534
RW
9721 then
9722 lt_cv_archive_cmds_need_lc=no
9723 else
9724 lt_cv_archive_cmds_need_lc=yes
9725 fi
9726 allow_undefined_flag=$lt_save_allow_undefined_flag
9727 else
9728 cat conftest.err 1>&5
9729 fi
9730 $RM conftest*
9731
9732fi
5213506e
RW
9733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9734$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
baafc534 9735 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
1cf3d07d
SE
9736 ;;
9737 esac
9738 fi
9739 ;;
9740esac
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
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
5213506e
RW
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9899$as_echo_n "checking dynamic linker characteristics... " >&6; }
6b4a97ed
PG
9900
9901if test "$GCC" = yes; then
1cf3d07d
SE
9902 case $host_os in
9903 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9904 *) lt_awk_arg="/^libraries:/" ;;
9905 esac
9906 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9907 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9908 # if the path contains ";" then we assume it to be the separator
9909 # otherwise default to the standard path separator (i.e. ":") - it is
9910 # assumed that no part of a normal pathname contains ";" but that should
9911 # okay in the real world where ";" in dirpaths is itself problematic.
9912 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9913 else
9914 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9915 fi
9916 # Ok, now we have the path, separated by spaces, we can step through it
9917 # and add multilib dir if necessary.
9918 lt_tmp_lt_search_path_spec=
9919 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9920 for lt_sys_path in $lt_search_path_spec; do
9921 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9922 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9923 else
9924 test -d "$lt_sys_path" && \
9925 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9926 fi
9927 done
9928 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9929BEGIN {RS=" "; FS="/|\n";} {
9930 lt_foo="";
9931 lt_count=0;
9932 for (lt_i = NF; lt_i > 0; lt_i--) {
9933 if ($lt_i != "" && $lt_i != ".") {
9934 if ($lt_i == "..") {
9935 lt_count++;
9936 } else {
9937 if (lt_count == 0) {
9938 lt_foo="/" $lt_i lt_foo;
9939 } else {
9940 lt_count--;
9941 }
9942 }
9943 }
9944 }
9945 if (lt_foo != "") { lt_freq[lt_foo]++; }
9946 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9947}'`
9948 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9949else
9950 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9951fi
9952library_names_spec=
9953libname_spec='lib$name'
9954soname_spec=
9955shrext_cmds=".so"
9956postinstall_cmds=
9957postuninstall_cmds=
9958finish_cmds=
9959finish_eval=
9960shlibpath_var=
9961shlibpath_overrides_runpath=unknown
9962version_type=none
9963dynamic_linker="$host_os ld.so"
9964sys_lib_dlsearch_path_spec="/lib /usr/lib"
9965need_lib_prefix=unknown
9966hardcode_into_libs=no
9967
9968# when you set need_version to no, make sure it does not cause -set_version
9969# flags to be left without arguments
9970need_version=unknown
9971
9972case $host_os in
9973aix3*)
9974 version_type=linux
9975 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9976 shlibpath_var=LIBPATH
9977
9978 # AIX 3 has no versioning support, so we append a major version to the name.
9979 soname_spec='${libname}${release}${shared_ext}$major'
9980 ;;
9981
d653fdfb 9982aix[4-9]*)
1cf3d07d
SE
9983 version_type=linux
9984 need_lib_prefix=no
9985 need_version=no
9986 hardcode_into_libs=yes
9987 if test "$host_cpu" = ia64; then
9988 # AIX 5 supports IA64
9989 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9990 shlibpath_var=LD_LIBRARY_PATH
9991 else
9992 # With GCC up to 2.95.x, collect2 would create an import file
9993 # for dependence libraries. The import file would start with
9994 # the line `#! .'. This would cause the generated library to
9995 # depend on `.', always an invalid library. This was fixed in
9996 # development snapshots of GCC prior to 3.0.
9997 case $host_os in
9998 aix4 | aix4.[01] | aix4.[01].*)
9999 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10000 echo ' yes '
10001 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10002 :
10003 else
10004 can_build_shared=no
10005 fi
10006 ;;
10007 esac
10008 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10009 # soname into executable. Probably we can add versioning support to
10010 # collect2, so additional links can be useful in future.
10011 if test "$aix_use_runtimelinking" = yes; then
10012 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10013 # instead of lib<name>.a to let people know that these are not
10014 # typical AIX shared libraries.
10015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10016 else
10017 # We preserve .a as extension for shared libraries through AIX4.2
10018 # and later when we are not doing run time linking.
10019 library_names_spec='${libname}${release}.a $libname.a'
10020 soname_spec='${libname}${release}${shared_ext}$major'
10021 fi
10022 shlibpath_var=LIBPATH
10023 fi
10024 ;;
10025
10026amigaos*)
6b4a97ed
PG
10027 case $host_cpu in
10028 powerpc)
10029 # Since July 2007 AmigaOS4 officially supports .so libraries.
10030 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10032 ;;
10033 m68k)
1cf3d07d
SE
10034 library_names_spec='$libname.ixlibrary $libname.a'
10035 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10036 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
6b4a97ed
PG
10037 ;;
10038 esac
1cf3d07d
SE
10039 ;;
10040
10041beos*)
10042 library_names_spec='${libname}${shared_ext}'
10043 dynamic_linker="$host_os ld.so"
10044 shlibpath_var=LIBRARY_PATH
10045 ;;
10046
10047bsdi[45]*)
10048 version_type=linux
10049 need_version=no
10050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10051 soname_spec='${libname}${release}${shared_ext}$major'
10052 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10053 shlibpath_var=LD_LIBRARY_PATH
10054 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10055 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10056 # the default ld.so.conf also contains /usr/contrib/lib and
10057 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10058 # libtool to hard-code these into programs
10059 ;;
10060
6b4a97ed 10061cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
10062 version_type=windows
10063 shrext_cmds=".dll"
10064 need_version=no
10065 need_lib_prefix=no
10066
6b4a97ed
PG
10067 case $GCC,$host_os in
10068 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
1cf3d07d
SE
10069 library_names_spec='$libname.dll.a'
10070 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10071 postinstall_cmds='base_file=`basename \${file}`~
10072 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10073 dldir=$destdir/`dirname \$dlpath`~
10074 test -d \$dldir || mkdir -p \$dldir~
10075 $install_prog $dir/$dlname \$dldir/$dlname~
10076 chmod a+x \$dldir/$dlname~
10077 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10078 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10079 fi'
10080 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10081 dlpath=$dir/\$dldll~
10082 $RM \$dlpath'
10083 shlibpath_overrides_runpath=yes
10084
10085 case $host_os in
10086 cygwin*)
10087 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10088 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10089 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10090 ;;
6b4a97ed 10091 mingw* | cegcc*)
1cf3d07d
SE
10092 # MinGW DLLs use traditional 'lib' prefix
10093 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10094 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10095 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10096 # It is most probably a Windows format PATH printed by
10097 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10098 # path with ; separators, and with drive letters. We can handle the
10099 # drive letters (cygwin fileutils understands them), so leave them,
10100 # especially as we might pass files found there to a mingw objdump,
10101 # which wouldn't understand a cygwinified path. Ahh.
10102 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10103 else
10104 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10105 fi
10106 ;;
10107 pw32*)
10108 # pw32 DLLs use 'pw' prefix rather than 'lib'
10109 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10110 ;;
10111 esac
10112 ;;
10113
10114 *)
10115 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10116 ;;
10117 esac
10118 dynamic_linker='Win32 ld.exe'
10119 # FIXME: first we should search . and the directory the executable is in
10120 shlibpath_var=PATH
10121 ;;
10122
10123darwin* | rhapsody*)
10124 dynamic_linker="$host_os dyld"
10125 version_type=darwin
10126 need_lib_prefix=no
10127 need_version=no
10128 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10129 soname_spec='${libname}${release}${major}$shared_ext'
10130 shlibpath_overrides_runpath=yes
10131 shlibpath_var=DYLD_LIBRARY_PATH
10132 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10133
10134 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10135 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10136 ;;
10137
10138dgux*)
10139 version_type=linux
10140 need_lib_prefix=no
10141 need_version=no
10142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10143 soname_spec='${libname}${release}${shared_ext}$major'
10144 shlibpath_var=LD_LIBRARY_PATH
10145 ;;
10146
10147freebsd1*)
10148 dynamic_linker=no
10149 ;;
10150
10151freebsd* | dragonfly*)
10152 # DragonFly does not have aout. When/if they implement a new
10153 # versioning mechanism, adjust this.
10154 if test -x /usr/bin/objformat; then
10155 objformat=`/usr/bin/objformat`
10156 else
10157 case $host_os in
10158 freebsd[123]*) objformat=aout ;;
10159 *) objformat=elf ;;
10160 esac
10161 fi
10162 version_type=freebsd-$objformat
10163 case $version_type in
10164 freebsd-elf*)
10165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10166 need_version=no
10167 need_lib_prefix=no
10168 ;;
10169 freebsd-*)
10170 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10171 need_version=yes
10172 ;;
10173 esac
10174 shlibpath_var=LD_LIBRARY_PATH
10175 case $host_os in
10176 freebsd2*)
10177 shlibpath_overrides_runpath=yes
10178 ;;
10179 freebsd3.[01]* | freebsdelf3.[01]*)
10180 shlibpath_overrides_runpath=yes
10181 hardcode_into_libs=yes
10182 ;;
10183 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10184 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10185 shlibpath_overrides_runpath=no
10186 hardcode_into_libs=yes
10187 ;;
10188 *) # from 4.6 on, and DragonFly
10189 shlibpath_overrides_runpath=yes
10190 hardcode_into_libs=yes
10191 ;;
10192 esac
10193 ;;
10194
10195gnu*)
10196 version_type=linux
10197 need_lib_prefix=no
10198 need_version=no
10199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10200 soname_spec='${libname}${release}${shared_ext}$major'
10201 shlibpath_var=LD_LIBRARY_PATH
10202 hardcode_into_libs=yes
10203 ;;
10204
10205hpux9* | hpux10* | hpux11*)
10206 # Give a soname corresponding to the major version so that dld.sl refuses to
10207 # link against other versions.
10208 version_type=sunos
10209 need_lib_prefix=no
10210 need_version=no
10211 case $host_cpu in
10212 ia64*)
10213 shrext_cmds='.so'
10214 hardcode_into_libs=yes
10215 dynamic_linker="$host_os dld.so"
10216 shlibpath_var=LD_LIBRARY_PATH
10217 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10219 soname_spec='${libname}${release}${shared_ext}$major'
10220 if test "X$HPUX_IA64_MODE" = X32; then
10221 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10222 else
10223 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10224 fi
10225 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10226 ;;
10227 hppa*64*)
10228 shrext_cmds='.sl'
10229 hardcode_into_libs=yes
10230 dynamic_linker="$host_os dld.sl"
10231 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10232 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10234 soname_spec='${libname}${release}${shared_ext}$major'
10235 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10236 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10237 ;;
10238 *)
10239 shrext_cmds='.sl'
10240 dynamic_linker="$host_os dld.sl"
10241 shlibpath_var=SHLIB_PATH
10242 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10244 soname_spec='${libname}${release}${shared_ext}$major'
10245 ;;
10246 esac
10247 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10248 postinstall_cmds='chmod 555 $lib'
10249 ;;
10250
10251interix[3-9]*)
10252 version_type=linux
10253 need_lib_prefix=no
10254 need_version=no
10255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10256 soname_spec='${libname}${release}${shared_ext}$major'
10257 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10258 shlibpath_var=LD_LIBRARY_PATH
10259 shlibpath_overrides_runpath=no
10260 hardcode_into_libs=yes
10261 ;;
10262
10263irix5* | irix6* | nonstopux*)
10264 case $host_os in
10265 nonstopux*) version_type=nonstopux ;;
10266 *)
10267 if test "$lt_cv_prog_gnu_ld" = yes; then
10268 version_type=linux
10269 else
10270 version_type=irix
10271 fi ;;
10272 esac
10273 need_lib_prefix=no
10274 need_version=no
10275 soname_spec='${libname}${release}${shared_ext}$major'
10276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10277 case $host_os in
10278 irix5* | nonstopux*)
10279 libsuff= shlibsuff=
10280 ;;
10281 *)
10282 case $LD in # libtool.m4 will add one of these switches to LD
10283 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10284 libsuff= shlibsuff= libmagic=32-bit;;
10285 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10286 libsuff=32 shlibsuff=N32 libmagic=N32;;
10287 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10288 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10289 *) libsuff= shlibsuff= libmagic=never-match;;
10290 esac
10291 ;;
10292 esac
10293 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10294 shlibpath_overrides_runpath=no
10295 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10296 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10297 hardcode_into_libs=yes
10298 ;;
10299
10300# No shared lib support for Linux oldld, aout, or coff.
10301linux*oldld* | linux*aout* | linux*coff*)
10302 dynamic_linker=no
10303 ;;
10304
10305# This must be Linux ELF.
7a9d3fe8 10306linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
10307 version_type=linux
10308 need_lib_prefix=no
10309 need_version=no
10310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10311 soname_spec='${libname}${release}${shared_ext}$major'
10312 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10313 shlibpath_var=LD_LIBRARY_PATH
10314 shlibpath_overrides_runpath=no
baafc534 10315
1cf3d07d 10316 # Some binutils ld are patched to set DT_RUNPATH
5213506e
RW
10317 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10318 $as_echo_n "(cached) " >&6
baafc534
RW
10319else
10320 lt_cv_shlibpath_overrides_runpath=no
10321 save_LDFLAGS=$LDFLAGS
10322 save_libdir=$libdir
10323 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10324 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
5213506e 10325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
10326/* end confdefs.h. */
10327
10328int
10329main ()
10330{
10331
10332 ;
10333 return 0;
10334}
10335_ACEOF
5213506e
RW
10336if ac_fn_c_try_link "$LINENO"; then :
10337 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
baafc534 10338 lt_cv_shlibpath_overrides_runpath=yes
1cf3d07d 10339fi
1cf3d07d 10340fi
5213506e
RW
10341rm -f core conftest.err conftest.$ac_objext \
10342 conftest$ac_exeext conftest.$ac_ext
baafc534
RW
10343 LDFLAGS=$save_LDFLAGS
10344 libdir=$save_libdir
10345
10346fi
10347
10348 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
1cf3d07d
SE
10349
10350 # This implies no fast_install, which is unacceptable.
10351 # Some rework will be needed to allow for fast_install
10352 # before this can be enabled.
10353 hardcode_into_libs=yes
10354
10355 # Append ld.so.conf contents to the search path
10356 if test -f /etc/ld.so.conf; then
6b4a97ed 10357 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;/^$/d' | tr '\n' ' '`
1cf3d07d
SE
10358 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10359 fi
10360
10361 # We used to test for /lib/ld.so.1 and disable shared libraries on
10362 # powerpc, because MkLinux only supported shared libraries with the
10363 # GNU dynamic linker. Since this was broken with cross compilers,
10364 # most powerpc-linux boxes support dynamic linking these days and
10365 # people can always --disable-shared, the test was removed, and we
10366 # assume the GNU/Linux dynamic linker is in use.
10367 dynamic_linker='GNU/Linux ld.so'
10368 ;;
10369
10370netbsd*)
10371 version_type=sunos
10372 need_lib_prefix=no
10373 need_version=no
10374 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10376 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10377 dynamic_linker='NetBSD (a.out) ld.so'
10378 else
10379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10380 soname_spec='${libname}${release}${shared_ext}$major'
10381 dynamic_linker='NetBSD ld.elf_so'
10382 fi
10383 shlibpath_var=LD_LIBRARY_PATH
10384 shlibpath_overrides_runpath=yes
10385 hardcode_into_libs=yes
10386 ;;
10387
10388newsos6)
10389 version_type=linux
10390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10391 shlibpath_var=LD_LIBRARY_PATH
10392 shlibpath_overrides_runpath=yes
10393 ;;
10394
10395*nto* | *qnx*)
10396 version_type=qnx
10397 need_lib_prefix=no
10398 need_version=no
10399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10400 soname_spec='${libname}${release}${shared_ext}$major'
10401 shlibpath_var=LD_LIBRARY_PATH
10402 shlibpath_overrides_runpath=no
10403 hardcode_into_libs=yes
10404 dynamic_linker='ldqnx.so'
10405 ;;
10406
10407openbsd*)
10408 version_type=sunos
10409 sys_lib_dlsearch_path_spec="/usr/lib"
10410 need_lib_prefix=no
10411 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10412 case $host_os in
10413 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10414 *) need_version=no ;;
10415 esac
10416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10417 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10418 shlibpath_var=LD_LIBRARY_PATH
10419 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10420 case $host_os in
10421 openbsd2.[89] | openbsd2.[89].*)
10422 shlibpath_overrides_runpath=no
10423 ;;
10424 *)
10425 shlibpath_overrides_runpath=yes
10426 ;;
10427 esac
10428 else
10429 shlibpath_overrides_runpath=yes
10430 fi
10431 ;;
10432
10433os2*)
10434 libname_spec='$name'
10435 shrext_cmds=".dll"
10436 need_lib_prefix=no
10437 library_names_spec='$libname${shared_ext} $libname.a'
10438 dynamic_linker='OS/2 ld.exe'
10439 shlibpath_var=LIBPATH
10440 ;;
10441
10442osf3* | osf4* | osf5*)
10443 version_type=osf
10444 need_lib_prefix=no
10445 need_version=no
10446 soname_spec='${libname}${release}${shared_ext}$major'
10447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10448 shlibpath_var=LD_LIBRARY_PATH
10449 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10450 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10451 ;;
10452
10453rdos*)
10454 dynamic_linker=no
10455 ;;
10456
10457solaris*)
10458 version_type=linux
10459 need_lib_prefix=no
10460 need_version=no
10461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10462 soname_spec='${libname}${release}${shared_ext}$major'
10463 shlibpath_var=LD_LIBRARY_PATH
10464 shlibpath_overrides_runpath=yes
10465 hardcode_into_libs=yes
10466 # ldd complains unless libraries are executable
10467 postinstall_cmds='chmod +x $lib'
10468 ;;
10469
10470sunos4*)
10471 version_type=sunos
10472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10473 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10474 shlibpath_var=LD_LIBRARY_PATH
10475 shlibpath_overrides_runpath=yes
10476 if test "$with_gnu_ld" = yes; then
10477 need_lib_prefix=no
10478 fi
10479 need_version=yes
10480 ;;
10481
10482sysv4 | sysv4.3*)
10483 version_type=linux
10484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10485 soname_spec='${libname}${release}${shared_ext}$major'
10486 shlibpath_var=LD_LIBRARY_PATH
10487 case $host_vendor in
10488 sni)
10489 shlibpath_overrides_runpath=no
10490 need_lib_prefix=no
10491 runpath_var=LD_RUN_PATH
10492 ;;
10493 siemens)
10494 need_lib_prefix=no
10495 ;;
10496 motorola)
10497 need_lib_prefix=no
10498 need_version=no
10499 shlibpath_overrides_runpath=no
10500 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10501 ;;
10502 esac
10503 ;;
10504
10505sysv4*MP*)
10506 if test -d /usr/nec ;then
10507 version_type=linux
10508 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10509 soname_spec='$libname${shared_ext}.$major'
10510 shlibpath_var=LD_LIBRARY_PATH
10511 fi
10512 ;;
10513
10514sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10515 version_type=freebsd-elf
10516 need_lib_prefix=no
10517 need_version=no
10518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10519 soname_spec='${libname}${release}${shared_ext}$major'
10520 shlibpath_var=LD_LIBRARY_PATH
10521 shlibpath_overrides_runpath=yes
10522 hardcode_into_libs=yes
10523 if test "$with_gnu_ld" = yes; then
10524 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10525 else
10526 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10527 case $host_os in
10528 sco3.2v5*)
10529 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10530 ;;
10531 esac
10532 fi
10533 sys_lib_dlsearch_path_spec='/usr/lib'
10534 ;;
10535
10536tpf*)
10537 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10538 version_type=linux
10539 need_lib_prefix=no
10540 need_version=no
6b4a97ed 10541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1cf3d07d
SE
10542 shlibpath_var=LD_LIBRARY_PATH
10543 shlibpath_overrides_runpath=no
10544 hardcode_into_libs=yes
10545 ;;
10546
10547uts4*)
10548 version_type=linux
10549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10550 soname_spec='${libname}${release}${shared_ext}$major'
10551 shlibpath_var=LD_LIBRARY_PATH
10552 ;;
10553
10554*)
10555 dynamic_linker=no
10556 ;;
10557esac
5213506e
RW
10558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10559$as_echo "$dynamic_linker" >&6; }
1cf3d07d
SE
10560test "$dynamic_linker" = no && can_build_shared=no
10561
10562variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10563if test "$GCC" = yes; then
10564 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10565fi
10566
6b4a97ed
PG
10567if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10568 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10569fi
10570if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10571 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10572fi
10573
1cf3d07d
SE
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
5213506e
RW
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10661$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1cf3d07d
SE
10662hardcode_action=
10663if test -n "$hardcode_libdir_flag_spec" ||
10664 test -n "$runpath_var" ||
10665 test "X$hardcode_automatic" = "Xyes" ; then
10666
10667 # We can hardcode non-existent directories.
10668 if test "$hardcode_direct" != no &&
10669 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10670 # have to relink, otherwise we might link with an installed library
10671 # when we should be linking with a yet-to-be-installed one
10672 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10673 test "$hardcode_minus_L" != no; then
10674 # Linking always hardcodes the temporary library directory.
10675 hardcode_action=relink
10676 else
10677 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10678 hardcode_action=immediate
10679 fi
10680else
10681 # We cannot hardcode anything, or else we can only hardcode existing
10682 # directories.
10683 hardcode_action=unsupported
10684fi
5213506e
RW
10685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10686$as_echo "$hardcode_action" >&6; }
1cf3d07d
SE
10687
10688if test "$hardcode_action" = relink ||
10689 test "$inherit_rpath" = yes; then
10690 # Fast installation is not supported
10691 enable_fast_install=no
10692elif test "$shlibpath_overrides_runpath" = yes ||
10693 test "$enable_shared" = no; then
10694 # Fast installation is not necessary
10695 enable_fast_install=needless
10696fi
10697
10698
10699
10700
10701
10702
10703 if test "x$enable_dlopen" != xyes; then
10704 enable_dlopen=unknown
10705 enable_dlopen_self=unknown
10706 enable_dlopen_self_static=unknown
10707else
10708 lt_cv_dlopen=no
10709 lt_cv_dlopen_libs=
10710
10711 case $host_os in
10712 beos*)
10713 lt_cv_dlopen="load_add_on"
10714 lt_cv_dlopen_libs=
10715 lt_cv_dlopen_self=yes
10716 ;;
10717
6b4a97ed 10718 mingw* | pw32* | cegcc*)
1cf3d07d
SE
10719 lt_cv_dlopen="LoadLibrary"
10720 lt_cv_dlopen_libs=
10721 ;;
10722
10723 cygwin*)
10724 lt_cv_dlopen="dlopen"
10725 lt_cv_dlopen_libs=
10726 ;;
10727
10728 darwin*)
10729 # if libdl is installed we need to link against it
5213506e
RW
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10731$as_echo_n "checking for dlopen in -ldl... " >&6; }
10732if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10733 $as_echo_n "(cached) " >&6
1cf3d07d
SE
10734else
10735 ac_check_lib_save_LIBS=$LIBS
10736LIBS="-ldl $LIBS"
5213506e 10737cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
10738/* end confdefs.h. */
10739
5213506e
RW
10740/* Override any GCC internal prototype to avoid an error.
10741 Use char because int might match the return type of a GCC
10742 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
10743#ifdef __cplusplus
10744extern "C"
10745#endif
1cf3d07d
SE
10746char dlopen ();
10747int
10748main ()
10749{
5213506e 10750return dlopen ();
1cf3d07d
SE
10751 ;
10752 return 0;
10753}
10754_ACEOF
5213506e 10755if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
10756 ac_cv_lib_dl_dlopen=yes
10757else
5213506e 10758 ac_cv_lib_dl_dlopen=no
1cf3d07d 10759fi
5213506e
RW
10760rm -f core conftest.err conftest.$ac_objext \
10761 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
10762LIBS=$ac_check_lib_save_LIBS
10763fi
5213506e
RW
10764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10765$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10766if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
1cf3d07d
SE
10767 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10768else
10769
10770 lt_cv_dlopen="dyld"
10771 lt_cv_dlopen_libs=
10772 lt_cv_dlopen_self=yes
10773
10774fi
10775
10776 ;;
10777
10778 *)
5213506e
RW
10779 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10780if test "x$ac_cv_func_shl_load" = x""yes; then :
1cf3d07d
SE
10781 lt_cv_dlopen="shl_load"
10782else
5213506e
RW
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10784$as_echo_n "checking for shl_load in -ldld... " >&6; }
10785if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10786 $as_echo_n "(cached) " >&6
1cf3d07d
SE
10787else
10788 ac_check_lib_save_LIBS=$LIBS
10789LIBS="-ldld $LIBS"
5213506e 10790cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
10791/* end confdefs.h. */
10792
5213506e
RW
10793/* Override any GCC internal prototype to avoid an error.
10794 Use char because int might match the return type of a GCC
10795 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
10796#ifdef __cplusplus
10797extern "C"
10798#endif
1cf3d07d
SE
10799char shl_load ();
10800int
10801main ()
10802{
5213506e 10803return shl_load ();
1cf3d07d
SE
10804 ;
10805 return 0;
10806}
10807_ACEOF
5213506e 10808if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
10809 ac_cv_lib_dld_shl_load=yes
10810else
5213506e 10811 ac_cv_lib_dld_shl_load=no
1cf3d07d 10812fi
5213506e
RW
10813rm -f core conftest.err conftest.$ac_objext \
10814 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
10815LIBS=$ac_check_lib_save_LIBS
10816fi
5213506e
RW
10817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10818$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10819if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
6b4a97ed 10820 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
1cf3d07d 10821else
5213506e
RW
10822 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10823if test "x$ac_cv_func_dlopen" = x""yes; then :
1cf3d07d
SE
10824 lt_cv_dlopen="dlopen"
10825else
5213506e
RW
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10827$as_echo_n "checking for dlopen in -ldl... " >&6; }
10828if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10829 $as_echo_n "(cached) " >&6
1cf3d07d
SE
10830else
10831 ac_check_lib_save_LIBS=$LIBS
10832LIBS="-ldl $LIBS"
5213506e 10833cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
10834/* end confdefs.h. */
10835
5213506e
RW
10836/* Override any GCC internal prototype to avoid an error.
10837 Use char because int might match the return type of a GCC
10838 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
10839#ifdef __cplusplus
10840extern "C"
10841#endif
1cf3d07d
SE
10842char dlopen ();
10843int
10844main ()
10845{
5213506e 10846return dlopen ();
1cf3d07d
SE
10847 ;
10848 return 0;
10849}
10850_ACEOF
5213506e 10851if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
10852 ac_cv_lib_dl_dlopen=yes
10853else
5213506e 10854 ac_cv_lib_dl_dlopen=no
1cf3d07d 10855fi
5213506e
RW
10856rm -f core conftest.err conftest.$ac_objext \
10857 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
10858LIBS=$ac_check_lib_save_LIBS
10859fi
5213506e
RW
10860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10861$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10862if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
1cf3d07d
SE
10863 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10864else
5213506e
RW
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10866$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10867if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10868 $as_echo_n "(cached) " >&6
1cf3d07d
SE
10869else
10870 ac_check_lib_save_LIBS=$LIBS
10871LIBS="-lsvld $LIBS"
5213506e 10872cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
10873/* end confdefs.h. */
10874
5213506e
RW
10875/* Override any GCC internal prototype to avoid an error.
10876 Use char because int might match the return type of a GCC
10877 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
10878#ifdef __cplusplus
10879extern "C"
10880#endif
1cf3d07d
SE
10881char dlopen ();
10882int
10883main ()
10884{
5213506e 10885return dlopen ();
1cf3d07d
SE
10886 ;
10887 return 0;
10888}
10889_ACEOF
5213506e 10890if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
10891 ac_cv_lib_svld_dlopen=yes
10892else
5213506e 10893 ac_cv_lib_svld_dlopen=no
1cf3d07d 10894fi
5213506e
RW
10895rm -f core conftest.err conftest.$ac_objext \
10896 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
10897LIBS=$ac_check_lib_save_LIBS
10898fi
5213506e
RW
10899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10900$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10901if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
1cf3d07d
SE
10902 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10903else
5213506e
RW
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10905$as_echo_n "checking for dld_link in -ldld... " >&6; }
10906if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10907 $as_echo_n "(cached) " >&6
1cf3d07d
SE
10908else
10909 ac_check_lib_save_LIBS=$LIBS
10910LIBS="-ldld $LIBS"
5213506e 10911cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
10912/* end confdefs.h. */
10913
5213506e
RW
10914/* Override any GCC internal prototype to avoid an error.
10915 Use char because int might match the return type of a GCC
10916 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
10917#ifdef __cplusplus
10918extern "C"
10919#endif
1cf3d07d
SE
10920char dld_link ();
10921int
10922main ()
10923{
5213506e 10924return dld_link ();
1cf3d07d
SE
10925 ;
10926 return 0;
10927}
10928_ACEOF
5213506e 10929if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
10930 ac_cv_lib_dld_dld_link=yes
10931else
5213506e 10932 ac_cv_lib_dld_dld_link=no
1cf3d07d 10933fi
5213506e
RW
10934rm -f core conftest.err conftest.$ac_objext \
10935 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
10936LIBS=$ac_check_lib_save_LIBS
10937fi
5213506e
RW
10938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10939$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10940if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
6b4a97ed 10941 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
1cf3d07d
SE
10942fi
10943
10944
10945fi
10946
10947
10948fi
10949
10950
10951fi
10952
10953
10954fi
10955
10956
10957fi
10958
10959 ;;
10960 esac
10961
10962 if test "x$lt_cv_dlopen" != xno; then
10963 enable_dlopen=yes
10964 else
10965 enable_dlopen=no
10966 fi
10967
10968 case $lt_cv_dlopen in
10969 dlopen)
10970 save_CPPFLAGS="$CPPFLAGS"
10971 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10972
10973 save_LDFLAGS="$LDFLAGS"
10974 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10975
10976 save_LIBS="$LIBS"
10977 LIBS="$lt_cv_dlopen_libs $LIBS"
10978
5213506e
RW
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10980$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10981if test "${lt_cv_dlopen_self+set}" = set; then :
10982 $as_echo_n "(cached) " >&6
1cf3d07d
SE
10983else
10984 if test "$cross_compiling" = yes; then :
10985 lt_cv_dlopen_self=cross
10986else
10987 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10988 lt_status=$lt_dlunknown
10989 cat > conftest.$ac_ext <<_LT_EOF
5213506e 10990#line 10990 "configure"
1cf3d07d
SE
10991#include "confdefs.h"
10992
10993#if HAVE_DLFCN_H
10994#include <dlfcn.h>
10995#endif
10996
10997#include <stdio.h>
10998
10999#ifdef RTLD_GLOBAL
11000# define LT_DLGLOBAL RTLD_GLOBAL
11001#else
11002# ifdef DL_GLOBAL
11003# define LT_DLGLOBAL DL_GLOBAL
11004# else
11005# define LT_DLGLOBAL 0
11006# endif
11007#endif
11008
11009/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11010 find out it does not work in some platform. */
11011#ifndef LT_DLLAZY_OR_NOW
11012# ifdef RTLD_LAZY
11013# define LT_DLLAZY_OR_NOW RTLD_LAZY
11014# else
11015# ifdef DL_LAZY
11016# define LT_DLLAZY_OR_NOW DL_LAZY
11017# else
11018# ifdef RTLD_NOW
11019# define LT_DLLAZY_OR_NOW RTLD_NOW
11020# else
11021# ifdef DL_NOW
11022# define LT_DLLAZY_OR_NOW DL_NOW
11023# else
11024# define LT_DLLAZY_OR_NOW 0
11025# endif
11026# endif
11027# endif
11028# endif
11029#endif
11030
1cf3d07d
SE
11031void fnord() { int i=42;}
11032int main ()
11033{
11034 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11035 int status = $lt_dlunknown;
11036
11037 if (self)
11038 {
11039 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11040 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11041 /* dlclose (self); */
11042 }
11043 else
11044 puts (dlerror ());
11045
6b4a97ed 11046 return status;
1cf3d07d
SE
11047}
11048_LT_EOF
5213506e 11049 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d
SE
11050 (eval $ac_link) 2>&5
11051 ac_status=$?
5213506e
RW
11052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11053 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1cf3d07d
SE
11054 (./conftest; exit; ) >&5 2>/dev/null
11055 lt_status=$?
11056 case x$lt_status in
11057 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11058 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11059 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11060 esac
11061 else :
11062 # compilation failed
11063 lt_cv_dlopen_self=no
11064 fi
11065fi
11066rm -fr conftest*
11067
11068
11069fi
5213506e
RW
11070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11071$as_echo "$lt_cv_dlopen_self" >&6; }
1cf3d07d
SE
11072
11073 if test "x$lt_cv_dlopen_self" = xyes; then
11074 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
5213506e
RW
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11076$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11077if test "${lt_cv_dlopen_self_static+set}" = set; then :
11078 $as_echo_n "(cached) " >&6
1cf3d07d
SE
11079else
11080 if test "$cross_compiling" = yes; then :
11081 lt_cv_dlopen_self_static=cross
11082else
11083 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11084 lt_status=$lt_dlunknown
11085 cat > conftest.$ac_ext <<_LT_EOF
5213506e 11086#line 11086 "configure"
1cf3d07d
SE
11087#include "confdefs.h"
11088
11089#if HAVE_DLFCN_H
11090#include <dlfcn.h>
11091#endif
11092
11093#include <stdio.h>
11094
11095#ifdef RTLD_GLOBAL
11096# define LT_DLGLOBAL RTLD_GLOBAL
11097#else
11098# ifdef DL_GLOBAL
11099# define LT_DLGLOBAL DL_GLOBAL
11100# else
11101# define LT_DLGLOBAL 0
11102# endif
11103#endif
11104
11105/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11106 find out it does not work in some platform. */
11107#ifndef LT_DLLAZY_OR_NOW
11108# ifdef RTLD_LAZY
11109# define LT_DLLAZY_OR_NOW RTLD_LAZY
11110# else
11111# ifdef DL_LAZY
11112# define LT_DLLAZY_OR_NOW DL_LAZY
11113# else
11114# ifdef RTLD_NOW
11115# define LT_DLLAZY_OR_NOW RTLD_NOW
11116# else
11117# ifdef DL_NOW
11118# define LT_DLLAZY_OR_NOW DL_NOW
11119# else
11120# define LT_DLLAZY_OR_NOW 0
11121# endif
11122# endif
11123# endif
11124# endif
11125#endif
11126
1cf3d07d
SE
11127void fnord() { int i=42;}
11128int main ()
11129{
11130 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11131 int status = $lt_dlunknown;
11132
11133 if (self)
11134 {
11135 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11136 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11137 /* dlclose (self); */
11138 }
11139 else
11140 puts (dlerror ());
11141
6b4a97ed 11142 return status;
1cf3d07d
SE
11143}
11144_LT_EOF
5213506e 11145 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d
SE
11146 (eval $ac_link) 2>&5
11147 ac_status=$?
5213506e
RW
11148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11149 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1cf3d07d
SE
11150 (./conftest; exit; ) >&5 2>/dev/null
11151 lt_status=$?
11152 case x$lt_status in
11153 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11154 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11155 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11156 esac
11157 else :
11158 # compilation failed
11159 lt_cv_dlopen_self_static=no
11160 fi
11161fi
11162rm -fr conftest*
11163
11164
11165fi
5213506e
RW
11166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11167$as_echo "$lt_cv_dlopen_self_static" >&6; }
1cf3d07d
SE
11168 fi
11169
11170 CPPFLAGS="$save_CPPFLAGS"
11171 LDFLAGS="$save_LDFLAGS"
11172 LIBS="$save_LIBS"
11173 ;;
11174 esac
11175
11176 case $lt_cv_dlopen_self in
11177 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11178 *) enable_dlopen_self=unknown ;;
11179 esac
11180
11181 case $lt_cv_dlopen_self_static in
11182 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11183 *) enable_dlopen_self_static=unknown ;;
11184 esac
11185fi
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203striplib=
11204old_striplib=
5213506e
RW
11205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11206$as_echo_n "checking whether stripping libraries is possible... " >&6; }
1cf3d07d
SE
11207if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11208 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11209 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5213506e
RW
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11211$as_echo "yes" >&6; }
1cf3d07d
SE
11212else
11213# FIXME - insert some real tests, host_os isn't really good enough
11214 case $host_os in
11215 darwin*)
11216 if test -n "$STRIP" ; then
11217 striplib="$STRIP -x"
11218 old_striplib="$STRIP -S"
5213506e
RW
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11220$as_echo "yes" >&6; }
1cf3d07d 11221 else
5213506e
RW
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11223$as_echo "no" >&6; }
1cf3d07d
SE
11224 fi
11225 ;;
11226 *)
5213506e
RW
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11228$as_echo "no" >&6; }
1cf3d07d
SE
11229 ;;
11230 esac
11231fi
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244 # Report which library types will actually be built
5213506e
RW
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11246$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11248$as_echo "$can_build_shared" >&6; }
1cf3d07d 11249
5213506e
RW
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11251$as_echo_n "checking whether to build shared libraries... " >&6; }
1cf3d07d
SE
11252 test "$can_build_shared" = "no" && enable_shared=no
11253
11254 # On AIX, shared libraries and static libraries use the same namespace, and
11255 # are all built from PIC.
11256 case $host_os in
11257 aix3*)
11258 test "$enable_shared" = yes && enable_static=no
11259 if test -n "$RANLIB"; then
11260 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11261 postinstall_cmds='$RANLIB $lib'
11262 fi
11263 ;;
11264
d653fdfb 11265 aix[4-9]*)
1cf3d07d
SE
11266 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11267 test "$enable_shared" = yes && enable_static=no
11268 fi
11269 ;;
11270 esac
5213506e
RW
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11272$as_echo "$enable_shared" >&6; }
1cf3d07d 11273
5213506e
RW
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11275$as_echo_n "checking whether to build static libraries... " >&6; }
1cf3d07d
SE
11276 # Make sure either enable_shared or enable_static is yes.
11277 test "$enable_shared" = yes || enable_static=yes
5213506e
RW
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11279$as_echo "$enable_static" >&6; }
1cf3d07d
SE
11280
11281
11282
11283
11284fi
11285ac_ext=c
11286ac_cpp='$CPP $CPPFLAGS'
11287ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11288ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11289ac_compiler_gnu=$ac_cv_c_compiler_gnu
11290
11291CC="$lt_save_CC"
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
5213506e 11305 ac_config_commands="$ac_config_commands libtool"
1cf3d07d
SE
11306
11307
11308
11309
11310# Only expand once:
11311
11312
11313
11314
11315
5213506e
RW
11316
11317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11318$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11319 # Check whether --enable-maintainer-mode was given.
11320if test "${enable_maintainer_mode+set}" = set; then :
11321 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1cf3d07d
SE
11322else
11323 USE_MAINTAINER_MODE=no
5213506e 11324fi
1cf3d07d 11325
5213506e
RW
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11327$as_echo "$USE_MAINTAINER_MODE" >&6; }
11328 if test $USE_MAINTAINER_MODE = yes; then
1cf3d07d
SE
11329 MAINTAINER_MODE_TRUE=
11330 MAINTAINER_MODE_FALSE='#'
11331else
11332 MAINTAINER_MODE_TRUE='#'
11333 MAINTAINER_MODE_FALSE=
11334fi
11335
11336 MAINT=$MAINTAINER_MODE_TRUE
11337
11338
11339
11340# We need gfortran to compile parts of the library
11341# We can't use AC_PROG_FC because it expects a fully working gfortran.
11342#AC_PROG_FC(gfortran)
11343FC="$GFORTRAN"
5213506e
RW
11344ac_ext=${ac_fc_srcext-f}
11345ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11346ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
1cf3d07d
SE
11347ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11348if test -n "$ac_tool_prefix"; then
11349 for ac_prog in gfortran
11350 do
11351 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11352set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
11353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11354$as_echo_n "checking for $ac_word... " >&6; }
11355if test "${ac_cv_prog_FC+set}" = set; then :
11356 $as_echo_n "(cached) " >&6
1cf3d07d
SE
11357else
11358 if test -n "$FC"; then
11359 ac_cv_prog_FC="$FC" # Let the user override the test.
11360else
11361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11362for as_dir in $PATH
11363do
11364 IFS=$as_save_IFS
11365 test -z "$as_dir" && as_dir=.
5213506e
RW
11366 for ac_exec_ext in '' $ac_executable_extensions; do
11367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 11368 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
5213506e 11369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
11370 break 2
11371 fi
11372done
5213506e
RW
11373 done
11374IFS=$as_save_IFS
1cf3d07d
SE
11375
11376fi
11377fi
11378FC=$ac_cv_prog_FC
11379if test -n "$FC"; then
5213506e
RW
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
11381$as_echo "$FC" >&6; }
1cf3d07d 11382else
5213506e
RW
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11384$as_echo "no" >&6; }
1cf3d07d
SE
11385fi
11386
5213506e 11387
1cf3d07d
SE
11388 test -n "$FC" && break
11389 done
11390fi
11391if test -z "$FC"; then
11392 ac_ct_FC=$FC
11393 for ac_prog in gfortran
11394do
11395 # Extract the first word of "$ac_prog", so it can be a program name with args.
11396set dummy $ac_prog; ac_word=$2
5213506e
RW
11397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11398$as_echo_n "checking for $ac_word... " >&6; }
11399if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
11400 $as_echo_n "(cached) " >&6
1cf3d07d
SE
11401else
11402 if test -n "$ac_ct_FC"; then
11403 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
11404else
11405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11406for as_dir in $PATH
11407do
11408 IFS=$as_save_IFS
11409 test -z "$as_dir" && as_dir=.
5213506e
RW
11410 for ac_exec_ext in '' $ac_executable_extensions; do
11411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 11412 ac_cv_prog_ac_ct_FC="$ac_prog"
5213506e 11413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
11414 break 2
11415 fi
11416done
5213506e
RW
11417 done
11418IFS=$as_save_IFS
1cf3d07d
SE
11419
11420fi
11421fi
11422ac_ct_FC=$ac_cv_prog_ac_ct_FC
11423if test -n "$ac_ct_FC"; then
5213506e
RW
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
11425$as_echo "$ac_ct_FC" >&6; }
1cf3d07d 11426else
5213506e
RW
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11428$as_echo "no" >&6; }
1cf3d07d
SE
11429fi
11430
5213506e 11431
1cf3d07d
SE
11432 test -n "$ac_ct_FC" && break
11433done
11434
5213506e
RW
11435 if test "x$ac_ct_FC" = x; then
11436 FC=""
11437 else
11438 case $cross_compiling:$ac_tool_warned in
11439yes:)
11440{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11441$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11442ac_tool_warned=yes ;;
11443esac
11444 FC=$ac_ct_FC
11445 fi
1cf3d07d
SE
11446fi
11447
11448
11449# Provide some information about the compiler.
5213506e
RW
11450$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
11451set X $ac_compile
11452ac_compiler=$2
11453for ac_option in --version -v -V -qversion; do
11454 { { ac_try="$ac_compiler $ac_option >&5"
11455case "(($ac_try" in
11456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11457 *) ac_try_echo=$ac_try;;
11458esac
11459eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11460$as_echo "$ac_try_echo"; } >&5
11461 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1cf3d07d 11462 ac_status=$?
5213506e
RW
11463 if test -s conftest.err; then
11464 sed '10a\
11465... rest of stderr output deleted ...
11466 10q' conftest.err >conftest.er1
11467 cat conftest.er1 >&5
11468 rm -f conftest.er1 conftest.err
11469 fi
11470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11471 test $ac_status = 0; }
11472done
1cf3d07d
SE
11473rm -f a.out
11474
11475# If we don't use `.F' as extension, the preprocessor is not run on the
11476# input file. (Note that this only needs to work for GNU compilers.)
11477ac_save_ext=$ac_ext
11478ac_ext=F
5213506e
RW
11479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
11480$as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
11481if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
11482 $as_echo_n "(cached) " >&6
1cf3d07d 11483else
5213506e 11484 cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
11485 program main
11486#ifndef __GNUC__
11487 choke me
11488#endif
11489
11490 end
11491_ACEOF
5213506e 11492if ac_fn_fc_try_compile "$LINENO"; then :
1cf3d07d
SE
11493 ac_compiler_gnu=yes
11494else
5213506e 11495 ac_compiler_gnu=no
1cf3d07d 11496fi
5213506e 11497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d
SE
11498ac_cv_fc_compiler_gnu=$ac_compiler_gnu
11499
11500fi
5213506e
RW
11501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
11502$as_echo "$ac_cv_fc_compiler_gnu" >&6; }
1cf3d07d 11503ac_ext=$ac_save_ext
5213506e
RW
11504ac_test_FCFLAGS=${FCFLAGS+set}
11505ac_save_FCFLAGS=$FCFLAGS
1cf3d07d 11506FCFLAGS=
5213506e
RW
11507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
11508$as_echo_n "checking whether $FC accepts -g... " >&6; }
11509if test "${ac_cv_prog_fc_g+set}" = set; then :
11510 $as_echo_n "(cached) " >&6
1cf3d07d
SE
11511else
11512 FCFLAGS=-g
5213506e 11513cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
11514 program main
11515
11516 end
11517_ACEOF
5213506e 11518if ac_fn_fc_try_compile "$LINENO"; then :
1cf3d07d
SE
11519 ac_cv_prog_fc_g=yes
11520else
5213506e 11521 ac_cv_prog_fc_g=no
1cf3d07d 11522fi
5213506e 11523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d
SE
11524
11525fi
5213506e
RW
11526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
11527$as_echo "$ac_cv_prog_fc_g" >&6; }
11528if test "$ac_test_FCFLAGS" = set; then
11529 FCFLAGS=$ac_save_FCFLAGS
1cf3d07d
SE
11530elif test $ac_cv_prog_fc_g = yes; then
11531 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11532 FCFLAGS="-g -O2"
11533 else
11534 FCFLAGS="-g"
11535 fi
11536else
11537 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11538 FCFLAGS="-O2"
11539 else
11540 FCFLAGS=
11541 fi
11542fi
11543
11544ac_ext=c
11545ac_cpp='$CPP $CPPFLAGS'
11546ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11547ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11548ac_compiler_gnu=$ac_cv_c_compiler_gnu
11549
11550
5213506e
RW
11551ac_ext=${ac_fc_srcext-f}
11552ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11553ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
1cf3d07d
SE
11554ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11555if test -n "$ac_tool_prefix"; then
5213506e 11556 for ac_prog in gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn xlf90 f90 pgf90 pghpf epcf90 g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77
1cf3d07d
SE
11557 do
11558 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11559set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
11560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11561$as_echo_n "checking for $ac_word... " >&6; }
11562if test "${ac_cv_prog_FC+set}" = set; then :
11563 $as_echo_n "(cached) " >&6
1cf3d07d
SE
11564else
11565 if test -n "$FC"; then
11566 ac_cv_prog_FC="$FC" # Let the user override the test.
11567else
11568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11569for as_dir in $PATH
11570do
11571 IFS=$as_save_IFS
11572 test -z "$as_dir" && as_dir=.
5213506e
RW
11573 for ac_exec_ext in '' $ac_executable_extensions; do
11574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 11575 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
5213506e 11576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
11577 break 2
11578 fi
11579done
5213506e
RW
11580 done
11581IFS=$as_save_IFS
1cf3d07d
SE
11582
11583fi
11584fi
11585FC=$ac_cv_prog_FC
11586if test -n "$FC"; then
5213506e
RW
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
11588$as_echo "$FC" >&6; }
1cf3d07d 11589else
5213506e
RW
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11591$as_echo "no" >&6; }
1cf3d07d
SE
11592fi
11593
5213506e 11594
1cf3d07d
SE
11595 test -n "$FC" && break
11596 done
11597fi
11598if test -z "$FC"; then
11599 ac_ct_FC=$FC
5213506e 11600 for ac_prog in gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn xlf90 f90 pgf90 pghpf epcf90 g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77
1cf3d07d
SE
11601do
11602 # Extract the first word of "$ac_prog", so it can be a program name with args.
11603set dummy $ac_prog; ac_word=$2
5213506e
RW
11604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11605$as_echo_n "checking for $ac_word... " >&6; }
11606if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
11607 $as_echo_n "(cached) " >&6
1cf3d07d
SE
11608else
11609 if test -n "$ac_ct_FC"; then
11610 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
11611else
11612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11613for as_dir in $PATH
11614do
11615 IFS=$as_save_IFS
11616 test -z "$as_dir" && as_dir=.
5213506e
RW
11617 for ac_exec_ext in '' $ac_executable_extensions; do
11618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1cf3d07d 11619 ac_cv_prog_ac_ct_FC="$ac_prog"
5213506e 11620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
11621 break 2
11622 fi
11623done
5213506e
RW
11624 done
11625IFS=$as_save_IFS
1cf3d07d
SE
11626
11627fi
11628fi
11629ac_ct_FC=$ac_cv_prog_ac_ct_FC
11630if test -n "$ac_ct_FC"; then
5213506e
RW
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
11632$as_echo "$ac_ct_FC" >&6; }
1cf3d07d 11633else
5213506e
RW
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11635$as_echo "no" >&6; }
1cf3d07d
SE
11636fi
11637
5213506e 11638
1cf3d07d
SE
11639 test -n "$ac_ct_FC" && break
11640done
11641
5213506e
RW
11642 if test "x$ac_ct_FC" = x; then
11643 FC=""
11644 else
11645 case $cross_compiling:$ac_tool_warned in
11646yes:)
11647{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11648$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11649ac_tool_warned=yes ;;
11650esac
11651 FC=$ac_ct_FC
11652 fi
1cf3d07d
SE
11653fi
11654
11655
11656# Provide some information about the compiler.
5213506e
RW
11657$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
11658set X $ac_compile
11659ac_compiler=$2
11660for ac_option in --version -v -V -qversion; do
11661 { { ac_try="$ac_compiler $ac_option >&5"
11662case "(($ac_try" in
11663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11664 *) ac_try_echo=$ac_try;;
11665esac
11666eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11667$as_echo "$ac_try_echo"; } >&5
11668 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1cf3d07d 11669 ac_status=$?
5213506e
RW
11670 if test -s conftest.err; then
11671 sed '10a\
11672... rest of stderr output deleted ...
11673 10q' conftest.err >conftest.er1
11674 cat conftest.er1 >&5
11675 rm -f conftest.er1 conftest.err
11676 fi
11677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11678 test $ac_status = 0; }
11679done
1cf3d07d
SE
11680rm -f a.out
11681
11682# If we don't use `.F' as extension, the preprocessor is not run on the
11683# input file. (Note that this only needs to work for GNU compilers.)
11684ac_save_ext=$ac_ext
11685ac_ext=F
5213506e
RW
11686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
11687$as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
11688if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
11689 $as_echo_n "(cached) " >&6
1cf3d07d 11690else
5213506e 11691 cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
11692 program main
11693#ifndef __GNUC__
11694 choke me
11695#endif
11696
11697 end
11698_ACEOF
5213506e 11699if ac_fn_fc_try_compile "$LINENO"; then :
1cf3d07d
SE
11700 ac_compiler_gnu=yes
11701else
5213506e 11702 ac_compiler_gnu=no
1cf3d07d 11703fi
5213506e 11704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d
SE
11705ac_cv_fc_compiler_gnu=$ac_compiler_gnu
11706
11707fi
5213506e
RW
11708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
11709$as_echo "$ac_cv_fc_compiler_gnu" >&6; }
1cf3d07d 11710ac_ext=$ac_save_ext
5213506e
RW
11711ac_test_FCFLAGS=${FCFLAGS+set}
11712ac_save_FCFLAGS=$FCFLAGS
1cf3d07d 11713FCFLAGS=
5213506e
RW
11714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
11715$as_echo_n "checking whether $FC accepts -g... " >&6; }
11716if test "${ac_cv_prog_fc_g+set}" = set; then :
11717 $as_echo_n "(cached) " >&6
1cf3d07d
SE
11718else
11719 FCFLAGS=-g
5213506e 11720cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
11721 program main
11722
11723 end
11724_ACEOF
5213506e 11725if ac_fn_fc_try_compile "$LINENO"; then :
1cf3d07d
SE
11726 ac_cv_prog_fc_g=yes
11727else
5213506e 11728 ac_cv_prog_fc_g=no
1cf3d07d 11729fi
5213506e 11730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d
SE
11731
11732fi
5213506e
RW
11733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
11734$as_echo "$ac_cv_prog_fc_g" >&6; }
11735if test "$ac_test_FCFLAGS" = set; then
11736 FCFLAGS=$ac_save_FCFLAGS
1cf3d07d
SE
11737elif test $ac_cv_prog_fc_g = yes; then
11738 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11739 FCFLAGS="-g -O2"
11740 else
11741 FCFLAGS="-g"
11742 fi
11743else
11744 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11745 FCFLAGS="-O2"
11746 else
11747 FCFLAGS=
11748 fi
11749fi
11750
11751ac_ext=c
11752ac_cpp='$CPP $CPPFLAGS'
11753ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11754ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11755ac_compiler_gnu=$ac_cv_c_compiler_gnu
11756
11757if test -z "$FC" || test "X$FC" = "Xno"; then
11758 _lt_disable_FC=yes
11759fi
11760
11761
11762
5213506e
RW
11763 ac_ext=${ac_fc_srcext-f}
11764ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11765ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
1cf3d07d
SE
11766ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11767
11768
11769archive_cmds_need_lc_FC=no
11770allow_undefined_flag_FC=
11771always_export_symbols_FC=no
11772archive_expsym_cmds_FC=
11773export_dynamic_flag_spec_FC=
11774hardcode_direct_FC=no
11775hardcode_direct_absolute_FC=no
11776hardcode_libdir_flag_spec_FC=
11777hardcode_libdir_flag_spec_ld_FC=
11778hardcode_libdir_separator_FC=
11779hardcode_minus_L_FC=no
11780hardcode_automatic_FC=no
11781inherit_rpath_FC=no
11782module_cmds_FC=
11783module_expsym_cmds_FC=
11784link_all_deplibs_FC=unknown
11785old_archive_cmds_FC=$old_archive_cmds
11786no_undefined_flag_FC=
11787whole_archive_flag_spec_FC=
11788enable_shared_with_static_runtimes_FC=no
11789
11790# Source file extension for fc test sources.
11791ac_ext=${ac_fc_srcext-f}
11792
11793# Object file extension for compiled fc test sources.
11794objext=o
11795objext_FC=$objext
11796
11797# No sense in running all these tests if we already determined that
11798# the FC compiler isn't working. Some variables (like enable_shared)
11799# are currently assumed to apply to all compilers on this platform,
11800# and will be corrupted by setting them based on a non-working compiler.
11801if test "$_lt_disable_FC" != yes; then
11802 # Code to be used in simple compile tests
11803 lt_simple_compile_test_code="\
11804 subroutine t
11805 return
11806 end
11807"
11808
11809 # Code to be used in simple link tests
11810 lt_simple_link_test_code="\
11811 program t
11812 end
11813"
11814
11815 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11816
11817
11818
11819
11820
11821
11822# If no C compiler was specified, use CC.
11823LTCC=${LTCC-"$CC"}
11824
11825# If no C compiler flags were specified, use CFLAGS.
11826LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11827
11828# Allow CC to be a program name with arguments.
11829compiler=$CC
11830
11831
11832 # save warnings/boilerplate of simple test code
11833 ac_outfile=conftest.$ac_objext
11834echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11835eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11836_lt_compiler_boilerplate=`cat conftest.err`
11837$RM conftest*
11838
11839 ac_outfile=conftest.$ac_objext
11840echo "$lt_simple_link_test_code" >conftest.$ac_ext
11841eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11842_lt_linker_boilerplate=`cat conftest.err`
6b4a97ed 11843$RM -r conftest*
1cf3d07d
SE
11844
11845
11846 # Allow CC to be a program name with arguments.
11847 lt_save_CC="$CC"
6b4a97ed 11848 lt_save_GCC=$GCC
1cf3d07d
SE
11849 CC=${FC-"f95"}
11850 compiler=$CC
6b4a97ed
PG
11851 GCC=$ac_cv_fc_compiler_gnu
11852
1cf3d07d
SE
11853 compiler_FC=$CC
11854 for cc_temp in $compiler""; do
11855 case $cc_temp in
11856 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11857 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11858 \-*) ;;
11859 *) break;;
11860 esac
11861done
11862cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11863
11864
11865 if test -n "$compiler"; then
5213506e
RW
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11867$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11869$as_echo "$can_build_shared" >&6; }
1cf3d07d 11870
5213506e
RW
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11872$as_echo_n "checking whether to build shared libraries... " >&6; }
1cf3d07d
SE
11873 test "$can_build_shared" = "no" && enable_shared=no
11874
11875 # On AIX, shared libraries and static libraries use the same namespace, and
11876 # are all built from PIC.
11877 case $host_os in
11878 aix3*)
11879 test "$enable_shared" = yes && enable_static=no
11880 if test -n "$RANLIB"; then
11881 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11882 postinstall_cmds='$RANLIB $lib'
11883 fi
11884 ;;
d653fdfb 11885 aix[4-9]*)
1cf3d07d
SE
11886 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11887 test "$enable_shared" = yes && enable_static=no
11888 fi
11889 ;;
11890 esac
5213506e
RW
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11892$as_echo "$enable_shared" >&6; }
1cf3d07d 11893
5213506e
RW
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11895$as_echo_n "checking whether to build static libraries... " >&6; }
1cf3d07d
SE
11896 # Make sure either enable_shared or enable_static is yes.
11897 test "$enable_shared" = yes || enable_static=yes
5213506e
RW
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11899$as_echo "$enable_static" >&6; }
1cf3d07d
SE
11900
11901 GCC_FC="$ac_cv_fc_compiler_gnu"
11902 LD_FC="$LD"
11903
11904 ## CAVEAT EMPTOR:
11905 ## There is no encapsulation within the following macros, do not change
11906 ## the running order or otherwise move them around unless you know exactly
11907 ## what you are doing...
11908 # Dependencies to place before and after the object being linked:
11909predep_objects_FC=
11910postdep_objects_FC=
11911predeps_FC=
11912postdeps_FC=
11913compiler_lib_search_path_FC=
11914
11915cat > conftest.$ac_ext <<_LT_EOF
11916 subroutine foo
11917 implicit none
11918 integer a
11919 a=0
11920 return
11921 end
11922_LT_EOF
11923
5213506e 11924if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
11925 (eval $ac_compile) 2>&5
11926 ac_status=$?
5213506e
RW
11927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11928 test $ac_status = 0; }; then
1cf3d07d
SE
11929 # Parse the compiler output and extract the necessary
11930 # objects, libraries and library flags.
11931
11932 # Sentinel used to keep track of whether or not we are before
11933 # the conftest object file.
11934 pre_test_object_deps_done=no
11935
6b4a97ed 11936 for p in `eval "$output_verbose_link_cmd"`; do
1cf3d07d
SE
11937 case $p in
11938
11939 -L* | -R* | -l*)
11940 # Some compilers place space between "-{L,R}" and the path.
11941 # Remove the space.
11942 if test $p = "-L" ||
11943 test $p = "-R"; then
11944 prev=$p
11945 continue
11946 else
11947 prev=
11948 fi
11949
11950 if test "$pre_test_object_deps_done" = no; then
11951 case $p in
11952 -L* | -R*)
11953 # Internal compiler library paths should come after those
11954 # provided the user. The postdeps already come after the
11955 # user supplied libs so there is no need to process them.
11956 if test -z "$compiler_lib_search_path_FC"; then
11957 compiler_lib_search_path_FC="${prev}${p}"
11958 else
11959 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
11960 fi
11961 ;;
11962 # The "-l" case would never come before the object being
11963 # linked, so don't bother handling this case.
11964 esac
11965 else
11966 if test -z "$postdeps_FC"; then
11967 postdeps_FC="${prev}${p}"
11968 else
11969 postdeps_FC="${postdeps_FC} ${prev}${p}"
11970 fi
11971 fi
11972 ;;
11973
11974 *.$objext)
11975 # This assumes that the test object file only shows up
11976 # once in the compiler output.
11977 if test "$p" = "conftest.$objext"; then
11978 pre_test_object_deps_done=yes
11979 continue
11980 fi
11981
11982 if test "$pre_test_object_deps_done" = no; then
11983 if test -z "$predep_objects_FC"; then
11984 predep_objects_FC="$p"
11985 else
11986 predep_objects_FC="$predep_objects_FC $p"
11987 fi
11988 else
11989 if test -z "$postdep_objects_FC"; then
11990 postdep_objects_FC="$p"
11991 else
11992 postdep_objects_FC="$postdep_objects_FC $p"
11993 fi
11994 fi
11995 ;;
11996
11997 *) ;; # Ignore the rest.
11998
11999 esac
12000 done
12001
12002 # Clean up.
12003 rm -f a.out a.exe
12004else
12005 echo "libtool.m4: error: problem compiling FC test program"
12006fi
12007
12008$RM -f confest.$objext
12009
12010# PORTME: override above test on systems where it is broken
12011
12012
12013case " $postdeps_FC " in
12014*" -lc "*) archive_cmds_need_lc_FC=no ;;
12015esac
6b4a97ed
PG
12016 compiler_lib_search_dirs_FC=
12017if test -n "${compiler_lib_search_path_FC}"; then
12018 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12019fi
12020
12021
12022
12023
12024
1cf3d07d
SE
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051 lt_prog_compiler_wl_FC=
12052lt_prog_compiler_pic_FC=
12053lt_prog_compiler_static_FC=
12054
5213506e
RW
12055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12056$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
1cf3d07d
SE
12057
12058 if test "$GCC" = yes; then
12059 lt_prog_compiler_wl_FC='-Wl,'
12060 lt_prog_compiler_static_FC='-static'
12061
12062 case $host_os in
12063 aix*)
12064 # All AIX code is PIC.
12065 if test "$host_cpu" = ia64; then
12066 # AIX 5 now supports IA64 processor
12067 lt_prog_compiler_static_FC='-Bstatic'
12068 fi
12069 ;;
12070
12071 amigaos*)
6b4a97ed
PG
12072 case $host_cpu in
12073 powerpc)
12074 # see comment about AmigaOS4 .so support
12075 lt_prog_compiler_pic_FC='-fPIC'
12076 ;;
12077 m68k)
12078 # FIXME: we need at least 68020 code to build shared libraries, but
12079 # adding the `-m68020' flag to GCC prevents building anything better,
12080 # like `-m68040'.
12081 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
12082 ;;
12083 esac
1cf3d07d
SE
12084 ;;
12085
12086 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12087 # PIC is the default for these OSes.
12088 ;;
12089
6b4a97ed 12090 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
12091 # This hack is so that the source file can tell whether it is being
12092 # built for inclusion in a dll (and should export symbols for example).
12093 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12094 # (--disable-auto-import) libraries
12095 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12096 ;;
12097
12098 darwin* | rhapsody*)
12099 # PIC is the default on this platform
12100 # Common symbols not allowed in MH_DYLIB files
12101 lt_prog_compiler_pic_FC='-fno-common'
12102 ;;
12103
12104 hpux*)
6b4a97ed
PG
12105 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12106 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12107 # sets the default TLS model and affects inlining.
1cf3d07d 12108 case $host_cpu in
6b4a97ed 12109 hppa*64*)
1cf3d07d
SE
12110 # +Z the default
12111 ;;
12112 *)
12113 lt_prog_compiler_pic_FC='-fPIC'
12114 ;;
12115 esac
12116 ;;
12117
12118 interix[3-9]*)
12119 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12120 # Instead, we relocate shared libraries at runtime.
12121 ;;
12122
12123 msdosdjgpp*)
12124 # Just because we use GCC doesn't mean we suddenly get shared libraries
12125 # on systems that don't support them.
12126 lt_prog_compiler_can_build_shared_FC=no
12127 enable_shared=no
12128 ;;
12129
12130 *nto* | *qnx*)
12131 # QNX uses GNU C++, but need to define -shared option too, otherwise
12132 # it will coredump.
12133 lt_prog_compiler_pic_FC='-fPIC -shared'
12134 ;;
12135
12136 sysv4*MP*)
12137 if test -d /usr/nec; then
12138 lt_prog_compiler_pic_FC=-Kconform_pic
12139 fi
12140 ;;
12141
12142 *)
12143 lt_prog_compiler_pic_FC='-fPIC'
12144 ;;
12145 esac
12146 else
12147 # PORTME Check for flag to pass linker flags through the system compiler.
12148 case $host_os in
12149 aix*)
12150 lt_prog_compiler_wl_FC='-Wl,'
12151 if test "$host_cpu" = ia64; then
12152 # AIX 5 now supports IA64 processor
12153 lt_prog_compiler_static_FC='-Bstatic'
12154 else
12155 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
12156 fi
12157 ;;
1cf3d07d 12158
6b4a97ed 12159 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
12160 # This hack is so that the source file can tell whether it is being
12161 # built for inclusion in a dll (and should export symbols for example).
12162 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12163 ;;
12164
12165 hpux9* | hpux10* | hpux11*)
12166 lt_prog_compiler_wl_FC='-Wl,'
12167 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12168 # not for PA HP-UX.
12169 case $host_cpu in
12170 hppa*64*|ia64*)
12171 # +Z the default
12172 ;;
12173 *)
12174 lt_prog_compiler_pic_FC='+Z'
12175 ;;
12176 esac
12177 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12178 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
12179 ;;
12180
12181 irix5* | irix6* | nonstopux*)
12182 lt_prog_compiler_wl_FC='-Wl,'
12183 # PIC (with -KPIC) is the default.
12184 lt_prog_compiler_static_FC='-non_shared'
12185 ;;
12186
7a9d3fe8 12187 linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d 12188 case $cc_basename in
6b4a97ed
PG
12189 # old Intel for x86_64 which still supported -KPIC.
12190 ecc*)
1cf3d07d
SE
12191 lt_prog_compiler_wl_FC='-Wl,'
12192 lt_prog_compiler_pic_FC='-KPIC'
12193 lt_prog_compiler_static_FC='-static'
12194 ;;
6b4a97ed
PG
12195 # icc used to be incompatible with GCC.
12196 # ICC 10 doesn't accept -KPIC any more.
12197 icc* | ifort*)
12198 lt_prog_compiler_wl_FC='-Wl,'
12199 lt_prog_compiler_pic_FC='-fPIC'
12200 lt_prog_compiler_static_FC='-static'
12201 ;;
12202 # Lahey Fortran 8.1.
12203 lf95*)
12204 lt_prog_compiler_wl_FC='-Wl,'
12205 lt_prog_compiler_pic_FC='--shared'
12206 lt_prog_compiler_static_FC='--static'
12207 ;;
1cf3d07d
SE
12208 pgcc* | pgf77* | pgf90* | pgf95*)
12209 # Portland Group compilers (*not* the Pentium gcc compiler,
12210 # which looks to be a dead project)
12211 lt_prog_compiler_wl_FC='-Wl,'
12212 lt_prog_compiler_pic_FC='-fpic'
12213 lt_prog_compiler_static_FC='-Bstatic'
12214 ;;
12215 ccc*)
12216 lt_prog_compiler_wl_FC='-Wl,'
12217 # All Alpha code is PIC.
12218 lt_prog_compiler_static_FC='-non_shared'
12219 ;;
6b4a97ed
PG
12220 xl*)
12221 # IBM XL C 8.0/Fortran 10.1 on PPC
12222 lt_prog_compiler_wl_FC='-Wl,'
12223 lt_prog_compiler_pic_FC='-qpic'
12224 lt_prog_compiler_static_FC='-qstaticlink'
12225 ;;
1cf3d07d
SE
12226 *)
12227 case `$CC -V 2>&1 | sed 5q` in
12228 *Sun\ C*)
12229 # Sun C 5.9
12230 lt_prog_compiler_pic_FC='-KPIC'
12231 lt_prog_compiler_static_FC='-Bstatic'
12232 lt_prog_compiler_wl_FC='-Wl,'
12233 ;;
12234 *Sun\ F*)
12235 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12236 lt_prog_compiler_pic_FC='-KPIC'
12237 lt_prog_compiler_static_FC='-Bstatic'
12238 lt_prog_compiler_wl_FC=''
12239 ;;
12240 esac
12241 ;;
12242 esac
12243 ;;
12244
12245 newsos6)
12246 lt_prog_compiler_pic_FC='-KPIC'
12247 lt_prog_compiler_static_FC='-Bstatic'
12248 ;;
12249
12250 *nto* | *qnx*)
12251 # QNX uses GNU C++, but need to define -shared option too, otherwise
12252 # it will coredump.
12253 lt_prog_compiler_pic_FC='-fPIC -shared'
12254 ;;
12255
12256 osf3* | osf4* | osf5*)
12257 lt_prog_compiler_wl_FC='-Wl,'
12258 # All OSF/1 code is PIC.
12259 lt_prog_compiler_static_FC='-non_shared'
12260 ;;
12261
12262 rdos*)
12263 lt_prog_compiler_static_FC='-non_shared'
12264 ;;
12265
12266 solaris*)
12267 lt_prog_compiler_pic_FC='-KPIC'
12268 lt_prog_compiler_static_FC='-Bstatic'
12269 case $cc_basename in
12270 f77* | f90* | f95*)
12271 lt_prog_compiler_wl_FC='-Qoption ld ';;
12272 *)
12273 lt_prog_compiler_wl_FC='-Wl,';;
12274 esac
12275 ;;
12276
12277 sunos4*)
12278 lt_prog_compiler_wl_FC='-Qoption ld '
12279 lt_prog_compiler_pic_FC='-PIC'
12280 lt_prog_compiler_static_FC='-Bstatic'
12281 ;;
12282
12283 sysv4 | sysv4.2uw2* | sysv4.3*)
12284 lt_prog_compiler_wl_FC='-Wl,'
12285 lt_prog_compiler_pic_FC='-KPIC'
12286 lt_prog_compiler_static_FC='-Bstatic'
12287 ;;
12288
12289 sysv4*MP*)
12290 if test -d /usr/nec ;then
12291 lt_prog_compiler_pic_FC='-Kconform_pic'
12292 lt_prog_compiler_static_FC='-Bstatic'
12293 fi
12294 ;;
12295
12296 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12297 lt_prog_compiler_wl_FC='-Wl,'
12298 lt_prog_compiler_pic_FC='-KPIC'
12299 lt_prog_compiler_static_FC='-Bstatic'
12300 ;;
12301
12302 unicos*)
12303 lt_prog_compiler_wl_FC='-Wl,'
12304 lt_prog_compiler_can_build_shared_FC=no
12305 ;;
12306
12307 uts4*)
12308 lt_prog_compiler_pic_FC='-pic'
12309 lt_prog_compiler_static_FC='-Bstatic'
12310 ;;
12311
12312 *)
12313 lt_prog_compiler_can_build_shared_FC=no
12314 ;;
12315 esac
12316 fi
12317
12318case $host_os in
12319 # For platforms which do not support PIC, -DPIC is meaningless:
12320 *djgpp*)
12321 lt_prog_compiler_pic_FC=
12322 ;;
12323 *)
12324 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
12325 ;;
12326esac
5213506e
RW
12327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
12328$as_echo "$lt_prog_compiler_pic_FC" >&6; }
1cf3d07d
SE
12329
12330
12331
12332#
12333# Check to make sure the PIC flag actually works.
12334#
12335if test -n "$lt_prog_compiler_pic_FC"; then
5213506e
RW
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
12337$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
12338if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then :
12339 $as_echo_n "(cached) " >&6
1cf3d07d 12340else
6b4a97ed 12341 lt_cv_prog_compiler_pic_works_FC=no
1cf3d07d
SE
12342 ac_outfile=conftest.$ac_objext
12343 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12344 lt_compiler_flag="$lt_prog_compiler_pic_FC"
12345 # Insert the option either (1) after the last *FLAGS variable, or
12346 # (2) before a word containing "conftest.", or (3) at the end.
12347 # Note that $ac_compile itself does not contain backslashes and begins
12348 # with a dollar sign (not a hyphen), so the echo should work correctly.
12349 # The option is referenced via a variable to avoid confusing sed.
12350 lt_compile=`echo "$ac_compile" | $SED \
12351 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12352 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12353 -e 's:$: $lt_compiler_flag:'`
5213506e 12354 (eval echo "\"\$as_me:12354: $lt_compile\"" >&5)
1cf3d07d
SE
12355 (eval "$lt_compile" 2>conftest.err)
12356 ac_status=$?
12357 cat conftest.err >&5
5213506e 12358 echo "$as_me:12358: \$? = $ac_status" >&5
1cf3d07d
SE
12359 if (exit $ac_status) && test -s "$ac_outfile"; then
12360 # The compiler can only warn and ignore the option if not recognized
12361 # So say no if there are warnings other than the usual output.
12362 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12363 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12364 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6b4a97ed 12365 lt_cv_prog_compiler_pic_works_FC=yes
1cf3d07d
SE
12366 fi
12367 fi
12368 $RM conftest*
12369
12370fi
5213506e
RW
12371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
12372$as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
1cf3d07d 12373
6b4a97ed 12374if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
1cf3d07d
SE
12375 case $lt_prog_compiler_pic_FC in
12376 "" | " "*) ;;
12377 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
12378 esac
12379else
12380 lt_prog_compiler_pic_FC=
12381 lt_prog_compiler_can_build_shared_FC=no
12382fi
12383
12384fi
12385
12386
12387
12388#
12389# Check to make sure the static flag actually works.
12390#
12391wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
5213506e
RW
12392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12393$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12394if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then :
12395 $as_echo_n "(cached) " >&6
1cf3d07d 12396else
6b4a97ed 12397 lt_cv_prog_compiler_static_works_FC=no
1cf3d07d
SE
12398 save_LDFLAGS="$LDFLAGS"
12399 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12400 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12401 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12402 # The linker can only warn and ignore the option if not recognized
12403 # So say no if there are warnings
12404 if test -s conftest.err; then
12405 # Append any errors to the config.log.
12406 cat conftest.err 1>&5
12407 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12408 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12409 if diff conftest.exp conftest.er2 >/dev/null; then
6b4a97ed 12410 lt_cv_prog_compiler_static_works_FC=yes
1cf3d07d
SE
12411 fi
12412 else
6b4a97ed 12413 lt_cv_prog_compiler_static_works_FC=yes
1cf3d07d
SE
12414 fi
12415 fi
6b4a97ed 12416 $RM -r conftest*
1cf3d07d
SE
12417 LDFLAGS="$save_LDFLAGS"
12418
12419fi
5213506e
RW
12420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
12421$as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
1cf3d07d 12422
6b4a97ed 12423if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
1cf3d07d
SE
12424 :
12425else
12426 lt_prog_compiler_static_FC=
12427fi
12428
12429
12430
12431
5213506e
RW
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12433$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12434if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
12435 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12436else
12437 lt_cv_prog_compiler_c_o_FC=no
12438 $RM -r conftest 2>/dev/null
12439 mkdir conftest
12440 cd conftest
12441 mkdir out
12442 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12443
12444 lt_compiler_flag="-o out/conftest2.$ac_objext"
12445 # Insert the option either (1) after the last *FLAGS variable, or
12446 # (2) before a word containing "conftest.", or (3) at the end.
12447 # Note that $ac_compile itself does not contain backslashes and begins
12448 # with a dollar sign (not a hyphen), so the echo should work correctly.
12449 lt_compile=`echo "$ac_compile" | $SED \
12450 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12451 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12452 -e 's:$: $lt_compiler_flag:'`
5213506e 12453 (eval echo "\"\$as_me:12453: $lt_compile\"" >&5)
1cf3d07d
SE
12454 (eval "$lt_compile" 2>out/conftest.err)
12455 ac_status=$?
12456 cat out/conftest.err >&5
5213506e 12457 echo "$as_me:12457: \$? = $ac_status" >&5
1cf3d07d
SE
12458 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12459 then
12460 # The compiler can only warn and ignore the option if not recognized
12461 # So say no if there are warnings
12462 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12463 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12464 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12465 lt_cv_prog_compiler_c_o_FC=yes
12466 fi
12467 fi
12468 chmod u+w . 2>&5
12469 $RM conftest*
12470 # SGI C++ compiler will create directory out/ii_files/ for
12471 # template instantiation
12472 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12473 $RM out/* && rmdir out
12474 cd ..
12475 $RM -r conftest
12476 $RM conftest*
12477
12478fi
5213506e
RW
12479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12480$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
1cf3d07d
SE
12481
12482
12483
5213506e
RW
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12485$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12486if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
12487 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12488else
12489 lt_cv_prog_compiler_c_o_FC=no
12490 $RM -r conftest 2>/dev/null
12491 mkdir conftest
12492 cd conftest
12493 mkdir out
12494 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12495
12496 lt_compiler_flag="-o out/conftest2.$ac_objext"
12497 # Insert the option either (1) after the last *FLAGS variable, or
12498 # (2) before a word containing "conftest.", or (3) at the end.
12499 # Note that $ac_compile itself does not contain backslashes and begins
12500 # with a dollar sign (not a hyphen), so the echo should work correctly.
12501 lt_compile=`echo "$ac_compile" | $SED \
12502 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12503 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12504 -e 's:$: $lt_compiler_flag:'`
5213506e 12505 (eval echo "\"\$as_me:12505: $lt_compile\"" >&5)
1cf3d07d
SE
12506 (eval "$lt_compile" 2>out/conftest.err)
12507 ac_status=$?
12508 cat out/conftest.err >&5
5213506e 12509 echo "$as_me:12509: \$? = $ac_status" >&5
1cf3d07d
SE
12510 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12511 then
12512 # The compiler can only warn and ignore the option if not recognized
12513 # So say no if there are warnings
12514 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12515 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12516 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12517 lt_cv_prog_compiler_c_o_FC=yes
12518 fi
12519 fi
12520 chmod u+w . 2>&5
12521 $RM conftest*
12522 # SGI C++ compiler will create directory out/ii_files/ for
12523 # template instantiation
12524 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12525 $RM out/* && rmdir out
12526 cd ..
12527 $RM -r conftest
12528 $RM conftest*
12529
12530fi
5213506e
RW
12531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12532$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
1cf3d07d
SE
12533
12534
12535
12536
12537hard_links="nottested"
12538if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
12539 # do not overwrite the value of need_locks provided by the user
5213506e
RW
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12541$as_echo_n "checking if we can lock with hard links... " >&6; }
1cf3d07d
SE
12542 hard_links=yes
12543 $RM conftest*
12544 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12545 touch conftest.a
12546 ln conftest.a conftest.b 2>&5 || hard_links=no
12547 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5213506e
RW
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12549$as_echo "$hard_links" >&6; }
1cf3d07d 12550 if test "$hard_links" = no; then
5213506e
RW
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12552$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1cf3d07d
SE
12553 need_locks=warn
12554 fi
12555else
12556 need_locks=no
12557fi
12558
12559
12560
5213506e
RW
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12562$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1cf3d07d
SE
12563
12564 runpath_var=
12565 allow_undefined_flag_FC=
12566 always_export_symbols_FC=no
12567 archive_cmds_FC=
12568 archive_expsym_cmds_FC=
12569 compiler_needs_object_FC=no
12570 enable_shared_with_static_runtimes_FC=no
12571 export_dynamic_flag_spec_FC=
12572 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12573 hardcode_automatic_FC=no
12574 hardcode_direct_FC=no
12575 hardcode_direct_absolute_FC=no
12576 hardcode_libdir_flag_spec_FC=
12577 hardcode_libdir_flag_spec_ld_FC=
12578 hardcode_libdir_separator_FC=
12579 hardcode_minus_L_FC=no
12580 hardcode_shlibpath_var_FC=unsupported
12581 inherit_rpath_FC=no
12582 link_all_deplibs_FC=unknown
12583 module_cmds_FC=
12584 module_expsym_cmds_FC=
12585 old_archive_from_new_cmds_FC=
12586 old_archive_from_expsyms_cmds_FC=
12587 thread_safe_flag_spec_FC=
12588 whole_archive_flag_spec_FC=
12589 # include_expsyms should be a list of space-separated symbols to be *always*
12590 # included in the symbol list
12591 include_expsyms_FC=
12592 # exclude_expsyms can be an extended regexp of symbols to exclude
12593 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12594 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12595 # as well as any symbol that contains `d'.
6b4a97ed 12596 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1cf3d07d
SE
12597 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12598 # platforms (ab)use it in PIC code, but their linkers get confused if
12599 # the symbol is explicitly referenced. Since portable code cannot
12600 # rely on this symbol name, it's probably fine to never include it in
12601 # preloaded symbol tables.
6b4a97ed 12602 # Exclude shared library initialization/finalization symbols.
1cf3d07d
SE
12603 extract_expsyms_cmds=
12604
12605 case $host_os in
6b4a97ed 12606 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
12607 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12608 # When not using gcc, we currently assume that we are using
12609 # Microsoft Visual C++.
12610 if test "$GCC" != yes; then
12611 with_gnu_ld=no
12612 fi
12613 ;;
12614 interix*)
12615 # we just hope/assume this is gcc and not c89 (= MSVC++)
12616 with_gnu_ld=yes
12617 ;;
12618 openbsd*)
12619 with_gnu_ld=no
12620 ;;
12621 esac
12622
12623 ld_shlibs_FC=yes
12624 if test "$with_gnu_ld" = yes; then
12625 # If archive_cmds runs LD, not CC, wlarc should be empty
12626 wlarc='${wl}'
12627
12628 # Set some defaults for GNU ld with shared library support. These
12629 # are reset later if shared libraries are not supported. Putting them
12630 # here allows them to be overridden if necessary.
12631 runpath_var=LD_RUN_PATH
12632 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12633 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
12634 # ancient GNU ld didn't support --whole-archive et. al.
12635 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12636 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12637 else
12638 whole_archive_flag_spec_FC=
12639 fi
12640 supports_anon_versioning=no
12641 case `$LD -v 2>&1` in
12642 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12643 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12644 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12645 *\ 2.11.*) ;; # other 2.11 versions
12646 *) supports_anon_versioning=yes ;;
12647 esac
12648
12649 # See if GNU ld supports shared libraries.
12650 case $host_os in
d653fdfb 12651 aix[3-9]*)
1cf3d07d
SE
12652 # On AIX/PPC, the GNU linker is very broken
12653 if test "$host_cpu" != ia64; then
12654 ld_shlibs_FC=no
12655 cat <<_LT_EOF 1>&2
12656
12657*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12658*** to be unable to reliably create shared libraries on AIX.
12659*** Therefore, libtool is disabling shared libraries support. If you
12660*** really care for shared libraries, you may want to modify your PATH
12661*** so that a non-GNU linker is found, and then restart.
12662
12663_LT_EOF
12664 fi
12665 ;;
12666
12667 amigaos*)
6b4a97ed
PG
12668 case $host_cpu in
12669 powerpc)
12670 # see comment about AmigaOS4 .so support
12671 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12672 archive_expsym_cmds_FC=''
12673 ;;
12674 m68k)
12675 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)'
12676 hardcode_libdir_flag_spec_FC='-L$libdir'
12677 hardcode_minus_L_FC=yes
12678 ;;
12679 esac
1cf3d07d
SE
12680 ;;
12681
12682 beos*)
12683 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12684 allow_undefined_flag_FC=unsupported
12685 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12686 # support --undefined. This deserves some investigation. FIXME
12687 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12688 else
12689 ld_shlibs_FC=no
12690 fi
12691 ;;
12692
6b4a97ed 12693 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
12694 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
12695 # as there is no search path for DLLs.
12696 hardcode_libdir_flag_spec_FC='-L$libdir'
12697 allow_undefined_flag_FC=unsupported
12698 always_export_symbols_FC=no
12699 enable_shared_with_static_runtimes_FC=yes
12700 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12701
12702 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12703 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12704 # If the export-symbols file already is a .def file (1st line
12705 # is EXPORTS), use it as is; otherwise, prepend...
12706 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12707 cp $export_symbols $output_objdir/$soname.def;
12708 else
12709 echo EXPORTS > $output_objdir/$soname.def;
12710 cat $export_symbols >> $output_objdir/$soname.def;
12711 fi~
12712 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12713 else
12714 ld_shlibs_FC=no
12715 fi
12716 ;;
12717
12718 interix[3-9]*)
12719 hardcode_direct_FC=no
12720 hardcode_shlibpath_var_FC=no
12721 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
12722 export_dynamic_flag_spec_FC='${wl}-E'
12723 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12724 # Instead, shared libraries are loaded at an image base (0x10000000 by
12725 # default) and relocated if they conflict, which is a slow very memory
12726 # consuming and fragmenting process. To avoid this, we pick a random,
12727 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12728 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12729 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'
12730 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'
12731 ;;
12732
7a9d3fe8 12733 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
12734 tmp_diet=no
12735 if test "$host_os" = linux-dietlibc; then
12736 case $cc_basename in
12737 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12738 esac
12739 fi
12740 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12741 && test "$tmp_diet" = no
12742 then
12743 tmp_addflag=
6b4a97ed 12744 tmp_sharedflag='-shared'
1cf3d07d
SE
12745 case $cc_basename,$host_cpu in
12746 pgcc*) # Portland Group C compiler
12747 whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12748 tmp_addflag=' $pic_flag'
12749 ;;
12750 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
12751 whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12752 tmp_addflag=' $pic_flag -Mnomain' ;;
12753 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12754 tmp_addflag=' -i_dynamic' ;;
12755 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12756 tmp_addflag=' -i_dynamic -nofor_main' ;;
12757 ifc* | ifort*) # Intel Fortran compiler
12758 tmp_addflag=' -nofor_main' ;;
6b4a97ed
PG
12759 lf95*) # Lahey Fortran 8.1
12760 whole_archive_flag_spec_FC=
12761 tmp_sharedflag='--shared' ;;
12762 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12763 tmp_sharedflag='-qmkshrobj'
12764 tmp_addflag= ;;
1cf3d07d
SE
12765 esac
12766 case `$CC -V 2>&1 | sed 5q` in
12767 *Sun\ C*) # Sun C 5.9
12768 whole_archive_flag_spec_FC='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12769 compiler_needs_object_FC=yes
12770 tmp_sharedflag='-G' ;;
12771 *Sun\ F*) # Sun Fortran 8.3
12772 tmp_sharedflag='-G' ;;
1cf3d07d
SE
12773 esac
12774 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12775
12776 if test "x$supports_anon_versioning" = xyes; then
12777 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
12778 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12779 echo "local: *; };" >> $output_objdir/$libname.ver~
12780 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12781 fi
6b4a97ed
PG
12782
12783 case $cc_basename in
12784 xlf*)
12785 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12786 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
12787 hardcode_libdir_flag_spec_FC=
12788 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
12789 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12790 if test "x$supports_anon_versioning" = xyes; then
12791 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
12792 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12793 echo "local: *; };" >> $output_objdir/$libname.ver~
12794 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12795 fi
12796 ;;
12797 esac
1cf3d07d
SE
12798 else
12799 ld_shlibs_FC=no
12800 fi
12801 ;;
12802
12803 netbsd*)
12804 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12805 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12806 wlarc=
12807 else
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 fi
12811 ;;
12812
12813 solaris*)
12814 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12815 ld_shlibs_FC=no
12816 cat <<_LT_EOF 1>&2
12817
12818*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12819*** create shared libraries on Solaris systems. Therefore, libtool
12820*** is disabling shared libraries support. We urge you to upgrade GNU
12821*** binutils to release 2.9.1 or newer. Another option is to modify
12822*** your PATH or compiler configuration so that the native linker is
12823*** used, and then restart.
12824
12825_LT_EOF
12826 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12827 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12828 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12829 else
12830 ld_shlibs_FC=no
12831 fi
12832 ;;
12833
12834 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12835 case `$LD -v 2>&1` in
12836 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12837 ld_shlibs_FC=no
12838 cat <<_LT_EOF 1>&2
12839
12840*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12841*** reliably create shared libraries on SCO systems. Therefore, libtool
12842*** is disabling shared libraries support. We urge you to upgrade GNU
12843*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12844*** your PATH or compiler configuration so that the native linker is
12845*** used, and then restart.
12846
12847_LT_EOF
12848 ;;
12849 *)
12850 # For security reasons, it is highly recommended that you always
12851 # use absolute paths for naming shared libraries, and exclude the
12852 # DT_RUNPATH tag from executables and libraries. But doing so
12853 # requires that you compile everything twice, which is a pain.
12854 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12855 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12856 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12857 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12858 else
12859 ld_shlibs_FC=no
12860 fi
12861 ;;
12862 esac
12863 ;;
12864
12865 sunos4*)
12866 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12867 wlarc=
12868 hardcode_direct_FC=yes
12869 hardcode_shlibpath_var_FC=no
12870 ;;
12871
12872 *)
12873 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12874 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12875 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12876 else
12877 ld_shlibs_FC=no
12878 fi
12879 ;;
12880 esac
12881
12882 if test "$ld_shlibs_FC" = no; then
12883 runpath_var=
12884 hardcode_libdir_flag_spec_FC=
12885 export_dynamic_flag_spec_FC=
12886 whole_archive_flag_spec_FC=
12887 fi
12888 else
12889 # PORTME fill in a description of your system's linker (not GNU ld)
12890 case $host_os in
12891 aix3*)
12892 allow_undefined_flag_FC=unsupported
12893 always_export_symbols_FC=yes
12894 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'
12895 # Note: this linker hardcodes the directories in LIBPATH if there
12896 # are no directories specified by -L.
12897 hardcode_minus_L_FC=yes
12898 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12899 # Neither direct hardcoding nor static linking is supported with a
12900 # broken collect2.
12901 hardcode_direct_FC=unsupported
12902 fi
12903 ;;
12904
d653fdfb 12905 aix[4-9]*)
1cf3d07d
SE
12906 if test "$host_cpu" = ia64; then
12907 # On IA64, the linker does run time linking by default, so we don't
12908 # have to do anything special.
12909 aix_use_runtimelinking=no
12910 exp_sym_flag='-Bexport'
12911 no_entry_flag=""
12912 else
12913 # If we're using GNU nm, then we don't want the "-C" option.
12914 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12915 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12916 export_symbols_cmds_FC='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12917 else
12918 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'
12919 fi
12920 aix_use_runtimelinking=no
12921
12922 # Test if we are trying to use run time linking or normal
12923 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12924 # need to do runtime linking.
d653fdfb 12925 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1cf3d07d
SE
12926 for ld_flag in $LDFLAGS; do
12927 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12928 aix_use_runtimelinking=yes
12929 break
12930 fi
12931 done
12932 ;;
12933 esac
12934
12935 exp_sym_flag='-bexport'
12936 no_entry_flag='-bnoentry'
12937 fi
12938
12939 # When large executables or shared objects are built, AIX ld can
12940 # have problems creating the table of contents. If linking a library
12941 # or program results in "error TOC overflow" add -mminimal-toc to
12942 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12943 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12944
12945 archive_cmds_FC=''
12946 hardcode_direct_FC=yes
12947 hardcode_direct_absolute_FC=yes
12948 hardcode_libdir_separator_FC=':'
12949 link_all_deplibs_FC=yes
12950 file_list_spec_FC='${wl}-f,'
12951
12952 if test "$GCC" = yes; then
12953 case $host_os in aix4.[012]|aix4.[012].*)
12954 # We only want to do this on AIX 4.2 and lower, the check
12955 # below for broken collect2 doesn't work under 4.3+
12956 collect2name=`${CC} -print-prog-name=collect2`
12957 if test -f "$collect2name" &&
12958 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12959 then
12960 # We have reworked collect2
12961 :
12962 else
12963 # We have old collect2
12964 hardcode_direct_FC=unsupported
12965 # It fails to find uninstalled libraries when the uninstalled
12966 # path is not listed in the libpath. Setting hardcode_minus_L
12967 # to unsupported forces relinking
12968 hardcode_minus_L_FC=yes
12969 hardcode_libdir_flag_spec_FC='-L$libdir'
12970 hardcode_libdir_separator_FC=
12971 fi
12972 ;;
12973 esac
12974 shared_flag='-shared'
12975 if test "$aix_use_runtimelinking" = yes; then
12976 shared_flag="$shared_flag "'${wl}-G'
12977 fi
12978 else
12979 # not using gcc
12980 if test "$host_cpu" = ia64; then
12981 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12982 # chokes on -Wl,-G. The following line is correct:
12983 shared_flag='-G'
12984 else
12985 if test "$aix_use_runtimelinking" = yes; then
12986 shared_flag='${wl}-G'
12987 else
12988 shared_flag='${wl}-bM:SRE'
12989 fi
12990 fi
12991 fi
12992
6b4a97ed 12993 export_dynamic_flag_spec_FC='${wl}-bexpall'
1cf3d07d
SE
12994 # It seems that -bexpall does not export symbols beginning with
12995 # underscore (_), so it is better to generate a list of symbols to export.
12996 always_export_symbols_FC=yes
12997 if test "$aix_use_runtimelinking" = yes; then
12998 # Warning - without using the other runtime loading flags (-brtl),
12999 # -berok will link without error, but may produce a broken library.
13000 allow_undefined_flag_FC='-berok'
13001 # Determine the default libpath from the value encoded in an
13002 # empty executable.
5213506e 13003 cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
13004 program main
13005
13006 end
13007_ACEOF
5213506e 13008if ac_fn_fc_try_link "$LINENO"; then :
1cf3d07d
SE
13009
13010lt_aix_libpath_sed='
13011 /Import File Strings/,/^$/ {
13012 /^0/ {
13013 s/^0 *\(.*\)$/\1/
13014 p
13015 }
13016 }'
13017aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13018# Check for a 64-bit object if we didn't find anything.
13019if test -z "$aix_libpath"; then
13020 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13021fi
1cf3d07d 13022fi
5213506e
RW
13023rm -f core conftest.err conftest.$ac_objext \
13024 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
13025if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13026
13027 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13028 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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13029 else
13030 if test "$host_cpu" = ia64; then
13031 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
13032 allow_undefined_flag_FC="-z nodefs"
13033 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"
13034 else
13035 # Determine the default libpath from the value encoded in an
13036 # empty executable.
5213506e 13037 cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
13038 program main
13039
13040 end
13041_ACEOF
5213506e 13042if ac_fn_fc_try_link "$LINENO"; then :
1cf3d07d
SE
13043
13044lt_aix_libpath_sed='
13045 /Import File Strings/,/^$/ {
13046 /^0/ {
13047 s/^0 *\(.*\)$/\1/
13048 p
13049 }
13050 }'
13051aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13052# Check for a 64-bit object if we didn't find anything.
13053if test -z "$aix_libpath"; then
13054 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13055fi
1cf3d07d 13056fi
5213506e
RW
13057rm -f core conftest.err conftest.$ac_objext \
13058 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
13059if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13060
13061 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13062 # Warning - without using the other run time loading flags,
13063 # -berok will link without error, but may produce a broken library.
13064 no_undefined_flag_FC=' ${wl}-bernotok'
13065 allow_undefined_flag_FC=' ${wl}-berok'
13066 # Exported symbols can be pulled into shared objects from archives
13067 whole_archive_flag_spec_FC='$convenience'
13068 archive_cmds_need_lc_FC=yes
13069 # This is similar to how AIX traditionally builds its shared libraries.
13070 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'
13071 fi
13072 fi
953ff289 13073 ;;
1cf3d07d
SE
13074
13075 amigaos*)
6b4a97ed
PG
13076 case $host_cpu in
13077 powerpc)
13078 # see comment about AmigaOS4 .so support
13079 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13080 archive_expsym_cmds_FC=''
13081 ;;
13082 m68k)
13083 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)'
13084 hardcode_libdir_flag_spec_FC='-L$libdir'
13085 hardcode_minus_L_FC=yes
13086 ;;
13087 esac
953ff289 13088 ;;
1cf3d07d
SE
13089
13090 bsdi[45]*)
13091 export_dynamic_flag_spec_FC=-rdynamic
953ff289 13092 ;;
1cf3d07d 13093
6b4a97ed 13094 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
13095 # When not using gcc, we currently assume that we are using
13096 # Microsoft Visual C++.
13097 # hardcode_libdir_flag_spec is actually meaningless, as there is
13098 # no search path for DLLs.
13099 hardcode_libdir_flag_spec_FC=' '
13100 allow_undefined_flag_FC=unsupported
13101 # Tell ltmain to make .lib files, not .a files.
13102 libext=lib
13103 # Tell ltmain to make .dll files, not .so files.
13104 shrext_cmds=".dll"
13105 # FIXME: Setting linknames here is a bad hack.
13106 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
13107 # The linker will automatically build a .lib file if we build a DLL.
13108 old_archive_from_new_cmds_FC='true'
13109 # FIXME: Should let the user specify the lib program.
13110 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
13111 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
13112 enable_shared_with_static_runtimes_FC=yes
953ff289 13113 ;;
1cf3d07d
SE
13114
13115 darwin* | rhapsody*)
1cf3d07d 13116
6b4a97ed
PG
13117
13118 archive_cmds_need_lc_FC=no
13119 hardcode_direct_FC=no
13120 hardcode_automatic_FC=yes
13121 hardcode_shlibpath_var_FC=unsupported
13122 whole_archive_flag_spec_FC=''
13123 link_all_deplibs_FC=yes
13124 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
13125 case $cc_basename in
13126 ifort*) _lt_dar_can_shared=yes ;;
13127 *) _lt_dar_can_shared=$GCC ;;
13128 esac
13129 if test "$_lt_dar_can_shared" = "yes"; then
13130 output_verbose_link_cmd=echo
13131 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}"
13132 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13133 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}"
13134 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}"
13135
13136 else
13137 ld_shlibs_FC=no
13138 fi
13139
953ff289 13140 ;;
1cf3d07d
SE
13141
13142 dgux*)
13143 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13144 hardcode_libdir_flag_spec_FC='-L$libdir'
13145 hardcode_shlibpath_var_FC=no
953ff289 13146 ;;
953ff289 13147
1cf3d07d
SE
13148 freebsd1*)
13149 ld_shlibs_FC=no
953ff289 13150 ;;
1cf3d07d
SE
13151
13152 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13153 # support. Future versions do this automatically, but an explicit c++rt0.o
13154 # does not break anything, and helps significantly (at the cost of a little
13155 # extra space).
13156 freebsd2.2*)
13157 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13158 hardcode_libdir_flag_spec_FC='-R$libdir'
13159 hardcode_direct_FC=yes
13160 hardcode_shlibpath_var_FC=no
953ff289 13161 ;;
953ff289 13162
1cf3d07d
SE
13163 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13164 freebsd2*)
13165 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13166 hardcode_direct_FC=yes
13167 hardcode_minus_L_FC=yes
13168 hardcode_shlibpath_var_FC=no
13169 ;;
13170
13171 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13172 freebsd* | dragonfly*)
13173 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13174 hardcode_libdir_flag_spec_FC='-R$libdir'
13175 hardcode_direct_FC=yes
13176 hardcode_shlibpath_var_FC=no
13177 ;;
13178
13179 hpux9*)
13180 if test "$GCC" = yes; then
13181 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'
13182 else
13183 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'
13184 fi
13185 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13186 hardcode_libdir_separator_FC=:
13187 hardcode_direct_FC=yes
13188
13189 # hardcode_minus_L: Not really in the search PATH,
13190 # but as the default location of the library.
13191 hardcode_minus_L_FC=yes
13192 export_dynamic_flag_spec_FC='${wl}-E'
13193 ;;
13194
13195 hpux10*)
13196 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13197 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13198 else
13199 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13200 fi
13201 if test "$with_gnu_ld" = no; then
13202 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13203 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
13204 hardcode_libdir_separator_FC=:
13205 hardcode_direct_FC=yes
13206 hardcode_direct_absolute_FC=yes
13207 export_dynamic_flag_spec_FC='${wl}-E'
13208 # hardcode_minus_L: Not really in the search PATH,
13209 # but as the default location of the library.
13210 hardcode_minus_L_FC=yes
13211 fi
13212 ;;
13213
13214 hpux11*)
13215 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13216 case $host_cpu in
13217 hppa*64*)
13218 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13219 ;;
13220 ia64*)
6b4a97ed 13221 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
13222 ;;
13223 *)
13224 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13225 ;;
13226 esac
13227 else
13228 case $host_cpu in
13229 hppa*64*)
13230 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13231 ;;
13232 ia64*)
13233 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13234 ;;
13235 *)
13236 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13237 ;;
13238 esac
13239 fi
13240 if test "$with_gnu_ld" = no; then
13241 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13242 hardcode_libdir_separator_FC=:
13243
13244 case $host_cpu in
13245 hppa*64*|ia64*)
13246 hardcode_direct_FC=no
13247 hardcode_shlibpath_var_FC=no
13248 ;;
13249 *)
13250 hardcode_direct_FC=yes
13251 hardcode_direct_absolute_FC=yes
13252 export_dynamic_flag_spec_FC='${wl}-E'
13253
13254 # hardcode_minus_L: Not really in the search PATH,
13255 # but as the default location of the library.
13256 hardcode_minus_L_FC=yes
13257 ;;
13258 esac
13259 fi
13260 ;;
13261
13262 irix5* | irix6* | nonstopux*)
13263 if test "$GCC" = yes; then
13264 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13265 # Try to use the -exported_symbol ld option, if it does not
13266 # work, assume that -exports_file does not work either and
13267 # implicitly export all symbols.
13268 save_LDFLAGS="$LDFLAGS"
13269 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5213506e 13270 cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
13271int foo(void) {}
13272_ACEOF
5213506e 13273if ac_fn_fc_try_link "$LINENO"; then :
1cf3d07d
SE
13274 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
13275
1cf3d07d 13276fi
5213506e
RW
13277rm -f core conftest.err conftest.$ac_objext \
13278 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
13279 LDFLAGS="$save_LDFLAGS"
13280 else
13281 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13282 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
13283 fi
13284 archive_cmds_need_lc_FC='no'
13285 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13286 hardcode_libdir_separator_FC=:
13287 inherit_rpath_FC=yes
13288 link_all_deplibs_FC=yes
13289 ;;
13290
13291 netbsd*)
13292 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13293 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13294 else
13295 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13296 fi
13297 hardcode_libdir_flag_spec_FC='-R$libdir'
13298 hardcode_direct_FC=yes
13299 hardcode_shlibpath_var_FC=no
13300 ;;
13301
13302 newsos6)
13303 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13304 hardcode_direct_FC=yes
13305 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13306 hardcode_libdir_separator_FC=:
13307 hardcode_shlibpath_var_FC=no
13308 ;;
13309
13310 *nto* | *qnx*)
13311 ;;
13312
13313 openbsd*)
6b4a97ed
PG
13314 if test -f /usr/libexec/ld.so; then
13315 hardcode_direct_FC=yes
13316 hardcode_shlibpath_var_FC=no
13317 hardcode_direct_absolute_FC=yes
13318 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1cf3d07d 13319 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6b4a97ed 13320 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
1cf3d07d 13321 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
6b4a97ed
PG
13322 export_dynamic_flag_spec_FC='${wl}-E'
13323 else
13324 case $host_os in
13325 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13326 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13327 hardcode_libdir_flag_spec_FC='-R$libdir'
13328 ;;
13329 *)
13330 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13331 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13332 ;;
13333 esac
13334 fi
13335 else
13336 ld_shlibs_FC=no
1cf3d07d
SE
13337 fi
13338 ;;
13339
13340 os2*)
13341 hardcode_libdir_flag_spec_FC='-L$libdir'
13342 hardcode_minus_L_FC=yes
13343 allow_undefined_flag_FC=unsupported
13344 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'
13345 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13346 ;;
13347
13348 osf3*)
13349 if test "$GCC" = yes; then
13350 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13351 archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13352 else
13353 allow_undefined_flag_FC=' -expect_unresolved \*'
13354 archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13355 fi
13356 archive_cmds_need_lc_FC='no'
13357 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13358 hardcode_libdir_separator_FC=:
13359 ;;
13360
13361 osf4* | osf5*) # as osf3* with the addition of -msym flag
13362 if test "$GCC" = yes; then
13363 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13364 archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13365 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13366 else
13367 allow_undefined_flag_FC=' -expect_unresolved \*'
13368 archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13369 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~
13370 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
13371
13372 # Both c and cxx compiler support -rpath directly
13373 hardcode_libdir_flag_spec_FC='-rpath $libdir'
13374 fi
13375 archive_cmds_need_lc_FC='no'
13376 hardcode_libdir_separator_FC=:
13377 ;;
13378
13379 solaris*)
13380 no_undefined_flag_FC=' -z defs'
13381 if test "$GCC" = yes; then
13382 wlarc='${wl}'
13383 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13384 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13385 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13386 else
13387 case `$CC -V 2>&1` in
13388 *"Compilers 5.0"*)
13389 wlarc=''
13390 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13391 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13392 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13393 ;;
13394 *)
13395 wlarc='${wl}'
13396 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13397 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13398 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13399 ;;
13400 esac
13401 fi
13402 hardcode_libdir_flag_spec_FC='-R$libdir'
13403 hardcode_shlibpath_var_FC=no
13404 case $host_os in
13405 solaris2.[0-5] | solaris2.[0-5].*) ;;
13406 *)
13407 # The compiler driver will combine and reorder linker options,
13408 # but understands `-z linker_flag'. GCC discards it without `$wl',
13409 # but is careful enough not to reorder.
13410 # Supported since Solaris 2.6 (maybe 2.5.1?)
13411 if test "$GCC" = yes; then
13412 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13413 else
13414 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
13415 fi
13416 ;;
13417 esac
13418 link_all_deplibs_FC=yes
13419 ;;
13420
13421 sunos4*)
13422 if test "x$host_vendor" = xsequent; then
13423 # Use $CC to link under sequent, because it throws in some extra .o
13424 # files that make .init and .fini sections work.
13425 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13426 else
13427 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13428 fi
13429 hardcode_libdir_flag_spec_FC='-L$libdir'
13430 hardcode_direct_FC=yes
13431 hardcode_minus_L_FC=yes
13432 hardcode_shlibpath_var_FC=no
13433 ;;
13434
13435 sysv4)
13436 case $host_vendor in
13437 sni)
13438 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13439 hardcode_direct_FC=yes # is this really true???
13440 ;;
13441 siemens)
13442 ## LD is ld it makes a PLAMLIB
13443 ## CC just makes a GrossModule.
13444 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13445 reload_cmds_FC='$CC -r -o $output$reload_objs'
13446 hardcode_direct_FC=no
13447 ;;
13448 motorola)
13449 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13450 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
13451 ;;
953ff289 13452 esac
1cf3d07d
SE
13453 runpath_var='LD_RUN_PATH'
13454 hardcode_shlibpath_var_FC=no
13455 ;;
13456
13457 sysv4.3*)
13458 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13459 hardcode_shlibpath_var_FC=no
13460 export_dynamic_flag_spec_FC='-Bexport'
13461 ;;
13462
13463 sysv4*MP*)
13464 if test -d /usr/nec; then
13465 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13466 hardcode_shlibpath_var_FC=no
13467 runpath_var=LD_RUN_PATH
13468 hardcode_runpath_var=yes
13469 ld_shlibs_FC=yes
13470 fi
13471 ;;
13472
13473 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13474 no_undefined_flag_FC='${wl}-z,text'
13475 archive_cmds_need_lc_FC=no
13476 hardcode_shlibpath_var_FC=no
13477 runpath_var='LD_RUN_PATH'
13478
13479 if test "$GCC" = yes; then
13480 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13481 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13482 else
13483 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13484 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13485 fi
13486 ;;
13487
13488 sysv5* | sco3.2v5* | sco5v6*)
13489 # Note: We can NOT use -z defs as we might desire, because we do not
13490 # link with -lc, and that would cause any symbols used from libc to
13491 # always be unresolved, which means just about no library would
13492 # ever link correctly. If we're not using GNU ld we use -z text
13493 # though, which does catch some bad symbols but isn't as heavy-handed
13494 # as -z defs.
13495 no_undefined_flag_FC='${wl}-z,text'
13496 allow_undefined_flag_FC='${wl}-z,nodefs'
13497 archive_cmds_need_lc_FC=no
13498 hardcode_shlibpath_var_FC=no
13499 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
13500 hardcode_libdir_separator_FC=':'
13501 link_all_deplibs_FC=yes
13502 export_dynamic_flag_spec_FC='${wl}-Bexport'
13503 runpath_var='LD_RUN_PATH'
13504
13505 if test "$GCC" = yes; then
13506 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13507 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13508 else
13509 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13510 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13511 fi
13512 ;;
13513
13514 uts4*)
13515 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13516 hardcode_libdir_flag_spec_FC='-L$libdir'
13517 hardcode_shlibpath_var_FC=no
13518 ;;
13519
13520 *)
13521 ld_shlibs_FC=no
953ff289 13522 ;;
1cf3d07d
SE
13523 esac
13524
13525 if test x$host_vendor = xsni; then
953ff289 13526 case $host in
1cf3d07d
SE
13527 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13528 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
13529 ;;
953ff289 13530 esac
1cf3d07d 13531 fi
953ff289 13532 fi
953ff289 13533
5213506e
RW
13534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
13535$as_echo "$ld_shlibs_FC" >&6; }
1cf3d07d 13536test "$ld_shlibs_FC" = no && can_build_shared=no
953ff289 13537
1cf3d07d 13538with_gnu_ld_FC=$with_gnu_ld
953ff289 13539
953ff289 13540
953ff289 13541
953ff289 13542
1cf3d07d
SE
13543
13544
13545#
13546# Do we need to explicitly link libc?
13547#
13548case "x$archive_cmds_need_lc_FC" in
13549x|xyes)
13550 # Assume -lc should be added
13551 archive_cmds_need_lc_FC=yes
13552
13553 if test "$enable_shared" = yes && test "$GCC" = yes; then
13554 case $archive_cmds_FC in
13555 *'~'*)
13556 # FIXME: we may have to deal with multi-command sequences.
13557 ;;
13558 '$CC '*)
13559 # Test whether the compiler implicitly links with -lc since on some
13560 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13561 # to ld, don't add -lc before -lgcc.
5213506e
RW
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13563$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13564if test "${lt_cv_archive_cmds_need_lc_FC+set}" = set; then :
13565 $as_echo_n "(cached) " >&6
baafc534
RW
13566else
13567 $RM conftest*
13568 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1cf3d07d 13569
5213506e 13570 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d 13571 (eval $ac_compile) 2>&5
953ff289 13572 ac_status=$?
5213506e
RW
13573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13574 test $ac_status = 0; } 2>conftest.err; then
baafc534
RW
13575 soname=conftest
13576 lib=conftest
13577 libobjs=conftest.$ac_objext
13578 deplibs=
13579 wl=$lt_prog_compiler_wl_FC
13580 pic_flag=$lt_prog_compiler_pic_FC
13581 compiler_flags=-v
13582 linker_flags=-v
13583 verstring=
13584 output_objdir=.
13585 libname=conftest
13586 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
13587 allow_undefined_flag_FC=
5213506e 13588 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1cf3d07d 13589 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
953ff289 13590 ac_status=$?
5213506e
RW
13591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13592 test $ac_status = 0; }
baafc534
RW
13593 then
13594 lt_cv_archive_cmds_need_lc_FC=no
13595 else
13596 lt_cv_archive_cmds_need_lc_FC=yes
13597 fi
13598 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
13599 else
13600 cat conftest.err 1>&5
13601 fi
13602 $RM conftest*
13603
13604fi
5213506e
RW
13605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
13606$as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
baafc534 13607 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
1cf3d07d
SE
13608 ;;
13609 esac
953ff289
DN
13610 fi
13611 ;;
1cf3d07d
SE
13612esac
13613
953ff289
DN
13614
13615
953ff289
DN
13616
13617
953ff289 13618
953ff289 13619
953ff289 13620
953ff289 13621
953ff289
DN
13622
13623
953ff289 13624
953ff289 13625
953ff289
DN
13626
13627
13628
13629
13630
13631
13632
13633
13634
c41303c6
RH
13635
13636
c41303c6 13637
c41303c6
RH
13638
13639
13640
953ff289 13641
953ff289 13642
953ff289 13643
953ff289 13644
953ff289 13645
953ff289
DN
13646
13647
953ff289 13648
953ff289 13649
953ff289 13650
953ff289 13651
953ff289 13652
953ff289 13653
953ff289 13654
1cf3d07d
SE
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
5213506e
RW
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13678$as_echo_n "checking dynamic linker characteristics... " >&6; }
6b4a97ed 13679
1cf3d07d
SE
13680library_names_spec=
13681libname_spec='lib$name'
13682soname_spec=
13683shrext_cmds=".so"
13684postinstall_cmds=
13685postuninstall_cmds=
13686finish_cmds=
13687finish_eval=
13688shlibpath_var=
13689shlibpath_overrides_runpath=unknown
13690version_type=none
13691dynamic_linker="$host_os ld.so"
13692sys_lib_dlsearch_path_spec="/lib /usr/lib"
13693need_lib_prefix=unknown
13694hardcode_into_libs=no
13695
13696# when you set need_version to no, make sure it does not cause -set_version
13697# flags to be left without arguments
13698need_version=unknown
13699
13700case $host_os in
13701aix3*)
13702 version_type=linux
13703 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13704 shlibpath_var=LIBPATH
13705
13706 # AIX 3 has no versioning support, so we append a major version to the name.
13707 soname_spec='${libname}${release}${shared_ext}$major'
13708 ;;
13709
d653fdfb 13710aix[4-9]*)
1cf3d07d
SE
13711 version_type=linux
13712 need_lib_prefix=no
13713 need_version=no
13714 hardcode_into_libs=yes
13715 if test "$host_cpu" = ia64; then
13716 # AIX 5 supports IA64
13717 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13718 shlibpath_var=LD_LIBRARY_PATH
953ff289 13719 else
1cf3d07d
SE
13720 # With GCC up to 2.95.x, collect2 would create an import file
13721 # for dependence libraries. The import file would start with
13722 # the line `#! .'. This would cause the generated library to
13723 # depend on `.', always an invalid library. This was fixed in
13724 # development snapshots of GCC prior to 3.0.
13725 case $host_os in
13726 aix4 | aix4.[01] | aix4.[01].*)
13727 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13728 echo ' yes '
13729 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13730 :
13731 else
13732 can_build_shared=no
13733 fi
13734 ;;
13735 esac
13736 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13737 # soname into executable. Probably we can add versioning support to
13738 # collect2, so additional links can be useful in future.
13739 if test "$aix_use_runtimelinking" = yes; then
13740 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13741 # instead of lib<name>.a to let people know that these are not
13742 # typical AIX shared libraries.
13743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13744 else
13745 # We preserve .a as extension for shared libraries through AIX4.2
13746 # and later when we are not doing run time linking.
13747 library_names_spec='${libname}${release}.a $libname.a'
13748 soname_spec='${libname}${release}${shared_ext}$major'
13749 fi
13750 shlibpath_var=LIBPATH
953ff289 13751 fi
1cf3d07d
SE
13752 ;;
13753
13754amigaos*)
6b4a97ed
PG
13755 case $host_cpu in
13756 powerpc)
13757 # Since July 2007 AmigaOS4 officially supports .so libraries.
13758 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13760 ;;
13761 m68k)
1cf3d07d
SE
13762 library_names_spec='$libname.ixlibrary $libname.a'
13763 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13764 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
6b4a97ed
PG
13765 ;;
13766 esac
1cf3d07d 13767 ;;
953ff289 13768
1cf3d07d
SE
13769beos*)
13770 library_names_spec='${libname}${shared_ext}'
13771 dynamic_linker="$host_os ld.so"
13772 shlibpath_var=LIBRARY_PATH
13773 ;;
953ff289 13774
1cf3d07d
SE
13775bsdi[45]*)
13776 version_type=linux
13777 need_version=no
13778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13779 soname_spec='${libname}${release}${shared_ext}$major'
13780 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13781 shlibpath_var=LD_LIBRARY_PATH
13782 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13783 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13784 # the default ld.so.conf also contains /usr/contrib/lib and
13785 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13786 # libtool to hard-code these into programs
13787 ;;
953ff289 13788
6b4a97ed 13789cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
13790 version_type=windows
13791 shrext_cmds=".dll"
13792 need_version=no
13793 need_lib_prefix=no
13794
6b4a97ed
PG
13795 case $GCC,$host_os in
13796 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
1cf3d07d
SE
13797 library_names_spec='$libname.dll.a'
13798 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13799 postinstall_cmds='base_file=`basename \${file}`~
13800 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13801 dldir=$destdir/`dirname \$dlpath`~
13802 test -d \$dldir || mkdir -p \$dldir~
13803 $install_prog $dir/$dlname \$dldir/$dlname~
13804 chmod a+x \$dldir/$dlname~
13805 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13806 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13807 fi'
13808 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13809 dlpath=$dir/\$dldll~
13810 $RM \$dlpath'
13811 shlibpath_overrides_runpath=yes
13812
13813 case $host_os in
13814 cygwin*)
13815 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13816 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13817 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13818 ;;
6b4a97ed 13819 mingw* | cegcc*)
1cf3d07d
SE
13820 # MinGW DLLs use traditional 'lib' prefix
13821 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13822 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13823 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13824 # It is most probably a Windows format PATH printed by
13825 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13826 # path with ; separators, and with drive letters. We can handle the
13827 # drive letters (cygwin fileutils understands them), so leave them,
13828 # especially as we might pass files found there to a mingw objdump,
13829 # which wouldn't understand a cygwinified path. Ahh.
13830 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13831 else
13832 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13833 fi
13834 ;;
13835 pw32*)
13836 # pw32 DLLs use 'pw' prefix rather than 'lib'
13837 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13838 ;;
13839 esac
13840 ;;
953ff289 13841
1cf3d07d
SE
13842 *)
13843 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13844 ;;
13845 esac
13846 dynamic_linker='Win32 ld.exe'
13847 # FIXME: first we should search . and the directory the executable is in
13848 shlibpath_var=PATH
13849 ;;
953ff289 13850
1cf3d07d
SE
13851darwin* | rhapsody*)
13852 dynamic_linker="$host_os dyld"
13853 version_type=darwin
13854 need_lib_prefix=no
13855 need_version=no
13856 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13857 soname_spec='${libname}${release}${major}$shared_ext'
13858 shlibpath_overrides_runpath=yes
13859 shlibpath_var=DYLD_LIBRARY_PATH
13860 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13861
13862 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13863 ;;
13864
13865dgux*)
13866 version_type=linux
13867 need_lib_prefix=no
13868 need_version=no
13869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13870 soname_spec='${libname}${release}${shared_ext}$major'
13871 shlibpath_var=LD_LIBRARY_PATH
13872 ;;
13873
13874freebsd1*)
13875 dynamic_linker=no
13876 ;;
13877
13878freebsd* | dragonfly*)
13879 # DragonFly does not have aout. When/if they implement a new
13880 # versioning mechanism, adjust this.
13881 if test -x /usr/bin/objformat; then
13882 objformat=`/usr/bin/objformat`
953ff289 13883 else
1cf3d07d
SE
13884 case $host_os in
13885 freebsd[123]*) objformat=aout ;;
13886 *) objformat=elf ;;
13887 esac
953ff289 13888 fi
1cf3d07d
SE
13889 version_type=freebsd-$objformat
13890 case $version_type in
13891 freebsd-elf*)
13892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13893 need_version=no
13894 need_lib_prefix=no
13895 ;;
13896 freebsd-*)
13897 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13898 need_version=yes
13899 ;;
13900 esac
13901 shlibpath_var=LD_LIBRARY_PATH
13902 case $host_os in
13903 freebsd2*)
13904 shlibpath_overrides_runpath=yes
13905 ;;
13906 freebsd3.[01]* | freebsdelf3.[01]*)
13907 shlibpath_overrides_runpath=yes
13908 hardcode_into_libs=yes
13909 ;;
13910 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13911 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13912 shlibpath_overrides_runpath=no
13913 hardcode_into_libs=yes
13914 ;;
13915 *) # from 4.6 on, and DragonFly
13916 shlibpath_overrides_runpath=yes
13917 hardcode_into_libs=yes
13918 ;;
13919 esac
13920 ;;
953ff289 13921
1cf3d07d
SE
13922gnu*)
13923 version_type=linux
13924 need_lib_prefix=no
13925 need_version=no
13926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13927 soname_spec='${libname}${release}${shared_ext}$major'
13928 shlibpath_var=LD_LIBRARY_PATH
13929 hardcode_into_libs=yes
13930 ;;
953ff289 13931
1cf3d07d
SE
13932hpux9* | hpux10* | hpux11*)
13933 # Give a soname corresponding to the major version so that dld.sl refuses to
13934 # link against other versions.
13935 version_type=sunos
13936 need_lib_prefix=no
13937 need_version=no
13938 case $host_cpu in
13939 ia64*)
13940 shrext_cmds='.so'
13941 hardcode_into_libs=yes
13942 dynamic_linker="$host_os dld.so"
13943 shlibpath_var=LD_LIBRARY_PATH
13944 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13946 soname_spec='${libname}${release}${shared_ext}$major'
13947 if test "X$HPUX_IA64_MODE" = X32; then
13948 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13949 else
13950 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13951 fi
13952 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13953 ;;
13954 hppa*64*)
13955 shrext_cmds='.sl'
13956 hardcode_into_libs=yes
13957 dynamic_linker="$host_os dld.sl"
13958 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13959 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13961 soname_spec='${libname}${release}${shared_ext}$major'
13962 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13963 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13964 ;;
13965 *)
13966 shrext_cmds='.sl'
13967 dynamic_linker="$host_os dld.sl"
13968 shlibpath_var=SHLIB_PATH
13969 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13971 soname_spec='${libname}${release}${shared_ext}$major'
13972 ;;
13973 esac
13974 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13975 postinstall_cmds='chmod 555 $lib'
13976 ;;
13977
13978interix[3-9]*)
13979 version_type=linux
13980 need_lib_prefix=no
13981 need_version=no
13982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13983 soname_spec='${libname}${release}${shared_ext}$major'
13984 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13985 shlibpath_var=LD_LIBRARY_PATH
13986 shlibpath_overrides_runpath=no
13987 hardcode_into_libs=yes
13988 ;;
13989
13990irix5* | irix6* | nonstopux*)
13991 case $host_os in
13992 nonstopux*) version_type=nonstopux ;;
13993 *)
13994 if test "$lt_cv_prog_gnu_ld" = yes; then
13995 version_type=linux
13996 else
13997 version_type=irix
13998 fi ;;
13999 esac
14000 need_lib_prefix=no
14001 need_version=no
14002 soname_spec='${libname}${release}${shared_ext}$major'
14003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14004 case $host_os in
14005 irix5* | nonstopux*)
14006 libsuff= shlibsuff=
14007 ;;
14008 *)
14009 case $LD in # libtool.m4 will add one of these switches to LD
14010 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14011 libsuff= shlibsuff= libmagic=32-bit;;
14012 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14013 libsuff=32 shlibsuff=N32 libmagic=N32;;
14014 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14015 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14016 *) libsuff= shlibsuff= libmagic=never-match;;
14017 esac
14018 ;;
14019 esac
14020 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14021 shlibpath_overrides_runpath=no
14022 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14023 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14024 hardcode_into_libs=yes
14025 ;;
14026
14027# No shared lib support for Linux oldld, aout, or coff.
14028linux*oldld* | linux*aout* | linux*coff*)
14029 dynamic_linker=no
14030 ;;
14031
14032# This must be Linux ELF.
7a9d3fe8 14033linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
14034 version_type=linux
14035 need_lib_prefix=no
14036 need_version=no
14037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14038 soname_spec='${libname}${release}${shared_ext}$major'
14039 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14040 shlibpath_var=LD_LIBRARY_PATH
14041 shlibpath_overrides_runpath=no
baafc534 14042
1cf3d07d 14043 # Some binutils ld are patched to set DT_RUNPATH
5213506e
RW
14044 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14045 $as_echo_n "(cached) " >&6
baafc534
RW
14046else
14047 lt_cv_shlibpath_overrides_runpath=no
14048 save_LDFLAGS=$LDFLAGS
14049 save_libdir=$libdir
14050 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
14051 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
5213506e 14052 cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
14053 program main
14054
14055 end
953ff289 14056_ACEOF
5213506e
RW
14057if ac_fn_fc_try_link "$LINENO"; then :
14058 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
baafc534 14059 lt_cv_shlibpath_overrides_runpath=yes
953ff289 14060fi
953ff289 14061fi
5213506e
RW
14062rm -f core conftest.err conftest.$ac_objext \
14063 conftest$ac_exeext conftest.$ac_ext
baafc534
RW
14064 LDFLAGS=$save_LDFLAGS
14065 libdir=$save_libdir
14066
14067fi
14068
14069 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
1cf3d07d
SE
14070
14071 # This implies no fast_install, which is unacceptable.
14072 # Some rework will be needed to allow for fast_install
14073 # before this can be enabled.
14074 hardcode_into_libs=yes
14075
14076 # Append ld.so.conf contents to the search path
14077 if test -f /etc/ld.so.conf; then
6b4a97ed 14078 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;/^$/d' | tr '\n' ' '`
1cf3d07d
SE
14079 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14080 fi
953ff289 14081
1cf3d07d
SE
14082 # We used to test for /lib/ld.so.1 and disable shared libraries on
14083 # powerpc, because MkLinux only supported shared libraries with the
14084 # GNU dynamic linker. Since this was broken with cross compilers,
14085 # most powerpc-linux boxes support dynamic linking these days and
14086 # people can always --disable-shared, the test was removed, and we
14087 # assume the GNU/Linux dynamic linker is in use.
14088 dynamic_linker='GNU/Linux ld.so'
14089 ;;
953ff289 14090
1cf3d07d
SE
14091netbsd*)
14092 version_type=sunos
14093 need_lib_prefix=no
14094 need_version=no
14095 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14097 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14098 dynamic_linker='NetBSD (a.out) ld.so'
14099 else
14100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14101 soname_spec='${libname}${release}${shared_ext}$major'
14102 dynamic_linker='NetBSD ld.elf_so'
14103 fi
14104 shlibpath_var=LD_LIBRARY_PATH
14105 shlibpath_overrides_runpath=yes
14106 hardcode_into_libs=yes
14107 ;;
953ff289 14108
1cf3d07d
SE
14109newsos6)
14110 version_type=linux
14111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14112 shlibpath_var=LD_LIBRARY_PATH
14113 shlibpath_overrides_runpath=yes
14114 ;;
14115
14116*nto* | *qnx*)
14117 version_type=qnx
14118 need_lib_prefix=no
14119 need_version=no
14120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14121 soname_spec='${libname}${release}${shared_ext}$major'
14122 shlibpath_var=LD_LIBRARY_PATH
14123 shlibpath_overrides_runpath=no
14124 hardcode_into_libs=yes
14125 dynamic_linker='ldqnx.so'
14126 ;;
14127
14128openbsd*)
14129 version_type=sunos
14130 sys_lib_dlsearch_path_spec="/usr/lib"
14131 need_lib_prefix=no
14132 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14133 case $host_os in
14134 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14135 *) need_version=no ;;
14136 esac
14137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14138 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14139 shlibpath_var=LD_LIBRARY_PATH
14140 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14141 case $host_os in
14142 openbsd2.[89] | openbsd2.[89].*)
14143 shlibpath_overrides_runpath=no
14144 ;;
14145 *)
14146 shlibpath_overrides_runpath=yes
14147 ;;
14148 esac
953ff289 14149 else
1cf3d07d 14150 shlibpath_overrides_runpath=yes
953ff289 14151 fi
1cf3d07d 14152 ;;
953ff289 14153
1cf3d07d
SE
14154os2*)
14155 libname_spec='$name'
14156 shrext_cmds=".dll"
14157 need_lib_prefix=no
14158 library_names_spec='$libname${shared_ext} $libname.a'
14159 dynamic_linker='OS/2 ld.exe'
14160 shlibpath_var=LIBPATH
14161 ;;
14162
14163osf3* | osf4* | osf5*)
14164 version_type=osf
14165 need_lib_prefix=no
14166 need_version=no
14167 soname_spec='${libname}${release}${shared_ext}$major'
14168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14169 shlibpath_var=LD_LIBRARY_PATH
14170 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14171 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14172 ;;
14173
14174rdos*)
14175 dynamic_linker=no
14176 ;;
14177
14178solaris*)
14179 version_type=linux
14180 need_lib_prefix=no
14181 need_version=no
14182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14183 soname_spec='${libname}${release}${shared_ext}$major'
14184 shlibpath_var=LD_LIBRARY_PATH
14185 shlibpath_overrides_runpath=yes
14186 hardcode_into_libs=yes
14187 # ldd complains unless libraries are executable
14188 postinstall_cmds='chmod +x $lib'
14189 ;;
14190
14191sunos4*)
14192 version_type=sunos
14193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14194 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14195 shlibpath_var=LD_LIBRARY_PATH
14196 shlibpath_overrides_runpath=yes
14197 if test "$with_gnu_ld" = yes; then
14198 need_lib_prefix=no
14199 fi
14200 need_version=yes
14201 ;;
14202
14203sysv4 | sysv4.3*)
14204 version_type=linux
14205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14206 soname_spec='${libname}${release}${shared_ext}$major'
14207 shlibpath_var=LD_LIBRARY_PATH
14208 case $host_vendor in
14209 sni)
14210 shlibpath_overrides_runpath=no
14211 need_lib_prefix=no
14212 runpath_var=LD_RUN_PATH
14213 ;;
14214 siemens)
14215 need_lib_prefix=no
14216 ;;
14217 motorola)
14218 need_lib_prefix=no
14219 need_version=no
14220 shlibpath_overrides_runpath=no
14221 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14222 ;;
14223 esac
14224 ;;
14225
14226sysv4*MP*)
14227 if test -d /usr/nec ;then
14228 version_type=linux
14229 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14230 soname_spec='$libname${shared_ext}.$major'
14231 shlibpath_var=LD_LIBRARY_PATH
14232 fi
14233 ;;
14234
14235sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14236 version_type=freebsd-elf
14237 need_lib_prefix=no
14238 need_version=no
14239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14240 soname_spec='${libname}${release}${shared_ext}$major'
14241 shlibpath_var=LD_LIBRARY_PATH
14242 shlibpath_overrides_runpath=yes
14243 hardcode_into_libs=yes
14244 if test "$with_gnu_ld" = yes; then
14245 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14246 else
14247 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14248 case $host_os in
14249 sco3.2v5*)
14250 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14251 ;;
14252 esac
14253 fi
14254 sys_lib_dlsearch_path_spec='/usr/lib'
14255 ;;
14256
14257tpf*)
14258 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14259 version_type=linux
14260 need_lib_prefix=no
14261 need_version=no
6b4a97ed 14262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1cf3d07d
SE
14263 shlibpath_var=LD_LIBRARY_PATH
14264 shlibpath_overrides_runpath=no
14265 hardcode_into_libs=yes
14266 ;;
14267
14268uts4*)
14269 version_type=linux
14270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14271 soname_spec='${libname}${release}${shared_ext}$major'
14272 shlibpath_var=LD_LIBRARY_PATH
14273 ;;
14274
14275*)
14276 dynamic_linker=no
14277 ;;
14278esac
5213506e
RW
14279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14280$as_echo "$dynamic_linker" >&6; }
1cf3d07d
SE
14281test "$dynamic_linker" = no && can_build_shared=no
14282
5213506e
RW
14283variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14284if test "$GCC" = yes; then
14285 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14286fi
876080ff 14287
5213506e
RW
14288if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14289 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14290fi
14291if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14292 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
876080ff
JJ
14293fi
14294
953ff289
DN
14295
14296
953ff289 14297
953ff289
DN
14298
14299
a68ab351 14300
a68ab351 14301
a68ab351 14302
953ff289 14303
953ff289 14304
953ff289 14305
953ff289 14306
953ff289 14307
953ff289 14308
953ff289 14309
953ff289 14310
953ff289
DN
14311
14312
14313
14314
14315
953ff289 14316
953ff289 14317
953ff289 14318
953ff289 14319
953ff289
DN
14320
14321
14322
14323
953ff289
DN
14324
14325
03b8fe49 14326
03b8fe49 14327
03b8fe49 14328
03b8fe49 14329
5213506e
RW
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14331$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14332hardcode_action_FC=
14333if test -n "$hardcode_libdir_flag_spec_FC" ||
14334 test -n "$runpath_var_FC" ||
14335 test "X$hardcode_automatic_FC" = "Xyes" ; then
03b8fe49 14336
5213506e
RW
14337 # We can hardcode non-existent directories.
14338 if test "$hardcode_direct_FC" != no &&
14339 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14340 # have to relink, otherwise we might link with an installed library
14341 # when we should be linking with a yet-to-be-installed one
14342 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
14343 test "$hardcode_minus_L_FC" != no; then
14344 # Linking always hardcodes the temporary library directory.
14345 hardcode_action_FC=relink
14346 else
14347 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14348 hardcode_action_FC=immediate
14349 fi
03b8fe49 14350else
5213506e
RW
14351 # We cannot hardcode anything, or else we can only hardcode existing
14352 # directories.
14353 hardcode_action_FC=unsupported
14354fi
14355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
14356$as_echo "$hardcode_action_FC" >&6; }
03b8fe49 14357
5213506e
RW
14358if test "$hardcode_action_FC" = relink ||
14359 test "$inherit_rpath_FC" = yes; then
14360 # Fast installation is not supported
14361 enable_fast_install=no
14362elif test "$shlibpath_overrides_runpath" = yes ||
14363 test "$enable_shared" = no; then
14364 # Fast installation is not necessary
14365 enable_fast_install=needless
03b8fe49 14366fi
03b8fe49 14367
03b8fe49 14368
03b8fe49 14369
03b8fe49 14370
03b8fe49 14371
03b8fe49 14372
03b8fe49 14373
5213506e 14374 fi # test -n "$compiler"
03b8fe49 14375
5213506e
RW
14376 GCC=$lt_save_GCC
14377 CC="$lt_save_CC"
14378fi # test "$_lt_disable_FC" != yes
03b8fe49 14379
5213506e
RW
14380ac_ext=c
14381ac_cpp='$CPP $CPPFLAGS'
14382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14384ac_compiler_gnu=$ac_cv_c_compiler_gnu
14385
14386
14387FCFLAGS="$FCFLAGS -Wall"
14388
14389# For libtool versioning info, format is CURRENT:REVISION:AGE
14390libtool_VERSION=1:0:0
03b8fe49 14391
5213506e
RW
14392
14393# Check header files.
14394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14395$as_echo_n "checking for ANSI C header files... " >&6; }
14396if test "${ac_cv_header_stdc+set}" = set; then :
14397 $as_echo_n "(cached) " >&6
03b8fe49 14398else
5213506e 14399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
03b8fe49 14400/* end confdefs.h. */
03b8fe49 14401#include <stdlib.h>
5213506e
RW
14402#include <stdarg.h>
14403#include <string.h>
14404#include <float.h>
14405
03b8fe49
PB
14406int
14407main ()
14408{
14409
03b8fe49
PB
14410 ;
14411 return 0;
14412}
14413_ACEOF
5213506e
RW
14414if ac_fn_c_try_compile "$LINENO"; then :
14415 ac_cv_header_stdc=yes
03b8fe49 14416else
5213506e 14417 ac_cv_header_stdc=no
03b8fe49 14418fi
5213506e 14419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
03b8fe49 14420
5213506e
RW
14421if test $ac_cv_header_stdc = yes; then
14422 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
03b8fe49 14424/* end confdefs.h. */
5213506e 14425#include <string.h>
03b8fe49 14426
03b8fe49 14427_ACEOF
5213506e
RW
14428if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14429 $EGREP "memchr" >/dev/null 2>&1; then :
14430
03b8fe49 14431else
5213506e
RW
14432 ac_cv_header_stdc=no
14433fi
14434rm -f conftest*
03b8fe49 14435
03b8fe49 14436fi
03b8fe49 14437
5213506e
RW
14438if test $ac_cv_header_stdc = yes; then
14439 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
03b8fe49 14441/* end confdefs.h. */
5213506e 14442#include <stdlib.h>
03b8fe49 14443
03b8fe49 14444_ACEOF
5213506e
RW
14445if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14446 $EGREP "free" >/dev/null 2>&1; then :
14447
14448else
14449 ac_cv_header_stdc=no
14450fi
14451rm -f conftest*
14452
14453fi
14454
14455if test $ac_cv_header_stdc = yes; then
14456 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14457 if test "$cross_compiling" = yes; then :
14458 :
14459else
14460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
03b8fe49 14461/* end confdefs.h. */
5213506e
RW
14462#include <ctype.h>
14463#include <stdlib.h>
14464#if ((' ' & 0x0FF) == 0x020)
14465# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14466# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14467#else
14468# define ISLOWER(c) \
14469 (('a' <= (c) && (c) <= 'i') \
14470 || ('j' <= (c) && (c) <= 'r') \
14471 || ('s' <= (c) && (c) <= 'z'))
14472# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14473#endif
03b8fe49 14474
5213506e 14475#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
03b8fe49
PB
14476int
14477main ()
14478{
5213506e
RW
14479 int i;
14480 for (i = 0; i < 256; i++)
14481 if (XOR (islower (i), ISLOWER (i))
14482 || toupper (i) != TOUPPER (i))
14483 return 2;
03b8fe49
PB
14484 return 0;
14485}
14486_ACEOF
5213506e 14487if ac_fn_c_try_run "$LINENO"; then :
03b8fe49 14488
03b8fe49 14489else
5213506e
RW
14490 ac_cv_header_stdc=no
14491fi
14492rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14493 conftest.$ac_objext conftest.beam conftest.$ac_ext
14494fi
03b8fe49 14495
03b8fe49 14496fi
03b8fe49 14497fi
5213506e
RW
14498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14499$as_echo "$ac_cv_header_stdc" >&6; }
14500if test $ac_cv_header_stdc = yes; then
14501
14502$as_echo "#define STDC_HEADERS 1" >>confdefs.h
14503
14504fi
14505
14506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14507$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14508if test "${ac_cv_header_time+set}" = set; then :
14509 $as_echo_n "(cached) " >&6
14510else
14511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
03b8fe49 14512/* end confdefs.h. */
5213506e
RW
14513#include <sys/types.h>
14514#include <sys/time.h>
14515#include <time.h>
03b8fe49
PB
14516
14517int
14518main ()
14519{
5213506e
RW
14520if ((struct tm *) 0)
14521return 0;
03b8fe49
PB
14522 ;
14523 return 0;
14524}
14525_ACEOF
5213506e
RW
14526if ac_fn_c_try_compile "$LINENO"; then :
14527 ac_cv_header_time=yes
03b8fe49 14528else
5213506e
RW
14529 ac_cv_header_time=no
14530fi
14531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14532fi
14533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14534$as_echo "$ac_cv_header_time" >&6; }
14535if test $ac_cv_header_time = yes; then
14536
14537$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
03b8fe49 14538
03b8fe49 14539fi
5213506e
RW
14540
14541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
14542$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
14543if test "${gcc_cv_header_string+set}" = set; then :
14544 $as_echo_n "(cached) " >&6
03b8fe49 14545else
5213506e 14546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
03b8fe49 14547/* end confdefs.h. */
5213506e
RW
14548#include <string.h>
14549#include <strings.h>
03b8fe49
PB
14550int
14551main ()
14552{
14553
03b8fe49
PB
14554 ;
14555 return 0;
14556}
14557_ACEOF
5213506e
RW
14558if ac_fn_c_try_compile "$LINENO"; then :
14559 gcc_cv_header_string=yes
03b8fe49 14560else
5213506e 14561 gcc_cv_header_string=no
03b8fe49 14562fi
5213506e 14563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
03b8fe49 14564fi
5213506e
RW
14565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
14566$as_echo "$gcc_cv_header_string" >&6; }
14567if test $gcc_cv_header_string = yes; then
14568
14569$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
14570
03b8fe49 14571fi
5213506e
RW
14572
14573for ac_header in unistd.h semaphore.h sys/loadavg.h sys/time.h sys/time.h
14574do :
14575 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14576ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14577eval as_val=\$$as_ac_Header
14578 if test "x$as_val" = x""yes; then :
14579 cat >>confdefs.h <<_ACEOF
14580#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
03b8fe49 14581_ACEOF
03b8fe49 14582
5213506e 14583fi
03b8fe49 14584
5213506e 14585done
03b8fe49 14586
03b8fe49 14587
5213506e
RW
14588
14589
14590inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
14591
14592acx_cv_header_stdint=stddef.h
14593acx_cv_header_stdint_kind="(already complete)"
14594for i in stdint.h $inttype_headers; do
14595 unset ac_cv_type_uintptr_t
14596 unset ac_cv_type_uintmax_t
14597 unset ac_cv_type_int_least32_t
14598 unset ac_cv_type_int_fast32_t
14599 unset ac_cv_type_uint64_t
14600 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
14601 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
14602#include <$i>
14603"
14604if test "x$ac_cv_type_uintmax_t" = x""yes; then :
14605 acx_cv_header_stdint=$i
14606else
14607 continue
14608fi
14609
14610 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
14611#include <$i>
14612"
14613if test "x$ac_cv_type_uintptr_t" = x""yes; then :
14614
14615else
14616 acx_cv_header_stdint_kind="(mostly complete)"
14617fi
14618
14619 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
14620#include <$i>
14621"
14622if test "x$ac_cv_type_int_least32_t" = x""yes; then :
14623
14624else
14625 acx_cv_header_stdint_kind="(mostly complete)"
14626fi
14627
14628 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
14629#include <$i>
14630"
14631if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
14632
03b8fe49 14633else
5213506e
RW
14634 acx_cv_header_stdint_kind="(mostly complete)"
14635fi
03b8fe49 14636
5213506e
RW
14637 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
14638#include <$i>
14639"
14640if test "x$ac_cv_type_uint64_t" = x""yes; then :
14641
14642else
14643 acx_cv_header_stdint_kind="(lacks uint64_t)"
03b8fe49 14644fi
5213506e
RW
14645
14646 break
14647done
14648if test "$acx_cv_header_stdint" = stddef.h; then
14649 acx_cv_header_stdint_kind="(lacks uintmax_t)"
14650 for i in stdint.h $inttype_headers; do
14651 unset ac_cv_type_uintptr_t
14652 unset ac_cv_type_uint32_t
14653 unset ac_cv_type_uint64_t
14654 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
14655 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
14656#include <$i>
14657"
14658if test "x$ac_cv_type_uint32_t" = x""yes; then :
14659 acx_cv_header_stdint=$i
03b8fe49 14660else
5213506e
RW
14661 continue
14662fi
03b8fe49 14663
5213506e
RW
14664 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
14665#include <$i>
14666"
14667if test "x$ac_cv_type_uint64_t" = x""yes; then :
03b8fe49 14668
5213506e 14669fi
03b8fe49 14670
5213506e
RW
14671 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
14672#include <$i>
14673"
14674if test "x$ac_cv_type_uintptr_t" = x""yes; then :
03b8fe49 14675
5213506e 14676fi
03b8fe49 14677
5213506e
RW
14678 break
14679 done
14680fi
14681if test "$acx_cv_header_stdint" = stddef.h; then
14682 acx_cv_header_stdint_kind="(u_intXX_t style)"
14683 for i in sys/types.h $inttype_headers; do
14684 unset ac_cv_type_u_int32_t
14685 unset ac_cv_type_u_int64_t
14686 $as_echo_n "looking for u_intXX_t types in $i, " >&6
14687 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
14688#include <$i>
14689"
14690if test "x$ac_cv_type_u_int32_t" = x""yes; then :
14691 acx_cv_header_stdint=$i
03b8fe49 14692else
5213506e
RW
14693 continue
14694fi
14695
14696 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
14697#include <$i>
14698"
14699if test "x$ac_cv_type_u_int64_t" = x""yes; then :
03b8fe49 14700
03b8fe49 14701fi
03b8fe49 14702
5213506e
RW
14703 break
14704 done
03b8fe49 14705fi
5213506e
RW
14706if test "$acx_cv_header_stdint" = stddef.h; then
14707 acx_cv_header_stdint_kind="(using manual detection)"
03b8fe49 14708fi
03b8fe49 14709
5213506e
RW
14710test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
14711test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
14712test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
14713test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
14714test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
03b8fe49 14715
5213506e 14716# ----------------- Summarize what we found so far
03b8fe49 14717
5213506e
RW
14718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
14719$as_echo_n "checking what to include in gstdint.h... " >&6; }
14720
14721case `$as_basename -- gstdint.h ||
14722$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
14723 Xgstdint.h : 'X\(//\)$' \| \
14724 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
14725$as_echo X/gstdint.h |
14726 sed '/^.*\/\([^/][^/]*\)\/*$/{
14727 s//\1/
14728 q
14729 }
14730 /^X\/\(\/\/\)$/{
14731 s//\1/
14732 q
14733 }
14734 /^X\/\(\/\).*/{
14735 s//\1/
14736 q
14737 }
14738 s/.*/./; q'` in
14739 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
14740$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14741 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
14742$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14743 *) ;;
03b8fe49 14744esac
03b8fe49 14745
5213506e
RW
14746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
14747$as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
03b8fe49 14748
5213506e 14749# ----------------- done included file, check C basic types --------
03b8fe49 14750
5213506e
RW
14751# Lacking an uintptr_t? Test size of void *
14752case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
14753 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
14754# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14755# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14756# This bug is HP SR number 8606223364.
14757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
14758$as_echo_n "checking size of void *... " >&6; }
14759if test "${ac_cv_sizeof_void_p+set}" = set; then :
14760 $as_echo_n "(cached) " >&6
03b8fe49 14761else
5213506e 14762 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
03b8fe49 14763
5213506e
RW
14764else
14765 if test "$ac_cv_type_void_p" = yes; then
14766 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14767$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14768{ as_fn_set_status 77
14769as_fn_error "cannot compute sizeof (void *)
14770See \`config.log' for more details." "$LINENO" 5; }; }
14771 else
14772 ac_cv_sizeof_void_p=0
14773 fi
03b8fe49 14774fi
5213506e 14775
03b8fe49 14776fi
5213506e
RW
14777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
14778$as_echo "$ac_cv_sizeof_void_p" >&6; }
03b8fe49 14779
03b8fe49 14780
5213506e
RW
14781
14782cat >>confdefs.h <<_ACEOF
14783#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
03b8fe49 14784_ACEOF
03b8fe49 14785
5213506e
RW
14786 ;;
14787esac
03b8fe49 14788
5213506e
RW
14789# Lacking an uint64_t? Test size of long
14790case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
14791 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
14792# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14793# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14794# This bug is HP SR number 8606223364.
14795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
14796$as_echo_n "checking size of long... " >&6; }
14797if test "${ac_cv_sizeof_long+set}" = set; then :
14798 $as_echo_n "(cached) " >&6
03b8fe49 14799else
5213506e 14800 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
03b8fe49 14801
03b8fe49 14802else
5213506e
RW
14803 if test "$ac_cv_type_long" = yes; then
14804 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14805$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14806{ as_fn_set_status 77
14807as_fn_error "cannot compute sizeof (long)
14808See \`config.log' for more details." "$LINENO" 5; }; }
14809 else
14810 ac_cv_sizeof_long=0
14811 fi
14812fi
03b8fe49 14813
5213506e
RW
14814fi
14815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
14816$as_echo "$ac_cv_sizeof_long" >&6; }
03b8fe49 14817
03b8fe49 14818
5213506e
RW
14819
14820cat >>confdefs.h <<_ACEOF
14821#define SIZEOF_LONG $ac_cv_sizeof_long
03b8fe49 14822_ACEOF
03b8fe49 14823
5213506e
RW
14824 ;;
14825esac
03b8fe49 14826
5213506e
RW
14827if test $acx_cv_header_stdint = stddef.h; then
14828 # Lacking a good header? Test size of everything and deduce all types.
14829 # The cast to long int works around a bug in the HP C Compiler
14830# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14831# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14832# This bug is HP SR number 8606223364.
14833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
14834$as_echo_n "checking size of int... " >&6; }
14835if test "${ac_cv_sizeof_int+set}" = set; then :
14836 $as_echo_n "(cached) " >&6
03b8fe49 14837else
5213506e
RW
14838 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
14839
14840else
14841 if test "$ac_cv_type_int" = yes; then
14842 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14843$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14844{ as_fn_set_status 77
14845as_fn_error "cannot compute sizeof (int)
14846See \`config.log' for more details." "$LINENO" 5; }; }
14847 else
14848 ac_cv_sizeof_int=0
14849 fi
14850fi
14851
14852fi
14853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
14854$as_echo "$ac_cv_sizeof_int" >&6; }
14855
14856
14857
14858cat >>confdefs.h <<_ACEOF
14859#define SIZEOF_INT $ac_cv_sizeof_int
14860_ACEOF
03b8fe49 14861
5213506e
RW
14862
14863 # The cast to long int works around a bug in the HP C Compiler
14864# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14865# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14866# This bug is HP SR number 8606223364.
14867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
14868$as_echo_n "checking size of short... " >&6; }
14869if test "${ac_cv_sizeof_short+set}" = set; then :
14870 $as_echo_n "(cached) " >&6
03b8fe49 14871else
5213506e 14872 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
03b8fe49 14873
5213506e
RW
14874else
14875 if test "$ac_cv_type_short" = yes; then
14876 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14877$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14878{ as_fn_set_status 77
14879as_fn_error "cannot compute sizeof (short)
14880See \`config.log' for more details." "$LINENO" 5; }; }
14881 else
14882 ac_cv_sizeof_short=0
14883 fi
03b8fe49 14884fi
5213506e 14885
03b8fe49 14886fi
5213506e
RW
14887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
14888$as_echo "$ac_cv_sizeof_short" >&6; }
03b8fe49 14889
03b8fe49 14890
5213506e
RW
14891
14892cat >>confdefs.h <<_ACEOF
14893#define SIZEOF_SHORT $ac_cv_sizeof_short
03b8fe49 14894_ACEOF
5213506e
RW
14895
14896
14897 # The cast to long int works around a bug in the HP C Compiler
14898# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14899# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14900# This bug is HP SR number 8606223364.
14901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
14902$as_echo_n "checking size of char... " >&6; }
14903if test "${ac_cv_sizeof_char+set}" = set; then :
14904 $as_echo_n "(cached) " >&6
03b8fe49 14905else
5213506e 14906 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
03b8fe49 14907
03b8fe49 14908else
5213506e
RW
14909 if test "$ac_cv_type_char" = yes; then
14910 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14911$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14912{ as_fn_set_status 77
14913as_fn_error "cannot compute sizeof (char)
14914See \`config.log' for more details." "$LINENO" 5; }; }
14915 else
14916 ac_cv_sizeof_char=0
14917 fi
14918fi
03b8fe49 14919
5213506e
RW
14920fi
14921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
14922$as_echo "$ac_cv_sizeof_char" >&6; }
03b8fe49 14923
03b8fe49 14924
5213506e
RW
14925
14926cat >>confdefs.h <<_ACEOF
14927#define SIZEOF_CHAR $ac_cv_sizeof_char
03b8fe49 14928_ACEOF
03b8fe49 14929
5213506e
RW
14930
14931
14932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
14933$as_echo_n "checking for type equivalent to int8_t... " >&6; }
14934 case "$ac_cv_sizeof_char" in
14935 1) acx_cv_type_int8_t=char ;;
14936 *) { as_fn_set_status please report a bug
14937as_fn_error "no 8-bit type" "$LINENO" 5; }
14938 esac
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
14940$as_echo "$acx_cv_type_int8_t" >&6; }
14941
14942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
14943$as_echo_n "checking for type equivalent to int16_t... " >&6; }
14944 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
14945 2:*) acx_cv_type_int16_t=int ;;
14946 *:2) acx_cv_type_int16_t=short ;;
14947 *) { as_fn_set_status please report a bug
14948as_fn_error "no 16-bit type" "$LINENO" 5; }
14949 esac
14950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
14951$as_echo "$acx_cv_type_int16_t" >&6; }
14952
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
14954$as_echo_n "checking for type equivalent to int32_t... " >&6; }
14955 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
14956 4:*) acx_cv_type_int32_t=int ;;
14957 *:4) acx_cv_type_int32_t=long ;;
14958 *) { as_fn_set_status please report a bug
14959as_fn_error "no 32-bit type" "$LINENO" 5; }
14960 esac
14961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
14962$as_echo "$acx_cv_type_int32_t" >&6; }
03b8fe49 14963fi
5213506e
RW
14964
14965# These tests are here to make the output prettier
14966
14967if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
14968 case "$ac_cv_sizeof_long" in
14969 8) acx_cv_type_int64_t=long ;;
14970 esac
14971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
14972$as_echo_n "checking for type equivalent to int64_t... " >&6; }
14973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
14974$as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
03b8fe49 14975fi
5213506e
RW
14976
14977# Now we can use the above types
14978
14979if test "$ac_cv_type_uintptr_t" != yes; then
14980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
14981$as_echo_n "checking for type equivalent to intptr_t... " >&6; }
14982 case $ac_cv_sizeof_void_p in
14983 2) acx_cv_type_intptr_t=int16_t ;;
14984 4) acx_cv_type_intptr_t=int32_t ;;
14985 8) acx_cv_type_intptr_t=int64_t ;;
14986 *) { as_fn_set_status please report a bug
14987as_fn_error "no equivalent for intptr_t" "$LINENO" 5; }
14988 esac
14989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
14990$as_echo "$acx_cv_type_intptr_t" >&6; }
03b8fe49 14991fi
03b8fe49 14992
5213506e
RW
14993# ----------------- done all checks, emit header -------------
14994ac_config_commands="$ac_config_commands gstdint.h"
14995
14996
14997
14998
14999# Check to see if -pthread or -lpthread is needed. Prefer the former.
15000# In case the pthread.h system header is not found, this test will fail.
15001XPCFLAGS=""
15002CFLAGS="$CFLAGS -pthread"
15003cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15004/* end confdefs.h. */
15005#include <pthread.h>
15006 void *g(void *d) { return NULL; }
a68ab351
JJ
15007int
15008main ()
15009{
5213506e 15010pthread_t t; pthread_create(&t,NULL,g,NULL);
a68ab351
JJ
15011 ;
15012 return 0;
15013}
15014_ACEOF
5213506e
RW
15015if ac_fn_c_try_link "$LINENO"; then :
15016 XPCFLAGS=" -Wc,-pthread"
15017else
15018 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
15019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a68ab351 15020/* end confdefs.h. */
5213506e
RW
15021#include <pthread.h>
15022 void *g(void *d) { return NULL; }
a68ab351
JJ
15023int
15024main ()
15025{
5213506e 15026pthread_t t; pthread_create(&t,NULL,g,NULL);
a68ab351
JJ
15027 ;
15028 return 0;
15029}
15030_ACEOF
5213506e 15031if ac_fn_c_try_link "$LINENO"; then :
a68ab351 15032
a68ab351 15033else
5213506e
RW
15034 as_fn_error "Pthreads are required to build libgomp" "$LINENO" 5
15035fi
15036rm -f core conftest.err conftest.$ac_objext \
15037 conftest$ac_exeext conftest.$ac_ext
15038fi
15039rm -f core conftest.err conftest.$ac_objext \
15040 conftest$ac_exeext conftest.$ac_ext
a68ab351 15041
5213506e
RW
15042# Check for functions needed.
15043for ac_func in getloadavg clock_gettime strtoull
15044do :
15045 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15046ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15047eval as_val=\$$as_ac_var
15048 if test "x$as_val" = x""yes; then :
15049 cat >>confdefs.h <<_ACEOF
15050#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
a68ab351 15051_ACEOF
a68ab351 15052
5213506e
RW
15053fi
15054done
15055
15056
15057# Check for broken semaphore implementation on darwin.
15058# sem_init returns: sem_init error: Function not implemented.
15059case "$host" in
15060 *-darwin*)
15061
15062$as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
15063
15064 ;;
15065esac
15066
15067 # Check whether --enable-linux-futex was given.
15068if test "${enable_linux_futex+set}" = set; then :
15069 enableval=$enable_linux_futex;
15070 case "$enableval" in
15071 yes|no|default) ;;
15072 *) as_fn_error "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
15073 esac
15074
15075else
15076 enable_linux_futex=default
15077fi
a68ab351 15078
a68ab351 15079
5213506e
RW
15080case "$target" in
15081 *-linux*)
15082 case "$enable_linux_futex" in
15083 default)
15084 # If headers don't have gettid/futex syscalls definition, then
15085 # default to no, otherwise there will be compile time failures.
15086 # Otherwise, default to yes. If we don't detect we are
15087 # compiled/linked against NPTL and not cross-compiling, check
15088 # if programs are run by default against NPTL and if not, issue
15089 # a warning.
15090 enable_linux_futex=no
15091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15092/* end confdefs.h. */
15093#include <sys/syscall.h>
15094 int lk;
a68ab351
JJ
15095int
15096main ()
15097{
5213506e 15098syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
a68ab351
JJ
15099 ;
15100 return 0;
15101}
15102_ACEOF
5213506e
RW
15103if ac_fn_c_try_link "$LINENO"; then :
15104 save_LIBS="$LIBS"
15105 LIBS="-lpthread $LIBS"
15106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a68ab351 15107/* end confdefs.h. */
5213506e
RW
15108#ifndef _GNU_SOURCE
15109 #define _GNU_SOURCE 1
15110 #endif
15111 #include <pthread.h>
15112 pthread_t th; void *status;
a68ab351
JJ
15113int
15114main ()
15115{
5213506e 15116pthread_tryjoin_np (th, &status);
a68ab351
JJ
15117 ;
15118 return 0;
15119}
15120_ACEOF
5213506e
RW
15121if ac_fn_c_try_link "$LINENO"; then :
15122 enable_linux_futex=yes
a68ab351 15123else
5213506e
RW
15124 if test x$cross_compiling = xno; then
15125 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
15126 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
15127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
15128If so, please configure with --disable-linux-futex" >&5
15129$as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
15130If so, please configure with --disable-linux-futex" >&2;}
15131 fi
15132 fi
15133 enable_linux_futex=yes
a68ab351 15134fi
5213506e
RW
15135rm -f core conftest.err conftest.$ac_objext \
15136 conftest$ac_exeext conftest.$ac_ext
15137 LIBS="$save_LIBS"
15138fi
15139rm -f core conftest.err conftest.$ac_objext \
15140 conftest$ac_exeext conftest.$ac_ext
15141 ;;
15142 yes)
15143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a68ab351 15144/* end confdefs.h. */
5213506e
RW
15145#include <sys/syscall.h>
15146 int lk;
a68ab351
JJ
15147int
15148main ()
15149{
5213506e 15150syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
a68ab351
JJ
15151 ;
15152 return 0;
15153}
15154_ACEOF
5213506e 15155if ac_fn_c_try_link "$LINENO"; then :
a68ab351 15156
5213506e
RW
15157else
15158 as_fn_error "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
a68ab351 15159fi
5213506e
RW
15160rm -f core conftest.err conftest.$ac_objext \
15161 conftest$ac_exeext conftest.$ac_ext
15162 ;;
15163 esac
15164 ;;
15165 *)
15166 enable_linux_futex=no
15167 ;;
15168esac
15169if test x$enable_linux_futex = xyes; then
15170 :
a68ab351 15171fi
a68ab351 15172
5213506e
RW
15173
15174# Check for pthread_{,attr_}[sg]etaffinity_np.
15175cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15176/* end confdefs.h. */
15177#define _GNU_SOURCE
15178 #include <pthread.h>
a68ab351
JJ
15179int
15180main ()
15181{
5213506e
RW
15182cpu_set_t cpuset;
15183 pthread_attr_t attr;
15184 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15185 if (CPU_ISSET (0, &cpuset))
15186 CPU_SET (1, &cpuset);
15187 else
15188 CPU_ZERO (&cpuset);
15189 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15190 pthread_attr_init (&attr);
15191 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15192 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
a68ab351
JJ
15193 ;
15194 return 0;
15195}
15196_ACEOF
5213506e
RW
15197if ac_fn_c_try_link "$LINENO"; then :
15198
15199$as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h
15200
15201fi
15202rm -f core conftest.err conftest.$ac_objext \
15203 conftest$ac_exeext conftest.$ac_ext
15204
15205# At least for glibc, clock_gettime is in librt. But don't pull that
15206# in if it still doesn't give us the function we want.
15207if test $ac_cv_func_clock_gettime = no; then
15208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
15209$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
15210if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
15211 $as_echo_n "(cached) " >&6
15212else
15213 ac_check_lib_save_LIBS=$LIBS
15214LIBS="-lrt $LIBS"
15215cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a68ab351
JJ
15216/* end confdefs.h. */
15217
5213506e
RW
15218/* Override any GCC internal prototype to avoid an error.
15219 Use char because int might match the return type of a GCC
15220 builtin and then its argument prototype would still apply. */
15221#ifdef __cplusplus
15222extern "C"
15223#endif
15224char clock_gettime ();
a68ab351
JJ
15225int
15226main ()
15227{
5213506e 15228return clock_gettime ();
a68ab351
JJ
15229 ;
15230 return 0;
15231}
15232_ACEOF
5213506e
RW
15233if ac_fn_c_try_link "$LINENO"; then :
15234 ac_cv_lib_rt_clock_gettime=yes
a68ab351 15235else
5213506e
RW
15236 ac_cv_lib_rt_clock_gettime=no
15237fi
15238rm -f core conftest.err conftest.$ac_objext \
15239 conftest$ac_exeext conftest.$ac_ext
15240LIBS=$ac_check_lib_save_LIBS
15241fi
15242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
15243$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15244if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
15245 LIBS="-lrt $LIBS"
15246
15247$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
a68ab351 15248
a68ab351 15249fi
5213506e
RW
15250
15251fi
15252
15253# See if we support thread-local storage.
15254
15255
15256 # Check whether --enable-tls was given.
15257if test "${enable_tls+set}" = set; then :
15258 enableval=$enable_tls;
15259 case "$enableval" in
15260 yes|no) ;;
15261 *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
15262 esac
15263
15264else
15265 enable_tls=yes
15266fi
15267
15268
15269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
15270$as_echo_n "checking whether the target supports thread-local storage... " >&6; }
15271if test "${gcc_cv_have_tls+set}" = set; then :
15272 $as_echo_n "(cached) " >&6
a68ab351 15273else
a68ab351 15274
5213506e
RW
15275 if test "$cross_compiling" = yes; then :
15276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15277/* end confdefs.h. */
15278__thread int a; int b; int main() { return a = b; }
15279_ACEOF
15280if ac_fn_c_try_link "$LINENO"; then :
15281 chktls_save_LDFLAGS="$LDFLAGS"
15282 case $host in
15283 *-*-linux*)
15284 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
15285 ;;
15286 esac
15287 chktls_save_CFLAGS="$CFLAGS"
15288 CFLAGS="-fPIC $CFLAGS"
15289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15290/* end confdefs.h. */
15291int f() { return 0; }
a68ab351 15292_ACEOF
5213506e
RW
15293if ac_fn_c_try_link "$LINENO"; then :
15294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a68ab351 15295/* end confdefs.h. */
5213506e
RW
15296__thread int a; int b; int f() { return a = b; }
15297_ACEOF
15298if ac_fn_c_try_link "$LINENO"; then :
15299 gcc_cv_have_tls=yes
15300else
15301 gcc_cv_have_tls=no
15302fi
15303rm -f core conftest.err conftest.$ac_objext \
15304 conftest$ac_exeext conftest.$ac_ext
15305else
15306 gcc_cv_have_tls=yes
15307fi
15308rm -f core conftest.err conftest.$ac_objext \
15309 conftest$ac_exeext conftest.$ac_ext
15310 CFLAGS="$chktls_save_CFLAGS"
15311 LDFLAGS="$chktls_save_LDFLAGS"
15312else
15313 gcc_cv_have_tls=no
15314fi
15315rm -f core conftest.err conftest.$ac_objext \
15316 conftest$ac_exeext conftest.$ac_ext
a68ab351 15317
a68ab351 15318
5213506e
RW
15319else
15320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15321/* end confdefs.h. */
15322__thread int a; int b; int main() { return a = b; }
a68ab351 15323_ACEOF
5213506e
RW
15324if ac_fn_c_try_run "$LINENO"; then :
15325 chktls_save_LDFLAGS="$LDFLAGS"
15326 LDFLAGS="-static $LDFLAGS"
15327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15328/* end confdefs.h. */
15329int main() { return 0; }
a68ab351 15330_ACEOF
5213506e
RW
15331if ac_fn_c_try_link "$LINENO"; then :
15332 if test "$cross_compiling" = yes; then :
15333 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15334$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15335as_fn_error "cannot run test program while cross compiling
15336See \`config.log' for more details." "$LINENO" 5; }
15337else
15338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a68ab351 15339/* end confdefs.h. */
5213506e
RW
15340__thread int a; int b; int main() { return a = b; }
15341_ACEOF
15342if ac_fn_c_try_run "$LINENO"; then :
15343 gcc_cv_have_tls=yes
15344else
15345 gcc_cv_have_tls=no
15346fi
15347rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15348 conftest.$ac_objext conftest.beam conftest.$ac_ext
15349fi
a68ab351 15350
5213506e
RW
15351else
15352 gcc_cv_have_tls=yes
15353fi
15354rm -f core conftest.err conftest.$ac_objext \
15355 conftest$ac_exeext conftest.$ac_ext
15356 LDFLAGS="$chktls_save_LDFLAGS"
15357 if test $gcc_cv_have_tls = yes; then
15358 chktls_save_CFLAGS="$CFLAGS"
15359 thread_CFLAGS=failed
15360 for flag in '' '-pthread' '-lpthread'; do
15361 CFLAGS="$flag $chktls_save_CFLAGS"
15362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15363/* end confdefs.h. */
15364#include <pthread.h>
15365 void *g(void *d) { return NULL; }
a68ab351
JJ
15366int
15367main ()
15368{
5213506e 15369pthread_t t; pthread_create(&t,NULL,g,NULL);
a68ab351
JJ
15370 ;
15371 return 0;
15372}
15373_ACEOF
5213506e
RW
15374if ac_fn_c_try_link "$LINENO"; then :
15375 thread_CFLAGS="$flag"
a68ab351 15376fi
5213506e
RW
15377rm -f core conftest.err conftest.$ac_objext \
15378 conftest$ac_exeext conftest.$ac_ext
15379 if test "X$thread_CFLAGS" != Xfailed; then
15380 break
15381 fi
15382 done
15383 CFLAGS="$chktls_save_CFLAGS"
15384 if test "X$thread_CFLAGS" != Xfailed; then
15385 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
15386 if test "$cross_compiling" = yes; then :
15387 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15388$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15389as_fn_error "cannot run test program while cross compiling
15390See \`config.log' for more details." "$LINENO" 5; }
a68ab351 15391else
5213506e 15392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a68ab351 15393/* end confdefs.h. */
5213506e
RW
15394#include <pthread.h>
15395 __thread int a;
15396 static int *a_in_other_thread;
15397 static void *
15398 thread_func (void *arg)
15399 {
15400 a_in_other_thread = &a;
15401 return (void *)0;
15402 }
a68ab351
JJ
15403int
15404main ()
15405{
5213506e
RW
15406pthread_t thread;
15407 void *thread_retval;
15408 int *a_in_main_thread;
15409 if (pthread_create (&thread, (pthread_attr_t *)0,
15410 thread_func, (void *)0))
15411 return 0;
15412 a_in_main_thread = &a;
15413 if (pthread_join (thread, &thread_retval))
15414 return 0;
15415 return (a_in_other_thread == a_in_main_thread);
a68ab351
JJ
15416 ;
15417 return 0;
15418}
15419_ACEOF
5213506e
RW
15420if ac_fn_c_try_run "$LINENO"; then :
15421 gcc_cv_have_tls=yes
a68ab351 15422else
5213506e
RW
15423 gcc_cv_have_tls=no
15424fi
15425rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15426 conftest.$ac_objext conftest.beam conftest.$ac_ext
15427fi
15428
15429 CFLAGS="$chktls_save_CFLAGS"
15430 fi
15431 fi
15432else
15433 gcc_cv_have_tls=no
15434fi
15435rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15436 conftest.$ac_objext conftest.beam conftest.$ac_ext
15437fi
a68ab351 15438
a68ab351 15439fi
5213506e
RW
15440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
15441$as_echo "$gcc_cv_have_tls" >&6; }
15442 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
15443
15444$as_echo "#define HAVE_TLS 1" >>confdefs.h
15445
15446 fi
15447
15448# See what sort of export controls are availible.
15449
15450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
15451$as_echo_n "checking whether the target supports hidden visibility... " >&6; }
15452if test "${libgomp_cv_have_attribute_visibility+set}" = set; then :
15453 $as_echo_n "(cached) " >&6
a68ab351 15454else
a68ab351 15455
5213506e
RW
15456 save_CFLAGS="$CFLAGS"
15457 CFLAGS="$CFLAGS -Werror"
15458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15459/* end confdefs.h. */
15460void __attribute__((visibility("hidden"))) foo(void) { }
a68ab351
JJ
15461int
15462main ()
15463{
15464
a68ab351
JJ
15465 ;
15466 return 0;
15467}
15468_ACEOF
5213506e
RW
15469if ac_fn_c_try_compile "$LINENO"; then :
15470 libgomp_cv_have_attribute_visibility=yes
a68ab351 15471else
5213506e 15472 libgomp_cv_have_attribute_visibility=no
a68ab351 15473fi
5213506e
RW
15474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15475 CFLAGS="$save_CFLAGS"
a68ab351 15476fi
5213506e
RW
15477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_visibility" >&5
15478$as_echo "$libgomp_cv_have_attribute_visibility" >&6; }
15479 if test $libgomp_cv_have_attribute_visibility = yes; then
15480
15481$as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
15482
15483 fi
15484
15485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
15486$as_echo_n "checking whether the target supports dllexport... " >&6; }
15487if test "${libgomp_cv_have_attribute_dllexport+set}" = set; then :
15488 $as_echo_n "(cached) " >&6
15489else
a68ab351 15490
5213506e
RW
15491 save_CFLAGS="$CFLAGS"
15492 CFLAGS="$CFLAGS -Werror"
15493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15494/* end confdefs.h. */
15495void __attribute__((dllexport)) foo(void) { }
a68ab351
JJ
15496int
15497main ()
15498{
a68ab351
JJ
15499
15500 ;
15501 return 0;
15502}
15503_ACEOF
5213506e
RW
15504if ac_fn_c_try_compile "$LINENO"; then :
15505 libgomp_cv_have_attribute_dllexport=yes
15506else
15507 libgomp_cv_have_attribute_dllexport=no
15508fi
15509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15510 CFLAGS="$save_CFLAGS"
15511fi
15512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_dllexport" >&5
15513$as_echo "$libgomp_cv_have_attribute_dllexport" >&6; }
15514 if test $libgomp_cv_have_attribute_dllexport = yes; then
15515
15516$as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
15517
15518 fi
15519
15520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
15521$as_echo_n "checking whether the target supports symbol aliases... " >&6; }
15522if test "${libgomp_cv_have_attribute_alias+set}" = set; then :
15523 $as_echo_n "(cached) " >&6
15524else
15525
15526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a68ab351
JJ
15527/* end confdefs.h. */
15528
5213506e
RW
15529void foo(void) { }
15530extern void bar(void) __attribute__((alias("foo")));
a68ab351
JJ
15531int
15532main ()
15533{
5213506e 15534bar();
a68ab351
JJ
15535 ;
15536 return 0;
15537}
15538_ACEOF
5213506e
RW
15539if ac_fn_c_try_link "$LINENO"; then :
15540 libgomp_cv_have_attribute_alias=yes
a68ab351 15541else
5213506e
RW
15542 libgomp_cv_have_attribute_alias=no
15543fi
15544rm -f core conftest.err conftest.$ac_objext \
15545 conftest$ac_exeext conftest.$ac_ext
15546fi
15547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_alias" >&5
15548$as_echo "$libgomp_cv_have_attribute_alias" >&6; }
15549 if test $libgomp_cv_have_attribute_alias = yes; then
15550
15551$as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
15552
15553 fi
15554
15555
15556# Check whether --with-gnu-ld was given.
15557if test "${with_gnu_ld+set}" = set; then :
15558 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15559else
15560 with_gnu_ld=no
15561fi
a68ab351 15562
5213506e
RW
15563ac_prog=ld
15564if test "$GCC" = yes; then
15565 # Check if gcc -print-prog-name=ld gives a path.
15566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15567$as_echo_n "checking for ld used by $CC... " >&6; }
15568 case $host in
15569 *-*-mingw*)
15570 # gcc leaves a trailing carriage return which upsets mingw
15571 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15572 *)
15573 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15574 esac
15575 case $ac_prog in
15576 # Accept absolute paths.
15577 [\\/]* | ?:[\\/]*)
15578 re_direlt='/[^/][^/]*/\.\./'
15579 # Canonicalize the pathname of ld
15580 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15581 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15582 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15583 done
15584 test -z "$LD" && LD="$ac_prog"
15585 ;;
15586 "")
15587 # If it fails, then pretend we aren't using GCC.
15588 ac_prog=ld
15589 ;;
15590 *)
15591 # If it is relative, then search for the first ld in PATH.
15592 with_gnu_ld=unknown
15593 ;;
15594 esac
15595elif test "$with_gnu_ld" = yes; then
15596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15597$as_echo_n "checking for GNU ld... " >&6; }
15598else
15599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15600$as_echo_n "checking for non-GNU ld... " >&6; }
a68ab351 15601fi
5213506e
RW
15602if test "${lt_cv_path_LD+set}" = set; then :
15603 $as_echo_n "(cached) " >&6
15604else
15605 if test -z "$LD"; then
15606 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15607 for ac_dir in $PATH; do
15608 IFS="$lt_save_ifs"
15609 test -z "$ac_dir" && ac_dir=.
15610 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15611 lt_cv_path_LD="$ac_dir/$ac_prog"
15612 # Check to see if the program is GNU ld. I'd rather use --version,
15613 # but apparently some variants of GNU ld only accept -v.
15614 # Break only if it was the GNU/non-GNU ld that we prefer.
15615 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15616 *GNU* | *'with BFD'*)
15617 test "$with_gnu_ld" != no && break
15618 ;;
15619 *)
15620 test "$with_gnu_ld" != yes && break
15621 ;;
15622 esac
15623 fi
a68ab351 15624 done
5213506e 15625 IFS="$lt_save_ifs"
a68ab351 15626else
5213506e
RW
15627 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15628fi
15629fi
15630
15631LD="$lt_cv_path_LD"
15632if test -n "$LD"; then
15633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15634$as_echo "$LD" >&6; }
15635else
15636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15637$as_echo "no" >&6; }
15638fi
15639test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
15640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15641$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15642if test "${lt_cv_prog_gnu_ld+set}" = set; then :
15643 $as_echo_n "(cached) " >&6
15644else
15645 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15646case `$LD -v 2>&1 </dev/null` in
15647*GNU* | *'with BFD'*)
15648 lt_cv_prog_gnu_ld=yes
15649 ;;
15650*)
15651 lt_cv_prog_gnu_ld=no
15652 ;;
15653esac
15654fi
15655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15656$as_echo "$lt_cv_prog_gnu_ld" >&6; }
15657with_gnu_ld=$lt_cv_prog_gnu_ld
15658
15659
15660
15661
15662
15663
15664
15665 # If we're not using GNU ld, then there's no point in even trying these
15666 # tests. Check for that first. We should have already tested for gld
15667 # by now (in libtool), but require it now just to be safe...
15668 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
15669 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
15670
15671
15672
15673 # The name set by libtool depends on the version of libtool. Shame on us
15674 # for depending on an impl detail, but c'est la vie. Older versions used
15675 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
15676 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
15677 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
15678 # set (hence we're using an older libtool), then set it.
15679 if test x${with_gnu_ld+set} != xset; then
15680 if test x${ac_cv_prog_gnu_ld+set} != xset; then
15681 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
15682 with_gnu_ld=no
15683 else
15684 with_gnu_ld=$ac_cv_prog_gnu_ld
15685 fi
15686 fi
15687
15688 # Start by getting the version number. I think the libtool test already
15689 # does some of this, but throws away the result.
15690 libgomp_ld_is_gold=no
15691 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
15692 libgomp_ld_is_gold=yes
15693 fi
15694
15695 ldver=`$LD --version 2>/dev/null | head -1 | \
15696 sed -e 's/GNU \(go\)\{0,1\}ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\4/'`
15697
15698 libgomp_gnu_ld_version=`echo $ldver | \
15699 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
15700
15701 # Set --gc-sections.
15702 if test "$with_gnu_ld" = "notbroken"; then
15703 # GNU ld it is! Joy and bunny rabbits!
15704
15705 # All these tests are for C++; save the language and the compiler flags.
15706 # Need to do this so that g++ won't try to link in libstdc++
15707 ac_test_CFLAGS="${CFLAGS+set}"
15708 ac_save_CFLAGS="$CFLAGS"
15709 CFLAGS='-x c++ -Wl,--gc-sections'
15710
15711 # Check for -Wl,--gc-sections
15712 # XXX This test is broken at the moment, as symbols required for linking
15713 # are now in libsupc++ (not built yet). In addition, this test has
15714 # cored on solaris in the past. In addition, --gc-sections doesn't
15715 # really work at the moment (keeps on discarding used sections, first
15716 # .eh_frame and now some of the glibc sections for iconv).
15717 # Bzzzzt. Thanks for playing, maybe next time.
15718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
15719$as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
15720 if test "$cross_compiling" = yes; then :
15721 ac_sectionLDflags=yes
15722else
15723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15724/* end confdefs.h. */
15725
15726 int main(void)
15727 {
15728 try { throw 1; }
15729 catch (...) { };
15730 return 0;
15731 }
a68ab351 15732
a68ab351 15733_ACEOF
5213506e
RW
15734if ac_fn_c_try_run "$LINENO"; then :
15735 ac_sectionLDflags=yes
15736else
15737 ac_sectionLDflags=no
15738fi
15739rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15740 conftest.$ac_objext conftest.beam conftest.$ac_ext
15741fi
15742
15743 if test "$ac_test_CFLAGS" = set; then
15744 CFLAGS="$ac_save_CFLAGS"
15745 else
15746 # this is the suspicious part
15747 CFLAGS=''
15748 fi
15749 if test "$ac_sectionLDflags" = "yes"; then
15750 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
15751 fi
15752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
15753$as_echo "$ac_sectionLDflags" >&6; }
15754 fi
15755
15756 # Set linker optimization flags.
15757 if test x"$with_gnu_ld" = x"yes"; then
15758 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
15759 fi
15760
15761
15762
15763
15764
15765
15766 # Check whether --enable-symvers was given.
15767if test "${enable_symvers+set}" = set; then :
15768 enableval=$enable_symvers;
15769 case "$enableval" in
15770 yes|no|gnu) ;;
15771 *) as_fn_error "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
15772 esac
15773
15774else
15775 enable_symvers=yes
15776fi
15777
15778
15779
15780# If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
15781# don't know enough about $LD to do tricks...
15782
15783# FIXME The following test is too strict, in theory.
15784if test $enable_shared = no ||
15785 test "x$LD" = x ||
15786 test x$libgomp_gnu_ld_version = x; then
15787 enable_symvers=no
15788fi
15789
15790# Check to see if libgcc_s exists, indicating that shared libgcc is possible.
15791if test $enable_symvers != no; then
15792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
15793$as_echo_n "checking for shared libgcc... " >&6; }
15794 ac_save_CFLAGS="$CFLAGS"
15795 CFLAGS=' -lgcc_s'
15796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a68ab351
JJ
15797/* end confdefs.h. */
15798
15799int
15800main ()
15801{
5213506e 15802return 0;
a68ab351
JJ
15803 ;
15804 return 0;
15805}
15806_ACEOF
5213506e
RW
15807if ac_fn_c_try_link "$LINENO"; then :
15808 libgomp_shared_libgcc=yes
15809else
15810 libgomp_shared_libgcc=no
15811fi
15812rm -f core conftest.err conftest.$ac_objext \
15813 conftest$ac_exeext conftest.$ac_ext
15814 CFLAGS="$ac_save_CFLAGS"
15815 if test $libgomp_shared_libgcc = no; then
15816 cat > conftest.c <<EOF
15817int main (void) { return 0; }
15818EOF
15819 libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
15820 -shared -shared-libgcc -o conftest.so \
15821 conftest.c -v 2>&1 >/dev/null \
15822 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
15823 rm -f conftest.c conftest.so
15824 if test x${libgomp_libgcc_s_suffix+set} = xset; then
15825 CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
15826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a68ab351
JJ
15827/* end confdefs.h. */
15828
15829int
15830main ()
15831{
5213506e 15832return 0;
a68ab351
JJ
15833 ;
15834 return 0;
15835}
15836_ACEOF
5213506e
RW
15837if ac_fn_c_try_link "$LINENO"; then :
15838 libgomp_shared_libgcc=yes
15839fi
15840rm -f core conftest.err conftest.$ac_objext \
15841 conftest$ac_exeext conftest.$ac_ext
15842 CFLAGS="$ac_save_CFLAGS"
15843 fi
15844 fi
15845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_shared_libgcc" >&5
15846$as_echo "$libgomp_shared_libgcc" >&6; }
15847fi
15848
15849# For GNU ld, we need at least this version. The format is described in
15850# LIBGOMP_CHECK_LINKER_FEATURES above.
15851libgomp_min_gnu_ld_version=21400
15852# XXXXXXXXXXX libgomp_gnu_ld_version=21390
a68ab351 15853
5213506e
RW
15854# Check to see if unspecified "yes" value can win, given results above.
15855# Change "yes" into either "no" or a style name.
15856if test $enable_symvers = yes; then
15857 if test $with_gnu_ld = yes &&
15858 test $libgomp_shared_libgcc = yes;
15859 then
15860 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
15861 enable_symvers=gnu
15862 elif test $libgomp_ld_is_gold = yes ; then
15863 enable_symvers=gnu
15864 else
15865 # The right tools, the right setup, but too old. Fallbacks?
15866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
15867$as_echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
15868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
15869$as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
15870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
15871$as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
15872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
15873$as_echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
15874 if test $libgomp_gnu_ld_version -ge 21200 ; then
15875 # Globbing fix is present, proper block support is not.
15876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15877$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15878 enable_symvers=no
15879 else
15880 # 2.11 or older.
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15882$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15883 enable_symvers=no
15884 fi
15885 fi
15886 else
15887 # just fail for now
15888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
15889$as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
15890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
15891$as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
15892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
15893$as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
15894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15895$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15896 enable_symvers=no
15897 fi
a68ab351 15898fi
5213506e
RW
15899
15900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports .symver directive" >&5
15901$as_echo_n "checking whether the target supports .symver directive... " >&6; }
15902if test "${libgomp_cv_have_as_symver_directive+set}" = set; then :
15903 $as_echo_n "(cached) " >&6
a68ab351 15904else
a68ab351 15905
5213506e 15906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a68ab351 15907/* end confdefs.h. */
5213506e 15908void foo (void); __asm (".symver foo, bar@SYMVER");
a68ab351
JJ
15909int
15910main ()
15911{
a68ab351
JJ
15912
15913 ;
15914 return 0;
15915}
15916_ACEOF
5213506e
RW
15917if ac_fn_c_try_compile "$LINENO"; then :
15918 libgomp_cv_have_as_symver_directive=yes
a68ab351 15919else
5213506e
RW
15920 libgomp_cv_have_as_symver_directive=no
15921fi
15922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15923fi
15924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_as_symver_directive" >&5
15925$as_echo "$libgomp_cv_have_as_symver_directive" >&6; }
15926if test $libgomp_cv_have_as_symver_directive = yes; then
15927
15928$as_echo "#define HAVE_AS_SYMVER_DIRECTIVE 1" >>confdefs.h
a68ab351 15929
a68ab351 15930fi
5213506e
RW
15931
15932 if test $enable_symvers != no; then
15933 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
15934 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
a68ab351 15935else
5213506e
RW
15936 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
15937 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
15938fi
a68ab351 15939
5213506e
RW
15940{ $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
15941$as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
a68ab351 15942
a68ab351 15943
5213506e
RW
15944if test $enable_symvers = gnu; then
15945
15946$as_echo "#define LIBGOMP_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
a68ab351
JJ
15947
15948fi
5213506e
RW
15949
15950# Get target configury.
15951. ${srcdir}/configure.tgt
15952CFLAGS="$save_CFLAGS $XCFLAGS"
15953
15954# Check for __sync_val_compare_and_swap, but only after the target has
15955# had a chance to set XCFLAGS.
15956
15957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
15958$as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
15959if test "${libgomp_cv_have_sync_builtins+set}" = set; then :
15960 $as_echo_n "(cached) " >&6
15961else
15962
15963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a68ab351
JJ
15964/* end confdefs.h. */
15965
15966int
15967main ()
15968{
5213506e 15969int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
a68ab351
JJ
15970 ;
15971 return 0;
15972}
15973_ACEOF
5213506e
RW
15974if ac_fn_c_try_link "$LINENO"; then :
15975 libgomp_cv_have_sync_builtins=yes
15976else
15977 libgomp_cv_have_sync_builtins=no
15978fi
15979rm -f core conftest.err conftest.$ac_objext \
15980 conftest$ac_exeext conftest.$ac_ext
15981fi
15982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_sync_builtins" >&5
15983$as_echo "$libgomp_cv_have_sync_builtins" >&6; }
15984 if test $libgomp_cv_have_sync_builtins = yes; then
a68ab351 15985
5213506e
RW
15986$as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
15987
15988 fi
15989
15990XCFLAGS="$XCFLAGS$XPCFLAGS"
15991
15992
15993
15994
15995
15996# Cleanup and exit.
15997CFLAGS="$save_CFLAGS"
15998cat >confcache <<\_ACEOF
15999# This file is a shell script that caches the results of configure
16000# tests run on this system so they can be shared between configure
16001# scripts and configure runs, see configure's option --config-cache.
16002# It is not useful on other systems. If it contains results you don't
16003# want to keep, you may remove or edit it.
16004#
16005# config.status only pays attention to the cache file if you give it
16006# the --recheck option to rerun configure.
16007#
16008# `ac_cv_env_foo' variables (set or unset) will be overridden when
16009# loading this file, other *unset* `ac_cv_foo' will be assigned the
16010# following values.
a68ab351 16011
a68ab351 16012_ACEOF
5213506e
RW
16013
16014# The following way of writing the cache mishandles newlines in values,
16015# but we know of no workaround that is simple, portable, and efficient.
16016# So, we kill variables containing newlines.
16017# Ultrix sh set writes to stderr and can't be redirected directly,
16018# and sets the high bit in the cache file unless we assign to the vars.
16019(
16020 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16021 eval ac_val=\$$ac_var
16022 case $ac_val in #(
16023 *${as_nl}*)
16024 case $ac_var in #(
16025 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16026$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16027 esac
16028 case $ac_var in #(
16029 _ | IFS | as_nl) ;; #(
16030 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16031 *) { eval $ac_var=; unset $ac_var;} ;;
16032 esac ;;
16033 esac
16034 done
16035
16036 (set) 2>&1 |
16037 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16038 *${as_nl}ac_space=\ *)
16039 # `set' does not quote correctly, so add quotes: double-quote
16040 # substitution turns \\\\ into \\, and sed turns \\ into \.
16041 sed -n \
16042 "s/'/'\\\\''/g;
16043 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16044 ;; #(
16045 *)
16046 # `set' quotes correctly as required by POSIX, so do not add quotes.
16047 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16048 ;;
16049 esac |
16050 sort
16051) |
16052 sed '
16053 /^ac_cv_env_/b end
16054 t clear
16055 :clear
16056 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16057 t end
16058 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16059 :end' >>confcache
16060if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16061 if test -w "$cache_file"; then
16062 test "x$cache_file" != "x/dev/null" &&
16063 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16064$as_echo "$as_me: updating cache $cache_file" >&6;}
16065 cat confcache >$cache_file
16066 else
16067 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16068$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16069 fi
16070fi
16071rm -f confcache
16072
16073if test ${multilib} = yes; then
16074 multilib_arg="--enable-multilib"
a68ab351 16075else
5213506e
RW
16076 multilib_arg=
16077fi
16078
16079# Set up the set of libraries that we need to link against for libgomp.
16080# Note that the GOMP_SELF_SPEC in gcc.c will force -pthread for -fopenmp,
16081# which will force linkage against -lpthread (or equivalent for the system).
16082# That's not 100% ideal, but about the best we can do easily.
16083if test $enable_shared = yes; then
16084 link_gomp="-lgomp %{static: $LIBS}"
16085else
16086 link_gomp="-lgomp $LIBS"
16087fi
16088
16089
16090 if test "$ac_cv_fc_compiler_gnu" = yes; then
16091 USE_FORTRAN_TRUE=
16092 USE_FORTRAN_FALSE='#'
16093else
16094 USE_FORTRAN_TRUE='#'
16095 USE_FORTRAN_FALSE=
16096fi
16097
16098
16099# ??? 2006-01-24: Paulo committed to asking autoconf folk to document
16100# and export AC_COMPUTE_INT. If that happens, then we'll need to remove
16101# the underscore here and update the PREREQ. If it doesn't, then we'll
16102# need to copy this macro to our acinclude.m4.
16103save_CFLAGS="$CFLAGS"
16104for i in $config_path; do
16105 if test -f $srcdir/config/$i/omp-lock.h; then
16106 CFLAGS="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h"
16107 break
16108 fi
16109done
a68ab351 16110
5213506e 16111if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_t)" "OMP_LOCK_SIZE" ""; then :
a68ab351 16112
5213506e
RW
16113else
16114 as_fn_error "unsupported system, cannot find sizeof (omp_lock_t)" "$LINENO" 5
16115fi
a68ab351 16116
a68ab351 16117
5213506e 16118if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_t)" "OMP_LOCK_ALIGN" ""; then :
a68ab351 16119
5213506e 16120fi
a68ab351 16121
a68ab351 16122
5213506e 16123if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_t)" "OMP_NEST_LOCK_SIZE" ""; then :
a68ab351 16124
a68ab351 16125fi
a68ab351 16126
a68ab351 16127
5213506e 16128if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_t)" "OMP_NEST_LOCK_ALIGN" ""; then :
a68ab351 16129
a68ab351 16130fi
a68ab351 16131
a68ab351 16132
5213506e 16133if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_25_t)" "OMP_LOCK_25_SIZE" ""; then :
a68ab351 16134
a68ab351 16135else
5213506e
RW
16136 as_fn_error "unsupported system, cannot find sizeof (omp_lock_25_t)" "$LINENO" 5
16137fi
16138
16139
16140if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_25_t)" "OMP_LOCK_25_ALIGN" ""; then :
a68ab351
JJ
16141
16142fi
5213506e
RW
16143
16144
16145if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_SIZE" ""; then :
16146
a68ab351 16147fi
5213506e
RW
16148
16149
16150if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_ALIGN" ""; then :
16151
a68ab351 16152fi
5213506e
RW
16153
16154
a68ab351
JJ
16155
16156# If the lock fits in an integer, then arrange for Fortran to use that
16157# integer. If it doesn't, then arrange for Fortran to use a pointer.
16158# Except that we don't have a way at present to multi-lib the installed
16159# Fortran modules, so we assume 8 bytes for pointers, regardless of the
16160# actual target.
16161OMP_LOCK_KIND=$OMP_LOCK_SIZE
16162OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
16163if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
16164 OMP_LOCK_KIND=8
16165fi
16166if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
16167 OMP_NEST_LOCK_KIND=8
16168fi
16169OMP_LOCK_25_KIND=$OMP_LOCK_25_SIZE
16170OMP_NEST_LOCK_25_KIND=$OMP_NEST_LOCK_25_SIZE
16171if test $OMP_LOCK_25_SIZE -gt 8 || test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then
16172 OMP_LOCK_25_KIND=8
16173fi
16174if test $OMP_NEST_LOCK_25_SIZE -gt 8 || test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then
16175 OMP_NEST_LOCK_25_KIND=8
16176fi
16177
16178
16179
16180
16181
16182
03b8fe49
PB
16183
16184
16185
16186
16187
16188
16189
16190CFLAGS="$save_CFLAGS"
16191
5213506e 16192ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
03b8fe49 16193
5213506e 16194ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
953ff289
DN
16195
16196cat >confcache <<\_ACEOF
16197# This file is a shell script that caches the results of configure
16198# tests run on this system so they can be shared between configure
16199# scripts and configure runs, see configure's option --config-cache.
16200# It is not useful on other systems. If it contains results you don't
16201# want to keep, you may remove or edit it.
16202#
16203# config.status only pays attention to the cache file if you give it
16204# the --recheck option to rerun configure.
16205#
16206# `ac_cv_env_foo' variables (set or unset) will be overridden when
16207# loading this file, other *unset* `ac_cv_foo' will be assigned the
16208# following values.
16209
16210_ACEOF
16211
16212# The following way of writing the cache mishandles newlines in values,
16213# but we know of no workaround that is simple, portable, and efficient.
5213506e 16214# So, we kill variables containing newlines.
953ff289
DN
16215# Ultrix sh set writes to stderr and can't be redirected directly,
16216# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
16217(
16218 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16219 eval ac_val=\$$ac_var
16220 case $ac_val in #(
16221 *${as_nl}*)
16222 case $ac_var in #(
16223 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16224$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16225 esac
16226 case $ac_var in #(
16227 _ | IFS | as_nl) ;; #(
16228 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16229 *) { eval $ac_var=; unset $ac_var;} ;;
16230 esac ;;
16231 esac
16232 done
16233
953ff289 16234 (set) 2>&1 |
5213506e
RW
16235 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16236 *${as_nl}ac_space=\ *)
16237 # `set' does not quote correctly, so add quotes: double-quote
16238 # substitution turns \\\\ into \\, and sed turns \\ into \.
953ff289
DN
16239 sed -n \
16240 "s/'/'\\\\''/g;
16241 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 16242 ;; #(
953ff289
DN
16243 *)
16244 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 16245 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
953ff289 16246 ;;
5213506e
RW
16247 esac |
16248 sort
16249) |
953ff289 16250 sed '
5213506e 16251 /^ac_cv_env_/b end
953ff289 16252 t clear
5213506e 16253 :clear
953ff289
DN
16254 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16255 t end
5213506e
RW
16256 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16257 :end' >>confcache
16258if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16259 if test -w "$cache_file"; then
16260 test "x$cache_file" != "x/dev/null" &&
16261 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16262$as_echo "$as_me: updating cache $cache_file" >&6;}
953ff289
DN
16263 cat confcache >$cache_file
16264 else
5213506e
RW
16265 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16266$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
953ff289
DN
16267 fi
16268fi
16269rm -f confcache
16270
16271test "x$prefix" = xNONE && prefix=$ac_default_prefix
16272# Let make expand exec_prefix.
16273test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16274
953ff289
DN
16275DEFS=-DHAVE_CONFIG_H
16276
16277ac_libobjs=
16278ac_ltlibobjs=
16279for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16280 # 1. Remove the extension, and $U if already installed.
5213506e
RW
16281 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16282 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16283 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16284 # will be set to the directory where LIBOBJS objects are built.
16285 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16286 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
953ff289
DN
16287done
16288LIBOBJS=$ac_libobjs
16289
16290LTLIBOBJS=$ac_ltlibobjs
16291
16292
627ab4b8 16293if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
5213506e
RW
16294 as_fn_error "conditional \"GENINSRC\" was never defined.
16295Usually this means the macro was only invoked conditionally." "$LINENO" 5
16296fi
16297 if test -n "$EXEEXT"; then
16298 am__EXEEXT_TRUE=
16299 am__EXEEXT_FALSE='#'
16300else
16301 am__EXEEXT_TRUE='#'
16302 am__EXEEXT_FALSE=
627ab4b8 16303fi
5213506e 16304
953ff289 16305if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5213506e
RW
16306 as_fn_error "conditional \"AMDEP\" was never defined.
16307Usually this means the macro was only invoked conditionally." "$LINENO" 5
953ff289
DN
16308fi
16309if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5213506e
RW
16310 as_fn_error "conditional \"am__fastdepCC\" was never defined.
16311Usually this means the macro was only invoked conditionally." "$LINENO" 5
953ff289 16312fi
748b9d7c 16313if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
5213506e
RW
16314 as_fn_error "conditional \"BUILD_INFO\" was never defined.
16315Usually this means the macro was only invoked conditionally." "$LINENO" 5
748b9d7c 16316fi
c41303c6 16317if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5213506e
RW
16318 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
16319Usually this means the macro was only invoked conditionally." "$LINENO" 5
c41303c6 16320fi
953ff289 16321if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
5213506e
RW
16322 as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
16323Usually this means the macro was only invoked conditionally." "$LINENO" 5
953ff289
DN
16324fi
16325if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
5213506e
RW
16326 as_fn_error "conditional \"USE_FORTRAN\" was never defined.
16327Usually this means the macro was only invoked conditionally." "$LINENO" 5
953ff289
DN
16328fi
16329
16330: ${CONFIG_STATUS=./config.status}
5213506e 16331ac_write_fail=0
953ff289
DN
16332ac_clean_files_save=$ac_clean_files
16333ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
16334{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16335$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16336as_write_fail=0
16337cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
953ff289
DN
16338#! $SHELL
16339# Generated by $as_me.
16340# Run this file to recreate the current configuration.
16341# Compiler output produced by configure, useful for debugging
16342# configure, is in config.log if it exists.
16343
16344debug=false
16345ac_cs_recheck=false
16346ac_cs_silent=false
953ff289 16347
5213506e
RW
16348SHELL=\${CONFIG_SHELL-$SHELL}
16349export SHELL
16350_ASEOF
16351cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16352## -------------------- ##
16353## M4sh Initialization. ##
16354## -------------------- ##
16355
16356# Be more Bourne compatible
16357DUALCASE=1; export DUALCASE # for MKS sh
16358if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
953ff289
DN
16359 emulate sh
16360 NULLCMD=:
5213506e 16361 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
953ff289
DN
16362 # is contrary to our usage. Disable this feature.
16363 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
16364 setopt NO_GLOB_SUBST
16365else
16366 case `(set -o) 2>/dev/null` in #(
16367 *posix*) :
16368 set -o posix ;; #(
16369 *) :
16370 ;;
16371esac
953ff289 16372fi
953ff289 16373
5213506e
RW
16374
16375as_nl='
16376'
16377export as_nl
16378# Printing a long string crashes Solaris 7 /usr/bin/printf.
16379as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16380as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16381as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16382# Prefer a ksh shell builtin over an external printf program on Solaris,
16383# but without wasting forks for bash or zsh.
16384if test -z "$BASH_VERSION$ZSH_VERSION" \
16385 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16386 as_echo='print -r --'
16387 as_echo_n='print -rn --'
16388elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16389 as_echo='printf %s\n'
16390 as_echo_n='printf %s'
16391else
16392 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16393 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16394 as_echo_n='/usr/ucb/echo -n'
16395 else
16396 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16397 as_echo_n_body='eval
16398 arg=$1;
16399 case $arg in #(
16400 *"$as_nl"*)
16401 expr "X$arg" : "X\\(.*\\)$as_nl";
16402 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16403 esac;
16404 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16405 '
16406 export as_echo_n_body
16407 as_echo_n='sh -c $as_echo_n_body as_echo'
16408 fi
16409 export as_echo_body
16410 as_echo='sh -c $as_echo_body as_echo'
16411fi
16412
16413# The user is always right.
16414if test "${PATH_SEPARATOR+set}" != set; then
16415 PATH_SEPARATOR=:
16416 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16417 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16418 PATH_SEPARATOR=';'
16419 }
953ff289
DN
16420fi
16421
16422
5213506e
RW
16423# IFS
16424# We need space, tab and new line, in precisely that order. Quoting is
16425# there to prevent editors from complaining about space-tab.
16426# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16427# splitting by setting IFS to empty value.)
16428IFS=" "" $as_nl"
16429
16430# Find who we are. Look in the path if we contain no directory separator.
16431case $0 in #((
16432 *[\\/]* ) as_myself=$0 ;;
16433 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16434for as_dir in $PATH
16435do
16436 IFS=$as_save_IFS
16437 test -z "$as_dir" && as_dir=.
16438 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16439 done
16440IFS=$as_save_IFS
16441
16442 ;;
16443esac
16444# We did not find ourselves, most probably we were run as `sh COMMAND'
16445# in which case we are not to be found in the path.
16446if test "x$as_myself" = x; then
16447 as_myself=$0
16448fi
16449if test ! -f "$as_myself"; then
16450 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16451 exit 1
16452fi
16453
16454# Unset variables that we do not need and which cause bugs (e.g. in
16455# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16456# suppresses any "Segmentation fault" message there. '((' could
16457# trigger a bug in pdksh 5.2.14.
16458for as_var in BASH_ENV ENV MAIL MAILPATH
16459do eval test x\${$as_var+set} = xset \
16460 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16461done
953ff289
DN
16462PS1='$ '
16463PS2='> '
16464PS4='+ '
16465
16466# NLS nuisances.
5213506e
RW
16467LC_ALL=C
16468export LC_ALL
16469LANGUAGE=C
16470export LANGUAGE
16471
16472# CDPATH.
16473(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16474
16475
16476# as_fn_error ERROR [LINENO LOG_FD]
16477# ---------------------------------
16478# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16479# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16480# script with status $?, using 1 if that was 0.
16481as_fn_error ()
16482{
16483 as_status=$?; test $as_status -eq 0 && as_status=1
16484 if test "$3"; then
16485 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16486 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
953ff289 16487 fi
5213506e
RW
16488 $as_echo "$as_me: error: $1" >&2
16489 as_fn_exit $as_status
16490} # as_fn_error
16491
16492
16493# as_fn_set_status STATUS
16494# -----------------------
16495# Set $? to STATUS, without forking.
16496as_fn_set_status ()
16497{
16498 return $1
16499} # as_fn_set_status
16500
16501# as_fn_exit STATUS
16502# -----------------
16503# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16504as_fn_exit ()
16505{
16506 set +e
16507 as_fn_set_status $1
16508 exit $1
16509} # as_fn_exit
16510
16511# as_fn_unset VAR
16512# ---------------
16513# Portably unset VAR.
16514as_fn_unset ()
16515{
16516 { eval $1=; unset $1;}
16517}
16518as_unset=as_fn_unset
16519# as_fn_append VAR VALUE
16520# ----------------------
16521# Append the text in VALUE to the end of the definition contained in VAR. Take
16522# advantage of any shell optimizations that allow amortized linear growth over
16523# repeated appends, instead of the typical quadratic growth present in naive
16524# implementations.
16525if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16526 eval 'as_fn_append ()
16527 {
16528 eval $1+=\$2
16529 }'
16530else
16531 as_fn_append ()
16532 {
16533 eval $1=\$$1\$2
16534 }
16535fi # as_fn_append
16536
16537# as_fn_arith ARG...
16538# ------------------
16539# Perform arithmetic evaluation on the ARGs, and store the result in the
16540# global $as_val. Take advantage of shells that can avoid forks. The arguments
16541# must be portable across $(()) and expr.
16542if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16543 eval 'as_fn_arith ()
16544 {
16545 as_val=$(( $* ))
16546 }'
16547else
16548 as_fn_arith ()
16549 {
16550 as_val=`expr "$@" || test $? -eq 1`
16551 }
16552fi # as_fn_arith
16553
953ff289 16554
5213506e
RW
16555if expr a : '\(a\)' >/dev/null 2>&1 &&
16556 test "X`expr 00001 : '.*\(...\)'`" = X001; then
953ff289
DN
16557 as_expr=expr
16558else
16559 as_expr=false
16560fi
16561
5213506e 16562if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
953ff289
DN
16563 as_basename=basename
16564else
16565 as_basename=false
16566fi
16567
5213506e
RW
16568if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16569 as_dirname=dirname
16570else
16571 as_dirname=false
16572fi
953ff289 16573
5213506e 16574as_me=`$as_basename -- "$0" ||
953ff289
DN
16575$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16576 X"$0" : 'X\(//\)$' \| \
5213506e
RW
16577 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16578$as_echo X/"$0" |
16579 sed '/^.*\/\([^/][^/]*\)\/*$/{
16580 s//\1/
16581 q
16582 }
16583 /^X\/\(\/\/\)$/{
16584 s//\1/
16585 q
16586 }
16587 /^X\/\(\/\).*/{
16588 s//\1/
16589 q
16590 }
16591 s/.*/./; q'`
953ff289 16592
953ff289
DN
16593# Avoid depending upon Character Ranges.
16594as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16595as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16596as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16597as_cr_digits='0123456789'
16598as_cr_alnum=$as_cr_Letters$as_cr_digits
16599
5213506e
RW
16600ECHO_C= ECHO_N= ECHO_T=
16601case `echo -n x` in #(((((
16602-n*)
16603 case `echo 'xy\c'` in
16604 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16605 xy) ECHO_C='\c';;
16606 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16607 ECHO_T=' ';;
16608 esac;;
16609*)
16610 ECHO_N='-n';;
953ff289
DN
16611esac
16612
5213506e
RW
16613rm -f conf$$ conf$$.exe conf$$.file
16614if test -d conf$$.dir; then
16615 rm -f conf$$.dir/conf$$.file
953ff289 16616else
5213506e
RW
16617 rm -f conf$$.dir
16618 mkdir conf$$.dir 2>/dev/null
953ff289 16619fi
5213506e
RW
16620if (echo >conf$$.file) 2>/dev/null; then
16621 if ln -s conf$$.file conf$$ 2>/dev/null; then
953ff289 16622 as_ln_s='ln -s'
5213506e
RW
16623 # ... but there are two gotchas:
16624 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16625 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16626 # In both cases, we have to default to `cp -p'.
16627 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16628 as_ln_s='cp -p'
16629 elif ln conf$$.file conf$$ 2>/dev/null; then
16630 as_ln_s=ln
16631 else
16632 as_ln_s='cp -p'
953ff289 16633 fi
953ff289
DN
16634else
16635 as_ln_s='cp -p'
16636fi
5213506e
RW
16637rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16638rmdir conf$$.dir 2>/dev/null
16639
16640
16641# as_fn_mkdir_p
16642# -------------
16643# Create "$as_dir" as a directory, including parents if necessary.
16644as_fn_mkdir_p ()
16645{
16646
16647 case $as_dir in #(
16648 -*) as_dir=./$as_dir;;
16649 esac
16650 test -d "$as_dir" || eval $as_mkdir_p || {
16651 as_dirs=
16652 while :; do
16653 case $as_dir in #(
16654 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16655 *) as_qdir=$as_dir;;
16656 esac
16657 as_dirs="'$as_qdir' $as_dirs"
16658 as_dir=`$as_dirname -- "$as_dir" ||
16659$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16660 X"$as_dir" : 'X\(//\)[^/]' \| \
16661 X"$as_dir" : 'X\(//\)$' \| \
16662 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16663$as_echo X"$as_dir" |
16664 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16665 s//\1/
16666 q
16667 }
16668 /^X\(\/\/\)[^/].*/{
16669 s//\1/
16670 q
16671 }
16672 /^X\(\/\/\)$/{
16673 s//\1/
16674 q
16675 }
16676 /^X\(\/\).*/{
16677 s//\1/
16678 q
16679 }
16680 s/.*/./; q'`
16681 test -d "$as_dir" && break
16682 done
16683 test -z "$as_dirs" || eval "mkdir $as_dirs"
16684 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16685
953ff289 16686
5213506e 16687} # as_fn_mkdir_p
953ff289 16688if mkdir -p . 2>/dev/null; then
5213506e 16689 as_mkdir_p='mkdir -p "$as_dir"'
953ff289
DN
16690else
16691 test -d ./-p && rmdir ./-p
16692 as_mkdir_p=false
16693fi
16694
5213506e
RW
16695if test -x / >/dev/null 2>&1; then
16696 as_test_x='test -x'
16697else
16698 if ls -dL / >/dev/null 2>&1; then
16699 as_ls_L_option=L
16700 else
16701 as_ls_L_option=
16702 fi
16703 as_test_x='
16704 eval sh -c '\''
16705 if test -d "$1"; then
16706 test -d "$1/.";
16707 else
16708 case $1 in #(
16709 -*)set "./$1";;
16710 esac;
16711 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16712 ???[sx]*):;;*)false;;esac;fi
16713 '\'' sh
16714 '
16715fi
16716as_executable_p=$as_test_x
953ff289
DN
16717
16718# Sed expression to map a string onto a valid CPP name.
16719as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16720
5213506e
RW
16721# Sed expression to map a string onto a valid variable name.
16722as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
953ff289 16723
953ff289
DN
16724
16725exec 6>&1
5213506e
RW
16726## ----------------------------------- ##
16727## Main body of $CONFIG_STATUS script. ##
16728## ----------------------------------- ##
16729_ASEOF
16730test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16731
16732cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16733# Save the log message, to keep $0 and so on meaningful, and to
953ff289 16734# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
16735# values after options handling.
16736ac_log="
953ff289 16737This file was extended by GNU OpenMP Runtime Library $as_me 1.0, which was
5213506e 16738generated by GNU Autoconf 2.64. Invocation command line was
953ff289
DN
16739
16740 CONFIG_FILES = $CONFIG_FILES
16741 CONFIG_HEADERS = $CONFIG_HEADERS
16742 CONFIG_LINKS = $CONFIG_LINKS
16743 CONFIG_COMMANDS = $CONFIG_COMMANDS
16744 $ $0 $@
16745
5213506e
RW
16746on `(hostname || uname -n) 2>/dev/null | sed 1q`
16747"
16748
953ff289
DN
16749_ACEOF
16750
5213506e
RW
16751case $ac_config_files in *"
16752"*) set x $ac_config_files; shift; ac_config_files=$*;;
16753esac
953ff289 16754
5213506e
RW
16755case $ac_config_headers in *"
16756"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16757esac
953ff289 16758
953ff289 16759
5213506e
RW
16760cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16761# Files that config.status was made for.
16762config_files="$ac_config_files"
16763config_headers="$ac_config_headers"
16764config_commands="$ac_config_commands"
953ff289 16765
5213506e 16766_ACEOF
953ff289 16767
5213506e 16768cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
953ff289 16769ac_cs_usage="\
5213506e
RW
16770\`$as_me' instantiates files and other configuration actions
16771from templates according to the current configuration. Unless the files
16772and actions are specified as TAGs, all are instantiated by default.
953ff289 16773
5213506e 16774Usage: $0 [OPTION]... [TAG]...
953ff289
DN
16775
16776 -h, --help print this help, then exit
5213506e
RW
16777 -V, --version print version number and configuration settings, then exit
16778 -q, --quiet, --silent
16779 do not print progress messages
953ff289
DN
16780 -d, --debug don't remove temporary files
16781 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
16782 --file=FILE[:TEMPLATE]
16783 instantiate the configuration file FILE
16784 --header=FILE[:TEMPLATE]
16785 instantiate the configuration header FILE
953ff289
DN
16786
16787Configuration files:
16788$config_files
16789
16790Configuration headers:
16791$config_headers
16792
16793Configuration commands:
16794$config_commands
16795
5213506e
RW
16796Report bugs to the package provider.
16797GNU OpenMP Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
16798General help using GNU software: <http://www.gnu.org/gethelp/>."
953ff289 16799
5213506e
RW
16800_ACEOF
16801cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
953ff289
DN
16802ac_cs_version="\\
16803GNU OpenMP Runtime Library config.status 1.0
5213506e
RW
16804configured by $0, generated by GNU Autoconf 2.64,
16805 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
953ff289 16806
5213506e 16807Copyright (C) 2009 Free Software Foundation, Inc.
953ff289
DN
16808This config.status script is free software; the Free Software Foundation
16809gives unlimited permission to copy, distribute and modify it."
5213506e
RW
16810
16811ac_pwd='$ac_pwd'
16812srcdir='$srcdir'
16813INSTALL='$INSTALL'
16814MKDIR_P='$MKDIR_P'
16815AWK='$AWK'
16816test -n "\$AWK" || AWK=awk
953ff289
DN
16817_ACEOF
16818
5213506e
RW
16819cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16820# The default lists apply if the user does not specify any file.
953ff289
DN
16821ac_need_defaults=:
16822while test $# != 0
16823do
16824 case $1 in
16825 --*=*)
5213506e
RW
16826 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16827 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
953ff289
DN
16828 ac_shift=:
16829 ;;
5213506e 16830 *)
953ff289
DN
16831 ac_option=$1
16832 ac_optarg=$2
16833 ac_shift=shift
16834 ;;
953ff289
DN
16835 esac
16836
16837 case $ac_option in
16838 # Handling of the options.
953ff289
DN
16839 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16840 ac_cs_recheck=: ;;
5213506e
RW
16841 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16842 $as_echo "$ac_cs_version"; exit ;;
16843 --debug | --debu | --deb | --de | --d | -d )
953ff289
DN
16844 debug=: ;;
16845 --file | --fil | --fi | --f )
16846 $ac_shift
5213506e
RW
16847 case $ac_optarg in
16848 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16849 esac
16850 as_fn_append CONFIG_FILES " '$ac_optarg'"
953ff289
DN
16851 ac_need_defaults=false;;
16852 --header | --heade | --head | --hea )
16853 $ac_shift
5213506e
RW
16854 case $ac_optarg in
16855 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16856 esac
16857 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
953ff289 16858 ac_need_defaults=false;;
5213506e
RW
16859 --he | --h)
16860 # Conflict between --help and --header
16861 as_fn_error "ambiguous option: \`$1'
16862Try \`$0 --help' for more information.";;
16863 --help | --hel | -h )
16864 $as_echo "$ac_cs_usage"; exit ;;
953ff289
DN
16865 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16866 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16867 ac_cs_silent=: ;;
16868
16869 # This is an error.
5213506e
RW
16870 -*) as_fn_error "unrecognized option: \`$1'
16871Try \`$0 --help' for more information." ;;
953ff289 16872
5213506e
RW
16873 *) as_fn_append ac_config_targets " $1"
16874 ac_need_defaults=false ;;
953ff289
DN
16875
16876 esac
16877 shift
16878done
16879
16880ac_configure_extra_args=
16881
16882if $ac_cs_silent; then
16883 exec 6>/dev/null
16884 ac_configure_extra_args="$ac_configure_extra_args --silent"
16885fi
16886
16887_ACEOF
5213506e 16888cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
953ff289 16889if \$ac_cs_recheck; then
5213506e
RW
16890 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16891 shift
16892 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16893 CONFIG_SHELL='$SHELL'
16894 export CONFIG_SHELL
16895 exec "\$@"
953ff289
DN
16896fi
16897
16898_ACEOF
5213506e
RW
16899cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16900exec 5>>config.log
16901{
16902 echo
16903 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16904## Running $as_me. ##
16905_ASBOX
16906 $as_echo "$ac_log"
16907} >&5
953ff289 16908
5213506e
RW
16909_ACEOF
16910cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
953ff289 16911#
5213506e 16912# INIT-COMMANDS
953ff289
DN
16913#
16914
953ff289
DN
16915srcdir="$srcdir"
16916host="$host"
16917target="$target"
16918with_multisubdir="$with_multisubdir"
16919with_multisrctop="$with_multisrctop"
16920with_target_subdir="$with_target_subdir"
16921ac_configure_args="${multilib_arg} ${ac_configure_args}"
16922multi_basedir="$multi_basedir"
16923CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16924CC="$CC"
396b7fa4
JM
16925CXX="$CXX"
16926GFORTRAN="$GFORTRAN"
16927GCJ="$GCJ"
953ff289
DN
16928AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16929
1cf3d07d
SE
16930
16931# The HP-UX ksh and POSIX shell print the target directory to stdout
16932# if CDPATH is set.
16933(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16934
16935sed_quote_subst='$sed_quote_subst'
16936double_quote_subst='$double_quote_subst'
16937delay_variable_subst='$delay_variable_subst'
16938macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
16939macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
16940enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
16941enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
16942pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
16943enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
16944host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
16945host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
16946host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
16947build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
16948build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
16949build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
16950SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
16951Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
16952GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
16953EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
16954FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
16955LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
16956NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
16957LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
16958max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
16959ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
16960exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
16961lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
16962lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
16963lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
16964reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
16965reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
6b4a97ed 16966OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
1cf3d07d
SE
16967deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
16968file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
16969AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
16970AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16971STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16972RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16973old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16974old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16975old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16976CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
16977CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16978compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
16979GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
16980lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16981lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16982lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
6b4a97ed 16983lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
1cf3d07d
SE
16984objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
16985SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
16986ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
16987MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
16988lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
16989lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
16990lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
16991lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
16992lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
16993need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
6b4a97ed
PG
16994DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
16995NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
16996LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
16997OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16998OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
1cf3d07d
SE
16999libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
17000shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17001extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17002archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
17003enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
17004export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17005whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17006compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
17007old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17008old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17009archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17010archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17011module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17012module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17013with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
17014allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17015no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17016hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17017hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
17018hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
17019hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
17020hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
17021hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
17022hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17023hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
17024inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
17025link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
17026fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
17027always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
17028export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17029exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17030include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17031prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17032file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
17033variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
17034need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17035need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
17036version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
17037runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17038shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17039shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
17040libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17041library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
17042soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17043postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17044postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17045finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17046finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
17047hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
17048sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17049sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17050hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
17051enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
17052enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
17053enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
17054old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
17055striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
6b4a97ed 17056compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
1cf3d07d
SE
17057predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17058postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17059predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
17060postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
17061compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
17062LD_FC='`$ECHO "X$LD_FC" | $Xsed -e "$delay_single_quote_subst"`'
17063old_archive_cmds_FC='`$ECHO "X$old_archive_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
17064compiler_FC='`$ECHO "X$compiler_FC" | $Xsed -e "$delay_single_quote_subst"`'
17065GCC_FC='`$ECHO "X$GCC_FC" | $Xsed -e "$delay_single_quote_subst"`'
17066lt_prog_compiler_no_builtin_flag_FC='`$ECHO "X$lt_prog_compiler_no_builtin_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
17067lt_prog_compiler_wl_FC='`$ECHO "X$lt_prog_compiler_wl_FC" | $Xsed -e "$delay_single_quote_subst"`'
17068lt_prog_compiler_pic_FC='`$ECHO "X$lt_prog_compiler_pic_FC" | $Xsed -e "$delay_single_quote_subst"`'
17069lt_prog_compiler_static_FC='`$ECHO "X$lt_prog_compiler_static_FC" | $Xsed -e "$delay_single_quote_subst"`'
17070lt_cv_prog_compiler_c_o_FC='`$ECHO "X$lt_cv_prog_compiler_c_o_FC" | $Xsed -e "$delay_single_quote_subst"`'
17071archive_cmds_need_lc_FC='`$ECHO "X$archive_cmds_need_lc_FC" | $Xsed -e "$delay_single_quote_subst"`'
17072enable_shared_with_static_runtimes_FC='`$ECHO "X$enable_shared_with_static_runtimes_FC" | $Xsed -e "$delay_single_quote_subst"`'
17073export_dynamic_flag_spec_FC='`$ECHO "X$export_dynamic_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
17074whole_archive_flag_spec_FC='`$ECHO "X$whole_archive_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
17075compiler_needs_object_FC='`$ECHO "X$compiler_needs_object_FC" | $Xsed -e "$delay_single_quote_subst"`'
17076old_archive_from_new_cmds_FC='`$ECHO "X$old_archive_from_new_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
17077old_archive_from_expsyms_cmds_FC='`$ECHO "X$old_archive_from_expsyms_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
17078archive_cmds_FC='`$ECHO "X$archive_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
17079archive_expsym_cmds_FC='`$ECHO "X$archive_expsym_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
17080module_cmds_FC='`$ECHO "X$module_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
17081module_expsym_cmds_FC='`$ECHO "X$module_expsym_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
17082with_gnu_ld_FC='`$ECHO "X$with_gnu_ld_FC" | $Xsed -e "$delay_single_quote_subst"`'
17083allow_undefined_flag_FC='`$ECHO "X$allow_undefined_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
17084no_undefined_flag_FC='`$ECHO "X$no_undefined_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
17085hardcode_libdir_flag_spec_FC='`$ECHO "X$hardcode_libdir_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
17086hardcode_libdir_flag_spec_ld_FC='`$ECHO "X$hardcode_libdir_flag_spec_ld_FC" | $Xsed -e "$delay_single_quote_subst"`'
17087hardcode_libdir_separator_FC='`$ECHO "X$hardcode_libdir_separator_FC" | $Xsed -e "$delay_single_quote_subst"`'
17088hardcode_direct_FC='`$ECHO "X$hardcode_direct_FC" | $Xsed -e "$delay_single_quote_subst"`'
17089hardcode_direct_absolute_FC='`$ECHO "X$hardcode_direct_absolute_FC" | $Xsed -e "$delay_single_quote_subst"`'
17090hardcode_minus_L_FC='`$ECHO "X$hardcode_minus_L_FC" | $Xsed -e "$delay_single_quote_subst"`'
17091hardcode_shlibpath_var_FC='`$ECHO "X$hardcode_shlibpath_var_FC" | $Xsed -e "$delay_single_quote_subst"`'
17092hardcode_automatic_FC='`$ECHO "X$hardcode_automatic_FC" | $Xsed -e "$delay_single_quote_subst"`'
17093inherit_rpath_FC='`$ECHO "X$inherit_rpath_FC" | $Xsed -e "$delay_single_quote_subst"`'
17094link_all_deplibs_FC='`$ECHO "X$link_all_deplibs_FC" | $Xsed -e "$delay_single_quote_subst"`'
17095fix_srcfile_path_FC='`$ECHO "X$fix_srcfile_path_FC" | $Xsed -e "$delay_single_quote_subst"`'
17096always_export_symbols_FC='`$ECHO "X$always_export_symbols_FC" | $Xsed -e "$delay_single_quote_subst"`'
17097export_symbols_cmds_FC='`$ECHO "X$export_symbols_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
17098exclude_expsyms_FC='`$ECHO "X$exclude_expsyms_FC" | $Xsed -e "$delay_single_quote_subst"`'
17099include_expsyms_FC='`$ECHO "X$include_expsyms_FC" | $Xsed -e "$delay_single_quote_subst"`'
17100prelink_cmds_FC='`$ECHO "X$prelink_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
17101file_list_spec_FC='`$ECHO "X$file_list_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
17102hardcode_action_FC='`$ECHO "X$hardcode_action_FC" | $Xsed -e "$delay_single_quote_subst"`'
6b4a97ed 17103compiler_lib_search_dirs_FC='`$ECHO "X$compiler_lib_search_dirs_FC" | $Xsed -e "$delay_single_quote_subst"`'
1cf3d07d
SE
17104predep_objects_FC='`$ECHO "X$predep_objects_FC" | $Xsed -e "$delay_single_quote_subst"`'
17105postdep_objects_FC='`$ECHO "X$postdep_objects_FC" | $Xsed -e "$delay_single_quote_subst"`'
17106predeps_FC='`$ECHO "X$predeps_FC" | $Xsed -e "$delay_single_quote_subst"`'
17107postdeps_FC='`$ECHO "X$postdeps_FC" | $Xsed -e "$delay_single_quote_subst"`'
17108compiler_lib_search_path_FC='`$ECHO "X$compiler_lib_search_path_FC" | $Xsed -e "$delay_single_quote_subst"`'
17109
17110LTCC='$LTCC'
17111LTCFLAGS='$LTCFLAGS'
17112compiler='$compiler_DEFAULT'
17113
17114# Quote evaled strings.
17115for var in SED \
17116GREP \
17117EGREP \
17118FGREP \
17119LD \
17120NM \
17121LN_S \
17122lt_SP2NL \
17123lt_NL2SP \
17124reload_flag \
6b4a97ed 17125OBJDUMP \
1cf3d07d
SE
17126deplibs_check_method \
17127file_magic_cmd \
17128AR \
17129AR_FLAGS \
17130STRIP \
17131RANLIB \
17132CC \
17133CFLAGS \
17134compiler \
17135lt_cv_sys_global_symbol_pipe \
17136lt_cv_sys_global_symbol_to_cdecl \
17137lt_cv_sys_global_symbol_to_c_name_address \
6b4a97ed 17138lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
1cf3d07d
SE
17139SHELL \
17140ECHO \
17141lt_prog_compiler_no_builtin_flag \
17142lt_prog_compiler_wl \
17143lt_prog_compiler_pic \
17144lt_prog_compiler_static \
17145lt_cv_prog_compiler_c_o \
17146need_locks \
6b4a97ed
PG
17147DSYMUTIL \
17148NMEDIT \
17149LIPO \
17150OTOOL \
17151OTOOL64 \
1cf3d07d
SE
17152shrext_cmds \
17153export_dynamic_flag_spec \
17154whole_archive_flag_spec \
17155compiler_needs_object \
17156with_gnu_ld \
17157allow_undefined_flag \
17158no_undefined_flag \
17159hardcode_libdir_flag_spec \
17160hardcode_libdir_flag_spec_ld \
17161hardcode_libdir_separator \
17162fix_srcfile_path \
17163exclude_expsyms \
17164include_expsyms \
17165file_list_spec \
17166variables_saved_for_relink \
17167libname_spec \
17168library_names_spec \
17169soname_spec \
17170finish_eval \
17171old_striplib \
17172striplib \
6b4a97ed 17173compiler_lib_search_dirs \
1cf3d07d
SE
17174predep_objects \
17175postdep_objects \
17176predeps \
17177postdeps \
17178compiler_lib_search_path \
17179LD_FC \
17180compiler_FC \
17181lt_prog_compiler_no_builtin_flag_FC \
17182lt_prog_compiler_wl_FC \
17183lt_prog_compiler_pic_FC \
17184lt_prog_compiler_static_FC \
17185lt_cv_prog_compiler_c_o_FC \
17186export_dynamic_flag_spec_FC \
17187whole_archive_flag_spec_FC \
17188compiler_needs_object_FC \
17189with_gnu_ld_FC \
17190allow_undefined_flag_FC \
17191no_undefined_flag_FC \
17192hardcode_libdir_flag_spec_FC \
17193hardcode_libdir_flag_spec_ld_FC \
17194hardcode_libdir_separator_FC \
17195fix_srcfile_path_FC \
17196exclude_expsyms_FC \
17197include_expsyms_FC \
17198file_list_spec_FC \
6b4a97ed 17199compiler_lib_search_dirs_FC \
1cf3d07d
SE
17200predep_objects_FC \
17201postdep_objects_FC \
17202predeps_FC \
17203postdeps_FC \
17204compiler_lib_search_path_FC; do
17205 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17206 *[\\\\\\\`\\"\\\$]*)
17207 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17208 ;;
17209 *)
17210 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17211 ;;
17212 esac
17213done
17214
17215# Double-quote double-evaled strings.
17216for var in reload_cmds \
17217old_postinstall_cmds \
17218old_postuninstall_cmds \
17219old_archive_cmds \
17220extract_expsyms_cmds \
17221old_archive_from_new_cmds \
17222old_archive_from_expsyms_cmds \
17223archive_cmds \
17224archive_expsym_cmds \
17225module_cmds \
17226module_expsym_cmds \
17227export_symbols_cmds \
17228prelink_cmds \
17229postinstall_cmds \
17230postuninstall_cmds \
17231finish_cmds \
17232sys_lib_search_path_spec \
17233sys_lib_dlsearch_path_spec \
17234old_archive_cmds_FC \
17235old_archive_from_new_cmds_FC \
17236old_archive_from_expsyms_cmds_FC \
17237archive_cmds_FC \
17238archive_expsym_cmds_FC \
17239module_cmds_FC \
17240module_expsym_cmds_FC \
17241export_symbols_cmds_FC \
17242prelink_cmds_FC; do
17243 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17244 *[\\\\\\\`\\"\\\$]*)
17245 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17246 ;;
17247 *)
17248 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17249 ;;
17250 esac
17251done
17252
17253# Fix-up fallback echo if it was mangled by the above quoting rules.
17254case \$lt_ECHO in
17255*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17256 ;;
17257esac
17258
17259ac_aux_dir='$ac_aux_dir'
17260xsi_shell='$xsi_shell'
17261lt_shell_append='$lt_shell_append'
17262
17263# See if we are running on zsh, and set the options which allow our
17264# commands through without removal of \ escapes INIT.
17265if test -n "\${ZSH_VERSION+set}" ; then
17266 setopt NO_GLOB_SUBST
17267fi
17268
17269
17270 PACKAGE='$PACKAGE'
17271 VERSION='$VERSION'
17272 TIMESTAMP='$TIMESTAMP'
17273 RM='$RM'
17274 ofile='$ofile'
17275
17276
17277
17278
17279
17280
18cbfd85
PB
17281GCC="$GCC"
17282CC="$CC"
17283acx_cv_header_stdint="$acx_cv_header_stdint"
17284acx_cv_type_int8_t="$acx_cv_type_int8_t"
17285acx_cv_type_int16_t="$acx_cv_type_int16_t"
17286acx_cv_type_int32_t="$acx_cv_type_int32_t"
17287acx_cv_type_int64_t="$acx_cv_type_int64_t"
17288acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
17289ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
17290ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
17291ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
17292ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
17293ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
17294ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
17295ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
17296ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
17297
17298
953ff289
DN
17299_ACEOF
17300
5213506e 17301cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
953ff289 17302
5213506e 17303# Handling of arguments.
953ff289
DN
17304for ac_config_target in $ac_config_targets
17305do
5213506e
RW
17306 case $ac_config_target in
17307 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17308 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17309 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17310 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17311 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
17312 "omp.h") CONFIG_FILES="$CONFIG_FILES omp.h" ;;
17313 "omp_lib.h") CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
17314 "omp_lib.f90") CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
17315 "libgomp_f.h") CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
17316 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17317 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17318 "libgomp.spec") CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
17319
17320 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
953ff289
DN
17321 esac
17322done
17323
5213506e 17324
953ff289
DN
17325# If the user did not use the arguments to specify the items to instantiate,
17326# then the envvar interface is used. Set only those that are not.
17327# We use the long form for the default assignment because of an extremely
17328# bizarre bug on SunOS 4.1.3.
17329if $ac_need_defaults; then
17330 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17331 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17332 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17333fi
17334
17335# Have a temporary directory for convenience. Make it in the build tree
5213506e 17336# simply because there is no reason against having it here, and in addition,
953ff289 17337# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
17338# Hook for its removal unless debugging.
17339# Note that there is a small window in which the directory will not be cleaned:
17340# after its creation but before its name has been assigned to `$tmp'.
953ff289
DN
17341$debug ||
17342{
5213506e
RW
17343 tmp=
17344 trap 'exit_status=$?
17345 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17346' 0
17347 trap 'as_fn_exit 1' 1 2 13 15
953ff289 17348}
953ff289
DN
17349# Create a (secure) tmp directory for tmp files.
17350
17351{
5213506e 17352 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
953ff289
DN
17353 test -n "$tmp" && test -d "$tmp"
17354} ||
17355{
5213506e
RW
17356 tmp=./conf$$-$RANDOM
17357 (umask 077 && mkdir "$tmp")
17358} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17359
17360# Set up the scripts for CONFIG_FILES section.
17361# No need to generate them if there are no CONFIG_FILES.
17362# This happens for instance with `./config.status config.h'.
17363if test -n "$CONFIG_FILES"; then
17364
17365
17366ac_cr=`echo X | tr X '\015'`
17367# On cygwin, bash can eat \r inside `` if the user requested igncr.
17368# But we know of no other shell where ac_cr would be empty at this
17369# point, so we can use a bashism as a fallback.
17370if test "x$ac_cr" = x; then
17371 eval ac_cr=\$\'\\r\'
17372fi
17373ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17374if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17375 ac_cs_awk_cr='\r'
17376else
17377 ac_cs_awk_cr=$ac_cr
17378fi
17379
17380echo 'BEGIN {' >"$tmp/subs1.awk" &&
17381_ACEOF
17382
17383
953ff289 17384{
5213506e
RW
17385 echo "cat >conf$$subs.awk <<_ACEOF" &&
17386 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17387 echo "_ACEOF"
17388} >conf$$subs.sh ||
17389 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17390ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17391ac_delim='%!_!# '
17392for ac_last_try in false false false false false :; do
17393 . ./conf$$subs.sh ||
17394 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17395
17396 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17397 if test $ac_delim_n = $ac_delim_num; then
17398 break
17399 elif $ac_last_try; then
17400 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17401 else
17402 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17403 fi
17404done
17405rm -f conf$$subs.sh
17406
17407cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17408cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17409_ACEOF
17410sed -n '
17411h
17412s/^/S["/; s/!.*/"]=/
17413p
17414g
17415s/^[^!]*!//
17416:repl
17417t repl
17418s/'"$ac_delim"'$//
17419t delim
17420:nl
17421h
17422s/\(.\{148\}\).*/\1/
17423t more1
17424s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17425p
17426n
17427b repl
17428:more1
17429s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17430p
17431g
17432s/.\{148\}//
17433t nl
17434:delim
17435h
17436s/\(.\{148\}\).*/\1/
17437t more2
17438s/["\\]/\\&/g; s/^/"/; s/$/"/
17439p
17440b
17441:more2
17442s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17443p
17444g
17445s/.\{148\}//
17446t delim
17447' <conf$$subs.awk | sed '
17448/^[^""]/{
17449 N
17450 s/\n//
953ff289 17451}
5213506e
RW
17452' >>$CONFIG_STATUS || ac_write_fail=1
17453rm -f conf$$subs.awk
17454cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17455_ACAWK
17456cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17457 for (key in S) S_is_set[key] = 1
17458 FS = "\a"
953ff289 17459
5213506e
RW
17460}
17461{
17462 line = $ 0
17463 nfields = split(line, field, "@")
17464 substed = 0
17465 len = length(field[1])
17466 for (i = 2; i < nfields; i++) {
17467 key = field[i]
17468 keylen = length(key)
17469 if (S_is_set[key]) {
17470 value = S[key]
17471 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17472 len += length(value) + length(field[++i])
17473 substed = 1
17474 } else
17475 len += 1 + keylen
17476 }
953ff289 17477
5213506e
RW
17478 print line
17479}
953ff289 17480
5213506e
RW
17481_ACAWK
17482_ACEOF
17483cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17484if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17485 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17486else
17487 cat
17488fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17489 || as_fn_error "could not setup config files machinery" "$LINENO" 5
17490_ACEOF
17491
17492# VPATH may cause trouble with some makes, so we remove $(srcdir),
17493# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17494# trailing colons and then remove the whole line if VPATH becomes empty
17495# (actually we leave an empty line to preserve line numbers).
17496if test "x$srcdir" = x.; then
17497 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17498s/:*\$(srcdir):*/:/
17499s/:*\${srcdir}:*/:/
17500s/:*@srcdir@:*/:/
17501s/^\([^=]*=[ ]*\):*/\1/
17502s/:*$//
17503s/^[^=]*=[ ]*$//
17504}'
17505fi
953ff289 17506
5213506e
RW
17507cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17508fi # test -n "$CONFIG_FILES"
953ff289 17509
5213506e
RW
17510# Set up the scripts for CONFIG_HEADERS section.
17511# No need to generate them if there are no CONFIG_HEADERS.
17512# This happens for instance with `./config.status Makefile'.
17513if test -n "$CONFIG_HEADERS"; then
17514cat >"$tmp/defines.awk" <<\_ACAWK ||
17515BEGIN {
953ff289
DN
17516_ACEOF
17517
5213506e
RW
17518# Transform confdefs.h into an awk script `defines.awk', embedded as
17519# here-document in config.status, that substitutes the proper values into
17520# config.h.in to produce config.h.
17521
17522# Create a delimiter string that does not exist in confdefs.h, to ease
17523# handling of long lines.
17524ac_delim='%!_!# '
17525for ac_last_try in false false :; do
17526 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17527 if test -z "$ac_t"; then
17528 break
17529 elif $ac_last_try; then
17530 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17531 else
17532 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
953ff289 17533 fi
5213506e 17534done
953ff289 17535
5213506e
RW
17536# For the awk script, D is an array of macro values keyed by name,
17537# likewise P contains macro parameters if any. Preserve backslash
17538# newline sequences.
17539
17540ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17541sed -n '
17542s/.\{148\}/&'"$ac_delim"'/g
17543t rset
17544:rset
17545s/^[ ]*#[ ]*define[ ][ ]*/ /
17546t def
17547d
17548:def
17549s/\\$//
17550t bsnl
17551s/["\\]/\\&/g
17552s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17553D["\1"]=" \3"/p
17554s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17555d
17556:bsnl
17557s/["\\]/\\&/g
17558s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17559D["\1"]=" \3\\\\\\n"\\/p
17560t cont
17561s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17562t cont
17563d
17564:cont
17565n
17566s/.\{148\}/&'"$ac_delim"'/g
17567t clear
17568:clear
17569s/\\$//
17570t bsnlc
17571s/["\\]/\\&/g; s/^/"/; s/$/"/p
17572d
17573:bsnlc
17574s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17575b cont
17576' <confdefs.h | sed '
17577s/'"$ac_delim"'/"\\\
17578"/g' >>$CONFIG_STATUS || ac_write_fail=1
17579
17580cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17581 for (key in D) D_is_set[key] = 1
17582 FS = "\a"
17583}
17584/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17585 line = \$ 0
17586 split(line, arg, " ")
17587 if (arg[1] == "#") {
17588 defundef = arg[2]
17589 mac1 = arg[3]
17590 } else {
17591 defundef = substr(arg[1], 2)
17592 mac1 = arg[2]
17593 }
17594 split(mac1, mac2, "(") #)
17595 macro = mac2[1]
17596 prefix = substr(line, 1, index(line, defundef) - 1)
17597 if (D_is_set[macro]) {
17598 # Preserve the white space surrounding the "#".
17599 print prefix "define", macro P[macro] D[macro]
17600 next
17601 } else {
17602 # Replace #undef with comments. This is necessary, for example,
17603 # in the case of _POSIX_SOURCE, which is predefined and required
17604 # on some systems where configure will not decide to define it.
17605 if (defundef == "undef") {
17606 print "/*", prefix defundef, macro, "*/"
17607 next
17608 }
17609 }
17610}
17611{ print }
17612_ACAWK
953ff289 17613_ACEOF
5213506e
RW
17614cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17615 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17616fi # test -n "$CONFIG_HEADERS"
17617
17618
17619eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17620shift
17621for ac_tag
17622do
17623 case $ac_tag in
17624 :[FHLC]) ac_mode=$ac_tag; continue;;
17625 esac
17626 case $ac_mode$ac_tag in
17627 :[FHL]*:*);;
17628 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17629 :[FH]-) ac_tag=-:-;;
17630 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17631 esac
17632 ac_save_IFS=$IFS
17633 IFS=:
17634 set x $ac_tag
17635 IFS=$ac_save_IFS
17636 shift
17637 ac_file=$1
17638 shift
17639
17640 case $ac_mode in
17641 :L) ac_source=$1;;
17642 :[FH])
17643 ac_file_inputs=
17644 for ac_f
17645 do
17646 case $ac_f in
17647 -) ac_f="$tmp/stdin";;
17648 *) # Look for the file first in the build tree, then in the source tree
17649 # (if the path is not absolute). The absolute path cannot be DOS-style,
17650 # because $ac_f cannot contain `:'.
17651 test -f "$ac_f" ||
17652 case $ac_f in
17653 [\\/$]*) false;;
17654 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17655 esac ||
17656 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17657 esac
17658 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17659 as_fn_append ac_file_inputs " '$ac_f'"
17660 done
17661
17662 # Let's still pretend it is `configure' which instantiates (i.e., don't
17663 # use $as_me), people would be surprised to read:
17664 # /* config.h. Generated by config.status. */
17665 configure_input='Generated from '`
17666 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17667 `' by configure.'
17668 if test x"$ac_file" != x-; then
17669 configure_input="$ac_file. $configure_input"
17670 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17671$as_echo "$as_me: creating $ac_file" >&6;}
17672 fi
17673 # Neutralize special characters interpreted by sed in replacement strings.
17674 case $configure_input in #(
17675 *\&* | *\|* | *\\* )
17676 ac_sed_conf_input=`$as_echo "$configure_input" |
17677 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17678 *) ac_sed_conf_input=$configure_input;;
17679 esac
17680
17681 case $ac_tag in
17682 *:-:* | *:-) cat >"$tmp/stdin" \
17683 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17684 esac
17685 ;;
953ff289
DN
17686 esac
17687
5213506e 17688 ac_dir=`$as_dirname -- "$ac_file" ||
953ff289
DN
17689$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17690 X"$ac_file" : 'X\(//\)[^/]' \| \
17691 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
17692 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17693$as_echo X"$ac_file" |
17694 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17695 s//\1/
17696 q
17697 }
17698 /^X\(\/\/\)[^/].*/{
17699 s//\1/
17700 q
17701 }
17702 /^X\(\/\/\)$/{
17703 s//\1/
17704 q
17705 }
17706 /^X\(\/\).*/{
17707 s//\1/
17708 q
17709 }
17710 s/.*/./; q'`
17711 as_dir="$ac_dir"; as_fn_mkdir_p
953ff289
DN
17712 ac_builddir=.
17713
5213506e
RW
17714case "$ac_dir" in
17715.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17716*)
17717 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17718 # A ".." for each directory in $ac_dir_suffix.
17719 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17720 case $ac_top_builddir_sub in
17721 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17722 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17723 esac ;;
17724esac
17725ac_abs_top_builddir=$ac_pwd
17726ac_abs_builddir=$ac_pwd$ac_dir_suffix
17727# for backward compatibility:
17728ac_top_builddir=$ac_top_build_prefix
953ff289
DN
17729
17730case $srcdir in
5213506e 17731 .) # We are building in place.
953ff289 17732 ac_srcdir=.
5213506e
RW
17733 ac_top_srcdir=$ac_top_builddir_sub
17734 ac_abs_top_srcdir=$ac_pwd ;;
17735 [\\/]* | ?:[\\/]* ) # Absolute name.
953ff289 17736 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
17737 ac_top_srcdir=$srcdir
17738 ac_abs_top_srcdir=$srcdir ;;
17739 *) # Relative name.
17740 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17741 ac_top_srcdir=$ac_top_build_prefix$srcdir
17742 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
953ff289 17743esac
5213506e 17744ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
953ff289 17745
953ff289 17746
5213506e
RW
17747 case $ac_mode in
17748 :F)
17749 #
17750 # CONFIG_FILE
17751 #
953ff289
DN
17752
17753 case $INSTALL in
17754 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e 17755 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
953ff289 17756 esac
5213506e
RW
17757 ac_MKDIR_P=$MKDIR_P
17758 case $MKDIR_P in
17759 [\\/$]* | ?:[\\/]* ) ;;
17760 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17761 esac
17762_ACEOF
953ff289 17763
5213506e
RW
17764cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17765# If the template does not know about datarootdir, expand it.
17766# FIXME: This hack should be removed a few years after 2.60.
17767ac_datarootdir_hack=; ac_datarootdir_seen=
17768ac_sed_dataroot='
17769/datarootdir/ {
17770 p
17771 q
17772}
17773/@datadir@/p
17774/@docdir@/p
17775/@infodir@/p
17776/@localedir@/p
17777/@mandir@/p'
17778case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17779*datarootdir*) ac_datarootdir_seen=yes;;
17780*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17782$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17783_ACEOF
17784cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17785 ac_datarootdir_hack='
17786 s&@datadir@&$datadir&g
17787 s&@docdir@&$docdir&g
17788 s&@infodir@&$infodir&g
17789 s&@localedir@&$localedir&g
17790 s&@mandir@&$mandir&g
17791 s&\\\${datarootdir}&$datarootdir&g' ;;
17792esac
953ff289 17793_ACEOF
5213506e
RW
17794
17795# Neutralize VPATH when `$srcdir' = `.'.
17796# Shell code in configure.ac might set extrasub.
17797# FIXME: do we really want to maintain this feature?
17798cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17799ac_sed_extra="$ac_vpsub
953ff289
DN
17800$extrasub
17801_ACEOF
5213506e 17802cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
953ff289
DN
17803:t
17804/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
17805s|@configure_input@|$ac_sed_conf_input|;t t
17806s&@top_builddir@&$ac_top_builddir_sub&;t t
17807s&@top_build_prefix@&$ac_top_build_prefix&;t t
17808s&@srcdir@&$ac_srcdir&;t t
17809s&@abs_srcdir@&$ac_abs_srcdir&;t t
17810s&@top_srcdir@&$ac_top_srcdir&;t t
17811s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17812s&@builddir@&$ac_builddir&;t t
17813s&@abs_builddir@&$ac_abs_builddir&;t t
17814s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17815s&@INSTALL@&$ac_INSTALL&;t t
17816s&@MKDIR_P@&$ac_MKDIR_P&;t t
17817$ac_datarootdir_hack
17818"
17819eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17820 || as_fn_error "could not create $ac_file" "$LINENO" 5
17821
17822test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17823 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17824 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17826which seems to be undefined. Please make sure it is defined." >&5
17827$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17828which seems to be undefined. Please make sure it is defined." >&2;}
17829
17830 rm -f "$tmp/stdin"
953ff289 17831 case $ac_file in
5213506e
RW
17832 -) cat "$tmp/out" && rm -f "$tmp/out";;
17833 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17834 esac \
17835 || as_fn_error "could not create $ac_file" "$LINENO" 5
17836 ;;
17837 :H)
17838 #
17839 # CONFIG_HEADER
17840 #
953ff289 17841 if test x"$ac_file" != x-; then
5213506e
RW
17842 {
17843 $as_echo "/* $configure_input */" \
17844 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17845 } >"$tmp/config.h" \
17846 || as_fn_error "could not create $ac_file" "$LINENO" 5
17847 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17848 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17849$as_echo "$as_me: $ac_file is unchanged" >&6;}
953ff289 17850 else
5213506e
RW
17851 rm -f "$ac_file"
17852 mv "$tmp/config.h" "$ac_file" \
17853 || as_fn_error "could not create $ac_file" "$LINENO" 5
953ff289
DN
17854 fi
17855 else
5213506e
RW
17856 $as_echo "/* $configure_input */" \
17857 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17858 || as_fn_error "could not create -" "$LINENO" 5
953ff289 17859 fi
5213506e
RW
17860# Compute "$ac_file"'s index in $config_headers.
17861_am_arg="$ac_file"
953ff289
DN
17862_am_stamp_count=1
17863for _am_header in $config_headers :; do
17864 case $_am_header in
5213506e 17865 $_am_arg | $_am_arg:* )
953ff289
DN
17866 break ;;
17867 * )
17868 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17869 esac
17870done
5213506e
RW
17871echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17872$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17873 X"$_am_arg" : 'X\(//\)[^/]' \| \
17874 X"$_am_arg" : 'X\(//\)$' \| \
17875 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17876$as_echo X"$_am_arg" |
17877 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17878 s//\1/
17879 q
17880 }
17881 /^X\(\/\/\)[^/].*/{
17882 s//\1/
17883 q
17884 }
17885 /^X\(\/\/\)$/{
17886 s//\1/
17887 q
17888 }
17889 /^X\(\/\).*/{
17890 s//\1/
17891 q
17892 }
17893 s/.*/./; q'`/stamp-h$_am_stamp_count
17894 ;;
953ff289 17895
5213506e
RW
17896 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17897$as_echo "$as_me: executing $ac_file commands" >&6;}
17898 ;;
17899 esac
953ff289
DN
17900
17901
5213506e
RW
17902 case $ac_file$ac_mode in
17903 "default-1":C)
953ff289
DN
17904# Only add multilib support code if we just rebuilt the top-level
17905# Makefile.
17906case " $CONFIG_FILES " in
17907 *" Makefile "*)
17908 ac_file=Makefile . ${multi_basedir}/config-ml.in
17909 ;;
17910esac ;;
5213506e
RW
17911 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17912 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17913 # are listed without --file. Let's play safe and only enable the eval
17914 # if we detect the quoting.
17915 case $CONFIG_FILES in
17916 *\'*) eval set x "$CONFIG_FILES" ;;
17917 *) set x $CONFIG_FILES ;;
17918 esac
17919 shift
17920 for mf
17921 do
17922 # Strip MF so we end up with the name of the file.
17923 mf=`echo "$mf" | sed -e 's/:.*$//'`
17924 # Check whether this is an Automake generated Makefile or not.
17925 # We used to match only the files named `Makefile.in', but
17926 # some people rename them; so instead we look at the file content.
17927 # Grep'ing the first line is not enough: some people post-process
17928 # each Makefile.in and add a new line on top of each file to say so.
17929 # Grep'ing the whole file is not good either: AIX grep has a line
17930 # limit of 2048, but all sed's we know have understand at least 4000.
17931 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17932 dirpart=`$as_dirname -- "$mf" ||
953ff289
DN
17933$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17934 X"$mf" : 'X\(//\)[^/]' \| \
17935 X"$mf" : 'X\(//\)$' \| \
5213506e
RW
17936 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17937$as_echo X"$mf" |
17938 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17939 s//\1/
17940 q
17941 }
17942 /^X\(\/\/\)[^/].*/{
17943 s//\1/
17944 q
17945 }
17946 /^X\(\/\/\)$/{
17947 s//\1/
17948 q
17949 }
17950 /^X\(\/\).*/{
17951 s//\1/
17952 q
17953 }
17954 s/.*/./; q'`
17955 else
17956 continue
17957 fi
17958 # Extract the definition of DEPDIR, am__include, and am__quote
17959 # from the Makefile without running `make'.
17960 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17961 test -z "$DEPDIR" && continue
17962 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17963 test -z "am__include" && continue
17964 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17965 # When using ansi2knr, U may be empty or an underscore; expand it
17966 U=`sed -n 's/^U = //p' < "$mf"`
17967 # Find all dependency output files, they are included files with
17968 # $(DEPDIR) in their names. We invoke sed twice because it is the
17969 # simplest approach to changing $(DEPDIR) to its actual value in the
17970 # expansion.
17971 for file in `sed -n "
17972 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17973 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17974 # Make sure the directory exists.
17975 test -f "$dirpart/$file" && continue
17976 fdir=`$as_dirname -- "$file" ||
953ff289
DN
17977$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17978 X"$file" : 'X\(//\)[^/]' \| \
17979 X"$file" : 'X\(//\)$' \| \
5213506e
RW
17980 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17981$as_echo X"$file" |
17982 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17983 s//\1/
17984 q
17985 }
17986 /^X\(\/\/\)[^/].*/{
17987 s//\1/
17988 q
17989 }
17990 /^X\(\/\/\)$/{
17991 s//\1/
17992 q
17993 }
17994 /^X\(\/\).*/{
17995 s//\1/
17996 q
17997 }
17998 s/.*/./; q'`
17999 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18000 # echo "creating $dirpart/$file"
18001 echo '# dummy' > "$dirpart/$file"
953ff289 18002 done
953ff289 18003 done
5213506e 18004}
1cf3d07d 18005 ;;
5213506e 18006 "libtool":C)
1cf3d07d
SE
18007
18008 # See if we are running on zsh, and set the options which allow our
18009 # commands through without removal of \ escapes.
18010 if test -n "${ZSH_VERSION+set}" ; then
18011 setopt NO_GLOB_SUBST
18012 fi
18013
18014 cfgfile="${ofile}T"
18015 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18016 $RM "$cfgfile"
18017
18018 cat <<_LT_EOF >> "$cfgfile"
18019#! $SHELL
18020
18021# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
6b4a97ed 18022# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1cf3d07d
SE
18023# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18024# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18025#
6b4a97ed
PG
18026# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18027# 2006, 2007, 2008 Free Software Foundation, Inc.
18028# Written by Gordon Matzigkeit, 1996
1cf3d07d 18029#
6b4a97ed 18030# This file is part of GNU Libtool.
1cf3d07d 18031#
6b4a97ed
PG
18032# GNU Libtool is free software; you can redistribute it and/or
18033# modify it under the terms of the GNU General Public License as
18034# published by the Free Software Foundation; either version 2 of
18035# the License, or (at your option) any later version.
1cf3d07d 18036#
6b4a97ed
PG
18037# As a special exception to the GNU General Public License,
18038# if you distribute this file as part of a program or library that
18039# is built using GNU Libtool, you may include this file under the
18040# same distribution terms that you use for the rest of that program.
1cf3d07d 18041#
6b4a97ed
PG
18042# GNU Libtool is distributed in the hope that it will be useful,
18043# but WITHOUT ANY WARRANTY; without even the implied warranty of
18044# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18045# GNU General Public License for more details.
1cf3d07d 18046#
6b4a97ed
PG
18047# You should have received a copy of the GNU General Public License
18048# along with GNU Libtool; see the file COPYING. If not, a copy
18049# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18050# obtained by writing to the Free Software Foundation, Inc.,
18051# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1cf3d07d
SE
18052
18053
18054# The names of the tagged configurations supported by this script.
18055available_tags="FC "
18056
18057# ### BEGIN LIBTOOL CONFIG
18058
18059# Which release of libtool.m4 was used?
18060macro_version=$macro_version
18061macro_revision=$macro_revision
18062
18063# Whether or not to build shared libraries.
18064build_libtool_libs=$enable_shared
18065
18066# Whether or not to build static libraries.
18067build_old_libs=$enable_static
18068
18069# What type of objects to build.
18070pic_mode=$pic_mode
18071
18072# Whether or not to optimize for fast installation.
18073fast_install=$enable_fast_install
18074
18075# The host system.
18076host_alias=$host_alias
18077host=$host
18078host_os=$host_os
18079
18080# The build system.
18081build_alias=$build_alias
18082build=$build
18083build_os=$build_os
18084
18085# A sed program that does not truncate output.
18086SED=$lt_SED
18087
18088# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18089Xsed="\$SED -e 1s/^X//"
18090
18091# A grep program that handles long lines.
18092GREP=$lt_GREP
18093
18094# An ERE matcher.
18095EGREP=$lt_EGREP
18096
18097# A literal string matcher.
18098FGREP=$lt_FGREP
18099
18100# A BSD- or MS-compatible name lister.
18101NM=$lt_NM
18102
18103# Whether we need soft or hard links.
18104LN_S=$lt_LN_S
18105
18106# What is the maximum length of a command?
18107max_cmd_len=$max_cmd_len
18108
18109# Object file suffix (normally "o").
18110objext=$ac_objext
18111
18112# Executable file suffix (normally "").
18113exeext=$exeext
18114
18115# whether the shell understands "unset".
18116lt_unset=$lt_unset
18117
18118# turn spaces into newlines.
18119SP2NL=$lt_lt_SP2NL
18120
18121# turn newlines into spaces.
18122NL2SP=$lt_lt_NL2SP
18123
18124# How to create reloadable object files.
18125reload_flag=$lt_reload_flag
18126reload_cmds=$lt_reload_cmds
18127
6b4a97ed
PG
18128# An object symbol dumper.
18129OBJDUMP=$lt_OBJDUMP
18130
1cf3d07d
SE
18131# Method to check whether dependent libraries are shared objects.
18132deplibs_check_method=$lt_deplibs_check_method
18133
18134# Command to use when deplibs_check_method == "file_magic".
18135file_magic_cmd=$lt_file_magic_cmd
18136
18137# The archiver.
18138AR=$lt_AR
18139AR_FLAGS=$lt_AR_FLAGS
18140
18141# A symbol stripping program.
18142STRIP=$lt_STRIP
18143
18144# Commands used to install an old-style archive.
18145RANLIB=$lt_RANLIB
18146old_postinstall_cmds=$lt_old_postinstall_cmds
18147old_postuninstall_cmds=$lt_old_postuninstall_cmds
18148
18149# A C compiler.
18150LTCC=$lt_CC
18151
18152# LTCC compiler flags.
18153LTCFLAGS=$lt_CFLAGS
18154
18155# Take the output of nm and produce a listing of raw symbols and C names.
18156global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18157
18158# Transform the output of nm in a proper C declaration.
18159global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18160
18161# Transform the output of nm in a C name address pair.
18162global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18163
6b4a97ed
PG
18164# Transform the output of nm in a C name address pair when lib prefix is needed.
18165global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18166
1cf3d07d
SE
18167# The name of the directory that contains temporary libtool files.
18168objdir=$objdir
18169
18170# Shell to use when invoking shell scripts.
18171SHELL=$lt_SHELL
18172
18173# An echo program that does not interpret backslashes.
18174ECHO=$lt_ECHO
18175
18176# Used to examine libraries when file_magic_cmd begins with "file".
18177MAGIC_CMD=$MAGIC_CMD
18178
18179# Must we lock files when doing compilation?
18180need_locks=$lt_need_locks
18181
6b4a97ed
PG
18182# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18183DSYMUTIL=$lt_DSYMUTIL
18184
18185# Tool to change global to local symbols on Mac OS X.
18186NMEDIT=$lt_NMEDIT
18187
18188# Tool to manipulate fat objects and archives on Mac OS X.
18189LIPO=$lt_LIPO
18190
18191# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18192OTOOL=$lt_OTOOL
18193
18194# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18195OTOOL64=$lt_OTOOL64
18196
1cf3d07d
SE
18197# Old archive suffix (normally "a").
18198libext=$libext
18199
18200# Shared library suffix (normally ".so").
18201shrext_cmds=$lt_shrext_cmds
18202
18203# The commands to extract the exported symbol list from a shared archive.
18204extract_expsyms_cmds=$lt_extract_expsyms_cmds
18205
18206# Variables whose values should be saved in libtool wrapper scripts and
18207# restored at link time.
18208variables_saved_for_relink=$lt_variables_saved_for_relink
18209
18210# Do we need the "lib" prefix for modules?
18211need_lib_prefix=$need_lib_prefix
18212
18213# Do we need a version for libraries?
18214need_version=$need_version
18215
18216# Library versioning type.
18217version_type=$version_type
18218
18219# Shared library runtime path variable.
18220runpath_var=$runpath_var
18221
18222# Shared library path variable.
18223shlibpath_var=$shlibpath_var
18224
18225# Is shlibpath searched before the hard-coded library search path?
18226shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18227
18228# Format of library name prefix.
18229libname_spec=$lt_libname_spec
18230
18231# List of archive names. First name is the real one, the rest are links.
18232# The last name is the one that the linker finds with -lNAME
18233library_names_spec=$lt_library_names_spec
18234
18235# The coded name of the library, if different from the real name.
18236soname_spec=$lt_soname_spec
18237
18238# Command to use after installation of a shared archive.
18239postinstall_cmds=$lt_postinstall_cmds
18240
18241# Command to use after uninstallation of a shared archive.
18242postuninstall_cmds=$lt_postuninstall_cmds
18243
18244# Commands used to finish a libtool library installation in a directory.
18245finish_cmds=$lt_finish_cmds
18246
18247# As "finish_cmds", except a single script fragment to be evaled but
18248# not shown.
18249finish_eval=$lt_finish_eval
18250
18251# Whether we should hardcode library paths into libraries.
18252hardcode_into_libs=$hardcode_into_libs
18253
18254# Compile-time system search path for libraries.
18255sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18256
18257# Run-time system search path for libraries.
18258sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18259
18260# Whether dlopen is supported.
18261dlopen_support=$enable_dlopen
18262
18263# Whether dlopen of programs is supported.
18264dlopen_self=$enable_dlopen_self
18265
18266# Whether dlopen of statically linked programs is supported.
18267dlopen_self_static=$enable_dlopen_self_static
18268
18269# Commands to strip libraries.
18270old_striplib=$lt_old_striplib
18271striplib=$lt_striplib
18272
18273
18274# The linker used to build libraries.
18275LD=$lt_LD
18276
18277# Commands used to build an old-style archive.
18278old_archive_cmds=$lt_old_archive_cmds
18279
18280# A language specific compiler.
18281CC=$lt_compiler
18282
18283# Is the compiler the GNU compiler?
18284with_gcc=$GCC
18285
18286# Compiler flag to turn off builtin functions.
18287no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18288
18289# How to pass a linker flag through the compiler.
18290wl=$lt_lt_prog_compiler_wl
18291
18292# Additional compiler flags for building library objects.
18293pic_flag=$lt_lt_prog_compiler_pic
18294
18295# Compiler flag to prevent dynamic linking.
18296link_static_flag=$lt_lt_prog_compiler_static
18297
18298# Does compiler simultaneously support -c and -o options?
18299compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18300
18301# Whether or not to add -lc for building shared libraries.
18302build_libtool_need_lc=$archive_cmds_need_lc
18303
18304# Whether or not to disallow shared libs when runtime libs are static.
18305allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18306
18307# Compiler flag to allow reflexive dlopens.
18308export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18309
18310# Compiler flag to generate shared objects directly from archives.
18311whole_archive_flag_spec=$lt_whole_archive_flag_spec
18312
18313# Whether the compiler copes with passing no objects directly.
18314compiler_needs_object=$lt_compiler_needs_object
18315
18316# Create an old-style archive from a shared archive.
18317old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18318
18319# Create a temporary old-style archive to link instead of a shared archive.
18320old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18321
18322# Commands used to build a shared archive.
18323archive_cmds=$lt_archive_cmds
18324archive_expsym_cmds=$lt_archive_expsym_cmds
18325
18326# Commands used to build a loadable module if different from building
18327# a shared archive.
18328module_cmds=$lt_module_cmds
18329module_expsym_cmds=$lt_module_expsym_cmds
18330
18331# Whether we are building with GNU ld or not.
18332with_gnu_ld=$lt_with_gnu_ld
18333
18334# Flag that allows shared libraries with undefined symbols to be built.
18335allow_undefined_flag=$lt_allow_undefined_flag
18336
18337# Flag that enforces no undefined symbols.
18338no_undefined_flag=$lt_no_undefined_flag
18339
18340# Flag to hardcode \$libdir into a binary during linking.
18341# This must work even if \$libdir does not exist
18342hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18343
18344# If ld is used when linking, flag to hardcode \$libdir into a binary
18345# during linking. This must work even if \$libdir does not exist.
18346hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18347
18348# Whether we need a single "-rpath" flag with a separated argument.
18349hardcode_libdir_separator=$lt_hardcode_libdir_separator
18350
18351# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18352# DIR into the resulting binary.
18353hardcode_direct=$hardcode_direct
18354
18355# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18356# DIR into the resulting binary and the resulting library dependency is
18357# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18358# library is relocated.
18359hardcode_direct_absolute=$hardcode_direct_absolute
18360
18361# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18362# into the resulting binary.
18363hardcode_minus_L=$hardcode_minus_L
18364
18365# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18366# into the resulting binary.
18367hardcode_shlibpath_var=$hardcode_shlibpath_var
18368
18369# Set to "yes" if building a shared library automatically hardcodes DIR
18370# into the library and all subsequent libraries and executables linked
18371# against it.
18372hardcode_automatic=$hardcode_automatic
18373
18374# Set to yes if linker adds runtime paths of dependent libraries
18375# to runtime path list.
18376inherit_rpath=$inherit_rpath
18377
18378# Whether libtool must link a program against all its dependency libraries.
18379link_all_deplibs=$link_all_deplibs
18380
18381# Fix the shell variable \$srcfile for the compiler.
18382fix_srcfile_path=$lt_fix_srcfile_path
18383
18384# Set to "yes" if exported symbols are required.
18385always_export_symbols=$always_export_symbols
18386
18387# The commands to list exported symbols.
18388export_symbols_cmds=$lt_export_symbols_cmds
18389
18390# Symbols that should not be listed in the preloaded symbols.
18391exclude_expsyms=$lt_exclude_expsyms
18392
18393# Symbols that must always be exported.
18394include_expsyms=$lt_include_expsyms
18395
18396# Commands necessary for linking programs (against libraries) with templates.
18397prelink_cmds=$lt_prelink_cmds
18398
18399# Specify filename containing input files.
18400file_list_spec=$lt_file_list_spec
18401
18402# How to hardcode a shared library path into an executable.
18403hardcode_action=$hardcode_action
18404
6b4a97ed
PG
18405# The directories searched by this compiler when creating a shared library.
18406compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18407
1cf3d07d
SE
18408# Dependencies to place before and after the objects being linked to
18409# create a shared library.
18410predep_objects=$lt_predep_objects
18411postdep_objects=$lt_postdep_objects
18412predeps=$lt_predeps
18413postdeps=$lt_postdeps
18414
18415# The library search path used internally by the compiler when linking
18416# a shared library.
18417compiler_lib_search_path=$lt_compiler_lib_search_path
18418
18419# ### END LIBTOOL CONFIG
18420
18421_LT_EOF
18422
18423 case $host_os in
18424 aix3*)
18425 cat <<\_LT_EOF >> "$cfgfile"
18426# AIX sometimes has problems with the GCC collect2 program. For some
18427# reason, if we set the COLLECT_NAMES environment variable, the problems
18428# vanish in a puff of smoke.
18429if test "X${COLLECT_NAMES+set}" != Xset; then
18430 COLLECT_NAMES=
18431 export COLLECT_NAMES
18432fi
18433_LT_EOF
18434 ;;
18435 esac
18436
18437
18438ltmain="$ac_aux_dir/ltmain.sh"
18439
18440
18441 # We use sed instead of cat because bash on DJGPP gets confused if
18442 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18443 # text mode, it properly converts lines to CR/LF. This bash problem
18444 # is reportedly fixed, but why not run on old versions too?
18445 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18446 || (rm -f "$cfgfile"; exit 1)
18447
18448 case $xsi_shell in
18449 yes)
18450 cat << \_LT_EOF >> "$cfgfile"
6b4a97ed 18451
1cf3d07d
SE
18452# func_dirname file append nondir_replacement
18453# Compute the dirname of FILE. If nonempty, add APPEND to the result,
18454# otherwise set result to NONDIR_REPLACEMENT.
18455func_dirname ()
18456{
18457 case ${1} in
18458 */*) func_dirname_result="${1%/*}${2}" ;;
18459 * ) func_dirname_result="${3}" ;;
18460 esac
18461}
18462
18463# func_basename file
18464func_basename ()
18465{
18466 func_basename_result="${1##*/}"
18467}
18468
6b4a97ed
PG
18469# func_dirname_and_basename file append nondir_replacement
18470# perform func_basename and func_dirname in a single function
18471# call:
18472# dirname: Compute the dirname of FILE. If nonempty,
18473# add APPEND to the result, otherwise set result
18474# to NONDIR_REPLACEMENT.
18475# value returned in "$func_dirname_result"
18476# basename: Compute filename of FILE.
18477# value retuned in "$func_basename_result"
18478# Implementation must be kept synchronized with func_dirname
18479# and func_basename. For efficiency, we do not delegate to
18480# those functions but instead duplicate the functionality here.
18481func_dirname_and_basename ()
18482{
18483 case ${1} in
18484 */*) func_dirname_result="${1%/*}${2}" ;;
18485 * ) func_dirname_result="${3}" ;;
18486 esac
18487 func_basename_result="${1##*/}"
18488}
18489
1cf3d07d
SE
18490# func_stripname prefix suffix name
18491# strip PREFIX and SUFFIX off of NAME.
18492# PREFIX and SUFFIX must not contain globbing or regex special
18493# characters, hashes, percent signs, but SUFFIX may contain a leading
18494# dot (in which case that matches only a dot).
18495func_stripname ()
18496{
18497 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18498 # positional parameters, so assign one to ordinary parameter first.
18499 func_stripname_result=${3}
18500 func_stripname_result=${func_stripname_result#"${1}"}
18501 func_stripname_result=${func_stripname_result%"${2}"}
18502}
18503
18504# func_opt_split
18505func_opt_split ()
18506{
18507 func_opt_split_opt=${1%%=*}
18508 func_opt_split_arg=${1#*=}
18509}
18510
18511# func_lo2o object
18512func_lo2o ()
18513{
18514 case ${1} in
18515 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18516 *) func_lo2o_result=${1} ;;
18517 esac
18518}
6b4a97ed
PG
18519
18520# func_xform libobj-or-source
18521func_xform ()
18522{
18523 func_xform_result=${1%.*}.lo
18524}
18525
18526# func_arith arithmetic-term...
18527func_arith ()
18528{
18529 func_arith_result=$(( $* ))
18530}
18531
18532# func_len string
18533# STRING may not start with a hyphen.
18534func_len ()
18535{
18536 func_len_result=${#1}
18537}
18538
1cf3d07d
SE
18539_LT_EOF
18540 ;;
18541 *) # Bourne compatible functions.
18542 cat << \_LT_EOF >> "$cfgfile"
6b4a97ed 18543
1cf3d07d
SE
18544# func_dirname file append nondir_replacement
18545# Compute the dirname of FILE. If nonempty, add APPEND to the result,
18546# otherwise set result to NONDIR_REPLACEMENT.
18547func_dirname ()
18548{
18549 # Extract subdirectory from the argument.
18550 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
18551 if test "X$func_dirname_result" = "X${1}"; then
18552 func_dirname_result="${3}"
18553 else
18554 func_dirname_result="$func_dirname_result${2}"
18555 fi
18556}
18557
18558# func_basename file
18559func_basename ()
18560{
18561 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
18562}
18563
6b4a97ed 18564
1cf3d07d
SE
18565# func_stripname prefix suffix name
18566# strip PREFIX and SUFFIX off of NAME.
18567# PREFIX and SUFFIX must not contain globbing or regex special
18568# characters, hashes, percent signs, but SUFFIX may contain a leading
18569# dot (in which case that matches only a dot).
18570# func_strip_suffix prefix name
18571func_stripname ()
18572{
18573 case ${2} in
18574 .*) func_stripname_result=`$ECHO "X${3}" \
18575 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
18576 *) func_stripname_result=`$ECHO "X${3}" \
18577 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
18578 esac
18579}
18580
18581# sed scripts:
18582my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18583my_sed_long_arg='1s/^-[^=]*=//'
18584
18585# func_opt_split
18586func_opt_split ()
18587{
18588 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
18589 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
18590}
18591
18592# func_lo2o object
18593func_lo2o ()
18594{
18595 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
18596}
6b4a97ed
PG
18597
18598# func_xform libobj-or-source
18599func_xform ()
18600{
18601 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
18602}
18603
18604# func_arith arithmetic-term...
18605func_arith ()
18606{
18607 func_arith_result=`expr "$@"`
18608}
18609
18610# func_len string
18611# STRING may not start with a hyphen.
18612func_len ()
18613{
18614 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18615}
18616
1cf3d07d
SE
18617_LT_EOF
18618esac
18619
18620case $lt_shell_append in
18621 yes)
18622 cat << \_LT_EOF >> "$cfgfile"
18623
18624# func_append var value
18625# Append VALUE to the end of shell variable VAR.
18626func_append ()
18627{
18628 eval "$1+=\$2"
18629}
18630_LT_EOF
18631 ;;
18632 *)
18633 cat << \_LT_EOF >> "$cfgfile"
18634
18635# func_append var value
18636# Append VALUE to the end of shell variable VAR.
18637func_append ()
18638{
18639 eval "$1=\$$1\$2"
18640}
6b4a97ed 18641
1cf3d07d
SE
18642_LT_EOF
18643 ;;
18644 esac
18645
18646
18647 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18648 || (rm -f "$cfgfile"; exit 1)
18649
18650 mv -f "$cfgfile" "$ofile" ||
18651 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18652 chmod +x "$ofile"
18653
18654
18655 cat <<_LT_EOF >> "$ofile"
18656
18657# ### BEGIN LIBTOOL TAG CONFIG: FC
18658
18659# The linker used to build libraries.
18660LD=$lt_LD_FC
18661
18662# Commands used to build an old-style archive.
18663old_archive_cmds=$lt_old_archive_cmds_FC
18664
18665# A language specific compiler.
18666CC=$lt_compiler_FC
18667
18668# Is the compiler the GNU compiler?
18669with_gcc=$GCC_FC
18670
18671# Compiler flag to turn off builtin functions.
18672no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
18673
18674# How to pass a linker flag through the compiler.
18675wl=$lt_lt_prog_compiler_wl_FC
18676
18677# Additional compiler flags for building library objects.
18678pic_flag=$lt_lt_prog_compiler_pic_FC
18679
18680# Compiler flag to prevent dynamic linking.
18681link_static_flag=$lt_lt_prog_compiler_static_FC
18682
18683# Does compiler simultaneously support -c and -o options?
18684compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
18685
18686# Whether or not to add -lc for building shared libraries.
18687build_libtool_need_lc=$archive_cmds_need_lc_FC
18688
18689# Whether or not to disallow shared libs when runtime libs are static.
18690allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
18691
18692# Compiler flag to allow reflexive dlopens.
18693export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
18694
18695# Compiler flag to generate shared objects directly from archives.
18696whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
18697
18698# Whether the compiler copes with passing no objects directly.
18699compiler_needs_object=$lt_compiler_needs_object_FC
18700
18701# Create an old-style archive from a shared archive.
18702old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
18703
18704# Create a temporary old-style archive to link instead of a shared archive.
18705old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
18706
18707# Commands used to build a shared archive.
18708archive_cmds=$lt_archive_cmds_FC
18709archive_expsym_cmds=$lt_archive_expsym_cmds_FC
18710
18711# Commands used to build a loadable module if different from building
18712# a shared archive.
18713module_cmds=$lt_module_cmds_FC
18714module_expsym_cmds=$lt_module_expsym_cmds_FC
18715
18716# Whether we are building with GNU ld or not.
18717with_gnu_ld=$lt_with_gnu_ld_FC
18718
18719# Flag that allows shared libraries with undefined symbols to be built.
18720allow_undefined_flag=$lt_allow_undefined_flag_FC
18721
18722# Flag that enforces no undefined symbols.
18723no_undefined_flag=$lt_no_undefined_flag_FC
18724
18725# Flag to hardcode \$libdir into a binary during linking.
18726# This must work even if \$libdir does not exist
18727hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
18728
18729# If ld is used when linking, flag to hardcode \$libdir into a binary
18730# during linking. This must work even if \$libdir does not exist.
18731hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
18732
18733# Whether we need a single "-rpath" flag with a separated argument.
18734hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
18735
18736# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18737# DIR into the resulting binary.
18738hardcode_direct=$hardcode_direct_FC
18739
18740# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18741# DIR into the resulting binary and the resulting library dependency is
18742# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18743# library is relocated.
18744hardcode_direct_absolute=$hardcode_direct_absolute_FC
18745
18746# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18747# into the resulting binary.
18748hardcode_minus_L=$hardcode_minus_L_FC
18749
18750# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18751# into the resulting binary.
18752hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
18753
18754# Set to "yes" if building a shared library automatically hardcodes DIR
18755# into the library and all subsequent libraries and executables linked
18756# against it.
18757hardcode_automatic=$hardcode_automatic_FC
18758
18759# Set to yes if linker adds runtime paths of dependent libraries
18760# to runtime path list.
18761inherit_rpath=$inherit_rpath_FC
18762
18763# Whether libtool must link a program against all its dependency libraries.
18764link_all_deplibs=$link_all_deplibs_FC
18765
18766# Fix the shell variable \$srcfile for the compiler.
18767fix_srcfile_path=$lt_fix_srcfile_path_FC
18768
18769# Set to "yes" if exported symbols are required.
18770always_export_symbols=$always_export_symbols_FC
18771
18772# The commands to list exported symbols.
18773export_symbols_cmds=$lt_export_symbols_cmds_FC
18774
18775# Symbols that should not be listed in the preloaded symbols.
18776exclude_expsyms=$lt_exclude_expsyms_FC
18777
18778# Symbols that must always be exported.
18779include_expsyms=$lt_include_expsyms_FC
18780
18781# Commands necessary for linking programs (against libraries) with templates.
18782prelink_cmds=$lt_prelink_cmds_FC
18783
18784# Specify filename containing input files.
18785file_list_spec=$lt_file_list_spec_FC
18786
18787# How to hardcode a shared library path into an executable.
18788hardcode_action=$hardcode_action_FC
18789
6b4a97ed
PG
18790# The directories searched by this compiler when creating a shared library.
18791compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
18792
1cf3d07d
SE
18793# Dependencies to place before and after the objects being linked to
18794# create a shared library.
18795predep_objects=$lt_predep_objects_FC
18796postdep_objects=$lt_postdep_objects_FC
18797predeps=$lt_predeps_FC
18798postdeps=$lt_postdeps_FC
18799
18800# The library search path used internally by the compiler when linking
18801# a shared library.
18802compiler_lib_search_path=$lt_compiler_lib_search_path_FC
18803
18804# ### END LIBTOOL TAG CONFIG: FC
18805_LT_EOF
18806
18cbfd85 18807 ;;
5213506e 18808 "gstdint.h":C)
18cbfd85
PB
18809if test "$GCC" = yes; then
18810 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
18811else
18812 echo "/* generated for $CC */" > tmp-stdint.h
18813fi
18814
18815sed 's/^ *//' >> tmp-stdint.h <<EOF
18816
18817 #ifndef GCC_GENERATED_STDINT_H
18818 #define GCC_GENERATED_STDINT_H 1
18819
18820 #include <sys/types.h>
18821EOF
18822
18823if test "$acx_cv_header_stdint" != stdint.h; then
18824 echo "#include <stddef.h>" >> tmp-stdint.h
18825fi
18826if test "$acx_cv_header_stdint" != stddef.h; then
18827 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
18828fi
18829
18830sed 's/^ *//' >> tmp-stdint.h <<EOF
18831 /* glibc uses these symbols as guards to prevent redefinitions. */
18832 #ifdef __int8_t_defined
18833 #define _INT8_T
18834 #define _INT16_T
18835 #define _INT32_T
18836 #endif
18837 #ifdef __uint32_t_defined
18838 #define _UINT32_T
18839 #endif
18840
18841EOF
18842
18843# ----------------- done header, emit basic int types -------------
18844if test "$acx_cv_header_stdint" = stddef.h; then
18845 sed 's/^ *//' >> tmp-stdint.h <<EOF
18846
18847 #ifndef _UINT8_T
18848 #define _UINT8_T
1cf3d07d
SE
18849 #ifndef __uint8_t_defined
18850 #define __uint8_t_defined
18cbfd85
PB
18851 typedef unsigned $acx_cv_type_int8_t uint8_t;
18852 #endif
1cf3d07d 18853 #endif
18cbfd85
PB
18854
18855 #ifndef _UINT16_T
18856 #define _UINT16_T
1cf3d07d
SE
18857 #ifndef __uint16_t_defined
18858 #define __uint16_t_defined
18cbfd85
PB
18859 typedef unsigned $acx_cv_type_int16_t uint16_t;
18860 #endif
1cf3d07d 18861 #endif
18cbfd85
PB
18862
18863 #ifndef _UINT32_T
18864 #define _UINT32_T
1cf3d07d
SE
18865 #ifndef __uint32_t_defined
18866 #define __uint32_t_defined
18cbfd85
PB
18867 typedef unsigned $acx_cv_type_int32_t uint32_t;
18868 #endif
1cf3d07d 18869 #endif
18cbfd85
PB
18870
18871 #ifndef _INT8_T
18872 #define _INT8_T
1cf3d07d
SE
18873 #ifndef __int8_t_defined
18874 #define __int8_t_defined
18cbfd85
PB
18875 typedef $acx_cv_type_int8_t int8_t;
18876 #endif
1cf3d07d 18877 #endif
18cbfd85
PB
18878
18879 #ifndef _INT16_T
18880 #define _INT16_T
1cf3d07d
SE
18881 #ifndef __int16_t_defined
18882 #define __int16_t_defined
18cbfd85
PB
18883 typedef $acx_cv_type_int16_t int16_t;
18884 #endif
1cf3d07d 18885 #endif
18cbfd85
PB
18886
18887 #ifndef _INT32_T
18888 #define _INT32_T
1cf3d07d
SE
18889 #ifndef __int32_t_defined
18890 #define __int32_t_defined
18cbfd85
PB
18891 typedef $acx_cv_type_int32_t int32_t;
18892 #endif
1cf3d07d 18893 #endif
18cbfd85
PB
18894EOF
18895elif test "$ac_cv_type_u_int32_t" = yes; then
18896 sed 's/^ *//' >> tmp-stdint.h <<EOF
18897
18898 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
18899 #ifndef _INT8_T
18900 #define _INT8_T
18901 #endif
18902 #ifndef _INT16_T
18903 #define _INT16_T
18904 #endif
18905 #ifndef _INT32_T
18906 #define _INT32_T
18907 #endif
18908
18909 #ifndef _UINT8_T
18910 #define _UINT8_T
1cf3d07d
SE
18911 #ifndef __uint8_t_defined
18912 #define __uint8_t_defined
18cbfd85
PB
18913 typedef u_int8_t uint8_t;
18914 #endif
1cf3d07d 18915 #endif
18cbfd85
PB
18916
18917 #ifndef _UINT16_T
18918 #define _UINT16_T
1cf3d07d
SE
18919 #ifndef __uint16_t_defined
18920 #define __uint16_t_defined
18cbfd85
PB
18921 typedef u_int16_t uint16_t;
18922 #endif
1cf3d07d 18923 #endif
18cbfd85
PB
18924
18925 #ifndef _UINT32_T
18926 #define _UINT32_T
1cf3d07d
SE
18927 #ifndef __uint32_t_defined
18928 #define __uint32_t_defined
18cbfd85
PB
18929 typedef u_int32_t uint32_t;
18930 #endif
1cf3d07d 18931 #endif
18cbfd85
PB
18932EOF
18933else
18934 sed 's/^ *//' >> tmp-stdint.h <<EOF
18935
18936 /* Some systems have guard macros to prevent redefinitions, define them. */
18937 #ifndef _INT8_T
18938 #define _INT8_T
18939 #endif
18940 #ifndef _INT16_T
18941 #define _INT16_T
18942 #endif
18943 #ifndef _INT32_T
18944 #define _INT32_T
18945 #endif
18946 #ifndef _UINT8_T
18947 #define _UINT8_T
18948 #endif
18949 #ifndef _UINT16_T
18950 #define _UINT16_T
18951 #endif
18952 #ifndef _UINT32_T
18953 #define _UINT32_T
18954 #endif
18955EOF
18956fi
18957
18958# ------------- done basic int types, emit int64_t types ------------
18959if test "$ac_cv_type_uint64_t" = yes; then
18960 sed 's/^ *//' >> tmp-stdint.h <<EOF
18961
18962 /* system headers have good uint64_t and int64_t */
18963 #ifndef _INT64_T
18964 #define _INT64_T
18965 #endif
18966 #ifndef _UINT64_T
18967 #define _UINT64_T
18968 #endif
18969EOF
18970elif test "$ac_cv_type_u_int64_t" = yes; then
18971 sed 's/^ *//' >> tmp-stdint.h <<EOF
18972
18973 /* system headers have an u_int64_t (and int64_t) */
18974 #ifndef _INT64_T
18975 #define _INT64_T
18976 #endif
18977 #ifndef _UINT64_T
18978 #define _UINT64_T
1cf3d07d
SE
18979 #ifndef __uint64_t_defined
18980 #define __uint64_t_defined
18cbfd85
PB
18981 typedef u_int64_t uint64_t;
18982 #endif
1cf3d07d 18983 #endif
18cbfd85
PB
18984EOF
18985elif test -n "$acx_cv_type_int64_t"; then
18986 sed 's/^ *//' >> tmp-stdint.h <<EOF
18987
18988 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
18989 #ifndef _INT64_T
18990 #define _INT64_T
18991 typedef $acx_cv_type_int64_t int64_t;
18992 #endif
18993 #ifndef _UINT64_T
18994 #define _UINT64_T
1cf3d07d
SE
18995 #ifndef __uint64_t_defined
18996 #define __uint64_t_defined
18cbfd85
PB
18997 typedef unsigned $acx_cv_type_int64_t uint64_t;
18998 #endif
1cf3d07d 18999 #endif
18cbfd85
PB
19000EOF
19001else
19002 sed 's/^ *//' >> tmp-stdint.h <<EOF
19003
19004 /* some common heuristics for int64_t, using compiler-specific tests */
19005 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
19006 #ifndef _INT64_T
19007 #define _INT64_T
1cf3d07d 19008 #ifndef __int64_t_defined
18cbfd85
PB
19009 typedef long long int64_t;
19010 #endif
1cf3d07d 19011 #endif
18cbfd85
PB
19012 #ifndef _UINT64_T
19013 #define _UINT64_T
19014 typedef unsigned long long uint64_t;
19015 #endif
19016
19017 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
19018 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
19019 does not implement __extension__. But that compiler doesn't define
19020 __GNUC_MINOR__. */
19021 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
19022 # define __extension__
19023 # endif
19024
19025 # ifndef _INT64_T
19026 # define _INT64_T
19027 __extension__ typedef long long int64_t;
19028 # endif
19029 # ifndef _UINT64_T
19030 # define _UINT64_T
19031 __extension__ typedef unsigned long long uint64_t;
19032 # endif
19033
19034 #elif !defined __STRICT_ANSI__
19035 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
19036
19037 # ifndef _INT64_T
19038 # define _INT64_T
19039 typedef __int64 int64_t;
19040 # endif
19041 # ifndef _UINT64_T
19042 # define _UINT64_T
19043 typedef unsigned __int64 uint64_t;
19044 # endif
19045 # endif /* compiler */
19046
19047 #endif /* ANSI version */
19048EOF
19049fi
19050
19051# ------------- done int64_t types, emit intptr types ------------
19052if test "$ac_cv_type_uintptr_t" != yes; then
19053 sed 's/^ *//' >> tmp-stdint.h <<EOF
19054
19055 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
1cf3d07d 19056 #ifndef __uintptr_t_defined
18cbfd85 19057 typedef u$acx_cv_type_intptr_t uintptr_t;
1cf3d07d
SE
19058 #endif
19059 #ifndef __intptr_t_defined
18cbfd85 19060 typedef $acx_cv_type_intptr_t intptr_t;
1cf3d07d 19061 #endif
18cbfd85
PB
19062EOF
19063fi
19064
19065# ------------- done intptr types, emit int_least types ------------
19066if test "$ac_cv_type_int_least32_t" != yes; then
19067 sed 's/^ *//' >> tmp-stdint.h <<EOF
19068
19069 /* Define int_least types */
19070 typedef int8_t int_least8_t;
19071 typedef int16_t int_least16_t;
19072 typedef int32_t int_least32_t;
19073 #ifdef _INT64_T
19074 typedef int64_t int_least64_t;
19075 #endif
19076
19077 typedef uint8_t uint_least8_t;
19078 typedef uint16_t uint_least16_t;
19079 typedef uint32_t uint_least32_t;
19080 #ifdef _UINT64_T
19081 typedef uint64_t uint_least64_t;
19082 #endif
19083EOF
19084fi
19085
19086# ------------- done intptr types, emit int_fast types ------------
19087if test "$ac_cv_type_int_fast32_t" != yes; then
19088 sed 's/^ *//' >> tmp-stdint.h <<EOF
19089
19090 /* Define int_fast types. short is often slow */
19091 typedef int8_t int_fast8_t;
19092 typedef int int_fast16_t;
19093 typedef int32_t int_fast32_t;
19094 #ifdef _INT64_T
19095 typedef int64_t int_fast64_t;
19096 #endif
19097
19098 typedef uint8_t uint_fast8_t;
19099 typedef unsigned int uint_fast16_t;
19100 typedef uint32_t uint_fast32_t;
19101 #ifdef _UINT64_T
19102 typedef uint64_t uint_fast64_t;
19103 #endif
19104EOF
19105fi
19106
19107if test "$ac_cv_type_uintmax_t" != yes; then
19108 sed 's/^ *//' >> tmp-stdint.h <<EOF
19109
19110 /* Define intmax based on what we found */
19111 #ifdef _INT64_T
19112 typedef int64_t intmax_t;
19113 #else
19114 typedef long intmax_t;
19115 #endif
19116 #ifdef _UINT64_T
19117 typedef uint64_t uintmax_t;
19118 #else
19119 typedef unsigned long uintmax_t;
19120 #endif
19121EOF
19122fi
19123
19124sed 's/^ *//' >> tmp-stdint.h <<EOF
19125
19126 #endif /* GCC_GENERATED_STDINT_H */
19127EOF
19128
19129if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
19130 rm -f tmp-stdint.h
19131else
19132 mv -f tmp-stdint.h gstdint.h
19133fi
19134
953ff289 19135 ;;
5213506e 19136
953ff289 19137 esac
5213506e 19138done # for ac_tag
953ff289 19139
953ff289 19140
5213506e 19141as_fn_exit 0
953ff289 19142_ACEOF
953ff289
DN
19143ac_clean_files=$ac_clean_files_save
19144
5213506e
RW
19145test $ac_write_fail = 0 ||
19146 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19147
953ff289
DN
19148
19149# configure is writing to config.log, and then calls config.status.
19150# config.status does its own redirection, appending to config.log.
19151# Unfortunately, on DOS this fails, as config.log is still kept open
19152# by configure, so config.status won't be able to write to it; its
19153# output is simply discarded. So we exec the FD to /dev/null,
19154# effectively closing config.log, so it can be properly (re)opened and
19155# appended to by config.status. When coming back to configure, we
19156# need to make the FD available again.
19157if test "$no_create" != yes; then
19158 ac_cs_success=:
19159 ac_config_status_args=
19160 test "$silent" = yes &&
19161 ac_config_status_args="$ac_config_status_args --quiet"
19162 exec 5>/dev/null
19163 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19164 exec 5>>config.log
19165 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19166 # would make configure fail if this is the last instruction.
5213506e
RW
19167 $ac_cs_success || as_fn_exit $?
19168fi
19169if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19171$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
953ff289
DN
19172fi
19173
This page took 2.311304 seconds and 5 git commands to generate.