]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgomp/configure
Update GCC to autoconf 2.69, automake 1.15.1 (PR bootstrap/82856).
[thirdparty/gcc.git] / libgomp / configure
CommitLineData
953ff289
DN
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
22e05272
JM
3# Generated by GNU Autoconf 2.69 for GNU Offloading and Multi Processing Runtime Library 1.0.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
5213506e 7#
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.
22e05272 90as_myself=
5213506e
RW
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
953ff289
DN
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
5213506e
RW
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
22e05272
JM
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
5213506e
RW
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
22e05272
JM
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
5213506e
RW
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
43e02a8a
RW
199
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
5213506e
RW
207test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210else
211 as_have_required=no
212fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
953ff289 219do
5213506e
RW
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233fi
234fi
235 done;;
236 esac
237 as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
22e05272
JM
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
5213506e
RW
266fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
953ff289 274 else
5213506e
RW
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
953ff289 279 fi
5213506e
RW
280 exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298 { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307 return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315 set +e
316 as_fn_set_status $1
317 exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5213506e
RW
364
365
366} # as_fn_mkdir_p
22e05272
JM
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373 test -f "$1" && test -x "$1"
374} # as_fn_executable_p
5213506e
RW
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408fi # as_fn_arith
409
410
22e05272
JM
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
5213506e
RW
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 415# script with STATUS, using 1 if that was 0.
5213506e
RW
416as_fn_error ()
417{
22e05272
JM
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5213506e 422 fi
22e05272 423 $as_echo "$as_me: error: $2" >&2
5213506e
RW
424 as_fn_exit $as_status
425} # as_fn_error
953ff289 426
5213506e
RW
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
953ff289
DN
429 as_expr=expr
430else
431 as_expr=false
432fi
433
5213506e 434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
953ff289
DN
435 as_basename=basename
436else
437 as_basename=false
438fi
439
5213506e
RW
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442else
443 as_dirname=false
444fi
953ff289 445
5213506e 446as_me=`$as_basename -- "$0" ||
953ff289
DN
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
5213506e
RW
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
953ff289 464
953ff289
DN
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
953ff289 472
5213506e
RW
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
953ff289 482 sed '
5213506e
RW
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
953ff289 487 N
5213506e
RW
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
953ff289 490 t loop
5213506e 491 s/-\n.*//
953ff289 492 ' >$as_me.lineno &&
5213506e
RW
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
953ff289 495
22e05272
JM
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
953ff289
DN
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
5213506e
RW
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
953ff289
DN
504 # Exit status is that of the last command.
505 exit
506}
507
5213506e
RW
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517*)
518 ECHO_N='-n';;
953ff289
DN
519esac
520
5213506e
RW
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
953ff289 524else
5213506e
RW
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
953ff289 527fi
5213506e
RW
528if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
953ff289 530 as_ln_s='ln -s'
5213506e
RW
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 534 # In both cases, we have to default to `cp -pR'.
5213506e 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 536 as_ln_s='cp -pR'
5213506e
RW
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
22e05272 540 as_ln_s='cp -pR'
953ff289 541 fi
953ff289 542else
22e05272 543 as_ln_s='cp -pR'
953ff289 544fi
5213506e
RW
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
953ff289
DN
547
548if mkdir -p . 2>/dev/null; then
5213506e 549 as_mkdir_p='mkdir -p "$as_dir"'
953ff289
DN
550else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553fi
554
22e05272
JM
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
953ff289
DN
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
1cf3d07d
SE
564SHELL=${CONFIG_SHELL-/bin/sh}
565
1cf3d07d 566
22e05272
JM
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
5213506e 569
953ff289 570# Name of the host.
22e05272 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
953ff289
DN
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
953ff289
DN
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
5213506e 579ac_clean_files=
953ff289 580ac_config_libobj_dir=.
5213506e 581LIBOBJS=
953ff289
DN
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
953ff289
DN
586
587# Identity of this package.
f1f3453e 588PACKAGE_NAME='GNU Offloading and Multi Processing Runtime Library'
953ff289
DN
589PACKAGE_TARNAME='libgomp'
590PACKAGE_VERSION='1.0'
f1f3453e 591PACKAGE_STRING='GNU Offloading and Multi Processing Runtime Library 1.0'
953ff289 592PACKAGE_BUGREPORT=''
5213506e 593PACKAGE_URL='http://www.gnu.org/software/libgomp/'
953ff289
DN
594
595# Factoring default headers for most tests.
596ac_includes_default="\
597#include <stdio.h>
5213506e 598#ifdef HAVE_SYS_TYPES_H
953ff289
DN
599# include <sys/types.h>
600#endif
5213506e 601#ifdef HAVE_SYS_STAT_H
953ff289
DN
602# include <sys/stat.h>
603#endif
5213506e 604#ifdef STDC_HEADERS
953ff289
DN
605# include <stdlib.h>
606# include <stddef.h>
607#else
5213506e 608# ifdef HAVE_STDLIB_H
953ff289
DN
609# include <stdlib.h>
610# endif
611#endif
5213506e
RW
612#ifdef HAVE_STRING_H
613# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
953ff289
DN
614# include <memory.h>
615# endif
616# include <string.h>
617#endif
5213506e 618#ifdef HAVE_STRINGS_H
953ff289
DN
619# include <strings.h>
620#endif
5213506e 621#ifdef HAVE_INTTYPES_H
953ff289 622# include <inttypes.h>
953ff289 623#endif
5213506e
RW
624#ifdef HAVE_STDINT_H
625# include <stdint.h>
626#endif
627#ifdef HAVE_UNISTD_H
953ff289
DN
628# include <unistd.h>
629#endif"
630
b8d89b03
ML
631ac_header_list=
632ac_func_list=
5213506e
RW
633ac_subst_vars='am__EXEEXT_FALSE
634am__EXEEXT_TRUE
635LTLIBOBJS
636LIBOBJS
3c36aa6b 637get_gcc_base_ver
5213506e
RW
638OMP_NEST_LOCK_25_KIND
639OMP_LOCK_25_KIND
640OMP_NEST_LOCK_25_ALIGN
641OMP_NEST_LOCK_25_SIZE
642OMP_LOCK_25_ALIGN
643OMP_LOCK_25_SIZE
644OMP_NEST_LOCK_KIND
645OMP_LOCK_KIND
646OMP_NEST_LOCK_ALIGN
647OMP_NEST_LOCK_SIZE
648OMP_LOCK_ALIGN
649OMP_LOCK_SIZE
650USE_FORTRAN_FALSE
651USE_FORTRAN_TRUE
652link_gomp
653XLDFLAGS
654XCFLAGS
655config_path
6d28b933
RO
656LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
657LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
658LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
659LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
5213506e
RW
660LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
661LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
662OPT_LDFLAGS
663SECTION_LDFLAGS
b2b40051
MJ
664PLUGIN_HSA_FALSE
665PLUGIN_HSA_TRUE
41dbbb37
TS
666PLUGIN_NVPTX_FALSE
667PLUGIN_NVPTX_TRUE
668offload_additional_lib_paths
669offload_additional_options
b2b40051
MJ
670PLUGIN_HSA_LIBS
671PLUGIN_HSA_LDFLAGS
672PLUGIN_HSA_CPPFLAGS
673PLUGIN_HSA
674HSA_RUNTIME_LIB
675HSA_RUNTIME_INCLUDE
41dbbb37
TS
676PLUGIN_NVPTX_LIBS
677PLUGIN_NVPTX_LDFLAGS
678PLUGIN_NVPTX_CPPFLAGS
679PLUGIN_NVPTX
680CUDA_DRIVER_LIB
681CUDA_DRIVER_INCLUDE
682offload_targets
5213506e
RW
683libtool_VERSION
684ac_ct_FC
685FCFLAGS
686FC
687MAINT
688MAINTAINER_MODE_FALSE
689MAINTAINER_MODE_TRUE
690enable_static
691enable_shared
7de6ba7a 692lt_host_flags
5213506e
RW
693CPP
694OTOOL64
695OTOOL
696LIPO
697NMEDIT
698DSYMUTIL
5213506e
RW
699OBJDUMP
700LN_S
701NM
702ac_ct_DUMPBIN
703DUMPBIN
704LD
705FGREP
706EGREP
707GREP
708SED
709LIBTOOL
710BUILD_INFO_FALSE
711BUILD_INFO_TRUE
712PERL
713RANLIB
714AR
715am__fastdepCC_FALSE
716am__fastdepCC_TRUE
717CCDEPMODE
f96b7f1f 718am__nodep
5213506e
RW
719AMDEPBACKSLASH
720AMDEP_FALSE
721AMDEP_TRUE
722am__quote
723am__include
724DEPDIR
725OBJEXT
726EXEEXT
727ac_ct_CC
728CPPFLAGS
729LDFLAGS
730CFLAGS
731CC
732toolexeclibdir
733toolexecdir
734multi_basedir
22e05272
JM
735AM_BACKSLASH
736AM_DEFAULT_VERBOSITY
737AM_DEFAULT_V
738AM_V
5213506e
RW
739am__untar
740am__tar
741AMTAR
742am__leading_dot
743SET_MAKE
744AWK
745mkdir_p
746MKDIR_P
747INSTALL_STRIP_PROGRAM
748STRIP
749install_sh
750MAKEINFO
751AUTOHEADER
752AUTOMAKE
753AUTOCONF
754ACLOCAL
755VERSION
756PACKAGE
757CYGPATH_W
758am__isrc
759INSTALL_DATA
760INSTALL_SCRIPT
761INSTALL_PROGRAM
762target_os
763target_vendor
764target_cpu
765target
766host_os
767host_vendor
768host_cpu
769host
770build_os
771build_vendor
772build_cpu
773build
774GENINSRC_FALSE
775GENINSRC_TRUE
776target_alias
777host_alias
778build_alias
779LIBS
780ECHO_T
781ECHO_N
782ECHO_C
783DEFS
784mandir
785localedir
786libdir
787psdir
788pdfdir
789dvidir
790htmldir
791infodir
792docdir
793oldincludedir
794includedir
795localstatedir
796sharedstatedir
797sysconfdir
798datadir
799datarootdir
800libexecdir
801sbindir
802bindir
803program_transform_name
804prefix
805exec_prefix
806PACKAGE_URL
807PACKAGE_BUGREPORT
808PACKAGE_STRING
809PACKAGE_VERSION
810PACKAGE_TARNAME
811PACKAGE_NAME
812PATH_SEPARATOR
813SHELL'
953ff289 814ac_subst_files=''
5213506e
RW
815ac_user_opts='
816enable_option_checking
817enable_version_specific_runtime_libs
818enable_generated_files_in_srcdir
22e05272 819enable_silent_rules
5213506e
RW
820enable_multilib
821enable_dependency_tracking
822enable_shared
823enable_static
824with_pic
825enable_fast_install
826with_gnu_ld
827enable_libtool_lock
828enable_maintainer_mode
41dbbb37
TS
829with_cuda_driver
830with_cuda_driver_include
831with_cuda_driver_lib
b2b40051
MJ
832with_hsa_runtime
833with_hsa_runtime_include
834with_hsa_runtime_lib
5213506e
RW
835enable_linux_futex
836enable_tls
837enable_symvers
efe33ced 838enable_cet
3c36aa6b 839with_gcc_major_version_only
5213506e
RW
840'
841 ac_precious_vars='build_alias
842host_alias
843target_alias
844CPP
845CPPFLAGS
846FC
847FCFLAGS
848LDFLAGS
849LIBS'
850
953ff289
DN
851
852# Initialize some variables set by options.
853ac_init_help=
854ac_init_version=false
5213506e
RW
855ac_unrecognized_opts=
856ac_unrecognized_sep=
953ff289
DN
857# The variables have the same names as the options, with
858# dashes changed to underlines.
859cache_file=/dev/null
860exec_prefix=NONE
861no_create=
862no_recursion=
863prefix=NONE
864program_prefix=NONE
865program_suffix=NONE
866program_transform_name=s,x,x,
867silent=
868site=
869srcdir=
870verbose=
871x_includes=NONE
872x_libraries=NONE
873
874# Installation directory options.
875# These are left unexpanded so users can "make install exec_prefix=/foo"
876# and all the variables that are supposed to be based on exec_prefix
877# by default will actually change.
878# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 879# (The list follows the same order as the GNU Coding Standards.)
953ff289
DN
880bindir='${exec_prefix}/bin'
881sbindir='${exec_prefix}/sbin'
882libexecdir='${exec_prefix}/libexec'
5213506e
RW
883datarootdir='${prefix}/share'
884datadir='${datarootdir}'
953ff289
DN
885sysconfdir='${prefix}/etc'
886sharedstatedir='${prefix}/com'
887localstatedir='${prefix}/var'
953ff289
DN
888includedir='${prefix}/include'
889oldincludedir='/usr/include'
5213506e
RW
890docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
891infodir='${datarootdir}/info'
892htmldir='${docdir}'
893dvidir='${docdir}'
894pdfdir='${docdir}'
895psdir='${docdir}'
896libdir='${exec_prefix}/lib'
897localedir='${datarootdir}/locale'
898mandir='${datarootdir}/man'
953ff289
DN
899
900ac_prev=
5213506e 901ac_dashdash=
953ff289
DN
902for ac_option
903do
904 # If the previous option needs an argument, assign it.
905 if test -n "$ac_prev"; then
5213506e 906 eval $ac_prev=\$ac_option
953ff289
DN
907 ac_prev=
908 continue
909 fi
910
5213506e 911 case $ac_option in
22e05272
JM
912 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
913 *=) ac_optarg= ;;
914 *) ac_optarg=yes ;;
5213506e 915 esac
953ff289
DN
916
917 # Accept the important Cygnus configure options, so we can diagnose typos.
918
5213506e
RW
919 case $ac_dashdash$ac_option in
920 --)
921 ac_dashdash=yes ;;
953ff289
DN
922
923 -bindir | --bindir | --bindi | --bind | --bin | --bi)
924 ac_prev=bindir ;;
925 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
926 bindir=$ac_optarg ;;
927
928 -build | --build | --buil | --bui | --bu)
929 ac_prev=build_alias ;;
930 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
931 build_alias=$ac_optarg ;;
932
933 -cache-file | --cache-file | --cache-fil | --cache-fi \
934 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
935 ac_prev=cache_file ;;
936 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
937 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
938 cache_file=$ac_optarg ;;
939
940 --config-cache | -C)
941 cache_file=config.cache ;;
942
5213506e 943 -datadir | --datadir | --datadi | --datad)
953ff289 944 ac_prev=datadir ;;
5213506e 945 -datadir=* | --datadir=* | --datadi=* | --datad=*)
953ff289
DN
946 datadir=$ac_optarg ;;
947
5213506e
RW
948 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
949 | --dataroo | --dataro | --datar)
950 ac_prev=datarootdir ;;
951 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
952 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
953 datarootdir=$ac_optarg ;;
954
953ff289 955 -disable-* | --disable-*)
5213506e 956 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
953ff289 957 # Reject names that are not valid shell variable names.
5213506e 958 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 959 as_fn_error $? "invalid feature name: $ac_useropt"
5213506e
RW
960 ac_useropt_orig=$ac_useropt
961 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
962 case $ac_user_opts in
963 *"
964"enable_$ac_useropt"
965"*) ;;
966 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
967 ac_unrecognized_sep=', ';;
968 esac
969 eval enable_$ac_useropt=no ;;
970
971 -docdir | --docdir | --docdi | --doc | --do)
972 ac_prev=docdir ;;
973 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
974 docdir=$ac_optarg ;;
975
976 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
977 ac_prev=dvidir ;;
978 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
979 dvidir=$ac_optarg ;;
953ff289
DN
980
981 -enable-* | --enable-*)
5213506e 982 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
953ff289 983 # Reject names that are not valid shell variable names.
5213506e 984 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 985 as_fn_error $? "invalid feature name: $ac_useropt"
5213506e
RW
986 ac_useropt_orig=$ac_useropt
987 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
988 case $ac_user_opts in
989 *"
990"enable_$ac_useropt"
991"*) ;;
992 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
993 ac_unrecognized_sep=', ';;
953ff289 994 esac
5213506e 995 eval enable_$ac_useropt=\$ac_optarg ;;
953ff289
DN
996
997 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
998 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
999 | --exec | --exe | --ex)
1000 ac_prev=exec_prefix ;;
1001 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1002 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1003 | --exec=* | --exe=* | --ex=*)
1004 exec_prefix=$ac_optarg ;;
1005
1006 -gas | --gas | --ga | --g)
1007 # Obsolete; use --with-gas.
1008 with_gas=yes ;;
1009
1010 -help | --help | --hel | --he | -h)
1011 ac_init_help=long ;;
1012 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1013 ac_init_help=recursive ;;
1014 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1015 ac_init_help=short ;;
1016
1017 -host | --host | --hos | --ho)
1018 ac_prev=host_alias ;;
1019 -host=* | --host=* | --hos=* | --ho=*)
1020 host_alias=$ac_optarg ;;
1021
5213506e
RW
1022 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1023 ac_prev=htmldir ;;
1024 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1025 | --ht=*)
1026 htmldir=$ac_optarg ;;
1027
953ff289
DN
1028 -includedir | --includedir | --includedi | --included | --include \
1029 | --includ | --inclu | --incl | --inc)
1030 ac_prev=includedir ;;
1031 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1032 | --includ=* | --inclu=* | --incl=* | --inc=*)
1033 includedir=$ac_optarg ;;
1034
1035 -infodir | --infodir | --infodi | --infod | --info | --inf)
1036 ac_prev=infodir ;;
1037 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1038 infodir=$ac_optarg ;;
1039
1040 -libdir | --libdir | --libdi | --libd)
1041 ac_prev=libdir ;;
1042 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1043 libdir=$ac_optarg ;;
1044
1045 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1046 | --libexe | --libex | --libe)
1047 ac_prev=libexecdir ;;
1048 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1049 | --libexe=* | --libex=* | --libe=*)
1050 libexecdir=$ac_optarg ;;
1051
5213506e
RW
1052 -localedir | --localedir | --localedi | --localed | --locale)
1053 ac_prev=localedir ;;
1054 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1055 localedir=$ac_optarg ;;
1056
953ff289 1057 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 1058 | --localstate | --localstat | --localsta | --localst | --locals)
953ff289
DN
1059 ac_prev=localstatedir ;;
1060 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 1061 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
953ff289
DN
1062 localstatedir=$ac_optarg ;;
1063
1064 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1065 ac_prev=mandir ;;
1066 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1067 mandir=$ac_optarg ;;
1068
1069 -nfp | --nfp | --nf)
1070 # Obsolete; use --without-fp.
1071 with_fp=no ;;
1072
1073 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1074 | --no-cr | --no-c | -n)
1075 no_create=yes ;;
1076
1077 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1078 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1079 no_recursion=yes ;;
1080
1081 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1082 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1083 | --oldin | --oldi | --old | --ol | --o)
1084 ac_prev=oldincludedir ;;
1085 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1086 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1087 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1088 oldincludedir=$ac_optarg ;;
1089
1090 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1091 ac_prev=prefix ;;
1092 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1093 prefix=$ac_optarg ;;
1094
1095 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1096 | --program-pre | --program-pr | --program-p)
1097 ac_prev=program_prefix ;;
1098 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1099 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1100 program_prefix=$ac_optarg ;;
1101
1102 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1103 | --program-suf | --program-su | --program-s)
1104 ac_prev=program_suffix ;;
1105 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1106 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1107 program_suffix=$ac_optarg ;;
1108
1109 -program-transform-name | --program-transform-name \
1110 | --program-transform-nam | --program-transform-na \
1111 | --program-transform-n | --program-transform- \
1112 | --program-transform | --program-transfor \
1113 | --program-transfo | --program-transf \
1114 | --program-trans | --program-tran \
1115 | --progr-tra | --program-tr | --program-t)
1116 ac_prev=program_transform_name ;;
1117 -program-transform-name=* | --program-transform-name=* \
1118 | --program-transform-nam=* | --program-transform-na=* \
1119 | --program-transform-n=* | --program-transform-=* \
1120 | --program-transform=* | --program-transfor=* \
1121 | --program-transfo=* | --program-transf=* \
1122 | --program-trans=* | --program-tran=* \
1123 | --progr-tra=* | --program-tr=* | --program-t=*)
1124 program_transform_name=$ac_optarg ;;
1125
5213506e
RW
1126 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1127 ac_prev=pdfdir ;;
1128 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1129 pdfdir=$ac_optarg ;;
1130
1131 -psdir | --psdir | --psdi | --psd | --ps)
1132 ac_prev=psdir ;;
1133 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1134 psdir=$ac_optarg ;;
1135
953ff289
DN
1136 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1137 | -silent | --silent | --silen | --sile | --sil)
1138 silent=yes ;;
1139
1140 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1141 ac_prev=sbindir ;;
1142 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1143 | --sbi=* | --sb=*)
1144 sbindir=$ac_optarg ;;
1145
1146 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1147 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1148 | --sharedst | --shareds | --shared | --share | --shar \
1149 | --sha | --sh)
1150 ac_prev=sharedstatedir ;;
1151 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1152 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1153 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1154 | --sha=* | --sh=*)
1155 sharedstatedir=$ac_optarg ;;
1156
1157 -site | --site | --sit)
1158 ac_prev=site ;;
1159 -site=* | --site=* | --sit=*)
1160 site=$ac_optarg ;;
1161
1162 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1163 ac_prev=srcdir ;;
1164 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1165 srcdir=$ac_optarg ;;
1166
1167 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1168 | --syscon | --sysco | --sysc | --sys | --sy)
1169 ac_prev=sysconfdir ;;
1170 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1171 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1172 sysconfdir=$ac_optarg ;;
1173
1174 -target | --target | --targe | --targ | --tar | --ta | --t)
1175 ac_prev=target_alias ;;
1176 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1177 target_alias=$ac_optarg ;;
1178
1179 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1180 verbose=yes ;;
1181
1182 -version | --version | --versio | --versi | --vers | -V)
1183 ac_init_version=: ;;
1184
1185 -with-* | --with-*)
5213506e 1186 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
953ff289 1187 # Reject names that are not valid shell variable names.
5213506e 1188 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1189 as_fn_error $? "invalid package name: $ac_useropt"
5213506e
RW
1190 ac_useropt_orig=$ac_useropt
1191 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1192 case $ac_user_opts in
1193 *"
1194"with_$ac_useropt"
1195"*) ;;
1196 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1197 ac_unrecognized_sep=', ';;
953ff289 1198 esac
5213506e 1199 eval with_$ac_useropt=\$ac_optarg ;;
953ff289
DN
1200
1201 -without-* | --without-*)
5213506e 1202 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
953ff289 1203 # Reject names that are not valid shell variable names.
5213506e 1204 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1205 as_fn_error $? "invalid package name: $ac_useropt"
5213506e
RW
1206 ac_useropt_orig=$ac_useropt
1207 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1208 case $ac_user_opts in
1209 *"
1210"with_$ac_useropt"
1211"*) ;;
1212 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1213 ac_unrecognized_sep=', ';;
1214 esac
1215 eval with_$ac_useropt=no ;;
953ff289
DN
1216
1217 --x)
1218 # Obsolete; use --with-x.
1219 with_x=yes ;;
1220
1221 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1222 | --x-incl | --x-inc | --x-in | --x-i)
1223 ac_prev=x_includes ;;
1224 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1225 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1226 x_includes=$ac_optarg ;;
1227
1228 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1229 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1230 ac_prev=x_libraries ;;
1231 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1232 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1233 x_libraries=$ac_optarg ;;
1234
22e05272
JM
1235 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1236Try \`$0 --help' for more information"
953ff289
DN
1237 ;;
1238
1239 *=*)
1240 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1241 # Reject names that are not valid shell variable names.
5213506e
RW
1242 case $ac_envvar in #(
1243 '' | [0-9]* | *[!_$as_cr_alnum]* )
22e05272 1244 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
5213506e
RW
1245 esac
1246 eval $ac_envvar=\$ac_optarg
953ff289
DN
1247 export $ac_envvar ;;
1248
1249 *)
1250 # FIXME: should be removed in autoconf 3.0.
5213506e 1251 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
953ff289 1252 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1253 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
22e05272 1254 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
953ff289
DN
1255 ;;
1256
1257 esac
1258done
1259
1260if test -n "$ac_prev"; then
1261 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
22e05272 1262 as_fn_error $? "missing argument to $ac_option"
953ff289
DN
1263fi
1264
5213506e
RW
1265if test -n "$ac_unrecognized_opts"; then
1266 case $enable_option_checking in
1267 no) ;;
22e05272 1268 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
5213506e 1269 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
953ff289 1270 esac
5213506e 1271fi
953ff289 1272
5213506e
RW
1273# Check all directory arguments for consistency.
1274for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1275 datadir sysconfdir sharedstatedir localstatedir includedir \
1276 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1277 libdir localedir mandir
953ff289 1278do
5213506e
RW
1279 eval ac_val=\$$ac_var
1280 # Remove trailing slashes.
953ff289 1281 case $ac_val in
5213506e
RW
1282 */ )
1283 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1284 eval $ac_var=\$ac_val;;
953ff289 1285 esac
5213506e
RW
1286 # Be sure to have absolute directory names.
1287 case $ac_val in
1288 [\\/$]* | ?:[\\/]* ) continue;;
1289 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1290 esac
22e05272 1291 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
953ff289
DN
1292done
1293
1294# There might be people who depend on the old broken behavior: `$host'
1295# used to hold the argument of --host etc.
1296# FIXME: To remove some day.
1297build=$build_alias
1298host=$host_alias
1299target=$target_alias
1300
1301# FIXME: To remove some day.
1302if test "x$host_alias" != x; then
1303 if test "x$build_alias" = x; then
1304 cross_compiling=maybe
953ff289
DN
1305 elif test "x$build_alias" != "x$host_alias"; then
1306 cross_compiling=yes
1307 fi
1308fi
1309
1310ac_tool_prefix=
1311test -n "$host_alias" && ac_tool_prefix=$host_alias-
1312
1313test "$silent" = yes && exec 6>/dev/null
1314
1315
5213506e
RW
1316ac_pwd=`pwd` && test -n "$ac_pwd" &&
1317ac_ls_di=`ls -di .` &&
1318ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
22e05272 1319 as_fn_error $? "working directory cannot be determined"
5213506e 1320test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
22e05272 1321 as_fn_error $? "pwd does not report name of working directory"
5213506e
RW
1322
1323
953ff289
DN
1324# Find the source files, if location was not specified.
1325if test -z "$srcdir"; then
1326 ac_srcdir_defaulted=yes
5213506e
RW
1327 # Try the directory containing this script, then the parent directory.
1328 ac_confdir=`$as_dirname -- "$as_myself" ||
1329$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1330 X"$as_myself" : 'X\(//\)[^/]' \| \
1331 X"$as_myself" : 'X\(//\)$' \| \
1332 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1333$as_echo X"$as_myself" |
1334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1335 s//\1/
1336 q
1337 }
1338 /^X\(\/\/\)[^/].*/{
1339 s//\1/
1340 q
1341 }
1342 /^X\(\/\/\)$/{
1343 s//\1/
1344 q
1345 }
1346 /^X\(\/\).*/{
1347 s//\1/
1348 q
1349 }
1350 s/.*/./; q'`
953ff289 1351 srcdir=$ac_confdir
5213506e 1352 if test ! -r "$srcdir/$ac_unique_file"; then
953ff289
DN
1353 srcdir=..
1354 fi
1355else
1356 ac_srcdir_defaulted=no
1357fi
5213506e
RW
1358if test ! -r "$srcdir/$ac_unique_file"; then
1359 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
22e05272 1360 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
5213506e
RW
1361fi
1362ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1363ac_abs_confdir=`(
22e05272 1364 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
5213506e
RW
1365 pwd)`
1366# When building in place, set srcdir=.
1367if test "$ac_abs_confdir" = "$ac_pwd"; then
1368 srcdir=.
1369fi
1370# Remove unnecessary trailing slashes from srcdir.
1371# Double slashes in file names in object file debugging info
1372# mess up M-x gdb in Emacs.
1373case $srcdir in
1374*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1375esac
1376for ac_var in $ac_precious_vars; do
1377 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1378 eval ac_env_${ac_var}_value=\$${ac_var}
1379 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1380 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1381done
953ff289
DN
1382
1383#
1384# Report the --help message.
1385#
1386if test "$ac_init_help" = "long"; then
1387 # Omit some internal or obsolete options to make the list less imposing.
1388 # This message is too long to be a string in the A/UX 3.1 sh.
1389 cat <<_ACEOF
f1f3453e 1390\`configure' configures GNU Offloading and Multi Processing Runtime Library 1.0 to adapt to many kinds of systems.
953ff289
DN
1391
1392Usage: $0 [OPTION]... [VAR=VALUE]...
1393
1394To assign environment variables (e.g., CC, CFLAGS...), specify them as
1395VAR=VALUE. See below for descriptions of some of the useful variables.
1396
1397Defaults for the options are specified in brackets.
1398
1399Configuration:
1400 -h, --help display this help and exit
1401 --help=short display options specific to this package
1402 --help=recursive display the short help of all the included packages
1403 -V, --version display version information and exit
22e05272 1404 -q, --quiet, --silent do not print \`checking ...' messages
953ff289
DN
1405 --cache-file=FILE cache test results in FILE [disabled]
1406 -C, --config-cache alias for \`--cache-file=config.cache'
1407 -n, --no-create do not create output files
1408 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1409
953ff289
DN
1410Installation directories:
1411 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1412 [$ac_default_prefix]
953ff289 1413 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1414 [PREFIX]
953ff289
DN
1415
1416By default, \`make install' will install all the files in
1417\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1418an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1419for instance \`--prefix=\$HOME'.
1420
1421For better control, use the options below.
1422
1423Fine tuning of the installation directories:
5213506e
RW
1424 --bindir=DIR user executables [EPREFIX/bin]
1425 --sbindir=DIR system admin executables [EPREFIX/sbin]
1426 --libexecdir=DIR program executables [EPREFIX/libexec]
1427 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1428 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1429 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1430 --libdir=DIR object code libraries [EPREFIX/lib]
1431 --includedir=DIR C header files [PREFIX/include]
1432 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1433 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1434 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1435 --infodir=DIR info documentation [DATAROOTDIR/info]
1436 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1437 --mandir=DIR man documentation [DATAROOTDIR/man]
1438 --docdir=DIR documentation root [DATAROOTDIR/doc/libgomp]
1439 --htmldir=DIR html documentation [DOCDIR]
1440 --dvidir=DIR dvi documentation [DOCDIR]
1441 --pdfdir=DIR pdf documentation [DOCDIR]
1442 --psdir=DIR ps documentation [DOCDIR]
953ff289
DN
1443_ACEOF
1444
1445 cat <<\_ACEOF
1446
1447Program names:
1448 --program-prefix=PREFIX prepend PREFIX to installed program names
1449 --program-suffix=SUFFIX append SUFFIX to installed program names
1450 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1451
1452System types:
1453 --build=BUILD configure for building on BUILD [guessed]
1454 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1455 --target=TARGET configure for building compilers for TARGET [HOST]
1456_ACEOF
1457fi
1458
1459if test -n "$ac_init_help"; then
1460 case $ac_init_help in
f1f3453e 1461 short | recursive ) echo "Configuration of GNU Offloading and Multi Processing Runtime Library 1.0:";;
953ff289
DN
1462 esac
1463 cat <<\_ACEOF
1464
1465Optional Features:
5213506e 1466 --disable-option-checking ignore unrecognized --enable/--with options
953ff289
DN
1467 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1468 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1469 --enable-version-specific-runtime-libs
1470 Specify that runtime libraries should be installed
1471 in a compiler-specific directory [default=no]
627ab4b8
TT
1472 --enable-generated-files-in-srcdir
1473 put copies of generated files in source dir intended
1474 for creating source tarballs for users without
1475 texinfo bison or flex. [default=no]
22e05272
JM
1476 --enable-silent-rules less verbose build output (undo: "make V=1")
1477 --disable-silent-rules verbose build output (undo: "make V=0")
953ff289 1478 --enable-multilib build many library versions (default)
22e05272
JM
1479 --enable-dependency-tracking
1480 do not reject slow dependency extractors
1481 --disable-dependency-tracking
1482 speeds up one-time build
5213506e
RW
1483 --enable-shared[=PKGS] build shared libraries [default=yes]
1484 --enable-static[=PKGS] build static libraries [default=yes]
1cf3d07d
SE
1485 --enable-fast-install[=PKGS]
1486 optimize for fast installation [default=yes]
953ff289 1487 --disable-libtool-lock avoid locking (might break parallel builds)
22e05272
JM
1488 --enable-maintainer-mode
1489 enable make rules and dependencies not useful (and
1490 sometimes confusing) to the casual installer
5213506e 1491 --enable-linux-futex use the Linux futex system call [default=default]
2fb31455 1492 --enable-tls Use thread-local storage [default=yes]
953ff289
DN
1493 --enable-symvers=STYLE enables symbol versioning of the shared library
1494 [default=yes]
a0e1df88 1495 --enable-cet enable Intel CET in target libraries [default=no]
953ff289
DN
1496
1497Optional Packages:
1498 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1499 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1cf3d07d
SE
1500 --with-pic try to use only PIC/non-PIC objects [default=use
1501 both]
1502 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
41dbbb37
TS
1503 --with-cuda-driver=PATH specify prefix directory for installed CUDA driver
1504 package. Equivalent to
1505 --with-cuda-driver-include=PATH/include plus
1506 --with-cuda-driver-lib=PATH/lib
1507 --with-cuda-driver-include=PATH
1508 specify directory for installed CUDA driver include
1509 files
1510 --with-cuda-driver-lib=PATH
1511 specify directory for the installed CUDA driver
1512 library
b2b40051
MJ
1513 --with-hsa-runtime=PATH specify prefix directory for installed HSA run-time
1514 package. Equivalent to
1515 --with-hsa-runtime-include=PATH/include plus
1516 --with-hsa-runtime-lib=PATH/lib
1517 --with-hsa-runtime-include=PATH
1518 specify directory for installed HSA run-time include
1519 files
1520 --with-hsa-runtime-lib=PATH
1521 specify directory for the installed HSA run-time
1522 library
3c36aa6b
JJ
1523 --with-gcc-major-version-only
1524 use only GCC major number in filesystem paths
953ff289
DN
1525
1526Some influential environment variables:
1527 CC C compiler command
1528 CFLAGS C compiler flags
1529 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1530 nonstandard directory <lib dir>
5213506e 1531 LIBS libraries to pass to the linker, e.g. -l<library>
22e05272 1532 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
5213506e 1533 you have headers in a nonstandard directory <include dir>
1cf3d07d 1534 CPP C preprocessor
953ff289
DN
1535 FC Fortran compiler command
1536 FCFLAGS Fortran compiler flags
953ff289
DN
1537
1538Use these variables to override the choices made by `configure' or to help
1539it to find libraries and programs with nonstandard names/locations.
1540
5213506e 1541Report bugs to the package provider.
f1f3453e 1542GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
5213506e 1543General help using GNU software: <http://www.gnu.org/gethelp/>.
953ff289 1544_ACEOF
5213506e 1545ac_status=$?
953ff289
DN
1546fi
1547
1548if test "$ac_init_help" = "recursive"; then
1549 # If there are subdirs, report their specific --help.
953ff289 1550 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1551 test -d "$ac_dir" ||
1552 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1553 continue
953ff289
DN
1554 ac_builddir=.
1555
5213506e
RW
1556case "$ac_dir" in
1557.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1558*)
1559 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1560 # A ".." for each directory in $ac_dir_suffix.
1561 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1562 case $ac_top_builddir_sub in
1563 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1564 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1565 esac ;;
1566esac
1567ac_abs_top_builddir=$ac_pwd
1568ac_abs_builddir=$ac_pwd$ac_dir_suffix
1569# for backward compatibility:
1570ac_top_builddir=$ac_top_build_prefix
953ff289
DN
1571
1572case $srcdir in
5213506e 1573 .) # We are building in place.
953ff289 1574 ac_srcdir=.
5213506e
RW
1575 ac_top_srcdir=$ac_top_builddir_sub
1576 ac_abs_top_srcdir=$ac_pwd ;;
1577 [\\/]* | ?:[\\/]* ) # Absolute name.
953ff289 1578 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1579 ac_top_srcdir=$srcdir
1580 ac_abs_top_srcdir=$srcdir ;;
1581 *) # Relative name.
1582 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1583 ac_top_srcdir=$ac_top_build_prefix$srcdir
1584 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
953ff289 1585esac
5213506e
RW
1586ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1587
1588 cd "$ac_dir" || { ac_status=$?; continue; }
1589 # Check for guested configure.
1590 if test -f "$ac_srcdir/configure.gnu"; then
1591 echo &&
1592 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1593 elif test -f "$ac_srcdir/configure"; then
1594 echo &&
1595 $SHELL "$ac_srcdir/configure" --help=recursive
953ff289 1596 else
5213506e
RW
1597 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1598 fi || ac_status=$?
1599 cd "$ac_pwd" || { ac_status=$?; break; }
953ff289
DN
1600 done
1601fi
1602
5213506e 1603test -n "$ac_init_help" && exit $ac_status
953ff289
DN
1604if $ac_init_version; then
1605 cat <<\_ACEOF
f1f3453e 1606GNU Offloading and Multi Processing Runtime Library configure 1.0
22e05272 1607generated by GNU Autoconf 2.69
953ff289 1608
22e05272 1609Copyright (C) 2012 Free Software Foundation, Inc.
953ff289
DN
1610This configure script is free software; the Free Software Foundation
1611gives unlimited permission to copy, distribute and modify it.
1612_ACEOF
5213506e 1613 exit
953ff289 1614fi
953ff289 1615
5213506e
RW
1616## ------------------------ ##
1617## Autoconf initialization. ##
1618## ------------------------ ##
953ff289 1619
5213506e
RW
1620# ac_fn_c_try_compile LINENO
1621# --------------------------
1622# Try to compile conftest.$ac_ext, and return whether this succeeded.
1623ac_fn_c_try_compile ()
953ff289 1624{
5213506e
RW
1625 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1626 rm -f conftest.$ac_objext
1627 if { { ac_try="$ac_compile"
1628case "(($ac_try" in
1629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1630 *) ac_try_echo=$ac_try;;
1631esac
1632eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1633$as_echo "$ac_try_echo"; } >&5
1634 (eval "$ac_compile") 2>conftest.err
1635 ac_status=$?
1636 if test -s conftest.err; then
1637 grep -v '^ *+' conftest.err >conftest.er1
1638 cat conftest.er1 >&5
1639 mv -f conftest.er1 conftest.err
1640 fi
1641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1642 test $ac_status = 0; } && {
1643 test -z "$ac_c_werror_flag" ||
1644 test ! -s conftest.err
1645 } && test -s conftest.$ac_objext; then :
1646 ac_retval=0
1647else
1648 $as_echo "$as_me: failed program was:" >&5
1649sed 's/^/| /' conftest.$ac_ext >&5
953ff289 1650
5213506e
RW
1651 ac_retval=1
1652fi
22e05272
JM
1653 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1654 as_fn_set_status $ac_retval
953ff289 1655
5213506e 1656} # ac_fn_c_try_compile
953ff289 1657
5213506e
RW
1658# ac_fn_c_try_link LINENO
1659# -----------------------
1660# Try to link conftest.$ac_ext, and return whether this succeeded.
1661ac_fn_c_try_link ()
1662{
1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664 rm -f conftest.$ac_objext conftest$ac_exeext
1665 if { { ac_try="$ac_link"
1666case "(($ac_try" in
1667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1668 *) ac_try_echo=$ac_try;;
1669esac
1670eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671$as_echo "$ac_try_echo"; } >&5
1672 (eval "$ac_link") 2>conftest.err
1673 ac_status=$?
1674 if test -s conftest.err; then
1675 grep -v '^ *+' conftest.err >conftest.er1
1676 cat conftest.er1 >&5
1677 mv -f conftest.er1 conftest.err
1678 fi
1679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680 test $ac_status = 0; } && {
1681 test -z "$ac_c_werror_flag" ||
1682 test ! -s conftest.err
1683 } && test -s conftest$ac_exeext && {
1684 test "$cross_compiling" = yes ||
22e05272 1685 test -x conftest$ac_exeext
5213506e
RW
1686 }; 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 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1695 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1696 # interfere with the next link command; also delete a directory that is
1697 # left behind by Apple's compiler. We do this before executing the actions.
1698 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1699 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1700 as_fn_set_status $ac_retval
953ff289 1701
5213506e 1702} # ac_fn_c_try_link
953ff289 1703
5213506e
RW
1704# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1705# -------------------------------------------------------
1706# Tests whether HEADER exists and can be compiled using the include files in
1707# INCLUDES, setting the cache variable VAR accordingly.
1708ac_fn_c_check_header_compile ()
1709{
1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1712$as_echo_n "checking for $2... " >&6; }
22e05272 1713if eval \${$3+:} false; then :
5213506e
RW
1714 $as_echo_n "(cached) " >&6
1715else
1716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1717/* end confdefs.h. */
1718$4
1719#include <$2>
1720_ACEOF
1721if ac_fn_c_try_compile "$LINENO"; then :
1722 eval "$3=yes"
1723else
1724 eval "$3=no"
1725fi
1726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1727fi
1728eval ac_res=\$$3
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1730$as_echo "$ac_res" >&6; }
22e05272 1731 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
953ff289 1732
5213506e 1733} # ac_fn_c_check_header_compile
953ff289 1734
5213506e
RW
1735# ac_fn_c_try_cpp LINENO
1736# ----------------------
1737# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1738ac_fn_c_try_cpp ()
1739{
1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741 if { { ac_try="$ac_cpp conftest.$ac_ext"
1742case "(($ac_try" in
1743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1744 *) ac_try_echo=$ac_try;;
1745esac
1746eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1747$as_echo "$ac_try_echo"; } >&5
1748 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1749 ac_status=$?
1750 if test -s conftest.err; then
1751 grep -v '^ *+' conftest.err >conftest.er1
1752 cat conftest.er1 >&5
1753 mv -f conftest.er1 conftest.err
1754 fi
1755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22e05272 1756 test $ac_status = 0; } > conftest.i && {
5213506e
RW
1757 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1758 test ! -s conftest.err
1759 }; then :
1760 ac_retval=0
1761else
1762 $as_echo "$as_me: failed program was:" >&5
1763sed 's/^/| /' conftest.$ac_ext >&5
953ff289 1764
5213506e
RW
1765 ac_retval=1
1766fi
22e05272
JM
1767 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1768 as_fn_set_status $ac_retval
953ff289 1769
5213506e 1770} # ac_fn_c_try_cpp
953ff289 1771
5213506e
RW
1772# ac_fn_c_try_run LINENO
1773# ----------------------
1774# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1775# that executables *can* be run.
1776ac_fn_c_try_run ()
1777{
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 if { { ac_try="$ac_link"
1780case "(($ac_try" in
1781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1782 *) ac_try_echo=$ac_try;;
1783esac
1784eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1785$as_echo "$ac_try_echo"; } >&5
1786 (eval "$ac_link") 2>&5
1787 ac_status=$?
1788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1790 { { case "(($ac_try" in
1791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1792 *) ac_try_echo=$ac_try;;
1793esac
1794eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1795$as_echo "$ac_try_echo"; } >&5
1796 (eval "$ac_try") 2>&5
1797 ac_status=$?
1798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1799 test $ac_status = 0; }; }; then :
1800 ac_retval=0
1801else
1802 $as_echo "$as_me: program exited with status $ac_status" >&5
1803 $as_echo "$as_me: failed program was:" >&5
1804sed 's/^/| /' conftest.$ac_ext >&5
953ff289 1805
5213506e
RW
1806 ac_retval=$ac_status
1807fi
1808 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1809 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1810 as_fn_set_status $ac_retval
953ff289 1811
5213506e 1812} # ac_fn_c_try_run
953ff289 1813
5213506e
RW
1814# ac_fn_c_check_func LINENO FUNC VAR
1815# ----------------------------------
1816# Tests whether FUNC exists, setting the cache variable VAR accordingly
1817ac_fn_c_check_func ()
953ff289 1818{
5213506e
RW
1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1821$as_echo_n "checking for $2... " >&6; }
22e05272 1822if eval \${$3+:} false; then :
5213506e
RW
1823 $as_echo_n "(cached) " >&6
1824else
1825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1826/* end confdefs.h. */
1827/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1829#define $2 innocuous_$2
953ff289 1830
5213506e
RW
1831/* System header to define __stub macros and hopefully few prototypes,
1832 which can conflict with char $2 (); below.
1833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1834 <limits.h> exists even on freestanding compilers. */
953ff289 1835
5213506e
RW
1836#ifdef __STDC__
1837# include <limits.h>
1838#else
1839# include <assert.h>
1840#endif
953ff289 1841
5213506e 1842#undef $2
953ff289 1843
5213506e
RW
1844/* Override any GCC internal prototype to avoid an error.
1845 Use char because int might match the return type of a GCC
1846 builtin and then its argument prototype would still apply. */
1847#ifdef __cplusplus
1848extern "C"
1849#endif
1850char $2 ();
1851/* The GNU C library defines this for functions which it implements
1852 to always fail with ENOSYS. Some functions are actually named
1853 something starting with __ and the normal name is an alias. */
1854#if defined __stub_$2 || defined __stub___$2
1855choke me
1856#endif
953ff289 1857
5213506e
RW
1858int
1859main ()
1860{
1861return $2 ();
1862 ;
1863 return 0;
1864}
953ff289 1865_ACEOF
5213506e
RW
1866if ac_fn_c_try_link "$LINENO"; then :
1867 eval "$3=yes"
1868else
1869 eval "$3=no"
1870fi
1871rm -f core conftest.err conftest.$ac_objext \
1872 conftest$ac_exeext conftest.$ac_ext
1873fi
1874eval ac_res=\$$3
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1876$as_echo "$ac_res" >&6; }
22e05272 1877 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
953ff289 1878
5213506e 1879} # ac_fn_c_check_func
953ff289 1880
5213506e
RW
1881# ac_fn_fc_try_compile LINENO
1882# ---------------------------
1883# Try to compile conftest.$ac_ext, and return whether this succeeded.
1884ac_fn_fc_try_compile ()
1885{
1886 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887 rm -f conftest.$ac_objext
1888 if { { ac_try="$ac_compile"
1889case "(($ac_try" in
1890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1891 *) ac_try_echo=$ac_try;;
1892esac
1893eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1894$as_echo "$ac_try_echo"; } >&5
1895 (eval "$ac_compile") 2>conftest.err
1896 ac_status=$?
1897 if test -s conftest.err; then
1898 grep -v '^ *+' conftest.err >conftest.er1
1899 cat conftest.er1 >&5
1900 mv -f conftest.er1 conftest.err
1901 fi
1902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1903 test $ac_status = 0; } && {
1904 test -z "$ac_fc_werror_flag" ||
1905 test ! -s conftest.err
1906 } && test -s conftest.$ac_objext; then :
1907 ac_retval=0
1908else
1909 $as_echo "$as_me: failed program was:" >&5
1910sed 's/^/| /' conftest.$ac_ext >&5
953ff289 1911
5213506e
RW
1912 ac_retval=1
1913fi
22e05272
JM
1914 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1915 as_fn_set_status $ac_retval
953ff289 1916
5213506e 1917} # ac_fn_fc_try_compile
953ff289 1918
5213506e
RW
1919# ac_fn_fc_try_link LINENO
1920# ------------------------
1921# Try to link conftest.$ac_ext, and return whether this succeeded.
1922ac_fn_fc_try_link ()
1923{
1924 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1925 rm -f conftest.$ac_objext conftest$ac_exeext
1926 if { { ac_try="$ac_link"
1927case "(($ac_try" in
1928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1929 *) ac_try_echo=$ac_try;;
1930esac
1931eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1932$as_echo "$ac_try_echo"; } >&5
1933 (eval "$ac_link") 2>conftest.err
1934 ac_status=$?
1935 if test -s conftest.err; then
1936 grep -v '^ *+' conftest.err >conftest.er1
1937 cat conftest.er1 >&5
1938 mv -f conftest.er1 conftest.err
1939 fi
1940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1941 test $ac_status = 0; } && {
1942 test -z "$ac_fc_werror_flag" ||
1943 test ! -s conftest.err
1944 } && test -s conftest$ac_exeext && {
1945 test "$cross_compiling" = yes ||
22e05272 1946 test -x conftest$ac_exeext
5213506e
RW
1947 }; 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 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1956 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1957 # interfere with the next link command; also delete a directory that is
1958 # left behind by Apple's compiler. We do this before executing the actions.
1959 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1960 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1961 as_fn_set_status $ac_retval
953ff289 1962
5213506e 1963} # ac_fn_fc_try_link
953ff289 1964
5213506e
RW
1965# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1966# -------------------------------------------------------
1967# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1968# the include files in INCLUDES and setting the cache variable VAR
1969# accordingly.
1970ac_fn_c_check_header_mongrel ()
1971{
1972 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22e05272 1973 if eval \${$3+:} false; then :
5213506e
RW
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1975$as_echo_n "checking for $2... " >&6; }
22e05272 1976if eval \${$3+:} false; then :
5213506e
RW
1977 $as_echo_n "(cached) " >&6
1978fi
1979eval ac_res=\$$3
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1981$as_echo "$ac_res" >&6; }
1982else
1983 # Is the header compilable?
1984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1985$as_echo_n "checking $2 usability... " >&6; }
1986cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1987/* end confdefs.h. */
1988$4
1989#include <$2>
953ff289 1990_ACEOF
5213506e
RW
1991if ac_fn_c_try_compile "$LINENO"; then :
1992 ac_header_compiler=yes
1993else
1994 ac_header_compiler=no
953ff289 1995fi
5213506e
RW
1996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1998$as_echo "$ac_header_compiler" >&6; }
953ff289 1999
5213506e
RW
2000# Is the header present?
2001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2002$as_echo_n "checking $2 presence... " >&6; }
2003cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004/* end confdefs.h. */
2005#include <$2>
2006_ACEOF
2007if ac_fn_c_try_cpp "$LINENO"; then :
2008 ac_header_preproc=yes
953ff289 2009else
5213506e 2010 ac_header_preproc=no
953ff289 2011fi
22e05272 2012rm -f conftest.err conftest.i conftest.$ac_ext
5213506e
RW
2013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2014$as_echo "$ac_header_preproc" >&6; }
953ff289 2015
5213506e
RW
2016# So? What about this header?
2017case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2018 yes:no: )
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2020$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2022$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2023 ;;
2024 no:yes:* )
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2026$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2028$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2030$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2032$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2034$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2035 ;;
2036esac
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2038$as_echo_n "checking for $2... " >&6; }
22e05272 2039if eval \${$3+:} false; then :
5213506e
RW
2040 $as_echo_n "(cached) " >&6
2041else
2042 eval "$3=\$ac_header_compiler"
953ff289 2043fi
5213506e
RW
2044eval ac_res=\$$3
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2046$as_echo "$ac_res" >&6; }
2047fi
22e05272 2048 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
953ff289 2049
5213506e 2050} # ac_fn_c_check_header_mongrel
953ff289 2051
5213506e
RW
2052# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2053# -------------------------------------------
2054# Tests whether TYPE exists after having included INCLUDES, setting cache
2055# variable VAR accordingly.
2056ac_fn_c_check_type ()
2057{
2058 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2060$as_echo_n "checking for $2... " >&6; }
22e05272 2061if eval \${$3+:} false; then :
5213506e
RW
2062 $as_echo_n "(cached) " >&6
2063else
2064 eval "$3=no"
2065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066/* end confdefs.h. */
2067$4
2068int
2069main ()
2070{
2071if (sizeof ($2))
2072 return 0;
2073 ;
2074 return 0;
2075}
2076_ACEOF
2077if ac_fn_c_try_compile "$LINENO"; then :
2078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079/* end confdefs.h. */
2080$4
2081int
2082main ()
2083{
2084if (sizeof (($2)))
2085 return 0;
2086 ;
2087 return 0;
2088}
2089_ACEOF
2090if ac_fn_c_try_compile "$LINENO"; then :
953ff289 2091
5213506e
RW
2092else
2093 eval "$3=yes"
2094fi
2095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2096fi
2097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2098fi
2099eval ac_res=\$$3
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2101$as_echo "$ac_res" >&6; }
22e05272 2102 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
953ff289 2103
5213506e 2104} # ac_fn_c_check_type
953ff289 2105
5213506e
RW
2106# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2107# --------------------------------------------
2108# Tries to find the compile-time value of EXPR in a program that includes
2109# INCLUDES, setting VAR accordingly. Returns whether the value could be
2110# computed
2111ac_fn_c_compute_int ()
2112{
2113 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2114 if test "$cross_compiling" = yes; then
2115 # Depending upon the size, compute the lo and hi bounds.
2116cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2117/* end confdefs.h. */
2118$4
2119int
2120main ()
2121{
2122static int test_array [1 - 2 * !(($2) >= 0)];
22e05272
JM
2123test_array [0] = 0;
2124return test_array [0];
953ff289 2125
5213506e
RW
2126 ;
2127 return 0;
2128}
2129_ACEOF
2130if ac_fn_c_try_compile "$LINENO"; then :
2131 ac_lo=0 ac_mid=0
2132 while :; do
2133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2134/* end confdefs.h. */
2135$4
2136int
2137main ()
2138{
2139static int test_array [1 - 2 * !(($2) <= $ac_mid)];
22e05272
JM
2140test_array [0] = 0;
2141return test_array [0];
953ff289 2142
5213506e
RW
2143 ;
2144 return 0;
2145}
2146_ACEOF
2147if ac_fn_c_try_compile "$LINENO"; then :
2148 ac_hi=$ac_mid; break
2149else
2150 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2151 if test $ac_lo -le $ac_mid; then
2152 ac_lo= ac_hi=
2153 break
2154 fi
2155 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2156fi
2157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2158 done
2159else
2160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2161/* end confdefs.h. */
2162$4
2163int
2164main ()
2165{
2166static int test_array [1 - 2 * !(($2) < 0)];
22e05272
JM
2167test_array [0] = 0;
2168return test_array [0];
953ff289 2169
5213506e
RW
2170 ;
2171 return 0;
2172}
2173_ACEOF
2174if ac_fn_c_try_compile "$LINENO"; then :
2175 ac_hi=-1 ac_mid=-1
2176 while :; do
2177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2178/* end confdefs.h. */
2179$4
2180int
2181main ()
2182{
2183static int test_array [1 - 2 * !(($2) >= $ac_mid)];
22e05272
JM
2184test_array [0] = 0;
2185return test_array [0];
953ff289 2186
5213506e
RW
2187 ;
2188 return 0;
2189}
2190_ACEOF
2191if ac_fn_c_try_compile "$LINENO"; then :
2192 ac_lo=$ac_mid; break
2193else
2194 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2195 if test $ac_mid -le $ac_hi; then
2196 ac_lo= ac_hi=
2197 break
2198 fi
2199 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2200fi
2201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2202 done
2203else
2204 ac_lo= ac_hi=
2205fi
2206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2207fi
2208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2209# Binary search between lo and hi bounds.
2210while test "x$ac_lo" != "x$ac_hi"; do
2211 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2213/* end confdefs.h. */
2214$4
2215int
2216main ()
2217{
2218static int test_array [1 - 2 * !(($2) <= $ac_mid)];
22e05272
JM
2219test_array [0] = 0;
2220return test_array [0];
953ff289 2221
5213506e
RW
2222 ;
2223 return 0;
2224}
2225_ACEOF
2226if ac_fn_c_try_compile "$LINENO"; then :
2227 ac_hi=$ac_mid
2228else
2229 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2230fi
2231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2232done
2233case $ac_lo in #((
2234?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2235'') ac_retval=1 ;;
2236esac
2237 else
2238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2239/* end confdefs.h. */
2240$4
2241static long int longval () { return $2; }
2242static unsigned long int ulongval () { return $2; }
2243#include <stdio.h>
2244#include <stdlib.h>
2245int
2246main ()
2247{
953ff289 2248
5213506e
RW
2249 FILE *f = fopen ("conftest.val", "w");
2250 if (! f)
2251 return 1;
2252 if (($2) < 0)
2253 {
2254 long int i = longval ();
2255 if (i != ($2))
2256 return 1;
2257 fprintf (f, "%ld", i);
2258 }
2259 else
2260 {
2261 unsigned long int i = ulongval ();
2262 if (i != ($2))
2263 return 1;
2264 fprintf (f, "%lu", i);
2265 }
2266 /* Do not output a trailing newline, as this causes \r\n confusion
2267 on some platforms. */
2268 return ferror (f) || fclose (f) != 0;
953ff289 2269
5213506e
RW
2270 ;
2271 return 0;
2272}
2273_ACEOF
2274if ac_fn_c_try_run "$LINENO"; then :
2275 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2276else
2277 ac_retval=1
2278fi
2279rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2280 conftest.$ac_objext conftest.beam conftest.$ac_ext
2281rm -f conftest.val
953ff289 2282
5213506e 2283 fi
22e05272
JM
2284 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2285 as_fn_set_status $ac_retval
953ff289 2286
5213506e
RW
2287} # ac_fn_c_compute_int
2288cat >config.log <<_ACEOF
2289This file contains any messages produced by compilers while
2290running configure, to aid debugging if configure makes a mistake.
953ff289 2291
f1f3453e 2292It was created by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
22e05272 2293generated by GNU Autoconf 2.69. Invocation command line was
953ff289 2294
5213506e 2295 $ $0 $@
953ff289 2296
5213506e
RW
2297_ACEOF
2298exec 5>>config.log
2299{
2300cat <<_ASUNAME
2301## --------- ##
2302## Platform. ##
2303## --------- ##
953ff289 2304
5213506e
RW
2305hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2306uname -m = `(uname -m) 2>/dev/null || echo unknown`
2307uname -r = `(uname -r) 2>/dev/null || echo unknown`
2308uname -s = `(uname -s) 2>/dev/null || echo unknown`
2309uname -v = `(uname -v) 2>/dev/null || echo unknown`
953ff289 2310
5213506e
RW
2311/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2312/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
953ff289 2313
5213506e
RW
2314/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2315/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2316/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2317/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2318/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2319/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2320/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
953ff289 2321
5213506e 2322_ASUNAME
953ff289 2323
5213506e
RW
2324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2325for as_dir in $PATH
2326do
2327 IFS=$as_save_IFS
2328 test -z "$as_dir" && as_dir=.
2329 $as_echo "PATH: $as_dir"
2330 done
2331IFS=$as_save_IFS
953ff289 2332
5213506e 2333} >&5
953ff289 2334
5213506e 2335cat >&5 <<_ACEOF
18c04407
RW
2336
2337
5213506e
RW
2338## ----------- ##
2339## Core tests. ##
2340## ----------- ##
18c04407 2341
5213506e 2342_ACEOF
953ff289
DN
2343
2344
5213506e
RW
2345# Keep a trace of the command line.
2346# Strip out --no-create and --no-recursion so they do not pile up.
2347# Strip out --silent because we don't want to record it for future runs.
2348# Also quote any args containing shell meta-characters.
2349# Make two passes to allow for proper duplicate-argument suppression.
2350ac_configure_args=
2351ac_configure_args0=
2352ac_configure_args1=
2353ac_must_keep_next=false
2354for ac_pass in 1 2
2355do
2356 for ac_arg
2357 do
2358 case $ac_arg in
2359 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2360 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2361 | -silent | --silent | --silen | --sile | --sil)
2362 continue ;;
2363 *\'*)
2364 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2365 esac
2366 case $ac_pass in
2367 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2368 2)
2369 as_fn_append ac_configure_args1 " '$ac_arg'"
2370 if test $ac_must_keep_next = true; then
2371 ac_must_keep_next=false # Got value, back to normal.
2372 else
2373 case $ac_arg in
2374 *=* | --config-cache | -C | -disable-* | --disable-* \
2375 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2376 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2377 | -with-* | --with-* | -without-* | --without-* | --x)
2378 case "$ac_configure_args0 " in
2379 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2380 esac
2381 ;;
2382 -* ) ac_must_keep_next=true ;;
2383 esac
2384 fi
2385 as_fn_append ac_configure_args " '$ac_arg'"
2386 ;;
2387 esac
2388 done
2389done
2390{ ac_configure_args0=; unset ac_configure_args0;}
2391{ ac_configure_args1=; unset ac_configure_args1;}
953ff289 2392
5213506e
RW
2393# When interrupted or exit'd, cleanup temporary files, and complete
2394# config.log. We remove comments because anyway the quotes in there
2395# would cause problems or look ugly.
2396# WARNING: Use '\'' to represent an apostrophe within the trap.
2397# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2398trap 'exit_status=$?
2399 # Save into config.log some information that might help in debugging.
2400 {
2401 echo
953ff289 2402
22e05272 2403 $as_echo "## ---------------- ##
5213506e 2404## Cache variables. ##
22e05272 2405## ---------------- ##"
5213506e
RW
2406 echo
2407 # The following way of writing the cache mishandles newlines in values,
2408(
2409 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2410 eval ac_val=\$$ac_var
2411 case $ac_val in #(
2412 *${as_nl}*)
2413 case $ac_var in #(
2414 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2415$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2416 esac
2417 case $ac_var in #(
2418 _ | IFS | as_nl) ;; #(
2419 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2420 *) { eval $ac_var=; unset $ac_var;} ;;
2421 esac ;;
2422 esac
2423 done
2424 (set) 2>&1 |
2425 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2426 *${as_nl}ac_space=\ *)
2427 sed -n \
2428 "s/'\''/'\''\\\\'\'''\''/g;
2429 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2430 ;; #(
2431 *)
2432 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2433 ;;
2434 esac |
2435 sort
2436)
2437 echo
953ff289 2438
22e05272 2439 $as_echo "## ----------------- ##
5213506e 2440## Output variables. ##
22e05272 2441## ----------------- ##"
5213506e
RW
2442 echo
2443 for ac_var in $ac_subst_vars
2444 do
2445 eval ac_val=\$$ac_var
2446 case $ac_val in
2447 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2448 esac
2449 $as_echo "$ac_var='\''$ac_val'\''"
2450 done | sort
2451 echo
953ff289 2452
5213506e 2453 if test -n "$ac_subst_files"; then
22e05272 2454 $as_echo "## ------------------- ##
5213506e 2455## File substitutions. ##
22e05272 2456## ------------------- ##"
5213506e
RW
2457 echo
2458 for ac_var in $ac_subst_files
2459 do
2460 eval ac_val=\$$ac_var
2461 case $ac_val in
2462 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2463 esac
2464 $as_echo "$ac_var='\''$ac_val'\''"
2465 done | sort
2466 echo
2467 fi
953ff289 2468
5213506e 2469 if test -s confdefs.h; then
22e05272 2470 $as_echo "## ----------- ##
5213506e 2471## confdefs.h. ##
22e05272 2472## ----------- ##"
5213506e
RW
2473 echo
2474 cat confdefs.h
2475 echo
2476 fi
2477 test "$ac_signal" != 0 &&
2478 $as_echo "$as_me: caught signal $ac_signal"
2479 $as_echo "$as_me: exit $exit_status"
2480 } >&5
2481 rm -f core *.core core.conftest.* &&
2482 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2483 exit $exit_status
2484' 0
2485for ac_signal in 1 2 13 15; do
2486 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2487done
2488ac_signal=0
953ff289 2489
5213506e
RW
2490# confdefs.h avoids OS command line length limits that DEFS can exceed.
2491rm -f -r conftest* confdefs.h
2492
2493$as_echo "/* confdefs.h */" > confdefs.h
2494
2495# Predefined preprocessor variables.
2496
2497cat >>confdefs.h <<_ACEOF
2498#define PACKAGE_NAME "$PACKAGE_NAME"
2499_ACEOF
2500
2501cat >>confdefs.h <<_ACEOF
2502#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2503_ACEOF
2504
2505cat >>confdefs.h <<_ACEOF
2506#define PACKAGE_VERSION "$PACKAGE_VERSION"
2507_ACEOF
2508
2509cat >>confdefs.h <<_ACEOF
2510#define PACKAGE_STRING "$PACKAGE_STRING"
2511_ACEOF
2512
2513cat >>confdefs.h <<_ACEOF
2514#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2515_ACEOF
2516
2517cat >>confdefs.h <<_ACEOF
2518#define PACKAGE_URL "$PACKAGE_URL"
2519_ACEOF
2520
2521
2522# Let the site file select an alternate cache file if it wants to.
2523# Prefer an explicitly selected file to automatically selected ones.
2524ac_site_file1=NONE
2525ac_site_file2=NONE
2526if test -n "$CONFIG_SITE"; then
22e05272
JM
2527 # We do not want a PATH search for config.site.
2528 case $CONFIG_SITE in #((
2529 -*) ac_site_file1=./$CONFIG_SITE;;
2530 */*) ac_site_file1=$CONFIG_SITE;;
2531 *) ac_site_file1=./$CONFIG_SITE;;
2532 esac
5213506e
RW
2533elif test "x$prefix" != xNONE; then
2534 ac_site_file1=$prefix/share/config.site
2535 ac_site_file2=$prefix/etc/config.site
2536else
2537 ac_site_file1=$ac_default_prefix/share/config.site
2538 ac_site_file2=$ac_default_prefix/etc/config.site
2539fi
2540for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2541do
2542 test "x$ac_site_file" = xNONE && continue
22e05272 2543 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
5213506e
RW
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2545$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2546 sed 's/^/| /' "$ac_site_file" >&5
22e05272
JM
2547 . "$ac_site_file" \
2548 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2549$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2550as_fn_error $? "failed to load site script $ac_site_file
2551See \`config.log' for more details" "$LINENO" 5; }
5213506e
RW
2552 fi
2553done
2554
2555if test -r "$cache_file"; then
22e05272
JM
2556 # Some versions of bash will fail to source /dev/null (special files
2557 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2558 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
5213506e
RW
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2560$as_echo "$as_me: loading cache $cache_file" >&6;}
2561 case $cache_file in
2562 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2563 *) . "./$cache_file";;
2564 esac
2565 fi
2566else
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2568$as_echo "$as_me: creating cache $cache_file" >&6;}
2569 >$cache_file
2570fi
2571
b8d89b03
ML
2572as_fn_append ac_header_list " unistd.h"
2573as_fn_append ac_func_list " secure_getenv"
2574as_fn_append ac_func_list " __secure_getenv"
2575as_fn_append ac_func_list " getuid"
2576as_fn_append ac_func_list " geteuid"
2577as_fn_append ac_func_list " getgid"
2578as_fn_append ac_func_list " getegid"
5213506e
RW
2579# Check that the precious variables saved in the cache have kept the same
2580# value.
2581ac_cache_corrupted=false
2582for ac_var in $ac_precious_vars; do
2583 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2584 eval ac_new_set=\$ac_env_${ac_var}_set
2585 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2586 eval ac_new_val=\$ac_env_${ac_var}_value
2587 case $ac_old_set,$ac_new_set in
2588 set,)
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2590$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2591 ac_cache_corrupted=: ;;
2592 ,set)
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2594$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2595 ac_cache_corrupted=: ;;
2596 ,);;
2597 *)
2598 if test "x$ac_old_val" != "x$ac_new_val"; then
2599 # differences in whitespace do not lead to failure.
2600 ac_old_val_w=`echo x $ac_old_val`
2601 ac_new_val_w=`echo x $ac_new_val`
2602 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2604$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2605 ac_cache_corrupted=:
2606 else
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2608$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2609 eval $ac_var=\$ac_old_val
2610 fi
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2612$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2614$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2615 fi;;
2616 esac
2617 # Pass precious variables to config.status.
2618 if test "$ac_new_set" = set; then
2619 case $ac_new_val in
2620 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2621 *) ac_arg=$ac_var=$ac_new_val ;;
2622 esac
2623 case " $ac_configure_args " in
2624 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2625 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2626 esac
2627 fi
2628done
2629if $ac_cache_corrupted; then
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2631$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2633$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
22e05272 2634 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
5213506e
RW
2635fi
2636## -------------------- ##
2637## Main body of script. ##
2638## -------------------- ##
2639
2640ac_ext=c
2641ac_cpp='$CPP $CPPFLAGS'
2642ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2643ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2644ac_compiler_gnu=$ac_cv_c_compiler_gnu
2645
2646
2647
2648
2649
2650ac_config_headers="$ac_config_headers config.h"
2651
2652
2653# -------
2654# Options
2655# -------
2656
2657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2658$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2659 # Check whether --enable-version-specific-runtime-libs was given.
2660if test "${enable_version_specific_runtime_libs+set}" = set; then :
2661 enableval=$enable_version_specific_runtime_libs;
953ff289
DN
2662 case "$enableval" in
2663 yes|no) ;;
22e05272 2664 *) as_fn_error $? "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
953ff289
DN
2665 esac
2666
2667else
2668 enable_version_specific_runtime_libs=no
5213506e
RW
2669fi
2670
953ff289 2671
5213506e
RW
2672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2673$as_echo "$enable_version_specific_runtime_libs" >&6; }
953ff289 2674
627ab4b8
TT
2675# We would like our source tree to be readonly. However when releases or
2676# pre-releases are generated, the flex/bison generated files as well as the
2677# various formats of manuals need to be included along with the rest of the
2678# sources. Therefore we have --enable-generated-files-in-srcdir to do
2679# just that.
5213506e
RW
2680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2681$as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2682 # Check whether --enable-generated-files-in-srcdir was given.
2683if test "${enable_generated_files_in_srcdir+set}" = set; then :
2684 enableval=$enable_generated_files_in_srcdir;
627ab4b8
TT
2685 case "$enableval" in
2686 yes|no) ;;
22e05272 2687 *) as_fn_error $? "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
627ab4b8
TT
2688 esac
2689
2690else
2691 enable_generated_files_in_srcdir=no
5213506e 2692fi
627ab4b8
TT
2693
2694
5213506e
RW
2695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2696$as_echo "$enable_generated_files_in_srcdir" >&6; }
2697 if test "$enable_generated_files_in_srcdir" = yes; then
627ab4b8
TT
2698 GENINSRC_TRUE=
2699 GENINSRC_FALSE='#'
2700else
2701 GENINSRC_TRUE='#'
2702 GENINSRC_FALSE=
2703fi
2704
2705
2706
953ff289
DN
2707# -------
2708# -------
2709
2710# Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2711#
2712# You will slowly go insane if you do not grok the following fact: when
2713# building this library, the top-level /target/ becomes the library's /host/.
2714#
2715# configure then causes --target to default to --host, exactly like any
2716# other package using autoconf. Therefore, 'target' and 'host' will
2717# always be the same. This makes sense both for native and cross compilers
2718# just think about it for a little while. :-)
2719#
2720# Also, if this library is being configured as part of a cross compiler, the
2721# top-level configure script will pass the "real" host as $with_cross_host.
2722#
2723# Do not delete or change the following two lines. For why, see
2724# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2725ac_aux_dir=
5213506e 2726for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
22e05272
JM
2727 if test -f "$ac_dir/install-sh"; then
2728 ac_aux_dir=$ac_dir
2729 ac_install_sh="$ac_aux_dir/install-sh -c"
2730 break
2731 elif test -f "$ac_dir/install.sh"; then
2732 ac_aux_dir=$ac_dir
2733 ac_install_sh="$ac_aux_dir/install.sh -c"
2734 break
2735 elif test -f "$ac_dir/shtool"; then
2736 ac_aux_dir=$ac_dir
2737 ac_install_sh="$ac_aux_dir/shtool install -c"
2738 break
2739 fi
953ff289
DN
2740done
2741if test -z "$ac_aux_dir"; then
22e05272 2742 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
953ff289 2743fi
5213506e
RW
2744
2745# These three variables are undocumented and unsupported,
2746# and are intended to be withdrawn in a future Autoconf release.
2747# They can cause serious problems if a builder's source tree is in a directory
2748# whose full name contains unusual characters.
2749ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2750ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2751ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2752
953ff289
DN
2753
2754# Make sure we can run config.sub.
5213506e 2755$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
22e05272 2756 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5213506e
RW
2757
2758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2759$as_echo_n "checking build system type... " >&6; }
22e05272 2760if ${ac_cv_build+:} false; then :
5213506e
RW
2761 $as_echo_n "(cached) " >&6
2762else
2763 ac_build_alias=$build_alias
2764test "x$ac_build_alias" = x &&
2765 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2766test "x$ac_build_alias" = x &&
22e05272 2767 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5213506e 2768ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
22e05272 2769 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5213506e
RW
2770
2771fi
2772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2773$as_echo "$ac_cv_build" >&6; }
2774case $ac_cv_build in
2775*-*-*) ;;
22e05272 2776*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5213506e 2777esac
953ff289 2778build=$ac_cv_build
5213506e
RW
2779ac_save_IFS=$IFS; IFS='-'
2780set x $ac_cv_build
2781shift
2782build_cpu=$1
2783build_vendor=$2
2784shift; shift
2785# Remember, the first character of IFS is used to create $*,
2786# except with old shells:
2787build_os=$*
2788IFS=$ac_save_IFS
2789case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
953ff289
DN
2790
2791
5213506e
RW
2792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2793$as_echo_n "checking host system type... " >&6; }
22e05272 2794if ${ac_cv_host+:} false; then :
5213506e 2795 $as_echo_n "(cached) " >&6
953ff289 2796else
5213506e
RW
2797 if test "x$host_alias" = x; then
2798 ac_cv_host=$ac_cv_build
2799else
2800 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
22e05272 2801 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5213506e 2802fi
953ff289
DN
2803
2804fi
5213506e
RW
2805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2806$as_echo "$ac_cv_host" >&6; }
2807case $ac_cv_host in
2808*-*-*) ;;
22e05272 2809*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5213506e 2810esac
953ff289 2811host=$ac_cv_host
5213506e
RW
2812ac_save_IFS=$IFS; IFS='-'
2813set x $ac_cv_host
2814shift
2815host_cpu=$1
2816host_vendor=$2
2817shift; shift
2818# Remember, the first character of IFS is used to create $*,
2819# except with old shells:
2820host_os=$*
2821IFS=$ac_save_IFS
2822case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
953ff289
DN
2823
2824
5213506e
RW
2825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2826$as_echo_n "checking target system type... " >&6; }
22e05272 2827if ${ac_cv_target+:} false; then :
5213506e
RW
2828 $as_echo_n "(cached) " >&6
2829else
2830 if test "x$target_alias" = x; then
2831 ac_cv_target=$ac_cv_host
953ff289 2832else
5213506e 2833 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
22e05272 2834 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5213506e 2835fi
953ff289
DN
2836
2837fi
5213506e
RW
2838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2839$as_echo "$ac_cv_target" >&6; }
2840case $ac_cv_target in
2841*-*-*) ;;
22e05272 2842*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
5213506e 2843esac
953ff289 2844target=$ac_cv_target
5213506e
RW
2845ac_save_IFS=$IFS; IFS='-'
2846set x $ac_cv_target
2847shift
2848target_cpu=$1
2849target_vendor=$2
2850shift; shift
2851# Remember, the first character of IFS is used to create $*,
2852# except with old shells:
2853target_os=$*
2854IFS=$ac_save_IFS
2855case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
953ff289
DN
2856
2857
2858# The aliases save the names the user supplied, while $host etc.
2859# will get canonicalized.
2860test -n "$target_alias" &&
2861 test "$program_prefix$program_suffix$program_transform_name" = \
2862 NONENONEs,x,x, &&
2863 program_prefix=${target_alias}-
5213506e 2864
953ff289
DN
2865target_alias=${target_alias-$host_alias}
2866
2867# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2868# following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2869# 1.9.0: minimum required version
2870# no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2871# of other PACKAGE_* variables will, however, and there's nothing
2872# we can do about that; they come from AC_INIT).
2873# foreign: we don't follow the normal rules for GNU packages (no COPYING
2874# file in the top srcdir, etc, etc), so stop complaining.
13917ae3 2875# no-dist: we don't want 'dist' and related rules.
953ff289
DN
2876# -Wall: turns on all automake warnings...
2877# -Wno-portability: ...except this one, since GNU make is required.
2878# -Wno-override: ... and this one, since we do want this in testsuite.
22e05272 2879am__api_version='1.15'
5213506e 2880
953ff289
DN
2881# Find a good install program. We prefer a C program (faster),
2882# so one script is as good as another. But avoid the broken or
2883# incompatible versions:
2884# SysV /etc/install, /usr/sbin/install
2885# SunOS /usr/etc/install
2886# IRIX /sbin/install
2887# AIX /bin/install
2888# AmigaOS /C/install, which installs bootblocks on floppy discs
2889# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2890# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2891# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2892# OS/2's system install, which has a completely different semantic
2893# ./install, which can be erroneously created by make from ./install.sh.
38d24731 2894# Reject install programs that cannot install multiple files.
5213506e
RW
2895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2896$as_echo_n "checking for a BSD-compatible install... " >&6; }
953ff289 2897if test -z "$INSTALL"; then
22e05272 2898if ${ac_cv_path_install+:} false; then :
5213506e 2899 $as_echo_n "(cached) " >&6
953ff289
DN
2900else
2901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2902for as_dir in $PATH
2903do
2904 IFS=$as_save_IFS
2905 test -z "$as_dir" && as_dir=.
5213506e
RW
2906 # Account for people who put trailing slashes in PATH elements.
2907case $as_dir/ in #((
2908 ./ | .// | /[cC]/* | \
953ff289 2909 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 2910 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
953ff289
DN
2911 /usr/ucb/* ) ;;
2912 *)
2913 # OSF1 and SCO ODT 3.0 have their own names for install.
2914 # Don't use installbsd from OSF since it installs stuff as root
2915 # by default.
2916 for ac_prog in ginstall scoinst install; do
2917 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2918 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
953ff289
DN
2919 if test $ac_prog = install &&
2920 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2921 # AIX install. It has an incompatible calling convention.
2922 :
2923 elif test $ac_prog = install &&
2924 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2925 # program-specific install script used by HP pwplus--don't use.
2926 :
2927 else
38d24731
RW
2928 rm -rf conftest.one conftest.two conftest.dir
2929 echo one > conftest.one
2930 echo two > conftest.two
2931 mkdir conftest.dir
2932 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2933 test -s conftest.one && test -s conftest.two &&
2934 test -s conftest.dir/conftest.one &&
2935 test -s conftest.dir/conftest.two
2936 then
2937 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2938 break 3
2939 fi
953ff289
DN
2940 fi
2941 fi
2942 done
2943 done
2944 ;;
2945esac
5213506e
RW
2946
2947 done
2948IFS=$as_save_IFS
953ff289 2949
38d24731 2950rm -rf conftest.one conftest.two conftest.dir
953ff289
DN
2951
2952fi
2953 if test "${ac_cv_path_install+set}" = set; then
2954 INSTALL=$ac_cv_path_install
2955 else
38d24731
RW
2956 # As a last resort, use the slow shell script. Don't cache a
2957 # value for INSTALL within a source directory, because that will
953ff289 2958 # break other packages using the cache if that directory is
38d24731 2959 # removed, or if the value is a relative name.
953ff289
DN
2960 INSTALL=$ac_install_sh
2961 fi
2962fi
5213506e
RW
2963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2964$as_echo "$INSTALL" >&6; }
953ff289
DN
2965
2966# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2967# It thinks the first close brace ends the variable substitution.
2968test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2969
2970test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2971
2972test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2973
5213506e
RW
2974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2975$as_echo_n "checking whether build environment is sane... " >&6; }
5213506e
RW
2976# Reject unsafe characters in $srcdir or the absolute working directory
2977# name. Accept space and tab only in the latter.
2978am_lf='
2979'
2980case `pwd` in
2981 *[\\\"\#\$\&\'\`$am_lf]*)
22e05272 2982 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5213506e
RW
2983esac
2984case $srcdir in
2985 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
22e05272 2986 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
5213506e
RW
2987esac
2988
22e05272 2989# Do 'set' in a subshell so we don't clobber the current shell's
953ff289
DN
2990# arguments. Must try -L first in case configure is actually a
2991# symlink; some systems play weird games with the mod time of symlinks
2992# (eg FreeBSD returns the mod time of the symlink's containing
2993# directory).
2994if (
22e05272
JM
2995 am_has_slept=no
2996 for am_try in 1 2; do
2997 echo "timestamp, slept: $am_has_slept" > conftest.file
2998 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2999 if test "$*" = "X"; then
3000 # -L didn't work.
3001 set X `ls -t "$srcdir/configure" conftest.file`
3002 fi
3003 if test "$*" != "X $srcdir/configure conftest.file" \
3004 && test "$*" != "X conftest.file $srcdir/configure"; then
3005
3006 # If neither matched, then we have a broken ls. This can happen
3007 # if, for instance, CONFIG_SHELL is bash and it inherits a
3008 # broken ls alias from the environment. This has actually
3009 # happened. Such a system could not be considered "sane".
3010 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3011 alias in your environment" "$LINENO" 5
3012 fi
3013 if test "$2" = conftest.file || test $am_try -eq 2; then
3014 break
3015 fi
3016 # Just in case.
3017 sleep 1
3018 am_has_slept=yes
3019 done
953ff289
DN
3020 test "$2" = conftest.file
3021 )
3022then
3023 # Ok.
3024 :
3025else
22e05272 3026 as_fn_error $? "newly created file is older than distributed files!
5213506e 3027Check your system clock" "$LINENO" 5
953ff289 3028fi
5213506e
RW
3029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3030$as_echo "yes" >&6; }
22e05272
JM
3031# If we didn't sleep, we still need to ensure time stamps of config.status and
3032# generated files are strictly newer.
3033am_sleep_pid=
3034if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3035 ( sleep 1 ) &
3036 am_sleep_pid=$!
3037fi
3038
3039rm -f conftest.file
3040
953ff289 3041test "$program_prefix" != NONE &&
5213506e 3042 program_transform_name="s&^&$program_prefix&;$program_transform_name"
953ff289
DN
3043# Use a double $ so make ignores it.
3044test "$program_suffix" != NONE &&
5213506e
RW
3045 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3046# Double any \ or $.
953ff289 3047# By default was `s,x,x', remove it if useless.
5213506e
RW
3048ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3049program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
953ff289 3050
22e05272
JM
3051# Expand $ac_aux_dir to an absolute path.
3052am_aux_dir=`cd "$ac_aux_dir" && pwd`
953ff289 3053
5213506e
RW
3054if test x"${MISSING+set}" != xset; then
3055 case $am_aux_dir in
3056 *\ * | *\ *)
3057 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3058 *)
3059 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3060 esac
3061fi
953ff289 3062# Use eval to expand $SHELL
22e05272
JM
3063if eval "$MISSING --is-lightweight"; then
3064 am_missing_run="$MISSING "
953ff289
DN
3065else
3066 am_missing_run=
22e05272
JM
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3068$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
5213506e
RW
3069fi
3070
22e05272 3071if test x"${install_sh+set}" != xset; then
5213506e
RW
3072 case $am_aux_dir in
3073 *\ * | *\ *)
3074 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3075 *)
3076 install_sh="\${SHELL} $am_aux_dir/install-sh"
3077 esac
3078fi
3079
22e05272
JM
3080# Installed binaries are usually stripped using 'strip' when the user
3081# run "make install-strip". However 'strip' might not be the right
5213506e 3082# tool to use in cross-compilation environments, therefore Automake
22e05272 3083# will honor the 'STRIP' environment variable to overrule this program.
5213506e
RW
3084if test "$cross_compiling" != no; then
3085 if test -n "$ac_tool_prefix"; then
3086 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3087set dummy ${ac_tool_prefix}strip; ac_word=$2
3088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3089$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3090if ${ac_cv_prog_STRIP+:} false; then :
5213506e
RW
3091 $as_echo_n "(cached) " >&6
3092else
3093 if test -n "$STRIP"; then
3094 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3095else
3096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3097for as_dir in $PATH
3098do
3099 IFS=$as_save_IFS
3100 test -z "$as_dir" && as_dir=.
3101 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5213506e
RW
3103 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3105 break 2
3106 fi
3107done
3108 done
3109IFS=$as_save_IFS
3110
3111fi
3112fi
3113STRIP=$ac_cv_prog_STRIP
3114if test -n "$STRIP"; then
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3116$as_echo "$STRIP" >&6; }
3117else
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3119$as_echo "no" >&6; }
3120fi
3121
3122
3123fi
3124if test -z "$ac_cv_prog_STRIP"; then
3125 ac_ct_STRIP=$STRIP
3126 # Extract the first word of "strip", so it can be a program name with args.
3127set dummy strip; ac_word=$2
3128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3129$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3130if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5213506e
RW
3131 $as_echo_n "(cached) " >&6
3132else
3133 if test -n "$ac_ct_STRIP"; then
3134 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3135else
3136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3137for as_dir in $PATH
3138do
3139 IFS=$as_save_IFS
3140 test -z "$as_dir" && as_dir=.
3141 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5213506e
RW
3143 ac_cv_prog_ac_ct_STRIP="strip"
3144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3145 break 2
3146 fi
3147done
3148 done
3149IFS=$as_save_IFS
3150
3151fi
3152fi
3153ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3154if test -n "$ac_ct_STRIP"; then
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3156$as_echo "$ac_ct_STRIP" >&6; }
3157else
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3159$as_echo "no" >&6; }
3160fi
3161
3162 if test "x$ac_ct_STRIP" = x; then
3163 STRIP=":"
3164 else
3165 case $cross_compiling:$ac_tool_warned in
3166yes:)
3167{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3168$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3169ac_tool_warned=yes ;;
3170esac
3171 STRIP=$ac_ct_STRIP
3172 fi
3173else
3174 STRIP="$ac_cv_prog_STRIP"
3175fi
3176
3177fi
3178INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3179
3180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3181$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3182if test -z "$MKDIR_P"; then
22e05272 3183 if ${ac_cv_path_mkdir+:} false; then :
5213506e
RW
3184 $as_echo_n "(cached) " >&6
3185else
3186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3187for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3188do
3189 IFS=$as_save_IFS
3190 test -z "$as_dir" && as_dir=.
3191 for ac_prog in mkdir gmkdir; do
3192 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3193 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5213506e
RW
3194 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3195 'mkdir (GNU coreutils) '* | \
3196 'mkdir (coreutils) '* | \
3197 'mkdir (fileutils) '4.1*)
3198 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3199 break 3;;
3200 esac
3201 done
3202 done
953ff289 3203 done
5213506e
RW
3204IFS=$as_save_IFS
3205
3206fi
3207
22e05272 3208 test -d ./--version && rmdir ./--version
5213506e
RW
3209 if test "${ac_cv_path_mkdir+set}" = set; then
3210 MKDIR_P="$ac_cv_path_mkdir -p"
953ff289 3211 else
5213506e
RW
3212 # As a last resort, use the slow shell script. Don't cache a
3213 # value for MKDIR_P within a source directory, because that will
3214 # break other packages using the cache if that directory is
3215 # removed, or if the value is a relative name.
5213506e 3216 MKDIR_P="$ac_install_sh -d"
953ff289
DN
3217 fi
3218fi
5213506e
RW
3219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3220$as_echo "$MKDIR_P" >&6; }
3221
953ff289
DN
3222for ac_prog in gawk mawk nawk awk
3223do
3224 # Extract the first word of "$ac_prog", so it can be a program name with args.
3225set dummy $ac_prog; ac_word=$2
5213506e
RW
3226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3227$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3228if ${ac_cv_prog_AWK+:} false; then :
5213506e 3229 $as_echo_n "(cached) " >&6
953ff289
DN
3230else
3231 if test -n "$AWK"; then
3232 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3233else
3234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3235for as_dir in $PATH
3236do
3237 IFS=$as_save_IFS
3238 test -z "$as_dir" && as_dir=.
5213506e 3239 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
953ff289 3241 ac_cv_prog_AWK="$ac_prog"
5213506e 3242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
953ff289
DN
3243 break 2
3244 fi
3245done
5213506e
RW
3246 done
3247IFS=$as_save_IFS
953ff289
DN
3248
3249fi
3250fi
3251AWK=$ac_cv_prog_AWK
3252if test -n "$AWK"; then
5213506e
RW
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3254$as_echo "$AWK" >&6; }
953ff289 3255else
5213506e
RW
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3257$as_echo "no" >&6; }
953ff289
DN
3258fi
3259
5213506e 3260
953ff289
DN
3261 test -n "$AWK" && break
3262done
3263
5213506e
RW
3264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3265$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3266set x ${MAKE-make}
3267ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
22e05272 3268if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5213506e 3269 $as_echo_n "(cached) " >&6
953ff289
DN
3270else
3271 cat >conftest.make <<\_ACEOF
5213506e 3272SHELL = /bin/sh
953ff289 3273all:
5213506e 3274 @echo '@@@%%%=$(MAKE)=@@@%%%'
953ff289 3275_ACEOF
22e05272 3276# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5213506e
RW
3277case `${MAKE-make} -f conftest.make 2>/dev/null` in
3278 *@@@%%%=?*=@@@%%%*)
3279 eval ac_cv_prog_make_${ac_make}_set=yes;;
3280 *)
3281 eval ac_cv_prog_make_${ac_make}_set=no;;
3282esac
953ff289
DN
3283rm -f conftest.make
3284fi
5213506e
RW
3285if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3287$as_echo "yes" >&6; }
953ff289
DN
3288 SET_MAKE=
3289else
5213506e
RW
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3291$as_echo "no" >&6; }
953ff289
DN
3292 SET_MAKE="MAKE=${MAKE-make}"
3293fi
3294
3295rm -rf .tst 2>/dev/null
3296mkdir .tst 2>/dev/null
3297if test -d .tst; then
3298 am__leading_dot=.
3299else
3300 am__leading_dot=_
3301fi
3302rmdir .tst 2>/dev/null
3303
22e05272
JM
3304# Check whether --enable-silent-rules was given.
3305if test "${enable_silent_rules+set}" = set; then :
3306 enableval=$enable_silent_rules;
3307fi
3308
3309case $enable_silent_rules in # (((
3310 yes) AM_DEFAULT_VERBOSITY=0;;
3311 no) AM_DEFAULT_VERBOSITY=1;;
3312 *) AM_DEFAULT_VERBOSITY=1;;
3313esac
3314am_make=${MAKE-make}
3315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3316$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3317if ${am_cv_make_support_nested_variables+:} false; then :
3318 $as_echo_n "(cached) " >&6
3319else
3320 if $as_echo 'TRUE=$(BAR$(V))
3321BAR0=false
3322BAR1=true
3323V=1
3324am__doit:
3325 @$(TRUE)
3326.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3327 am_cv_make_support_nested_variables=yes
3328else
3329 am_cv_make_support_nested_variables=no
3330fi
3331fi
3332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3333$as_echo "$am_cv_make_support_nested_variables" >&6; }
3334if test $am_cv_make_support_nested_variables = yes; then
3335 AM_V='$(V)'
3336 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3337else
3338 AM_V=$AM_DEFAULT_VERBOSITY
3339 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3340fi
3341AM_BACKSLASH='\'
3342
5213506e
RW
3343if test "`cd $srcdir && pwd`" != "`pwd`"; then
3344 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3345 # is not polluted with repeated "-I."
3346 am__isrc=' -I$(srcdir)'
3347 # test to see if srcdir already configured
3348 if test -f $srcdir/config.status; then
22e05272 3349 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5213506e 3350 fi
953ff289
DN
3351fi
3352
3353# test whether we have cygpath
3354if test -z "$CYGPATH_W"; then
3355 if (cygpath --version) >/dev/null 2>/dev/null; then
3356 CYGPATH_W='cygpath -w'
3357 else
3358 CYGPATH_W=echo
3359 fi
3360fi
3361
3362
3363# Define the identity of the package.
3364 PACKAGE='libgomp'
3365 VERSION='1.0'
3366
3367
3368cat >>confdefs.h <<_ACEOF
3369#define PACKAGE "$PACKAGE"
3370_ACEOF
3371
3372
3373cat >>confdefs.h <<_ACEOF
3374#define VERSION "$VERSION"
3375_ACEOF
3376
3377# Some tools Automake needs.
3378
3379ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3380
3381
3382AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3383
3384
3385AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3386
3387
3388AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3389
3390
3391MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3392
22e05272
JM
3393# For better backward compatibility. To be removed once Automake 1.9.x
3394# dies out for good. For more background, see:
3395# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3396# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3397mkdir_p='$(MKDIR_P)'
3398
3399# We need awk for the "check" target (and possibly the TAP driver). The
3400# system "awk" is bad on some platforms.
f96b7f1f
AM
3401# Always define AMTAR for backward compatibility. Yes, it's still used
3402# in the wild :-( We should find a proper way to deprecate it ...
3403AMTAR='$${TAR-tar}'
953ff289 3404
22e05272
JM
3405
3406# We'll loop over all known methods to create a tar archive until one works.
3407_am_tools='gnutar pax cpio none'
3408
f96b7f1f 3409am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
953ff289
DN
3410
3411
3412
3413
3414
22e05272
JM
3415
3416# POSIX will say in a future version that running "rm -f" with no argument
3417# is OK; and we want to be able to make that assumption in our Makefile
3418# recipes. So use an aggressive probe to check that the usage we want is
3419# actually supported "in the wild" to an acceptable degree.
3420# See automake bug#10828.
3421# To make any issue more visible, cause the running configure to be aborted
3422# by default if the 'rm' program in use doesn't match our expectations; the
3423# user can still override this though.
3424if rm -f && rm -fr && rm -rf; then : OK; else
3425 cat >&2 <<'END'
3426Oops!
3427
3428Your 'rm' program seems unable to run without file operands specified
3429on the command line, even when the '-f' option is present. This is contrary
3430to the behaviour of most rm programs out there, and not conforming with
3431the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3432
3433Please tell bug-automake@gnu.org about your system, including the value
3434of your $PATH and any error possibly output before this message. This
3435can help us improve future automake versions.
3436
3437END
3438 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3439 echo 'Configuration will proceed anyway, since you have set the' >&2
3440 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3441 echo >&2
3442 else
3443 cat >&2 <<'END'
3444Aborting the configuration process, to ensure you take notice of the issue.
3445
3446You can download and install GNU coreutils to get an 'rm' implementation
3447that behaves properly: <http://www.gnu.org/software/coreutils/>.
3448
3449If you want to complete the configuration process using your problematic
3450'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3451to "yes", and re-run configure.
3452
3453END
3454 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3455 fi
3456fi
3457
953ff289 3458# Default to --enable-multilib
5213506e
RW
3459# Check whether --enable-multilib was given.
3460if test "${enable_multilib+set}" = set; then :
3461 enableval=$enable_multilib; case "$enableval" in
953ff289
DN
3462 yes) multilib=yes ;;
3463 no) multilib=no ;;
22e05272 3464 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
953ff289
DN
3465 esac
3466else
3467 multilib=yes
5213506e
RW
3468fi
3469
953ff289
DN
3470
3471# We may get other options which we leave undocumented:
3472# --with-target-subdir, --with-multisrctop, --with-multisubdir
3473# See config-ml.in if you want the gory details.
3474
3475if test "$srcdir" = "."; then
3476 if test "$with_target_subdir" != "."; then
3477 multi_basedir="$srcdir/$with_multisrctop../.."
3478 else
3479 multi_basedir="$srcdir/$with_multisrctop.."
3480 fi
3481else
3482 multi_basedir="$srcdir/.."
3483fi
3484
3485
5b043f08
GK
3486# Even if the default multilib is not a cross compilation,
3487# it may be that some of the other multilibs are.
3488if test $cross_compiling = no && test $multilib = yes \
3489 && test "x${with_multisubdir}" != x ; then
3490 cross_compiling=maybe
3491fi
3492
5213506e 3493ac_config_commands="$ac_config_commands default-1"
953ff289
DN
3494
3495
3496# Calculate toolexeclibdir
3497# Also toolexecdir, though it's only used in toolexeclibdir
3498case ${enable_version_specific_runtime_libs} in
3499 yes)
3500 # Need the gcc compiler version to know where to install libraries
3501 # and header files if --enable-version-specific-runtime-libs option
3502 # is selected.
3503 toolexecdir='$(libdir)/gcc/$(target_alias)'
3504 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3505 ;;
3506 no)
3507 if test -n "$with_cross_host" &&
3508 test x"$with_cross_host" != x"no"; then
3509 # Install a library built with a cross compiler in tooldir, not libdir.
3510 toolexecdir='$(exec_prefix)/$(target_alias)'
3511 toolexeclibdir='$(toolexecdir)/lib'
3512 else
3513 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3514 toolexeclibdir='$(libdir)'
3515 fi
3516 multi_os_directory=`$CC -print-multi-os-directory`
3517 case $multi_os_directory in
3518 .) ;; # Avoid trailing /.
3519 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3520 esac
3521 ;;
3522esac
3523
3524
3525
3526# Check the compiler.
3527# The same as in boehm-gc and libstdc++. Have to borrow it from there.
3528# We must force CC to /not/ be precious variables; otherwise
3529# the wrong, non-multilib-adjusted value will be used in multilibs.
3530# As a side effect, we have to subst CFLAGS ourselves.
3531
3532
3533
3534ac_ext=c
3535ac_cpp='$CPP $CPPFLAGS'
3536ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3537ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3538ac_compiler_gnu=$ac_cv_c_compiler_gnu
3539if test -n "$ac_tool_prefix"; then
3540 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3541set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
3542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3543$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3544if ${ac_cv_prog_CC+:} false; then :
5213506e 3545 $as_echo_n "(cached) " >&6
953ff289
DN
3546else
3547 if test -n "$CC"; then
3548 ac_cv_prog_CC="$CC" # Let the user override the test.
3549else
3550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551for as_dir in $PATH
3552do
3553 IFS=$as_save_IFS
3554 test -z "$as_dir" && as_dir=.
5213506e 3555 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
953ff289 3557 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 3558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
953ff289
DN
3559 break 2
3560 fi
3561done
5213506e
RW
3562 done
3563IFS=$as_save_IFS
953ff289
DN
3564
3565fi
3566fi
3567CC=$ac_cv_prog_CC
3568if test -n "$CC"; then
5213506e
RW
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3570$as_echo "$CC" >&6; }
953ff289 3571else
5213506e
RW
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3573$as_echo "no" >&6; }
953ff289
DN
3574fi
3575
5213506e 3576
953ff289
DN
3577fi
3578if test -z "$ac_cv_prog_CC"; then
3579 ac_ct_CC=$CC
3580 # Extract the first word of "gcc", so it can be a program name with args.
3581set dummy gcc; ac_word=$2
5213506e
RW
3582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3583$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3584if ${ac_cv_prog_ac_ct_CC+:} false; then :
5213506e 3585 $as_echo_n "(cached) " >&6
953ff289
DN
3586else
3587 if test -n "$ac_ct_CC"; then
3588 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3589else
3590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591for as_dir in $PATH
3592do
3593 IFS=$as_save_IFS
3594 test -z "$as_dir" && as_dir=.
5213506e 3595 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
953ff289 3597 ac_cv_prog_ac_ct_CC="gcc"
5213506e 3598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
953ff289
DN
3599 break 2
3600 fi
3601done
5213506e
RW
3602 done
3603IFS=$as_save_IFS
953ff289
DN
3604
3605fi
3606fi
3607ac_ct_CC=$ac_cv_prog_ac_ct_CC
3608if test -n "$ac_ct_CC"; then
5213506e
RW
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3610$as_echo "$ac_ct_CC" >&6; }
953ff289 3611else
5213506e
RW
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3613$as_echo "no" >&6; }
953ff289
DN
3614fi
3615
5213506e
RW
3616 if test "x$ac_ct_CC" = x; then
3617 CC=""
3618 else
3619 case $cross_compiling:$ac_tool_warned in
3620yes:)
3621{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3622$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3623ac_tool_warned=yes ;;
3624esac
3625 CC=$ac_ct_CC
3626 fi
953ff289
DN
3627else
3628 CC="$ac_cv_prog_CC"
3629fi
3630
3631if test -z "$CC"; then
5213506e
RW
3632 if test -n "$ac_tool_prefix"; then
3633 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
953ff289 3634set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
3635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3636$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3637if ${ac_cv_prog_CC+:} false; then :
5213506e 3638 $as_echo_n "(cached) " >&6
953ff289
DN
3639else
3640 if test -n "$CC"; then
3641 ac_cv_prog_CC="$CC" # Let the user override the test.
3642else
3643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3644for as_dir in $PATH
3645do
3646 IFS=$as_save_IFS
3647 test -z "$as_dir" && as_dir=.
5213506e 3648 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
953ff289 3650 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 3651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
953ff289
DN
3652 break 2
3653 fi
3654done
5213506e
RW
3655 done
3656IFS=$as_save_IFS
953ff289
DN
3657
3658fi
3659fi
3660CC=$ac_cv_prog_CC
3661if test -n "$CC"; then
5213506e
RW
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3663$as_echo "$CC" >&6; }
953ff289 3664else
5213506e
RW
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3666$as_echo "no" >&6; }
953ff289
DN
3667fi
3668
953ff289 3669
5213506e 3670 fi
953ff289
DN
3671fi
3672if test -z "$CC"; then
3673 # Extract the first word of "cc", so it can be a program name with args.
3674set dummy cc; ac_word=$2
5213506e
RW
3675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3676$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3677if ${ac_cv_prog_CC+:} false; then :
5213506e 3678 $as_echo_n "(cached) " >&6
953ff289
DN
3679else
3680 if test -n "$CC"; then
3681 ac_cv_prog_CC="$CC" # Let the user override the test.
3682else
3683 ac_prog_rejected=no
3684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3685for as_dir in $PATH
3686do
3687 IFS=$as_save_IFS
3688 test -z "$as_dir" && as_dir=.
5213506e 3689 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
953ff289
DN
3691 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3692 ac_prog_rejected=yes
3693 continue
3694 fi
3695 ac_cv_prog_CC="cc"
5213506e 3696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
953ff289
DN
3697 break 2
3698 fi
3699done
5213506e
RW
3700 done
3701IFS=$as_save_IFS
953ff289
DN
3702
3703if test $ac_prog_rejected = yes; then
3704 # We found a bogon in the path, so make sure we never use it.
3705 set dummy $ac_cv_prog_CC
3706 shift
3707 if test $# != 0; then
3708 # We chose a different compiler from the bogus one.
3709 # However, it has the same basename, so the bogon will be chosen
3710 # first if we set CC to just the basename; use the full file name.
3711 shift
3712 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3713 fi
3714fi
3715fi
3716fi
3717CC=$ac_cv_prog_CC
3718if test -n "$CC"; then
5213506e
RW
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3720$as_echo "$CC" >&6; }
953ff289 3721else
5213506e
RW
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3723$as_echo "no" >&6; }
953ff289
DN
3724fi
3725
5213506e 3726
953ff289
DN
3727fi
3728if test -z "$CC"; then
3729 if test -n "$ac_tool_prefix"; then
5213506e 3730 for ac_prog in cl.exe
953ff289
DN
3731 do
3732 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3733set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
3734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3735$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3736if ${ac_cv_prog_CC+:} false; then :
5213506e 3737 $as_echo_n "(cached) " >&6
953ff289
DN
3738else
3739 if test -n "$CC"; then
3740 ac_cv_prog_CC="$CC" # Let the user override the test.
3741else
3742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3743for as_dir in $PATH
3744do
3745 IFS=$as_save_IFS
3746 test -z "$as_dir" && as_dir=.
5213506e 3747 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
953ff289 3749 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 3750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
953ff289
DN
3751 break 2
3752 fi
3753done
5213506e
RW
3754 done
3755IFS=$as_save_IFS
953ff289
DN
3756
3757fi
3758fi
3759CC=$ac_cv_prog_CC
3760if test -n "$CC"; then
5213506e
RW
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3762$as_echo "$CC" >&6; }
953ff289 3763else
5213506e
RW
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3765$as_echo "no" >&6; }
953ff289
DN
3766fi
3767
5213506e 3768
953ff289
DN
3769 test -n "$CC" && break
3770 done
3771fi
3772if test -z "$CC"; then
3773 ac_ct_CC=$CC
5213506e 3774 for ac_prog in cl.exe
953ff289
DN
3775do
3776 # Extract the first word of "$ac_prog", so it can be a program name with args.
3777set dummy $ac_prog; ac_word=$2
5213506e
RW
3778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3779$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3780if ${ac_cv_prog_ac_ct_CC+:} false; then :
5213506e 3781 $as_echo_n "(cached) " >&6
953ff289
DN
3782else
3783 if test -n "$ac_ct_CC"; then
3784 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3785else
3786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3787for as_dir in $PATH
3788do
3789 IFS=$as_save_IFS
3790 test -z "$as_dir" && as_dir=.
5213506e 3791 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
953ff289 3793 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 3794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
953ff289
DN
3795 break 2
3796 fi
3797done
5213506e
RW
3798 done
3799IFS=$as_save_IFS
953ff289
DN
3800
3801fi
3802fi
3803ac_ct_CC=$ac_cv_prog_ac_ct_CC
3804if test -n "$ac_ct_CC"; then
5213506e
RW
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3806$as_echo "$ac_ct_CC" >&6; }
953ff289 3807else
5213506e
RW
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3809$as_echo "no" >&6; }
953ff289
DN
3810fi
3811
5213506e 3812
953ff289
DN
3813 test -n "$ac_ct_CC" && break
3814done
3815
5213506e
RW
3816 if test "x$ac_ct_CC" = x; then
3817 CC=""
3818 else
3819 case $cross_compiling:$ac_tool_warned in
3820yes:)
3821{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3822$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3823ac_tool_warned=yes ;;
3824esac
3825 CC=$ac_ct_CC
3826 fi
953ff289
DN
3827fi
3828
3829fi
3830
3831
5213506e
RW
3832test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3833$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3834as_fn_error $? "no acceptable C compiler found in \$PATH
3835See \`config.log' for more details" "$LINENO" 5; }
953ff289
DN
3836
3837# Provide some information about the compiler.
5213506e
RW
3838$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3839set X $ac_compile
3840ac_compiler=$2
3841for ac_option in --version -v -V -qversion; do
3842 { { ac_try="$ac_compiler $ac_option >&5"
3843case "(($ac_try" in
3844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3845 *) ac_try_echo=$ac_try;;
3846esac
3847eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3848$as_echo "$ac_try_echo"; } >&5
3849 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
953ff289 3850 ac_status=$?
5213506e
RW
3851 if test -s conftest.err; then
3852 sed '10a\
3853... rest of stderr output deleted ...
3854 10q' conftest.err >conftest.er1
3855 cat conftest.er1 >&5
5213506e 3856 fi
22e05272 3857 rm -f conftest.er1 conftest.err
5213506e
RW
3858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3859 test $ac_status = 0; }
3860done
953ff289 3861
5213506e 3862cat confdefs.h - <<_ACEOF >conftest.$ac_ext
953ff289
DN
3863/* end confdefs.h. */
3864
3865int
3866main ()
3867{
3868
3869 ;
3870 return 0;
3871}
3872_ACEOF
3873ac_clean_files_save=$ac_clean_files
22e05272 3874ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
953ff289
DN
3875# Try to create an executable without -o first, disregard a.out.
3876# It will help us diagnose broken compilers, and finding out an intuition
3877# of exeext.
22e05272
JM
3878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3879$as_echo_n "checking whether the C compiler works... " >&6; }
5213506e
RW
3880ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3881
3882# The possible output files:
3883ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3884
3885ac_rmfiles=
3886for ac_file in $ac_files
3887do
3888 case $ac_file in
3889 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3890 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3891 esac
3892done
3893rm -f $ac_rmfiles
3894
3895if { { ac_try="$ac_link_default"
3896case "(($ac_try" in
3897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3898 *) ac_try_echo=$ac_try;;
3899esac
3900eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3901$as_echo "$ac_try_echo"; } >&5
3902 (eval "$ac_link_default") 2>&5
3903 ac_status=$?
3904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3905 test $ac_status = 0; }; then :
3906 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3907# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3908# in a Makefile. We should not override ac_cv_exeext if it was cached,
3909# so that the user can short-circuit this test for compilers unknown to
3910# Autoconf.
3911for ac_file in $ac_files ''
953ff289
DN
3912do
3913 test -f "$ac_file" || continue
3914 case $ac_file in
5213506e 3915 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
953ff289
DN
3916 ;;
3917 [ab].out )
3918 # We found the default executable, but exeext='' is most
3919 # certainly right.
3920 break;;
3921 *.* )
5213506e
RW
3922 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3923 then :; else
3924 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3925 fi
3926 # We set ac_cv_exeext here because the later test for it is not
3927 # safe: cross compilers may not add the suffix if given an `-o'
3928 # argument, so we may need to know it at that point already.
3929 # Even if this section looks crufty: it has the advantage of
3930 # actually working.
953ff289
DN
3931 break;;
3932 * )
3933 break;;
3934 esac
3935done
5213506e
RW
3936test "$ac_cv_exeext" = no && ac_cv_exeext=
3937
953ff289 3938else
5213506e
RW
3939 ac_file=''
3940fi
5213506e 3941if test -z "$ac_file"; then :
22e05272
JM
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3943$as_echo "no" >&6; }
3944$as_echo "$as_me: failed program was:" >&5
953ff289
DN
3945sed 's/^/| /' conftest.$ac_ext >&5
3946
5213506e
RW
3947{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3948$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3949as_fn_error 77 "C compiler cannot create executables
3950See \`config.log' for more details" "$LINENO" 5; }
3951else
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3953$as_echo "yes" >&6; }
953ff289 3954fi
22e05272
JM
3955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3956$as_echo_n "checking for C compiler default output file name... " >&6; }
3957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3958$as_echo "$ac_file" >&6; }
953ff289 3959ac_exeext=$ac_cv_exeext
953ff289 3960
22e05272 3961rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
953ff289 3962ac_clean_files=$ac_clean_files_save
5213506e
RW
3963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3964$as_echo_n "checking for suffix of executables... " >&6; }
3965if { { ac_try="$ac_link"
3966case "(($ac_try" in
3967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968 *) ac_try_echo=$ac_try;;
3969esac
3970eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3971$as_echo "$ac_try_echo"; } >&5
3972 (eval "$ac_link") 2>&5
953ff289 3973 ac_status=$?
5213506e
RW
3974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3975 test $ac_status = 0; }; then :
953ff289
DN
3976 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3977# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3978# work properly (i.e., refer to `conftest.exe'), while it won't with
3979# `rm'.
3980for ac_file in conftest.exe conftest conftest.*; do
3981 test -f "$ac_file" || continue
3982 case $ac_file in
5213506e 3983 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
953ff289 3984 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
953ff289
DN
3985 break;;
3986 * ) break;;
3987 esac
3988done
3989else
5213506e
RW
3990 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3991$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3992as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3993See \`config.log' for more details" "$LINENO" 5; }
953ff289 3994fi
22e05272 3995rm -f conftest conftest$ac_cv_exeext
5213506e
RW
3996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3997$as_echo "$ac_cv_exeext" >&6; }
953ff289
DN
3998
3999rm -f conftest.$ac_ext
4000EXEEXT=$ac_cv_exeext
4001ac_exeext=$EXEEXT
22e05272
JM
4002cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4003/* end confdefs.h. */
4004#include <stdio.h>
4005int
4006main ()
4007{
4008FILE *f = fopen ("conftest.out", "w");
4009 return ferror (f) || fclose (f) != 0;
4010
4011 ;
4012 return 0;
4013}
4014_ACEOF
4015ac_clean_files="$ac_clean_files conftest.out"
4016# Check that the compiler produces executables we can run. If not, either
4017# the compiler is broken, or we cross compile.
4018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4019$as_echo_n "checking whether we are cross compiling... " >&6; }
4020if test "$cross_compiling" != yes; then
4021 { { ac_try="$ac_link"
4022case "(($ac_try" in
4023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4024 *) ac_try_echo=$ac_try;;
4025esac
4026eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4027$as_echo "$ac_try_echo"; } >&5
4028 (eval "$ac_link") 2>&5
4029 ac_status=$?
4030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4031 test $ac_status = 0; }
4032 if { ac_try='./conftest$ac_cv_exeext'
4033 { { case "(($ac_try" in
4034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4035 *) ac_try_echo=$ac_try;;
4036esac
4037eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4038$as_echo "$ac_try_echo"; } >&5
4039 (eval "$ac_try") 2>&5
4040 ac_status=$?
4041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4042 test $ac_status = 0; }; }; then
4043 cross_compiling=no
4044 else
4045 if test "$cross_compiling" = maybe; then
4046 cross_compiling=yes
4047 else
4048 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4049$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4050as_fn_error $? "cannot run C compiled programs.
4051If you meant to cross compile, use \`--host'.
4052See \`config.log' for more details" "$LINENO" 5; }
4053 fi
4054 fi
4055fi
4056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4057$as_echo "$cross_compiling" >&6; }
4058
4059rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4060ac_clean_files=$ac_clean_files_save
5213506e
RW
4061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4062$as_echo_n "checking for suffix of object files... " >&6; }
22e05272 4063if ${ac_cv_objext+:} false; then :
5213506e 4064 $as_echo_n "(cached) " >&6
953ff289 4065else
5213506e 4066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
953ff289
DN
4067/* end confdefs.h. */
4068
4069int
4070main ()
4071{
4072
4073 ;
4074 return 0;
4075}
4076_ACEOF
4077rm -f conftest.o conftest.obj
5213506e
RW
4078if { { ac_try="$ac_compile"
4079case "(($ac_try" in
4080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4081 *) ac_try_echo=$ac_try;;
4082esac
4083eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4084$as_echo "$ac_try_echo"; } >&5
4085 (eval "$ac_compile") 2>&5
4086 ac_status=$?
4087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4088 test $ac_status = 0; }; then :
4089 for ac_file in conftest.o conftest.obj conftest.*; do
4090 test -f "$ac_file" || continue;
953ff289 4091 case $ac_file in
5213506e 4092 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
953ff289
DN
4093 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4094 break;;
4095 esac
4096done
4097else
5213506e 4098 $as_echo "$as_me: failed program was:" >&5
953ff289
DN
4099sed 's/^/| /' conftest.$ac_ext >&5
4100
5213506e
RW
4101{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4102$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4103as_fn_error $? "cannot compute suffix of object files: cannot compile
4104See \`config.log' for more details" "$LINENO" 5; }
953ff289 4105fi
953ff289
DN
4106rm -f conftest.$ac_cv_objext conftest.$ac_ext
4107fi
5213506e
RW
4108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4109$as_echo "$ac_cv_objext" >&6; }
953ff289
DN
4110OBJEXT=$ac_cv_objext
4111ac_objext=$OBJEXT
5213506e
RW
4112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4113$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 4114if ${ac_cv_c_compiler_gnu+:} false; then :
5213506e 4115 $as_echo_n "(cached) " >&6
953ff289 4116else
5213506e 4117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
953ff289
DN
4118/* end confdefs.h. */
4119
4120int
4121main ()
4122{
4123#ifndef __GNUC__
4124 choke me
4125#endif
4126
4127 ;
4128 return 0;
4129}
4130_ACEOF
5213506e 4131if ac_fn_c_try_compile "$LINENO"; then :
953ff289
DN
4132 ac_compiler_gnu=yes
4133else
5213506e 4134 ac_compiler_gnu=no
953ff289 4135fi
5213506e 4136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
953ff289
DN
4137ac_cv_c_compiler_gnu=$ac_compiler_gnu
4138
4139fi
5213506e
RW
4140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4141$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4142if test $ac_compiler_gnu = yes; then
4143 GCC=yes
4144else
4145 GCC=
4146fi
953ff289
DN
4147ac_test_CFLAGS=${CFLAGS+set}
4148ac_save_CFLAGS=$CFLAGS
5213506e
RW
4149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4150$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 4151if ${ac_cv_prog_cc_g+:} false; then :
5213506e
RW
4152 $as_echo_n "(cached) " >&6
4153else
4154 ac_save_c_werror_flag=$ac_c_werror_flag
4155 ac_c_werror_flag=yes
4156 ac_cv_prog_cc_g=no
4157 CFLAGS="-g"
4158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
953ff289
DN
4159/* end confdefs.h. */
4160
4161int
4162main ()
4163{
4164
4165 ;
4166 return 0;
4167}
4168_ACEOF
5213506e 4169if ac_fn_c_try_compile "$LINENO"; then :
953ff289
DN
4170 ac_cv_prog_cc_g=yes
4171else
5213506e
RW
4172 CFLAGS=""
4173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4174/* end confdefs.h. */
4175
4176int
4177main ()
4178{
4179
4180 ;
4181 return 0;
4182}
4183_ACEOF
4184if ac_fn_c_try_compile "$LINENO"; then :
4185
4186else
4187 ac_c_werror_flag=$ac_save_c_werror_flag
4188 CFLAGS="-g"
4189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4190/* end confdefs.h. */
4191
4192int
4193main ()
4194{
953ff289 4195
5213506e
RW
4196 ;
4197 return 0;
4198}
4199_ACEOF
4200if ac_fn_c_try_compile "$LINENO"; then :
4201 ac_cv_prog_cc_g=yes
953ff289 4202fi
5213506e 4203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
953ff289 4204fi
5213506e
RW
4205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4206fi
4207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4208 ac_c_werror_flag=$ac_save_c_werror_flag
4209fi
4210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4211$as_echo "$ac_cv_prog_cc_g" >&6; }
953ff289
DN
4212if test "$ac_test_CFLAGS" = set; then
4213 CFLAGS=$ac_save_CFLAGS
4214elif test $ac_cv_prog_cc_g = yes; then
4215 if test "$GCC" = yes; then
4216 CFLAGS="-g -O2"
4217 else
4218 CFLAGS="-g"
4219 fi
4220else
4221 if test "$GCC" = yes; then
4222 CFLAGS="-O2"
4223 else
4224 CFLAGS=
4225 fi
4226fi
5213506e
RW
4227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4228$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 4229if ${ac_cv_prog_cc_c89+:} false; then :
5213506e 4230 $as_echo_n "(cached) " >&6
953ff289 4231else
5213506e 4232 ac_cv_prog_cc_c89=no
953ff289 4233ac_save_CC=$CC
5213506e 4234cat confdefs.h - <<_ACEOF >conftest.$ac_ext
953ff289
DN
4235/* end confdefs.h. */
4236#include <stdarg.h>
4237#include <stdio.h>
22e05272 4238struct stat;
953ff289
DN
4239/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4240struct buf { int x; };
4241FILE * (*rcsopen) (struct buf *, struct stat *, int);
4242static char *e (p, i)
4243 char **p;
4244 int i;
4245{
4246 return p[i];
4247}
4248static char *f (char * (*g) (char **, int), char **p, ...)
4249{
4250 char *s;
4251 va_list v;
4252 va_start (v,p);
4253 s = g (p, va_arg (v,int));
4254 va_end (v);
4255 return s;
4256}
4257
4258/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4259 function prototypes and stuff, but not '\xHH' hex character constants.
4260 These don't provoke an error unfortunately, instead are silently treated
5213506e 4261 as 'x'. The following induces an error, until -std is added to get
953ff289
DN
4262 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4263 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4264 that's true only with -std. */
953ff289
DN
4265int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4266
5213506e
RW
4267/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4268 inside strings and character constants. */
4269#define FOO(x) 'x'
4270int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4271
953ff289
DN
4272int test (int i, double x);
4273struct s1 {int (*f) (int a);};
4274struct s2 {int (*f) (double a);};
4275int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4276int argc;
4277char **argv;
4278int
4279main ()
4280{
4281return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4282 ;
4283 return 0;
4284}
4285_ACEOF
5213506e
RW
4286for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4287 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
953ff289
DN
4288do
4289 CC="$ac_save_CC $ac_arg"
5213506e
RW
4290 if ac_fn_c_try_compile "$LINENO"; then :
4291 ac_cv_prog_cc_c89=$ac_arg
953ff289 4292fi
5213506e
RW
4293rm -f core conftest.err conftest.$ac_objext
4294 test "x$ac_cv_prog_cc_c89" != "xno" && break
953ff289 4295done
5213506e 4296rm -f conftest.$ac_ext
953ff289
DN
4297CC=$ac_save_CC
4298
4299fi
5213506e
RW
4300# AC_CACHE_VAL
4301case "x$ac_cv_prog_cc_c89" in
4302 x)
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4304$as_echo "none needed" >&6; } ;;
4305 xno)
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4307$as_echo "unsupported" >&6; } ;;
953ff289 4308 *)
5213506e
RW
4309 CC="$CC $ac_cv_prog_cc_c89"
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4311$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
953ff289 4312esac
5213506e 4313if test "x$ac_cv_prog_cc_c89" != xno; then :
953ff289 4314
953ff289
DN
4315fi
4316
953ff289
DN
4317ac_ext=c
4318ac_cpp='$CPP $CPPFLAGS'
4319ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4320ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4321ac_compiler_gnu=$ac_cv_c_compiler_gnu
22e05272
JM
4322
4323ac_ext=c
4324ac_cpp='$CPP $CPPFLAGS'
4325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4327ac_compiler_gnu=$ac_cv_c_compiler_gnu
4328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4329$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4330if ${am_cv_prog_cc_c_o+:} false; then :
4331 $as_echo_n "(cached) " >&6
4332else
4333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4334/* end confdefs.h. */
4335
4336int
4337main ()
4338{
4339
4340 ;
4341 return 0;
4342}
4343_ACEOF
4344 # Make sure it works both with $CC and with simple cc.
4345 # Following AC_PROG_CC_C_O, we do the test twice because some
4346 # compilers refuse to overwrite an existing .o file with -o,
4347 # though they will create one.
4348 am_cv_prog_cc_c_o=yes
4349 for am_i in 1 2; do
4350 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4351 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4352 ac_status=$?
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); } \
4355 && test -f conftest2.$ac_objext; then
4356 : OK
4357 else
4358 am_cv_prog_cc_c_o=no
4359 break
4360 fi
4361 done
4362 rm -f core conftest*
4363 unset am_i
4364fi
4365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4366$as_echo "$am_cv_prog_cc_c_o" >&6; }
4367if test "$am_cv_prog_cc_c_o" != yes; then
4368 # Losing compiler, so override with the script.
4369 # FIXME: It is wrong to rewrite CC.
4370 # But if we don't then we get into trouble of one sort or another.
4371 # A longer-term fix would be to have automake use am__CC in this case,
4372 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4373 CC="$am_aux_dir/compile $CC"
4374fi
4375ac_ext=c
4376ac_cpp='$CPP $CPPFLAGS'
4377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4379ac_compiler_gnu=$ac_cv_c_compiler_gnu
4380
953ff289
DN
4381DEPDIR="${am__leading_dot}deps"
4382
5213506e 4383ac_config_commands="$ac_config_commands depfiles"
953ff289
DN
4384
4385
4386am_make=${MAKE-make}
4387cat > confinc << 'END'
4388am__doit:
5213506e 4389 @echo this is the am__doit target
953ff289
DN
4390.PHONY: am__doit
4391END
4392# If we don't find an include directive, just comment out the code.
5213506e
RW
4393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4394$as_echo_n "checking for style of include used by $am_make... " >&6; }
953ff289
DN
4395am__include="#"
4396am__quote=
4397_am_result=none
4398# First try GNU make style include.
4399echo "include confinc" > confmf
22e05272 4400# Ignore all kinds of additional output from 'make'.
5213506e
RW
4401case `$am_make -s -f confmf 2> /dev/null` in #(
4402*the\ am__doit\ target*)
4403 am__include=include
4404 am__quote=
4405 _am_result=GNU
4406 ;;
4407esac
953ff289
DN
4408# Now try BSD make style include.
4409if test "$am__include" = "#"; then
4410 echo '.include "confinc"' > confmf
5213506e
RW
4411 case `$am_make -s -f confmf 2> /dev/null` in #(
4412 *the\ am__doit\ target*)
4413 am__include=.include
4414 am__quote="\""
4415 _am_result=BSD
4416 ;;
4417 esac
953ff289
DN
4418fi
4419
4420
5213506e
RW
4421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4422$as_echo "$_am_result" >&6; }
953ff289
DN
4423rm -f confinc confmf
4424
5213506e
RW
4425# Check whether --enable-dependency-tracking was given.
4426if test "${enable_dependency_tracking+set}" = set; then :
4427 enableval=$enable_dependency_tracking;
4428fi
953ff289 4429
953ff289
DN
4430if test "x$enable_dependency_tracking" != xno; then
4431 am_depcomp="$ac_aux_dir/depcomp"
4432 AMDEPBACKSLASH='\'
f96b7f1f 4433 am__nodep='_no'
953ff289 4434fi
5213506e 4435 if test "x$enable_dependency_tracking" != xno; then
953ff289
DN
4436 AMDEP_TRUE=
4437 AMDEP_FALSE='#'
4438else
4439 AMDEP_TRUE='#'
4440 AMDEP_FALSE=
4441fi
4442
4443
4444
953ff289
DN
4445depcc="$CC" am_compiler_list=
4446
5213506e
RW
4447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4448$as_echo_n "checking dependency style of $depcc... " >&6; }
22e05272 4449if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5213506e 4450 $as_echo_n "(cached) " >&6
953ff289
DN
4451else
4452 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4453 # We make a subdir and do the tests there. Otherwise we can end up
4454 # making bogus files that we don't know about and never remove. For
4455 # instance it was reported that on HP-UX the gcc test will end up
22e05272
JM
4456 # making a dummy file named 'D' -- because '-MD' means "put the output
4457 # in D".
f96b7f1f 4458 rm -rf conftest.dir
953ff289
DN
4459 mkdir conftest.dir
4460 # Copy depcomp to subdir because otherwise we won't find it if we're
4461 # using a relative directory.
4462 cp "$am_depcomp" conftest.dir
4463 cd conftest.dir
4464 # We will build objects and dependencies in a subdirectory because
4465 # it helps to detect inapplicable dependency modes. For instance
4466 # both Tru64's cc and ICC support -MD to output dependencies as a
4467 # side effect of compilation, but ICC will put the dependencies in
4468 # the current directory while Tru64 will put them in the object
4469 # directory.
4470 mkdir sub
4471
4472 am_cv_CC_dependencies_compiler_type=none
4473 if test "$am_compiler_list" = ""; then
4474 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4475 fi
5213506e
RW
4476 am__universal=false
4477 case " $depcc " in #(
4478 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4479 esac
4480
953ff289
DN
4481 for depmode in $am_compiler_list; do
4482 # Setup a source with many dependencies, because some compilers
4483 # like to wrap large dependency lists on column 80 (with \), and
4484 # we should not choose a depcomp mode which is confused by this.
4485 #
4486 # We need to recreate these files for each test, as the compiler may
4487 # overwrite some of them when testing with obscure command lines.
4488 # This happens at least with the AIX C compiler.
4489 : > sub/conftest.c
4490 for i in 1 2 3 4 5 6; do
4491 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22e05272
JM
4492 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4493 # Solaris 10 /bin/sh.
4494 echo '/* dummy */' > sub/conftst$i.h
953ff289
DN
4495 done
4496 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4497
22e05272 4498 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5213506e 4499 # mode. It turns out that the SunPro C++ compiler does not properly
22e05272
JM
4500 # handle '-M -o', and we need to detect this. Also, some Intel
4501 # versions had trouble with output in subdirs.
5213506e
RW
4502 am__obj=sub/conftest.${OBJEXT-o}
4503 am__minus_obj="-o $am__obj"
953ff289 4504 case $depmode in
5213506e
RW
4505 gcc)
4506 # This depmode causes a compiler race in universal mode.
4507 test "$am__universal" = false || continue
4508 ;;
953ff289 4509 nosideeffect)
22e05272
JM
4510 # After this tag, mechanisms are not by side-effect, so they'll
4511 # only be used when explicitly requested.
953ff289
DN
4512 if test "x$enable_dependency_tracking" = xyes; then
4513 continue
4514 else
4515 break
4516 fi
4517 ;;
f96b7f1f 4518 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
22e05272 4519 # This compiler won't grok '-c -o', but also, the minuso test has
5213506e
RW
4520 # not run yet. These depmodes are late enough in the game, and
4521 # so weak that their functioning should not be impacted.
4522 am__obj=conftest.${OBJEXT-o}
4523 am__minus_obj=
4524 ;;
953ff289
DN
4525 none) break ;;
4526 esac
953ff289 4527 if depmode=$depmode \
5213506e 4528 source=sub/conftest.c object=$am__obj \
953ff289 4529 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5213506e 4530 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
953ff289 4531 >/dev/null 2>conftest.err &&
5213506e 4532 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
953ff289 4533 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5213506e 4534 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
953ff289
DN
4535 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4536 # icc doesn't choke on unknown options, it will just issue warnings
4537 # or remarks (even with -Werror). So we grep stderr for any message
4538 # that says an option was ignored or not supported.
4539 # When given -MP, icc 7.0 and 7.1 complain thusly:
4540 # icc: Command line warning: ignoring option '-M'; no argument required
4541 # The diagnosis changed in icc 8.0:
4542 # icc: Command line remark: option '-MP' not supported
4543 if (grep 'ignoring option' conftest.err ||
4544 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4545 am_cv_CC_dependencies_compiler_type=$depmode
4546 break
4547 fi
4548 fi
4549 done
4550
4551 cd ..
4552 rm -rf conftest.dir
4553else
4554 am_cv_CC_dependencies_compiler_type=none
4555fi
4556
4557fi
5213506e
RW
4558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4559$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
953ff289
DN
4560CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4561
5213506e 4562 if
953ff289
DN
4563 test "x$enable_dependency_tracking" != xno \
4564 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4565 am__fastdepCC_TRUE=
4566 am__fastdepCC_FALSE='#'
4567else
4568 am__fastdepCC_TRUE='#'
4569 am__fastdepCC_FALSE=
4570fi
4571
4572
4573
4574
4575
4576
4577# In order to override CFLAGS_FOR_TARGET, all of our special flags go
4578# in XCFLAGS. But we need them in CFLAGS during configury. So put them
4579# in both places for now and restore CFLAGS at the end of config.
4580save_CFLAGS="$CFLAGS"
4581
4582# Add -Wall -Werror if we are using GCC.
4583if test "x$GCC" = "xyes"; then
4584 XCFLAGS="$XCFLAGS -Wall -Werror"
4585fi
4586
4587# Find other programs we need.
4588if test -n "$ac_tool_prefix"; then
4589 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4590set dummy ${ac_tool_prefix}ar; ac_word=$2
5213506e
RW
4591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4592$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4593if ${ac_cv_prog_AR+:} false; then :
5213506e 4594 $as_echo_n "(cached) " >&6
953ff289
DN
4595else
4596 if test -n "$AR"; then
4597 ac_cv_prog_AR="$AR" # Let the user override the test.
4598else
4599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600for as_dir in $PATH
4601do
4602 IFS=$as_save_IFS
4603 test -z "$as_dir" && as_dir=.
5213506e 4604 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
953ff289 4606 ac_cv_prog_AR="${ac_tool_prefix}ar"
5213506e 4607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
953ff289
DN
4608 break 2
4609 fi
4610done
5213506e
RW
4611 done
4612IFS=$as_save_IFS
953ff289
DN
4613
4614fi
4615fi
4616AR=$ac_cv_prog_AR
4617if test -n "$AR"; then
5213506e
RW
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4619$as_echo "$AR" >&6; }
953ff289 4620else
5213506e
RW
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4622$as_echo "no" >&6; }
953ff289
DN
4623fi
4624
5213506e 4625
953ff289
DN
4626fi
4627if test -z "$ac_cv_prog_AR"; then
4628 ac_ct_AR=$AR
4629 # Extract the first word of "ar", so it can be a program name with args.
4630set dummy ar; ac_word=$2
5213506e
RW
4631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4632$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4633if ${ac_cv_prog_ac_ct_AR+:} false; then :
5213506e 4634 $as_echo_n "(cached) " >&6
953ff289
DN
4635else
4636 if test -n "$ac_ct_AR"; then
4637 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4638else
4639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640for as_dir in $PATH
4641do
4642 IFS=$as_save_IFS
4643 test -z "$as_dir" && as_dir=.
5213506e 4644 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
953ff289 4646 ac_cv_prog_ac_ct_AR="ar"
5213506e 4647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
953ff289
DN
4648 break 2
4649 fi
4650done
5213506e
RW
4651 done
4652IFS=$as_save_IFS
953ff289
DN
4653
4654fi
4655fi
4656ac_ct_AR=$ac_cv_prog_ac_ct_AR
4657if test -n "$ac_ct_AR"; then
5213506e
RW
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4659$as_echo "$ac_ct_AR" >&6; }
953ff289 4660else
5213506e
RW
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4662$as_echo "no" >&6; }
953ff289
DN
4663fi
4664
5213506e
RW
4665 if test "x$ac_ct_AR" = x; then
4666 AR=""
4667 else
4668 case $cross_compiling:$ac_tool_warned in
4669yes:)
4670{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4671$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4672ac_tool_warned=yes ;;
4673esac
4674 AR=$ac_ct_AR
4675 fi
953ff289
DN
4676else
4677 AR="$ac_cv_prog_AR"
4678fi
4679
4680if test -n "$ac_tool_prefix"; then
4681 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4682set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5213506e
RW
4683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4684$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4685if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 4686 $as_echo_n "(cached) " >&6
953ff289
DN
4687else
4688 if test -n "$RANLIB"; then
4689 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4690else
4691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4692for as_dir in $PATH
4693do
4694 IFS=$as_save_IFS
4695 test -z "$as_dir" && as_dir=.
5213506e 4696 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
953ff289 4698 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5213506e 4699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
953ff289
DN
4700 break 2
4701 fi
4702done
5213506e
RW
4703 done
4704IFS=$as_save_IFS
953ff289
DN
4705
4706fi
4707fi
4708RANLIB=$ac_cv_prog_RANLIB
4709if test -n "$RANLIB"; then
5213506e
RW
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4711$as_echo "$RANLIB" >&6; }
953ff289 4712else
5213506e
RW
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4714$as_echo "no" >&6; }
953ff289
DN
4715fi
4716
5213506e 4717
953ff289
DN
4718fi
4719if test -z "$ac_cv_prog_RANLIB"; then
4720 ac_ct_RANLIB=$RANLIB
4721 # Extract the first word of "ranlib", so it can be a program name with args.
4722set dummy ranlib; ac_word=$2
5213506e
RW
4723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4724$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4725if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5213506e 4726 $as_echo_n "(cached) " >&6
953ff289
DN
4727else
4728 if test -n "$ac_ct_RANLIB"; then
4729 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4730else
4731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4732for as_dir in $PATH
4733do
4734 IFS=$as_save_IFS
4735 test -z "$as_dir" && as_dir=.
5213506e 4736 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
953ff289 4738 ac_cv_prog_ac_ct_RANLIB="ranlib"
5213506e 4739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
953ff289
DN
4740 break 2
4741 fi
4742done
5213506e
RW
4743 done
4744IFS=$as_save_IFS
953ff289 4745
953ff289
DN
4746fi
4747fi
4748ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4749if test -n "$ac_ct_RANLIB"; then
5213506e
RW
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4751$as_echo "$ac_ct_RANLIB" >&6; }
953ff289 4752else
5213506e
RW
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4754$as_echo "no" >&6; }
953ff289
DN
4755fi
4756
5213506e
RW
4757 if test "x$ac_ct_RANLIB" = x; then
4758 RANLIB="ranlib-not-found-in-path-error"
4759 else
4760 case $cross_compiling:$ac_tool_warned in
4761yes:)
4762{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4763$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4764ac_tool_warned=yes ;;
4765esac
4766 RANLIB=$ac_ct_RANLIB
4767 fi
953ff289
DN
4768else
4769 RANLIB="$ac_cv_prog_RANLIB"
4770fi
4771
4772# Extract the first word of "perl", so it can be a program name with args.
4773set dummy perl; ac_word=$2
5213506e
RW
4774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4775$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4776if ${ac_cv_path_PERL+:} false; then :
5213506e 4777 $as_echo_n "(cached) " >&6
953ff289
DN
4778else
4779 case $PERL in
4780 [\\/]* | ?:[\\/]*)
4781 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4782 ;;
4783 *)
4784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785for as_dir in $PATH
4786do
4787 IFS=$as_save_IFS
4788 test -z "$as_dir" && as_dir=.
5213506e 4789 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
953ff289 4791 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5213506e 4792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
953ff289
DN
4793 break 2
4794 fi
4795done
5213506e
RW
4796 done
4797IFS=$as_save_IFS
953ff289
DN
4798
4799 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
4800 ;;
4801esac
4802fi
4803PERL=$ac_cv_path_PERL
953ff289 4804if test -n "$PERL"; then
5213506e
RW
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4806$as_echo "$PERL" >&6; }
953ff289 4807else
5213506e
RW
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4809$as_echo "no" >&6; }
953ff289
DN
4810fi
4811
5213506e
RW
4812
4813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4814$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4815set x ${MAKE-make}
4816ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
22e05272 4817if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5213506e 4818 $as_echo_n "(cached) " >&6
953ff289
DN
4819else
4820 cat >conftest.make <<\_ACEOF
5213506e 4821SHELL = /bin/sh
953ff289 4822all:
5213506e 4823 @echo '@@@%%%=$(MAKE)=@@@%%%'
953ff289 4824_ACEOF
22e05272 4825# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5213506e
RW
4826case `${MAKE-make} -f conftest.make 2>/dev/null` in
4827 *@@@%%%=?*=@@@%%%*)
4828 eval ac_cv_prog_make_${ac_make}_set=yes;;
4829 *)
4830 eval ac_cv_prog_make_${ac_make}_set=no;;
4831esac
953ff289
DN
4832rm -f conftest.make
4833fi
5213506e
RW
4834if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4836$as_echo "yes" >&6; }
953ff289
DN
4837 SET_MAKE=
4838else
5213506e
RW
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4840$as_echo "no" >&6; }
953ff289
DN
4841 SET_MAKE="MAKE=${MAKE-make}"
4842fi
4843
953ff289
DN
4844
4845
748b9d7c
DF
4846# See if makeinfo has been installed and is modern enough
4847# that we can use it.
4848
4849 # Extract the first word of "makeinfo", so it can be a program name with args.
4850set dummy makeinfo; ac_word=$2
5213506e
RW
4851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4852$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4853if ${ac_cv_prog_MAKEINFO+:} false; then :
5213506e 4854 $as_echo_n "(cached) " >&6
748b9d7c
DF
4855else
4856 if test -n "$MAKEINFO"; then
4857 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4858else
4859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860for as_dir in $PATH
4861do
4862 IFS=$as_save_IFS
4863 test -z "$as_dir" && as_dir=.
5213506e 4864 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
748b9d7c 4866 ac_cv_prog_MAKEINFO="makeinfo"
5213506e 4867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
748b9d7c
DF
4868 break 2
4869 fi
4870done
5213506e
RW
4871 done
4872IFS=$as_save_IFS
748b9d7c
DF
4873
4874fi
4875fi
4876MAKEINFO=$ac_cv_prog_MAKEINFO
4877if test -n "$MAKEINFO"; then
5213506e
RW
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4879$as_echo "$MAKEINFO" >&6; }
748b9d7c 4880else
5213506e
RW
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4882$as_echo "no" >&6; }
748b9d7c
DF
4883fi
4884
5213506e 4885
748b9d7c
DF
4886 if test -n "$MAKEINFO"; then
4887 # Found it, now check the version.
5213506e
RW
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
4889$as_echo_n "checking for modern makeinfo... " >&6; }
22e05272 4890if ${gcc_cv_prog_makeinfo_modern+:} false; then :
5213506e 4891 $as_echo_n "(cached) " >&6
748b9d7c
DF
4892else
4893 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
4894 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4895
4896 case $ac_prog_version in
4897 '') gcc_cv_prog_makeinfo_modern=no;;
a7415017 4898 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
748b9d7c
DF
4899 *) gcc_cv_prog_makeinfo_modern=no;;
4900 esac
4901
4902fi
5213506e
RW
4903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
4904$as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
748b9d7c
DF
4905 else
4906 gcc_cv_prog_makeinfo_modern=no
4907 fi
1cf3d07d
SE
4908 if test $gcc_cv_prog_makeinfo_modern = no; then
4909 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
4910 fi
748b9d7c 4911
5213506e 4912 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
748b9d7c
DF
4913 BUILD_INFO_TRUE=
4914 BUILD_INFO_FALSE='#'
4915else
4916 BUILD_INFO_TRUE='#'
4917 BUILD_INFO_FALSE=
4918fi
4919
4920
4921
953ff289 4922# Configure libtool
6b4a97ed
PG
4923case `pwd` in
4924 *\ * | *\ *)
5213506e
RW
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4926$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6b4a97ed 4927esac
1cf3d07d
SE
4928
4929
1cf3d07d 4930
43e02a8a
RW
4931macro_version='2.2.7a'
4932macro_revision='1.3134'
1cf3d07d
SE
4933
4934
4935
4936
4937
4938
953ff289 4939
1cf3d07d
SE
4940
4941
4942
4943
4944
4945
6b4a97ed 4946ltmain="$ac_aux_dir/ltmain.sh"
1cf3d07d 4947
43e02a8a
RW
4948# Backslashify metacharacters that are still active within
4949# double-quoted strings.
4950sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4951
4952# Same as above, but do not quote variable references.
4953double_quote_subst='s/\(["`\\]\)/\\\1/g'
4954
4955# Sed substitution to delay expansion of an escaped shell variable in a
4956# double_quote_subst'ed string.
4957delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4958
4959# Sed substitution to delay expansion of an escaped single quote.
4960delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4961
4962# Sed substitution to avoid accidental globbing in evaled expressions
4963no_glob_subst='s/\*/\\\*/g'
4964
4965ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4966ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4967ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4968
4969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4970$as_echo_n "checking how to print strings... " >&6; }
4971# Test print first, because it will be a builtin if present.
4972if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4973 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4974 ECHO='print -r --'
4975elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4976 ECHO='printf %s\n'
4977else
4978 # Use this function as a fallback that always works.
4979 func_fallback_echo ()
4980 {
4981 eval 'cat <<_LTECHO_EOF
4982$1
4983_LTECHO_EOF'
4984 }
4985 ECHO='func_fallback_echo'
4986fi
4987
4988# func_echo_all arg...
4989# Invoke $ECHO with all args, space-separated.
4990func_echo_all ()
4991{
4992 $ECHO ""
4993}
4994
4995case "$ECHO" in
4996 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4997$as_echo "printf" >&6; } ;;
4998 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4999$as_echo "print -r" >&6; } ;;
5000 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5001$as_echo "cat" >&6; } ;;
5002esac
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5213506e
RW
5017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5018$as_echo_n "checking for a sed that does not truncate output... " >&6; }
22e05272 5019if ${ac_cv_path_SED+:} false; then :
5213506e
RW
5020 $as_echo_n "(cached) " >&6
5021else
5022 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5023 for ac_i in 1 2 3 4 5 6 7; do
5024 ac_script="$ac_script$as_nl$ac_script"
5025 done
5026 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5027 { ac_script=; unset ac_script;}
5028 if test -z "$SED"; then
5029 ac_path_SED_found=false
5030 # Loop through the user's path and test for each of PROGNAME-LIST
5031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1cf3d07d
SE
5032for as_dir in $PATH
5033do
5034 IFS=$as_save_IFS
5035 test -z "$as_dir" && as_dir=.
5213506e 5036 for ac_prog in sed gsed; do
1cf3d07d 5037 for ac_exec_ext in '' $ac_executable_extensions; do
5213506e 5038 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
22e05272 5039 as_fn_executable_p "$ac_path_SED" || continue
5213506e
RW
5040# Check for GNU ac_path_SED and select it if it is found.
5041 # Check for GNU $ac_path_SED
5042case `"$ac_path_SED" --version 2>&1` in
5043*GNU*)
5044 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5045*)
5046 ac_count=0
5047 $as_echo_n 0123456789 >"conftest.in"
5048 while :
5049 do
5050 cat "conftest.in" "conftest.in" >"conftest.tmp"
5051 mv "conftest.tmp" "conftest.in"
5052 cp "conftest.in" "conftest.nl"
5053 $as_echo '' >> "conftest.nl"
5054 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5055 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5056 as_fn_arith $ac_count + 1 && ac_count=$as_val
5057 if test $ac_count -gt ${ac_path_SED_max-0}; then
5058 # Best one so far, save it but keep looking for a better one
5059 ac_cv_path_SED="$ac_path_SED"
5060 ac_path_SED_max=$ac_count
5061 fi
5062 # 10*(2^10) chars as input seems more than enough
5063 test $ac_count -gt 10 && break
5064 done
5065 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5066esac
5067
5068 $ac_path_SED_found && break 3
1cf3d07d
SE
5069 done
5070 done
5213506e 5071 done
1cf3d07d 5072IFS=$as_save_IFS
5213506e 5073 if test -z "$ac_cv_path_SED"; then
22e05272 5074 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
1cf3d07d 5075 fi
5213506e
RW
5076else
5077 ac_cv_path_SED=$SED
1cf3d07d
SE
5078fi
5079
5213506e
RW
5080fi
5081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5082$as_echo "$ac_cv_path_SED" >&6; }
5083 SED="$ac_cv_path_SED"
5084 rm -f conftest.sed
1cf3d07d
SE
5085
5086test -z "$SED" && SED=sed
5087Xsed="$SED -e 1s/^X//"
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5213506e
RW
5099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5100$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
22e05272 5101if ${ac_cv_path_GREP+:} false; then :
5213506e
RW
5102 $as_echo_n "(cached) " >&6
5103else
5104 if test -z "$GREP"; then
5105 ac_path_GREP_found=false
5106 # Loop through the user's path and test for each of PROGNAME-LIST
5107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5108for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5109do
5110 IFS=$as_save_IFS
5111 test -z "$as_dir" && as_dir=.
5112 for ac_prog in grep ggrep; do
5113 for ac_exec_ext in '' $ac_executable_extensions; do
5114 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 5115 as_fn_executable_p "$ac_path_GREP" || continue
5213506e
RW
5116# Check for GNU ac_path_GREP and select it if it is found.
5117 # Check for GNU $ac_path_GREP
5118case `"$ac_path_GREP" --version 2>&1` in
5119*GNU*)
5120 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5121*)
5122 ac_count=0
5123 $as_echo_n 0123456789 >"conftest.in"
5124 while :
5125 do
5126 cat "conftest.in" "conftest.in" >"conftest.tmp"
5127 mv "conftest.tmp" "conftest.in"
5128 cp "conftest.in" "conftest.nl"
5129 $as_echo 'GREP' >> "conftest.nl"
5130 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5131 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5132 as_fn_arith $ac_count + 1 && ac_count=$as_val
5133 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5134 # Best one so far, save it but keep looking for a better one
5135 ac_cv_path_GREP="$ac_path_GREP"
5136 ac_path_GREP_max=$ac_count
5137 fi
5138 # 10*(2^10) chars as input seems more than enough
5139 test $ac_count -gt 10 && break
5140 done
5141 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5142esac
5143
5144 $ac_path_GREP_found && break 3
5145 done
5146 done
5147 done
5148IFS=$as_save_IFS
5149 if test -z "$ac_cv_path_GREP"; then
22e05272 5150 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5213506e
RW
5151 fi
5152else
5153 ac_cv_path_GREP=$GREP
5154fi
5155
5156fi
5157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5158$as_echo "$ac_cv_path_GREP" >&6; }
5159 GREP="$ac_cv_path_GREP"
5160
5161
5162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5163$as_echo_n "checking for egrep... " >&6; }
22e05272 5164if ${ac_cv_path_EGREP+:} false; then :
5213506e 5165 $as_echo_n "(cached) " >&6
1cf3d07d 5166else
5213506e
RW
5167 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5168 then ac_cv_path_EGREP="$GREP -E"
5169 else
5170 if test -z "$EGREP"; then
5171 ac_path_EGREP_found=false
5172 # Loop through the user's path and test for each of PROGNAME-LIST
5173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5174for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5175do
5176 IFS=$as_save_IFS
5177 test -z "$as_dir" && as_dir=.
5178 for ac_prog in egrep; do
5179 for ac_exec_ext in '' $ac_executable_extensions; do
5180 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 5181 as_fn_executable_p "$ac_path_EGREP" || continue
5213506e
RW
5182# Check for GNU ac_path_EGREP and select it if it is found.
5183 # Check for GNU $ac_path_EGREP
5184case `"$ac_path_EGREP" --version 2>&1` in
5185*GNU*)
5186 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5187*)
5188 ac_count=0
5189 $as_echo_n 0123456789 >"conftest.in"
5190 while :
5191 do
5192 cat "conftest.in" "conftest.in" >"conftest.tmp"
5193 mv "conftest.tmp" "conftest.in"
5194 cp "conftest.in" "conftest.nl"
5195 $as_echo 'EGREP' >> "conftest.nl"
5196 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5197 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5198 as_fn_arith $ac_count + 1 && ac_count=$as_val
5199 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5200 # Best one so far, save it but keep looking for a better one
5201 ac_cv_path_EGREP="$ac_path_EGREP"
5202 ac_path_EGREP_max=$ac_count
1cf3d07d 5203 fi
5213506e
RW
5204 # 10*(2^10) chars as input seems more than enough
5205 test $ac_count -gt 10 && break
5206 done
5207 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5208esac
5209
5210 $ac_path_EGREP_found && break 3
5211 done
5212 done
5213 done
5214IFS=$as_save_IFS
5215 if test -z "$ac_cv_path_EGREP"; then
22e05272 5216 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5213506e
RW
5217 fi
5218else
5219 ac_cv_path_EGREP=$EGREP
5220fi
5221
5222 fi
1cf3d07d 5223fi
5213506e
RW
5224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5225$as_echo "$ac_cv_path_EGREP" >&6; }
5226 EGREP="$ac_cv_path_EGREP"
1cf3d07d
SE
5227
5228
5213506e
RW
5229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5230$as_echo_n "checking for fgrep... " >&6; }
22e05272 5231if ${ac_cv_path_FGREP+:} false; then :
5213506e 5232 $as_echo_n "(cached) " >&6
1cf3d07d 5233else
5213506e
RW
5234 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5235 then ac_cv_path_FGREP="$GREP -F"
5236 else
5237 if test -z "$FGREP"; then
5238 ac_path_FGREP_found=false
5239 # Loop through the user's path and test for each of PROGNAME-LIST
5240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5241for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5242do
5243 IFS=$as_save_IFS
5244 test -z "$as_dir" && as_dir=.
5245 for ac_prog in fgrep; do
5246 for ac_exec_ext in '' $ac_executable_extensions; do
5247 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 5248 as_fn_executable_p "$ac_path_FGREP" || continue
5213506e
RW
5249# Check for GNU ac_path_FGREP and select it if it is found.
5250 # Check for GNU $ac_path_FGREP
5251case `"$ac_path_FGREP" --version 2>&1` in
5252*GNU*)
5253 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5254*)
5255 ac_count=0
5256 $as_echo_n 0123456789 >"conftest.in"
5257 while :
5258 do
5259 cat "conftest.in" "conftest.in" >"conftest.tmp"
5260 mv "conftest.tmp" "conftest.in"
5261 cp "conftest.in" "conftest.nl"
5262 $as_echo 'FGREP' >> "conftest.nl"
5263 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5264 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5265 as_fn_arith $ac_count + 1 && ac_count=$as_val
5266 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5267 # Best one so far, save it but keep looking for a better one
5268 ac_cv_path_FGREP="$ac_path_FGREP"
5269 ac_path_FGREP_max=$ac_count
1cf3d07d 5270 fi
5213506e
RW
5271 # 10*(2^10) chars as input seems more than enough
5272 test $ac_count -gt 10 && break
5273 done
5274 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5275esac
5276
5277 $ac_path_FGREP_found && break 3
5278 done
5279 done
5280 done
5281IFS=$as_save_IFS
5282 if test -z "$ac_cv_path_FGREP"; then
22e05272 5283 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5213506e
RW
5284 fi
5285else
5286 ac_cv_path_FGREP=$FGREP
5287fi
5288
5289 fi
1cf3d07d 5290fi
5213506e
RW
5291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5292$as_echo "$ac_cv_path_FGREP" >&6; }
5293 FGREP="$ac_cv_path_FGREP"
1cf3d07d
SE
5294
5295
5296test -z "$GREP" && GREP=grep
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5213506e
RW
5316# Check whether --with-gnu-ld was given.
5317if test "${with_gnu_ld+set}" = set; then :
5318 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
953ff289
DN
5319else
5320 with_gnu_ld=no
5213506e
RW
5321fi
5322
953ff289
DN
5323ac_prog=ld
5324if test "$GCC" = yes; then
5325 # Check if gcc -print-prog-name=ld gives a path.
5213506e
RW
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5327$as_echo_n "checking for ld used by $CC... " >&6; }
953ff289
DN
5328 case $host in
5329 *-*-mingw*)
5330 # gcc leaves a trailing carriage return which upsets mingw
5331 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5332 *)
5333 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5334 esac
5335 case $ac_prog in
5336 # Accept absolute paths.
1cf3d07d 5337 [\\/]* | ?:[\\/]*)
953ff289 5338 re_direlt='/[^/][^/]*/\.\./'
1cf3d07d
SE
5339 # Canonicalize the pathname of ld
5340 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5341 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5342 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
953ff289
DN
5343 done
5344 test -z "$LD" && LD="$ac_prog"
5345 ;;
5346 "")
5347 # If it fails, then pretend we aren't using GCC.
5348 ac_prog=ld
5349 ;;
5350 *)
5351 # If it is relative, then search for the first ld in PATH.
5352 with_gnu_ld=unknown
5353 ;;
5354 esac
5355elif test "$with_gnu_ld" = yes; then
5213506e
RW
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5357$as_echo_n "checking for GNU ld... " >&6; }
953ff289 5358else
5213506e
RW
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5360$as_echo_n "checking for non-GNU ld... " >&6; }
953ff289 5361fi
22e05272 5362if ${lt_cv_path_LD+:} false; then :
5213506e 5363 $as_echo_n "(cached) " >&6
953ff289
DN
5364else
5365 if test -z "$LD"; then
1cf3d07d 5366 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
953ff289 5367 for ac_dir in $PATH; do
1cf3d07d 5368 IFS="$lt_save_ifs"
953ff289
DN
5369 test -z "$ac_dir" && ac_dir=.
5370 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5371 lt_cv_path_LD="$ac_dir/$ac_prog"
5372 # Check to see if the program is GNU ld. I'd rather use --version,
1cf3d07d 5373 # but apparently some variants of GNU ld only accept -v.
953ff289 5374 # Break only if it was the GNU/non-GNU ld that we prefer.
1cf3d07d
SE
5375 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5376 *GNU* | *'with BFD'*)
953ff289 5377 test "$with_gnu_ld" != no && break
1cf3d07d
SE
5378 ;;
5379 *)
953ff289 5380 test "$with_gnu_ld" != yes && break
1cf3d07d
SE
5381 ;;
5382 esac
953ff289
DN
5383 fi
5384 done
1cf3d07d 5385 IFS="$lt_save_ifs"
953ff289
DN
5386else
5387 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5388fi
5389fi
5390
5391LD="$lt_cv_path_LD"
5392if test -n "$LD"; then
5213506e
RW
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5394$as_echo "$LD" >&6; }
953ff289 5395else
5213506e
RW
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5397$as_echo "no" >&6; }
953ff289 5398fi
22e05272 5399test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5213506e
RW
5400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5401$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
22e05272 5402if ${lt_cv_prog_gnu_ld+:} false; then :
5213506e 5403 $as_echo_n "(cached) " >&6
953ff289 5404else
1cf3d07d
SE
5405 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5406case `$LD -v 2>&1 </dev/null` in
5407*GNU* | *'with BFD'*)
953ff289 5408 lt_cv_prog_gnu_ld=yes
1cf3d07d
SE
5409 ;;
5410*)
953ff289 5411 lt_cv_prog_gnu_ld=no
1cf3d07d
SE
5412 ;;
5413esac
953ff289 5414fi
5213506e
RW
5415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5416$as_echo "$lt_cv_prog_gnu_ld" >&6; }
953ff289
DN
5417with_gnu_ld=$lt_cv_prog_gnu_ld
5418
5419
953ff289 5420
1cf3d07d
SE
5421
5422
5423
5424
5425
5426
5213506e
RW
5427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5428$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
22e05272 5429if ${lt_cv_path_NM+:} false; then :
5213506e 5430 $as_echo_n "(cached) " >&6
953ff289
DN
5431else
5432 if test -n "$NM"; then
5433 # Let the user override the test.
5434 lt_cv_path_NM="$NM"
5435else
1cf3d07d
SE
5436 lt_nm_to_check="${ac_tool_prefix}nm"
5437 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5438 lt_nm_to_check="$lt_nm_to_check nm"
5439 fi
5440 for lt_tmp_nm in $lt_nm_to_check; do
5441 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5442 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5443 IFS="$lt_save_ifs"
5444 test -z "$ac_dir" && ac_dir=.
5445 tmp_nm="$ac_dir/$lt_tmp_nm"
5446 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5447 # Check to see if the nm accepts a BSD-compat flag.
5448 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5449 # nm: unknown option "B" ignored
5450 # Tru64's nm complains that /dev/null is an invalid object file
5451 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5452 */dev/null* | *'Invalid file or object type'*)
5453 lt_cv_path_NM="$tmp_nm -B"
5454 break
5455 ;;
5456 *)
5457 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5458 */dev/null*)
5459 lt_cv_path_NM="$tmp_nm -p"
5460 break
5461 ;;
5462 *)
5463 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5464 continue # so that we can try to find one that supports BSD flags
5465 ;;
5466 esac
5467 ;;
5468 esac
5469 fi
5470 done
5471 IFS="$lt_save_ifs"
5472 done
5473 : ${lt_cv_path_NM=no}
5474fi
5475fi
5213506e
RW
5476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5477$as_echo "$lt_cv_path_NM" >&6; }
1cf3d07d
SE
5478if test "$lt_cv_path_NM" != "no"; then
5479 NM="$lt_cv_path_NM"
5480else
5481 # Didn't find any BSD compatible name lister, look for dumpbin.
43e02a8a
RW
5482 if test -n "$DUMPBIN"; then :
5483 # Let the user override the test.
5484 else
5485 if test -n "$ac_tool_prefix"; then
5486 for ac_prog in dumpbin "link -dump"
1cf3d07d
SE
5487 do
5488 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5489set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
5490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5491$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5492if ${ac_cv_prog_DUMPBIN+:} false; then :
5213506e 5493 $as_echo_n "(cached) " >&6
1cf3d07d
SE
5494else
5495 if test -n "$DUMPBIN"; then
5496 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5497else
5498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5499for as_dir in $PATH
5500do
5501 IFS=$as_save_IFS
5502 test -z "$as_dir" && as_dir=.
5213506e 5503 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 5505 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5213506e 5506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
5507 break 2
5508 fi
5509done
5213506e
RW
5510 done
5511IFS=$as_save_IFS
1cf3d07d
SE
5512
5513fi
5514fi
5515DUMPBIN=$ac_cv_prog_DUMPBIN
5516if test -n "$DUMPBIN"; then
5213506e
RW
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5518$as_echo "$DUMPBIN" >&6; }
1cf3d07d 5519else
5213506e
RW
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5521$as_echo "no" >&6; }
1cf3d07d
SE
5522fi
5523
5213506e 5524
1cf3d07d
SE
5525 test -n "$DUMPBIN" && break
5526 done
5527fi
5528if test -z "$DUMPBIN"; then
5529 ac_ct_DUMPBIN=$DUMPBIN
43e02a8a 5530 for ac_prog in dumpbin "link -dump"
1cf3d07d
SE
5531do
5532 # Extract the first word of "$ac_prog", so it can be a program name with args.
5533set dummy $ac_prog; ac_word=$2
5213506e
RW
5534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5535$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5536if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5213506e 5537 $as_echo_n "(cached) " >&6
1cf3d07d
SE
5538else
5539 if test -n "$ac_ct_DUMPBIN"; then
5540 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5541else
5542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5543for as_dir in $PATH
5544do
5545 IFS=$as_save_IFS
5546 test -z "$as_dir" && as_dir=.
5213506e 5547 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 5549 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5213506e 5550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
5551 break 2
5552 fi
5553done
5213506e
RW
5554 done
5555IFS=$as_save_IFS
1cf3d07d
SE
5556
5557fi
953ff289 5558fi
1cf3d07d
SE
5559ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5560if test -n "$ac_ct_DUMPBIN"; then
5213506e
RW
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5562$as_echo "$ac_ct_DUMPBIN" >&6; }
1cf3d07d 5563else
5213506e
RW
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5565$as_echo "no" >&6; }
1cf3d07d
SE
5566fi
5567
5213506e 5568
1cf3d07d
SE
5569 test -n "$ac_ct_DUMPBIN" && break
5570done
1cf3d07d 5571
5213506e
RW
5572 if test "x$ac_ct_DUMPBIN" = x; then
5573 DUMPBIN=":"
5574 else
5575 case $cross_compiling:$ac_tool_warned in
5576yes:)
5577{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5578$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5579ac_tool_warned=yes ;;
5580esac
5581 DUMPBIN=$ac_ct_DUMPBIN
5582 fi
1cf3d07d
SE
5583fi
5584
43e02a8a
RW
5585 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5586 *COFF*)
5587 DUMPBIN="$DUMPBIN -symbols"
5588 ;;
5589 *)
5590 DUMPBIN=:
5591 ;;
5592 esac
5593 fi
1cf3d07d
SE
5594
5595 if test "$DUMPBIN" != ":"; then
5596 NM="$DUMPBIN"
5597 fi
953ff289 5598fi
1cf3d07d
SE
5599test -z "$NM" && NM=nm
5600
5601
5602
5603
5604
953ff289 5605
5213506e
RW
5606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5607$as_echo_n "checking the name lister ($NM) interface... " >&6; }
22e05272 5608if ${lt_cv_nm_interface+:} false; then :
5213506e 5609 $as_echo_n "(cached) " >&6
1cf3d07d
SE
5610else
5611 lt_cv_nm_interface="BSD nm"
5612 echo "int some_variable = 0;" > conftest.$ac_ext
43e02a8a 5613 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
1cf3d07d
SE
5614 (eval "$ac_compile" 2>conftest.err)
5615 cat conftest.err >&5
43e02a8a 5616 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
1cf3d07d
SE
5617 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5618 cat conftest.err >&5
43e02a8a 5619 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
1cf3d07d
SE
5620 cat conftest.out >&5
5621 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5622 lt_cv_nm_interface="MS dumpbin"
5623 fi
5624 rm -f conftest*
5625fi
5213506e
RW
5626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5627$as_echo "$lt_cv_nm_interface" >&6; }
953ff289 5628
5213506e
RW
5629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5630$as_echo_n "checking whether ln -s works... " >&6; }
953ff289
DN
5631LN_S=$as_ln_s
5632if test "$LN_S" = "ln -s"; then
5213506e
RW
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5634$as_echo "yes" >&6; }
953ff289 5635else
5213506e
RW
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5637$as_echo "no, using $LN_S" >&6; }
953ff289
DN
5638fi
5639
1cf3d07d 5640# find the maximum length of command line arguments
5213506e
RW
5641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5642$as_echo_n "checking the maximum length of command line arguments... " >&6; }
22e05272 5643if ${lt_cv_sys_max_cmd_len+:} false; then :
5213506e 5644 $as_echo_n "(cached) " >&6
1cf3d07d
SE
5645else
5646 i=0
5647 teststring="ABCD"
5648
5649 case $build_os in
5650 msdosdjgpp*)
5651 # On DJGPP, this test can blow up pretty badly due to problems in libc
5652 # (any single argument exceeding 2000 bytes causes a buffer overrun
5653 # during glob expansion). Even if it were fixed, the result of this
5654 # check would be larger than it should be.
5655 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5656 ;;
5657
5658 gnu*)
5659 # Under GNU Hurd, this test is not required because there is
5660 # no limit to the length of command line arguments.
5661 # Libtool will interpret -1 as no limit whatsoever
5662 lt_cv_sys_max_cmd_len=-1;
5663 ;;
5664
6b4a97ed 5665 cygwin* | mingw* | cegcc*)
1cf3d07d
SE
5666 # On Win9x/ME, this test blows up -- it succeeds, but takes
5667 # about 5 minutes as the teststring grows exponentially.
5668 # Worse, since 9x/ME are not pre-emptively multitasking,
5669 # you end up with a "frozen" computer, even though with patience
5670 # the test eventually succeeds (with a max line length of 256k).
5671 # Instead, let's just punt: use the minimum linelength reported by
5672 # all of the supported platforms: 8192 (on NT/2K/XP).
5673 lt_cv_sys_max_cmd_len=8192;
5674 ;;
5675
43e02a8a
RW
5676 mint*)
5677 # On MiNT this can take a long time and run out of memory.
5678 lt_cv_sys_max_cmd_len=8192;
5679 ;;
5680
1cf3d07d
SE
5681 amigaos*)
5682 # On AmigaOS with pdksh, this test takes hours, literally.
5683 # So we just punt and use a minimum line length of 8192.
5684 lt_cv_sys_max_cmd_len=8192;
5685 ;;
5686
5687 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5688 # This has been around since 386BSD, at least. Likely further.
5689 if test -x /sbin/sysctl; then
5690 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5691 elif test -x /usr/sbin/sysctl; then
5692 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5693 else
5694 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5695 fi
5696 # And add a safety zone
5697 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5698 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5699 ;;
5700
5701 interix*)
5702 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5703 lt_cv_sys_max_cmd_len=196608
5704 ;;
5705
5706 osf*)
5707 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5708 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5709 # nice to cause kernel panics so lets avoid the loop below.
5710 # First set a reasonable default.
5711 lt_cv_sys_max_cmd_len=16384
5712 #
5713 if test -x /sbin/sysconfig; then
5714 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5715 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5716 esac
5717 fi
5718 ;;
5719 sco3.2v5*)
5720 lt_cv_sys_max_cmd_len=102400
5721 ;;
5722 sysv5* | sco5v6* | sysv4.2uw2*)
5723 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5724 if test -n "$kargmax"; then
5725 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5726 else
5727 lt_cv_sys_max_cmd_len=32768
5728 fi
5729 ;;
5730 *)
6b4a97ed
PG
5731 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5732 if test -n "$lt_cv_sys_max_cmd_len"; then
82a6cadf
PB
5733 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5734 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5735 else
5736 # Make teststring a little bigger before we do anything with it.
5737 # a 1K string should be a reasonable start.
5738 for i in 1 2 3 4 5 6 7 8 ; do
5739 teststring=$teststring$teststring
5740 done
5741 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5742 # If test is not a shell built-in, we'll probably end up computing a
5743 # maximum length that is only half of the actual maximum length, but
5744 # we can't tell.
43e02a8a
RW
5745 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5746 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
82a6cadf
PB
5747 test $i != 17 # 1/2 MB should be enough
5748 do
5749 i=`expr $i + 1`
5750 teststring=$teststring$teststring
5751 done
5752 # Only check the string length outside the loop.
5753 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5754 teststring=
5755 # Add a significant safety factor because C++ compilers can tack on
5756 # massive amounts of additional arguments before passing them to the
5757 # linker. It appears as though 1/2 is a usable value.
5758 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5759 fi
1cf3d07d
SE
5760 ;;
5761 esac
5762
5763fi
5764
5765if test -n $lt_cv_sys_max_cmd_len ; then
5213506e
RW
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5767$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
1cf3d07d 5768else
5213506e
RW
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5770$as_echo "none" >&6; }
1cf3d07d
SE
5771fi
5772max_cmd_len=$lt_cv_sys_max_cmd_len
5773
5774
5775
5776
5777
5778
1cf3d07d
SE
5779: ${CP="cp -f"}
5780: ${MV="mv -f"}
5781: ${RM="rm -f"}
5782
5213506e
RW
5783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5784$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
1cf3d07d
SE
5785# Try some XSI features
5786xsi_shell=no
5787( _lt_dummy="a/b/c"
5788 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6b4a97ed
PG
5789 = c,a/b,, \
5790 && eval 'test $(( 1 + 1 )) -eq 2 \
5791 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
1cf3d07d 5792 && xsi_shell=yes
5213506e
RW
5793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5794$as_echo "$xsi_shell" >&6; }
1cf3d07d
SE
5795
5796
5213506e
RW
5797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5798$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
1cf3d07d
SE
5799lt_shell_append=no
5800( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5801 >/dev/null 2>&1 \
5802 && lt_shell_append=yes
5213506e
RW
5803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5804$as_echo "$lt_shell_append" >&6; }
1cf3d07d
SE
5805
5806
5807if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5808 lt_unset=unset
5809else
5810 lt_unset=false
5811fi
5812
5813
5814
5815
5816
5817# test EBCDIC or ASCII
5818case `echo X|tr X '\101'` in
5819 A) # ASCII based system
5820 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5821 lt_SP2NL='tr \040 \012'
5822 lt_NL2SP='tr \015\012 \040\040'
5823 ;;
5824 *) # EBCDIC based system
5825 lt_SP2NL='tr \100 \n'
5826 lt_NL2SP='tr \r\n \100\100'
5827 ;;
5828esac
5829
5830
5831
5832
5833
5834
5835
5836
5837
5213506e
RW
5838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5839$as_echo_n "checking for $LD option to reload object files... " >&6; }
22e05272 5840if ${lt_cv_ld_reload_flag+:} false; then :
5213506e 5841 $as_echo_n "(cached) " >&6
1cf3d07d
SE
5842else
5843 lt_cv_ld_reload_flag='-r'
5844fi
5213506e
RW
5845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5846$as_echo "$lt_cv_ld_reload_flag" >&6; }
1cf3d07d
SE
5847reload_flag=$lt_cv_ld_reload_flag
5848case $reload_flag in
5849"" | " "*) ;;
5850*) reload_flag=" $reload_flag" ;;
5851esac
5852reload_cmds='$LD$reload_flag -o $output$reload_objs'
5853case $host_os in
5854 darwin*)
5855 if test "$GCC" = yes; then
5856 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5857 else
5858 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5859 fi
5860 ;;
5861esac
5862
5863
5864
5865
5866
5867
5868
5869
5870
6b4a97ed
PG
5871if test -n "$ac_tool_prefix"; then
5872 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5873set dummy ${ac_tool_prefix}objdump; ac_word=$2
5213506e
RW
5874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5875$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5876if ${ac_cv_prog_OBJDUMP+:} false; then :
5213506e 5877 $as_echo_n "(cached) " >&6
6b4a97ed
PG
5878else
5879 if test -n "$OBJDUMP"; then
5880 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5881else
5882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5883for as_dir in $PATH
5884do
5885 IFS=$as_save_IFS
5886 test -z "$as_dir" && as_dir=.
5213506e 5887 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6b4a97ed 5889 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5213506e 5890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6b4a97ed
PG
5891 break 2
5892 fi
5893done
5213506e
RW
5894 done
5895IFS=$as_save_IFS
6b4a97ed
PG
5896
5897fi
5898fi
5899OBJDUMP=$ac_cv_prog_OBJDUMP
5900if test -n "$OBJDUMP"; then
5213506e
RW
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5902$as_echo "$OBJDUMP" >&6; }
6b4a97ed 5903else
5213506e
RW
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5905$as_echo "no" >&6; }
6b4a97ed
PG
5906fi
5907
5213506e 5908
6b4a97ed
PG
5909fi
5910if test -z "$ac_cv_prog_OBJDUMP"; then
5911 ac_ct_OBJDUMP=$OBJDUMP
5912 # Extract the first word of "objdump", so it can be a program name with args.
5913set dummy objdump; ac_word=$2
5213506e
RW
5914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5915$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5916if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5213506e 5917 $as_echo_n "(cached) " >&6
6b4a97ed
PG
5918else
5919 if test -n "$ac_ct_OBJDUMP"; then
5920 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5921else
5922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5923for as_dir in $PATH
5924do
5925 IFS=$as_save_IFS
5926 test -z "$as_dir" && as_dir=.
5213506e 5927 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6b4a97ed 5929 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5213506e 5930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6b4a97ed
PG
5931 break 2
5932 fi
5933done
5213506e
RW
5934 done
5935IFS=$as_save_IFS
6b4a97ed 5936
6b4a97ed
PG
5937fi
5938fi
5939ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5940if test -n "$ac_ct_OBJDUMP"; then
5213506e
RW
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5942$as_echo "$ac_ct_OBJDUMP" >&6; }
6b4a97ed 5943else
5213506e
RW
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5945$as_echo "no" >&6; }
6b4a97ed
PG
5946fi
5947
5213506e
RW
5948 if test "x$ac_ct_OBJDUMP" = x; then
5949 OBJDUMP="false"
5950 else
5951 case $cross_compiling:$ac_tool_warned in
5952yes:)
5953{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5954$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5955ac_tool_warned=yes ;;
5956esac
5957 OBJDUMP=$ac_ct_OBJDUMP
5958 fi
6b4a97ed
PG
5959else
5960 OBJDUMP="$ac_cv_prog_OBJDUMP"
5961fi
5962
5963test -z "$OBJDUMP" && OBJDUMP=objdump
5964
5965
5966
5967
5968
5969
5970
5971
1cf3d07d 5972
5213506e
RW
5973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5974$as_echo_n "checking how to recognize dependent libraries... " >&6; }
22e05272 5975if ${lt_cv_deplibs_check_method+:} false; then :
5213506e 5976 $as_echo_n "(cached) " >&6
953ff289
DN
5977else
5978 lt_cv_file_magic_cmd='$MAGIC_CMD'
5979lt_cv_file_magic_test_file=
5980lt_cv_deplibs_check_method='unknown'
5981# Need to set the preceding variable on all platforms that support
5982# interlibrary dependencies.
5983# 'none' -- dependencies not supported.
5984# `unknown' -- same as none, but documents that we really don't know.
5985# 'pass_all' -- all dependencies passed with no checks.
5986# 'test_compile' -- check by making test program.
1cf3d07d
SE
5987# 'file_magic [[regex]]' -- check by looking for files in library path
5988# which responds to the $file_magic_cmd with a given extended regex.
953ff289
DN
5989# If you have `file' or equivalent on your system and you're not sure
5990# whether `pass_all' will *always* work, you probably want this one.
5991
5992case $host_os in
d653fdfb 5993aix[4-9]*)
953ff289
DN
5994 lt_cv_deplibs_check_method=pass_all
5995 ;;
5996
5997beos*)
5998 lt_cv_deplibs_check_method=pass_all
5999 ;;
6000
1cf3d07d 6001bsdi[45]*)
953ff289
DN
6002 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6003 lt_cv_file_magic_cmd='/usr/bin/file -L'
6004 lt_cv_file_magic_test_file=/shlib/libc.so
6005 ;;
6006
1cf3d07d
SE
6007cygwin*)
6008 # func_win32_libid is a shell function defined in ltmain.sh
6009 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6010 lt_cv_file_magic_cmd='func_win32_libid'
6011 ;;
6012
6013mingw* | pw32*)
6014 # Base MSYS/MinGW do not provide the 'file' command needed by
6015 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6016 # unless we find 'file', for example because we are cross-compiling.
43e02a8a
RW
6017 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6018 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
1cf3d07d
SE
6019 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6020 lt_cv_file_magic_cmd='func_win32_libid'
6021 else
6022 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6023 lt_cv_file_magic_cmd='$OBJDUMP -f'
6024 fi
953ff289
DN
6025 ;;
6026
43e02a8a 6027cegcc*)
6b4a97ed
PG
6028 # use the weaker test based on 'objdump'. See mingw*.
6029 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6030 lt_cv_file_magic_cmd='$OBJDUMP -f'
6031 ;;
6032
953ff289 6033darwin* | rhapsody*)
953ff289
DN
6034 lt_cv_deplibs_check_method=pass_all
6035 ;;
6036
1cf3d07d
SE
6037freebsd* | dragonfly*)
6038 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
953ff289
DN
6039 case $host_cpu in
6040 i*86 )
6041 # Not sure whether the presence of OpenBSD here was a mistake.
6042 # Let's accept both of them until this is cleared up.
1cf3d07d 6043 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
953ff289
DN
6044 lt_cv_file_magic_cmd=/usr/bin/file
6045 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6046 ;;
6047 esac
6048 else
6049 lt_cv_deplibs_check_method=pass_all
6050 fi
6051 ;;
6052
6053gnu*)
6054 lt_cv_deplibs_check_method=pass_all
6055 ;;
6056
43e02a8a
RW
6057haiku*)
6058 lt_cv_deplibs_check_method=pass_all
6059 ;;
6060
1cf3d07d
SE
6061hpux10.20* | hpux11*)
6062 lt_cv_file_magic_cmd=/usr/bin/file
953ff289 6063 case $host_cpu in
953ff289
DN
6064 ia64*)
6065 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
6066 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6067 ;;
1cf3d07d 6068 hppa*64*)
43e02a8a 6069 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
1cf3d07d 6070 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
953ff289
DN
6071 ;;
6072 *)
43e02a8a 6073 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
1cf3d07d 6074 lt_cv_file_magic_test_file=/usr/lib/libc.sl
953ff289
DN
6075 ;;
6076 esac
1cf3d07d
SE
6077 ;;
6078
6079interix[3-9]*)
6080 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6081 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6082 ;;
6083
6084irix5* | irix6* | nonstopux*)
6085 case $LD in
6086 *-32|*"-32 ") libmagic=32-bit;;
6087 *-n32|*"-n32 ") libmagic=N32;;
6088 *-64|*"-64 ") libmagic=64-bit;;
6089 *) libmagic=never-match;;
6090 esac
953ff289
DN
6091 lt_cv_deplibs_check_method=pass_all
6092 ;;
6093
6094# This must be Linux ELF.
7a9d3fe8 6095linux* | k*bsd*-gnu | kopensolaris*-gnu)
953ff289
DN
6096 lt_cv_deplibs_check_method=pass_all
6097 ;;
6098
1cf3d07d
SE
6099netbsd*)
6100 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6101 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
953ff289 6102 else
1cf3d07d 6103 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
953ff289
DN
6104 fi
6105 ;;
6106
1cf3d07d 6107newos6*)
953ff289
DN
6108 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6109 lt_cv_file_magic_cmd=/usr/bin/file
6110 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6111 ;;
6112
1cf3d07d
SE
6113*nto* | *qnx*)
6114 lt_cv_deplibs_check_method=pass_all
6115 ;;
6116
6117openbsd*)
6118 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6119 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6120 else
6121 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6122 fi
6123 ;;
6124
953ff289 6125osf3* | osf4* | osf5*)
953ff289
DN
6126 lt_cv_deplibs_check_method=pass_all
6127 ;;
6128
1cf3d07d 6129rdos*)
953ff289
DN
6130 lt_cv_deplibs_check_method=pass_all
6131 ;;
6132
6133solaris*)
6134 lt_cv_deplibs_check_method=pass_all
953ff289
DN
6135 ;;
6136
1cf3d07d 6137sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
953ff289
DN
6138 lt_cv_deplibs_check_method=pass_all
6139 ;;
6140
1cf3d07d 6141sysv4 | sysv4.3*)
953ff289 6142 case $host_vendor in
953ff289
DN
6143 motorola)
6144 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]'
6145 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6146 ;;
1cf3d07d
SE
6147 ncr)
6148 lt_cv_deplibs_check_method=pass_all
6149 ;;
6150 sequent)
6151 lt_cv_file_magic_cmd='/bin/file'
6152 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6153 ;;
6154 sni)
6155 lt_cv_file_magic_cmd='/bin/file'
6156 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6157 lt_cv_file_magic_test_file=/lib/libc.so
6158 ;;
6159 siemens)
6160 lt_cv_deplibs_check_method=pass_all
6161 ;;
6162 pc)
6163 lt_cv_deplibs_check_method=pass_all
6164 ;;
953ff289
DN
6165 esac
6166 ;;
1cf3d07d
SE
6167
6168tpf*)
6169 lt_cv_deplibs_check_method=pass_all
6170 ;;
953ff289
DN
6171esac
6172
6173fi
5213506e
RW
6174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6175$as_echo "$lt_cv_deplibs_check_method" >&6; }
953ff289
DN
6176file_magic_cmd=$lt_cv_file_magic_cmd
6177deplibs_check_method=$lt_cv_deplibs_check_method
1cf3d07d 6178test -z "$deplibs_check_method" && deplibs_check_method=unknown
953ff289
DN
6179
6180
6181
6182
6183
953ff289 6184
953ff289 6185
953ff289 6186
953ff289 6187
953ff289 6188
953ff289 6189
953ff289
DN
6190
6191if test -n "$ac_tool_prefix"; then
1cf3d07d
SE
6192 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6193set dummy ${ac_tool_prefix}ar; ac_word=$2
5213506e
RW
6194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6195$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6196if ${ac_cv_prog_AR+:} false; then :
5213506e 6197 $as_echo_n "(cached) " >&6
953ff289 6198else
1cf3d07d
SE
6199 if test -n "$AR"; then
6200 ac_cv_prog_AR="$AR" # Let the user override the test.
953ff289
DN
6201else
6202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6203for as_dir in $PATH
6204do
6205 IFS=$as_save_IFS
6206 test -z "$as_dir" && as_dir=.
5213506e 6207 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 6209 ac_cv_prog_AR="${ac_tool_prefix}ar"
5213506e 6210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
953ff289
DN
6211 break 2
6212 fi
6213done
5213506e
RW
6214 done
6215IFS=$as_save_IFS
953ff289
DN
6216
6217fi
6218fi
1cf3d07d
SE
6219AR=$ac_cv_prog_AR
6220if test -n "$AR"; then
5213506e
RW
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6222$as_echo "$AR" >&6; }
953ff289 6223else
5213506e
RW
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6225$as_echo "no" >&6; }
953ff289
DN
6226fi
6227
5213506e 6228
953ff289 6229fi
1cf3d07d
SE
6230if test -z "$ac_cv_prog_AR"; then
6231 ac_ct_AR=$AR
6232 # Extract the first word of "ar", so it can be a program name with args.
6233set dummy ar; ac_word=$2
5213506e
RW
6234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6235$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6236if ${ac_cv_prog_ac_ct_AR+:} false; then :
5213506e 6237 $as_echo_n "(cached) " >&6
953ff289 6238else
1cf3d07d
SE
6239 if test -n "$ac_ct_AR"; then
6240 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
953ff289
DN
6241else
6242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6243for as_dir in $PATH
6244do
6245 IFS=$as_save_IFS
6246 test -z "$as_dir" && as_dir=.
5213506e 6247 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 6249 ac_cv_prog_ac_ct_AR="ar"
5213506e 6250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
953ff289
DN
6251 break 2
6252 fi
6253done
5213506e
RW
6254 done
6255IFS=$as_save_IFS
953ff289 6256
953ff289
DN
6257fi
6258fi
1cf3d07d
SE
6259ac_ct_AR=$ac_cv_prog_ac_ct_AR
6260if test -n "$ac_ct_AR"; then
5213506e
RW
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6262$as_echo "$ac_ct_AR" >&6; }
953ff289 6263else
5213506e
RW
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6265$as_echo "no" >&6; }
953ff289
DN
6266fi
6267
5213506e
RW
6268 if test "x$ac_ct_AR" = x; then
6269 AR="false"
6270 else
6271 case $cross_compiling:$ac_tool_warned in
6272yes:)
6273{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6274$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6275ac_tool_warned=yes ;;
6276esac
6277 AR=$ac_ct_AR
6278 fi
953ff289 6279else
1cf3d07d 6280 AR="$ac_cv_prog_AR"
953ff289
DN
6281fi
6282
1cf3d07d
SE
6283test -z "$AR" && AR=ar
6284test -z "$AR_FLAGS" && AR_FLAGS=cru
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
953ff289
DN
6296if test -n "$ac_tool_prefix"; then
6297 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6298set dummy ${ac_tool_prefix}strip; ac_word=$2
5213506e
RW
6299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6300$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6301if ${ac_cv_prog_STRIP+:} false; then :
5213506e 6302 $as_echo_n "(cached) " >&6
953ff289
DN
6303else
6304 if test -n "$STRIP"; then
6305 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6306else
6307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6308for as_dir in $PATH
6309do
6310 IFS=$as_save_IFS
6311 test -z "$as_dir" && as_dir=.
5213506e 6312 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
953ff289 6314 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5213506e 6315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
953ff289
DN
6316 break 2
6317 fi
6318done
5213506e
RW
6319 done
6320IFS=$as_save_IFS
953ff289
DN
6321
6322fi
6323fi
6324STRIP=$ac_cv_prog_STRIP
6325if test -n "$STRIP"; then
5213506e
RW
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6327$as_echo "$STRIP" >&6; }
953ff289 6328else
5213506e
RW
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6330$as_echo "no" >&6; }
953ff289
DN
6331fi
6332
5213506e 6333
953ff289
DN
6334fi
6335if test -z "$ac_cv_prog_STRIP"; then
6336 ac_ct_STRIP=$STRIP
6337 # Extract the first word of "strip", so it can be a program name with args.
6338set dummy strip; ac_word=$2
5213506e
RW
6339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6340$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6341if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5213506e 6342 $as_echo_n "(cached) " >&6
953ff289
DN
6343else
6344 if test -n "$ac_ct_STRIP"; then
6345 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6346else
6347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6348for as_dir in $PATH
6349do
6350 IFS=$as_save_IFS
6351 test -z "$as_dir" && as_dir=.
5213506e 6352 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
953ff289 6354 ac_cv_prog_ac_ct_STRIP="strip"
5213506e 6355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
953ff289
DN
6356 break 2
6357 fi
6358done
5213506e
RW
6359 done
6360IFS=$as_save_IFS
953ff289 6361
953ff289
DN
6362fi
6363fi
6364ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6365if test -n "$ac_ct_STRIP"; then
5213506e
RW
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6367$as_echo "$ac_ct_STRIP" >&6; }
953ff289 6368else
5213506e
RW
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6370$as_echo "no" >&6; }
953ff289
DN
6371fi
6372
5213506e
RW
6373 if test "x$ac_ct_STRIP" = x; then
6374 STRIP=":"
6375 else
6376 case $cross_compiling:$ac_tool_warned in
6377yes:)
6378{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6379$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6380ac_tool_warned=yes ;;
6381esac
6382 STRIP=$ac_ct_STRIP
6383 fi
953ff289
DN
6384else
6385 STRIP="$ac_cv_prog_STRIP"
6386fi
6387
1cf3d07d 6388test -z "$STRIP" && STRIP=:
953ff289
DN
6389
6390
953ff289 6391
953ff289
DN
6392
6393
953ff289 6394
1cf3d07d
SE
6395if test -n "$ac_tool_prefix"; then
6396 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6397set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5213506e
RW
6398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6399$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6400if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 6401 $as_echo_n "(cached) " >&6
1cf3d07d
SE
6402else
6403 if test -n "$RANLIB"; then
6404 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6405else
6406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6407for as_dir in $PATH
6408do
6409 IFS=$as_save_IFS
6410 test -z "$as_dir" && as_dir=.
5213506e 6411 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 6413 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5213506e 6414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
6415 break 2
6416 fi
6417done
5213506e
RW
6418 done
6419IFS=$as_save_IFS
1cf3d07d
SE
6420
6421fi
6422fi
6423RANLIB=$ac_cv_prog_RANLIB
6424if test -n "$RANLIB"; then
5213506e
RW
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6426$as_echo "$RANLIB" >&6; }
1cf3d07d 6427else
5213506e
RW
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6429$as_echo "no" >&6; }
1cf3d07d
SE
6430fi
6431
5213506e 6432
1cf3d07d
SE
6433fi
6434if test -z "$ac_cv_prog_RANLIB"; then
6435 ac_ct_RANLIB=$RANLIB
6436 # Extract the first word of "ranlib", so it can be a program name with args.
6437set dummy ranlib; ac_word=$2
5213506e
RW
6438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6439$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6440if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5213506e 6441 $as_echo_n "(cached) " >&6
1cf3d07d
SE
6442else
6443 if test -n "$ac_ct_RANLIB"; then
6444 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6445else
6446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6447for as_dir in $PATH
6448do
6449 IFS=$as_save_IFS
6450 test -z "$as_dir" && as_dir=.
5213506e 6451 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 6453 ac_cv_prog_ac_ct_RANLIB="ranlib"
5213506e 6454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
6455 break 2
6456 fi
6457done
5213506e
RW
6458 done
6459IFS=$as_save_IFS
1cf3d07d 6460
1cf3d07d
SE
6461fi
6462fi
6463ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6464if test -n "$ac_ct_RANLIB"; then
5213506e
RW
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6466$as_echo "$ac_ct_RANLIB" >&6; }
1cf3d07d 6467else
5213506e
RW
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6469$as_echo "no" >&6; }
1cf3d07d
SE
6470fi
6471
5213506e
RW
6472 if test "x$ac_ct_RANLIB" = x; then
6473 RANLIB=":"
6474 else
6475 case $cross_compiling:$ac_tool_warned in
6476yes:)
6477{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6478$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6479ac_tool_warned=yes ;;
6480esac
6481 RANLIB=$ac_ct_RANLIB
6482 fi
1cf3d07d
SE
6483else
6484 RANLIB="$ac_cv_prog_RANLIB"
6485fi
6486
6487test -z "$RANLIB" && RANLIB=:
6488
6489
6490
6491
6492
6493
6494# Determine commands to create old-style static archives.
6b4a97ed 6495old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1cf3d07d
SE
6496old_postinstall_cmds='chmod 644 $oldlib'
6497old_postuninstall_cmds=
6498
6499if test -n "$RANLIB"; then
6500 case $host_os in
6501 openbsd*)
6502 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6503 ;;
6504 *)
6505 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6506 ;;
6507 esac
6508 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6509fi
6510
43e02a8a
RW
6511case $host_os in
6512 darwin*)
6513 lock_old_archive_extraction=yes ;;
6514 *)
6515 lock_old_archive_extraction=no ;;
6516esac
6517
6518
6519
6520
6521
6522
1cf3d07d
SE
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556# If no C compiler was specified, use CC.
6557LTCC=${LTCC-"$CC"}
6558
6559# If no C compiler flags were specified, use CFLAGS.
6560LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6561
6562# Allow CC to be a program name with arguments.
6563compiler=$CC
6564
6565
6566# Check for command to grab the raw symbol name followed by C symbol from nm.
5213506e
RW
6567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6568$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
22e05272 6569if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5213506e 6570 $as_echo_n "(cached) " >&6
1cf3d07d
SE
6571else
6572
6573# These are sane defaults that work on at least a few old systems.
6574# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6575
6576# Character class describing NM global symbol codes.
6577symcode='[BCDEGRST]'
6578
6579# Regexp to match symbols that can be accessed directly from C.
6580sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6581
6582# Define system-specific variables.
6583case $host_os in
6584aix*)
6585 symcode='[BCDT]'
6586 ;;
6b4a97ed 6587cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
6588 symcode='[ABCDGISTW]'
6589 ;;
6590hpux*)
6591 if test "$host_cpu" = ia64; then
6592 symcode='[ABCDEGRST]'
6593 fi
6594 ;;
6595irix* | nonstopux*)
6596 symcode='[BCDEGRST]'
6597 ;;
6598osf*)
6599 symcode='[BCDEGQRST]'
6600 ;;
6601solaris*)
6602 symcode='[BDRT]'
6603 ;;
6604sco3.2v5*)
6605 symcode='[DT]'
6606 ;;
6607sysv4.2uw2*)
6608 symcode='[DT]'
6609 ;;
6610sysv5* | sco5v6* | unixware* | OpenUNIX*)
6611 symcode='[ABDT]'
6612 ;;
6613sysv4)
6614 symcode='[DFNSTU]'
6615 ;;
6616esac
6617
6618# If we're using GNU nm, then use its standard symbol codes.
6619case `$NM -V 2>&1` in
6620*GNU* | *'with BFD'*)
6621 symcode='[ABCDGIRSTW]' ;;
6622esac
6623
6624# Transform an extracted symbol line into a proper C declaration.
6625# Some systems (esp. on ia64) link data and code symbols differently,
6626# so use this general approach.
6627lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6628
6629# Transform an extracted symbol line into symbol name and symbol address
6630lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6b4a97ed 6631lt_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
6632
6633# Handle CRLF in mingw tool chain
6634opt_cr=
6635case $build_os in
6636mingw*)
6637 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6638 ;;
6639esac
6640
6641# Try without a prefix underscore, then with it.
6642for ac_symprfx in "" "_"; do
6643
6644 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6645 symxfrm="\\1 $ac_symprfx\\2 \\2"
6646
6647 # Write the raw and C identifiers.
6648 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6649 # Fake it for dumpbin and say T for any non-static function
6650 # and D for any global variable.
6651 # Also find C++ and __fastcall symbols from MSVC++,
6652 # which start with @ or ?.
6653 lt_cv_sys_global_symbol_pipe="$AWK '"\
6654" {last_section=section; section=\$ 3};"\
6655" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6656" \$ 0!~/External *\|/{next};"\
6657" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6658" {if(hide[section]) next};"\
6659" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6660" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6661" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6662" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6663" ' prfx=^$ac_symprfx"
6664 else
6665 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6666 fi
6667
6668 # Check to see that the pipe works correctly.
6669 pipe_works=no
6670
6671 rm -f conftest*
6672 cat > conftest.$ac_ext <<_LT_EOF
6673#ifdef __cplusplus
6674extern "C" {
6675#endif
6676char nm_test_var;
6677void nm_test_func(void);
6678void nm_test_func(void){}
6679#ifdef __cplusplus
6680}
6681#endif
6682int main(){nm_test_var='a';nm_test_func();return(0);}
6683_LT_EOF
6684
5213506e 6685 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
6686 (eval $ac_compile) 2>&5
6687 ac_status=$?
5213506e
RW
6688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6689 test $ac_status = 0; }; then
1cf3d07d
SE
6690 # Now try to grab the symbols.
6691 nlist=conftest.nm
43e02a8a
RW
6692 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6693 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
1cf3d07d 6694 ac_status=$?
5213506e
RW
6695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6696 test $ac_status = 0; } && test -s "$nlist"; then
1cf3d07d
SE
6697 # Try sorting and uniquifying the output.
6698 if sort "$nlist" | uniq > "$nlist"T; then
6699 mv -f "$nlist"T "$nlist"
6700 else
6701 rm -f "$nlist"T
6702 fi
6703
6704 # Make sure that we snagged all the symbols we need.
6705 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6706 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6707 cat <<_LT_EOF > conftest.$ac_ext
6708#ifdef __cplusplus
6709extern "C" {
6710#endif
6711
6712_LT_EOF
6713 # Now generate the symbol file.
6714 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6715
6716 cat <<_LT_EOF >> conftest.$ac_ext
6717
6718/* The mapping between symbol names and symbols. */
6719const struct {
6720 const char *name;
6721 void *address;
6722}
6723lt__PROGRAM__LTX_preloaded_symbols[] =
6724{
6725 { "@PROGRAM@", (void *) 0 },
6726_LT_EOF
6727 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6728 cat <<\_LT_EOF >> conftest.$ac_ext
6729 {0, (void *) 0}
6730};
6731
6732/* This works around a problem in FreeBSD linker */
6733#ifdef FREEBSD_WORKAROUND
6734static const void *lt_preloaded_setup() {
6735 return lt__PROGRAM__LTX_preloaded_symbols;
6736}
6737#endif
6738
6739#ifdef __cplusplus
6740}
6741#endif
6742_LT_EOF
6743 # Now try linking the two files.
6744 mv conftest.$ac_objext conftstm.$ac_objext
6745 lt_save_LIBS="$LIBS"
6746 lt_save_CFLAGS="$CFLAGS"
6747 LIBS="conftstm.$ac_objext"
6748 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5213506e 6749 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d
SE
6750 (eval $ac_link) 2>&5
6751 ac_status=$?
5213506e
RW
6752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6753 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
1cf3d07d
SE
6754 pipe_works=yes
6755 fi
6756 LIBS="$lt_save_LIBS"
6757 CFLAGS="$lt_save_CFLAGS"
6758 else
6759 echo "cannot find nm_test_func in $nlist" >&5
6760 fi
6761 else
6762 echo "cannot find nm_test_var in $nlist" >&5
6763 fi
6764 else
6765 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6766 fi
6767 else
6768 echo "$progname: failed program was:" >&5
6769 cat conftest.$ac_ext >&5
6770 fi
6b4a97ed 6771 rm -rf conftest* conftst*
1cf3d07d
SE
6772
6773 # Do not use the global_symbol_pipe unless it works.
6774 if test "$pipe_works" = yes; then
6775 break
6776 else
6777 lt_cv_sys_global_symbol_pipe=
6778 fi
6779done
6780
6781fi
6782
6783if test -z "$lt_cv_sys_global_symbol_pipe"; then
6784 lt_cv_sys_global_symbol_to_cdecl=
6785fi
6786if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5213506e
RW
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6788$as_echo "failed" >&6; }
1cf3d07d 6789else
5213506e
RW
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6791$as_echo "ok" >&6; }
1cf3d07d
SE
6792fi
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6b4a97ed
PG
6808
6809
6810
6811
6812
1cf3d07d
SE
6813
6814
6815
5213506e
RW
6816# Check whether --enable-libtool-lock was given.
6817if test "${enable_libtool_lock+set}" = set; then :
6818 enableval=$enable_libtool_lock;
6819fi
1cf3d07d 6820
1cf3d07d
SE
6821test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6822
6823# Some flags need to be propagated to the compiler or linker for good
953ff289
DN
6824# libtool support.
6825case $host in
1cf3d07d 6826ia64-*-hpux*)
953ff289 6827 # Find out which ABI we are using.
1cf3d07d 6828 echo 'int i;' > conftest.$ac_ext
5213506e 6829 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
953ff289
DN
6830 (eval $ac_compile) 2>&5
6831 ac_status=$?
5213506e
RW
6832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6833 test $ac_status = 0; }; then
1cf3d07d
SE
6834 case `/usr/bin/file conftest.$ac_objext` in
6835 *ELF-32*)
6836 HPUX_IA64_MODE="32"
6837 ;;
6838 *ELF-64*)
6839 HPUX_IA64_MODE="64"
6840 ;;
6841 esac
6842 fi
6843 rm -rf conftest*
6844 ;;
6845*-*-irix6*)
6846 # Find out which ABI we are using.
43e02a8a 6847 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5213506e 6848 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
6849 (eval $ac_compile) 2>&5
6850 ac_status=$?
5213506e
RW
6851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6852 test $ac_status = 0; }; then
1cf3d07d
SE
6853 if test "$lt_cv_prog_gnu_ld" = yes; then
6854 case `/usr/bin/file conftest.$ac_objext` in
6855 *32-bit*)
6856 LD="${LD-ld} -melf32bsmip"
6857 ;;
6858 *N32*)
6859 LD="${LD-ld} -melf32bmipn32"
6860 ;;
6861 *64-bit*)
6862 LD="${LD-ld} -melf64bmip"
6863 ;;
6864 esac
6865 else
6866 case `/usr/bin/file conftest.$ac_objext` in
6867 *32-bit*)
6868 LD="${LD-ld} -32"
6869 ;;
6870 *N32*)
6871 LD="${LD-ld} -n32"
6872 ;;
6873 *64-bit*)
6874 LD="${LD-ld} -64"
6875 ;;
6876 esac
6877 fi
6878 fi
6879 rm -rf conftest*
6880 ;;
6881
3cbe17f7 6882x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
1cf3d07d
SE
6883s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6884 # Find out which ABI we are using.
6885 echo 'int i;' > conftest.$ac_ext
5213506e 6886 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
6887 (eval $ac_compile) 2>&5
6888 ac_status=$?
5213506e
RW
6889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6890 test $ac_status = 0; }; then
1cf3d07d
SE
6891 case `/usr/bin/file conftest.o` in
6892 *32-bit*)
6893 case $host in
6894 x86_64-*kfreebsd*-gnu)
6895 LD="${LD-ld} -m elf_i386_fbsd"
6896 ;;
6897 x86_64-*linux*)
e6d5f8c9
L
6898 case `/usr/bin/file conftest.o` in
6899 *x86-64*)
6900 LD="${LD-ld} -m elf32_x86_64"
6901 ;;
6902 *)
6903 LD="${LD-ld} -m elf_i386"
6904 ;;
6905 esac
1cf3d07d 6906 ;;
3cbe17f7
AM
6907 powerpc64le-*linux*)
6908 LD="${LD-ld} -m elf32lppclinux"
6909 ;;
6910 powerpc64-*linux*)
1cf3d07d
SE
6911 LD="${LD-ld} -m elf32ppclinux"
6912 ;;
6913 s390x-*linux*)
6914 LD="${LD-ld} -m elf_s390"
6915 ;;
6916 sparc64-*linux*)
6917 LD="${LD-ld} -m elf32_sparc"
6918 ;;
6919 esac
6920 ;;
6921 *64-bit*)
6922 case $host in
6923 x86_64-*kfreebsd*-gnu)
6924 LD="${LD-ld} -m elf_x86_64_fbsd"
6925 ;;
6926 x86_64-*linux*)
6927 LD="${LD-ld} -m elf_x86_64"
6928 ;;
3cbe17f7
AM
6929 powerpcle-*linux*)
6930 LD="${LD-ld} -m elf64lppc"
6931 ;;
6932 powerpc-*linux*)
1cf3d07d
SE
6933 LD="${LD-ld} -m elf64ppc"
6934 ;;
6935 s390*-*linux*|s390*-*tpf*)
6936 LD="${LD-ld} -m elf64_s390"
6937 ;;
6938 sparc*-*linux*)
6939 LD="${LD-ld} -m elf64_sparc"
6940 ;;
6941 esac
6942 ;;
6943 esac
6944 fi
6945 rm -rf conftest*
6946 ;;
6947
6948*-*-sco3.2v5*)
6949 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6950 SAVE_CFLAGS="$CFLAGS"
6951 CFLAGS="$CFLAGS -belf"
5213506e
RW
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6953$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
22e05272 6954if ${lt_cv_cc_needs_belf+:} false; then :
5213506e 6955 $as_echo_n "(cached) " >&6
1cf3d07d
SE
6956else
6957 ac_ext=c
6958ac_cpp='$CPP $CPPFLAGS'
6959ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6960ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6961ac_compiler_gnu=$ac_cv_c_compiler_gnu
6962
5213506e 6963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
6964/* end confdefs.h. */
6965
6966int
6967main ()
6968{
6969
6970 ;
6971 return 0;
6972}
6973_ACEOF
5213506e 6974if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
6975 lt_cv_cc_needs_belf=yes
6976else
5213506e 6977 lt_cv_cc_needs_belf=no
1cf3d07d 6978fi
5213506e
RW
6979rm -f core conftest.err conftest.$ac_objext \
6980 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
6981 ac_ext=c
6982ac_cpp='$CPP $CPPFLAGS'
6983ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6984ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6985ac_compiler_gnu=$ac_cv_c_compiler_gnu
6986
6987fi
5213506e
RW
6988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6989$as_echo "$lt_cv_cc_needs_belf" >&6; }
1cf3d07d
SE
6990 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6991 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6992 CFLAGS="$SAVE_CFLAGS"
6993 fi
6994 ;;
6995sparc*-*solaris*)
6996 # Find out which ABI we are using.
6997 echo 'int i;' > conftest.$ac_ext
5213506e 6998 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
6999 (eval $ac_compile) 2>&5
7000 ac_status=$?
5213506e
RW
7001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7002 test $ac_status = 0; }; then
1cf3d07d
SE
7003 case `/usr/bin/file conftest.o` in
7004 *64-bit*)
7005 case $lt_cv_prog_gnu_ld in
7006 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6b4a97ed
PG
7007 *)
7008 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7009 LD="${LD-ld} -64"
7010 fi
7011 ;;
1cf3d07d
SE
7012 esac
7013 ;;
7014 esac
7015 fi
7016 rm -rf conftest*
7017 ;;
7018esac
7019
7020need_locks="$enable_libtool_lock"
7021
6b4a97ed
PG
7022
7023 case $host_os in
7024 rhapsody* | darwin*)
7025 if test -n "$ac_tool_prefix"; then
7026 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7027set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5213506e
RW
7028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7029$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7030if ${ac_cv_prog_DSYMUTIL+:} false; then :
5213506e 7031 $as_echo_n "(cached) " >&6
1cf3d07d 7032else
6b4a97ed
PG
7033 if test -n "$DSYMUTIL"; then
7034 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7035else
7036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7037for as_dir in $PATH
1cf3d07d 7038do
6b4a97ed
PG
7039 IFS=$as_save_IFS
7040 test -z "$as_dir" && as_dir=.
5213506e 7041 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6b4a97ed 7043 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5213506e 7044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6b4a97ed 7045 break 2
1cf3d07d 7046 fi
6b4a97ed 7047done
5213506e
RW
7048 done
7049IFS=$as_save_IFS
6b4a97ed
PG
7050
7051fi
7052fi
7053DSYMUTIL=$ac_cv_prog_DSYMUTIL
7054if test -n "$DSYMUTIL"; then
5213506e
RW
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7056$as_echo "$DSYMUTIL" >&6; }
6b4a97ed 7057else
5213506e
RW
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7059$as_echo "no" >&6; }
6b4a97ed
PG
7060fi
7061
5213506e 7062
6b4a97ed
PG
7063fi
7064if test -z "$ac_cv_prog_DSYMUTIL"; then
7065 ac_ct_DSYMUTIL=$DSYMUTIL
7066 # Extract the first word of "dsymutil", so it can be a program name with args.
7067set dummy dsymutil; ac_word=$2
5213506e
RW
7068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7069$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7070if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
5213506e 7071 $as_echo_n "(cached) " >&6
6b4a97ed
PG
7072else
7073 if test -n "$ac_ct_DSYMUTIL"; then
7074 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7075else
7076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7077for as_dir in $PATH
7078do
7079 IFS=$as_save_IFS
7080 test -z "$as_dir" && as_dir=.
5213506e 7081 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6b4a97ed 7083 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5213506e 7084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6b4a97ed
PG
7085 break 2
7086 fi
7087done
5213506e
RW
7088 done
7089IFS=$as_save_IFS
6b4a97ed 7090
6b4a97ed
PG
7091fi
7092fi
7093ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7094if test -n "$ac_ct_DSYMUTIL"; then
5213506e
RW
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7096$as_echo "$ac_ct_DSYMUTIL" >&6; }
6b4a97ed 7097else
5213506e
RW
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7099$as_echo "no" >&6; }
6b4a97ed
PG
7100fi
7101
5213506e
RW
7102 if test "x$ac_ct_DSYMUTIL" = x; then
7103 DSYMUTIL=":"
7104 else
7105 case $cross_compiling:$ac_tool_warned in
7106yes:)
7107{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7108$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7109ac_tool_warned=yes ;;
7110esac
7111 DSYMUTIL=$ac_ct_DSYMUTIL
7112 fi
6b4a97ed
PG
7113else
7114 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7115fi
7116
7117 if test -n "$ac_tool_prefix"; then
7118 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7119set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5213506e
RW
7120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7121$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7122if ${ac_cv_prog_NMEDIT+:} false; then :
5213506e 7123 $as_echo_n "(cached) " >&6
6b4a97ed
PG
7124else
7125 if test -n "$NMEDIT"; then
7126 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7127else
7128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7129for as_dir in $PATH
7130do
7131 IFS=$as_save_IFS
7132 test -z "$as_dir" && as_dir=.
5213506e 7133 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6b4a97ed 7135 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5213506e 7136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6b4a97ed
PG
7137 break 2
7138 fi
7139done
5213506e
RW
7140 done
7141IFS=$as_save_IFS
6b4a97ed
PG
7142
7143fi
7144fi
7145NMEDIT=$ac_cv_prog_NMEDIT
7146if test -n "$NMEDIT"; then
5213506e
RW
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7148$as_echo "$NMEDIT" >&6; }
6b4a97ed 7149else
5213506e
RW
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7151$as_echo "no" >&6; }
6b4a97ed
PG
7152fi
7153
5213506e 7154
6b4a97ed
PG
7155fi
7156if test -z "$ac_cv_prog_NMEDIT"; then
7157 ac_ct_NMEDIT=$NMEDIT
7158 # Extract the first word of "nmedit", so it can be a program name with args.
7159set dummy nmedit; ac_word=$2
5213506e
RW
7160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7161$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7162if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
5213506e 7163 $as_echo_n "(cached) " >&6
6b4a97ed
PG
7164else
7165 if test -n "$ac_ct_NMEDIT"; then
7166 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7167else
7168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7169for as_dir in $PATH
7170do
7171 IFS=$as_save_IFS
7172 test -z "$as_dir" && as_dir=.
5213506e 7173 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6b4a97ed 7175 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5213506e 7176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6b4a97ed
PG
7177 break 2
7178 fi
7179done
5213506e
RW
7180 done
7181IFS=$as_save_IFS
6b4a97ed 7182
6b4a97ed
PG
7183fi
7184fi
7185ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7186if test -n "$ac_ct_NMEDIT"; then
5213506e
RW
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7188$as_echo "$ac_ct_NMEDIT" >&6; }
6b4a97ed 7189else
5213506e
RW
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7191$as_echo "no" >&6; }
6b4a97ed
PG
7192fi
7193
5213506e
RW
7194 if test "x$ac_ct_NMEDIT" = x; then
7195 NMEDIT=":"
7196 else
7197 case $cross_compiling:$ac_tool_warned in
7198yes:)
7199{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7200$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7201ac_tool_warned=yes ;;
7202esac
7203 NMEDIT=$ac_ct_NMEDIT
7204 fi
6b4a97ed
PG
7205else
7206 NMEDIT="$ac_cv_prog_NMEDIT"
7207fi
7208
7209 if test -n "$ac_tool_prefix"; then
7210 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7211set dummy ${ac_tool_prefix}lipo; ac_word=$2
5213506e
RW
7212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7213$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7214if ${ac_cv_prog_LIPO+:} false; then :
5213506e 7215 $as_echo_n "(cached) " >&6
6b4a97ed
PG
7216else
7217 if test -n "$LIPO"; then
7218 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7219else
7220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7221for as_dir in $PATH
7222do
7223 IFS=$as_save_IFS
7224 test -z "$as_dir" && as_dir=.
5213506e 7225 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6b4a97ed 7227 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5213506e 7228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6b4a97ed
PG
7229 break 2
7230 fi
7231done
5213506e
RW
7232 done
7233IFS=$as_save_IFS
6b4a97ed
PG
7234
7235fi
7236fi
7237LIPO=$ac_cv_prog_LIPO
7238if test -n "$LIPO"; then
5213506e
RW
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7240$as_echo "$LIPO" >&6; }
6b4a97ed 7241else
5213506e
RW
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7243$as_echo "no" >&6; }
6b4a97ed
PG
7244fi
7245
5213506e 7246
6b4a97ed
PG
7247fi
7248if test -z "$ac_cv_prog_LIPO"; then
7249 ac_ct_LIPO=$LIPO
7250 # Extract the first word of "lipo", so it can be a program name with args.
7251set dummy lipo; ac_word=$2
5213506e
RW
7252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7253$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7254if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
5213506e 7255 $as_echo_n "(cached) " >&6
6b4a97ed
PG
7256else
7257 if test -n "$ac_ct_LIPO"; then
7258 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7259else
7260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7261for as_dir in $PATH
7262do
7263 IFS=$as_save_IFS
7264 test -z "$as_dir" && as_dir=.
5213506e 7265 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6b4a97ed 7267 ac_cv_prog_ac_ct_LIPO="lipo"
5213506e 7268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6b4a97ed
PG
7269 break 2
7270 fi
7271done
5213506e
RW
7272 done
7273IFS=$as_save_IFS
6b4a97ed 7274
6b4a97ed
PG
7275fi
7276fi
7277ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7278if test -n "$ac_ct_LIPO"; then
5213506e
RW
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7280$as_echo "$ac_ct_LIPO" >&6; }
6b4a97ed 7281else
5213506e
RW
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7283$as_echo "no" >&6; }
6b4a97ed
PG
7284fi
7285
5213506e
RW
7286 if test "x$ac_ct_LIPO" = x; then
7287 LIPO=":"
7288 else
7289 case $cross_compiling:$ac_tool_warned in
7290yes:)
7291{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7292$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7293ac_tool_warned=yes ;;
7294esac
7295 LIPO=$ac_ct_LIPO
7296 fi
6b4a97ed
PG
7297else
7298 LIPO="$ac_cv_prog_LIPO"
7299fi
7300
7301 if test -n "$ac_tool_prefix"; then
7302 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7303set dummy ${ac_tool_prefix}otool; ac_word=$2
5213506e
RW
7304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7305$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7306if ${ac_cv_prog_OTOOL+:} false; then :
5213506e 7307 $as_echo_n "(cached) " >&6
6b4a97ed
PG
7308else
7309 if test -n "$OTOOL"; then
7310 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7311else
7312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7313for as_dir in $PATH
7314do
7315 IFS=$as_save_IFS
7316 test -z "$as_dir" && as_dir=.
5213506e 7317 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6b4a97ed 7319 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5213506e 7320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6b4a97ed
PG
7321 break 2
7322 fi
7323done
5213506e
RW
7324 done
7325IFS=$as_save_IFS
6b4a97ed
PG
7326
7327fi
7328fi
7329OTOOL=$ac_cv_prog_OTOOL
7330if test -n "$OTOOL"; then
5213506e
RW
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7332$as_echo "$OTOOL" >&6; }
6b4a97ed 7333else
5213506e
RW
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7335$as_echo "no" >&6; }
6b4a97ed
PG
7336fi
7337
5213506e 7338
6b4a97ed
PG
7339fi
7340if test -z "$ac_cv_prog_OTOOL"; then
7341 ac_ct_OTOOL=$OTOOL
7342 # Extract the first word of "otool", so it can be a program name with args.
7343set dummy otool; ac_word=$2
5213506e
RW
7344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7345$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7346if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
5213506e 7347 $as_echo_n "(cached) " >&6
6b4a97ed
PG
7348else
7349 if test -n "$ac_ct_OTOOL"; then
7350 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7351else
7352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7353for as_dir in $PATH
7354do
7355 IFS=$as_save_IFS
7356 test -z "$as_dir" && as_dir=.
5213506e 7357 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6b4a97ed 7359 ac_cv_prog_ac_ct_OTOOL="otool"
5213506e 7360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6b4a97ed
PG
7361 break 2
7362 fi
7363done
5213506e
RW
7364 done
7365IFS=$as_save_IFS
6b4a97ed 7366
6b4a97ed
PG
7367fi
7368fi
7369ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7370if test -n "$ac_ct_OTOOL"; then
5213506e
RW
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7372$as_echo "$ac_ct_OTOOL" >&6; }
6b4a97ed 7373else
5213506e
RW
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7375$as_echo "no" >&6; }
6b4a97ed
PG
7376fi
7377
5213506e
RW
7378 if test "x$ac_ct_OTOOL" = x; then
7379 OTOOL=":"
7380 else
7381 case $cross_compiling:$ac_tool_warned in
7382yes:)
7383{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7384$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7385ac_tool_warned=yes ;;
7386esac
7387 OTOOL=$ac_ct_OTOOL
7388 fi
6b4a97ed
PG
7389else
7390 OTOOL="$ac_cv_prog_OTOOL"
7391fi
7392
7393 if test -n "$ac_tool_prefix"; then
7394 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7395set dummy ${ac_tool_prefix}otool64; ac_word=$2
5213506e
RW
7396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7397$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7398if ${ac_cv_prog_OTOOL64+:} false; then :
5213506e 7399 $as_echo_n "(cached) " >&6
6b4a97ed
PG
7400else
7401 if test -n "$OTOOL64"; then
7402 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7403else
7404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7405for as_dir in $PATH
7406do
7407 IFS=$as_save_IFS
7408 test -z "$as_dir" && as_dir=.
5213506e 7409 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6b4a97ed 7411 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5213506e 7412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6b4a97ed
PG
7413 break 2
7414 fi
7415done
5213506e
RW
7416 done
7417IFS=$as_save_IFS
6b4a97ed
PG
7418
7419fi
7420fi
7421OTOOL64=$ac_cv_prog_OTOOL64
7422if test -n "$OTOOL64"; then
5213506e
RW
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7424$as_echo "$OTOOL64" >&6; }
6b4a97ed 7425else
5213506e
RW
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7427$as_echo "no" >&6; }
6b4a97ed
PG
7428fi
7429
5213506e 7430
6b4a97ed
PG
7431fi
7432if test -z "$ac_cv_prog_OTOOL64"; then
7433 ac_ct_OTOOL64=$OTOOL64
7434 # Extract the first word of "otool64", so it can be a program name with args.
7435set dummy otool64; ac_word=$2
5213506e
RW
7436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7437$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7438if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
5213506e 7439 $as_echo_n "(cached) " >&6
6b4a97ed
PG
7440else
7441 if test -n "$ac_ct_OTOOL64"; then
7442 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7443else
7444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445for as_dir in $PATH
7446do
7447 IFS=$as_save_IFS
7448 test -z "$as_dir" && as_dir=.
5213506e 7449 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6b4a97ed 7451 ac_cv_prog_ac_ct_OTOOL64="otool64"
5213506e 7452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6b4a97ed
PG
7453 break 2
7454 fi
7455done
5213506e
RW
7456 done
7457IFS=$as_save_IFS
6b4a97ed 7458
6b4a97ed
PG
7459fi
7460fi
7461ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7462if test -n "$ac_ct_OTOOL64"; then
5213506e
RW
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7464$as_echo "$ac_ct_OTOOL64" >&6; }
6b4a97ed 7465else
5213506e
RW
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7467$as_echo "no" >&6; }
6b4a97ed
PG
7468fi
7469
5213506e
RW
7470 if test "x$ac_ct_OTOOL64" = x; then
7471 OTOOL64=":"
7472 else
7473 case $cross_compiling:$ac_tool_warned in
7474yes:)
7475{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7476$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7477ac_tool_warned=yes ;;
7478esac
7479 OTOOL64=$ac_ct_OTOOL64
7480 fi
6b4a97ed
PG
7481else
7482 OTOOL64="$ac_cv_prog_OTOOL64"
7483fi
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
5213506e
RW
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7512$as_echo_n "checking for -single_module linker flag... " >&6; }
22e05272 7513if ${lt_cv_apple_cc_single_mod+:} false; then :
5213506e 7514 $as_echo_n "(cached) " >&6
6b4a97ed
PG
7515else
7516 lt_cv_apple_cc_single_mod=no
7517 if test -z "${LT_MULTI_MODULE}"; then
7518 # By default we will add the -single_module flag. You can override
7519 # by either setting the environment variable LT_MULTI_MODULE
7520 # non-empty at configure time, or by adding -multi_module to the
7521 # link flags.
7522 rm -rf libconftest.dylib*
7523 echo "int foo(void){return 1;}" > conftest.c
7524 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7525-dynamiclib -Wl,-single_module conftest.c" >&5
7526 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7527 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7528 _lt_result=$?
7529 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7530 lt_cv_apple_cc_single_mod=yes
7531 else
7532 cat conftest.err >&5
7533 fi
7534 rm -rf libconftest.dylib*
7535 rm -f conftest.*
7536 fi
7537fi
5213506e
RW
7538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7539$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7541$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
22e05272 7542if ${lt_cv_ld_exported_symbols_list+:} false; then :
5213506e 7543 $as_echo_n "(cached) " >&6
6b4a97ed
PG
7544else
7545 lt_cv_ld_exported_symbols_list=no
7546 save_LDFLAGS=$LDFLAGS
7547 echo "_main" > conftest.sym
7548 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5213506e 7549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6b4a97ed
PG
7550/* end confdefs.h. */
7551
7552int
7553main ()
7554{
7555
7556 ;
7557 return 0;
7558}
7559_ACEOF
5213506e 7560if ac_fn_c_try_link "$LINENO"; then :
6b4a97ed
PG
7561 lt_cv_ld_exported_symbols_list=yes
7562else
5213506e 7563 lt_cv_ld_exported_symbols_list=no
6b4a97ed 7564fi
5213506e
RW
7565rm -f core conftest.err conftest.$ac_objext \
7566 conftest$ac_exeext conftest.$ac_ext
6b4a97ed
PG
7567 LDFLAGS="$save_LDFLAGS"
7568
7569fi
5213506e
RW
7570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7571$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
43e02a8a
RW
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7573$as_echo_n "checking for -force_load linker flag... " >&6; }
22e05272 7574if ${lt_cv_ld_force_load+:} false; then :
43e02a8a
RW
7575 $as_echo_n "(cached) " >&6
7576else
7577 lt_cv_ld_force_load=no
7578 cat > conftest.c << _LT_EOF
7579int forced_loaded() { return 2;}
7580_LT_EOF
7581 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7582 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7583 echo "$AR cru libconftest.a conftest.o" >&5
7584 $AR cru libconftest.a conftest.o 2>&5
7585 cat > conftest.c << _LT_EOF
7586int main() { return 0;}
7587_LT_EOF
7588 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7589 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7590 _lt_result=$?
7591 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7592 lt_cv_ld_force_load=yes
7593 else
7594 cat conftest.err >&5
7595 fi
7596 rm -f conftest.err libconftest.a conftest conftest.c
7597 rm -rf conftest.dSYM
7598
7599fi
7600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7601$as_echo "$lt_cv_ld_force_load" >&6; }
6b4a97ed
PG
7602 case $host_os in
7603 rhapsody* | darwin1.[012])
7604 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7605 darwin1.*)
7606 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7607 darwin*) # darwin 5.x on
7608 # if running on 10.5 or later, the deployment target defaults
7609 # to the OS version, if on x86, and 10.4, the deployment
7610 # target defaults to 10.4. Don't you love it?
7611 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7612 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7613 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
ebf6d33b 7614 10.[012][,.]*)
6b4a97ed
PG
7615 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7616 10.*)
7617 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7618 esac
7619 ;;
7620 esac
7621 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7622 _lt_dar_single_mod='$single_module'
7623 fi
7624 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7625 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7626 else
7627 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7628 fi
43e02a8a 7629 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6b4a97ed
PG
7630 _lt_dsymutil='~$DSYMUTIL $lib || :'
7631 else
7632 _lt_dsymutil=
7633 fi
7634 ;;
7635 esac
7636
7637ac_ext=c
7638ac_cpp='$CPP $CPPFLAGS'
7639ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7640ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7641ac_compiler_gnu=$ac_cv_c_compiler_gnu
5213506e
RW
7642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7643$as_echo_n "checking how to run the C preprocessor... " >&6; }
6b4a97ed
PG
7644# On Suns, sometimes $CPP names a directory.
7645if test -n "$CPP" && test -d "$CPP"; then
7646 CPP=
7647fi
7648if test -z "$CPP"; then
22e05272 7649 if ${ac_cv_prog_CPP+:} false; then :
5213506e 7650 $as_echo_n "(cached) " >&6
6b4a97ed
PG
7651else
7652 # Double quotes because CPP needs to be expanded
7653 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7654 do
7655 ac_preproc_ok=false
7656for ac_c_preproc_warn_flag in '' yes
7657do
7658 # Use a header file that comes with gcc, so configuring glibc
7659 # with a fresh cross-compiler works.
7660 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7661 # <limits.h> exists even on freestanding compilers.
7662 # On the NeXT, cc -E runs the code through the compiler's parser,
7663 # not just through cpp. "Syntax error" is here to catch this case.
5213506e 7664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6b4a97ed
PG
7665/* end confdefs.h. */
7666#ifdef __STDC__
7667# include <limits.h>
7668#else
7669# include <assert.h>
7670#endif
7671 Syntax error
7672_ACEOF
5213506e 7673if ac_fn_c_try_cpp "$LINENO"; then :
1cf3d07d 7674
5213506e 7675else
1cf3d07d
SE
7676 # Broken: fails on valid input.
7677continue
7678fi
22e05272 7679rm -f conftest.err conftest.i conftest.$ac_ext
1cf3d07d 7680
5213506e 7681 # OK, works on sane cases. Now check whether nonexistent headers
1cf3d07d 7682 # can be detected and how.
5213506e 7683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7684/* end confdefs.h. */
7685#include <ac_nonexistent.h>
7686_ACEOF
5213506e 7687if ac_fn_c_try_cpp "$LINENO"; then :
1cf3d07d
SE
7688 # Broken: success on invalid input.
7689continue
7690else
1cf3d07d
SE
7691 # Passes both tests.
7692ac_preproc_ok=:
7693break
7694fi
22e05272 7695rm -f conftest.err conftest.i conftest.$ac_ext
1cf3d07d
SE
7696
7697done
7698# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 7699rm -f conftest.i conftest.err conftest.$ac_ext
5213506e 7700if $ac_preproc_ok; then :
1cf3d07d
SE
7701 break
7702fi
7703
7704 done
7705 ac_cv_prog_CPP=$CPP
7706
7707fi
7708 CPP=$ac_cv_prog_CPP
7709else
7710 ac_cv_prog_CPP=$CPP
7711fi
5213506e
RW
7712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7713$as_echo "$CPP" >&6; }
1cf3d07d
SE
7714ac_preproc_ok=false
7715for ac_c_preproc_warn_flag in '' yes
7716do
7717 # Use a header file that comes with gcc, so configuring glibc
7718 # with a fresh cross-compiler works.
7719 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7720 # <limits.h> exists even on freestanding compilers.
7721 # On the NeXT, cc -E runs the code through the compiler's parser,
7722 # not just through cpp. "Syntax error" is here to catch this case.
5213506e 7723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7724/* end confdefs.h. */
7725#ifdef __STDC__
7726# include <limits.h>
7727#else
7728# include <assert.h>
7729#endif
7730 Syntax error
7731_ACEOF
5213506e 7732if ac_fn_c_try_cpp "$LINENO"; then :
1cf3d07d 7733
5213506e 7734else
1cf3d07d
SE
7735 # Broken: fails on valid input.
7736continue
7737fi
22e05272 7738rm -f conftest.err conftest.i conftest.$ac_ext
1cf3d07d 7739
5213506e 7740 # OK, works on sane cases. Now check whether nonexistent headers
1cf3d07d 7741 # can be detected and how.
5213506e 7742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7743/* end confdefs.h. */
7744#include <ac_nonexistent.h>
7745_ACEOF
5213506e 7746if ac_fn_c_try_cpp "$LINENO"; then :
1cf3d07d
SE
7747 # Broken: success on invalid input.
7748continue
7749else
1cf3d07d
SE
7750 # Passes both tests.
7751ac_preproc_ok=:
7752break
7753fi
22e05272 7754rm -f conftest.err conftest.i conftest.$ac_ext
1cf3d07d
SE
7755
7756done
7757# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 7758rm -f conftest.i conftest.err conftest.$ac_ext
5213506e
RW
7759if $ac_preproc_ok; then :
7760
1cf3d07d 7761else
5213506e
RW
7762 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7763$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
7764as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7765See \`config.log' for more details" "$LINENO" 5; }
1cf3d07d
SE
7766fi
7767
7768ac_ext=c
7769ac_cpp='$CPP $CPPFLAGS'
7770ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7771ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7772ac_compiler_gnu=$ac_cv_c_compiler_gnu
7773
7774
5213506e
RW
7775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7776$as_echo_n "checking for ANSI C header files... " >&6; }
22e05272 7777if ${ac_cv_header_stdc+:} false; then :
5213506e 7778 $as_echo_n "(cached) " >&6
1cf3d07d 7779else
5213506e 7780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7781/* end confdefs.h. */
7782#include <stdlib.h>
7783#include <stdarg.h>
7784#include <string.h>
7785#include <float.h>
7786
7787int
7788main ()
7789{
7790
7791 ;
7792 return 0;
7793}
7794_ACEOF
5213506e 7795if ac_fn_c_try_compile "$LINENO"; then :
1cf3d07d
SE
7796 ac_cv_header_stdc=yes
7797else
5213506e 7798 ac_cv_header_stdc=no
1cf3d07d 7799fi
5213506e 7800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d
SE
7801
7802if test $ac_cv_header_stdc = yes; then
7803 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5213506e 7804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7805/* end confdefs.h. */
7806#include <string.h>
7807
7808_ACEOF
7809if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e
RW
7810 $EGREP "memchr" >/dev/null 2>&1; then :
7811
1cf3d07d
SE
7812else
7813 ac_cv_header_stdc=no
7814fi
7815rm -f conftest*
7816
7817fi
7818
7819if test $ac_cv_header_stdc = yes; then
7820 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5213506e 7821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7822/* end confdefs.h. */
7823#include <stdlib.h>
7824
7825_ACEOF
7826if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e
RW
7827 $EGREP "free" >/dev/null 2>&1; then :
7828
1cf3d07d
SE
7829else
7830 ac_cv_header_stdc=no
7831fi
7832rm -f conftest*
7833
7834fi
7835
7836if test $ac_cv_header_stdc = yes; then
7837 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5213506e 7838 if test "$cross_compiling" = yes; then :
1cf3d07d
SE
7839 :
7840else
5213506e 7841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
7842/* end confdefs.h. */
7843#include <ctype.h>
5213506e 7844#include <stdlib.h>
1cf3d07d
SE
7845#if ((' ' & 0x0FF) == 0x020)
7846# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7847# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7848#else
7849# define ISLOWER(c) \
7850 (('a' <= (c) && (c) <= 'i') \
7851 || ('j' <= (c) && (c) <= 'r') \
7852 || ('s' <= (c) && (c) <= 'z'))
7853# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7854#endif
7855
7856#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7857int
7858main ()
7859{
7860 int i;
7861 for (i = 0; i < 256; i++)
7862 if (XOR (islower (i), ISLOWER (i))
7863 || toupper (i) != TOUPPER (i))
5213506e
RW
7864 return 2;
7865 return 0;
1cf3d07d
SE
7866}
7867_ACEOF
5213506e 7868if ac_fn_c_try_run "$LINENO"; then :
1cf3d07d 7869
5213506e
RW
7870else
7871 ac_cv_header_stdc=no
1cf3d07d 7872fi
5213506e
RW
7873rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7874 conftest.$ac_objext conftest.beam conftest.$ac_ext
1cf3d07d 7875fi
5213506e 7876
1cf3d07d
SE
7877fi
7878fi
5213506e
RW
7879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7880$as_echo "$ac_cv_header_stdc" >&6; }
1cf3d07d
SE
7881if test $ac_cv_header_stdc = yes; then
7882
5213506e 7883$as_echo "#define STDC_HEADERS 1" >>confdefs.h
1cf3d07d
SE
7884
7885fi
7886
7887# On IRIX 5.3, sys/types and inttypes.h are conflicting.
1cf3d07d
SE
7888for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7889 inttypes.h stdint.h unistd.h
5213506e
RW
7890do :
7891 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7892ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7893"
22e05272 7894if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1cf3d07d 7895 cat >>confdefs.h <<_ACEOF
5213506e 7896#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1cf3d07d
SE
7897_ACEOF
7898
7899fi
7900
7901done
7902
7903
1cf3d07d 7904for ac_header in dlfcn.h
5213506e
RW
7905do :
7906 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7907"
22e05272 7908if test "x$ac_cv_header_dlfcn_h" = xyes; then :
1cf3d07d 7909 cat >>confdefs.h <<_ACEOF
5213506e 7910#define HAVE_DLFCN_H 1
1cf3d07d
SE
7911_ACEOF
7912
7913fi
7914
7915done
7916
7917
7918
43e02a8a
RW
7919
7920
6b4a97ed
PG
7921# Set options
7922
7923
7924
7925 enable_dlopen=no
7926
7927
7928 enable_win32_dll=no
7929
7930
5213506e
RW
7931 # Check whether --enable-shared was given.
7932if test "${enable_shared+set}" = set; then :
7933 enableval=$enable_shared; p=${PACKAGE-default}
6b4a97ed
PG
7934 case $enableval in
7935 yes) enable_shared=yes ;;
7936 no) enable_shared=no ;;
7937 *)
7938 enable_shared=no
7939 # Look at the argument we got. We use all the common list separators.
7940 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7941 for pkg in $enableval; do
7942 IFS="$lt_save_ifs"
7943 if test "X$pkg" = "X$p"; then
7944 enable_shared=yes
7945 fi
7946 done
7947 IFS="$lt_save_ifs"
7948 ;;
7949 esac
7950else
7951 enable_shared=yes
5213506e
RW
7952fi
7953
6b4a97ed
PG
7954
7955
7956
7957
7958
7959
7960
7961
5213506e
RW
7962 # Check whether --enable-static was given.
7963if test "${enable_static+set}" = set; then :
7964 enableval=$enable_static; p=${PACKAGE-default}
6b4a97ed
PG
7965 case $enableval in
7966 yes) enable_static=yes ;;
7967 no) enable_static=no ;;
7968 *)
7969 enable_static=no
7970 # Look at the argument we got. We use all the common list separators.
7971 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7972 for pkg in $enableval; do
7973 IFS="$lt_save_ifs"
7974 if test "X$pkg" = "X$p"; then
7975 enable_static=yes
7976 fi
7977 done
7978 IFS="$lt_save_ifs"
7979 ;;
7980 esac
7981else
7982 enable_static=yes
5213506e
RW
7983fi
7984
6b4a97ed
PG
7985
7986
7987
7988
7989
7990
7991
7992
7993
5213506e
RW
7994# Check whether --with-pic was given.
7995if test "${with_pic+set}" = set; then :
7996 withval=$with_pic; pic_mode="$withval"
6b4a97ed
PG
7997else
7998 pic_mode=default
5213506e
RW
7999fi
8000
6b4a97ed
PG
8001
8002test -z "$pic_mode" && pic_mode=default
8003
8004
8005
8006
8007
8008
8009
5213506e
RW
8010 # Check whether --enable-fast-install was given.
8011if test "${enable_fast_install+set}" = set; then :
8012 enableval=$enable_fast_install; p=${PACKAGE-default}
6b4a97ed
PG
8013 case $enableval in
8014 yes) enable_fast_install=yes ;;
8015 no) enable_fast_install=no ;;
8016 *)
8017 enable_fast_install=no
8018 # Look at the argument we got. We use all the common list separators.
8019 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8020 for pkg in $enableval; do
8021 IFS="$lt_save_ifs"
8022 if test "X$pkg" = "X$p"; then
8023 enable_fast_install=yes
8024 fi
8025 done
8026 IFS="$lt_save_ifs"
8027 ;;
8028 esac
8029else
8030 enable_fast_install=yes
5213506e
RW
8031fi
8032
6b4a97ed
PG
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
1cf3d07d
SE
8043# This can be used to rebuild libtool when needed
8044LIBTOOL_DEPS="$ltmain"
8045
8046# Always use our own libtool.
8047LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
43e02a8a 8071
1cf3d07d
SE
8072
8073
8074test -z "$LN_S" && LN_S="ln -s"
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089if test -n "${ZSH_VERSION+set}" ; then
8090 setopt NO_GLOB_SUBST
8091fi
8092
5213506e
RW
8093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8094$as_echo_n "checking for objdir... " >&6; }
22e05272 8095if ${lt_cv_objdir+:} false; then :
5213506e 8096 $as_echo_n "(cached) " >&6
1cf3d07d
SE
8097else
8098 rm -f .libs 2>/dev/null
8099mkdir .libs 2>/dev/null
8100if test -d .libs; then
8101 lt_cv_objdir=.libs
8102else
8103 # MS-DOS does not allow filenames that begin with a dot.
8104 lt_cv_objdir=_libs
8105fi
8106rmdir .libs 2>/dev/null
8107fi
5213506e
RW
8108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8109$as_echo "$lt_cv_objdir" >&6; }
1cf3d07d
SE
8110objdir=$lt_cv_objdir
8111
8112
8113
8114
8115
8116cat >>confdefs.h <<_ACEOF
8117#define LT_OBJDIR "$lt_cv_objdir/"
8118_ACEOF
8119
8120
8121
8122
1cf3d07d
SE
8123case $host_os in
8124aix3*)
8125 # AIX sometimes has problems with the GCC collect2 program. For some
8126 # reason, if we set the COLLECT_NAMES environment variable, the problems
8127 # vanish in a puff of smoke.
8128 if test "X${COLLECT_NAMES+set}" != Xset; then
8129 COLLECT_NAMES=
8130 export COLLECT_NAMES
8131 fi
8132 ;;
8133esac
8134
1cf3d07d
SE
8135# Global variables:
8136ofile=libtool
8137can_build_shared=yes
8138
8139# All known linkers require a `.a' archive for static linking (except MSVC,
8140# which needs '.lib').
8141libext=a
8142
8143with_gnu_ld="$lt_cv_prog_gnu_ld"
8144
8145old_CC="$CC"
8146old_CFLAGS="$CFLAGS"
8147
8148# Set sane defaults for various variables
8149test -z "$CC" && CC=cc
8150test -z "$LTCC" && LTCC=$CC
8151test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8152test -z "$LD" && LD=ld
8153test -z "$ac_objext" && ac_objext=o
8154
8155for cc_temp in $compiler""; do
8156 case $cc_temp in
8157 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8158 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8159 \-*) ;;
8160 *) break;;
8161 esac
8162done
43e02a8a 8163cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1cf3d07d
SE
8164
8165
8166# Only perform the check for file, if the check method requires it
8167test -z "$MAGIC_CMD" && MAGIC_CMD=file
8168case $deplibs_check_method in
8169file_magic*)
8170 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5213506e
RW
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8172$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
22e05272 8173if ${lt_cv_path_MAGIC_CMD+:} false; then :
5213506e 8174 $as_echo_n "(cached) " >&6
1cf3d07d
SE
8175else
8176 case $MAGIC_CMD in
8177[\\/*] | ?:[\\/]*)
8178 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8179 ;;
8180*)
8181 lt_save_MAGIC_CMD="$MAGIC_CMD"
8182 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8183 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8184 for ac_dir in $ac_dummy; do
8185 IFS="$lt_save_ifs"
8186 test -z "$ac_dir" && ac_dir=.
8187 if test -f $ac_dir/${ac_tool_prefix}file; then
8188 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8189 if test -n "$file_magic_test_file"; then
8190 case $deplibs_check_method in
8191 "file_magic "*)
8192 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8193 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8194 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8195 $EGREP "$file_magic_regex" > /dev/null; then
8196 :
8197 else
8198 cat <<_LT_EOF 1>&2
8199
8200*** Warning: the command libtool uses to detect shared libraries,
8201*** $file_magic_cmd, produces output that libtool cannot recognize.
8202*** The result is that libtool may fail to recognize shared libraries
8203*** as such. This will affect the creation of libtool libraries that
8204*** depend on shared libraries, but programs linked with such libtool
8205*** libraries will work regardless of this problem. Nevertheless, you
8206*** may want to report the problem to your system manager and/or to
8207*** bug-libtool@gnu.org
8208
8209_LT_EOF
8210 fi ;;
8211 esac
8212 fi
8213 break
8214 fi
8215 done
8216 IFS="$lt_save_ifs"
8217 MAGIC_CMD="$lt_save_MAGIC_CMD"
8218 ;;
8219esac
8220fi
8221
8222MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8223if test -n "$MAGIC_CMD"; then
5213506e
RW
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8225$as_echo "$MAGIC_CMD" >&6; }
1cf3d07d 8226else
5213506e
RW
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8228$as_echo "no" >&6; }
1cf3d07d
SE
8229fi
8230
8231
8232
8233
8234
8235if test -z "$lt_cv_path_MAGIC_CMD"; then
8236 if test -n "$ac_tool_prefix"; then
5213506e
RW
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8238$as_echo_n "checking for file... " >&6; }
22e05272 8239if ${lt_cv_path_MAGIC_CMD+:} false; then :
5213506e 8240 $as_echo_n "(cached) " >&6
1cf3d07d
SE
8241else
8242 case $MAGIC_CMD in
8243[\\/*] | ?:[\\/]*)
8244 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8245 ;;
8246*)
8247 lt_save_MAGIC_CMD="$MAGIC_CMD"
8248 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8249 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8250 for ac_dir in $ac_dummy; do
8251 IFS="$lt_save_ifs"
8252 test -z "$ac_dir" && ac_dir=.
8253 if test -f $ac_dir/file; then
8254 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8255 if test -n "$file_magic_test_file"; then
8256 case $deplibs_check_method in
8257 "file_magic "*)
8258 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8259 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8260 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8261 $EGREP "$file_magic_regex" > /dev/null; then
8262 :
8263 else
8264 cat <<_LT_EOF 1>&2
8265
8266*** Warning: the command libtool uses to detect shared libraries,
8267*** $file_magic_cmd, produces output that libtool cannot recognize.
8268*** The result is that libtool may fail to recognize shared libraries
8269*** as such. This will affect the creation of libtool libraries that
8270*** depend on shared libraries, but programs linked with such libtool
8271*** libraries will work regardless of this problem. Nevertheless, you
8272*** may want to report the problem to your system manager and/or to
8273*** bug-libtool@gnu.org
8274
8275_LT_EOF
8276 fi ;;
8277 esac
8278 fi
8279 break
8280 fi
8281 done
8282 IFS="$lt_save_ifs"
8283 MAGIC_CMD="$lt_save_MAGIC_CMD"
8284 ;;
8285esac
8286fi
8287
8288MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8289if test -n "$MAGIC_CMD"; then
5213506e
RW
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8291$as_echo "$MAGIC_CMD" >&6; }
1cf3d07d 8292else
5213506e
RW
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8294$as_echo "no" >&6; }
1cf3d07d
SE
8295fi
8296
8297
8298 else
8299 MAGIC_CMD=:
8300 fi
8301fi
8302
8303 fi
8304 ;;
8305esac
8306
8307# Use C for the default configuration in the libtool script
8308
8309lt_save_CC="$CC"
8310ac_ext=c
8311ac_cpp='$CPP $CPPFLAGS'
8312ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8313ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8314ac_compiler_gnu=$ac_cv_c_compiler_gnu
8315
8316
8317# Source file extension for C test sources.
8318ac_ext=c
8319
8320# Object file extension for compiled C test sources.
8321objext=o
8322objext=$objext
8323
8324# Code to be used in simple compile tests
8325lt_simple_compile_test_code="int some_variable = 0;"
8326
8327# Code to be used in simple link tests
8328lt_simple_link_test_code='int main(){return(0);}'
8329
8330
8331
8332
8333
8334
8335
8336# If no C compiler was specified, use CC.
8337LTCC=${LTCC-"$CC"}
8338
8339# If no C compiler flags were specified, use CFLAGS.
8340LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8341
8342# Allow CC to be a program name with arguments.
8343compiler=$CC
8344
8345# Save the default compiler, since it gets overwritten when the other
8346# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8347compiler_DEFAULT=$CC
8348
8349# save warnings/boilerplate of simple test code
8350ac_outfile=conftest.$ac_objext
8351echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8352eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8353_lt_compiler_boilerplate=`cat conftest.err`
8354$RM conftest*
8355
8356ac_outfile=conftest.$ac_objext
8357echo "$lt_simple_link_test_code" >conftest.$ac_ext
8358eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8359_lt_linker_boilerplate=`cat conftest.err`
6b4a97ed 8360$RM -r conftest*
1cf3d07d
SE
8361
8362
8363## CAVEAT EMPTOR:
8364## There is no encapsulation within the following macros, do not change
8365## the running order or otherwise move them around unless you know exactly
8366## what you are doing...
8367if test -n "$compiler"; then
8368
8369lt_prog_compiler_no_builtin_flag=
8370
8371if test "$GCC" = yes; then
43e02a8a
RW
8372 case $cc_basename in
8373 nvcc*)
8374 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8375 *)
8376 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8377 esac
1cf3d07d 8378
5213506e
RW
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8380$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
22e05272 8381if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
5213506e 8382 $as_echo_n "(cached) " >&6
1cf3d07d
SE
8383else
8384 lt_cv_prog_compiler_rtti_exceptions=no
8385 ac_outfile=conftest.$ac_objext
8386 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8387 lt_compiler_flag="-fno-rtti -fno-exceptions"
8388 # Insert the option either (1) after the last *FLAGS variable, or
8389 # (2) before a word containing "conftest.", or (3) at the end.
8390 # Note that $ac_compile itself does not contain backslashes and begins
8391 # with a dollar sign (not a hyphen), so the echo should work correctly.
8392 # The option is referenced via a variable to avoid confusing sed.
8393 lt_compile=`echo "$ac_compile" | $SED \
8394 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8395 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8396 -e 's:$: $lt_compiler_flag:'`
43e02a8a 8397 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
8398 (eval "$lt_compile" 2>conftest.err)
8399 ac_status=$?
8400 cat conftest.err >&5
43e02a8a 8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
8402 if (exit $ac_status) && test -s "$ac_outfile"; then
8403 # The compiler can only warn and ignore the option if not recognized
8404 # So say no if there are warnings other than the usual output.
43e02a8a 8405 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1cf3d07d
SE
8406 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8407 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8408 lt_cv_prog_compiler_rtti_exceptions=yes
8409 fi
8410 fi
8411 $RM conftest*
8412
8413fi
5213506e
RW
8414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8415$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
1cf3d07d
SE
8416
8417if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8418 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8419else
8420 :
8421fi
8422
8423fi
8424
8425
8426
8427
8428
8429
8430 lt_prog_compiler_wl=
8431lt_prog_compiler_pic=
8432lt_prog_compiler_static=
8433
5213506e
RW
8434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8435$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
1cf3d07d
SE
8436
8437 if test "$GCC" = yes; then
8438 lt_prog_compiler_wl='-Wl,'
8439 lt_prog_compiler_static='-static'
8440
8441 case $host_os in
8442 aix*)
8443 # All AIX code is PIC.
8444 if test "$host_cpu" = ia64; then
8445 # AIX 5 now supports IA64 processor
8446 lt_prog_compiler_static='-Bstatic'
8447 fi
6608378b 8448 lt_prog_compiler_pic='-fPIC'
1cf3d07d
SE
8449 ;;
8450
8451 amigaos*)
6b4a97ed
PG
8452 case $host_cpu in
8453 powerpc)
8454 # see comment about AmigaOS4 .so support
8455 lt_prog_compiler_pic='-fPIC'
8456 ;;
8457 m68k)
8458 # FIXME: we need at least 68020 code to build shared libraries, but
8459 # adding the `-m68020' flag to GCC prevents building anything better,
8460 # like `-m68040'.
8461 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8462 ;;
8463 esac
1cf3d07d
SE
8464 ;;
8465
8466 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8467 # PIC is the default for these OSes.
8468 ;;
8469
6b4a97ed 8470 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
8471 # This hack is so that the source file can tell whether it is being
8472 # built for inclusion in a dll (and should export symbols for example).
8473 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8474 # (--disable-auto-import) libraries
8475 lt_prog_compiler_pic='-DDLL_EXPORT'
8476 ;;
8477
8478 darwin* | rhapsody*)
8479 # PIC is the default on this platform
8480 # Common symbols not allowed in MH_DYLIB files
8481 lt_prog_compiler_pic='-fno-common'
8482 ;;
8483
43e02a8a
RW
8484 haiku*)
8485 # PIC is the default for Haiku.
8486 # The "-static" flag exists, but is broken.
8487 lt_prog_compiler_static=
8488 ;;
8489
1cf3d07d 8490 hpux*)
6b4a97ed
PG
8491 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8492 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8493 # sets the default TLS model and affects inlining.
1cf3d07d 8494 case $host_cpu in
6b4a97ed 8495 hppa*64*)
1cf3d07d
SE
8496 # +Z the default
8497 ;;
8498 *)
8499 lt_prog_compiler_pic='-fPIC'
8500 ;;
8501 esac
8502 ;;
8503
8504 interix[3-9]*)
8505 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8506 # Instead, we relocate shared libraries at runtime.
8507 ;;
8508
8509 msdosdjgpp*)
8510 # Just because we use GCC doesn't mean we suddenly get shared libraries
8511 # on systems that don't support them.
8512 lt_prog_compiler_can_build_shared=no
8513 enable_shared=no
8514 ;;
8515
8516 *nto* | *qnx*)
8517 # QNX uses GNU C++, but need to define -shared option too, otherwise
8518 # it will coredump.
8519 lt_prog_compiler_pic='-fPIC -shared'
8520 ;;
8521
8522 sysv4*MP*)
8523 if test -d /usr/nec; then
8524 lt_prog_compiler_pic=-Kconform_pic
8525 fi
8526 ;;
8527
8528 *)
8529 lt_prog_compiler_pic='-fPIC'
8530 ;;
8531 esac
43e02a8a
RW
8532
8533 case $cc_basename in
8534 nvcc*) # Cuda Compiler Driver 2.2
8535 lt_prog_compiler_wl='-Xlinker '
8536 lt_prog_compiler_pic='-Xcompiler -fPIC'
8537 ;;
8538 esac
1cf3d07d
SE
8539 else
8540 # PORTME Check for flag to pass linker flags through the system compiler.
8541 case $host_os in
8542 aix*)
8543 lt_prog_compiler_wl='-Wl,'
8544 if test "$host_cpu" = ia64; then
8545 # AIX 5 now supports IA64 processor
8546 lt_prog_compiler_static='-Bstatic'
8547 else
8548 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8549 fi
8550 ;;
1cf3d07d 8551
6b4a97ed 8552 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
8553 # This hack is so that the source file can tell whether it is being
8554 # built for inclusion in a dll (and should export symbols for example).
8555 lt_prog_compiler_pic='-DDLL_EXPORT'
8556 ;;
8557
8558 hpux9* | hpux10* | hpux11*)
8559 lt_prog_compiler_wl='-Wl,'
8560 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8561 # not for PA HP-UX.
8562 case $host_cpu in
8563 hppa*64*|ia64*)
8564 # +Z the default
8565 ;;
8566 *)
8567 lt_prog_compiler_pic='+Z'
8568 ;;
8569 esac
8570 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8571 lt_prog_compiler_static='${wl}-a ${wl}archive'
8572 ;;
8573
8574 irix5* | irix6* | nonstopux*)
8575 lt_prog_compiler_wl='-Wl,'
8576 # PIC (with -KPIC) is the default.
8577 lt_prog_compiler_static='-non_shared'
8578 ;;
8579
7a9d3fe8 8580 linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d 8581 case $cc_basename in
6b4a97ed
PG
8582 # old Intel for x86_64 which still supported -KPIC.
8583 ecc*)
1cf3d07d
SE
8584 lt_prog_compiler_wl='-Wl,'
8585 lt_prog_compiler_pic='-KPIC'
8586 lt_prog_compiler_static='-static'
8587 ;;
6b4a97ed
PG
8588 # icc used to be incompatible with GCC.
8589 # ICC 10 doesn't accept -KPIC any more.
8590 icc* | ifort*)
8591 lt_prog_compiler_wl='-Wl,'
8592 lt_prog_compiler_pic='-fPIC'
8593 lt_prog_compiler_static='-static'
8594 ;;
8595 # Lahey Fortran 8.1.
8596 lf95*)
8597 lt_prog_compiler_wl='-Wl,'
8598 lt_prog_compiler_pic='--shared'
8599 lt_prog_compiler_static='--static'
8600 ;;
43e02a8a 8601 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
1cf3d07d
SE
8602 # Portland Group compilers (*not* the Pentium gcc compiler,
8603 # which looks to be a dead project)
8604 lt_prog_compiler_wl='-Wl,'
8605 lt_prog_compiler_pic='-fpic'
8606 lt_prog_compiler_static='-Bstatic'
8607 ;;
8608 ccc*)
8609 lt_prog_compiler_wl='-Wl,'
8610 # All Alpha code is PIC.
8611 lt_prog_compiler_static='-non_shared'
8612 ;;
43e02a8a
RW
8613 xl* | bgxl* | bgf* | mpixl*)
8614 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
6b4a97ed
PG
8615 lt_prog_compiler_wl='-Wl,'
8616 lt_prog_compiler_pic='-qpic'
8617 lt_prog_compiler_static='-qstaticlink'
8618 ;;
1cf3d07d
SE
8619 *)
8620 case `$CC -V 2>&1 | sed 5q` in
43e02a8a
RW
8621 *Sun\ F* | *Sun*Fortran*)
8622 # Sun Fortran 8.3 passes all unrecognized flags to the linker
1cf3d07d
SE
8623 lt_prog_compiler_pic='-KPIC'
8624 lt_prog_compiler_static='-Bstatic'
43e02a8a 8625 lt_prog_compiler_wl=''
1cf3d07d 8626 ;;
43e02a8a
RW
8627 *Sun\ C*)
8628 # Sun C 5.9
1cf3d07d
SE
8629 lt_prog_compiler_pic='-KPIC'
8630 lt_prog_compiler_static='-Bstatic'
43e02a8a 8631 lt_prog_compiler_wl='-Wl,'
1cf3d07d
SE
8632 ;;
8633 esac
8634 ;;
8635 esac
8636 ;;
8637
8638 newsos6)
8639 lt_prog_compiler_pic='-KPIC'
8640 lt_prog_compiler_static='-Bstatic'
8641 ;;
8642
8643 *nto* | *qnx*)
8644 # QNX uses GNU C++, but need to define -shared option too, otherwise
8645 # it will coredump.
8646 lt_prog_compiler_pic='-fPIC -shared'
8647 ;;
8648
8649 osf3* | osf4* | osf5*)
8650 lt_prog_compiler_wl='-Wl,'
8651 # All OSF/1 code is PIC.
8652 lt_prog_compiler_static='-non_shared'
8653 ;;
8654
8655 rdos*)
8656 lt_prog_compiler_static='-non_shared'
8657 ;;
8658
8659 solaris*)
8660 lt_prog_compiler_pic='-KPIC'
8661 lt_prog_compiler_static='-Bstatic'
8662 case $cc_basename in
8663 f77* | f90* | f95*)
8664 lt_prog_compiler_wl='-Qoption ld ';;
8665 *)
8666 lt_prog_compiler_wl='-Wl,';;
8667 esac
8668 ;;
8669
8670 sunos4*)
8671 lt_prog_compiler_wl='-Qoption ld '
8672 lt_prog_compiler_pic='-PIC'
8673 lt_prog_compiler_static='-Bstatic'
8674 ;;
8675
8676 sysv4 | sysv4.2uw2* | sysv4.3*)
8677 lt_prog_compiler_wl='-Wl,'
8678 lt_prog_compiler_pic='-KPIC'
8679 lt_prog_compiler_static='-Bstatic'
8680 ;;
8681
8682 sysv4*MP*)
8683 if test -d /usr/nec ;then
8684 lt_prog_compiler_pic='-Kconform_pic'
8685 lt_prog_compiler_static='-Bstatic'
8686 fi
8687 ;;
8688
8689 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8690 lt_prog_compiler_wl='-Wl,'
8691 lt_prog_compiler_pic='-KPIC'
8692 lt_prog_compiler_static='-Bstatic'
8693 ;;
8694
8695 unicos*)
8696 lt_prog_compiler_wl='-Wl,'
8697 lt_prog_compiler_can_build_shared=no
8698 ;;
8699
8700 uts4*)
8701 lt_prog_compiler_pic='-pic'
8702 lt_prog_compiler_static='-Bstatic'
8703 ;;
8704
8705 *)
8706 lt_prog_compiler_can_build_shared=no
8707 ;;
8708 esac
8709 fi
8710
8711case $host_os in
8712 # For platforms which do not support PIC, -DPIC is meaningless:
8713 *djgpp*)
8714 lt_prog_compiler_pic=
8715 ;;
8716 *)
8717 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8718 ;;
8719esac
5213506e
RW
8720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8721$as_echo "$lt_prog_compiler_pic" >&6; }
1cf3d07d
SE
8722
8723
8724
8725
8726
8727
8728#
8729# Check to make sure the PIC flag actually works.
8730#
8731if test -n "$lt_prog_compiler_pic"; then
5213506e
RW
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8733$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
22e05272 8734if ${lt_cv_prog_compiler_pic_works+:} false; then :
5213506e 8735 $as_echo_n "(cached) " >&6
1cf3d07d 8736else
6b4a97ed 8737 lt_cv_prog_compiler_pic_works=no
1cf3d07d
SE
8738 ac_outfile=conftest.$ac_objext
8739 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8740 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8741 # Insert the option either (1) after the last *FLAGS variable, or
8742 # (2) before a word containing "conftest.", or (3) at the end.
8743 # Note that $ac_compile itself does not contain backslashes and begins
8744 # with a dollar sign (not a hyphen), so the echo should work correctly.
8745 # The option is referenced via a variable to avoid confusing sed.
8746 lt_compile=`echo "$ac_compile" | $SED \
8747 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8748 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8749 -e 's:$: $lt_compiler_flag:'`
43e02a8a 8750 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
8751 (eval "$lt_compile" 2>conftest.err)
8752 ac_status=$?
8753 cat conftest.err >&5
43e02a8a 8754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
8755 if (exit $ac_status) && test -s "$ac_outfile"; then
8756 # The compiler can only warn and ignore the option if not recognized
8757 # So say no if there are warnings other than the usual output.
43e02a8a 8758 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1cf3d07d
SE
8759 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8760 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6b4a97ed 8761 lt_cv_prog_compiler_pic_works=yes
1cf3d07d
SE
8762 fi
8763 fi
8764 $RM conftest*
8765
8766fi
5213506e
RW
8767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8768$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
1cf3d07d 8769
6b4a97ed 8770if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
1cf3d07d
SE
8771 case $lt_prog_compiler_pic in
8772 "" | " "*) ;;
8773 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8774 esac
8775else
8776 lt_prog_compiler_pic=
8777 lt_prog_compiler_can_build_shared=no
8778fi
8779
8780fi
8781
8782
8783
8784
8785
8786
8787#
8788# Check to make sure the static flag actually works.
8789#
8790wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
5213506e
RW
8791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8792$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22e05272 8793if ${lt_cv_prog_compiler_static_works+:} false; then :
5213506e 8794 $as_echo_n "(cached) " >&6
1cf3d07d 8795else
6b4a97ed 8796 lt_cv_prog_compiler_static_works=no
1cf3d07d
SE
8797 save_LDFLAGS="$LDFLAGS"
8798 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8799 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8800 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8801 # The linker can only warn and ignore the option if not recognized
8802 # So say no if there are warnings
8803 if test -s conftest.err; then
8804 # Append any errors to the config.log.
8805 cat conftest.err 1>&5
43e02a8a 8806 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1cf3d07d
SE
8807 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8808 if diff conftest.exp conftest.er2 >/dev/null; then
6b4a97ed 8809 lt_cv_prog_compiler_static_works=yes
1cf3d07d
SE
8810 fi
8811 else
6b4a97ed 8812 lt_cv_prog_compiler_static_works=yes
1cf3d07d
SE
8813 fi
8814 fi
6b4a97ed 8815 $RM -r conftest*
1cf3d07d
SE
8816 LDFLAGS="$save_LDFLAGS"
8817
8818fi
5213506e
RW
8819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8820$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
1cf3d07d 8821
6b4a97ed 8822if test x"$lt_cv_prog_compiler_static_works" = xyes; then
1cf3d07d
SE
8823 :
8824else
8825 lt_prog_compiler_static=
8826fi
8827
8828
8829
8830
8831
8832
8833
5213506e
RW
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8835$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 8836if ${lt_cv_prog_compiler_c_o+:} false; then :
5213506e 8837 $as_echo_n "(cached) " >&6
1cf3d07d
SE
8838else
8839 lt_cv_prog_compiler_c_o=no
8840 $RM -r conftest 2>/dev/null
8841 mkdir conftest
8842 cd conftest
8843 mkdir out
8844 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8845
8846 lt_compiler_flag="-o out/conftest2.$ac_objext"
8847 # Insert the option either (1) after the last *FLAGS variable, or
8848 # (2) before a word containing "conftest.", or (3) at the end.
8849 # Note that $ac_compile itself does not contain backslashes and begins
8850 # with a dollar sign (not a hyphen), so the echo should work correctly.
8851 lt_compile=`echo "$ac_compile" | $SED \
8852 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8853 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8854 -e 's:$: $lt_compiler_flag:'`
43e02a8a 8855 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
8856 (eval "$lt_compile" 2>out/conftest.err)
8857 ac_status=$?
8858 cat out/conftest.err >&5
43e02a8a 8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
8860 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8861 then
8862 # The compiler can only warn and ignore the option if not recognized
8863 # So say no if there are warnings
43e02a8a 8864 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
8865 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8866 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8867 lt_cv_prog_compiler_c_o=yes
8868 fi
8869 fi
8870 chmod u+w . 2>&5
8871 $RM conftest*
8872 # SGI C++ compiler will create directory out/ii_files/ for
8873 # template instantiation
8874 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8875 $RM out/* && rmdir out
8876 cd ..
8877 $RM -r conftest
8878 $RM conftest*
8879
8880fi
5213506e
RW
8881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8882$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1cf3d07d
SE
8883
8884
8885
8886
8887
8888
5213506e
RW
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8890$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 8891if ${lt_cv_prog_compiler_c_o+:} false; then :
5213506e 8892 $as_echo_n "(cached) " >&6
1cf3d07d
SE
8893else
8894 lt_cv_prog_compiler_c_o=no
8895 $RM -r conftest 2>/dev/null
8896 mkdir conftest
8897 cd conftest
8898 mkdir out
8899 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8900
8901 lt_compiler_flag="-o out/conftest2.$ac_objext"
8902 # Insert the option either (1) after the last *FLAGS variable, or
8903 # (2) before a word containing "conftest.", or (3) at the end.
8904 # Note that $ac_compile itself does not contain backslashes and begins
8905 # with a dollar sign (not a hyphen), so the echo should work correctly.
8906 lt_compile=`echo "$ac_compile" | $SED \
8907 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8908 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8909 -e 's:$: $lt_compiler_flag:'`
43e02a8a 8910 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
8911 (eval "$lt_compile" 2>out/conftest.err)
8912 ac_status=$?
8913 cat out/conftest.err >&5
43e02a8a 8914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
8915 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8916 then
8917 # The compiler can only warn and ignore the option if not recognized
8918 # So say no if there are warnings
43e02a8a 8919 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
8920 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8921 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8922 lt_cv_prog_compiler_c_o=yes
8923 fi
8924 fi
8925 chmod u+w . 2>&5
8926 $RM conftest*
8927 # SGI C++ compiler will create directory out/ii_files/ for
8928 # template instantiation
8929 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8930 $RM out/* && rmdir out
8931 cd ..
8932 $RM -r conftest
8933 $RM conftest*
8934
8935fi
5213506e
RW
8936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8937$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
1cf3d07d
SE
8938
8939
8940
8941
8942hard_links="nottested"
8943if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8944 # do not overwrite the value of need_locks provided by the user
5213506e
RW
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8946$as_echo_n "checking if we can lock with hard links... " >&6; }
1cf3d07d
SE
8947 hard_links=yes
8948 $RM conftest*
8949 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8950 touch conftest.a
8951 ln conftest.a conftest.b 2>&5 || hard_links=no
8952 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5213506e
RW
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8954$as_echo "$hard_links" >&6; }
1cf3d07d 8955 if test "$hard_links" = no; then
5213506e
RW
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8957$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1cf3d07d
SE
8958 need_locks=warn
8959 fi
8960else
8961 need_locks=no
8962fi
8963
8964
8965
8966
8967
8968
5213506e
RW
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8970$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1cf3d07d
SE
8971
8972 runpath_var=
8973 allow_undefined_flag=
8974 always_export_symbols=no
8975 archive_cmds=
8976 archive_expsym_cmds=
8977 compiler_needs_object=no
8978 enable_shared_with_static_runtimes=no
8979 export_dynamic_flag_spec=
8980 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8981 hardcode_automatic=no
8982 hardcode_direct=no
8983 hardcode_direct_absolute=no
8984 hardcode_libdir_flag_spec=
8985 hardcode_libdir_flag_spec_ld=
8986 hardcode_libdir_separator=
8987 hardcode_minus_L=no
8988 hardcode_shlibpath_var=unsupported
8989 inherit_rpath=no
8990 link_all_deplibs=unknown
8991 module_cmds=
8992 module_expsym_cmds=
8993 old_archive_from_new_cmds=
8994 old_archive_from_expsyms_cmds=
8995 thread_safe_flag_spec=
8996 whole_archive_flag_spec=
8997 # include_expsyms should be a list of space-separated symbols to be *always*
8998 # included in the symbol list
8999 include_expsyms=
9000 # exclude_expsyms can be an extended regexp of symbols to exclude
9001 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9002 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9003 # as well as any symbol that contains `d'.
6b4a97ed 9004 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1cf3d07d
SE
9005 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9006 # platforms (ab)use it in PIC code, but their linkers get confused if
9007 # the symbol is explicitly referenced. Since portable code cannot
9008 # rely on this symbol name, it's probably fine to never include it in
9009 # preloaded symbol tables.
6b4a97ed 9010 # Exclude shared library initialization/finalization symbols.
1cf3d07d
SE
9011 extract_expsyms_cmds=
9012
9013 case $host_os in
6b4a97ed 9014 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
9015 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9016 # When not using gcc, we currently assume that we are using
9017 # Microsoft Visual C++.
9018 if test "$GCC" != yes; then
9019 with_gnu_ld=no
9020 fi
9021 ;;
9022 interix*)
9023 # we just hope/assume this is gcc and not c89 (= MSVC++)
9024 with_gnu_ld=yes
9025 ;;
9026 openbsd*)
9027 with_gnu_ld=no
9028 ;;
9029 esac
9030
9031 ld_shlibs=yes
43e02a8a
RW
9032
9033 # On some targets, GNU ld is compatible enough with the native linker
9034 # that we're better off using the native interface for both.
9035 lt_use_gnu_ld_interface=no
1cf3d07d 9036 if test "$with_gnu_ld" = yes; then
43e02a8a
RW
9037 case $host_os in
9038 aix*)
9039 # The AIX port of GNU ld has always aspired to compatibility
9040 # with the native linker. However, as the warning in the GNU ld
9041 # block says, versions before 2.19.5* couldn't really create working
9042 # shared libraries, regardless of the interface used.
9043 case `$LD -v 2>&1` in
9044 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9045 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9046 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9047 *)
9048 lt_use_gnu_ld_interface=yes
9049 ;;
9050 esac
9051 ;;
9052 *)
9053 lt_use_gnu_ld_interface=yes
9054 ;;
9055 esac
9056 fi
9057
9058 if test "$lt_use_gnu_ld_interface" = yes; then
1cf3d07d
SE
9059 # If archive_cmds runs LD, not CC, wlarc should be empty
9060 wlarc='${wl}'
9061
9062 # Set some defaults for GNU ld with shared library support. These
9063 # are reset later if shared libraries are not supported. Putting them
9064 # here allows them to be overridden if necessary.
9065 runpath_var=LD_RUN_PATH
9066 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9067 export_dynamic_flag_spec='${wl}--export-dynamic'
9068 # ancient GNU ld didn't support --whole-archive et. al.
9069 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9070 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9071 else
9072 whole_archive_flag_spec=
9073 fi
9074 supports_anon_versioning=no
9075 case `$LD -v 2>&1` in
43e02a8a 9076 *GNU\ gold*) supports_anon_versioning=yes ;;
1cf3d07d
SE
9077 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9078 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9079 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9080 *\ 2.11.*) ;; # other 2.11 versions
9081 *) supports_anon_versioning=yes ;;
9082 esac
9083
9084 # See if GNU ld supports shared libraries.
9085 case $host_os in
d653fdfb 9086 aix[3-9]*)
1cf3d07d
SE
9087 # On AIX/PPC, the GNU linker is very broken
9088 if test "$host_cpu" != ia64; then
9089 ld_shlibs=no
9090 cat <<_LT_EOF 1>&2
9091
43e02a8a 9092*** Warning: the GNU linker, at least up to release 2.19, is reported
1cf3d07d
SE
9093*** to be unable to reliably create shared libraries on AIX.
9094*** Therefore, libtool is disabling shared libraries support. If you
43e02a8a
RW
9095*** really care for shared libraries, you may want to install binutils
9096*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9097*** You will then need to restart the configuration process.
1cf3d07d
SE
9098
9099_LT_EOF
9100 fi
9101 ;;
9102
9103 amigaos*)
6b4a97ed
PG
9104 case $host_cpu in
9105 powerpc)
9106 # see comment about AmigaOS4 .so support
9107 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9108 archive_expsym_cmds=''
9109 ;;
9110 m68k)
9111 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)'
9112 hardcode_libdir_flag_spec='-L$libdir'
9113 hardcode_minus_L=yes
9114 ;;
9115 esac
1cf3d07d
SE
9116 ;;
9117
9118 beos*)
9119 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9120 allow_undefined_flag=unsupported
9121 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9122 # support --undefined. This deserves some investigation. FIXME
9123 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9124 else
9125 ld_shlibs=no
9126 fi
9127 ;;
9128
6b4a97ed 9129 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
9130 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9131 # as there is no search path for DLLs.
9132 hardcode_libdir_flag_spec='-L$libdir'
43e02a8a 9133 export_dynamic_flag_spec='${wl}--export-all-symbols'
1cf3d07d
SE
9134 allow_undefined_flag=unsupported
9135 always_export_symbols=no
9136 enable_shared_with_static_runtimes=yes
9137 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9138
9139 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9140 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9141 # If the export-symbols file already is a .def file (1st line
9142 # is EXPORTS), use it as is; otherwise, prepend...
9143 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9144 cp $export_symbols $output_objdir/$soname.def;
9145 else
9146 echo EXPORTS > $output_objdir/$soname.def;
9147 cat $export_symbols >> $output_objdir/$soname.def;
9148 fi~
9149 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9150 else
9151 ld_shlibs=no
9152 fi
9153 ;;
9154
43e02a8a
RW
9155 haiku*)
9156 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9157 link_all_deplibs=yes
9158 ;;
9159
1cf3d07d
SE
9160 interix[3-9]*)
9161 hardcode_direct=no
9162 hardcode_shlibpath_var=no
9163 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9164 export_dynamic_flag_spec='${wl}-E'
9165 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9166 # Instead, shared libraries are loaded at an image base (0x10000000 by
9167 # default) and relocated if they conflict, which is a slow very memory
9168 # consuming and fragmenting process. To avoid this, we pick a random,
9169 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9170 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9171 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9172 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'
9173 ;;
9174
7a9d3fe8 9175 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
9176 tmp_diet=no
9177 if test "$host_os" = linux-dietlibc; then
9178 case $cc_basename in
9179 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9180 esac
9181 fi
9182 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9183 && test "$tmp_diet" = no
9184 then
a699d672 9185 tmp_addflag=' $pic_flag'
6b4a97ed 9186 tmp_sharedflag='-shared'
1cf3d07d
SE
9187 case $cc_basename,$host_cpu in
9188 pgcc*) # Portland Group C compiler
43e02a8a 9189 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
1cf3d07d
SE
9190 tmp_addflag=' $pic_flag'
9191 ;;
43e02a8a
RW
9192 pgf77* | pgf90* | pgf95* | pgfortran*)
9193 # Portland Group f77 and f90 compilers
9194 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
1cf3d07d
SE
9195 tmp_addflag=' $pic_flag -Mnomain' ;;
9196 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9197 tmp_addflag=' -i_dynamic' ;;
9198 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9199 tmp_addflag=' -i_dynamic -nofor_main' ;;
9200 ifc* | ifort*) # Intel Fortran compiler
9201 tmp_addflag=' -nofor_main' ;;
6b4a97ed
PG
9202 lf95*) # Lahey Fortran 8.1
9203 whole_archive_flag_spec=
9204 tmp_sharedflag='--shared' ;;
43e02a8a 9205 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
6b4a97ed
PG
9206 tmp_sharedflag='-qmkshrobj'
9207 tmp_addflag= ;;
43e02a8a
RW
9208 nvcc*) # Cuda Compiler Driver 2.2
9209 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9210 compiler_needs_object=yes
9211 ;;
1cf3d07d
SE
9212 esac
9213 case `$CC -V 2>&1 | sed 5q` in
9214 *Sun\ C*) # Sun C 5.9
43e02a8a 9215 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
1cf3d07d
SE
9216 compiler_needs_object=yes
9217 tmp_sharedflag='-G' ;;
9218 *Sun\ F*) # Sun Fortran 8.3
9219 tmp_sharedflag='-G' ;;
1cf3d07d
SE
9220 esac
9221 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9222
9223 if test "x$supports_anon_versioning" = xyes; then
9224 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9225 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9226 echo "local: *; };" >> $output_objdir/$libname.ver~
9227 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9228 fi
6b4a97ed
PG
9229
9230 case $cc_basename in
43e02a8a 9231 xlf* | bgf* | bgxlf* | mpixlf*)
6b4a97ed
PG
9232 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9233 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9234 hardcode_libdir_flag_spec=
9235 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9236 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9237 if test "x$supports_anon_versioning" = xyes; then
9238 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9239 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9240 echo "local: *; };" >> $output_objdir/$libname.ver~
9241 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9242 fi
9243 ;;
9244 esac
1cf3d07d
SE
9245 else
9246 ld_shlibs=no
9247 fi
9248 ;;
9249
9250 netbsd*)
9251 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9252 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9253 wlarc=
9254 else
9255 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9256 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9257 fi
9258 ;;
9259
9260 solaris*)
9261 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9262 ld_shlibs=no
9263 cat <<_LT_EOF 1>&2
9264
9265*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9266*** create shared libraries on Solaris systems. Therefore, libtool
9267*** is disabling shared libraries support. We urge you to upgrade GNU
9268*** binutils to release 2.9.1 or newer. Another option is to modify
9269*** your PATH or compiler configuration so that the native linker is
9270*** used, and then restart.
9271
9272_LT_EOF
9273 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9274 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9275 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9276 else
9277 ld_shlibs=no
9278 fi
9279 ;;
9280
9281 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9282 case `$LD -v 2>&1` in
9283 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9284 ld_shlibs=no
9285 cat <<_LT_EOF 1>&2
9286
9287*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9288*** reliably create shared libraries on SCO systems. Therefore, libtool
9289*** is disabling shared libraries support. We urge you to upgrade GNU
9290*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9291*** your PATH or compiler configuration so that the native linker is
9292*** used, and then restart.
9293
9294_LT_EOF
9295 ;;
9296 *)
9297 # For security reasons, it is highly recommended that you always
9298 # use absolute paths for naming shared libraries, and exclude the
9299 # DT_RUNPATH tag from executables and libraries. But doing so
9300 # requires that you compile everything twice, which is a pain.
9301 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9302 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9303 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9304 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9305 else
9306 ld_shlibs=no
9307 fi
9308 ;;
9309 esac
9310 ;;
9311
9312 sunos4*)
9313 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9314 wlarc=
9315 hardcode_direct=yes
9316 hardcode_shlibpath_var=no
9317 ;;
9318
9319 *)
9320 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9321 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9322 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9323 else
9324 ld_shlibs=no
9325 fi
9326 ;;
9327 esac
9328
9329 if test "$ld_shlibs" = no; then
9330 runpath_var=
9331 hardcode_libdir_flag_spec=
9332 export_dynamic_flag_spec=
9333 whole_archive_flag_spec=
9334 fi
9335 else
9336 # PORTME fill in a description of your system's linker (not GNU ld)
9337 case $host_os in
9338 aix3*)
9339 allow_undefined_flag=unsupported
9340 always_export_symbols=yes
9341 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'
9342 # Note: this linker hardcodes the directories in LIBPATH if there
9343 # are no directories specified by -L.
9344 hardcode_minus_L=yes
9345 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9346 # Neither direct hardcoding nor static linking is supported with a
9347 # broken collect2.
9348 hardcode_direct=unsupported
9349 fi
9350 ;;
9351
d653fdfb 9352 aix[4-9]*)
1cf3d07d
SE
9353 if test "$host_cpu" = ia64; then
9354 # On IA64, the linker does run time linking by default, so we don't
9355 # have to do anything special.
9356 aix_use_runtimelinking=no
9357 exp_sym_flag='-Bexport'
9358 no_entry_flag=""
9359 else
9360 # If we're using GNU nm, then we don't want the "-C" option.
9361 # -C means demangle to AIX nm, but means don't demangle with GNU nm
43e02a8a
RW
9362 # Also, AIX nm treats weak defined symbols like other global
9363 # defined symbols, whereas GNU nm marks them as "W".
1cf3d07d 9364 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
43e02a8a 9365 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
1cf3d07d 9366 else
6cfe90e6 9367 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
1cf3d07d
SE
9368 fi
9369 aix_use_runtimelinking=no
9370
9371 # Test if we are trying to use run time linking or normal
9372 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9373 # need to do runtime linking.
d653fdfb 9374 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1cf3d07d
SE
9375 for ld_flag in $LDFLAGS; do
9376 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9377 aix_use_runtimelinking=yes
9378 break
9379 fi
9380 done
9381 ;;
9382 esac
9383
9384 exp_sym_flag='-bexport'
9385 no_entry_flag='-bnoentry'
9386 fi
9387
9388 # When large executables or shared objects are built, AIX ld can
9389 # have problems creating the table of contents. If linking a library
9390 # or program results in "error TOC overflow" add -mminimal-toc to
9391 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9392 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9393
9394 archive_cmds=''
9395 hardcode_direct=yes
9396 hardcode_direct_absolute=yes
9397 hardcode_libdir_separator=':'
9398 link_all_deplibs=yes
9399 file_list_spec='${wl}-f,'
9400
9401 if test "$GCC" = yes; then
9402 case $host_os in aix4.[012]|aix4.[012].*)
9403 # We only want to do this on AIX 4.2 and lower, the check
9404 # below for broken collect2 doesn't work under 4.3+
9405 collect2name=`${CC} -print-prog-name=collect2`
9406 if test -f "$collect2name" &&
9407 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9408 then
9409 # We have reworked collect2
9410 :
9411 else
9412 # We have old collect2
9413 hardcode_direct=unsupported
9414 # It fails to find uninstalled libraries when the uninstalled
9415 # path is not listed in the libpath. Setting hardcode_minus_L
9416 # to unsupported forces relinking
9417 hardcode_minus_L=yes
9418 hardcode_libdir_flag_spec='-L$libdir'
9419 hardcode_libdir_separator=
9420 fi
9421 ;;
9422 esac
9423 shared_flag='-shared'
9424 if test "$aix_use_runtimelinking" = yes; then
9425 shared_flag="$shared_flag "'${wl}-G'
9426 fi
9427 else
9428 # not using gcc
9429 if test "$host_cpu" = ia64; then
9430 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9431 # chokes on -Wl,-G. The following line is correct:
9432 shared_flag='-G'
9433 else
9434 if test "$aix_use_runtimelinking" = yes; then
9435 shared_flag='${wl}-G'
9436 else
9437 shared_flag='${wl}-bM:SRE'
9438 fi
9439 fi
9440 fi
9441
6b4a97ed 9442 export_dynamic_flag_spec='${wl}-bexpall'
1cf3d07d
SE
9443 # It seems that -bexpall does not export symbols beginning with
9444 # underscore (_), so it is better to generate a list of symbols to export.
9445 always_export_symbols=yes
9446 if test "$aix_use_runtimelinking" = yes; then
9447 # Warning - without using the other runtime loading flags (-brtl),
9448 # -berok will link without error, but may produce a broken library.
9449 allow_undefined_flag='-berok'
9450 # Determine the default libpath from the value encoded in an
9451 # empty executable.
5213506e 9452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
9453/* end confdefs.h. */
9454
9455int
9456main ()
9457{
9458
9459 ;
9460 return 0;
9461}
9462_ACEOF
5213506e 9463if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
9464
9465lt_aix_libpath_sed='
9466 /Import File Strings/,/^$/ {
9467 /^0/ {
9468 s/^0 *\(.*\)$/\1/
9469 p
9470 }
9471 }'
9472aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9473# Check for a 64-bit object if we didn't find anything.
9474if test -z "$aix_libpath"; then
9475 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9476fi
1cf3d07d 9477fi
5213506e
RW
9478rm -f core conftest.err conftest.$ac_objext \
9479 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
9480if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9481
9482 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
43e02a8a 9483 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
1cf3d07d
SE
9484 else
9485 if test "$host_cpu" = ia64; then
9486 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9487 allow_undefined_flag="-z nodefs"
9488 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"
9489 else
9490 # Determine the default libpath from the value encoded in an
9491 # empty executable.
5213506e 9492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
9493/* end confdefs.h. */
9494
9495int
9496main ()
9497{
9498
9499 ;
9500 return 0;
9501}
9502_ACEOF
5213506e 9503if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
9504
9505lt_aix_libpath_sed='
9506 /Import File Strings/,/^$/ {
9507 /^0/ {
9508 s/^0 *\(.*\)$/\1/
9509 p
9510 }
9511 }'
9512aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9513# Check for a 64-bit object if we didn't find anything.
9514if test -z "$aix_libpath"; then
9515 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9516fi
1cf3d07d 9517fi
5213506e
RW
9518rm -f core conftest.err conftest.$ac_objext \
9519 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
9520if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9521
9522 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9523 # Warning - without using the other run time loading flags,
9524 # -berok will link without error, but may produce a broken library.
9525 no_undefined_flag=' ${wl}-bernotok'
9526 allow_undefined_flag=' ${wl}-berok'
43e02a8a
RW
9527 if test "$with_gnu_ld" = yes; then
9528 # We only use this code for GNU lds that support --whole-archive.
9529 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9530 else
9531 # Exported symbols can be pulled into shared objects from archives
9532 whole_archive_flag_spec='$convenience'
9533 fi
1cf3d07d
SE
9534 archive_cmds_need_lc=yes
9535 # This is similar to how AIX traditionally builds its shared libraries.
9536 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'
9537 fi
9538 fi
9539 ;;
9540
9541 amigaos*)
6b4a97ed
PG
9542 case $host_cpu in
9543 powerpc)
9544 # see comment about AmigaOS4 .so support
9545 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9546 archive_expsym_cmds=''
9547 ;;
9548 m68k)
9549 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)'
9550 hardcode_libdir_flag_spec='-L$libdir'
9551 hardcode_minus_L=yes
9552 ;;
9553 esac
1cf3d07d
SE
9554 ;;
9555
9556 bsdi[45]*)
9557 export_dynamic_flag_spec=-rdynamic
9558 ;;
9559
6b4a97ed 9560 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
9561 # When not using gcc, we currently assume that we are using
9562 # Microsoft Visual C++.
9563 # hardcode_libdir_flag_spec is actually meaningless, as there is
9564 # no search path for DLLs.
9565 hardcode_libdir_flag_spec=' '
9566 allow_undefined_flag=unsupported
9567 # Tell ltmain to make .lib files, not .a files.
9568 libext=lib
9569 # Tell ltmain to make .dll files, not .so files.
9570 shrext_cmds=".dll"
9571 # FIXME: Setting linknames here is a bad hack.
43e02a8a 9572 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
1cf3d07d
SE
9573 # The linker will automatically build a .lib file if we build a DLL.
9574 old_archive_from_new_cmds='true'
9575 # FIXME: Should let the user specify the lib program.
9576 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9577 fix_srcfile_path='`cygpath -w "$srcfile"`'
9578 enable_shared_with_static_runtimes=yes
9579 ;;
9580
9581 darwin* | rhapsody*)
1cf3d07d 9582
6b4a97ed
PG
9583
9584 archive_cmds_need_lc=no
9585 hardcode_direct=no
9586 hardcode_automatic=yes
9587 hardcode_shlibpath_var=unsupported
43e02a8a
RW
9588 if test "$lt_cv_ld_force_load" = "yes"; then
9589 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9590 else
9591 whole_archive_flag_spec=''
9592 fi
6b4a97ed
PG
9593 link_all_deplibs=yes
9594 allow_undefined_flag="$_lt_dar_allow_undefined"
9595 case $cc_basename in
9596 ifort*) _lt_dar_can_shared=yes ;;
9597 *) _lt_dar_can_shared=$GCC ;;
9598 esac
9599 if test "$_lt_dar_can_shared" = "yes"; then
43e02a8a 9600 output_verbose_link_cmd=func_echo_all
6b4a97ed
PG
9601 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9602 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9603 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}"
9604 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}"
9605
9606 else
9607 ld_shlibs=no
9608 fi
9609
1cf3d07d
SE
9610 ;;
9611
9612 dgux*)
9613 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9614 hardcode_libdir_flag_spec='-L$libdir'
9615 hardcode_shlibpath_var=no
9616 ;;
9617
1cf3d07d
SE
9618 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9619 # support. Future versions do this automatically, but an explicit c++rt0.o
9620 # does not break anything, and helps significantly (at the cost of a little
9621 # extra space).
9622 freebsd2.2*)
9623 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9624 hardcode_libdir_flag_spec='-R$libdir'
9625 hardcode_direct=yes
9626 hardcode_shlibpath_var=no
9627 ;;
9628
9629 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
c6084f68 9630 freebsd2.*)
1cf3d07d
SE
9631 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9632 hardcode_direct=yes
9633 hardcode_minus_L=yes
9634 hardcode_shlibpath_var=no
9635 ;;
9636
9637 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9638 freebsd* | dragonfly*)
9639 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9640 hardcode_libdir_flag_spec='-R$libdir'
9641 hardcode_direct=yes
9642 hardcode_shlibpath_var=no
9643 ;;
9644
9645 hpux9*)
9646 if test "$GCC" = yes; then
9647 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'
9648 else
9649 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'
9650 fi
9651 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9652 hardcode_libdir_separator=:
9653 hardcode_direct=yes
9654
9655 # hardcode_minus_L: Not really in the search PATH,
9656 # but as the default location of the library.
9657 hardcode_minus_L=yes
9658 export_dynamic_flag_spec='${wl}-E'
9659 ;;
9660
9661 hpux10*)
43e02a8a 9662 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1cf3d07d
SE
9663 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9664 else
9665 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9666 fi
9667 if test "$with_gnu_ld" = no; then
9668 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9669 hardcode_libdir_flag_spec_ld='+b $libdir'
9670 hardcode_libdir_separator=:
9671 hardcode_direct=yes
9672 hardcode_direct_absolute=yes
9673 export_dynamic_flag_spec='${wl}-E'
9674 # hardcode_minus_L: Not really in the search PATH,
9675 # but as the default location of the library.
9676 hardcode_minus_L=yes
9677 fi
9678 ;;
9679
9680 hpux11*)
43e02a8a 9681 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1cf3d07d
SE
9682 case $host_cpu in
9683 hppa*64*)
9684 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9685 ;;
9686 ia64*)
6b4a97ed 9687 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
9688 ;;
9689 *)
9690 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9691 ;;
9692 esac
9693 else
9694 case $host_cpu in
9695 hppa*64*)
9696 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9697 ;;
9698 ia64*)
9699 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9700 ;;
9701 *)
43e02a8a
RW
9702
9703 # Older versions of the 11.00 compiler do not understand -b yet
9704 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9706$as_echo_n "checking if $CC understands -b... " >&6; }
22e05272 9707if ${lt_cv_prog_compiler__b+:} false; then :
43e02a8a
RW
9708 $as_echo_n "(cached) " >&6
9709else
9710 lt_cv_prog_compiler__b=no
9711 save_LDFLAGS="$LDFLAGS"
9712 LDFLAGS="$LDFLAGS -b"
9713 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9714 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9715 # The linker can only warn and ignore the option if not recognized
9716 # So say no if there are warnings
9717 if test -s conftest.err; then
9718 # Append any errors to the config.log.
9719 cat conftest.err 1>&5
9720 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9721 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9722 if diff conftest.exp conftest.er2 >/dev/null; then
9723 lt_cv_prog_compiler__b=yes
9724 fi
9725 else
9726 lt_cv_prog_compiler__b=yes
9727 fi
9728 fi
9729 $RM -r conftest*
9730 LDFLAGS="$save_LDFLAGS"
9731
9732fi
9733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9734$as_echo "$lt_cv_prog_compiler__b" >&6; }
9735
9736if test x"$lt_cv_prog_compiler__b" = xyes; then
9737 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9738else
9739 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9740fi
9741
1cf3d07d
SE
9742 ;;
9743 esac
9744 fi
9745 if test "$with_gnu_ld" = no; then
9746 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9747 hardcode_libdir_separator=:
9748
9749 case $host_cpu in
9750 hppa*64*|ia64*)
9751 hardcode_direct=no
9752 hardcode_shlibpath_var=no
9753 ;;
9754 *)
9755 hardcode_direct=yes
9756 hardcode_direct_absolute=yes
9757 export_dynamic_flag_spec='${wl}-E'
9758
9759 # hardcode_minus_L: Not really in the search PATH,
9760 # but as the default location of the library.
9761 hardcode_minus_L=yes
9762 ;;
9763 esac
9764 fi
9765 ;;
9766
9767 irix5* | irix6* | nonstopux*)
9768 if test "$GCC" = yes; then
43e02a8a 9769 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1cf3d07d
SE
9770 # Try to use the -exported_symbol ld option, if it does not
9771 # work, assume that -exports_file does not work either and
9772 # implicitly export all symbols.
9773 save_LDFLAGS="$LDFLAGS"
9774 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5213506e
RW
9775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9776/* end confdefs.h. */
1cf3d07d
SE
9777int foo(void) {}
9778_ACEOF
5213506e 9779if ac_fn_c_try_link "$LINENO"; then :
43e02a8a 9780 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
1cf3d07d 9781
1cf3d07d 9782fi
5213506e
RW
9783rm -f core conftest.err conftest.$ac_objext \
9784 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
9785 LDFLAGS="$save_LDFLAGS"
9786 else
43e02a8a
RW
9787 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9788 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
1cf3d07d
SE
9789 fi
9790 archive_cmds_need_lc='no'
9791 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9792 hardcode_libdir_separator=:
9793 inherit_rpath=yes
9794 link_all_deplibs=yes
9795 ;;
9796
9797 netbsd*)
9798 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9799 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9800 else
9801 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9802 fi
9803 hardcode_libdir_flag_spec='-R$libdir'
9804 hardcode_direct=yes
9805 hardcode_shlibpath_var=no
9806 ;;
9807
9808 newsos6)
9809 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9810 hardcode_direct=yes
9811 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9812 hardcode_libdir_separator=:
9813 hardcode_shlibpath_var=no
9814 ;;
9815
9816 *nto* | *qnx*)
9817 ;;
9818
9819 openbsd*)
6b4a97ed
PG
9820 if test -f /usr/libexec/ld.so; then
9821 hardcode_direct=yes
9822 hardcode_shlibpath_var=no
9823 hardcode_direct_absolute=yes
9824 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1cf3d07d 9825 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6b4a97ed 9826 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
1cf3d07d 9827 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6b4a97ed
PG
9828 export_dynamic_flag_spec='${wl}-E'
9829 else
9830 case $host_os in
9831 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9832 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9833 hardcode_libdir_flag_spec='-R$libdir'
9834 ;;
9835 *)
9836 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9837 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9838 ;;
9839 esac
9840 fi
9841 else
9842 ld_shlibs=no
1cf3d07d
SE
9843 fi
9844 ;;
9845
9846 os2*)
9847 hardcode_libdir_flag_spec='-L$libdir'
9848 hardcode_minus_L=yes
9849 allow_undefined_flag=unsupported
43e02a8a 9850 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'
1cf3d07d
SE
9851 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9852 ;;
9853
9854 osf3*)
9855 if test "$GCC" = yes; then
9856 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 9857 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1cf3d07d
SE
9858 else
9859 allow_undefined_flag=' -expect_unresolved \*'
43e02a8a 9860 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
1cf3d07d
SE
9861 fi
9862 archive_cmds_need_lc='no'
9863 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9864 hardcode_libdir_separator=:
9865 ;;
9866
9867 osf4* | osf5*) # as osf3* with the addition of -msym flag
9868 if test "$GCC" = yes; then
9869 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 9870 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1cf3d07d
SE
9871 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9872 else
9873 allow_undefined_flag=' -expect_unresolved \*'
43e02a8a 9874 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
1cf3d07d 9875 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~
43e02a8a 9876 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
1cf3d07d
SE
9877
9878 # Both c and cxx compiler support -rpath directly
9879 hardcode_libdir_flag_spec='-rpath $libdir'
9880 fi
9881 archive_cmds_need_lc='no'
9882 hardcode_libdir_separator=:
9883 ;;
9884
9885 solaris*)
9886 no_undefined_flag=' -z defs'
9887 if test "$GCC" = yes; then
9888 wlarc='${wl}'
9889 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9890 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9891 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9892 else
9893 case `$CC -V 2>&1` in
9894 *"Compilers 5.0"*)
9895 wlarc=''
9896 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9897 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9898 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9899 ;;
9900 *)
9901 wlarc='${wl}'
9902 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9903 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9904 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9905 ;;
9906 esac
9907 fi
9908 hardcode_libdir_flag_spec='-R$libdir'
9909 hardcode_shlibpath_var=no
9910 case $host_os in
9911 solaris2.[0-5] | solaris2.[0-5].*) ;;
9912 *)
9913 # The compiler driver will combine and reorder linker options,
9914 # but understands `-z linker_flag'. GCC discards it without `$wl',
9915 # but is careful enough not to reorder.
9916 # Supported since Solaris 2.6 (maybe 2.5.1?)
9917 if test "$GCC" = yes; then
9918 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9919 else
9920 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9921 fi
9922 ;;
9923 esac
9924 link_all_deplibs=yes
9925 ;;
9926
9927 sunos4*)
9928 if test "x$host_vendor" = xsequent; then
9929 # Use $CC to link under sequent, because it throws in some extra .o
9930 # files that make .init and .fini sections work.
9931 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9932 else
9933 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9934 fi
9935 hardcode_libdir_flag_spec='-L$libdir'
9936 hardcode_direct=yes
9937 hardcode_minus_L=yes
9938 hardcode_shlibpath_var=no
9939 ;;
9940
9941 sysv4)
9942 case $host_vendor in
9943 sni)
9944 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9945 hardcode_direct=yes # is this really true???
9946 ;;
9947 siemens)
9948 ## LD is ld it makes a PLAMLIB
9949 ## CC just makes a GrossModule.
9950 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9951 reload_cmds='$CC -r -o $output$reload_objs'
9952 hardcode_direct=no
9953 ;;
9954 motorola)
9955 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9956 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9957 ;;
9958 esac
9959 runpath_var='LD_RUN_PATH'
9960 hardcode_shlibpath_var=no
9961 ;;
9962
9963 sysv4.3*)
9964 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9965 hardcode_shlibpath_var=no
9966 export_dynamic_flag_spec='-Bexport'
9967 ;;
9968
9969 sysv4*MP*)
9970 if test -d /usr/nec; then
9971 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9972 hardcode_shlibpath_var=no
9973 runpath_var=LD_RUN_PATH
9974 hardcode_runpath_var=yes
9975 ld_shlibs=yes
9976 fi
9977 ;;
9978
9979 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9980 no_undefined_flag='${wl}-z,text'
9981 archive_cmds_need_lc=no
9982 hardcode_shlibpath_var=no
9983 runpath_var='LD_RUN_PATH'
9984
9985 if test "$GCC" = yes; then
9986 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9987 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9988 else
9989 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9990 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9991 fi
9992 ;;
9993
9994 sysv5* | sco3.2v5* | sco5v6*)
9995 # Note: We can NOT use -z defs as we might desire, because we do not
9996 # link with -lc, and that would cause any symbols used from libc to
9997 # always be unresolved, which means just about no library would
9998 # ever link correctly. If we're not using GNU ld we use -z text
9999 # though, which does catch some bad symbols but isn't as heavy-handed
10000 # as -z defs.
10001 no_undefined_flag='${wl}-z,text'
10002 allow_undefined_flag='${wl}-z,nodefs'
10003 archive_cmds_need_lc=no
10004 hardcode_shlibpath_var=no
10005 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10006 hardcode_libdir_separator=':'
10007 link_all_deplibs=yes
10008 export_dynamic_flag_spec='${wl}-Bexport'
10009 runpath_var='LD_RUN_PATH'
10010
10011 if test "$GCC" = yes; then
10012 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10013 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10014 else
10015 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10016 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10017 fi
10018 ;;
10019
10020 uts4*)
10021 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10022 hardcode_libdir_flag_spec='-L$libdir'
10023 hardcode_shlibpath_var=no
10024 ;;
10025
10026 *)
10027 ld_shlibs=no
10028 ;;
10029 esac
10030
10031 if test x$host_vendor = xsni; then
10032 case $host in
10033 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10034 export_dynamic_flag_spec='${wl}-Blargedynsym'
10035 ;;
10036 esac
10037 fi
10038 fi
10039
5213506e
RW
10040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10041$as_echo "$ld_shlibs" >&6; }
1cf3d07d
SE
10042test "$ld_shlibs" = no && can_build_shared=no
10043
10044with_gnu_ld=$with_gnu_ld
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060#
10061# Do we need to explicitly link libc?
10062#
10063case "x$archive_cmds_need_lc" in
10064x|xyes)
10065 # Assume -lc should be added
10066 archive_cmds_need_lc=yes
10067
10068 if test "$enable_shared" = yes && test "$GCC" = yes; then
10069 case $archive_cmds in
10070 *'~'*)
10071 # FIXME: we may have to deal with multi-command sequences.
10072 ;;
10073 '$CC '*)
10074 # Test whether the compiler implicitly links with -lc since on some
10075 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10076 # to ld, don't add -lc before -lgcc.
5213506e
RW
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10078$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22e05272 10079if ${lt_cv_archive_cmds_need_lc+:} false; then :
5213506e 10080 $as_echo_n "(cached) " >&6
baafc534
RW
10081else
10082 $RM conftest*
10083 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1cf3d07d 10084
5213506e 10085 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
10086 (eval $ac_compile) 2>&5
10087 ac_status=$?
5213506e
RW
10088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10089 test $ac_status = 0; } 2>conftest.err; then
baafc534
RW
10090 soname=conftest
10091 lib=conftest
10092 libobjs=conftest.$ac_objext
10093 deplibs=
10094 wl=$lt_prog_compiler_wl
10095 pic_flag=$lt_prog_compiler_pic
10096 compiler_flags=-v
10097 linker_flags=-v
10098 verstring=
10099 output_objdir=.
10100 libname=conftest
10101 lt_save_allow_undefined_flag=$allow_undefined_flag
10102 allow_undefined_flag=
5213506e 10103 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1cf3d07d
SE
10104 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10105 ac_status=$?
5213506e
RW
10106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10107 test $ac_status = 0; }
baafc534
RW
10108 then
10109 lt_cv_archive_cmds_need_lc=no
10110 else
10111 lt_cv_archive_cmds_need_lc=yes
10112 fi
10113 allow_undefined_flag=$lt_save_allow_undefined_flag
10114 else
10115 cat conftest.err 1>&5
10116 fi
10117 $RM conftest*
10118
10119fi
5213506e
RW
10120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10121$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
baafc534 10122 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
1cf3d07d
SE
10123 ;;
10124 esac
10125 fi
10126 ;;
10127esac
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
5213506e
RW
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10286$as_echo_n "checking dynamic linker characteristics... " >&6; }
6b4a97ed
PG
10287
10288if test "$GCC" = yes; then
1cf3d07d
SE
10289 case $host_os in
10290 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10291 *) lt_awk_arg="/^libraries:/" ;;
10292 esac
43e02a8a
RW
10293 case $host_os in
10294 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10295 *) lt_sed_strip_eq="s,=/,/,g" ;;
10296 esac
10297 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10298 case $lt_search_path_spec in
10299 *\;*)
1cf3d07d
SE
10300 # if the path contains ";" then we assume it to be the separator
10301 # otherwise default to the standard path separator (i.e. ":") - it is
10302 # assumed that no part of a normal pathname contains ";" but that should
10303 # okay in the real world where ";" in dirpaths is itself problematic.
43e02a8a
RW
10304 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10305 ;;
10306 *)
10307 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10308 ;;
10309 esac
1cf3d07d
SE
10310 # Ok, now we have the path, separated by spaces, we can step through it
10311 # and add multilib dir if necessary.
10312 lt_tmp_lt_search_path_spec=
10313 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10314 for lt_sys_path in $lt_search_path_spec; do
10315 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10316 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10317 else
10318 test -d "$lt_sys_path" && \
10319 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10320 fi
10321 done
43e02a8a 10322 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
1cf3d07d
SE
10323BEGIN {RS=" "; FS="/|\n";} {
10324 lt_foo="";
10325 lt_count=0;
10326 for (lt_i = NF; lt_i > 0; lt_i--) {
10327 if ($lt_i != "" && $lt_i != ".") {
10328 if ($lt_i == "..") {
10329 lt_count++;
10330 } else {
10331 if (lt_count == 0) {
10332 lt_foo="/" $lt_i lt_foo;
10333 } else {
10334 lt_count--;
10335 }
10336 }
10337 }
10338 }
10339 if (lt_foo != "") { lt_freq[lt_foo]++; }
10340 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10341}'`
43e02a8a
RW
10342 # AWK program above erroneously prepends '/' to C:/dos/paths
10343 # for these hosts.
10344 case $host_os in
10345 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10346 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10347 esac
10348 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
1cf3d07d
SE
10349else
10350 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10351fi
10352library_names_spec=
10353libname_spec='lib$name'
10354soname_spec=
10355shrext_cmds=".so"
10356postinstall_cmds=
10357postuninstall_cmds=
10358finish_cmds=
10359finish_eval=
10360shlibpath_var=
10361shlibpath_overrides_runpath=unknown
10362version_type=none
10363dynamic_linker="$host_os ld.so"
10364sys_lib_dlsearch_path_spec="/lib /usr/lib"
10365need_lib_prefix=unknown
10366hardcode_into_libs=no
10367
10368# when you set need_version to no, make sure it does not cause -set_version
10369# flags to be left without arguments
10370need_version=unknown
10371
10372case $host_os in
10373aix3*)
10374 version_type=linux
10375 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10376 shlibpath_var=LIBPATH
10377
10378 # AIX 3 has no versioning support, so we append a major version to the name.
10379 soname_spec='${libname}${release}${shared_ext}$major'
10380 ;;
10381
d653fdfb 10382aix[4-9]*)
1cf3d07d
SE
10383 version_type=linux
10384 need_lib_prefix=no
10385 need_version=no
10386 hardcode_into_libs=yes
10387 if test "$host_cpu" = ia64; then
10388 # AIX 5 supports IA64
10389 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10390 shlibpath_var=LD_LIBRARY_PATH
10391 else
10392 # With GCC up to 2.95.x, collect2 would create an import file
10393 # for dependence libraries. The import file would start with
10394 # the line `#! .'. This would cause the generated library to
10395 # depend on `.', always an invalid library. This was fixed in
10396 # development snapshots of GCC prior to 3.0.
10397 case $host_os in
10398 aix4 | aix4.[01] | aix4.[01].*)
10399 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10400 echo ' yes '
10401 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10402 :
10403 else
10404 can_build_shared=no
10405 fi
10406 ;;
10407 esac
10408 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10409 # soname into executable. Probably we can add versioning support to
10410 # collect2, so additional links can be useful in future.
10411 if test "$aix_use_runtimelinking" = yes; then
10412 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10413 # instead of lib<name>.a to let people know that these are not
10414 # typical AIX shared libraries.
10415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10416 else
10417 # We preserve .a as extension for shared libraries through AIX4.2
10418 # and later when we are not doing run time linking.
10419 library_names_spec='${libname}${release}.a $libname.a'
10420 soname_spec='${libname}${release}${shared_ext}$major'
10421 fi
10422 shlibpath_var=LIBPATH
10423 fi
10424 ;;
10425
10426amigaos*)
6b4a97ed
PG
10427 case $host_cpu in
10428 powerpc)
10429 # Since July 2007 AmigaOS4 officially supports .so libraries.
10430 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10432 ;;
10433 m68k)
1cf3d07d
SE
10434 library_names_spec='$libname.ixlibrary $libname.a'
10435 # Create ${libname}_ixlibrary.a entries in /sys/libs.
43e02a8a 10436 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
6b4a97ed
PG
10437 ;;
10438 esac
1cf3d07d
SE
10439 ;;
10440
10441beos*)
10442 library_names_spec='${libname}${shared_ext}'
10443 dynamic_linker="$host_os ld.so"
10444 shlibpath_var=LIBRARY_PATH
10445 ;;
10446
10447bsdi[45]*)
10448 version_type=linux
10449 need_version=no
10450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10451 soname_spec='${libname}${release}${shared_ext}$major'
10452 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10453 shlibpath_var=LD_LIBRARY_PATH
10454 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10455 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10456 # the default ld.so.conf also contains /usr/contrib/lib and
10457 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10458 # libtool to hard-code these into programs
10459 ;;
10460
6b4a97ed 10461cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
10462 version_type=windows
10463 shrext_cmds=".dll"
10464 need_version=no
10465 need_lib_prefix=no
10466
6b4a97ed
PG
10467 case $GCC,$host_os in
10468 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
1cf3d07d
SE
10469 library_names_spec='$libname.dll.a'
10470 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10471 postinstall_cmds='base_file=`basename \${file}`~
10472 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10473 dldir=$destdir/`dirname \$dlpath`~
10474 test -d \$dldir || mkdir -p \$dldir~
10475 $install_prog $dir/$dlname \$dldir/$dlname~
10476 chmod a+x \$dldir/$dlname~
10477 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10478 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10479 fi'
10480 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10481 dlpath=$dir/\$dldll~
10482 $RM \$dlpath'
10483 shlibpath_overrides_runpath=yes
10484
10485 case $host_os in
10486 cygwin*)
10487 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10488 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
43e02a8a
RW
10489
10490 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
1cf3d07d 10491 ;;
6b4a97ed 10492 mingw* | cegcc*)
1cf3d07d
SE
10493 # MinGW DLLs use traditional 'lib' prefix
10494 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1cf3d07d
SE
10495 ;;
10496 pw32*)
10497 # pw32 DLLs use 'pw' prefix rather than 'lib'
10498 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10499 ;;
10500 esac
10501 ;;
10502
10503 *)
10504 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10505 ;;
10506 esac
10507 dynamic_linker='Win32 ld.exe'
10508 # FIXME: first we should search . and the directory the executable is in
10509 shlibpath_var=PATH
10510 ;;
10511
10512darwin* | rhapsody*)
10513 dynamic_linker="$host_os dyld"
10514 version_type=darwin
10515 need_lib_prefix=no
10516 need_version=no
10517 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10518 soname_spec='${libname}${release}${major}$shared_ext'
10519 shlibpath_overrides_runpath=yes
10520 shlibpath_var=DYLD_LIBRARY_PATH
10521 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10522
10523 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10524 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10525 ;;
10526
10527dgux*)
10528 version_type=linux
10529 need_lib_prefix=no
10530 need_version=no
10531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10532 soname_spec='${libname}${release}${shared_ext}$major'
10533 shlibpath_var=LD_LIBRARY_PATH
10534 ;;
10535
1cf3d07d
SE
10536freebsd* | dragonfly*)
10537 # DragonFly does not have aout. When/if they implement a new
10538 # versioning mechanism, adjust this.
10539 if test -x /usr/bin/objformat; then
10540 objformat=`/usr/bin/objformat`
10541 else
10542 case $host_os in
c6084f68 10543 freebsd[23].*) objformat=aout ;;
1cf3d07d
SE
10544 *) objformat=elf ;;
10545 esac
10546 fi
10547 version_type=freebsd-$objformat
10548 case $version_type in
10549 freebsd-elf*)
10550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10551 need_version=no
10552 need_lib_prefix=no
10553 ;;
10554 freebsd-*)
10555 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10556 need_version=yes
10557 ;;
10558 esac
10559 shlibpath_var=LD_LIBRARY_PATH
10560 case $host_os in
c6084f68 10561 freebsd2.*)
1cf3d07d
SE
10562 shlibpath_overrides_runpath=yes
10563 ;;
10564 freebsd3.[01]* | freebsdelf3.[01]*)
10565 shlibpath_overrides_runpath=yes
10566 hardcode_into_libs=yes
10567 ;;
10568 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10569 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10570 shlibpath_overrides_runpath=no
10571 hardcode_into_libs=yes
10572 ;;
10573 *) # from 4.6 on, and DragonFly
10574 shlibpath_overrides_runpath=yes
10575 hardcode_into_libs=yes
10576 ;;
10577 esac
10578 ;;
10579
10580gnu*)
10581 version_type=linux
10582 need_lib_prefix=no
10583 need_version=no
10584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10585 soname_spec='${libname}${release}${shared_ext}$major'
10586 shlibpath_var=LD_LIBRARY_PATH
10587 hardcode_into_libs=yes
10588 ;;
10589
43e02a8a
RW
10590haiku*)
10591 version_type=linux
10592 need_lib_prefix=no
10593 need_version=no
10594 dynamic_linker="$host_os runtime_loader"
10595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10596 soname_spec='${libname}${release}${shared_ext}$major'
10597 shlibpath_var=LIBRARY_PATH
10598 shlibpath_overrides_runpath=yes
10599 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10600 hardcode_into_libs=yes
10601 ;;
10602
1cf3d07d
SE
10603hpux9* | hpux10* | hpux11*)
10604 # Give a soname corresponding to the major version so that dld.sl refuses to
10605 # link against other versions.
10606 version_type=sunos
10607 need_lib_prefix=no
10608 need_version=no
10609 case $host_cpu in
10610 ia64*)
10611 shrext_cmds='.so'
10612 hardcode_into_libs=yes
10613 dynamic_linker="$host_os dld.so"
10614 shlibpath_var=LD_LIBRARY_PATH
10615 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10617 soname_spec='${libname}${release}${shared_ext}$major'
10618 if test "X$HPUX_IA64_MODE" = X32; then
10619 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10620 else
10621 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10622 fi
10623 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10624 ;;
10625 hppa*64*)
10626 shrext_cmds='.sl'
10627 hardcode_into_libs=yes
10628 dynamic_linker="$host_os dld.sl"
10629 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10630 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10632 soname_spec='${libname}${release}${shared_ext}$major'
10633 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10634 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10635 ;;
10636 *)
10637 shrext_cmds='.sl'
10638 dynamic_linker="$host_os dld.sl"
10639 shlibpath_var=SHLIB_PATH
10640 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10642 soname_spec='${libname}${release}${shared_ext}$major'
10643 ;;
10644 esac
43e02a8a 10645 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
1cf3d07d 10646 postinstall_cmds='chmod 555 $lib'
43e02a8a
RW
10647 # or fails outright, so override atomically:
10648 install_override_mode=555
1cf3d07d
SE
10649 ;;
10650
10651interix[3-9]*)
10652 version_type=linux
10653 need_lib_prefix=no
10654 need_version=no
10655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10656 soname_spec='${libname}${release}${shared_ext}$major'
10657 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10658 shlibpath_var=LD_LIBRARY_PATH
10659 shlibpath_overrides_runpath=no
10660 hardcode_into_libs=yes
10661 ;;
10662
10663irix5* | irix6* | nonstopux*)
10664 case $host_os in
10665 nonstopux*) version_type=nonstopux ;;
10666 *)
10667 if test "$lt_cv_prog_gnu_ld" = yes; then
10668 version_type=linux
10669 else
10670 version_type=irix
10671 fi ;;
10672 esac
10673 need_lib_prefix=no
10674 need_version=no
10675 soname_spec='${libname}${release}${shared_ext}$major'
10676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10677 case $host_os in
10678 irix5* | nonstopux*)
10679 libsuff= shlibsuff=
10680 ;;
10681 *)
10682 case $LD in # libtool.m4 will add one of these switches to LD
10683 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10684 libsuff= shlibsuff= libmagic=32-bit;;
10685 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10686 libsuff=32 shlibsuff=N32 libmagic=N32;;
10687 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10688 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10689 *) libsuff= shlibsuff= libmagic=never-match;;
10690 esac
10691 ;;
10692 esac
10693 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10694 shlibpath_overrides_runpath=no
10695 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10696 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10697 hardcode_into_libs=yes
10698 ;;
10699
10700# No shared lib support for Linux oldld, aout, or coff.
10701linux*oldld* | linux*aout* | linux*coff*)
10702 dynamic_linker=no
10703 ;;
10704
10705# This must be Linux ELF.
7a9d3fe8 10706linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
10707 version_type=linux
10708 need_lib_prefix=no
10709 need_version=no
10710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10711 soname_spec='${libname}${release}${shared_ext}$major'
10712 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10713 shlibpath_var=LD_LIBRARY_PATH
10714 shlibpath_overrides_runpath=no
baafc534 10715
1cf3d07d 10716 # Some binutils ld are patched to set DT_RUNPATH
22e05272 10717 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
5213506e 10718 $as_echo_n "(cached) " >&6
baafc534
RW
10719else
10720 lt_cv_shlibpath_overrides_runpath=no
10721 save_LDFLAGS=$LDFLAGS
10722 save_libdir=$libdir
10723 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10724 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
5213506e 10725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
10726/* end confdefs.h. */
10727
10728int
10729main ()
10730{
10731
10732 ;
10733 return 0;
10734}
10735_ACEOF
5213506e
RW
10736if ac_fn_c_try_link "$LINENO"; then :
10737 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
baafc534 10738 lt_cv_shlibpath_overrides_runpath=yes
1cf3d07d 10739fi
1cf3d07d 10740fi
5213506e
RW
10741rm -f core conftest.err conftest.$ac_objext \
10742 conftest$ac_exeext conftest.$ac_ext
baafc534
RW
10743 LDFLAGS=$save_LDFLAGS
10744 libdir=$save_libdir
10745
10746fi
10747
10748 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
1cf3d07d
SE
10749
10750 # This implies no fast_install, which is unacceptable.
10751 # Some rework will be needed to allow for fast_install
10752 # before this can be enabled.
10753 hardcode_into_libs=yes
10754
10755 # Append ld.so.conf contents to the search path
10756 if test -f /etc/ld.so.conf; then
43e02a8a 10757 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
1cf3d07d
SE
10758 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10759 fi
10760
10761 # We used to test for /lib/ld.so.1 and disable shared libraries on
10762 # powerpc, because MkLinux only supported shared libraries with the
10763 # GNU dynamic linker. Since this was broken with cross compilers,
10764 # most powerpc-linux boxes support dynamic linking these days and
10765 # people can always --disable-shared, the test was removed, and we
10766 # assume the GNU/Linux dynamic linker is in use.
10767 dynamic_linker='GNU/Linux ld.so'
10768 ;;
10769
10770netbsd*)
10771 version_type=sunos
10772 need_lib_prefix=no
10773 need_version=no
10774 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10776 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10777 dynamic_linker='NetBSD (a.out) ld.so'
10778 else
10779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10780 soname_spec='${libname}${release}${shared_ext}$major'
10781 dynamic_linker='NetBSD ld.elf_so'
10782 fi
10783 shlibpath_var=LD_LIBRARY_PATH
10784 shlibpath_overrides_runpath=yes
10785 hardcode_into_libs=yes
10786 ;;
10787
10788newsos6)
10789 version_type=linux
10790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10791 shlibpath_var=LD_LIBRARY_PATH
10792 shlibpath_overrides_runpath=yes
10793 ;;
10794
10795*nto* | *qnx*)
10796 version_type=qnx
10797 need_lib_prefix=no
10798 need_version=no
10799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10800 soname_spec='${libname}${release}${shared_ext}$major'
10801 shlibpath_var=LD_LIBRARY_PATH
10802 shlibpath_overrides_runpath=no
10803 hardcode_into_libs=yes
10804 dynamic_linker='ldqnx.so'
10805 ;;
10806
10807openbsd*)
10808 version_type=sunos
10809 sys_lib_dlsearch_path_spec="/usr/lib"
10810 need_lib_prefix=no
10811 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10812 case $host_os in
10813 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10814 *) need_version=no ;;
10815 esac
10816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10817 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10818 shlibpath_var=LD_LIBRARY_PATH
10819 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10820 case $host_os in
10821 openbsd2.[89] | openbsd2.[89].*)
10822 shlibpath_overrides_runpath=no
10823 ;;
10824 *)
10825 shlibpath_overrides_runpath=yes
10826 ;;
10827 esac
10828 else
10829 shlibpath_overrides_runpath=yes
10830 fi
10831 ;;
10832
10833os2*)
10834 libname_spec='$name'
10835 shrext_cmds=".dll"
10836 need_lib_prefix=no
10837 library_names_spec='$libname${shared_ext} $libname.a'
10838 dynamic_linker='OS/2 ld.exe'
10839 shlibpath_var=LIBPATH
10840 ;;
10841
10842osf3* | osf4* | osf5*)
10843 version_type=osf
10844 need_lib_prefix=no
10845 need_version=no
10846 soname_spec='${libname}${release}${shared_ext}$major'
10847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10848 shlibpath_var=LD_LIBRARY_PATH
10849 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10850 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10851 ;;
10852
10853rdos*)
10854 dynamic_linker=no
10855 ;;
10856
10857solaris*)
10858 version_type=linux
10859 need_lib_prefix=no
10860 need_version=no
10861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10862 soname_spec='${libname}${release}${shared_ext}$major'
10863 shlibpath_var=LD_LIBRARY_PATH
10864 shlibpath_overrides_runpath=yes
10865 hardcode_into_libs=yes
10866 # ldd complains unless libraries are executable
10867 postinstall_cmds='chmod +x $lib'
10868 ;;
10869
10870sunos4*)
10871 version_type=sunos
10872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10873 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10874 shlibpath_var=LD_LIBRARY_PATH
10875 shlibpath_overrides_runpath=yes
10876 if test "$with_gnu_ld" = yes; then
10877 need_lib_prefix=no
10878 fi
10879 need_version=yes
10880 ;;
10881
10882sysv4 | sysv4.3*)
10883 version_type=linux
10884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10885 soname_spec='${libname}${release}${shared_ext}$major'
10886 shlibpath_var=LD_LIBRARY_PATH
10887 case $host_vendor in
10888 sni)
10889 shlibpath_overrides_runpath=no
10890 need_lib_prefix=no
10891 runpath_var=LD_RUN_PATH
10892 ;;
10893 siemens)
10894 need_lib_prefix=no
10895 ;;
10896 motorola)
10897 need_lib_prefix=no
10898 need_version=no
10899 shlibpath_overrides_runpath=no
10900 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10901 ;;
10902 esac
10903 ;;
10904
10905sysv4*MP*)
10906 if test -d /usr/nec ;then
10907 version_type=linux
10908 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10909 soname_spec='$libname${shared_ext}.$major'
10910 shlibpath_var=LD_LIBRARY_PATH
10911 fi
10912 ;;
10913
10914sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10915 version_type=freebsd-elf
10916 need_lib_prefix=no
10917 need_version=no
10918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10919 soname_spec='${libname}${release}${shared_ext}$major'
10920 shlibpath_var=LD_LIBRARY_PATH
10921 shlibpath_overrides_runpath=yes
10922 hardcode_into_libs=yes
10923 if test "$with_gnu_ld" = yes; then
10924 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10925 else
10926 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10927 case $host_os in
10928 sco3.2v5*)
10929 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10930 ;;
10931 esac
10932 fi
10933 sys_lib_dlsearch_path_spec='/usr/lib'
10934 ;;
10935
10936tpf*)
10937 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10938 version_type=linux
10939 need_lib_prefix=no
10940 need_version=no
6b4a97ed 10941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1cf3d07d
SE
10942 shlibpath_var=LD_LIBRARY_PATH
10943 shlibpath_overrides_runpath=no
10944 hardcode_into_libs=yes
10945 ;;
10946
10947uts4*)
10948 version_type=linux
10949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10950 soname_spec='${libname}${release}${shared_ext}$major'
10951 shlibpath_var=LD_LIBRARY_PATH
10952 ;;
10953
10954*)
10955 dynamic_linker=no
10956 ;;
10957esac
5213506e
RW
10958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10959$as_echo "$dynamic_linker" >&6; }
1cf3d07d
SE
10960test "$dynamic_linker" = no && can_build_shared=no
10961
10962variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10963if test "$GCC" = yes; then
10964 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10965fi
10966
6b4a97ed
PG
10967if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10968 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10969fi
10970if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10971 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10972fi
10973
1cf3d07d
SE
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
43e02a8a
RW
11054
11055
11056
11057
11058
1cf3d07d
SE
11059
11060
11061
11062
11063
11064
5213506e
RW
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11066$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1cf3d07d
SE
11067hardcode_action=
11068if test -n "$hardcode_libdir_flag_spec" ||
11069 test -n "$runpath_var" ||
11070 test "X$hardcode_automatic" = "Xyes" ; then
11071
11072 # We can hardcode non-existent directories.
11073 if test "$hardcode_direct" != no &&
11074 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11075 # have to relink, otherwise we might link with an installed library
11076 # when we should be linking with a yet-to-be-installed one
11077 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11078 test "$hardcode_minus_L" != no; then
11079 # Linking always hardcodes the temporary library directory.
11080 hardcode_action=relink
11081 else
11082 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11083 hardcode_action=immediate
11084 fi
11085else
11086 # We cannot hardcode anything, or else we can only hardcode existing
11087 # directories.
11088 hardcode_action=unsupported
11089fi
5213506e
RW
11090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11091$as_echo "$hardcode_action" >&6; }
1cf3d07d
SE
11092
11093if test "$hardcode_action" = relink ||
11094 test "$inherit_rpath" = yes; then
11095 # Fast installation is not supported
11096 enable_fast_install=no
11097elif test "$shlibpath_overrides_runpath" = yes ||
11098 test "$enable_shared" = no; then
11099 # Fast installation is not necessary
11100 enable_fast_install=needless
11101fi
11102
11103
11104
11105
11106
11107
11108 if test "x$enable_dlopen" != xyes; then
11109 enable_dlopen=unknown
11110 enable_dlopen_self=unknown
11111 enable_dlopen_self_static=unknown
11112else
11113 lt_cv_dlopen=no
11114 lt_cv_dlopen_libs=
11115
11116 case $host_os in
11117 beos*)
11118 lt_cv_dlopen="load_add_on"
11119 lt_cv_dlopen_libs=
11120 lt_cv_dlopen_self=yes
11121 ;;
11122
6b4a97ed 11123 mingw* | pw32* | cegcc*)
1cf3d07d
SE
11124 lt_cv_dlopen="LoadLibrary"
11125 lt_cv_dlopen_libs=
11126 ;;
11127
11128 cygwin*)
11129 lt_cv_dlopen="dlopen"
11130 lt_cv_dlopen_libs=
11131 ;;
11132
11133 darwin*)
11134 # if libdl is installed we need to link against it
5213506e
RW
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11136$as_echo_n "checking for dlopen in -ldl... " >&6; }
22e05272 11137if ${ac_cv_lib_dl_dlopen+:} false; then :
5213506e 11138 $as_echo_n "(cached) " >&6
1cf3d07d
SE
11139else
11140 ac_check_lib_save_LIBS=$LIBS
11141LIBS="-ldl $LIBS"
5213506e 11142cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
11143/* end confdefs.h. */
11144
5213506e
RW
11145/* Override any GCC internal prototype to avoid an error.
11146 Use char because int might match the return type of a GCC
11147 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
11148#ifdef __cplusplus
11149extern "C"
11150#endif
1cf3d07d
SE
11151char dlopen ();
11152int
11153main ()
11154{
5213506e 11155return dlopen ();
1cf3d07d
SE
11156 ;
11157 return 0;
11158}
11159_ACEOF
5213506e 11160if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
11161 ac_cv_lib_dl_dlopen=yes
11162else
5213506e 11163 ac_cv_lib_dl_dlopen=no
1cf3d07d 11164fi
5213506e
RW
11165rm -f core conftest.err conftest.$ac_objext \
11166 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
11167LIBS=$ac_check_lib_save_LIBS
11168fi
5213506e
RW
11169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11170$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22e05272 11171if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1cf3d07d
SE
11172 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11173else
11174
11175 lt_cv_dlopen="dyld"
11176 lt_cv_dlopen_libs=
11177 lt_cv_dlopen_self=yes
11178
11179fi
11180
11181 ;;
11182
11183 *)
5213506e 11184 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
22e05272 11185if test "x$ac_cv_func_shl_load" = xyes; then :
1cf3d07d
SE
11186 lt_cv_dlopen="shl_load"
11187else
5213506e
RW
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11189$as_echo_n "checking for shl_load in -ldld... " >&6; }
22e05272 11190if ${ac_cv_lib_dld_shl_load+:} false; then :
5213506e 11191 $as_echo_n "(cached) " >&6
1cf3d07d
SE
11192else
11193 ac_check_lib_save_LIBS=$LIBS
11194LIBS="-ldld $LIBS"
5213506e 11195cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
11196/* end confdefs.h. */
11197
5213506e
RW
11198/* Override any GCC internal prototype to avoid an error.
11199 Use char because int might match the return type of a GCC
11200 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
11201#ifdef __cplusplus
11202extern "C"
11203#endif
1cf3d07d
SE
11204char shl_load ();
11205int
11206main ()
11207{
5213506e 11208return shl_load ();
1cf3d07d
SE
11209 ;
11210 return 0;
11211}
11212_ACEOF
5213506e 11213if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
11214 ac_cv_lib_dld_shl_load=yes
11215else
5213506e 11216 ac_cv_lib_dld_shl_load=no
1cf3d07d 11217fi
5213506e
RW
11218rm -f core conftest.err conftest.$ac_objext \
11219 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
11220LIBS=$ac_check_lib_save_LIBS
11221fi
5213506e
RW
11222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11223$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
22e05272 11224if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
6b4a97ed 11225 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
1cf3d07d 11226else
5213506e 11227 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
22e05272 11228if test "x$ac_cv_func_dlopen" = xyes; then :
1cf3d07d
SE
11229 lt_cv_dlopen="dlopen"
11230else
5213506e
RW
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11232$as_echo_n "checking for dlopen in -ldl... " >&6; }
22e05272 11233if ${ac_cv_lib_dl_dlopen+:} false; then :
5213506e 11234 $as_echo_n "(cached) " >&6
1cf3d07d
SE
11235else
11236 ac_check_lib_save_LIBS=$LIBS
11237LIBS="-ldl $LIBS"
5213506e 11238cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
11239/* end confdefs.h. */
11240
5213506e
RW
11241/* Override any GCC internal prototype to avoid an error.
11242 Use char because int might match the return type of a GCC
11243 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
11244#ifdef __cplusplus
11245extern "C"
11246#endif
1cf3d07d
SE
11247char dlopen ();
11248int
11249main ()
11250{
5213506e 11251return dlopen ();
1cf3d07d
SE
11252 ;
11253 return 0;
11254}
11255_ACEOF
5213506e 11256if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
11257 ac_cv_lib_dl_dlopen=yes
11258else
5213506e 11259 ac_cv_lib_dl_dlopen=no
1cf3d07d 11260fi
5213506e
RW
11261rm -f core conftest.err conftest.$ac_objext \
11262 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
11263LIBS=$ac_check_lib_save_LIBS
11264fi
5213506e
RW
11265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11266$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22e05272 11267if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1cf3d07d
SE
11268 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11269else
5213506e
RW
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11271$as_echo_n "checking for dlopen in -lsvld... " >&6; }
22e05272 11272if ${ac_cv_lib_svld_dlopen+:} false; then :
5213506e 11273 $as_echo_n "(cached) " >&6
1cf3d07d
SE
11274else
11275 ac_check_lib_save_LIBS=$LIBS
11276LIBS="-lsvld $LIBS"
5213506e 11277cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
11278/* end confdefs.h. */
11279
5213506e
RW
11280/* Override any GCC internal prototype to avoid an error.
11281 Use char because int might match the return type of a GCC
11282 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
11283#ifdef __cplusplus
11284extern "C"
11285#endif
1cf3d07d
SE
11286char dlopen ();
11287int
11288main ()
11289{
5213506e 11290return dlopen ();
1cf3d07d
SE
11291 ;
11292 return 0;
11293}
11294_ACEOF
5213506e 11295if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
11296 ac_cv_lib_svld_dlopen=yes
11297else
5213506e 11298 ac_cv_lib_svld_dlopen=no
1cf3d07d 11299fi
5213506e
RW
11300rm -f core conftest.err conftest.$ac_objext \
11301 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
11302LIBS=$ac_check_lib_save_LIBS
11303fi
5213506e
RW
11304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11305$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
22e05272 11306if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
1cf3d07d
SE
11307 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11308else
5213506e
RW
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11310$as_echo_n "checking for dld_link in -ldld... " >&6; }
22e05272 11311if ${ac_cv_lib_dld_dld_link+:} false; then :
5213506e 11312 $as_echo_n "(cached) " >&6
1cf3d07d
SE
11313else
11314 ac_check_lib_save_LIBS=$LIBS
11315LIBS="-ldld $LIBS"
5213506e 11316cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1cf3d07d
SE
11317/* end confdefs.h. */
11318
5213506e
RW
11319/* Override any GCC internal prototype to avoid an error.
11320 Use char because int might match the return type of a GCC
11321 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
11322#ifdef __cplusplus
11323extern "C"
11324#endif
1cf3d07d
SE
11325char dld_link ();
11326int
11327main ()
11328{
5213506e 11329return dld_link ();
1cf3d07d
SE
11330 ;
11331 return 0;
11332}
11333_ACEOF
5213506e 11334if ac_fn_c_try_link "$LINENO"; then :
1cf3d07d
SE
11335 ac_cv_lib_dld_dld_link=yes
11336else
5213506e 11337 ac_cv_lib_dld_dld_link=no
1cf3d07d 11338fi
5213506e
RW
11339rm -f core conftest.err conftest.$ac_objext \
11340 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
11341LIBS=$ac_check_lib_save_LIBS
11342fi
5213506e
RW
11343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11344$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
22e05272 11345if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
6b4a97ed 11346 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
1cf3d07d
SE
11347fi
11348
11349
11350fi
11351
11352
11353fi
11354
11355
11356fi
11357
11358
11359fi
11360
11361
11362fi
11363
11364 ;;
11365 esac
11366
11367 if test "x$lt_cv_dlopen" != xno; then
11368 enable_dlopen=yes
11369 else
11370 enable_dlopen=no
11371 fi
11372
11373 case $lt_cv_dlopen in
11374 dlopen)
11375 save_CPPFLAGS="$CPPFLAGS"
11376 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11377
11378 save_LDFLAGS="$LDFLAGS"
11379 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11380
11381 save_LIBS="$LIBS"
11382 LIBS="$lt_cv_dlopen_libs $LIBS"
11383
5213506e
RW
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11385$as_echo_n "checking whether a program can dlopen itself... " >&6; }
22e05272 11386if ${lt_cv_dlopen_self+:} false; then :
5213506e 11387 $as_echo_n "(cached) " >&6
1cf3d07d
SE
11388else
11389 if test "$cross_compiling" = yes; then :
11390 lt_cv_dlopen_self=cross
11391else
11392 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11393 lt_status=$lt_dlunknown
11394 cat > conftest.$ac_ext <<_LT_EOF
22e05272 11395#line 11395 "configure"
1cf3d07d
SE
11396#include "confdefs.h"
11397
11398#if HAVE_DLFCN_H
11399#include <dlfcn.h>
11400#endif
11401
11402#include <stdio.h>
11403
11404#ifdef RTLD_GLOBAL
11405# define LT_DLGLOBAL RTLD_GLOBAL
11406#else
11407# ifdef DL_GLOBAL
11408# define LT_DLGLOBAL DL_GLOBAL
11409# else
11410# define LT_DLGLOBAL 0
11411# endif
11412#endif
11413
11414/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11415 find out it does not work in some platform. */
11416#ifndef LT_DLLAZY_OR_NOW
11417# ifdef RTLD_LAZY
11418# define LT_DLLAZY_OR_NOW RTLD_LAZY
11419# else
11420# ifdef DL_LAZY
11421# define LT_DLLAZY_OR_NOW DL_LAZY
11422# else
11423# ifdef RTLD_NOW
11424# define LT_DLLAZY_OR_NOW RTLD_NOW
11425# else
11426# ifdef DL_NOW
11427# define LT_DLLAZY_OR_NOW DL_NOW
11428# else
11429# define LT_DLLAZY_OR_NOW 0
11430# endif
11431# endif
11432# endif
11433# endif
11434#endif
11435
43e02a8a
RW
11436/* When -fvisbility=hidden is used, assume the code has been annotated
11437 correspondingly for the symbols needed. */
11438#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11439void fnord () __attribute__((visibility("default")));
11440#endif
11441
11442void fnord () { int i=42; }
1cf3d07d
SE
11443int main ()
11444{
11445 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11446 int status = $lt_dlunknown;
11447
11448 if (self)
11449 {
11450 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
43e02a8a
RW
11451 else
11452 {
11453 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11454 else puts (dlerror ());
11455 }
1cf3d07d
SE
11456 /* dlclose (self); */
11457 }
11458 else
11459 puts (dlerror ());
11460
6b4a97ed 11461 return status;
1cf3d07d
SE
11462}
11463_LT_EOF
5213506e 11464 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d
SE
11465 (eval $ac_link) 2>&5
11466 ac_status=$?
5213506e
RW
11467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11468 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1cf3d07d
SE
11469 (./conftest; exit; ) >&5 2>/dev/null
11470 lt_status=$?
11471 case x$lt_status in
11472 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11473 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11474 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11475 esac
11476 else :
11477 # compilation failed
11478 lt_cv_dlopen_self=no
11479 fi
11480fi
11481rm -fr conftest*
11482
11483
11484fi
5213506e
RW
11485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11486$as_echo "$lt_cv_dlopen_self" >&6; }
1cf3d07d
SE
11487
11488 if test "x$lt_cv_dlopen_self" = xyes; then
11489 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
5213506e
RW
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11491$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
22e05272 11492if ${lt_cv_dlopen_self_static+:} false; then :
5213506e 11493 $as_echo_n "(cached) " >&6
1cf3d07d
SE
11494else
11495 if test "$cross_compiling" = yes; then :
11496 lt_cv_dlopen_self_static=cross
11497else
11498 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11499 lt_status=$lt_dlunknown
11500 cat > conftest.$ac_ext <<_LT_EOF
22e05272 11501#line 11501 "configure"
1cf3d07d
SE
11502#include "confdefs.h"
11503
11504#if HAVE_DLFCN_H
11505#include <dlfcn.h>
11506#endif
11507
11508#include <stdio.h>
11509
11510#ifdef RTLD_GLOBAL
11511# define LT_DLGLOBAL RTLD_GLOBAL
11512#else
11513# ifdef DL_GLOBAL
11514# define LT_DLGLOBAL DL_GLOBAL
11515# else
11516# define LT_DLGLOBAL 0
11517# endif
11518#endif
11519
11520/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11521 find out it does not work in some platform. */
11522#ifndef LT_DLLAZY_OR_NOW
11523# ifdef RTLD_LAZY
11524# define LT_DLLAZY_OR_NOW RTLD_LAZY
11525# else
11526# ifdef DL_LAZY
11527# define LT_DLLAZY_OR_NOW DL_LAZY
11528# else
11529# ifdef RTLD_NOW
11530# define LT_DLLAZY_OR_NOW RTLD_NOW
11531# else
11532# ifdef DL_NOW
11533# define LT_DLLAZY_OR_NOW DL_NOW
11534# else
11535# define LT_DLLAZY_OR_NOW 0
11536# endif
11537# endif
11538# endif
11539# endif
11540#endif
11541
43e02a8a
RW
11542/* When -fvisbility=hidden is used, assume the code has been annotated
11543 correspondingly for the symbols needed. */
11544#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11545void fnord () __attribute__((visibility("default")));
11546#endif
11547
11548void fnord () { int i=42; }
1cf3d07d
SE
11549int main ()
11550{
11551 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11552 int status = $lt_dlunknown;
11553
11554 if (self)
11555 {
11556 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
43e02a8a
RW
11557 else
11558 {
11559 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11560 else puts (dlerror ());
11561 }
1cf3d07d
SE
11562 /* dlclose (self); */
11563 }
11564 else
11565 puts (dlerror ());
11566
6b4a97ed 11567 return status;
1cf3d07d
SE
11568}
11569_LT_EOF
5213506e 11570 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1cf3d07d
SE
11571 (eval $ac_link) 2>&5
11572 ac_status=$?
5213506e
RW
11573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11574 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1cf3d07d
SE
11575 (./conftest; exit; ) >&5 2>/dev/null
11576 lt_status=$?
11577 case x$lt_status in
11578 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11579 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11580 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11581 esac
11582 else :
11583 # compilation failed
11584 lt_cv_dlopen_self_static=no
11585 fi
11586fi
11587rm -fr conftest*
11588
11589
11590fi
5213506e
RW
11591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11592$as_echo "$lt_cv_dlopen_self_static" >&6; }
1cf3d07d
SE
11593 fi
11594
11595 CPPFLAGS="$save_CPPFLAGS"
11596 LDFLAGS="$save_LDFLAGS"
11597 LIBS="$save_LIBS"
11598 ;;
11599 esac
11600
11601 case $lt_cv_dlopen_self in
11602 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11603 *) enable_dlopen_self=unknown ;;
11604 esac
11605
11606 case $lt_cv_dlopen_self_static in
11607 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11608 *) enable_dlopen_self_static=unknown ;;
11609 esac
11610fi
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628striplib=
11629old_striplib=
5213506e
RW
11630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11631$as_echo_n "checking whether stripping libraries is possible... " >&6; }
1cf3d07d
SE
11632if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11633 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11634 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5213506e
RW
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11636$as_echo "yes" >&6; }
1cf3d07d
SE
11637else
11638# FIXME - insert some real tests, host_os isn't really good enough
11639 case $host_os in
11640 darwin*)
11641 if test -n "$STRIP" ; then
11642 striplib="$STRIP -x"
11643 old_striplib="$STRIP -S"
5213506e
RW
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11645$as_echo "yes" >&6; }
1cf3d07d 11646 else
5213506e
RW
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11648$as_echo "no" >&6; }
1cf3d07d
SE
11649 fi
11650 ;;
11651 *)
5213506e
RW
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11653$as_echo "no" >&6; }
1cf3d07d
SE
11654 ;;
11655 esac
11656fi
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669 # Report which library types will actually be built
5213506e
RW
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11671$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11673$as_echo "$can_build_shared" >&6; }
1cf3d07d 11674
5213506e
RW
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11676$as_echo_n "checking whether to build shared libraries... " >&6; }
1cf3d07d
SE
11677 test "$can_build_shared" = "no" && enable_shared=no
11678
11679 # On AIX, shared libraries and static libraries use the same namespace, and
11680 # are all built from PIC.
11681 case $host_os in
11682 aix3*)
11683 test "$enable_shared" = yes && enable_static=no
11684 if test -n "$RANLIB"; then
11685 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11686 postinstall_cmds='$RANLIB $lib'
11687 fi
11688 ;;
11689
d653fdfb 11690 aix[4-9]*)
1cf3d07d
SE
11691 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11692 test "$enable_shared" = yes && enable_static=no
11693 fi
11694 ;;
11695 esac
5213506e
RW
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11697$as_echo "$enable_shared" >&6; }
1cf3d07d 11698
5213506e
RW
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11700$as_echo_n "checking whether to build static libraries... " >&6; }
1cf3d07d
SE
11701 # Make sure either enable_shared or enable_static is yes.
11702 test "$enable_shared" = yes || enable_static=yes
5213506e
RW
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11704$as_echo "$enable_static" >&6; }
1cf3d07d
SE
11705
11706
11707
11708
11709fi
11710ac_ext=c
11711ac_cpp='$CPP $CPPFLAGS'
11712ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11713ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11714ac_compiler_gnu=$ac_cv_c_compiler_gnu
11715
11716CC="$lt_save_CC"
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
5213506e 11730 ac_config_commands="$ac_config_commands libtool"
1cf3d07d
SE
11731
11732
11733
11734
11735# Only expand once:
11736
11737
11738
11739
11740
7de6ba7a
DK
11741case $host in
11742 *-cygwin* | *-mingw*)
11743 # 'host' will be top-level target in the case of a target lib,
11744 # we must compare to with_cross_host to decide if this is a native
11745 # or cross-compiler and select where to install dlls appropriately.
11746 if test -n "$with_cross_host" &&
11747 test x"$with_cross_host" != x"no"; then
11748 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
11749 else
11750 lt_host_flags='-no-undefined -bindir "$(bindir)"';
11751 fi
11752 ;;
11753 *)
11754 lt_host_flags=
11755 ;;
11756esac
11757
11758
11759
11760
11761
11762
5213506e
RW
11763
11764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11765$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11766 # Check whether --enable-maintainer-mode was given.
11767if test "${enable_maintainer_mode+set}" = set; then :
11768 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1cf3d07d
SE
11769else
11770 USE_MAINTAINER_MODE=no
5213506e 11771fi
1cf3d07d 11772
5213506e
RW
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11774$as_echo "$USE_MAINTAINER_MODE" >&6; }
11775 if test $USE_MAINTAINER_MODE = yes; then
1cf3d07d
SE
11776 MAINTAINER_MODE_TRUE=
11777 MAINTAINER_MODE_FALSE='#'
11778else
11779 MAINTAINER_MODE_TRUE='#'
11780 MAINTAINER_MODE_FALSE=
11781fi
11782
11783 MAINT=$MAINTAINER_MODE_TRUE
11784
11785
11786
1ec601bf
FXC
11787# Create a spec file, so that compile/link tests don't fail
11788test -f libgfortran.spec || touch libgfortran.spec
11789FCFLAGS="$FCFLAGS -L."
11790
1cf3d07d
SE
11791# We need gfortran to compile parts of the library
11792# We can't use AC_PROG_FC because it expects a fully working gfortran.
11793#AC_PROG_FC(gfortran)
0046b1a7
RW
11794case `echo $GFORTRAN` in
11795 -* | no* )
11796 FC=no ;;
11797 *)
2122aa97
PB
11798 set dummy $GFORTRAN; ac_word=$2
11799 if test -x "$ac_word"; then
d0709b6a
PB
11800 FC="$GFORTRAN"
11801 else
11802 FC=no
11803 fi ;;
0046b1a7 11804esac
5213506e
RW
11805ac_ext=${ac_fc_srcext-f}
11806ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11807ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
1cf3d07d
SE
11808ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11809if test -n "$ac_tool_prefix"; then
11810 for ac_prog in gfortran
11811 do
11812 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11813set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
11814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11815$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11816if ${ac_cv_prog_FC+:} false; then :
5213506e 11817 $as_echo_n "(cached) " >&6
1cf3d07d
SE
11818else
11819 if test -n "$FC"; then
11820 ac_cv_prog_FC="$FC" # Let the user override the test.
11821else
11822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11823for as_dir in $PATH
11824do
11825 IFS=$as_save_IFS
11826 test -z "$as_dir" && as_dir=.
5213506e 11827 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 11829 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
5213506e 11830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
11831 break 2
11832 fi
11833done
5213506e
RW
11834 done
11835IFS=$as_save_IFS
1cf3d07d
SE
11836
11837fi
11838fi
11839FC=$ac_cv_prog_FC
11840if test -n "$FC"; then
5213506e
RW
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
11842$as_echo "$FC" >&6; }
1cf3d07d 11843else
5213506e
RW
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11845$as_echo "no" >&6; }
1cf3d07d
SE
11846fi
11847
5213506e 11848
1cf3d07d
SE
11849 test -n "$FC" && break
11850 done
11851fi
11852if test -z "$FC"; then
11853 ac_ct_FC=$FC
11854 for ac_prog in gfortran
11855do
11856 # Extract the first word of "$ac_prog", so it can be a program name with args.
11857set dummy $ac_prog; ac_word=$2
5213506e
RW
11858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11859$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11860if ${ac_cv_prog_ac_ct_FC+:} false; then :
5213506e 11861 $as_echo_n "(cached) " >&6
1cf3d07d
SE
11862else
11863 if test -n "$ac_ct_FC"; then
11864 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
11865else
11866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11867for as_dir in $PATH
11868do
11869 IFS=$as_save_IFS
11870 test -z "$as_dir" && as_dir=.
5213506e 11871 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 11873 ac_cv_prog_ac_ct_FC="$ac_prog"
5213506e 11874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1cf3d07d
SE
11875 break 2
11876 fi
11877done
5213506e
RW
11878 done
11879IFS=$as_save_IFS
1cf3d07d
SE
11880
11881fi
11882fi
11883ac_ct_FC=$ac_cv_prog_ac_ct_FC
11884if test -n "$ac_ct_FC"; then
5213506e
RW
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
11886$as_echo "$ac_ct_FC" >&6; }
1cf3d07d 11887else
5213506e
RW
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11889$as_echo "no" >&6; }
1cf3d07d
SE
11890fi
11891
5213506e 11892
1cf3d07d
SE
11893 test -n "$ac_ct_FC" && break
11894done
11895
5213506e
RW
11896 if test "x$ac_ct_FC" = x; then
11897 FC=""
11898 else
11899 case $cross_compiling:$ac_tool_warned in
11900yes:)
11901{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11902$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11903ac_tool_warned=yes ;;
11904esac
11905 FC=$ac_ct_FC
11906 fi
1cf3d07d
SE
11907fi
11908
11909
11910# Provide some information about the compiler.
5213506e
RW
11911$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
11912set X $ac_compile
11913ac_compiler=$2
11914for ac_option in --version -v -V -qversion; do
11915 { { ac_try="$ac_compiler $ac_option >&5"
11916case "(($ac_try" in
11917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11918 *) ac_try_echo=$ac_try;;
11919esac
11920eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11921$as_echo "$ac_try_echo"; } >&5
11922 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1cf3d07d 11923 ac_status=$?
5213506e
RW
11924 if test -s conftest.err; then
11925 sed '10a\
11926... rest of stderr output deleted ...
11927 10q' conftest.err >conftest.er1
11928 cat conftest.er1 >&5
5213506e 11929 fi
22e05272 11930 rm -f conftest.er1 conftest.err
5213506e
RW
11931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11932 test $ac_status = 0; }
11933done
1cf3d07d
SE
11934rm -f a.out
11935
11936# If we don't use `.F' as extension, the preprocessor is not run on the
11937# input file. (Note that this only needs to work for GNU compilers.)
11938ac_save_ext=$ac_ext
11939ac_ext=F
5213506e
RW
11940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
11941$as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
22e05272 11942if ${ac_cv_fc_compiler_gnu+:} false; then :
5213506e 11943 $as_echo_n "(cached) " >&6
1cf3d07d 11944else
5213506e 11945 cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
11946 program main
11947#ifndef __GNUC__
11948 choke me
11949#endif
11950
11951 end
11952_ACEOF
5213506e 11953if ac_fn_fc_try_compile "$LINENO"; then :
1cf3d07d
SE
11954 ac_compiler_gnu=yes
11955else
5213506e 11956 ac_compiler_gnu=no
1cf3d07d 11957fi
5213506e 11958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d
SE
11959ac_cv_fc_compiler_gnu=$ac_compiler_gnu
11960
11961fi
5213506e
RW
11962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
11963$as_echo "$ac_cv_fc_compiler_gnu" >&6; }
1cf3d07d 11964ac_ext=$ac_save_ext
5213506e
RW
11965ac_test_FCFLAGS=${FCFLAGS+set}
11966ac_save_FCFLAGS=$FCFLAGS
1cf3d07d 11967FCFLAGS=
5213506e
RW
11968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
11969$as_echo_n "checking whether $FC accepts -g... " >&6; }
22e05272 11970if ${ac_cv_prog_fc_g+:} false; then :
5213506e 11971 $as_echo_n "(cached) " >&6
1cf3d07d
SE
11972else
11973 FCFLAGS=-g
5213506e 11974cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
11975 program main
11976
11977 end
11978_ACEOF
5213506e 11979if ac_fn_fc_try_compile "$LINENO"; then :
1cf3d07d
SE
11980 ac_cv_prog_fc_g=yes
11981else
5213506e 11982 ac_cv_prog_fc_g=no
1cf3d07d 11983fi
5213506e 11984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d
SE
11985
11986fi
5213506e
RW
11987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
11988$as_echo "$ac_cv_prog_fc_g" >&6; }
11989if test "$ac_test_FCFLAGS" = set; then
11990 FCFLAGS=$ac_save_FCFLAGS
1cf3d07d
SE
11991elif test $ac_cv_prog_fc_g = yes; then
11992 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11993 FCFLAGS="-g -O2"
11994 else
11995 FCFLAGS="-g"
11996 fi
11997else
11998 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11999 FCFLAGS="-O2"
12000 else
12001 FCFLAGS=
12002 fi
12003fi
12004
22e05272
JM
12005if test $ac_compiler_gnu = yes; then
12006 GFC=yes
12007else
12008 GFC=
12009fi
1cf3d07d
SE
12010ac_ext=c
12011ac_cpp='$CPP $CPPFLAGS'
12012ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12013ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12014ac_compiler_gnu=$ac_cv_c_compiler_gnu
12015
43e02a8a 12016 ac_ext=${ac_fc_srcext-f}
5213506e
RW
12017ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
12018ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
1cf3d07d 12019ac_compiler_gnu=$ac_cv_fc_compiler_gnu
1cf3d07d 12020
1cf3d07d
SE
12021
12022if test -z "$FC" || test "X$FC" = "Xno"; then
12023 _lt_disable_FC=yes
12024fi
12025
1cf3d07d
SE
12026archive_cmds_need_lc_FC=no
12027allow_undefined_flag_FC=
12028always_export_symbols_FC=no
12029archive_expsym_cmds_FC=
12030export_dynamic_flag_spec_FC=
12031hardcode_direct_FC=no
12032hardcode_direct_absolute_FC=no
12033hardcode_libdir_flag_spec_FC=
12034hardcode_libdir_flag_spec_ld_FC=
12035hardcode_libdir_separator_FC=
12036hardcode_minus_L_FC=no
12037hardcode_automatic_FC=no
12038inherit_rpath_FC=no
12039module_cmds_FC=
12040module_expsym_cmds_FC=
12041link_all_deplibs_FC=unknown
12042old_archive_cmds_FC=$old_archive_cmds
43e02a8a
RW
12043reload_flag_FC=$reload_flag
12044reload_cmds_FC=$reload_cmds
1cf3d07d
SE
12045no_undefined_flag_FC=
12046whole_archive_flag_spec_FC=
12047enable_shared_with_static_runtimes_FC=no
12048
12049# Source file extension for fc test sources.
12050ac_ext=${ac_fc_srcext-f}
12051
12052# Object file extension for compiled fc test sources.
12053objext=o
12054objext_FC=$objext
12055
12056# No sense in running all these tests if we already determined that
12057# the FC compiler isn't working. Some variables (like enable_shared)
12058# are currently assumed to apply to all compilers on this platform,
12059# and will be corrupted by setting them based on a non-working compiler.
12060if test "$_lt_disable_FC" != yes; then
12061 # Code to be used in simple compile tests
12062 lt_simple_compile_test_code="\
12063 subroutine t
12064 return
12065 end
12066"
12067
12068 # Code to be used in simple link tests
12069 lt_simple_link_test_code="\
12070 program t
12071 end
12072"
12073
12074 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12075
12076
12077
12078
12079
12080
12081# If no C compiler was specified, use CC.
12082LTCC=${LTCC-"$CC"}
12083
12084# If no C compiler flags were specified, use CFLAGS.
12085LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12086
12087# Allow CC to be a program name with arguments.
12088compiler=$CC
12089
12090
12091 # save warnings/boilerplate of simple test code
12092 ac_outfile=conftest.$ac_objext
12093echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12094eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12095_lt_compiler_boilerplate=`cat conftest.err`
12096$RM conftest*
12097
12098 ac_outfile=conftest.$ac_objext
12099echo "$lt_simple_link_test_code" >conftest.$ac_ext
12100eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12101_lt_linker_boilerplate=`cat conftest.err`
6b4a97ed 12102$RM -r conftest*
1cf3d07d
SE
12103
12104
12105 # Allow CC to be a program name with arguments.
12106 lt_save_CC="$CC"
6b4a97ed 12107 lt_save_GCC=$GCC
1cf3d07d
SE
12108 CC=${FC-"f95"}
12109 compiler=$CC
6b4a97ed
PG
12110 GCC=$ac_cv_fc_compiler_gnu
12111
1cf3d07d
SE
12112 compiler_FC=$CC
12113 for cc_temp in $compiler""; do
12114 case $cc_temp in
12115 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12116 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12117 \-*) ;;
12118 *) break;;
12119 esac
12120done
43e02a8a 12121cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1cf3d07d
SE
12122
12123
12124 if test -n "$compiler"; then
5213506e
RW
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12126$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12128$as_echo "$can_build_shared" >&6; }
1cf3d07d 12129
5213506e
RW
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12131$as_echo_n "checking whether to build shared libraries... " >&6; }
1cf3d07d
SE
12132 test "$can_build_shared" = "no" && enable_shared=no
12133
12134 # On AIX, shared libraries and static libraries use the same namespace, and
12135 # are all built from PIC.
12136 case $host_os in
12137 aix3*)
12138 test "$enable_shared" = yes && enable_static=no
12139 if test -n "$RANLIB"; then
12140 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12141 postinstall_cmds='$RANLIB $lib'
12142 fi
12143 ;;
d653fdfb 12144 aix[4-9]*)
1cf3d07d
SE
12145 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12146 test "$enable_shared" = yes && enable_static=no
12147 fi
12148 ;;
12149 esac
5213506e
RW
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12151$as_echo "$enable_shared" >&6; }
1cf3d07d 12152
5213506e
RW
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12154$as_echo_n "checking whether to build static libraries... " >&6; }
1cf3d07d
SE
12155 # Make sure either enable_shared or enable_static is yes.
12156 test "$enable_shared" = yes || enable_static=yes
5213506e
RW
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12158$as_echo "$enable_static" >&6; }
1cf3d07d
SE
12159
12160 GCC_FC="$ac_cv_fc_compiler_gnu"
12161 LD_FC="$LD"
12162
12163 ## CAVEAT EMPTOR:
12164 ## There is no encapsulation within the following macros, do not change
12165 ## the running order or otherwise move them around unless you know exactly
12166 ## what you are doing...
12167 # Dependencies to place before and after the object being linked:
12168predep_objects_FC=
12169postdep_objects_FC=
12170predeps_FC=
12171postdeps_FC=
12172compiler_lib_search_path_FC=
12173
12174cat > conftest.$ac_ext <<_LT_EOF
12175 subroutine foo
12176 implicit none
12177 integer a
12178 a=0
12179 return
12180 end
12181_LT_EOF
12182
5213506e 12183if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d
SE
12184 (eval $ac_compile) 2>&5
12185 ac_status=$?
5213506e
RW
12186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12187 test $ac_status = 0; }; then
1cf3d07d
SE
12188 # Parse the compiler output and extract the necessary
12189 # objects, libraries and library flags.
12190
12191 # Sentinel used to keep track of whether or not we are before
12192 # the conftest object file.
12193 pre_test_object_deps_done=no
12194
6b4a97ed 12195 for p in `eval "$output_verbose_link_cmd"`; do
1cf3d07d
SE
12196 case $p in
12197
12198 -L* | -R* | -l*)
12199 # Some compilers place space between "-{L,R}" and the path.
12200 # Remove the space.
12201 if test $p = "-L" ||
12202 test $p = "-R"; then
12203 prev=$p
12204 continue
12205 else
12206 prev=
12207 fi
12208
12209 if test "$pre_test_object_deps_done" = no; then
12210 case $p in
12211 -L* | -R*)
12212 # Internal compiler library paths should come after those
12213 # provided the user. The postdeps already come after the
12214 # user supplied libs so there is no need to process them.
12215 if test -z "$compiler_lib_search_path_FC"; then
12216 compiler_lib_search_path_FC="${prev}${p}"
12217 else
12218 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
12219 fi
12220 ;;
12221 # The "-l" case would never come before the object being
12222 # linked, so don't bother handling this case.
12223 esac
12224 else
12225 if test -z "$postdeps_FC"; then
12226 postdeps_FC="${prev}${p}"
12227 else
12228 postdeps_FC="${postdeps_FC} ${prev}${p}"
12229 fi
12230 fi
12231 ;;
12232
12233 *.$objext)
12234 # This assumes that the test object file only shows up
12235 # once in the compiler output.
12236 if test "$p" = "conftest.$objext"; then
12237 pre_test_object_deps_done=yes
12238 continue
12239 fi
12240
12241 if test "$pre_test_object_deps_done" = no; then
12242 if test -z "$predep_objects_FC"; then
12243 predep_objects_FC="$p"
12244 else
12245 predep_objects_FC="$predep_objects_FC $p"
12246 fi
12247 else
12248 if test -z "$postdep_objects_FC"; then
12249 postdep_objects_FC="$p"
12250 else
12251 postdep_objects_FC="$postdep_objects_FC $p"
12252 fi
12253 fi
12254 ;;
12255
12256 *) ;; # Ignore the rest.
12257
12258 esac
12259 done
12260
12261 # Clean up.
12262 rm -f a.out a.exe
12263else
12264 echo "libtool.m4: error: problem compiling FC test program"
12265fi
12266
12267$RM -f confest.$objext
12268
12269# PORTME: override above test on systems where it is broken
12270
12271
12272case " $postdeps_FC " in
12273*" -lc "*) archive_cmds_need_lc_FC=no ;;
12274esac
6b4a97ed
PG
12275 compiler_lib_search_dirs_FC=
12276if test -n "${compiler_lib_search_path_FC}"; then
12277 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12278fi
12279
12280
12281
12282
12283
1cf3d07d
SE
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310 lt_prog_compiler_wl_FC=
12311lt_prog_compiler_pic_FC=
12312lt_prog_compiler_static_FC=
12313
5213506e
RW
12314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12315$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
1cf3d07d
SE
12316
12317 if test "$GCC" = yes; then
12318 lt_prog_compiler_wl_FC='-Wl,'
12319 lt_prog_compiler_static_FC='-static'
12320
12321 case $host_os in
12322 aix*)
12323 # All AIX code is PIC.
12324 if test "$host_cpu" = ia64; then
12325 # AIX 5 now supports IA64 processor
12326 lt_prog_compiler_static_FC='-Bstatic'
12327 fi
6608378b 12328 lt_prog_compiler_pic_FC='-fPIC'
1cf3d07d
SE
12329 ;;
12330
12331 amigaos*)
6b4a97ed
PG
12332 case $host_cpu in
12333 powerpc)
12334 # see comment about AmigaOS4 .so support
12335 lt_prog_compiler_pic_FC='-fPIC'
12336 ;;
12337 m68k)
12338 # FIXME: we need at least 68020 code to build shared libraries, but
12339 # adding the `-m68020' flag to GCC prevents building anything better,
12340 # like `-m68040'.
12341 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
12342 ;;
12343 esac
1cf3d07d
SE
12344 ;;
12345
12346 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12347 # PIC is the default for these OSes.
12348 ;;
12349
6b4a97ed 12350 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
12351 # This hack is so that the source file can tell whether it is being
12352 # built for inclusion in a dll (and should export symbols for example).
12353 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12354 # (--disable-auto-import) libraries
12355 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12356 ;;
12357
12358 darwin* | rhapsody*)
12359 # PIC is the default on this platform
12360 # Common symbols not allowed in MH_DYLIB files
12361 lt_prog_compiler_pic_FC='-fno-common'
12362 ;;
12363
43e02a8a
RW
12364 haiku*)
12365 # PIC is the default for Haiku.
12366 # The "-static" flag exists, but is broken.
12367 lt_prog_compiler_static_FC=
12368 ;;
12369
1cf3d07d 12370 hpux*)
6b4a97ed
PG
12371 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12372 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12373 # sets the default TLS model and affects inlining.
1cf3d07d 12374 case $host_cpu in
6b4a97ed 12375 hppa*64*)
1cf3d07d
SE
12376 # +Z the default
12377 ;;
12378 *)
12379 lt_prog_compiler_pic_FC='-fPIC'
12380 ;;
12381 esac
12382 ;;
12383
12384 interix[3-9]*)
12385 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12386 # Instead, we relocate shared libraries at runtime.
12387 ;;
12388
12389 msdosdjgpp*)
12390 # Just because we use GCC doesn't mean we suddenly get shared libraries
12391 # on systems that don't support them.
12392 lt_prog_compiler_can_build_shared_FC=no
12393 enable_shared=no
12394 ;;
12395
12396 *nto* | *qnx*)
12397 # QNX uses GNU C++, but need to define -shared option too, otherwise
12398 # it will coredump.
12399 lt_prog_compiler_pic_FC='-fPIC -shared'
12400 ;;
12401
12402 sysv4*MP*)
12403 if test -d /usr/nec; then
12404 lt_prog_compiler_pic_FC=-Kconform_pic
12405 fi
12406 ;;
12407
12408 *)
12409 lt_prog_compiler_pic_FC='-fPIC'
12410 ;;
12411 esac
43e02a8a
RW
12412
12413 case $cc_basename in
12414 nvcc*) # Cuda Compiler Driver 2.2
12415 lt_prog_compiler_wl_FC='-Xlinker '
12416 lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
12417 ;;
12418 esac
1cf3d07d
SE
12419 else
12420 # PORTME Check for flag to pass linker flags through the system compiler.
12421 case $host_os in
12422 aix*)
12423 lt_prog_compiler_wl_FC='-Wl,'
12424 if test "$host_cpu" = ia64; then
12425 # AIX 5 now supports IA64 processor
12426 lt_prog_compiler_static_FC='-Bstatic'
12427 else
12428 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
12429 fi
12430 ;;
1cf3d07d 12431
6b4a97ed 12432 mingw* | cygwin* | pw32* | os2* | cegcc*)
1cf3d07d
SE
12433 # This hack is so that the source file can tell whether it is being
12434 # built for inclusion in a dll (and should export symbols for example).
12435 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12436 ;;
12437
12438 hpux9* | hpux10* | hpux11*)
12439 lt_prog_compiler_wl_FC='-Wl,'
12440 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12441 # not for PA HP-UX.
12442 case $host_cpu in
12443 hppa*64*|ia64*)
12444 # +Z the default
12445 ;;
12446 *)
12447 lt_prog_compiler_pic_FC='+Z'
12448 ;;
12449 esac
12450 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12451 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
12452 ;;
12453
12454 irix5* | irix6* | nonstopux*)
12455 lt_prog_compiler_wl_FC='-Wl,'
12456 # PIC (with -KPIC) is the default.
12457 lt_prog_compiler_static_FC='-non_shared'
12458 ;;
12459
7a9d3fe8 12460 linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d 12461 case $cc_basename in
6b4a97ed
PG
12462 # old Intel for x86_64 which still supported -KPIC.
12463 ecc*)
1cf3d07d
SE
12464 lt_prog_compiler_wl_FC='-Wl,'
12465 lt_prog_compiler_pic_FC='-KPIC'
12466 lt_prog_compiler_static_FC='-static'
12467 ;;
6b4a97ed
PG
12468 # icc used to be incompatible with GCC.
12469 # ICC 10 doesn't accept -KPIC any more.
12470 icc* | ifort*)
12471 lt_prog_compiler_wl_FC='-Wl,'
12472 lt_prog_compiler_pic_FC='-fPIC'
12473 lt_prog_compiler_static_FC='-static'
12474 ;;
12475 # Lahey Fortran 8.1.
12476 lf95*)
12477 lt_prog_compiler_wl_FC='-Wl,'
12478 lt_prog_compiler_pic_FC='--shared'
12479 lt_prog_compiler_static_FC='--static'
12480 ;;
43e02a8a 12481 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
1cf3d07d
SE
12482 # Portland Group compilers (*not* the Pentium gcc compiler,
12483 # which looks to be a dead project)
12484 lt_prog_compiler_wl_FC='-Wl,'
12485 lt_prog_compiler_pic_FC='-fpic'
12486 lt_prog_compiler_static_FC='-Bstatic'
12487 ;;
12488 ccc*)
12489 lt_prog_compiler_wl_FC='-Wl,'
12490 # All Alpha code is PIC.
12491 lt_prog_compiler_static_FC='-non_shared'
12492 ;;
43e02a8a
RW
12493 xl* | bgxl* | bgf* | mpixl*)
12494 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
6b4a97ed
PG
12495 lt_prog_compiler_wl_FC='-Wl,'
12496 lt_prog_compiler_pic_FC='-qpic'
12497 lt_prog_compiler_static_FC='-qstaticlink'
12498 ;;
1cf3d07d
SE
12499 *)
12500 case `$CC -V 2>&1 | sed 5q` in
43e02a8a
RW
12501 *Sun\ F* | *Sun*Fortran*)
12502 # Sun Fortran 8.3 passes all unrecognized flags to the linker
1cf3d07d
SE
12503 lt_prog_compiler_pic_FC='-KPIC'
12504 lt_prog_compiler_static_FC='-Bstatic'
43e02a8a 12505 lt_prog_compiler_wl_FC=''
1cf3d07d 12506 ;;
43e02a8a
RW
12507 *Sun\ C*)
12508 # Sun C 5.9
1cf3d07d
SE
12509 lt_prog_compiler_pic_FC='-KPIC'
12510 lt_prog_compiler_static_FC='-Bstatic'
43e02a8a 12511 lt_prog_compiler_wl_FC='-Wl,'
1cf3d07d
SE
12512 ;;
12513 esac
12514 ;;
12515 esac
12516 ;;
12517
12518 newsos6)
12519 lt_prog_compiler_pic_FC='-KPIC'
12520 lt_prog_compiler_static_FC='-Bstatic'
12521 ;;
12522
12523 *nto* | *qnx*)
12524 # QNX uses GNU C++, but need to define -shared option too, otherwise
12525 # it will coredump.
12526 lt_prog_compiler_pic_FC='-fPIC -shared'
12527 ;;
12528
12529 osf3* | osf4* | osf5*)
12530 lt_prog_compiler_wl_FC='-Wl,'
12531 # All OSF/1 code is PIC.
12532 lt_prog_compiler_static_FC='-non_shared'
12533 ;;
12534
12535 rdos*)
12536 lt_prog_compiler_static_FC='-non_shared'
12537 ;;
12538
12539 solaris*)
12540 lt_prog_compiler_pic_FC='-KPIC'
12541 lt_prog_compiler_static_FC='-Bstatic'
12542 case $cc_basename in
12543 f77* | f90* | f95*)
12544 lt_prog_compiler_wl_FC='-Qoption ld ';;
12545 *)
12546 lt_prog_compiler_wl_FC='-Wl,';;
12547 esac
12548 ;;
12549
12550 sunos4*)
12551 lt_prog_compiler_wl_FC='-Qoption ld '
12552 lt_prog_compiler_pic_FC='-PIC'
12553 lt_prog_compiler_static_FC='-Bstatic'
12554 ;;
12555
12556 sysv4 | sysv4.2uw2* | sysv4.3*)
12557 lt_prog_compiler_wl_FC='-Wl,'
12558 lt_prog_compiler_pic_FC='-KPIC'
12559 lt_prog_compiler_static_FC='-Bstatic'
12560 ;;
12561
12562 sysv4*MP*)
12563 if test -d /usr/nec ;then
12564 lt_prog_compiler_pic_FC='-Kconform_pic'
12565 lt_prog_compiler_static_FC='-Bstatic'
12566 fi
12567 ;;
12568
12569 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12570 lt_prog_compiler_wl_FC='-Wl,'
12571 lt_prog_compiler_pic_FC='-KPIC'
12572 lt_prog_compiler_static_FC='-Bstatic'
12573 ;;
12574
12575 unicos*)
12576 lt_prog_compiler_wl_FC='-Wl,'
12577 lt_prog_compiler_can_build_shared_FC=no
12578 ;;
12579
12580 uts4*)
12581 lt_prog_compiler_pic_FC='-pic'
12582 lt_prog_compiler_static_FC='-Bstatic'
12583 ;;
12584
12585 *)
12586 lt_prog_compiler_can_build_shared_FC=no
12587 ;;
12588 esac
12589 fi
12590
12591case $host_os in
12592 # For platforms which do not support PIC, -DPIC is meaningless:
12593 *djgpp*)
12594 lt_prog_compiler_pic_FC=
12595 ;;
12596 *)
12597 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
12598 ;;
12599esac
5213506e
RW
12600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
12601$as_echo "$lt_prog_compiler_pic_FC" >&6; }
1cf3d07d
SE
12602
12603
12604
12605#
12606# Check to make sure the PIC flag actually works.
12607#
12608if test -n "$lt_prog_compiler_pic_FC"; then
5213506e
RW
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
12610$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
22e05272 12611if ${lt_cv_prog_compiler_pic_works_FC+:} false; then :
5213506e 12612 $as_echo_n "(cached) " >&6
1cf3d07d 12613else
6b4a97ed 12614 lt_cv_prog_compiler_pic_works_FC=no
1cf3d07d
SE
12615 ac_outfile=conftest.$ac_objext
12616 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12617 lt_compiler_flag="$lt_prog_compiler_pic_FC"
12618 # Insert the option either (1) after the last *FLAGS variable, or
12619 # (2) before a word containing "conftest.", or (3) at the end.
12620 # Note that $ac_compile itself does not contain backslashes and begins
12621 # with a dollar sign (not a hyphen), so the echo should work correctly.
12622 # The option is referenced via a variable to avoid confusing sed.
12623 lt_compile=`echo "$ac_compile" | $SED \
12624 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12625 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12626 -e 's:$: $lt_compiler_flag:'`
43e02a8a 12627 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
12628 (eval "$lt_compile" 2>conftest.err)
12629 ac_status=$?
12630 cat conftest.err >&5
43e02a8a 12631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
12632 if (exit $ac_status) && test -s "$ac_outfile"; then
12633 # The compiler can only warn and ignore the option if not recognized
12634 # So say no if there are warnings other than the usual output.
43e02a8a 12635 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1cf3d07d
SE
12636 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12637 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6b4a97ed 12638 lt_cv_prog_compiler_pic_works_FC=yes
1cf3d07d
SE
12639 fi
12640 fi
12641 $RM conftest*
12642
12643fi
5213506e
RW
12644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
12645$as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
1cf3d07d 12646
6b4a97ed 12647if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
1cf3d07d
SE
12648 case $lt_prog_compiler_pic_FC in
12649 "" | " "*) ;;
12650 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
12651 esac
12652else
12653 lt_prog_compiler_pic_FC=
12654 lt_prog_compiler_can_build_shared_FC=no
12655fi
12656
12657fi
12658
12659
12660
12661#
12662# Check to make sure the static flag actually works.
12663#
12664wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
5213506e
RW
12665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12666$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22e05272 12667if ${lt_cv_prog_compiler_static_works_FC+:} false; then :
5213506e 12668 $as_echo_n "(cached) " >&6
1cf3d07d 12669else
6b4a97ed 12670 lt_cv_prog_compiler_static_works_FC=no
1cf3d07d
SE
12671 save_LDFLAGS="$LDFLAGS"
12672 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12673 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12674 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12675 # The linker can only warn and ignore the option if not recognized
12676 # So say no if there are warnings
12677 if test -s conftest.err; then
12678 # Append any errors to the config.log.
12679 cat conftest.err 1>&5
43e02a8a 12680 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1cf3d07d
SE
12681 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12682 if diff conftest.exp conftest.er2 >/dev/null; then
6b4a97ed 12683 lt_cv_prog_compiler_static_works_FC=yes
1cf3d07d
SE
12684 fi
12685 else
6b4a97ed 12686 lt_cv_prog_compiler_static_works_FC=yes
1cf3d07d
SE
12687 fi
12688 fi
6b4a97ed 12689 $RM -r conftest*
1cf3d07d
SE
12690 LDFLAGS="$save_LDFLAGS"
12691
12692fi
5213506e
RW
12693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
12694$as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
1cf3d07d 12695
6b4a97ed 12696if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
1cf3d07d
SE
12697 :
12698else
12699 lt_prog_compiler_static_FC=
12700fi
12701
12702
12703
12704
5213506e
RW
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12706$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 12707if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
5213506e 12708 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12709else
12710 lt_cv_prog_compiler_c_o_FC=no
12711 $RM -r conftest 2>/dev/null
12712 mkdir conftest
12713 cd conftest
12714 mkdir out
12715 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12716
12717 lt_compiler_flag="-o out/conftest2.$ac_objext"
12718 # Insert the option either (1) after the last *FLAGS variable, or
12719 # (2) before a word containing "conftest.", or (3) at the end.
12720 # Note that $ac_compile itself does not contain backslashes and begins
12721 # with a dollar sign (not a hyphen), so the echo should work correctly.
12722 lt_compile=`echo "$ac_compile" | $SED \
12723 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12724 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12725 -e 's:$: $lt_compiler_flag:'`
43e02a8a 12726 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
12727 (eval "$lt_compile" 2>out/conftest.err)
12728 ac_status=$?
12729 cat out/conftest.err >&5
43e02a8a 12730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
12731 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12732 then
12733 # The compiler can only warn and ignore the option if not recognized
12734 # So say no if there are warnings
43e02a8a 12735 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
12736 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12737 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12738 lt_cv_prog_compiler_c_o_FC=yes
12739 fi
12740 fi
12741 chmod u+w . 2>&5
12742 $RM conftest*
12743 # SGI C++ compiler will create directory out/ii_files/ for
12744 # template instantiation
12745 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12746 $RM out/* && rmdir out
12747 cd ..
12748 $RM -r conftest
12749 $RM conftest*
12750
12751fi
5213506e
RW
12752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12753$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
1cf3d07d
SE
12754
12755
12756
5213506e
RW
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12758$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 12759if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
5213506e 12760 $as_echo_n "(cached) " >&6
1cf3d07d
SE
12761else
12762 lt_cv_prog_compiler_c_o_FC=no
12763 $RM -r conftest 2>/dev/null
12764 mkdir conftest
12765 cd conftest
12766 mkdir out
12767 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12768
12769 lt_compiler_flag="-o out/conftest2.$ac_objext"
12770 # Insert the option either (1) after the last *FLAGS variable, or
12771 # (2) before a word containing "conftest.", or (3) at the end.
12772 # Note that $ac_compile itself does not contain backslashes and begins
12773 # with a dollar sign (not a hyphen), so the echo should work correctly.
12774 lt_compile=`echo "$ac_compile" | $SED \
12775 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12776 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12777 -e 's:$: $lt_compiler_flag:'`
43e02a8a 12778 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
1cf3d07d
SE
12779 (eval "$lt_compile" 2>out/conftest.err)
12780 ac_status=$?
12781 cat out/conftest.err >&5
43e02a8a 12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
12783 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12784 then
12785 # The compiler can only warn and ignore the option if not recognized
12786 # So say no if there are warnings
43e02a8a 12787 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1cf3d07d
SE
12788 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12789 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12790 lt_cv_prog_compiler_c_o_FC=yes
12791 fi
12792 fi
12793 chmod u+w . 2>&5
12794 $RM conftest*
12795 # SGI C++ compiler will create directory out/ii_files/ for
12796 # template instantiation
12797 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12798 $RM out/* && rmdir out
12799 cd ..
12800 $RM -r conftest
12801 $RM conftest*
12802
12803fi
5213506e
RW
12804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12805$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
1cf3d07d
SE
12806
12807
12808
12809
12810hard_links="nottested"
12811if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
12812 # do not overwrite the value of need_locks provided by the user
5213506e
RW
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12814$as_echo_n "checking if we can lock with hard links... " >&6; }
1cf3d07d
SE
12815 hard_links=yes
12816 $RM conftest*
12817 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12818 touch conftest.a
12819 ln conftest.a conftest.b 2>&5 || hard_links=no
12820 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5213506e
RW
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12822$as_echo "$hard_links" >&6; }
1cf3d07d 12823 if test "$hard_links" = no; then
5213506e
RW
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12825$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1cf3d07d
SE
12826 need_locks=warn
12827 fi
12828else
12829 need_locks=no
12830fi
12831
12832
12833
5213506e
RW
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12835$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1cf3d07d
SE
12836
12837 runpath_var=
12838 allow_undefined_flag_FC=
12839 always_export_symbols_FC=no
12840 archive_cmds_FC=
12841 archive_expsym_cmds_FC=
12842 compiler_needs_object_FC=no
12843 enable_shared_with_static_runtimes_FC=no
12844 export_dynamic_flag_spec_FC=
12845 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12846 hardcode_automatic_FC=no
12847 hardcode_direct_FC=no
12848 hardcode_direct_absolute_FC=no
12849 hardcode_libdir_flag_spec_FC=
12850 hardcode_libdir_flag_spec_ld_FC=
12851 hardcode_libdir_separator_FC=
12852 hardcode_minus_L_FC=no
12853 hardcode_shlibpath_var_FC=unsupported
12854 inherit_rpath_FC=no
12855 link_all_deplibs_FC=unknown
12856 module_cmds_FC=
12857 module_expsym_cmds_FC=
12858 old_archive_from_new_cmds_FC=
12859 old_archive_from_expsyms_cmds_FC=
12860 thread_safe_flag_spec_FC=
12861 whole_archive_flag_spec_FC=
12862 # include_expsyms should be a list of space-separated symbols to be *always*
12863 # included in the symbol list
12864 include_expsyms_FC=
12865 # exclude_expsyms can be an extended regexp of symbols to exclude
12866 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12867 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12868 # as well as any symbol that contains `d'.
6b4a97ed 12869 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1cf3d07d
SE
12870 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12871 # platforms (ab)use it in PIC code, but their linkers get confused if
12872 # the symbol is explicitly referenced. Since portable code cannot
12873 # rely on this symbol name, it's probably fine to never include it in
12874 # preloaded symbol tables.
6b4a97ed 12875 # Exclude shared library initialization/finalization symbols.
1cf3d07d
SE
12876 extract_expsyms_cmds=
12877
12878 case $host_os in
6b4a97ed 12879 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
12880 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12881 # When not using gcc, we currently assume that we are using
12882 # Microsoft Visual C++.
12883 if test "$GCC" != yes; then
12884 with_gnu_ld=no
12885 fi
12886 ;;
12887 interix*)
12888 # we just hope/assume this is gcc and not c89 (= MSVC++)
12889 with_gnu_ld=yes
12890 ;;
12891 openbsd*)
12892 with_gnu_ld=no
12893 ;;
12894 esac
12895
12896 ld_shlibs_FC=yes
43e02a8a
RW
12897
12898 # On some targets, GNU ld is compatible enough with the native linker
12899 # that we're better off using the native interface for both.
12900 lt_use_gnu_ld_interface=no
1cf3d07d 12901 if test "$with_gnu_ld" = yes; then
43e02a8a
RW
12902 case $host_os in
12903 aix*)
12904 # The AIX port of GNU ld has always aspired to compatibility
12905 # with the native linker. However, as the warning in the GNU ld
12906 # block says, versions before 2.19.5* couldn't really create working
12907 # shared libraries, regardless of the interface used.
12908 case `$LD -v 2>&1` in
12909 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12910 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12911 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12912 *)
12913 lt_use_gnu_ld_interface=yes
12914 ;;
12915 esac
12916 ;;
12917 *)
12918 lt_use_gnu_ld_interface=yes
12919 ;;
12920 esac
12921 fi
12922
12923 if test "$lt_use_gnu_ld_interface" = yes; then
1cf3d07d
SE
12924 # If archive_cmds runs LD, not CC, wlarc should be empty
12925 wlarc='${wl}'
12926
12927 # Set some defaults for GNU ld with shared library support. These
12928 # are reset later if shared libraries are not supported. Putting them
12929 # here allows them to be overridden if necessary.
12930 runpath_var=LD_RUN_PATH
12931 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12932 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
12933 # ancient GNU ld didn't support --whole-archive et. al.
12934 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12935 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12936 else
12937 whole_archive_flag_spec_FC=
12938 fi
12939 supports_anon_versioning=no
12940 case `$LD -v 2>&1` in
43e02a8a 12941 *GNU\ gold*) supports_anon_versioning=yes ;;
1cf3d07d
SE
12942 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12943 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12944 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12945 *\ 2.11.*) ;; # other 2.11 versions
12946 *) supports_anon_versioning=yes ;;
12947 esac
12948
12949 # See if GNU ld supports shared libraries.
12950 case $host_os in
d653fdfb 12951 aix[3-9]*)
1cf3d07d
SE
12952 # On AIX/PPC, the GNU linker is very broken
12953 if test "$host_cpu" != ia64; then
12954 ld_shlibs_FC=no
12955 cat <<_LT_EOF 1>&2
12956
43e02a8a 12957*** Warning: the GNU linker, at least up to release 2.19, is reported
1cf3d07d
SE
12958*** to be unable to reliably create shared libraries on AIX.
12959*** Therefore, libtool is disabling shared libraries support. If you
43e02a8a
RW
12960*** really care for shared libraries, you may want to install binutils
12961*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12962*** You will then need to restart the configuration process.
1cf3d07d
SE
12963
12964_LT_EOF
12965 fi
12966 ;;
12967
12968 amigaos*)
6b4a97ed
PG
12969 case $host_cpu in
12970 powerpc)
12971 # see comment about AmigaOS4 .so support
12972 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12973 archive_expsym_cmds_FC=''
12974 ;;
12975 m68k)
12976 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)'
12977 hardcode_libdir_flag_spec_FC='-L$libdir'
12978 hardcode_minus_L_FC=yes
12979 ;;
12980 esac
1cf3d07d
SE
12981 ;;
12982
12983 beos*)
12984 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12985 allow_undefined_flag_FC=unsupported
12986 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12987 # support --undefined. This deserves some investigation. FIXME
12988 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12989 else
12990 ld_shlibs_FC=no
12991 fi
12992 ;;
12993
6b4a97ed 12994 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
12995 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
12996 # as there is no search path for DLLs.
12997 hardcode_libdir_flag_spec_FC='-L$libdir'
43e02a8a 12998 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
1cf3d07d
SE
12999 allow_undefined_flag_FC=unsupported
13000 always_export_symbols_FC=no
13001 enable_shared_with_static_runtimes_FC=yes
13002 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13003
13004 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13005 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13006 # If the export-symbols file already is a .def file (1st line
13007 # is EXPORTS), use it as is; otherwise, prepend...
13008 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13009 cp $export_symbols $output_objdir/$soname.def;
13010 else
13011 echo EXPORTS > $output_objdir/$soname.def;
13012 cat $export_symbols >> $output_objdir/$soname.def;
13013 fi~
13014 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13015 else
13016 ld_shlibs_FC=no
13017 fi
13018 ;;
13019
43e02a8a
RW
13020 haiku*)
13021 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13022 link_all_deplibs_FC=yes
13023 ;;
13024
1cf3d07d
SE
13025 interix[3-9]*)
13026 hardcode_direct_FC=no
13027 hardcode_shlibpath_var_FC=no
13028 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13029 export_dynamic_flag_spec_FC='${wl}-E'
13030 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13031 # Instead, shared libraries are loaded at an image base (0x10000000 by
13032 # default) and relocated if they conflict, which is a slow very memory
13033 # consuming and fragmenting process. To avoid this, we pick a random,
13034 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13035 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13036 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'
13037 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'
13038 ;;
13039
7a9d3fe8 13040 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
13041 tmp_diet=no
13042 if test "$host_os" = linux-dietlibc; then
13043 case $cc_basename in
13044 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13045 esac
13046 fi
13047 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13048 && test "$tmp_diet" = no
13049 then
a699d672 13050 tmp_addflag=' $pic_flag'
6b4a97ed 13051 tmp_sharedflag='-shared'
1cf3d07d
SE
13052 case $cc_basename,$host_cpu in
13053 pgcc*) # Portland Group C compiler
43e02a8a 13054 whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
1cf3d07d
SE
13055 tmp_addflag=' $pic_flag'
13056 ;;
43e02a8a
RW
13057 pgf77* | pgf90* | pgf95* | pgfortran*)
13058 # Portland Group f77 and f90 compilers
13059 whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
1cf3d07d
SE
13060 tmp_addflag=' $pic_flag -Mnomain' ;;
13061 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13062 tmp_addflag=' -i_dynamic' ;;
13063 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13064 tmp_addflag=' -i_dynamic -nofor_main' ;;
13065 ifc* | ifort*) # Intel Fortran compiler
13066 tmp_addflag=' -nofor_main' ;;
6b4a97ed
PG
13067 lf95*) # Lahey Fortran 8.1
13068 whole_archive_flag_spec_FC=
13069 tmp_sharedflag='--shared' ;;
43e02a8a 13070 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
6b4a97ed
PG
13071 tmp_sharedflag='-qmkshrobj'
13072 tmp_addflag= ;;
43e02a8a
RW
13073 nvcc*) # Cuda Compiler Driver 2.2
13074 whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13075 compiler_needs_object_FC=yes
13076 ;;
1cf3d07d
SE
13077 esac
13078 case `$CC -V 2>&1 | sed 5q` in
13079 *Sun\ C*) # Sun C 5.9
43e02a8a 13080 whole_archive_flag_spec_FC='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
1cf3d07d
SE
13081 compiler_needs_object_FC=yes
13082 tmp_sharedflag='-G' ;;
13083 *Sun\ F*) # Sun Fortran 8.3
13084 tmp_sharedflag='-G' ;;
1cf3d07d
SE
13085 esac
13086 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13087
13088 if test "x$supports_anon_versioning" = xyes; then
13089 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
13090 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13091 echo "local: *; };" >> $output_objdir/$libname.ver~
13092 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13093 fi
6b4a97ed
PG
13094
13095 case $cc_basename in
43e02a8a 13096 xlf* | bgf* | bgxlf* | mpixlf*)
6b4a97ed
PG
13097 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13098 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
13099 hardcode_libdir_flag_spec_FC=
13100 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
13101 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13102 if test "x$supports_anon_versioning" = xyes; then
13103 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
13104 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13105 echo "local: *; };" >> $output_objdir/$libname.ver~
13106 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13107 fi
13108 ;;
13109 esac
1cf3d07d
SE
13110 else
13111 ld_shlibs_FC=no
13112 fi
13113 ;;
13114
13115 netbsd*)
13116 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13117 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13118 wlarc=
13119 else
13120 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13121 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13122 fi
13123 ;;
13124
13125 solaris*)
13126 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13127 ld_shlibs_FC=no
13128 cat <<_LT_EOF 1>&2
13129
13130*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13131*** create shared libraries on Solaris systems. Therefore, libtool
13132*** is disabling shared libraries support. We urge you to upgrade GNU
13133*** binutils to release 2.9.1 or newer. Another option is to modify
13134*** your PATH or compiler configuration so that the native linker is
13135*** used, and then restart.
13136
13137_LT_EOF
13138 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13139 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13140 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13141 else
13142 ld_shlibs_FC=no
13143 fi
13144 ;;
13145
13146 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13147 case `$LD -v 2>&1` in
13148 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13149 ld_shlibs_FC=no
13150 cat <<_LT_EOF 1>&2
13151
13152*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13153*** reliably create shared libraries on SCO systems. Therefore, libtool
13154*** is disabling shared libraries support. We urge you to upgrade GNU
13155*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13156*** your PATH or compiler configuration so that the native linker is
13157*** used, and then restart.
13158
13159_LT_EOF
13160 ;;
13161 *)
13162 # For security reasons, it is highly recommended that you always
13163 # use absolute paths for naming shared libraries, and exclude the
13164 # DT_RUNPATH tag from executables and libraries. But doing so
13165 # requires that you compile everything twice, which is a pain.
13166 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13167 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13168 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13169 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13170 else
13171 ld_shlibs_FC=no
13172 fi
13173 ;;
13174 esac
13175 ;;
13176
13177 sunos4*)
13178 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13179 wlarc=
13180 hardcode_direct_FC=yes
13181 hardcode_shlibpath_var_FC=no
13182 ;;
13183
13184 *)
13185 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13186 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13187 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13188 else
13189 ld_shlibs_FC=no
13190 fi
13191 ;;
13192 esac
13193
13194 if test "$ld_shlibs_FC" = no; then
13195 runpath_var=
13196 hardcode_libdir_flag_spec_FC=
13197 export_dynamic_flag_spec_FC=
13198 whole_archive_flag_spec_FC=
13199 fi
13200 else
13201 # PORTME fill in a description of your system's linker (not GNU ld)
13202 case $host_os in
13203 aix3*)
13204 allow_undefined_flag_FC=unsupported
13205 always_export_symbols_FC=yes
13206 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'
13207 # Note: this linker hardcodes the directories in LIBPATH if there
13208 # are no directories specified by -L.
13209 hardcode_minus_L_FC=yes
13210 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13211 # Neither direct hardcoding nor static linking is supported with a
13212 # broken collect2.
13213 hardcode_direct_FC=unsupported
13214 fi
13215 ;;
13216
d653fdfb 13217 aix[4-9]*)
1cf3d07d
SE
13218 if test "$host_cpu" = ia64; then
13219 # On IA64, the linker does run time linking by default, so we don't
13220 # have to do anything special.
13221 aix_use_runtimelinking=no
13222 exp_sym_flag='-Bexport'
13223 no_entry_flag=""
13224 else
13225 # If we're using GNU nm, then we don't want the "-C" option.
13226 # -C means demangle to AIX nm, but means don't demangle with GNU nm
43e02a8a
RW
13227 # Also, AIX nm treats weak defined symbols like other global
13228 # defined symbols, whereas GNU nm marks them as "W".
1cf3d07d 13229 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
43e02a8a 13230 export_symbols_cmds_FC='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
1cf3d07d 13231 else
3e0fb1a3 13232 export_symbols_cmds_FC='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
1cf3d07d
SE
13233 fi
13234 aix_use_runtimelinking=no
13235
13236 # Test if we are trying to use run time linking or normal
13237 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13238 # need to do runtime linking.
d653fdfb 13239 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1cf3d07d
SE
13240 for ld_flag in $LDFLAGS; do
13241 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13242 aix_use_runtimelinking=yes
13243 break
13244 fi
13245 done
13246 ;;
13247 esac
13248
13249 exp_sym_flag='-bexport'
13250 no_entry_flag='-bnoentry'
13251 fi
13252
13253 # When large executables or shared objects are built, AIX ld can
13254 # have problems creating the table of contents. If linking a library
13255 # or program results in "error TOC overflow" add -mminimal-toc to
13256 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13257 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13258
13259 archive_cmds_FC=''
13260 hardcode_direct_FC=yes
13261 hardcode_direct_absolute_FC=yes
13262 hardcode_libdir_separator_FC=':'
13263 link_all_deplibs_FC=yes
13264 file_list_spec_FC='${wl}-f,'
13265
13266 if test "$GCC" = yes; then
13267 case $host_os in aix4.[012]|aix4.[012].*)
13268 # We only want to do this on AIX 4.2 and lower, the check
13269 # below for broken collect2 doesn't work under 4.3+
13270 collect2name=`${CC} -print-prog-name=collect2`
13271 if test -f "$collect2name" &&
13272 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13273 then
13274 # We have reworked collect2
13275 :
13276 else
13277 # We have old collect2
13278 hardcode_direct_FC=unsupported
13279 # It fails to find uninstalled libraries when the uninstalled
13280 # path is not listed in the libpath. Setting hardcode_minus_L
13281 # to unsupported forces relinking
13282 hardcode_minus_L_FC=yes
13283 hardcode_libdir_flag_spec_FC='-L$libdir'
13284 hardcode_libdir_separator_FC=
13285 fi
13286 ;;
13287 esac
13288 shared_flag='-shared'
13289 if test "$aix_use_runtimelinking" = yes; then
13290 shared_flag="$shared_flag "'${wl}-G'
13291 fi
13292 else
13293 # not using gcc
13294 if test "$host_cpu" = ia64; then
13295 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13296 # chokes on -Wl,-G. The following line is correct:
13297 shared_flag='-G'
13298 else
13299 if test "$aix_use_runtimelinking" = yes; then
13300 shared_flag='${wl}-G'
13301 else
13302 shared_flag='${wl}-bM:SRE'
13303 fi
13304 fi
13305 fi
13306
6b4a97ed 13307 export_dynamic_flag_spec_FC='${wl}-bexpall'
1cf3d07d
SE
13308 # It seems that -bexpall does not export symbols beginning with
13309 # underscore (_), so it is better to generate a list of symbols to export.
13310 always_export_symbols_FC=yes
13311 if test "$aix_use_runtimelinking" = yes; then
13312 # Warning - without using the other runtime loading flags (-brtl),
13313 # -berok will link without error, but may produce a broken library.
13314 allow_undefined_flag_FC='-berok'
13315 # Determine the default libpath from the value encoded in an
13316 # empty executable.
5213506e 13317 cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
13318 program main
13319
13320 end
13321_ACEOF
5213506e 13322if ac_fn_fc_try_link "$LINENO"; then :
1cf3d07d
SE
13323
13324lt_aix_libpath_sed='
13325 /Import File Strings/,/^$/ {
13326 /^0/ {
13327 s/^0 *\(.*\)$/\1/
13328 p
13329 }
13330 }'
13331aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13332# Check for a 64-bit object if we didn't find anything.
13333if test -z "$aix_libpath"; then
13334 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13335fi
1cf3d07d 13336fi
5213506e
RW
13337rm -f core conftest.err conftest.$ac_objext \
13338 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
13339if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13340
13341 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
43e02a8a 13342 archive_expsym_cmds_FC='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
1cf3d07d
SE
13343 else
13344 if test "$host_cpu" = ia64; then
13345 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
13346 allow_undefined_flag_FC="-z nodefs"
13347 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"
13348 else
13349 # Determine the default libpath from the value encoded in an
13350 # empty executable.
5213506e 13351 cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
13352 program main
13353
13354 end
13355_ACEOF
5213506e 13356if ac_fn_fc_try_link "$LINENO"; then :
1cf3d07d
SE
13357
13358lt_aix_libpath_sed='
13359 /Import File Strings/,/^$/ {
13360 /^0/ {
13361 s/^0 *\(.*\)$/\1/
13362 p
13363 }
13364 }'
13365aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13366# Check for a 64-bit object if we didn't find anything.
13367if test -z "$aix_libpath"; then
13368 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13369fi
1cf3d07d 13370fi
5213506e
RW
13371rm -f core conftest.err conftest.$ac_objext \
13372 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
13373if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13374
13375 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13376 # Warning - without using the other run time loading flags,
13377 # -berok will link without error, but may produce a broken library.
13378 no_undefined_flag_FC=' ${wl}-bernotok'
13379 allow_undefined_flag_FC=' ${wl}-berok'
43e02a8a
RW
13380 if test "$with_gnu_ld" = yes; then
13381 # We only use this code for GNU lds that support --whole-archive.
13382 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13383 else
13384 # Exported symbols can be pulled into shared objects from archives
13385 whole_archive_flag_spec_FC='$convenience'
13386 fi
1cf3d07d
SE
13387 archive_cmds_need_lc_FC=yes
13388 # This is similar to how AIX traditionally builds its shared libraries.
13389 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'
13390 fi
13391 fi
953ff289 13392 ;;
1cf3d07d
SE
13393
13394 amigaos*)
6b4a97ed
PG
13395 case $host_cpu in
13396 powerpc)
13397 # see comment about AmigaOS4 .so support
13398 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13399 archive_expsym_cmds_FC=''
13400 ;;
13401 m68k)
13402 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)'
13403 hardcode_libdir_flag_spec_FC='-L$libdir'
13404 hardcode_minus_L_FC=yes
13405 ;;
13406 esac
953ff289 13407 ;;
1cf3d07d
SE
13408
13409 bsdi[45]*)
13410 export_dynamic_flag_spec_FC=-rdynamic
953ff289 13411 ;;
1cf3d07d 13412
6b4a97ed 13413 cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
13414 # When not using gcc, we currently assume that we are using
13415 # Microsoft Visual C++.
13416 # hardcode_libdir_flag_spec is actually meaningless, as there is
13417 # no search path for DLLs.
13418 hardcode_libdir_flag_spec_FC=' '
13419 allow_undefined_flag_FC=unsupported
13420 # Tell ltmain to make .lib files, not .a files.
13421 libext=lib
13422 # Tell ltmain to make .dll files, not .so files.
13423 shrext_cmds=".dll"
13424 # FIXME: Setting linknames here is a bad hack.
43e02a8a 13425 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
1cf3d07d
SE
13426 # The linker will automatically build a .lib file if we build a DLL.
13427 old_archive_from_new_cmds_FC='true'
13428 # FIXME: Should let the user specify the lib program.
13429 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
13430 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
13431 enable_shared_with_static_runtimes_FC=yes
953ff289 13432 ;;
1cf3d07d
SE
13433
13434 darwin* | rhapsody*)
1cf3d07d 13435
6b4a97ed
PG
13436
13437 archive_cmds_need_lc_FC=no
13438 hardcode_direct_FC=no
13439 hardcode_automatic_FC=yes
13440 hardcode_shlibpath_var_FC=unsupported
43e02a8a
RW
13441 if test "$lt_cv_ld_force_load" = "yes"; then
13442 whole_archive_flag_spec_FC='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13443 else
13444 whole_archive_flag_spec_FC=''
13445 fi
6b4a97ed
PG
13446 link_all_deplibs_FC=yes
13447 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
13448 case $cc_basename in
13449 ifort*) _lt_dar_can_shared=yes ;;
13450 *) _lt_dar_can_shared=$GCC ;;
13451 esac
13452 if test "$_lt_dar_can_shared" = "yes"; then
43e02a8a 13453 output_verbose_link_cmd=func_echo_all
6b4a97ed
PG
13454 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}"
13455 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13456 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}"
13457 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}"
13458
13459 else
13460 ld_shlibs_FC=no
13461 fi
13462
953ff289 13463 ;;
1cf3d07d
SE
13464
13465 dgux*)
13466 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13467 hardcode_libdir_flag_spec_FC='-L$libdir'
13468 hardcode_shlibpath_var_FC=no
953ff289 13469 ;;
953ff289 13470
1cf3d07d
SE
13471 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13472 # support. Future versions do this automatically, but an explicit c++rt0.o
13473 # does not break anything, and helps significantly (at the cost of a little
13474 # extra space).
13475 freebsd2.2*)
13476 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13477 hardcode_libdir_flag_spec_FC='-R$libdir'
13478 hardcode_direct_FC=yes
13479 hardcode_shlibpath_var_FC=no
953ff289 13480 ;;
953ff289 13481
1cf3d07d 13482 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
c6084f68 13483 freebsd2.*)
1cf3d07d
SE
13484 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13485 hardcode_direct_FC=yes
13486 hardcode_minus_L_FC=yes
13487 hardcode_shlibpath_var_FC=no
13488 ;;
13489
13490 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13491 freebsd* | dragonfly*)
13492 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13493 hardcode_libdir_flag_spec_FC='-R$libdir'
13494 hardcode_direct_FC=yes
13495 hardcode_shlibpath_var_FC=no
13496 ;;
13497
13498 hpux9*)
13499 if test "$GCC" = yes; then
13500 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'
13501 else
13502 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'
13503 fi
13504 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13505 hardcode_libdir_separator_FC=:
13506 hardcode_direct_FC=yes
13507
13508 # hardcode_minus_L: Not really in the search PATH,
13509 # but as the default location of the library.
13510 hardcode_minus_L_FC=yes
13511 export_dynamic_flag_spec_FC='${wl}-E'
13512 ;;
13513
13514 hpux10*)
43e02a8a 13515 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1cf3d07d
SE
13516 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13517 else
13518 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13519 fi
13520 if test "$with_gnu_ld" = no; then
13521 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13522 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
13523 hardcode_libdir_separator_FC=:
13524 hardcode_direct_FC=yes
13525 hardcode_direct_absolute_FC=yes
13526 export_dynamic_flag_spec_FC='${wl}-E'
13527 # hardcode_minus_L: Not really in the search PATH,
13528 # but as the default location of the library.
13529 hardcode_minus_L_FC=yes
13530 fi
13531 ;;
13532
13533 hpux11*)
43e02a8a 13534 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
1cf3d07d
SE
13535 case $host_cpu in
13536 hppa*64*)
13537 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13538 ;;
13539 ia64*)
6b4a97ed 13540 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
13541 ;;
13542 *)
13543 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13544 ;;
13545 esac
13546 else
13547 case $host_cpu in
13548 hppa*64*)
13549 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13550 ;;
13551 ia64*)
13552 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13553 ;;
13554 *)
43e02a8a 13555 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1cf3d07d
SE
13556 ;;
13557 esac
13558 fi
13559 if test "$with_gnu_ld" = no; then
13560 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13561 hardcode_libdir_separator_FC=:
13562
13563 case $host_cpu in
13564 hppa*64*|ia64*)
13565 hardcode_direct_FC=no
13566 hardcode_shlibpath_var_FC=no
13567 ;;
13568 *)
13569 hardcode_direct_FC=yes
13570 hardcode_direct_absolute_FC=yes
13571 export_dynamic_flag_spec_FC='${wl}-E'
13572
13573 # hardcode_minus_L: Not really in the search PATH,
13574 # but as the default location of the library.
13575 hardcode_minus_L_FC=yes
13576 ;;
13577 esac
13578 fi
13579 ;;
13580
13581 irix5* | irix6* | nonstopux*)
13582 if test "$GCC" = yes; then
43e02a8a 13583 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1cf3d07d
SE
13584 # Try to use the -exported_symbol ld option, if it does not
13585 # work, assume that -exports_file does not work either and
13586 # implicitly export all symbols.
13587 save_LDFLAGS="$LDFLAGS"
13588 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5213506e 13589 cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
13590int foo(void) {}
13591_ACEOF
5213506e 13592if ac_fn_fc_try_link "$LINENO"; then :
43e02a8a 13593 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
1cf3d07d 13594
1cf3d07d 13595fi
5213506e
RW
13596rm -f core conftest.err conftest.$ac_objext \
13597 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
13598 LDFLAGS="$save_LDFLAGS"
13599 else
43e02a8a
RW
13600 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13601 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
1cf3d07d
SE
13602 fi
13603 archive_cmds_need_lc_FC='no'
13604 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13605 hardcode_libdir_separator_FC=:
13606 inherit_rpath_FC=yes
13607 link_all_deplibs_FC=yes
13608 ;;
13609
13610 netbsd*)
13611 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13612 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13613 else
13614 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13615 fi
13616 hardcode_libdir_flag_spec_FC='-R$libdir'
13617 hardcode_direct_FC=yes
13618 hardcode_shlibpath_var_FC=no
13619 ;;
13620
13621 newsos6)
13622 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13623 hardcode_direct_FC=yes
13624 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13625 hardcode_libdir_separator_FC=:
13626 hardcode_shlibpath_var_FC=no
13627 ;;
13628
13629 *nto* | *qnx*)
13630 ;;
13631
13632 openbsd*)
6b4a97ed
PG
13633 if test -f /usr/libexec/ld.so; then
13634 hardcode_direct_FC=yes
13635 hardcode_shlibpath_var_FC=no
13636 hardcode_direct_absolute_FC=yes
13637 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1cf3d07d 13638 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6b4a97ed 13639 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
1cf3d07d 13640 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
6b4a97ed
PG
13641 export_dynamic_flag_spec_FC='${wl}-E'
13642 else
13643 case $host_os in
13644 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13645 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13646 hardcode_libdir_flag_spec_FC='-R$libdir'
13647 ;;
13648 *)
13649 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13650 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13651 ;;
13652 esac
13653 fi
13654 else
13655 ld_shlibs_FC=no
1cf3d07d
SE
13656 fi
13657 ;;
13658
13659 os2*)
13660 hardcode_libdir_flag_spec_FC='-L$libdir'
13661 hardcode_minus_L_FC=yes
13662 allow_undefined_flag_FC=unsupported
43e02a8a 13663 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'
1cf3d07d
SE
13664 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13665 ;;
13666
13667 osf3*)
13668 if test "$GCC" = yes; then
13669 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 13670 archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1cf3d07d
SE
13671 else
13672 allow_undefined_flag_FC=' -expect_unresolved \*'
43e02a8a 13673 archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
1cf3d07d
SE
13674 fi
13675 archive_cmds_need_lc_FC='no'
13676 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13677 hardcode_libdir_separator_FC=:
13678 ;;
13679
13680 osf4* | osf5*) # as osf3* with the addition of -msym flag
13681 if test "$GCC" = yes; then
13682 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 13683 archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1cf3d07d
SE
13684 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13685 else
13686 allow_undefined_flag_FC=' -expect_unresolved \*'
43e02a8a 13687 archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
1cf3d07d 13688 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~
43e02a8a 13689 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
1cf3d07d
SE
13690
13691 # Both c and cxx compiler support -rpath directly
13692 hardcode_libdir_flag_spec_FC='-rpath $libdir'
13693 fi
13694 archive_cmds_need_lc_FC='no'
13695 hardcode_libdir_separator_FC=:
13696 ;;
13697
13698 solaris*)
13699 no_undefined_flag_FC=' -z defs'
13700 if test "$GCC" = yes; then
13701 wlarc='${wl}'
13702 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13703 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13704 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13705 else
13706 case `$CC -V 2>&1` in
13707 *"Compilers 5.0"*)
13708 wlarc=''
13709 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13710 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13711 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13712 ;;
13713 *)
13714 wlarc='${wl}'
13715 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13716 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13717 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13718 ;;
13719 esac
13720 fi
13721 hardcode_libdir_flag_spec_FC='-R$libdir'
13722 hardcode_shlibpath_var_FC=no
13723 case $host_os in
13724 solaris2.[0-5] | solaris2.[0-5].*) ;;
13725 *)
13726 # The compiler driver will combine and reorder linker options,
13727 # but understands `-z linker_flag'. GCC discards it without `$wl',
13728 # but is careful enough not to reorder.
13729 # Supported since Solaris 2.6 (maybe 2.5.1?)
13730 if test "$GCC" = yes; then
13731 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13732 else
13733 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
13734 fi
13735 ;;
13736 esac
13737 link_all_deplibs_FC=yes
13738 ;;
13739
13740 sunos4*)
13741 if test "x$host_vendor" = xsequent; then
13742 # Use $CC to link under sequent, because it throws in some extra .o
13743 # files that make .init and .fini sections work.
13744 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13745 else
13746 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13747 fi
13748 hardcode_libdir_flag_spec_FC='-L$libdir'
13749 hardcode_direct_FC=yes
13750 hardcode_minus_L_FC=yes
13751 hardcode_shlibpath_var_FC=no
13752 ;;
13753
13754 sysv4)
13755 case $host_vendor in
13756 sni)
13757 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13758 hardcode_direct_FC=yes # is this really true???
13759 ;;
13760 siemens)
13761 ## LD is ld it makes a PLAMLIB
13762 ## CC just makes a GrossModule.
13763 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13764 reload_cmds_FC='$CC -r -o $output$reload_objs'
13765 hardcode_direct_FC=no
13766 ;;
13767 motorola)
13768 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13769 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
13770 ;;
953ff289 13771 esac
1cf3d07d
SE
13772 runpath_var='LD_RUN_PATH'
13773 hardcode_shlibpath_var_FC=no
13774 ;;
13775
13776 sysv4.3*)
13777 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13778 hardcode_shlibpath_var_FC=no
13779 export_dynamic_flag_spec_FC='-Bexport'
13780 ;;
13781
13782 sysv4*MP*)
13783 if test -d /usr/nec; then
13784 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13785 hardcode_shlibpath_var_FC=no
13786 runpath_var=LD_RUN_PATH
13787 hardcode_runpath_var=yes
13788 ld_shlibs_FC=yes
13789 fi
13790 ;;
13791
13792 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13793 no_undefined_flag_FC='${wl}-z,text'
13794 archive_cmds_need_lc_FC=no
13795 hardcode_shlibpath_var_FC=no
13796 runpath_var='LD_RUN_PATH'
13797
13798 if test "$GCC" = yes; then
13799 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13800 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13801 else
13802 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13803 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13804 fi
13805 ;;
13806
13807 sysv5* | sco3.2v5* | sco5v6*)
13808 # Note: We can NOT use -z defs as we might desire, because we do not
13809 # link with -lc, and that would cause any symbols used from libc to
13810 # always be unresolved, which means just about no library would
13811 # ever link correctly. If we're not using GNU ld we use -z text
13812 # though, which does catch some bad symbols but isn't as heavy-handed
13813 # as -z defs.
13814 no_undefined_flag_FC='${wl}-z,text'
13815 allow_undefined_flag_FC='${wl}-z,nodefs'
13816 archive_cmds_need_lc_FC=no
13817 hardcode_shlibpath_var_FC=no
13818 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
13819 hardcode_libdir_separator_FC=':'
13820 link_all_deplibs_FC=yes
13821 export_dynamic_flag_spec_FC='${wl}-Bexport'
13822 runpath_var='LD_RUN_PATH'
13823
13824 if test "$GCC" = yes; then
13825 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13826 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13827 else
13828 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13829 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13830 fi
13831 ;;
13832
13833 uts4*)
13834 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13835 hardcode_libdir_flag_spec_FC='-L$libdir'
13836 hardcode_shlibpath_var_FC=no
13837 ;;
13838
13839 *)
13840 ld_shlibs_FC=no
953ff289 13841 ;;
1cf3d07d
SE
13842 esac
13843
13844 if test x$host_vendor = xsni; then
953ff289 13845 case $host in
1cf3d07d
SE
13846 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13847 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
13848 ;;
953ff289 13849 esac
1cf3d07d 13850 fi
953ff289 13851 fi
953ff289 13852
5213506e
RW
13853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
13854$as_echo "$ld_shlibs_FC" >&6; }
1cf3d07d 13855test "$ld_shlibs_FC" = no && can_build_shared=no
953ff289 13856
1cf3d07d 13857with_gnu_ld_FC=$with_gnu_ld
953ff289 13858
953ff289 13859
953ff289 13860
953ff289 13861
1cf3d07d
SE
13862
13863
13864#
13865# Do we need to explicitly link libc?
13866#
13867case "x$archive_cmds_need_lc_FC" in
13868x|xyes)
13869 # Assume -lc should be added
13870 archive_cmds_need_lc_FC=yes
13871
13872 if test "$enable_shared" = yes && test "$GCC" = yes; then
13873 case $archive_cmds_FC in
13874 *'~'*)
13875 # FIXME: we may have to deal with multi-command sequences.
13876 ;;
13877 '$CC '*)
13878 # Test whether the compiler implicitly links with -lc since on some
13879 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13880 # to ld, don't add -lc before -lgcc.
5213506e
RW
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13882$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22e05272 13883if ${lt_cv_archive_cmds_need_lc_FC+:} false; then :
5213506e 13884 $as_echo_n "(cached) " >&6
baafc534
RW
13885else
13886 $RM conftest*
13887 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1cf3d07d 13888
5213506e 13889 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1cf3d07d 13890 (eval $ac_compile) 2>&5
953ff289 13891 ac_status=$?
5213506e
RW
13892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13893 test $ac_status = 0; } 2>conftest.err; then
baafc534
RW
13894 soname=conftest
13895 lib=conftest
13896 libobjs=conftest.$ac_objext
13897 deplibs=
13898 wl=$lt_prog_compiler_wl_FC
13899 pic_flag=$lt_prog_compiler_pic_FC
13900 compiler_flags=-v
13901 linker_flags=-v
13902 verstring=
13903 output_objdir=.
13904 libname=conftest
13905 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
13906 allow_undefined_flag_FC=
5213506e 13907 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1cf3d07d 13908 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
953ff289 13909 ac_status=$?
5213506e
RW
13910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13911 test $ac_status = 0; }
baafc534
RW
13912 then
13913 lt_cv_archive_cmds_need_lc_FC=no
13914 else
13915 lt_cv_archive_cmds_need_lc_FC=yes
13916 fi
13917 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
13918 else
13919 cat conftest.err 1>&5
13920 fi
13921 $RM conftest*
13922
13923fi
5213506e
RW
13924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
13925$as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
baafc534 13926 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
1cf3d07d
SE
13927 ;;
13928 esac
953ff289
DN
13929 fi
13930 ;;
1cf3d07d
SE
13931esac
13932
953ff289
DN
13933
13934
953ff289
DN
13935
13936
953ff289 13937
953ff289 13938
953ff289 13939
953ff289 13940
953ff289
DN
13941
13942
953ff289 13943
953ff289 13944
953ff289
DN
13945
13946
13947
13948
13949
13950
13951
13952
13953
c41303c6
RH
13954
13955
c41303c6 13956
c41303c6
RH
13957
13958
13959
953ff289 13960
953ff289 13961
953ff289 13962
953ff289 13963
953ff289 13964
953ff289
DN
13965
13966
953ff289 13967
953ff289 13968
953ff289 13969
953ff289 13970
953ff289 13971
953ff289 13972
953ff289 13973
1cf3d07d
SE
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
5213506e
RW
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13997$as_echo_n "checking dynamic linker characteristics... " >&6; }
6b4a97ed 13998
1cf3d07d
SE
13999library_names_spec=
14000libname_spec='lib$name'
14001soname_spec=
14002shrext_cmds=".so"
14003postinstall_cmds=
14004postuninstall_cmds=
14005finish_cmds=
14006finish_eval=
14007shlibpath_var=
14008shlibpath_overrides_runpath=unknown
14009version_type=none
14010dynamic_linker="$host_os ld.so"
14011sys_lib_dlsearch_path_spec="/lib /usr/lib"
14012need_lib_prefix=unknown
14013hardcode_into_libs=no
14014
14015# when you set need_version to no, make sure it does not cause -set_version
14016# flags to be left without arguments
14017need_version=unknown
14018
14019case $host_os in
14020aix3*)
14021 version_type=linux
14022 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14023 shlibpath_var=LIBPATH
14024
14025 # AIX 3 has no versioning support, so we append a major version to the name.
14026 soname_spec='${libname}${release}${shared_ext}$major'
14027 ;;
14028
d653fdfb 14029aix[4-9]*)
1cf3d07d
SE
14030 version_type=linux
14031 need_lib_prefix=no
14032 need_version=no
14033 hardcode_into_libs=yes
14034 if test "$host_cpu" = ia64; then
14035 # AIX 5 supports IA64
14036 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14037 shlibpath_var=LD_LIBRARY_PATH
953ff289 14038 else
1cf3d07d
SE
14039 # With GCC up to 2.95.x, collect2 would create an import file
14040 # for dependence libraries. The import file would start with
14041 # the line `#! .'. This would cause the generated library to
14042 # depend on `.', always an invalid library. This was fixed in
14043 # development snapshots of GCC prior to 3.0.
14044 case $host_os in
14045 aix4 | aix4.[01] | aix4.[01].*)
14046 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14047 echo ' yes '
14048 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14049 :
14050 else
14051 can_build_shared=no
14052 fi
14053 ;;
14054 esac
14055 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14056 # soname into executable. Probably we can add versioning support to
14057 # collect2, so additional links can be useful in future.
14058 if test "$aix_use_runtimelinking" = yes; then
14059 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14060 # instead of lib<name>.a to let people know that these are not
14061 # typical AIX shared libraries.
14062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14063 else
14064 # We preserve .a as extension for shared libraries through AIX4.2
14065 # and later when we are not doing run time linking.
14066 library_names_spec='${libname}${release}.a $libname.a'
14067 soname_spec='${libname}${release}${shared_ext}$major'
14068 fi
14069 shlibpath_var=LIBPATH
953ff289 14070 fi
1cf3d07d
SE
14071 ;;
14072
14073amigaos*)
6b4a97ed
PG
14074 case $host_cpu in
14075 powerpc)
14076 # Since July 2007 AmigaOS4 officially supports .so libraries.
14077 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14079 ;;
14080 m68k)
1cf3d07d
SE
14081 library_names_spec='$libname.ixlibrary $libname.a'
14082 # Create ${libname}_ixlibrary.a entries in /sys/libs.
43e02a8a 14083 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
6b4a97ed
PG
14084 ;;
14085 esac
1cf3d07d 14086 ;;
953ff289 14087
1cf3d07d
SE
14088beos*)
14089 library_names_spec='${libname}${shared_ext}'
14090 dynamic_linker="$host_os ld.so"
14091 shlibpath_var=LIBRARY_PATH
14092 ;;
953ff289 14093
1cf3d07d
SE
14094bsdi[45]*)
14095 version_type=linux
14096 need_version=no
14097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14098 soname_spec='${libname}${release}${shared_ext}$major'
14099 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14100 shlibpath_var=LD_LIBRARY_PATH
14101 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14102 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14103 # the default ld.so.conf also contains /usr/contrib/lib and
14104 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14105 # libtool to hard-code these into programs
14106 ;;
953ff289 14107
6b4a97ed 14108cygwin* | mingw* | pw32* | cegcc*)
1cf3d07d
SE
14109 version_type=windows
14110 shrext_cmds=".dll"
14111 need_version=no
14112 need_lib_prefix=no
14113
6b4a97ed
PG
14114 case $GCC,$host_os in
14115 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
1cf3d07d
SE
14116 library_names_spec='$libname.dll.a'
14117 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14118 postinstall_cmds='base_file=`basename \${file}`~
14119 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14120 dldir=$destdir/`dirname \$dlpath`~
14121 test -d \$dldir || mkdir -p \$dldir~
14122 $install_prog $dir/$dlname \$dldir/$dlname~
14123 chmod a+x \$dldir/$dlname~
14124 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14125 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14126 fi'
14127 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14128 dlpath=$dir/\$dldll~
14129 $RM \$dlpath'
14130 shlibpath_overrides_runpath=yes
14131
14132 case $host_os in
14133 cygwin*)
14134 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14135 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
43e02a8a 14136
1cf3d07d 14137 ;;
6b4a97ed 14138 mingw* | cegcc*)
1cf3d07d
SE
14139 # MinGW DLLs use traditional 'lib' prefix
14140 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1cf3d07d
SE
14141 ;;
14142 pw32*)
14143 # pw32 DLLs use 'pw' prefix rather than 'lib'
14144 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14145 ;;
14146 esac
14147 ;;
953ff289 14148
1cf3d07d
SE
14149 *)
14150 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14151 ;;
14152 esac
14153 dynamic_linker='Win32 ld.exe'
14154 # FIXME: first we should search . and the directory the executable is in
14155 shlibpath_var=PATH
14156 ;;
953ff289 14157
1cf3d07d
SE
14158darwin* | rhapsody*)
14159 dynamic_linker="$host_os dyld"
14160 version_type=darwin
14161 need_lib_prefix=no
14162 need_version=no
14163 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14164 soname_spec='${libname}${release}${major}$shared_ext'
14165 shlibpath_overrides_runpath=yes
14166 shlibpath_var=DYLD_LIBRARY_PATH
14167 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14168
14169 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14170 ;;
14171
14172dgux*)
14173 version_type=linux
14174 need_lib_prefix=no
14175 need_version=no
14176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14177 soname_spec='${libname}${release}${shared_ext}$major'
14178 shlibpath_var=LD_LIBRARY_PATH
14179 ;;
14180
1cf3d07d
SE
14181freebsd* | dragonfly*)
14182 # DragonFly does not have aout. When/if they implement a new
14183 # versioning mechanism, adjust this.
14184 if test -x /usr/bin/objformat; then
14185 objformat=`/usr/bin/objformat`
953ff289 14186 else
1cf3d07d 14187 case $host_os in
c6084f68 14188 freebsd[23].*) objformat=aout ;;
1cf3d07d
SE
14189 *) objformat=elf ;;
14190 esac
953ff289 14191 fi
1cf3d07d
SE
14192 version_type=freebsd-$objformat
14193 case $version_type in
14194 freebsd-elf*)
14195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14196 need_version=no
14197 need_lib_prefix=no
14198 ;;
14199 freebsd-*)
14200 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14201 need_version=yes
14202 ;;
14203 esac
14204 shlibpath_var=LD_LIBRARY_PATH
14205 case $host_os in
c6084f68 14206 freebsd2.*)
1cf3d07d
SE
14207 shlibpath_overrides_runpath=yes
14208 ;;
14209 freebsd3.[01]* | freebsdelf3.[01]*)
14210 shlibpath_overrides_runpath=yes
14211 hardcode_into_libs=yes
14212 ;;
14213 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14214 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14215 shlibpath_overrides_runpath=no
14216 hardcode_into_libs=yes
14217 ;;
14218 *) # from 4.6 on, and DragonFly
14219 shlibpath_overrides_runpath=yes
14220 hardcode_into_libs=yes
14221 ;;
14222 esac
14223 ;;
953ff289 14224
1cf3d07d
SE
14225gnu*)
14226 version_type=linux
14227 need_lib_prefix=no
14228 need_version=no
14229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14230 soname_spec='${libname}${release}${shared_ext}$major'
14231 shlibpath_var=LD_LIBRARY_PATH
14232 hardcode_into_libs=yes
14233 ;;
953ff289 14234
43e02a8a
RW
14235haiku*)
14236 version_type=linux
14237 need_lib_prefix=no
14238 need_version=no
14239 dynamic_linker="$host_os runtime_loader"
14240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14241 soname_spec='${libname}${release}${shared_ext}$major'
14242 shlibpath_var=LIBRARY_PATH
14243 shlibpath_overrides_runpath=yes
14244 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14245 hardcode_into_libs=yes
14246 ;;
14247
1cf3d07d
SE
14248hpux9* | hpux10* | hpux11*)
14249 # Give a soname corresponding to the major version so that dld.sl refuses to
14250 # link against other versions.
14251 version_type=sunos
14252 need_lib_prefix=no
14253 need_version=no
14254 case $host_cpu in
14255 ia64*)
14256 shrext_cmds='.so'
14257 hardcode_into_libs=yes
14258 dynamic_linker="$host_os dld.so"
14259 shlibpath_var=LD_LIBRARY_PATH
14260 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14262 soname_spec='${libname}${release}${shared_ext}$major'
14263 if test "X$HPUX_IA64_MODE" = X32; then
14264 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14265 else
14266 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14267 fi
14268 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14269 ;;
14270 hppa*64*)
14271 shrext_cmds='.sl'
14272 hardcode_into_libs=yes
14273 dynamic_linker="$host_os dld.sl"
14274 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14275 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14277 soname_spec='${libname}${release}${shared_ext}$major'
14278 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14279 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14280 ;;
14281 *)
14282 shrext_cmds='.sl'
14283 dynamic_linker="$host_os dld.sl"
14284 shlibpath_var=SHLIB_PATH
14285 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14287 soname_spec='${libname}${release}${shared_ext}$major'
14288 ;;
14289 esac
43e02a8a 14290 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
1cf3d07d 14291 postinstall_cmds='chmod 555 $lib'
43e02a8a
RW
14292 # or fails outright, so override atomically:
14293 install_override_mode=555
1cf3d07d
SE
14294 ;;
14295
14296interix[3-9]*)
14297 version_type=linux
14298 need_lib_prefix=no
14299 need_version=no
14300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14301 soname_spec='${libname}${release}${shared_ext}$major'
14302 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14303 shlibpath_var=LD_LIBRARY_PATH
14304 shlibpath_overrides_runpath=no
14305 hardcode_into_libs=yes
14306 ;;
14307
14308irix5* | irix6* | nonstopux*)
14309 case $host_os in
14310 nonstopux*) version_type=nonstopux ;;
14311 *)
14312 if test "$lt_cv_prog_gnu_ld" = yes; then
14313 version_type=linux
14314 else
14315 version_type=irix
14316 fi ;;
14317 esac
14318 need_lib_prefix=no
14319 need_version=no
14320 soname_spec='${libname}${release}${shared_ext}$major'
14321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14322 case $host_os in
14323 irix5* | nonstopux*)
14324 libsuff= shlibsuff=
14325 ;;
14326 *)
14327 case $LD in # libtool.m4 will add one of these switches to LD
14328 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14329 libsuff= shlibsuff= libmagic=32-bit;;
14330 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14331 libsuff=32 shlibsuff=N32 libmagic=N32;;
14332 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14333 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14334 *) libsuff= shlibsuff= libmagic=never-match;;
14335 esac
14336 ;;
14337 esac
14338 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14339 shlibpath_overrides_runpath=no
14340 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14341 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14342 hardcode_into_libs=yes
14343 ;;
14344
14345# No shared lib support for Linux oldld, aout, or coff.
14346linux*oldld* | linux*aout* | linux*coff*)
14347 dynamic_linker=no
14348 ;;
14349
14350# This must be Linux ELF.
7a9d3fe8 14351linux* | k*bsd*-gnu | kopensolaris*-gnu)
1cf3d07d
SE
14352 version_type=linux
14353 need_lib_prefix=no
14354 need_version=no
14355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14356 soname_spec='${libname}${release}${shared_ext}$major'
14357 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14358 shlibpath_var=LD_LIBRARY_PATH
14359 shlibpath_overrides_runpath=no
baafc534 14360
1cf3d07d 14361 # Some binutils ld are patched to set DT_RUNPATH
22e05272 14362 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
5213506e 14363 $as_echo_n "(cached) " >&6
baafc534
RW
14364else
14365 lt_cv_shlibpath_overrides_runpath=no
14366 save_LDFLAGS=$LDFLAGS
14367 save_libdir=$libdir
14368 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
14369 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
5213506e 14370 cat > conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
14371 program main
14372
14373 end
953ff289 14374_ACEOF
5213506e
RW
14375if ac_fn_fc_try_link "$LINENO"; then :
14376 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
baafc534 14377 lt_cv_shlibpath_overrides_runpath=yes
953ff289 14378fi
953ff289 14379fi
5213506e
RW
14380rm -f core conftest.err conftest.$ac_objext \
14381 conftest$ac_exeext conftest.$ac_ext
baafc534
RW
14382 LDFLAGS=$save_LDFLAGS
14383 libdir=$save_libdir
14384
14385fi
14386
14387 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
1cf3d07d
SE
14388
14389 # This implies no fast_install, which is unacceptable.
14390 # Some rework will be needed to allow for fast_install
14391 # before this can be enabled.
14392 hardcode_into_libs=yes
14393
14394 # Append ld.so.conf contents to the search path
14395 if test -f /etc/ld.so.conf; then
43e02a8a 14396 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
1cf3d07d
SE
14397 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14398 fi
953ff289 14399
1cf3d07d
SE
14400 # We used to test for /lib/ld.so.1 and disable shared libraries on
14401 # powerpc, because MkLinux only supported shared libraries with the
14402 # GNU dynamic linker. Since this was broken with cross compilers,
14403 # most powerpc-linux boxes support dynamic linking these days and
14404 # people can always --disable-shared, the test was removed, and we
14405 # assume the GNU/Linux dynamic linker is in use.
14406 dynamic_linker='GNU/Linux ld.so'
14407 ;;
953ff289 14408
1cf3d07d
SE
14409netbsd*)
14410 version_type=sunos
14411 need_lib_prefix=no
14412 need_version=no
14413 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14415 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14416 dynamic_linker='NetBSD (a.out) ld.so'
14417 else
14418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14419 soname_spec='${libname}${release}${shared_ext}$major'
14420 dynamic_linker='NetBSD ld.elf_so'
14421 fi
14422 shlibpath_var=LD_LIBRARY_PATH
14423 shlibpath_overrides_runpath=yes
14424 hardcode_into_libs=yes
14425 ;;
953ff289 14426
1cf3d07d
SE
14427newsos6)
14428 version_type=linux
14429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14430 shlibpath_var=LD_LIBRARY_PATH
14431 shlibpath_overrides_runpath=yes
14432 ;;
14433
14434*nto* | *qnx*)
14435 version_type=qnx
14436 need_lib_prefix=no
14437 need_version=no
14438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14439 soname_spec='${libname}${release}${shared_ext}$major'
14440 shlibpath_var=LD_LIBRARY_PATH
14441 shlibpath_overrides_runpath=no
14442 hardcode_into_libs=yes
14443 dynamic_linker='ldqnx.so'
14444 ;;
14445
14446openbsd*)
14447 version_type=sunos
14448 sys_lib_dlsearch_path_spec="/usr/lib"
14449 need_lib_prefix=no
14450 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14451 case $host_os in
14452 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14453 *) need_version=no ;;
14454 esac
14455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14456 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14457 shlibpath_var=LD_LIBRARY_PATH
14458 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14459 case $host_os in
14460 openbsd2.[89] | openbsd2.[89].*)
14461 shlibpath_overrides_runpath=no
14462 ;;
14463 *)
14464 shlibpath_overrides_runpath=yes
14465 ;;
14466 esac
953ff289 14467 else
1cf3d07d 14468 shlibpath_overrides_runpath=yes
953ff289 14469 fi
1cf3d07d 14470 ;;
953ff289 14471
1cf3d07d
SE
14472os2*)
14473 libname_spec='$name'
14474 shrext_cmds=".dll"
14475 need_lib_prefix=no
14476 library_names_spec='$libname${shared_ext} $libname.a'
14477 dynamic_linker='OS/2 ld.exe'
14478 shlibpath_var=LIBPATH
14479 ;;
14480
14481osf3* | osf4* | osf5*)
14482 version_type=osf
14483 need_lib_prefix=no
14484 need_version=no
14485 soname_spec='${libname}${release}${shared_ext}$major'
14486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14487 shlibpath_var=LD_LIBRARY_PATH
14488 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14489 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14490 ;;
14491
14492rdos*)
14493 dynamic_linker=no
14494 ;;
14495
14496solaris*)
14497 version_type=linux
14498 need_lib_prefix=no
14499 need_version=no
14500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14501 soname_spec='${libname}${release}${shared_ext}$major'
14502 shlibpath_var=LD_LIBRARY_PATH
14503 shlibpath_overrides_runpath=yes
14504 hardcode_into_libs=yes
14505 # ldd complains unless libraries are executable
14506 postinstall_cmds='chmod +x $lib'
14507 ;;
14508
14509sunos4*)
14510 version_type=sunos
14511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14512 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14513 shlibpath_var=LD_LIBRARY_PATH
14514 shlibpath_overrides_runpath=yes
14515 if test "$with_gnu_ld" = yes; then
14516 need_lib_prefix=no
14517 fi
14518 need_version=yes
14519 ;;
14520
14521sysv4 | sysv4.3*)
14522 version_type=linux
14523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14524 soname_spec='${libname}${release}${shared_ext}$major'
14525 shlibpath_var=LD_LIBRARY_PATH
14526 case $host_vendor in
14527 sni)
14528 shlibpath_overrides_runpath=no
14529 need_lib_prefix=no
14530 runpath_var=LD_RUN_PATH
14531 ;;
14532 siemens)
14533 need_lib_prefix=no
14534 ;;
14535 motorola)
14536 need_lib_prefix=no
14537 need_version=no
14538 shlibpath_overrides_runpath=no
14539 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14540 ;;
14541 esac
14542 ;;
14543
14544sysv4*MP*)
14545 if test -d /usr/nec ;then
14546 version_type=linux
14547 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14548 soname_spec='$libname${shared_ext}.$major'
14549 shlibpath_var=LD_LIBRARY_PATH
14550 fi
14551 ;;
14552
14553sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14554 version_type=freebsd-elf
14555 need_lib_prefix=no
14556 need_version=no
14557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14558 soname_spec='${libname}${release}${shared_ext}$major'
14559 shlibpath_var=LD_LIBRARY_PATH
14560 shlibpath_overrides_runpath=yes
14561 hardcode_into_libs=yes
14562 if test "$with_gnu_ld" = yes; then
14563 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14564 else
14565 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14566 case $host_os in
14567 sco3.2v5*)
14568 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14569 ;;
14570 esac
14571 fi
14572 sys_lib_dlsearch_path_spec='/usr/lib'
14573 ;;
14574
14575tpf*)
14576 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14577 version_type=linux
14578 need_lib_prefix=no
14579 need_version=no
6b4a97ed 14580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1cf3d07d
SE
14581 shlibpath_var=LD_LIBRARY_PATH
14582 shlibpath_overrides_runpath=no
14583 hardcode_into_libs=yes
14584 ;;
14585
14586uts4*)
14587 version_type=linux
14588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14589 soname_spec='${libname}${release}${shared_ext}$major'
14590 shlibpath_var=LD_LIBRARY_PATH
14591 ;;
14592
14593*)
14594 dynamic_linker=no
14595 ;;
14596esac
5213506e
RW
14597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14598$as_echo "$dynamic_linker" >&6; }
1cf3d07d
SE
14599test "$dynamic_linker" = no && can_build_shared=no
14600
5213506e
RW
14601variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14602if test "$GCC" = yes; then
14603 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14604fi
876080ff 14605
5213506e
RW
14606if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14607 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14608fi
14609if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14610 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
876080ff
JJ
14611fi
14612
953ff289
DN
14613
14614
953ff289 14615
953ff289
DN
14616
14617
a68ab351 14618
a68ab351 14619
a68ab351 14620
953ff289 14621
953ff289 14622
953ff289 14623
953ff289 14624
953ff289 14625
953ff289 14626
953ff289 14627
953ff289 14628
953ff289
DN
14629
14630
14631
14632
14633
953ff289 14634
953ff289 14635
953ff289 14636
953ff289 14637
953ff289
DN
14638
14639
14640
14641
953ff289
DN
14642
14643
03b8fe49 14644
43e02a8a
RW
14645
14646
03b8fe49 14647
03b8fe49 14648
03b8fe49 14649
5213506e
RW
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14651$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14652hardcode_action_FC=
14653if test -n "$hardcode_libdir_flag_spec_FC" ||
14654 test -n "$runpath_var_FC" ||
14655 test "X$hardcode_automatic_FC" = "Xyes" ; then
03b8fe49 14656
5213506e
RW
14657 # We can hardcode non-existent directories.
14658 if test "$hardcode_direct_FC" != no &&
14659 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14660 # have to relink, otherwise we might link with an installed library
14661 # when we should be linking with a yet-to-be-installed one
14662 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
14663 test "$hardcode_minus_L_FC" != no; then
14664 # Linking always hardcodes the temporary library directory.
14665 hardcode_action_FC=relink
14666 else
14667 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14668 hardcode_action_FC=immediate
14669 fi
03b8fe49 14670else
5213506e
RW
14671 # We cannot hardcode anything, or else we can only hardcode existing
14672 # directories.
14673 hardcode_action_FC=unsupported
14674fi
14675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
14676$as_echo "$hardcode_action_FC" >&6; }
03b8fe49 14677
5213506e
RW
14678if test "$hardcode_action_FC" = relink ||
14679 test "$inherit_rpath_FC" = yes; then
14680 # Fast installation is not supported
14681 enable_fast_install=no
14682elif test "$shlibpath_overrides_runpath" = yes ||
14683 test "$enable_shared" = no; then
14684 # Fast installation is not necessary
14685 enable_fast_install=needless
03b8fe49 14686fi
03b8fe49 14687
03b8fe49 14688
03b8fe49 14689
03b8fe49 14690
03b8fe49 14691
03b8fe49 14692
03b8fe49 14693
5213506e 14694 fi # test -n "$compiler"
03b8fe49 14695
5213506e
RW
14696 GCC=$lt_save_GCC
14697 CC="$lt_save_CC"
14698fi # test "$_lt_disable_FC" != yes
03b8fe49 14699
5213506e
RW
14700ac_ext=c
14701ac_cpp='$CPP $CPPFLAGS'
14702ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14703ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14704ac_compiler_gnu=$ac_cv_c_compiler_gnu
14705
14706
1ec601bf 14707FCFLAGS="$FCFLAGS -Wall -L../libgfortran"
5213506e
RW
14708
14709# For libtool versioning info, format is CURRENT:REVISION:AGE
14710libtool_VERSION=1:0:0
03b8fe49 14711
5213506e
RW
14712
14713# Check header files.
14714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14715$as_echo_n "checking for ANSI C header files... " >&6; }
22e05272 14716if ${ac_cv_header_stdc+:} false; then :
5213506e 14717 $as_echo_n "(cached) " >&6
03b8fe49 14718else
5213506e 14719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
03b8fe49 14720/* end confdefs.h. */
03b8fe49 14721#include <stdlib.h>
5213506e
RW
14722#include <stdarg.h>
14723#include <string.h>
14724#include <float.h>
14725
03b8fe49
PB
14726int
14727main ()
14728{
14729
03b8fe49
PB
14730 ;
14731 return 0;
14732}
14733_ACEOF
5213506e
RW
14734if ac_fn_c_try_compile "$LINENO"; then :
14735 ac_cv_header_stdc=yes
03b8fe49 14736else
5213506e 14737 ac_cv_header_stdc=no
03b8fe49 14738fi
5213506e 14739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
03b8fe49 14740
5213506e
RW
14741if test $ac_cv_header_stdc = yes; then
14742 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
03b8fe49 14744/* end confdefs.h. */
5213506e 14745#include <string.h>
03b8fe49 14746
03b8fe49 14747_ACEOF
5213506e
RW
14748if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14749 $EGREP "memchr" >/dev/null 2>&1; then :
14750
03b8fe49 14751else
5213506e
RW
14752 ac_cv_header_stdc=no
14753fi
14754rm -f conftest*
03b8fe49 14755
03b8fe49 14756fi
03b8fe49 14757
5213506e
RW
14758if test $ac_cv_header_stdc = yes; then
14759 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
03b8fe49 14761/* end confdefs.h. */
5213506e 14762#include <stdlib.h>
03b8fe49 14763
03b8fe49 14764_ACEOF
5213506e
RW
14765if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14766 $EGREP "free" >/dev/null 2>&1; then :
14767
14768else
14769 ac_cv_header_stdc=no
14770fi
14771rm -f conftest*
14772
14773fi
14774
14775if test $ac_cv_header_stdc = yes; then
14776 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14777 if test "$cross_compiling" = yes; then :
14778 :
14779else
14780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
03b8fe49 14781/* end confdefs.h. */
5213506e
RW
14782#include <ctype.h>
14783#include <stdlib.h>
14784#if ((' ' & 0x0FF) == 0x020)
14785# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14786# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14787#else
14788# define ISLOWER(c) \
14789 (('a' <= (c) && (c) <= 'i') \
14790 || ('j' <= (c) && (c) <= 'r') \
14791 || ('s' <= (c) && (c) <= 'z'))
14792# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14793#endif
03b8fe49 14794
5213506e 14795#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
03b8fe49
PB
14796int
14797main ()
14798{
5213506e
RW
14799 int i;
14800 for (i = 0; i < 256; i++)
14801 if (XOR (islower (i), ISLOWER (i))
14802 || toupper (i) != TOUPPER (i))
14803 return 2;
03b8fe49
PB
14804 return 0;
14805}
14806_ACEOF
5213506e 14807if ac_fn_c_try_run "$LINENO"; then :
03b8fe49 14808
03b8fe49 14809else
5213506e
RW
14810 ac_cv_header_stdc=no
14811fi
14812rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14813 conftest.$ac_objext conftest.beam conftest.$ac_ext
14814fi
03b8fe49 14815
03b8fe49 14816fi
03b8fe49 14817fi
5213506e
RW
14818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14819$as_echo "$ac_cv_header_stdc" >&6; }
14820if test $ac_cv_header_stdc = yes; then
14821
14822$as_echo "#define STDC_HEADERS 1" >>confdefs.h
14823
14824fi
14825
14826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14827$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
22e05272 14828if ${ac_cv_header_time+:} false; then :
5213506e
RW
14829 $as_echo_n "(cached) " >&6
14830else
14831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
03b8fe49 14832/* end confdefs.h. */
5213506e
RW
14833#include <sys/types.h>
14834#include <sys/time.h>
14835#include <time.h>
03b8fe49
PB
14836
14837int
14838main ()
14839{
5213506e
RW
14840if ((struct tm *) 0)
14841return 0;
03b8fe49
PB
14842 ;
14843 return 0;
14844}
14845_ACEOF
5213506e
RW
14846if ac_fn_c_try_compile "$LINENO"; then :
14847 ac_cv_header_time=yes
03b8fe49 14848else
5213506e
RW
14849 ac_cv_header_time=no
14850fi
14851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14852fi
14853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14854$as_echo "$ac_cv_header_time" >&6; }
14855if test $ac_cv_header_time = yes; then
14856
14857$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
03b8fe49 14858
03b8fe49 14859fi
5213506e
RW
14860
14861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
14862$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
22e05272 14863if ${gcc_cv_header_string+:} false; then :
5213506e 14864 $as_echo_n "(cached) " >&6
03b8fe49 14865else
5213506e 14866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
03b8fe49 14867/* end confdefs.h. */
5213506e
RW
14868#include <string.h>
14869#include <strings.h>
03b8fe49
PB
14870int
14871main ()
14872{
14873
03b8fe49
PB
14874 ;
14875 return 0;
14876}
14877_ACEOF
5213506e
RW
14878if ac_fn_c_try_compile "$LINENO"; then :
14879 gcc_cv_header_string=yes
03b8fe49 14880else
5213506e 14881 gcc_cv_header_string=no
03b8fe49 14882fi
5213506e 14883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
03b8fe49 14884fi
5213506e
RW
14885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
14886$as_echo "$gcc_cv_header_string" >&6; }
14887if test $gcc_cv_header_string = yes; then
14888
14889$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
14890
03b8fe49 14891fi
5213506e 14892
6d9d1eeb 14893for ac_header in pthread.h unistd.h semaphore.h sys/loadavg.h sys/sysctl.h sys/time.h
5213506e
RW
14894do :
14895 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14896ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22e05272 14897if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5213506e
RW
14898 cat >>confdefs.h <<_ACEOF
14899#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
03b8fe49 14900_ACEOF
03b8fe49 14901
5213506e 14902fi
03b8fe49 14903
5213506e 14904done
03b8fe49 14905
03b8fe49 14906
5213506e
RW
14907
14908
14909inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
14910
14911acx_cv_header_stdint=stddef.h
14912acx_cv_header_stdint_kind="(already complete)"
14913for i in stdint.h $inttype_headers; do
14914 unset ac_cv_type_uintptr_t
14915 unset ac_cv_type_uintmax_t
14916 unset ac_cv_type_int_least32_t
14917 unset ac_cv_type_int_fast32_t
14918 unset ac_cv_type_uint64_t
14919 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
14920 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
14921#include <$i>
14922"
22e05272 14923if test "x$ac_cv_type_uintmax_t" = xyes; then :
5213506e
RW
14924 acx_cv_header_stdint=$i
14925else
14926 continue
14927fi
14928
14929 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
14930#include <$i>
14931"
22e05272 14932if test "x$ac_cv_type_uintptr_t" = xyes; then :
5213506e
RW
14933
14934else
14935 acx_cv_header_stdint_kind="(mostly complete)"
14936fi
14937
14938 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
14939#include <$i>
14940"
22e05272 14941if test "x$ac_cv_type_int_least32_t" = xyes; then :
5213506e
RW
14942
14943else
14944 acx_cv_header_stdint_kind="(mostly complete)"
14945fi
14946
14947 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
14948#include <$i>
14949"
22e05272 14950if test "x$ac_cv_type_int_fast32_t" = xyes; then :
5213506e 14951
03b8fe49 14952else
5213506e
RW
14953 acx_cv_header_stdint_kind="(mostly complete)"
14954fi
03b8fe49 14955
5213506e
RW
14956 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
14957#include <$i>
14958"
22e05272 14959if test "x$ac_cv_type_uint64_t" = xyes; then :
5213506e
RW
14960
14961else
14962 acx_cv_header_stdint_kind="(lacks uint64_t)"
03b8fe49 14963fi
5213506e
RW
14964
14965 break
14966done
14967if test "$acx_cv_header_stdint" = stddef.h; then
14968 acx_cv_header_stdint_kind="(lacks uintmax_t)"
14969 for i in stdint.h $inttype_headers; do
14970 unset ac_cv_type_uintptr_t
14971 unset ac_cv_type_uint32_t
14972 unset ac_cv_type_uint64_t
14973 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
14974 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
14975#include <$i>
14976"
22e05272 14977if test "x$ac_cv_type_uint32_t" = xyes; then :
5213506e 14978 acx_cv_header_stdint=$i
03b8fe49 14979else
5213506e
RW
14980 continue
14981fi
03b8fe49 14982
5213506e
RW
14983 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
14984#include <$i>
14985"
22e05272 14986if test "x$ac_cv_type_uint64_t" = xyes; then :
03b8fe49 14987
5213506e 14988fi
03b8fe49 14989
5213506e
RW
14990 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
14991#include <$i>
14992"
22e05272 14993if test "x$ac_cv_type_uintptr_t" = xyes; then :
03b8fe49 14994
5213506e 14995fi
03b8fe49 14996
5213506e
RW
14997 break
14998 done
14999fi
15000if test "$acx_cv_header_stdint" = stddef.h; then
15001 acx_cv_header_stdint_kind="(u_intXX_t style)"
15002 for i in sys/types.h $inttype_headers; do
15003 unset ac_cv_type_u_int32_t
15004 unset ac_cv_type_u_int64_t
15005 $as_echo_n "looking for u_intXX_t types in $i, " >&6
15006 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
15007#include <$i>
15008"
22e05272 15009if test "x$ac_cv_type_u_int32_t" = xyes; then :
5213506e 15010 acx_cv_header_stdint=$i
03b8fe49 15011else
5213506e
RW
15012 continue
15013fi
15014
15015 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
15016#include <$i>
15017"
22e05272 15018if test "x$ac_cv_type_u_int64_t" = xyes; then :
03b8fe49 15019
03b8fe49 15020fi
03b8fe49 15021
5213506e
RW
15022 break
15023 done
03b8fe49 15024fi
5213506e
RW
15025if test "$acx_cv_header_stdint" = stddef.h; then
15026 acx_cv_header_stdint_kind="(using manual detection)"
03b8fe49 15027fi
03b8fe49 15028
5213506e
RW
15029test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
15030test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
15031test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
15032test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
15033test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
03b8fe49 15034
5213506e 15035# ----------------- Summarize what we found so far
03b8fe49 15036
5213506e
RW
15037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
15038$as_echo_n "checking what to include in gstdint.h... " >&6; }
15039
15040case `$as_basename -- gstdint.h ||
15041$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
15042 Xgstdint.h : 'X\(//\)$' \| \
15043 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
15044$as_echo X/gstdint.h |
15045 sed '/^.*\/\([^/][^/]*\)\/*$/{
15046 s//\1/
15047 q
15048 }
15049 /^X\/\(\/\/\)$/{
15050 s//\1/
15051 q
15052 }
15053 /^X\/\(\/\).*/{
15054 s//\1/
15055 q
15056 }
15057 s/.*/./; q'` in
15058 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
15059$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15060 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
15061$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15062 *) ;;
03b8fe49 15063esac
03b8fe49 15064
5213506e
RW
15065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
15066$as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
03b8fe49 15067
5213506e 15068# ----------------- done included file, check C basic types --------
03b8fe49 15069
5213506e
RW
15070# Lacking an uintptr_t? Test size of void *
15071case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
15072 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
15073# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15074# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15075# This bug is HP SR number 8606223364.
15076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15077$as_echo_n "checking size of void *... " >&6; }
22e05272 15078if ${ac_cv_sizeof_void_p+:} false; then :
5213506e 15079 $as_echo_n "(cached) " >&6
03b8fe49 15080else
5213506e 15081 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
03b8fe49 15082
5213506e
RW
15083else
15084 if test "$ac_cv_type_void_p" = yes; then
15085 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15086$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
15087as_fn_error 77 "cannot compute sizeof (void *)
15088See \`config.log' for more details" "$LINENO" 5; }
5213506e
RW
15089 else
15090 ac_cv_sizeof_void_p=0
15091 fi
03b8fe49 15092fi
5213506e 15093
03b8fe49 15094fi
5213506e
RW
15095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15096$as_echo "$ac_cv_sizeof_void_p" >&6; }
03b8fe49 15097
03b8fe49 15098
5213506e
RW
15099
15100cat >>confdefs.h <<_ACEOF
15101#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
03b8fe49 15102_ACEOF
03b8fe49 15103
5213506e
RW
15104 ;;
15105esac
03b8fe49 15106
5213506e
RW
15107# Lacking an uint64_t? Test size of long
15108case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
15109 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
15110# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15111# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15112# This bug is HP SR number 8606223364.
15113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
15114$as_echo_n "checking size of long... " >&6; }
22e05272 15115if ${ac_cv_sizeof_long+:} false; then :
5213506e 15116 $as_echo_n "(cached) " >&6
03b8fe49 15117else
5213506e 15118 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
03b8fe49 15119
03b8fe49 15120else
5213506e
RW
15121 if test "$ac_cv_type_long" = yes; then
15122 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15123$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
15124as_fn_error 77 "cannot compute sizeof (long)
15125See \`config.log' for more details" "$LINENO" 5; }
5213506e
RW
15126 else
15127 ac_cv_sizeof_long=0
15128 fi
15129fi
03b8fe49 15130
5213506e
RW
15131fi
15132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
15133$as_echo "$ac_cv_sizeof_long" >&6; }
03b8fe49 15134
03b8fe49 15135
5213506e
RW
15136
15137cat >>confdefs.h <<_ACEOF
15138#define SIZEOF_LONG $ac_cv_sizeof_long
03b8fe49 15139_ACEOF
03b8fe49 15140
5213506e
RW
15141 ;;
15142esac
03b8fe49 15143
5213506e
RW
15144if test $acx_cv_header_stdint = stddef.h; then
15145 # Lacking a good header? Test size of everything and deduce all types.
15146 # The cast to long int works around a bug in the HP C Compiler
15147# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15148# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15149# This bug is HP SR number 8606223364.
15150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
15151$as_echo_n "checking size of int... " >&6; }
22e05272 15152if ${ac_cv_sizeof_int+:} false; then :
5213506e 15153 $as_echo_n "(cached) " >&6
03b8fe49 15154else
5213506e
RW
15155 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
15156
15157else
15158 if test "$ac_cv_type_int" = yes; then
15159 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15160$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
15161as_fn_error 77 "cannot compute sizeof (int)
15162See \`config.log' for more details" "$LINENO" 5; }
5213506e
RW
15163 else
15164 ac_cv_sizeof_int=0
15165 fi
15166fi
15167
15168fi
15169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
15170$as_echo "$ac_cv_sizeof_int" >&6; }
15171
15172
15173
15174cat >>confdefs.h <<_ACEOF
15175#define SIZEOF_INT $ac_cv_sizeof_int
15176_ACEOF
03b8fe49 15177
5213506e
RW
15178
15179 # The cast to long int works around a bug in the HP C Compiler
15180# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15181# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15182# This bug is HP SR number 8606223364.
15183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
15184$as_echo_n "checking size of short... " >&6; }
22e05272 15185if ${ac_cv_sizeof_short+:} false; then :
5213506e 15186 $as_echo_n "(cached) " >&6
03b8fe49 15187else
5213506e 15188 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
03b8fe49 15189
5213506e
RW
15190else
15191 if test "$ac_cv_type_short" = yes; then
15192 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15193$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
15194as_fn_error 77 "cannot compute sizeof (short)
15195See \`config.log' for more details" "$LINENO" 5; }
5213506e
RW
15196 else
15197 ac_cv_sizeof_short=0
15198 fi
03b8fe49 15199fi
5213506e 15200
03b8fe49 15201fi
5213506e
RW
15202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
15203$as_echo "$ac_cv_sizeof_short" >&6; }
03b8fe49 15204
03b8fe49 15205
5213506e
RW
15206
15207cat >>confdefs.h <<_ACEOF
15208#define SIZEOF_SHORT $ac_cv_sizeof_short
03b8fe49 15209_ACEOF
5213506e
RW
15210
15211
15212 # The cast to long int works around a bug in the HP C Compiler
15213# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15214# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15215# This bug is HP SR number 8606223364.
15216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
15217$as_echo_n "checking size of char... " >&6; }
22e05272 15218if ${ac_cv_sizeof_char+:} false; then :
5213506e 15219 $as_echo_n "(cached) " >&6
03b8fe49 15220else
5213506e 15221 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
03b8fe49 15222
03b8fe49 15223else
5213506e
RW
15224 if test "$ac_cv_type_char" = yes; then
15225 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15226$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
15227as_fn_error 77 "cannot compute sizeof (char)
15228See \`config.log' for more details" "$LINENO" 5; }
5213506e
RW
15229 else
15230 ac_cv_sizeof_char=0
15231 fi
15232fi
03b8fe49 15233
5213506e
RW
15234fi
15235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
15236$as_echo "$ac_cv_sizeof_char" >&6; }
03b8fe49 15237
03b8fe49 15238
5213506e
RW
15239
15240cat >>confdefs.h <<_ACEOF
15241#define SIZEOF_CHAR $ac_cv_sizeof_char
03b8fe49 15242_ACEOF
03b8fe49 15243
5213506e
RW
15244
15245
15246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
15247$as_echo_n "checking for type equivalent to int8_t... " >&6; }
15248 case "$ac_cv_sizeof_char" in
15249 1) acx_cv_type_int8_t=char ;;
22e05272 15250 *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5
5213506e
RW
15251 esac
15252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
15253$as_echo "$acx_cv_type_int8_t" >&6; }
15254
15255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
15256$as_echo_n "checking for type equivalent to int16_t... " >&6; }
15257 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
15258 2:*) acx_cv_type_int16_t=int ;;
15259 *:2) acx_cv_type_int16_t=short ;;
22e05272 15260 *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5
5213506e
RW
15261 esac
15262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
15263$as_echo "$acx_cv_type_int16_t" >&6; }
15264
15265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
15266$as_echo_n "checking for type equivalent to int32_t... " >&6; }
15267 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
15268 4:*) acx_cv_type_int32_t=int ;;
15269 *:4) acx_cv_type_int32_t=long ;;
22e05272 15270 *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5
5213506e
RW
15271 esac
15272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
15273$as_echo "$acx_cv_type_int32_t" >&6; }
03b8fe49 15274fi
5213506e
RW
15275
15276# These tests are here to make the output prettier
15277
15278if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
15279 case "$ac_cv_sizeof_long" in
15280 8) acx_cv_type_int64_t=long ;;
15281 esac
15282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
15283$as_echo_n "checking for type equivalent to int64_t... " >&6; }
15284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
15285$as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
03b8fe49 15286fi
5213506e
RW
15287
15288# Now we can use the above types
15289
15290if test "$ac_cv_type_uintptr_t" != yes; then
15291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
15292$as_echo_n "checking for type equivalent to intptr_t... " >&6; }
15293 case $ac_cv_sizeof_void_p in
15294 2) acx_cv_type_intptr_t=int16_t ;;
15295 4) acx_cv_type_intptr_t=int32_t ;;
15296 8) acx_cv_type_intptr_t=int64_t ;;
22e05272 15297 *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5
5213506e
RW
15298 esac
15299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
15300$as_echo "$acx_cv_type_intptr_t" >&6; }
03b8fe49 15301fi
03b8fe49 15302
5213506e
RW
15303# ----------------- done all checks, emit header -------------
15304ac_config_commands="$ac_config_commands gstdint.h"
15305
15306
15307
15308
5213506e 15309XPCFLAGS=""
cd93945d
SH
15310case "$host" in
15311 *-*-rtems*)
15312 # RTEMS supports Pthreads, but the library is not available at GCC build time.
15313 ;;
44a7d18d
TS
15314 nvptx*-*-*)
15315 # NVPTX does not support Pthreads, has its own code replacement.
6103184e 15316 libgomp_use_pthreads=no
9e38af5c
AM
15317 # NVPTX is an accelerator-only target
15318 libgomp_offloaded_only=yes
44a7d18d 15319 ;;
cd93945d
SH
15320 *)
15321 # Check to see if -pthread or -lpthread is needed. Prefer the former.
15322 # In case the pthread.h system header is not found, this test will fail.
15323 CFLAGS="$CFLAGS -pthread"
15324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213506e
RW
15325/* end confdefs.h. */
15326#include <pthread.h>
cd93945d 15327 void *g(void *d) { return NULL; }
a68ab351
JJ
15328int
15329main ()
15330{
5213506e 15331pthread_t t; pthread_create(&t,NULL,g,NULL);
a68ab351
JJ
15332 ;
15333 return 0;
15334}
15335_ACEOF
5213506e
RW
15336if ac_fn_c_try_link "$LINENO"; then :
15337 XPCFLAGS=" -Wc,-pthread"
15338else
15339 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
cd93945d 15340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a68ab351 15341/* end confdefs.h. */
5213506e 15342#include <pthread.h>
cd93945d 15343 void *g(void *d) { return NULL; }
a68ab351
JJ
15344int
15345main ()
15346{
5213506e 15347pthread_t t; pthread_create(&t,NULL,g,NULL);
a68ab351
JJ
15348 ;
15349 return 0;
15350}
15351_ACEOF
5213506e 15352if ac_fn_c_try_link "$LINENO"; then :
a68ab351 15353
a68ab351 15354else
22e05272 15355 as_fn_error $? "Pthreads are required to build libgomp" "$LINENO" 5
5213506e
RW
15356fi
15357rm -f core conftest.err conftest.$ac_objext \
15358 conftest$ac_exeext conftest.$ac_ext
15359fi
15360rm -f core conftest.err conftest.$ac_objext \
15361 conftest$ac_exeext conftest.$ac_ext
cd93945d 15362esac
a68ab351 15363
6103184e
AM
15364if test x$libgomp_use_pthreads != xno; then
15365
15366$as_echo "#define LIBGOMP_USE_PTHREADS 1" >>confdefs.h
15367
15368fi
15369
9e38af5c
AM
15370if test x$libgomp_offloaded_only = xyes; then
15371
15372$as_echo "#define LIBGOMP_OFFLOADED_ONLY 1" >>confdefs.h
15373
15374fi
15375
41dbbb37
TS
15376# Plugins for offload execution, configure.ac fragment. -*- mode: autoconf -*-
15377#
14e335ed 15378# Copyright (C) 2014-2018 Free Software Foundation, Inc.
41dbbb37
TS
15379#
15380# Contributed by Mentor Embedded.
15381#
15382# This file is part of the GNU Offloading and Multi Processing Library
15383# (libgomp).
15384#
15385# Libgomp is free software; you can redistribute it and/or modify it
15386# under the terms of the GNU General Public License as published by
15387# the Free Software Foundation; either version 3, or (at your option)
15388# any later version.
15389#
15390# Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY
15391# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15392# FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15393# more details.
15394#
15395# Under Section 7 of GPL version 3, you are granted additional
15396# permissions described in the GCC Runtime Library Exception, version
15397# 3.1, as published by the Free Software Foundation.
15398#
15399# You should have received a copy of the GNU General Public License and
15400# a copy of the GCC Runtime Library Exception along with this program;
15401# see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
15402# <http://www.gnu.org/licenses/>.
15403
15404offload_targets=
15405
85c64bbe
BS
15406plugin_support=yes
15407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
15408$as_echo_n "checking for dlsym in -ldl... " >&6; }
22e05272 15409if ${ac_cv_lib_dl_dlsym+:} false; then :
85c64bbe
BS
15410 $as_echo_n "(cached) " >&6
15411else
15412 ac_check_lib_save_LIBS=$LIBS
15413LIBS="-ldl $LIBS"
15414cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15415/* end confdefs.h. */
15416
15417/* Override any GCC internal prototype to avoid an error.
15418 Use char because int might match the return type of a GCC
15419 builtin and then its argument prototype would still apply. */
15420#ifdef __cplusplus
15421extern "C"
15422#endif
15423char dlsym ();
15424int
15425main ()
15426{
15427return dlsym ();
15428 ;
15429 return 0;
15430}
15431_ACEOF
15432if ac_fn_c_try_link "$LINENO"; then :
15433 ac_cv_lib_dl_dlsym=yes
15434else
15435 ac_cv_lib_dl_dlsym=no
15436fi
15437rm -f core conftest.err conftest.$ac_objext \
15438 conftest$ac_exeext conftest.$ac_ext
15439LIBS=$ac_check_lib_save_LIBS
15440fi
15441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
15442$as_echo "$ac_cv_lib_dl_dlsym" >&6; }
22e05272 15443if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
85c64bbe
BS
15444 cat >>confdefs.h <<_ACEOF
15445#define HAVE_LIBDL 1
15446_ACEOF
15447
15448 LIBS="-ldl $LIBS"
15449
15450else
15451 plugin_support=no
15452fi
15453
15454if test x"$plugin_support" = xyes; then
15455
15456$as_echo "#define PLUGIN_SUPPORT 1" >>confdefs.h
15457
41dbbb37 15458elif test "x${enable_offload_targets-no}" != xno; then
22e05272 15459 as_fn_error $? "Can't support offloading without support for plugins" "$LINENO" 5
41dbbb37
TS
15460fi
15461
b8d89b03
ML
15462
15463
15464 for ac_header in $ac_header_list
15465do :
15466 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15467ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15468"
22e05272 15469if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
b8d89b03
ML
15470 cat >>confdefs.h <<_ACEOF
15471#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15472_ACEOF
15473
15474fi
15475
15476done
15477
15478
15479
15480
15481
15482
15483
15484 for ac_func in $ac_func_list
15485do :
15486 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15487ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22e05272 15488if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
b8d89b03
ML
15489 cat >>confdefs.h <<_ACEOF
15490#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15491_ACEOF
15492
15493fi
15494done
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510
41dbbb37
TS
15511# Look for the CUDA driver package.
15512CUDA_DRIVER_INCLUDE=
15513CUDA_DRIVER_LIB=
15514
15515
15516CUDA_DRIVER_CPPFLAGS=
15517CUDA_DRIVER_LDFLAGS=
15518
15519# Check whether --with-cuda-driver was given.
15520if test "${with_cuda_driver+set}" = set; then :
15521 withval=$with_cuda_driver;
85c64bbe
BS
15522fi
15523
41dbbb37
TS
15524
15525# Check whether --with-cuda-driver-include was given.
15526if test "${with_cuda_driver_include+set}" = set; then :
15527 withval=$with_cuda_driver_include;
15528fi
15529
15530
15531# Check whether --with-cuda-driver-lib was given.
15532if test "${with_cuda_driver_lib+set}" = set; then :
15533 withval=$with_cuda_driver_lib;
15534fi
15535
2393d337 15536case "x$with_cuda_driver" in
09940090
TV
15537 x) ;;
15538 xno)
15539 CUDA_DRIVER_INCLUDE=no
15540 CUDA_DRIVER_LIB=no
15541 ;;
2393d337
JJ
15542 *) CUDA_DRIVER_INCLUDE=$with_cuda_driver/include
15543 CUDA_DRIVER_LIB=$with_cuda_driver/lib
15544 ;;
15545esac
41dbbb37
TS
15546if test "x$with_cuda_driver_include" != x; then
15547 CUDA_DRIVER_INCLUDE=$with_cuda_driver_include
15548fi
15549if test "x$with_cuda_driver_lib" != x; then
15550 CUDA_DRIVER_LIB=$with_cuda_driver_lib
15551fi
09940090
TV
15552if test "x$CUDA_DRIVER_INCLUDE" != x \
15553 && test "x$CUDA_DRIVER_INCLUDE" != xno; then
41dbbb37
TS
15554 CUDA_DRIVER_CPPFLAGS=-I$CUDA_DRIVER_INCLUDE
15555fi
09940090
TV
15556if test "x$CUDA_DRIVER_LIB" != x \
15557 && test "x$CUDA_DRIVER_LIB" != xno; then
41dbbb37
TS
15558 CUDA_DRIVER_LDFLAGS=-L$CUDA_DRIVER_LIB
15559fi
15560
15561PLUGIN_NVPTX=0
15562PLUGIN_NVPTX_CPPFLAGS=
15563PLUGIN_NVPTX_LDFLAGS=
15564PLUGIN_NVPTX_LIBS=
2393d337 15565PLUGIN_NVPTX_DYNAMIC=0
41dbbb37
TS
15566
15567
15568
15569
15570
b2b40051
MJ
15571# Look for HSA run-time, its includes and libraries
15572
15573HSA_RUNTIME_INCLUDE=
15574HSA_RUNTIME_LIB=
15575
15576
15577HSA_RUNTIME_CPPFLAGS=
15578HSA_RUNTIME_LDFLAGS=
15579
15580
15581# Check whether --with-hsa-runtime was given.
15582if test "${with_hsa_runtime+set}" = set; then :
15583 withval=$with_hsa_runtime;
15584fi
15585
15586
15587# Check whether --with-hsa-runtime-include was given.
15588if test "${with_hsa_runtime_include+set}" = set; then :
15589 withval=$with_hsa_runtime_include;
15590fi
15591
15592
15593# Check whether --with-hsa-runtime-lib was given.
15594if test "${with_hsa_runtime_lib+set}" = set; then :
15595 withval=$with_hsa_runtime_lib;
15596fi
15597
15598if test "x$with_hsa_runtime" != x; then
15599 HSA_RUNTIME_INCLUDE=$with_hsa_runtime/include
15600 HSA_RUNTIME_LIB=$with_hsa_runtime/lib
15601fi
15602if test "x$with_hsa_runtime_include" != x; then
15603 HSA_RUNTIME_INCLUDE=$with_hsa_runtime_include
15604fi
15605if test "x$with_hsa_runtime_lib" != x; then
15606 HSA_RUNTIME_LIB=$with_hsa_runtime_lib
15607fi
15608if test "x$HSA_RUNTIME_INCLUDE" != x; then
15609 HSA_RUNTIME_CPPFLAGS=-I$HSA_RUNTIME_INCLUDE
15610fi
15611if test "x$HSA_RUNTIME_LIB" != x; then
15612 HSA_RUNTIME_LDFLAGS=-L$HSA_RUNTIME_LIB
15613fi
15614
b2b40051
MJ
15615PLUGIN_HSA=0
15616PLUGIN_HSA_CPPFLAGS=
15617PLUGIN_HSA_LDFLAGS=
15618PLUGIN_HSA_LIBS=
15619
15620
15621
15622
15623
41dbbb37
TS
15624# Get offload targets and path to install tree of offloading compiler.
15625offload_additional_options=
15626offload_additional_lib_paths=
15627
15628
15629if test x"$enable_offload_targets" != x; then
15630 for tgt in `echo $enable_offload_targets | sed -e 's#,# #g'`; do
15631 tgt_dir=`echo $tgt | grep '=' | sed 's/.*=//'`
15632 tgt=`echo $tgt | sed 's/=.*//'`
41d809d3 15633 tgt_name=
41dbbb37
TS
15634 case $tgt in
15635 *-intelmic-* | *-intelmicemul-*)
15636 tgt_name=intelmic
15637 ;;
15638 nvptx*)
15639 tgt_name=nvptx
15640 PLUGIN_NVPTX=$tgt
09940090
TV
15641 if test "x$CUDA_DRIVER_LIB" != xno \
15642 && test "x$CUDA_DRIVER_LIB" != xno; then
15643 PLUGIN_NVPTX_CPPFLAGS=$CUDA_DRIVER_CPPFLAGS
15644 PLUGIN_NVPTX_LDFLAGS=$CUDA_DRIVER_LDFLAGS
15645 PLUGIN_NVPTX_LIBS='-lcuda'
15646
15647 PLUGIN_NVPTX_save_CPPFLAGS=$CPPFLAGS
15648 CPPFLAGS="$PLUGIN_NVPTX_CPPFLAGS $CPPFLAGS"
15649 PLUGIN_NVPTX_save_LDFLAGS=$LDFLAGS
15650 LDFLAGS="$PLUGIN_NVPTX_LDFLAGS $LDFLAGS"
15651 PLUGIN_NVPTX_save_LIBS=$LIBS
15652 LIBS="$PLUGIN_NVPTX_LIBS $LIBS"
15653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41dbbb37
TS
15654/* end confdefs.h. */
15655#include "cuda.h"
15656int
15657main ()
15658{
15659CUresult r = cuCtxPushCurrent (NULL);
15660 ;
15661 return 0;
15662}
15663_ACEOF
15664if ac_fn_c_try_link "$LINENO"; then :
15665 PLUGIN_NVPTX=1
15666fi
15667rm -f core conftest.err conftest.$ac_objext \
15668 conftest$ac_exeext conftest.$ac_ext
09940090
TV
15669 CPPFLAGS=$PLUGIN_NVPTX_save_CPPFLAGS
15670 LDFLAGS=$PLUGIN_NVPTX_save_LDFLAGS
15671 LIBS=$PLUGIN_NVPTX_save_LIBS
15672 fi
41dbbb37
TS
15673 case $PLUGIN_NVPTX in
15674 nvptx*)
09940090
TV
15675 if (test "x$CUDA_DRIVER_INCLUDE" = x \
15676 || test "x$CUDA_DRIVER_INCLUDE" = xno) \
15677 && (test "x$CUDA_DRIVER_LIB" = x \
15678 || test "x$CUDA_DRIVER_LIB" = xno); then
2393d337
JJ
15679 PLUGIN_NVPTX=1
15680 PLUGIN_NVPTX_CPPFLAGS='-I$(srcdir)/plugin/cuda'
15681 PLUGIN_NVPTX_LIBS='-ldl'
15682 PLUGIN_NVPTX_DYNAMIC=1
15683 else
15684 PLUGIN_NVPTX=0
22e05272 15685 as_fn_error $? "CUDA driver package required for nvptx support" "$LINENO" 5
2393d337
JJ
15686 fi
15687 ;;
41dbbb37
TS
15688 esac
15689 ;;
b2b40051
MJ
15690 hsa*)
15691 case "${target}" in
15692 x86_64-*-*)
15693 case " ${CC} ${CFLAGS} " in
15694 *" -m32 "*)
15695 PLUGIN_HSA=0
15696 ;;
15697 *)
15698 tgt_name=hsa
15699 PLUGIN_HSA=$tgt
15700 PLUGIN_HSA_CPPFLAGS=$HSA_RUNTIME_CPPFLAGS
b8d89b03
ML
15701 PLUGIN_HSA_LDFLAGS="$HSA_RUNTIME_LDFLAGS"
15702 PLUGIN_HSA_LIBS="-ldl"
b2b40051
MJ
15703
15704 PLUGIN_HSA_save_CPPFLAGS=$CPPFLAGS
15705 CPPFLAGS="$PLUGIN_HSA_CPPFLAGS $CPPFLAGS"
15706 PLUGIN_HSA_save_LDFLAGS=$LDFLAGS
15707 LDFLAGS="$PLUGIN_HSA_LDFLAGS $LDFLAGS"
15708 PLUGIN_HSA_save_LIBS=$LIBS
15709 LIBS="$PLUGIN_HSA_LIBS $LIBS"
15710
b8d89b03 15711 PLUGIN_HSA=1
b2b40051
MJ
15712 CPPFLAGS=$PLUGIN_HSA_save_CPPFLAGS
15713 LDFLAGS=$PLUGIN_HSA_save_LDFLAGS
15714 LIBS=$PLUGIN_HSA_save_LIBS
15715 case $PLUGIN_HSA in
15716 hsa*)
15717 HSA_PLUGIN=0
22e05272 15718 as_fn_error $? "HSA run-time package required for HSA support" "$LINENO" 5
b2b40051
MJ
15719 ;;
15720 esac
15721 ;;
15722 esac
15723 ;;
15724 *-*-*)
15725 PLUGIN_HSA=0
15726 ;;
15727 esac
15728 ;;
41dbbb37 15729 *)
22e05272 15730 as_fn_error $? "unknown offload target specified" "$LINENO" 5
41dbbb37
TS
15731 ;;
15732 esac
41d809d3
TS
15733 if test x"$tgt_name" = x; then
15734 # Don't configure libgomp for this offloading target if we don't build
15735 # the corresponding plugin.
15736 continue
15737 elif test x"$offload_targets" = x; then
41dbbb37
TS
15738 offload_targets=$tgt_name
15739 else
15740 offload_targets=$offload_targets,$tgt_name
15741 fi
4a88d9b7
TS
15742 if test "$tgt_name" = hsa; then
15743 # Offloading compilation is all handled by the target compiler.
15744 :
15745 elif test x"$tgt_dir" != x; then
41dbbb37
TS
15746 offload_additional_options="$offload_additional_options -B$tgt_dir/libexec/gcc/\$(target_alias)/\$(gcc_version) -B$tgt_dir/bin"
15747 offload_additional_lib_paths="$offload_additional_lib_paths:$tgt_dir/lib64:$tgt_dir/lib:$tgt_dir/lib32"
15748 else
15749 offload_additional_options="$offload_additional_options -B\$(libexecdir)/gcc/\$(target_alias)/\$(gcc_version) -B\$(bindir)"
15750 offload_additional_lib_paths="$offload_additional_lib_paths:$toolexeclibdir"
15751 fi
15752 done
15753fi
15754
15755cat >>confdefs.h <<_ACEOF
15756#define OFFLOAD_TARGETS "$offload_targets"
15757_ACEOF
15758
15759 if test $PLUGIN_NVPTX = 1; then
15760 PLUGIN_NVPTX_TRUE=
15761 PLUGIN_NVPTX_FALSE='#'
15762else
15763 PLUGIN_NVPTX_TRUE='#'
15764 PLUGIN_NVPTX_FALSE=
15765fi
15766
15767
15768cat >>confdefs.h <<_ACEOF
15769#define PLUGIN_NVPTX $PLUGIN_NVPTX
15770_ACEOF
15771
2393d337
JJ
15772
15773cat >>confdefs.h <<_ACEOF
15774#define PLUGIN_NVPTX_DYNAMIC $PLUGIN_NVPTX_DYNAMIC
15775_ACEOF
15776
b2b40051
MJ
15777 if test $PLUGIN_HSA = 1; then
15778 PLUGIN_HSA_TRUE=
15779 PLUGIN_HSA_FALSE='#'
15780else
15781 PLUGIN_HSA_TRUE='#'
15782 PLUGIN_HSA_FALSE=
15783fi
15784
15785
15786cat >>confdefs.h <<_ACEOF
15787#define PLUGIN_HSA $PLUGIN_HSA
15788_ACEOF
15789
41dbbb37 15790
b8d89b03
ML
15791if test "$HSA_RUNTIME_LIB" != ""; then
15792 HSA_RUNTIME_LIB="$HSA_RUNTIME_LIB/"
15793fi
15794
15795
15796cat >>confdefs.h <<_ACEOF
15797#define HSA_RUNTIME_LIB "$HSA_RUNTIME_LIB"
15798_ACEOF
15799
15800
41dbbb37 15801
5213506e
RW
15802# Check for functions needed.
15803for ac_func in getloadavg clock_gettime strtoull
15804do :
15805 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15806ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22e05272 15807if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5213506e
RW
15808 cat >>confdefs.h <<_ACEOF
15809#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
a68ab351 15810_ACEOF
a68ab351 15811
5213506e
RW
15812fi
15813done
15814
15815
15816# Check for broken semaphore implementation on darwin.
15817# sem_init returns: sem_init error: Function not implemented.
15818case "$host" in
15819 *-darwin*)
15820
15821$as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
15822
15823 ;;
15824esac
15825
13c41b2e
SH
15826# RTEMS specific checks
15827case "$host" in
15828 *-*-rtems*)
15829 ac_fn_c_check_type "$LINENO" "struct _Mutex_Control" "ac_cv_type_struct__Mutex_Control" "#include <sys/lock.h>
15830"
22e05272 15831if test "x$ac_cv_type_struct__Mutex_Control" = xyes; then :
13c41b2e
SH
15832
15833cat >>confdefs.h <<_ACEOF
15834#define HAVE_STRUCT__MUTEX_CONTROL 1
15835_ACEOF
15836
15837
15838fi
15839
15840 ;;
15841esac
15842
5213506e
RW
15843 # Check whether --enable-linux-futex was given.
15844if test "${enable_linux_futex+set}" = set; then :
15845 enableval=$enable_linux_futex;
15846 case "$enableval" in
15847 yes|no|default) ;;
22e05272 15848 *) as_fn_error $? "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
5213506e
RW
15849 esac
15850
15851else
15852 enable_linux_futex=default
15853fi
a68ab351 15854
a68ab351 15855
5213506e
RW
15856case "$target" in
15857 *-linux*)
15858 case "$enable_linux_futex" in
15859 default)
15860 # If headers don't have gettid/futex syscalls definition, then
15861 # default to no, otherwise there will be compile time failures.
15862 # Otherwise, default to yes. If we don't detect we are
15863 # compiled/linked against NPTL and not cross-compiling, check
15864 # if programs are run by default against NPTL and if not, issue
15865 # a warning.
15866 enable_linux_futex=no
15867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15868/* end confdefs.h. */
15869#include <sys/syscall.h>
15870 int lk;
a68ab351
JJ
15871int
15872main ()
15873{
5213506e 15874syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
a68ab351
JJ
15875 ;
15876 return 0;
15877}
15878_ACEOF
5213506e
RW
15879if ac_fn_c_try_link "$LINENO"; then :
15880 save_LIBS="$LIBS"
15881 LIBS="-lpthread $LIBS"
15882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a68ab351 15883/* end confdefs.h. */
5213506e
RW
15884#ifndef _GNU_SOURCE
15885 #define _GNU_SOURCE 1
15886 #endif
15887 #include <pthread.h>
15888 pthread_t th; void *status;
a68ab351
JJ
15889int
15890main ()
15891{
5213506e 15892pthread_tryjoin_np (th, &status);
a68ab351
JJ
15893 ;
15894 return 0;
15895}
15896_ACEOF
5213506e
RW
15897if ac_fn_c_try_link "$LINENO"; then :
15898 enable_linux_futex=yes
a68ab351 15899else
5213506e
RW
15900 if test x$cross_compiling = xno; then
15901 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
15902 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
15903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
15904If so, please configure with --disable-linux-futex" >&5
15905$as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
15906If so, please configure with --disable-linux-futex" >&2;}
15907 fi
15908 fi
15909 enable_linux_futex=yes
a68ab351 15910fi
5213506e
RW
15911rm -f core conftest.err conftest.$ac_objext \
15912 conftest$ac_exeext conftest.$ac_ext
15913 LIBS="$save_LIBS"
15914fi
15915rm -f core conftest.err conftest.$ac_objext \
15916 conftest$ac_exeext conftest.$ac_ext
15917 ;;
15918 yes)
15919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a68ab351 15920/* end confdefs.h. */
5213506e
RW
15921#include <sys/syscall.h>
15922 int lk;
a68ab351
JJ
15923int
15924main ()
15925{
5213506e 15926syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
a68ab351
JJ
15927 ;
15928 return 0;
15929}
15930_ACEOF
5213506e 15931if ac_fn_c_try_link "$LINENO"; then :
a68ab351 15932
5213506e 15933else
22e05272 15934 as_fn_error $? "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
a68ab351 15935fi
5213506e
RW
15936rm -f core conftest.err conftest.$ac_objext \
15937 conftest$ac_exeext conftest.$ac_ext
15938 ;;
15939 esac
15940 ;;
15941 *)
15942 enable_linux_futex=no
15943 ;;
15944esac
15945if test x$enable_linux_futex = xyes; then
15946 :
a68ab351 15947fi
a68ab351 15948
5213506e
RW
15949
15950# Check for pthread_{,attr_}[sg]etaffinity_np.
15951cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15952/* end confdefs.h. */
15953#define _GNU_SOURCE
15954 #include <pthread.h>
a68ab351
JJ
15955int
15956main ()
15957{
5213506e
RW
15958cpu_set_t cpuset;
15959 pthread_attr_t attr;
15960 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15961 if (CPU_ISSET (0, &cpuset))
15962 CPU_SET (1, &cpuset);
15963 else
15964 CPU_ZERO (&cpuset);
15965 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15966 pthread_attr_init (&attr);
15967 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15968 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
a68ab351
JJ
15969 ;
15970 return 0;
15971}
15972_ACEOF
5213506e
RW
15973if ac_fn_c_try_link "$LINENO"; then :
15974
15975$as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h
15976
15977fi
15978rm -f core conftest.err conftest.$ac_objext \
15979 conftest$ac_exeext conftest.$ac_ext
15980
15981# At least for glibc, clock_gettime is in librt. But don't pull that
15982# in if it still doesn't give us the function we want.
15983if test $ac_cv_func_clock_gettime = no; then
15984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
15985$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
22e05272 15986if ${ac_cv_lib_rt_clock_gettime+:} false; then :
5213506e
RW
15987 $as_echo_n "(cached) " >&6
15988else
15989 ac_check_lib_save_LIBS=$LIBS
15990LIBS="-lrt $LIBS"
15991cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a68ab351
JJ
15992/* end confdefs.h. */
15993
5213506e
RW
15994/* Override any GCC internal prototype to avoid an error.
15995 Use char because int might match the return type of a GCC
15996 builtin and then its argument prototype would still apply. */
15997#ifdef __cplusplus
15998extern "C"
15999#endif
16000char clock_gettime ();
a68ab351
JJ
16001int
16002main ()
16003{
5213506e 16004return clock_gettime ();
a68ab351
JJ
16005 ;
16006 return 0;
16007}
16008_ACEOF
5213506e
RW
16009if ac_fn_c_try_link "$LINENO"; then :
16010 ac_cv_lib_rt_clock_gettime=yes
a68ab351 16011else
5213506e
RW
16012 ac_cv_lib_rt_clock_gettime=no
16013fi
16014rm -f core conftest.err conftest.$ac_objext \
16015 conftest$ac_exeext conftest.$ac_ext
16016LIBS=$ac_check_lib_save_LIBS
16017fi
16018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
16019$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
22e05272 16020if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
5213506e
RW
16021 LIBS="-lrt $LIBS"
16022
16023$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
a68ab351 16024
a68ab351 16025fi
5213506e
RW
16026
16027fi
16028
16029# See if we support thread-local storage.
16030
16031
16032 # Check whether --enable-tls was given.
16033if test "${enable_tls+set}" = set; then :
16034 enableval=$enable_tls;
16035 case "$enableval" in
16036 yes|no) ;;
22e05272 16037 *) as_fn_error $? "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
5213506e
RW
16038 esac
16039
16040else
16041 enable_tls=yes
16042fi
16043
16044
16045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
16046$as_echo_n "checking whether the target supports thread-local storage... " >&6; }
22e05272 16047if ${gcc_cv_have_tls+:} false; then :
5213506e 16048 $as_echo_n "(cached) " >&6
a68ab351 16049else
a68ab351 16050
5213506e
RW
16051 if test "$cross_compiling" = yes; then :
16052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16053/* end confdefs.h. */
16054__thread int a; int b; int main() { return a = b; }
16055_ACEOF
16056if ac_fn_c_try_link "$LINENO"; then :
16057 chktls_save_LDFLAGS="$LDFLAGS"
16058 case $host in
16059 *-*-linux*)
16060 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
16061 ;;
16062 esac
16063 chktls_save_CFLAGS="$CFLAGS"
16064 CFLAGS="-fPIC $CFLAGS"
16065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16066/* end confdefs.h. */
16067int f() { return 0; }
a68ab351 16068_ACEOF
5213506e
RW
16069if ac_fn_c_try_link "$LINENO"; then :
16070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a68ab351 16071/* end confdefs.h. */
5213506e
RW
16072__thread int a; int b; int f() { return a = b; }
16073_ACEOF
16074if ac_fn_c_try_link "$LINENO"; then :
16075 gcc_cv_have_tls=yes
16076else
16077 gcc_cv_have_tls=no
16078fi
16079rm -f core conftest.err conftest.$ac_objext \
16080 conftest$ac_exeext conftest.$ac_ext
16081else
16082 gcc_cv_have_tls=yes
16083fi
16084rm -f core conftest.err conftest.$ac_objext \
16085 conftest$ac_exeext conftest.$ac_ext
16086 CFLAGS="$chktls_save_CFLAGS"
16087 LDFLAGS="$chktls_save_LDFLAGS"
16088else
16089 gcc_cv_have_tls=no
16090fi
16091rm -f core conftest.err conftest.$ac_objext \
16092 conftest$ac_exeext conftest.$ac_ext
a68ab351 16093
a68ab351 16094
5213506e
RW
16095else
16096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16097/* end confdefs.h. */
16098__thread int a; int b; int main() { return a = b; }
a68ab351 16099_ACEOF
5213506e
RW
16100if ac_fn_c_try_run "$LINENO"; then :
16101 chktls_save_LDFLAGS="$LDFLAGS"
16102 LDFLAGS="-static $LDFLAGS"
16103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16104/* end confdefs.h. */
16105int main() { return 0; }
a68ab351 16106_ACEOF
5213506e
RW
16107if ac_fn_c_try_link "$LINENO"; then :
16108 if test "$cross_compiling" = yes; then :
16109 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16110$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
16111as_fn_error $? "cannot run test program while cross compiling
16112See \`config.log' for more details" "$LINENO" 5; }
5213506e
RW
16113else
16114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a68ab351 16115/* end confdefs.h. */
5213506e
RW
16116__thread int a; int b; int main() { return a = b; }
16117_ACEOF
16118if ac_fn_c_try_run "$LINENO"; then :
16119 gcc_cv_have_tls=yes
16120else
16121 gcc_cv_have_tls=no
16122fi
16123rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16124 conftest.$ac_objext conftest.beam conftest.$ac_ext
16125fi
a68ab351 16126
5213506e
RW
16127else
16128 gcc_cv_have_tls=yes
16129fi
16130rm -f core conftest.err conftest.$ac_objext \
16131 conftest$ac_exeext conftest.$ac_ext
16132 LDFLAGS="$chktls_save_LDFLAGS"
16133 if test $gcc_cv_have_tls = yes; then
16134 chktls_save_CFLAGS="$CFLAGS"
16135 thread_CFLAGS=failed
16136 for flag in '' '-pthread' '-lpthread'; do
16137 CFLAGS="$flag $chktls_save_CFLAGS"
16138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16139/* end confdefs.h. */
16140#include <pthread.h>
16141 void *g(void *d) { return NULL; }
a68ab351
JJ
16142int
16143main ()
16144{
5213506e 16145pthread_t t; pthread_create(&t,NULL,g,NULL);
a68ab351
JJ
16146 ;
16147 return 0;
16148}
16149_ACEOF
5213506e
RW
16150if ac_fn_c_try_link "$LINENO"; then :
16151 thread_CFLAGS="$flag"
a68ab351 16152fi
5213506e
RW
16153rm -f core conftest.err conftest.$ac_objext \
16154 conftest$ac_exeext conftest.$ac_ext
16155 if test "X$thread_CFLAGS" != Xfailed; then
16156 break
16157 fi
16158 done
16159 CFLAGS="$chktls_save_CFLAGS"
16160 if test "X$thread_CFLAGS" != Xfailed; then
16161 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
75bc9e5e 16162 if test "$cross_compiling" = yes; then :
5213506e
RW
16163 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16164$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
16165as_fn_error $? "cannot run test program while cross compiling
16166See \`config.log' for more details" "$LINENO" 5; }
a68ab351 16167else
5213506e 16168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a68ab351 16169/* end confdefs.h. */
5213506e
RW
16170#include <pthread.h>
16171 __thread int a;
dbd34b89 16172 static int *volatile a_in_other_thread;
5213506e
RW
16173 static void *
16174 thread_func (void *arg)
16175 {
16176 a_in_other_thread = &a;
16177 return (void *)0;
16178 }
a68ab351
JJ
16179int
16180main ()
16181{
5213506e
RW
16182pthread_t thread;
16183 void *thread_retval;
dbd34b89
IS
16184 int *volatile a_in_main_thread;
16185 a_in_main_thread = &a;
5213506e
RW
16186 if (pthread_create (&thread, (pthread_attr_t *)0,
16187 thread_func, (void *)0))
16188 return 0;
5213506e
RW
16189 if (pthread_join (thread, &thread_retval))
16190 return 0;
16191 return (a_in_other_thread == a_in_main_thread);
a68ab351
JJ
16192 ;
16193 return 0;
16194}
16195_ACEOF
5213506e
RW
16196if ac_fn_c_try_run "$LINENO"; then :
16197 gcc_cv_have_tls=yes
a68ab351 16198else
5213506e
RW
16199 gcc_cv_have_tls=no
16200fi
16201rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16202 conftest.$ac_objext conftest.beam conftest.$ac_ext
16203fi
16204
16205 CFLAGS="$chktls_save_CFLAGS"
16206 fi
16207 fi
16208else
16209 gcc_cv_have_tls=no
16210fi
16211rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16212 conftest.$ac_objext conftest.beam conftest.$ac_ext
16213fi
a68ab351 16214
a68ab351 16215fi
5213506e
RW
16216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
16217$as_echo "$gcc_cv_have_tls" >&6; }
16218 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
16219
16220$as_echo "#define HAVE_TLS 1" >>confdefs.h
16221
16222 fi
16223
f50eecba
VR
16224# See if we have emulated thread-local storage.
16225
16226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the thread-local storage support is from emutls" >&5
16227$as_echo_n "checking whether the thread-local storage support is from emutls... " >&6; }
22e05272 16228if ${gcc_cv_use_emutls+:} false; then :
f50eecba
VR
16229 $as_echo_n "(cached) " >&6
16230else
16231
16232 gcc_cv_use_emutls=no
16233 echo '__thread int a; int b; int main() { return a = b; }' > conftest.c
16234 if { ac_try='${CC-cc} -Werror -S -o conftest.s conftest.c 1>&5'
16235 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16236 (eval $ac_try) 2>&5
16237 ac_status=$?
16238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16239 test $ac_status = 0; }; }; then
16240 if grep __emutls_get_address conftest.s > /dev/null; then
16241 gcc_cv_use_emutls=yes
16242 fi
16243 fi
16244 rm -f conftest.*
16245
16246fi
16247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_use_emutls" >&5
16248$as_echo "$gcc_cv_use_emutls" >&6; }
16249 if test "$gcc_cv_use_emutls" = "yes" ; then
16250
16251$as_echo "#define USE_EMUTLS 1" >>confdefs.h
16252
16253 fi
16254
451c19c4 16255# See what sort of export controls are available.
5213506e
RW
16256
16257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
16258$as_echo_n "checking whether the target supports hidden visibility... " >&6; }
22e05272 16259if ${libgomp_cv_have_attribute_visibility+:} false; then :
5213506e 16260 $as_echo_n "(cached) " >&6
a68ab351 16261else
a68ab351 16262
5213506e
RW
16263 save_CFLAGS="$CFLAGS"
16264 CFLAGS="$CFLAGS -Werror"
16265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16266/* end confdefs.h. */
16267void __attribute__((visibility("hidden"))) foo(void) { }
a68ab351
JJ
16268int
16269main ()
16270{
16271
a68ab351
JJ
16272 ;
16273 return 0;
16274}
16275_ACEOF
5213506e
RW
16276if ac_fn_c_try_compile "$LINENO"; then :
16277 libgomp_cv_have_attribute_visibility=yes
a68ab351 16278else
5213506e 16279 libgomp_cv_have_attribute_visibility=no
a68ab351 16280fi
5213506e
RW
16281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16282 CFLAGS="$save_CFLAGS"
a68ab351 16283fi
5213506e
RW
16284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_visibility" >&5
16285$as_echo "$libgomp_cv_have_attribute_visibility" >&6; }
16286 if test $libgomp_cv_have_attribute_visibility = yes; then
16287
16288$as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
16289
16290 fi
16291
16292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
16293$as_echo_n "checking whether the target supports dllexport... " >&6; }
22e05272 16294if ${libgomp_cv_have_attribute_dllexport+:} false; then :
5213506e
RW
16295 $as_echo_n "(cached) " >&6
16296else
a68ab351 16297
5213506e
RW
16298 save_CFLAGS="$CFLAGS"
16299 CFLAGS="$CFLAGS -Werror"
16300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16301/* end confdefs.h. */
16302void __attribute__((dllexport)) foo(void) { }
a68ab351
JJ
16303int
16304main ()
16305{
a68ab351
JJ
16306
16307 ;
16308 return 0;
16309}
16310_ACEOF
5213506e
RW
16311if ac_fn_c_try_compile "$LINENO"; then :
16312 libgomp_cv_have_attribute_dllexport=yes
16313else
16314 libgomp_cv_have_attribute_dllexport=no
16315fi
16316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16317 CFLAGS="$save_CFLAGS"
16318fi
16319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_dllexport" >&5
16320$as_echo "$libgomp_cv_have_attribute_dllexport" >&6; }
16321 if test $libgomp_cv_have_attribute_dllexport = yes; then
16322
16323$as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
16324
16325 fi
16326
16327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
16328$as_echo_n "checking whether the target supports symbol aliases... " >&6; }
22e05272 16329if ${libgomp_cv_have_attribute_alias+:} false; then :
5213506e
RW
16330 $as_echo_n "(cached) " >&6
16331else
16332
16333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a68ab351
JJ
16334/* end confdefs.h. */
16335
5213506e
RW
16336void foo(void) { }
16337extern void bar(void) __attribute__((alias("foo")));
a68ab351
JJ
16338int
16339main ()
16340{
5213506e 16341bar();
a68ab351
JJ
16342 ;
16343 return 0;
16344}
16345_ACEOF
5213506e
RW
16346if ac_fn_c_try_link "$LINENO"; then :
16347 libgomp_cv_have_attribute_alias=yes
a68ab351 16348else
5213506e
RW
16349 libgomp_cv_have_attribute_alias=no
16350fi
16351rm -f core conftest.err conftest.$ac_objext \
16352 conftest$ac_exeext conftest.$ac_ext
16353fi
16354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_alias" >&5
16355$as_echo "$libgomp_cv_have_attribute_alias" >&6; }
16356 if test $libgomp_cv_have_attribute_alias = yes; then
16357
16358$as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
16359
16360 fi
16361
16362
16363# Check whether --with-gnu-ld was given.
16364if test "${with_gnu_ld+set}" = set; then :
16365 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16366else
16367 with_gnu_ld=no
16368fi
a68ab351 16369
5213506e
RW
16370ac_prog=ld
16371if test "$GCC" = yes; then
16372 # Check if gcc -print-prog-name=ld gives a path.
16373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16374$as_echo_n "checking for ld used by $CC... " >&6; }
16375 case $host in
16376 *-*-mingw*)
16377 # gcc leaves a trailing carriage return which upsets mingw
16378 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16379 *)
16380 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16381 esac
16382 case $ac_prog in
16383 # Accept absolute paths.
16384 [\\/]* | ?:[\\/]*)
16385 re_direlt='/[^/][^/]*/\.\./'
16386 # Canonicalize the pathname of ld
16387 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16388 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16389 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16390 done
16391 test -z "$LD" && LD="$ac_prog"
16392 ;;
16393 "")
16394 # If it fails, then pretend we aren't using GCC.
16395 ac_prog=ld
16396 ;;
16397 *)
16398 # If it is relative, then search for the first ld in PATH.
16399 with_gnu_ld=unknown
16400 ;;
16401 esac
16402elif test "$with_gnu_ld" = yes; then
16403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16404$as_echo_n "checking for GNU ld... " >&6; }
16405else
16406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16407$as_echo_n "checking for non-GNU ld... " >&6; }
a68ab351 16408fi
22e05272 16409if ${lt_cv_path_LD+:} false; then :
5213506e
RW
16410 $as_echo_n "(cached) " >&6
16411else
16412 if test -z "$LD"; then
16413 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16414 for ac_dir in $PATH; do
16415 IFS="$lt_save_ifs"
16416 test -z "$ac_dir" && ac_dir=.
16417 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16418 lt_cv_path_LD="$ac_dir/$ac_prog"
16419 # Check to see if the program is GNU ld. I'd rather use --version,
16420 # but apparently some variants of GNU ld only accept -v.
16421 # Break only if it was the GNU/non-GNU ld that we prefer.
16422 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16423 *GNU* | *'with BFD'*)
16424 test "$with_gnu_ld" != no && break
16425 ;;
16426 *)
16427 test "$with_gnu_ld" != yes && break
16428 ;;
16429 esac
16430 fi
a68ab351 16431 done
5213506e 16432 IFS="$lt_save_ifs"
a68ab351 16433else
5213506e
RW
16434 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16435fi
16436fi
16437
16438LD="$lt_cv_path_LD"
16439if test -n "$LD"; then
16440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16441$as_echo "$LD" >&6; }
16442else
16443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16444$as_echo "no" >&6; }
16445fi
22e05272 16446test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5213506e
RW
16447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16448$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
22e05272 16449if ${lt_cv_prog_gnu_ld+:} false; then :
5213506e
RW
16450 $as_echo_n "(cached) " >&6
16451else
16452 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16453case `$LD -v 2>&1 </dev/null` in
16454*GNU* | *'with BFD'*)
16455 lt_cv_prog_gnu_ld=yes
16456 ;;
16457*)
16458 lt_cv_prog_gnu_ld=no
16459 ;;
16460esac
16461fi
16462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16463$as_echo "$lt_cv_prog_gnu_ld" >&6; }
16464with_gnu_ld=$lt_cv_prog_gnu_ld
16465
16466
16467
16468
16469
16470
16471
16472 # If we're not using GNU ld, then there's no point in even trying these
16473 # tests. Check for that first. We should have already tested for gld
16474 # by now (in libtool), but require it now just to be safe...
16475 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
16476 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
16477
16478
16479
16480 # The name set by libtool depends on the version of libtool. Shame on us
16481 # for depending on an impl detail, but c'est la vie. Older versions used
16482 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
16483 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
16484 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
16485 # set (hence we're using an older libtool), then set it.
16486 if test x${with_gnu_ld+set} != xset; then
16487 if test x${ac_cv_prog_gnu_ld+set} != xset; then
16488 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
16489 with_gnu_ld=no
16490 else
16491 with_gnu_ld=$ac_cv_prog_gnu_ld
16492 fi
16493 fi
16494
16495 # Start by getting the version number. I think the libtool test already
16496 # does some of this, but throws away the result.
16497 libgomp_ld_is_gold=no
16498 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
16499 libgomp_ld_is_gold=yes
16500 fi
16501
c82852f7 16502 ldver=`$LD --version 2>/dev/null |
89c74f4a 16503 sed -e 's/GNU gold /GNU ld /;s/GNU ld version /GNU ld /;s/GNU ld ([^)]*) /GNU ld /;s/GNU ld \([0-9.][0-9.]*\).*/\1/; q'`
5213506e
RW
16504
16505 libgomp_gnu_ld_version=`echo $ldver | \
16506 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
16507
16508 # Set --gc-sections.
16509 if test "$with_gnu_ld" = "notbroken"; then
16510 # GNU ld it is! Joy and bunny rabbits!
16511
16512 # All these tests are for C++; save the language and the compiler flags.
16513 # Need to do this so that g++ won't try to link in libstdc++
16514 ac_test_CFLAGS="${CFLAGS+set}"
16515 ac_save_CFLAGS="$CFLAGS"
16516 CFLAGS='-x c++ -Wl,--gc-sections'
16517
16518 # Check for -Wl,--gc-sections
16519 # XXX This test is broken at the moment, as symbols required for linking
16520 # are now in libsupc++ (not built yet). In addition, this test has
16521 # cored on solaris in the past. In addition, --gc-sections doesn't
16522 # really work at the moment (keeps on discarding used sections, first
16523 # .eh_frame and now some of the glibc sections for iconv).
16524 # Bzzzzt. Thanks for playing, maybe next time.
16525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
16526$as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
16527 if test "$cross_compiling" = yes; then :
16528 ac_sectionLDflags=yes
16529else
16530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16531/* end confdefs.h. */
16532
16533 int main(void)
16534 {
16535 try { throw 1; }
16536 catch (...) { };
16537 return 0;
16538 }
a68ab351 16539
a68ab351 16540_ACEOF
5213506e
RW
16541if ac_fn_c_try_run "$LINENO"; then :
16542 ac_sectionLDflags=yes
16543else
16544 ac_sectionLDflags=no
16545fi
16546rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16547 conftest.$ac_objext conftest.beam conftest.$ac_ext
16548fi
16549
16550 if test "$ac_test_CFLAGS" = set; then
16551 CFLAGS="$ac_save_CFLAGS"
16552 else
16553 # this is the suspicious part
16554 CFLAGS=''
16555 fi
16556 if test "$ac_sectionLDflags" = "yes"; then
16557 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
16558 fi
16559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
16560$as_echo "$ac_sectionLDflags" >&6; }
16561 fi
16562
16563 # Set linker optimization flags.
16564 if test x"$with_gnu_ld" = x"yes"; then
16565 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
16566 fi
16567
16568
16569
16570
16571
16572
16573 # Check whether --enable-symvers was given.
16574if test "${enable_symvers+set}" = set; then :
16575 enableval=$enable_symvers;
16576 case "$enableval" in
bddd6626 16577 yes|no|gnu*|sun) ;;
22e05272 16578 *) as_fn_error $? "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
5213506e
RW
16579 esac
16580
16581else
16582 enable_symvers=yes
16583fi
16584
16585
16586
16587# If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
16588# don't know enough about $LD to do tricks...
16589
bf382f5f
RO
16590
16591# Turn a 'yes' into a suitable default.
16592if test x$enable_symvers = xyes ; then
16593 # FIXME The following test is too strict, in theory.
16594 if test $enable_shared = no || test "x$LD" = x; then
16595 enable_symvers=no
6d28b933 16596 else
bf382f5f
RO
16597 if test $with_gnu_ld = yes ; then
16598 enable_symvers=gnu
16599 else
16600 case ${target_os} in
16601 # Sun symbol versioning exists since Solaris 2.5.
16602 solaris2.[5-9]* | solaris2.1[0-9]*)
16603 enable_symvers=sun ;;
16604 *)
16605 enable_symvers=no ;;
16606 esac
16607 fi
6d28b933
RO
16608 fi
16609fi
16610
16611# Check if 'sun' was requested on non-Solaris 2 platforms.
16612if test x$enable_symvers = xsun ; then
16613 case ${target_os} in
16614 solaris2*)
16615 # All fine.
16616 ;;
16617 *)
16618 # Unlikely to work.
16619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
16620$as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
16621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
16622$as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
16623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16624$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16625 enable_symvers=no
16626 ;;
16627 esac
5213506e
RW
16628fi
16629
16630# Check to see if libgcc_s exists, indicating that shared libgcc is possible.
16631if test $enable_symvers != no; then
16632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
16633$as_echo_n "checking for shared libgcc... " >&6; }
16634 ac_save_CFLAGS="$CFLAGS"
16635 CFLAGS=' -lgcc_s'
16636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a68ab351
JJ
16637/* end confdefs.h. */
16638
16639int
16640main ()
16641{
5213506e 16642return 0;
a68ab351
JJ
16643 ;
16644 return 0;
16645}
16646_ACEOF
5213506e
RW
16647if ac_fn_c_try_link "$LINENO"; then :
16648 libgomp_shared_libgcc=yes
16649else
16650 libgomp_shared_libgcc=no
16651fi
16652rm -f core conftest.err conftest.$ac_objext \
16653 conftest$ac_exeext conftest.$ac_ext
16654 CFLAGS="$ac_save_CFLAGS"
16655 if test $libgomp_shared_libgcc = no; then
16656 cat > conftest.c <<EOF
16657int main (void) { return 0; }
16658EOF
16659 libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
16660 -shared -shared-libgcc -o conftest.so \
16661 conftest.c -v 2>&1 >/dev/null \
16662 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
16663 rm -f conftest.c conftest.so
16664 if test x${libgomp_libgcc_s_suffix+set} = xset; then
16665 CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
16666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a68ab351
JJ
16667/* end confdefs.h. */
16668
16669int
16670main ()
16671{
5213506e 16672return 0;
a68ab351
JJ
16673 ;
16674 return 0;
16675}
16676_ACEOF
5213506e
RW
16677if ac_fn_c_try_link "$LINENO"; then :
16678 libgomp_shared_libgcc=yes
16679fi
16680rm -f core conftest.err conftest.$ac_objext \
16681 conftest$ac_exeext conftest.$ac_ext
16682 CFLAGS="$ac_save_CFLAGS"
16683 fi
16684 fi
16685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_shared_libgcc" >&5
16686$as_echo "$libgomp_shared_libgcc" >&6; }
16687fi
16688
16689# For GNU ld, we need at least this version. The format is described in
16690# LIBGOMP_CHECK_LINKER_FEATURES above.
16691libgomp_min_gnu_ld_version=21400
16692# XXXXXXXXXXX libgomp_gnu_ld_version=21390
a68ab351 16693
5213506e
RW
16694# Check to see if unspecified "yes" value can win, given results above.
16695# Change "yes" into either "no" or a style name.
6d28b933
RO
16696if test $enable_symvers != no && test $libgomp_shared_libgcc = yes; then
16697 if test $with_gnu_ld = yes; then
5213506e
RW
16698 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
16699 enable_symvers=gnu
16700 elif test $libgomp_ld_is_gold = yes ; then
16701 enable_symvers=gnu
16702 else
16703 # The right tools, the right setup, but too old. Fallbacks?
16704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
16705$as_echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
16706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
16707$as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
16708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
16709$as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
16710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
16711$as_echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
16712 if test $libgomp_gnu_ld_version -ge 21200 ; then
16713 # Globbing fix is present, proper block support is not.
16714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16715$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16716 enable_symvers=no
16717 else
16718 # 2.11 or older.
16719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16720$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16721 enable_symvers=no
16722 fi
16723 fi
6d28b933
RO
16724 elif test $enable_symvers = sun; then
16725 : All interesting versions of Sun ld support sun style symbol versioning.
5213506e
RW
16726 else
16727 # just fail for now
16728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
16729$as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
16730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
16731$as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
16732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
16733$as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
16734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16735$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16736 enable_symvers=no
16737 fi
a68ab351 16738fi
5213506e
RW
16739
16740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports .symver directive" >&5
16741$as_echo_n "checking whether the target supports .symver directive... " >&6; }
22e05272 16742if ${libgomp_cv_have_as_symver_directive+:} false; then :
5213506e 16743 $as_echo_n "(cached) " >&6
a68ab351 16744else
a68ab351 16745
5213506e 16746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a68ab351 16747/* end confdefs.h. */
5213506e 16748void foo (void); __asm (".symver foo, bar@SYMVER");
a68ab351
JJ
16749int
16750main ()
16751{
a68ab351
JJ
16752
16753 ;
16754 return 0;
16755}
16756_ACEOF
5213506e
RW
16757if ac_fn_c_try_compile "$LINENO"; then :
16758 libgomp_cv_have_as_symver_directive=yes
a68ab351 16759else
5213506e
RW
16760 libgomp_cv_have_as_symver_directive=no
16761fi
16762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16763fi
16764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_as_symver_directive" >&5
16765$as_echo "$libgomp_cv_have_as_symver_directive" >&6; }
16766if test $libgomp_cv_have_as_symver_directive = yes; then
16767
16768$as_echo "#define HAVE_AS_SYMVER_DIRECTIVE 1" >>confdefs.h
a68ab351 16769
a68ab351 16770fi
5213506e
RW
16771
16772 if test $enable_symvers != no; then
16773 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
16774 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
a68ab351 16775else
5213506e
RW
16776 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
16777 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
16778fi
a68ab351 16779
6d28b933
RO
16780 if test $enable_symvers = gnu; then
16781 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE=
16782 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
16783else
16784 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
16785 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE=
16786fi
16787
16788 if test $enable_symvers = sun; then
16789 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE=
16790 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
16791else
16792 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
16793 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE=
16794fi
16795
5213506e
RW
16796{ $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
16797$as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
a68ab351 16798
6d28b933
RO
16799if test $enable_symvers != no ; then
16800 case ${target_os} in
16801 # The Solaris 2 runtime linker doesn't support the GNU extension of
16802 # binding the same symbol to different versions
16803 solaris2*)
cc2de92d 16804 ;;
6d28b933
RO
16805 # Other platforms with GNU symbol versioning (GNU/Linux, more?) do.
16806 *)
16807
16808$as_echo "#define HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT 1" >>confdefs.h
16809
cc2de92d 16810 ;;
6d28b933 16811 esac
6d28b933
RO
16812fi
16813
16814
5213506e
RW
16815if test $enable_symvers = gnu; then
16816
16817$as_echo "#define LIBGOMP_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
a68ab351
JJ
16818
16819fi
5213506e
RW
16820
16821# Get target configury.
16822. ${srcdir}/configure.tgt
16823CFLAGS="$save_CFLAGS $XCFLAGS"
16824
16825# Check for __sync_val_compare_and_swap, but only after the target has
16826# had a chance to set XCFLAGS.
16827
16828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
16829$as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
22e05272 16830if ${libgomp_cv_have_sync_builtins+:} false; then :
5213506e
RW
16831 $as_echo_n "(cached) " >&6
16832else
16833
16834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a68ab351
JJ
16835/* end confdefs.h. */
16836
16837int
16838main ()
16839{
289a9f86 16840int foo; __sync_val_compare_and_swap(&foo, 0, 1);
a68ab351
JJ
16841 ;
16842 return 0;
16843}
16844_ACEOF
5213506e
RW
16845if ac_fn_c_try_link "$LINENO"; then :
16846 libgomp_cv_have_sync_builtins=yes
16847else
16848 libgomp_cv_have_sync_builtins=no
16849fi
16850rm -f core conftest.err conftest.$ac_objext \
16851 conftest$ac_exeext conftest.$ac_ext
16852fi
16853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_sync_builtins" >&5
16854$as_echo "$libgomp_cv_have_sync_builtins" >&6; }
16855 if test $libgomp_cv_have_sync_builtins = yes; then
a68ab351 16856
5213506e
RW
16857$as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
16858
16859 fi
16860
16861XCFLAGS="$XCFLAGS$XPCFLAGS"
16862
efe33ced
IT
16863# Add CET specific flags if CET is enabled
16864 # Check whether --enable-cet was given.
16865if test "${enable_cet+set}" = set; then :
16866 enableval=$enable_cet;
16867 case "$enableval" in
a0e1df88 16868 yes|no|auto) ;;
22e05272 16869 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
efe33ced
IT
16870 esac
16871
16872else
a0e1df88 16873 enable_cet=no
efe33ced
IT
16874fi
16875
16876
14e335ed
IT
16877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
16878$as_echo_n "checking for CET support... " >&6; }
16879
efe33ced
IT
16880case "$host" in
16881 i[34567]86-*-linux* | x86_64-*-linux*)
16882 case "$enable_cet" in
a0e1df88 16883 auto)
14e335ed
IT
16884 # Check if target supports multi-byte NOPs
16885 # and if assembler supports CET insn.
efe33ced
IT
16886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16887/* end confdefs.h. */
16888
16889int
16890main ()
16891{
14e335ed
IT
16892
16893#if !defined(__SSE2__)
16894#error target does not support multi-byte NOPs
16895#else
efe33ced 16896asm ("setssbsy");
14e335ed
IT
16897#endif
16898
efe33ced
IT
16899 ;
16900 return 0;
16901}
16902_ACEOF
16903if ac_fn_c_try_compile "$LINENO"; then :
16904 enable_cet=yes
16905else
16906 enable_cet=no
16907fi
16908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16909 ;;
16910 yes)
16911 # Check if assembler supports CET.
16912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16913/* end confdefs.h. */
16914
16915int
16916main ()
16917{
16918asm ("setssbsy");
16919 ;
16920 return 0;
16921}
16922_ACEOF
16923if ac_fn_c_try_compile "$LINENO"; then :
16924
16925else
22e05272 16926 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
efe33ced
IT
16927fi
16928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16929 ;;
16930 esac
16931 ;;
16932 *)
16933 enable_cet=no
16934 ;;
16935esac
16936if test x$enable_cet = xyes; then
7b47ecf2 16937 CET_FLAGS="-fcf-protection -mshstk"
14e335ed
IT
16938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16939$as_echo "yes" >&6; }
16940else
16941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16942$as_echo "no" >&6; }
efe33ced
IT
16943fi
16944
16945XCFLAGS="$XCFLAGS $CET_FLAGS"
16946FCFLAGS="$FCFLAGS $CET_FLAGS"
16947
5213506e
RW
16948
16949
16950
16951
16952# Cleanup and exit.
16953CFLAGS="$save_CFLAGS"
16954cat >confcache <<\_ACEOF
16955# This file is a shell script that caches the results of configure
16956# tests run on this system so they can be shared between configure
16957# scripts and configure runs, see configure's option --config-cache.
16958# It is not useful on other systems. If it contains results you don't
16959# want to keep, you may remove or edit it.
16960#
16961# config.status only pays attention to the cache file if you give it
16962# the --recheck option to rerun configure.
16963#
16964# `ac_cv_env_foo' variables (set or unset) will be overridden when
16965# loading this file, other *unset* `ac_cv_foo' will be assigned the
16966# following values.
a68ab351 16967
a68ab351 16968_ACEOF
5213506e
RW
16969
16970# The following way of writing the cache mishandles newlines in values,
16971# but we know of no workaround that is simple, portable, and efficient.
16972# So, we kill variables containing newlines.
16973# Ultrix sh set writes to stderr and can't be redirected directly,
16974# and sets the high bit in the cache file unless we assign to the vars.
16975(
16976 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16977 eval ac_val=\$$ac_var
16978 case $ac_val in #(
16979 *${as_nl}*)
16980 case $ac_var in #(
16981 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16982$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16983 esac
16984 case $ac_var in #(
16985 _ | IFS | as_nl) ;; #(
16986 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16987 *) { eval $ac_var=; unset $ac_var;} ;;
16988 esac ;;
16989 esac
16990 done
16991
16992 (set) 2>&1 |
16993 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16994 *${as_nl}ac_space=\ *)
16995 # `set' does not quote correctly, so add quotes: double-quote
16996 # substitution turns \\\\ into \\, and sed turns \\ into \.
16997 sed -n \
16998 "s/'/'\\\\''/g;
16999 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17000 ;; #(
17001 *)
17002 # `set' quotes correctly as required by POSIX, so do not add quotes.
17003 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17004 ;;
17005 esac |
17006 sort
17007) |
17008 sed '
17009 /^ac_cv_env_/b end
17010 t clear
17011 :clear
17012 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17013 t end
17014 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17015 :end' >>confcache
17016if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17017 if test -w "$cache_file"; then
22e05272 17018 if test "x$cache_file" != "x/dev/null"; then
5213506e
RW
17019 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17020$as_echo "$as_me: updating cache $cache_file" >&6;}
22e05272
JM
17021 if test ! -f "$cache_file" || test -h "$cache_file"; then
17022 cat confcache >"$cache_file"
17023 else
17024 case $cache_file in #(
17025 */* | ?:*)
17026 mv -f confcache "$cache_file"$$ &&
17027 mv -f "$cache_file"$$ "$cache_file" ;; #(
17028 *)
17029 mv -f confcache "$cache_file" ;;
17030 esac
17031 fi
17032 fi
5213506e
RW
17033 else
17034 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17035$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17036 fi
17037fi
17038rm -f confcache
17039
17040if test ${multilib} = yes; then
17041 multilib_arg="--enable-multilib"
a68ab351 17042else
5213506e
RW
17043 multilib_arg=
17044fi
17045
17046# Set up the set of libraries that we need to link against for libgomp.
de14871c 17047# Note that the GOMP_SELF_SPEC in gcc.c may force -pthread,
5213506e
RW
17048# which will force linkage against -lpthread (or equivalent for the system).
17049# That's not 100% ideal, but about the best we can do easily.
17050if test $enable_shared = yes; then
17051 link_gomp="-lgomp %{static: $LIBS}"
17052else
17053 link_gomp="-lgomp $LIBS"
17054fi
17055
17056
17057 if test "$ac_cv_fc_compiler_gnu" = yes; then
17058 USE_FORTRAN_TRUE=
17059 USE_FORTRAN_FALSE='#'
17060else
17061 USE_FORTRAN_TRUE='#'
17062 USE_FORTRAN_FALSE=
17063fi
17064
17065
17066# ??? 2006-01-24: Paulo committed to asking autoconf folk to document
17067# and export AC_COMPUTE_INT. If that happens, then we'll need to remove
17068# the underscore here and update the PREREQ. If it doesn't, then we'll
17069# need to copy this macro to our acinclude.m4.
17070save_CFLAGS="$CFLAGS"
17071for i in $config_path; do
17072 if test -f $srcdir/config/$i/omp-lock.h; then
17073 CFLAGS="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h"
17074 break
17075 fi
17076done
a68ab351 17077
5213506e 17078if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_t)" "OMP_LOCK_SIZE" ""; then :
a68ab351 17079
5213506e 17080else
22e05272 17081 as_fn_error $? "unsupported system, cannot find sizeof (omp_lock_t)" "$LINENO" 5
5213506e 17082fi
a68ab351 17083
a68ab351 17084
5213506e 17085if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_t)" "OMP_LOCK_ALIGN" ""; then :
a68ab351 17086
5213506e 17087fi
a68ab351 17088
a68ab351 17089
5213506e 17090if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_t)" "OMP_NEST_LOCK_SIZE" ""; then :
a68ab351 17091
a68ab351 17092fi
a68ab351 17093
a68ab351 17094
5213506e 17095if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_t)" "OMP_NEST_LOCK_ALIGN" ""; then :
a68ab351 17096
a68ab351 17097fi
a68ab351 17098
a68ab351 17099
5213506e 17100if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_25_t)" "OMP_LOCK_25_SIZE" ""; then :
a68ab351 17101
a68ab351 17102else
22e05272 17103 as_fn_error $? "unsupported system, cannot find sizeof (omp_lock_25_t)" "$LINENO" 5
5213506e
RW
17104fi
17105
17106
17107if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_25_t)" "OMP_LOCK_25_ALIGN" ""; then :
a68ab351
JJ
17108
17109fi
5213506e
RW
17110
17111
17112if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_SIZE" ""; then :
17113
a68ab351 17114fi
5213506e
RW
17115
17116
17117if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_ALIGN" ""; then :
17118
a68ab351 17119fi
5213506e
RW
17120
17121
a68ab351
JJ
17122
17123# If the lock fits in an integer, then arrange for Fortran to use that
17124# integer. If it doesn't, then arrange for Fortran to use a pointer.
17125# Except that we don't have a way at present to multi-lib the installed
17126# Fortran modules, so we assume 8 bytes for pointers, regardless of the
17127# actual target.
17128OMP_LOCK_KIND=$OMP_LOCK_SIZE
17129OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
17130if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
17131 OMP_LOCK_KIND=8
17132fi
17133if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
17134 OMP_NEST_LOCK_KIND=8
17135fi
17136OMP_LOCK_25_KIND=$OMP_LOCK_25_SIZE
17137OMP_NEST_LOCK_25_KIND=$OMP_NEST_LOCK_25_SIZE
17138if test $OMP_LOCK_25_SIZE -gt 8 || test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then
17139 OMP_LOCK_25_KIND=8
17140fi
17141if test $OMP_NEST_LOCK_25_SIZE -gt 8 || test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then
17142 OMP_NEST_LOCK_25_KIND=8
17143fi
17144
17145
17146
17147
17148
17149
03b8fe49
PB
17150
17151
17152
17153
17154
17155
17156
17157CFLAGS="$save_CFLAGS"
17158
3c36aa6b
JJ
17159# Determine what GCC version number to use in filesystem paths.
17160
17161 get_gcc_base_ver="cat"
17162
17163# Check whether --with-gcc-major-version-only was given.
17164if test "${with_gcc_major_version_only+set}" = set; then :
17165 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
001ddaa8 17166 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
3c36aa6b
JJ
17167 fi
17168
17169fi
17170
17171
17172
17173
5213506e 17174ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
03b8fe49 17175
5213506e 17176ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
953ff289 17177
41dbbb37
TS
17178ac_config_files="$ac_config_files testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in"
17179
953ff289
DN
17180cat >confcache <<\_ACEOF
17181# This file is a shell script that caches the results of configure
17182# tests run on this system so they can be shared between configure
17183# scripts and configure runs, see configure's option --config-cache.
17184# It is not useful on other systems. If it contains results you don't
17185# want to keep, you may remove or edit it.
17186#
17187# config.status only pays attention to the cache file if you give it
17188# the --recheck option to rerun configure.
17189#
17190# `ac_cv_env_foo' variables (set or unset) will be overridden when
17191# loading this file, other *unset* `ac_cv_foo' will be assigned the
17192# following values.
17193
17194_ACEOF
17195
17196# The following way of writing the cache mishandles newlines in values,
17197# but we know of no workaround that is simple, portable, and efficient.
5213506e 17198# So, we kill variables containing newlines.
953ff289
DN
17199# Ultrix sh set writes to stderr and can't be redirected directly,
17200# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
17201(
17202 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17203 eval ac_val=\$$ac_var
17204 case $ac_val in #(
17205 *${as_nl}*)
17206 case $ac_var in #(
17207 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17208$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17209 esac
17210 case $ac_var in #(
17211 _ | IFS | as_nl) ;; #(
17212 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17213 *) { eval $ac_var=; unset $ac_var;} ;;
17214 esac ;;
17215 esac
17216 done
17217
953ff289 17218 (set) 2>&1 |
5213506e
RW
17219 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17220 *${as_nl}ac_space=\ *)
17221 # `set' does not quote correctly, so add quotes: double-quote
17222 # substitution turns \\\\ into \\, and sed turns \\ into \.
953ff289
DN
17223 sed -n \
17224 "s/'/'\\\\''/g;
17225 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 17226 ;; #(
953ff289
DN
17227 *)
17228 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 17229 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
953ff289 17230 ;;
5213506e
RW
17231 esac |
17232 sort
17233) |
953ff289 17234 sed '
5213506e 17235 /^ac_cv_env_/b end
953ff289 17236 t clear
5213506e 17237 :clear
953ff289
DN
17238 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17239 t end
5213506e
RW
17240 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17241 :end' >>confcache
17242if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17243 if test -w "$cache_file"; then
22e05272 17244 if test "x$cache_file" != "x/dev/null"; then
5213506e
RW
17245 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17246$as_echo "$as_me: updating cache $cache_file" >&6;}
22e05272
JM
17247 if test ! -f "$cache_file" || test -h "$cache_file"; then
17248 cat confcache >"$cache_file"
17249 else
17250 case $cache_file in #(
17251 */* | ?:*)
17252 mv -f confcache "$cache_file"$$ &&
17253 mv -f "$cache_file"$$ "$cache_file" ;; #(
17254 *)
17255 mv -f confcache "$cache_file" ;;
17256 esac
17257 fi
17258 fi
953ff289 17259 else
5213506e
RW
17260 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17261$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
953ff289
DN
17262 fi
17263fi
17264rm -f confcache
17265
17266test "x$prefix" = xNONE && prefix=$ac_default_prefix
17267# Let make expand exec_prefix.
17268test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17269
953ff289
DN
17270DEFS=-DHAVE_CONFIG_H
17271
17272ac_libobjs=
17273ac_ltlibobjs=
22e05272 17274U=
953ff289
DN
17275for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17276 # 1. Remove the extension, and $U if already installed.
5213506e
RW
17277 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17278 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17279 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17280 # will be set to the directory where LIBOBJS objects are built.
17281 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17282 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
953ff289
DN
17283done
17284LIBOBJS=$ac_libobjs
17285
17286LTLIBOBJS=$ac_ltlibobjs
17287
17288
627ab4b8 17289if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
22e05272 17290 as_fn_error $? "conditional \"GENINSRC\" was never defined.
5213506e
RW
17291Usually this means the macro was only invoked conditionally." "$LINENO" 5
17292fi
22e05272
JM
17293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17294$as_echo_n "checking that generated files are newer than configure... " >&6; }
17295 if test -n "$am_sleep_pid"; then
17296 # Hide warnings about reused PIDs.
17297 wait $am_sleep_pid 2>/dev/null
17298 fi
17299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17300$as_echo "done" >&6; }
5213506e
RW
17301 if test -n "$EXEEXT"; then
17302 am__EXEEXT_TRUE=
17303 am__EXEEXT_FALSE='#'
17304else
17305 am__EXEEXT_TRUE='#'
17306 am__EXEEXT_FALSE=
627ab4b8 17307fi
5213506e 17308
953ff289 17309if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22e05272 17310 as_fn_error $? "conditional \"AMDEP\" was never defined.
5213506e 17311Usually this means the macro was only invoked conditionally." "$LINENO" 5
953ff289
DN
17312fi
17313if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22e05272 17314 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
5213506e 17315Usually this means the macro was only invoked conditionally." "$LINENO" 5
953ff289 17316fi
748b9d7c 17317if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
22e05272 17318 as_fn_error $? "conditional \"BUILD_INFO\" was never defined.
5213506e 17319Usually this means the macro was only invoked conditionally." "$LINENO" 5
748b9d7c 17320fi
c41303c6 17321if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22e05272 17322 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
5213506e 17323Usually this means the macro was only invoked conditionally." "$LINENO" 5
c41303c6 17324fi
41dbbb37 17325if test -z "${PLUGIN_NVPTX_TRUE}" && test -z "${PLUGIN_NVPTX_FALSE}"; then
22e05272 17326 as_fn_error $? "conditional \"PLUGIN_NVPTX\" was never defined.
41dbbb37
TS
17327Usually this means the macro was only invoked conditionally." "$LINENO" 5
17328fi
b2b40051 17329if test -z "${PLUGIN_HSA_TRUE}" && test -z "${PLUGIN_HSA_FALSE}"; then
22e05272 17330 as_fn_error $? "conditional \"PLUGIN_HSA\" was never defined.
b2b40051
MJ
17331Usually this means the macro was only invoked conditionally." "$LINENO" 5
17332fi
953ff289 17333if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
22e05272 17334 as_fn_error $? "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
5213506e 17335Usually this means the macro was only invoked conditionally." "$LINENO" 5
953ff289 17336fi
6d28b933 17337if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
22e05272 17338 as_fn_error $? "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
6d28b933
RO
17339Usually this means the macro was only invoked conditionally." "$LINENO" 5
17340fi
17341if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
22e05272 17342 as_fn_error $? "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
6d28b933
RO
17343Usually this means the macro was only invoked conditionally." "$LINENO" 5
17344fi
953ff289 17345if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
22e05272 17346 as_fn_error $? "conditional \"USE_FORTRAN\" was never defined.
5213506e 17347Usually this means the macro was only invoked conditionally." "$LINENO" 5
953ff289
DN
17348fi
17349
22e05272 17350: "${CONFIG_STATUS=./config.status}"
5213506e 17351ac_write_fail=0
953ff289
DN
17352ac_clean_files_save=$ac_clean_files
17353ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
17354{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17355$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17356as_write_fail=0
17357cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
953ff289
DN
17358#! $SHELL
17359# Generated by $as_me.
17360# Run this file to recreate the current configuration.
17361# Compiler output produced by configure, useful for debugging
17362# configure, is in config.log if it exists.
17363
17364debug=false
17365ac_cs_recheck=false
17366ac_cs_silent=false
953ff289 17367
5213506e
RW
17368SHELL=\${CONFIG_SHELL-$SHELL}
17369export SHELL
17370_ASEOF
17371cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17372## -------------------- ##
17373## M4sh Initialization. ##
17374## -------------------- ##
17375
17376# Be more Bourne compatible
17377DUALCASE=1; export DUALCASE # for MKS sh
17378if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
953ff289
DN
17379 emulate sh
17380 NULLCMD=:
5213506e 17381 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
953ff289
DN
17382 # is contrary to our usage. Disable this feature.
17383 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
17384 setopt NO_GLOB_SUBST
17385else
17386 case `(set -o) 2>/dev/null` in #(
17387 *posix*) :
17388 set -o posix ;; #(
17389 *) :
17390 ;;
17391esac
953ff289 17392fi
953ff289 17393
5213506e
RW
17394
17395as_nl='
17396'
17397export as_nl
17398# Printing a long string crashes Solaris 7 /usr/bin/printf.
17399as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17400as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17401as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17402# Prefer a ksh shell builtin over an external printf program on Solaris,
17403# but without wasting forks for bash or zsh.
17404if test -z "$BASH_VERSION$ZSH_VERSION" \
17405 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17406 as_echo='print -r --'
17407 as_echo_n='print -rn --'
17408elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17409 as_echo='printf %s\n'
17410 as_echo_n='printf %s'
17411else
17412 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17413 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17414 as_echo_n='/usr/ucb/echo -n'
17415 else
17416 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17417 as_echo_n_body='eval
17418 arg=$1;
17419 case $arg in #(
17420 *"$as_nl"*)
17421 expr "X$arg" : "X\\(.*\\)$as_nl";
17422 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17423 esac;
17424 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17425 '
17426 export as_echo_n_body
17427 as_echo_n='sh -c $as_echo_n_body as_echo'
17428 fi
17429 export as_echo_body
17430 as_echo='sh -c $as_echo_body as_echo'
17431fi
17432
17433# The user is always right.
17434if test "${PATH_SEPARATOR+set}" != set; then
17435 PATH_SEPARATOR=:
17436 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17437 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17438 PATH_SEPARATOR=';'
17439 }
953ff289
DN
17440fi
17441
17442
5213506e
RW
17443# IFS
17444# We need space, tab and new line, in precisely that order. Quoting is
17445# there to prevent editors from complaining about space-tab.
17446# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17447# splitting by setting IFS to empty value.)
17448IFS=" "" $as_nl"
17449
17450# Find who we are. Look in the path if we contain no directory separator.
22e05272 17451as_myself=
5213506e
RW
17452case $0 in #((
17453 *[\\/]* ) as_myself=$0 ;;
17454 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17455for as_dir in $PATH
17456do
17457 IFS=$as_save_IFS
17458 test -z "$as_dir" && as_dir=.
17459 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17460 done
17461IFS=$as_save_IFS
17462
17463 ;;
17464esac
17465# We did not find ourselves, most probably we were run as `sh COMMAND'
17466# in which case we are not to be found in the path.
17467if test "x$as_myself" = x; then
17468 as_myself=$0
17469fi
17470if test ! -f "$as_myself"; then
17471 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17472 exit 1
17473fi
17474
17475# Unset variables that we do not need and which cause bugs (e.g. in
17476# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17477# suppresses any "Segmentation fault" message there. '((' could
17478# trigger a bug in pdksh 5.2.14.
17479for as_var in BASH_ENV ENV MAIL MAILPATH
17480do eval test x\${$as_var+set} = xset \
17481 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17482done
953ff289
DN
17483PS1='$ '
17484PS2='> '
17485PS4='+ '
17486
17487# NLS nuisances.
5213506e
RW
17488LC_ALL=C
17489export LC_ALL
17490LANGUAGE=C
17491export LANGUAGE
17492
17493# CDPATH.
17494(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17495
17496
22e05272
JM
17497# as_fn_error STATUS ERROR [LINENO LOG_FD]
17498# ----------------------------------------
5213506e
RW
17499# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17500# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 17501# script with STATUS, using 1 if that was 0.
5213506e
RW
17502as_fn_error ()
17503{
22e05272
JM
17504 as_status=$1; test $as_status -eq 0 && as_status=1
17505 if test "$4"; then
17506 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17507 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
953ff289 17508 fi
22e05272 17509 $as_echo "$as_me: error: $2" >&2
5213506e
RW
17510 as_fn_exit $as_status
17511} # as_fn_error
17512
17513
17514# as_fn_set_status STATUS
17515# -----------------------
17516# Set $? to STATUS, without forking.
17517as_fn_set_status ()
17518{
17519 return $1
17520} # as_fn_set_status
17521
17522# as_fn_exit STATUS
17523# -----------------
17524# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17525as_fn_exit ()
17526{
17527 set +e
17528 as_fn_set_status $1
17529 exit $1
17530} # as_fn_exit
17531
17532# as_fn_unset VAR
17533# ---------------
17534# Portably unset VAR.
17535as_fn_unset ()
17536{
17537 { eval $1=; unset $1;}
17538}
17539as_unset=as_fn_unset
17540# as_fn_append VAR VALUE
17541# ----------------------
17542# Append the text in VALUE to the end of the definition contained in VAR. Take
17543# advantage of any shell optimizations that allow amortized linear growth over
17544# repeated appends, instead of the typical quadratic growth present in naive
17545# implementations.
17546if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17547 eval 'as_fn_append ()
17548 {
17549 eval $1+=\$2
17550 }'
17551else
17552 as_fn_append ()
17553 {
17554 eval $1=\$$1\$2
17555 }
17556fi # as_fn_append
17557
17558# as_fn_arith ARG...
17559# ------------------
17560# Perform arithmetic evaluation on the ARGs, and store the result in the
17561# global $as_val. Take advantage of shells that can avoid forks. The arguments
17562# must be portable across $(()) and expr.
17563if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17564 eval 'as_fn_arith ()
17565 {
17566 as_val=$(( $* ))
17567 }'
17568else
17569 as_fn_arith ()
17570 {
17571 as_val=`expr "$@" || test $? -eq 1`
17572 }
17573fi # as_fn_arith
17574
953ff289 17575
5213506e
RW
17576if expr a : '\(a\)' >/dev/null 2>&1 &&
17577 test "X`expr 00001 : '.*\(...\)'`" = X001; then
953ff289
DN
17578 as_expr=expr
17579else
17580 as_expr=false
17581fi
17582
5213506e 17583if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
953ff289
DN
17584 as_basename=basename
17585else
17586 as_basename=false
17587fi
17588
5213506e
RW
17589if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17590 as_dirname=dirname
17591else
17592 as_dirname=false
17593fi
953ff289 17594
5213506e 17595as_me=`$as_basename -- "$0" ||
953ff289
DN
17596$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17597 X"$0" : 'X\(//\)$' \| \
5213506e
RW
17598 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17599$as_echo X/"$0" |
17600 sed '/^.*\/\([^/][^/]*\)\/*$/{
17601 s//\1/
17602 q
17603 }
17604 /^X\/\(\/\/\)$/{
17605 s//\1/
17606 q
17607 }
17608 /^X\/\(\/\).*/{
17609 s//\1/
17610 q
17611 }
17612 s/.*/./; q'`
953ff289 17613
953ff289
DN
17614# Avoid depending upon Character Ranges.
17615as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17616as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17617as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17618as_cr_digits='0123456789'
17619as_cr_alnum=$as_cr_Letters$as_cr_digits
17620
5213506e
RW
17621ECHO_C= ECHO_N= ECHO_T=
17622case `echo -n x` in #(((((
17623-n*)
17624 case `echo 'xy\c'` in
17625 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17626 xy) ECHO_C='\c';;
17627 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17628 ECHO_T=' ';;
17629 esac;;
17630*)
17631 ECHO_N='-n';;
953ff289
DN
17632esac
17633
5213506e
RW
17634rm -f conf$$ conf$$.exe conf$$.file
17635if test -d conf$$.dir; then
17636 rm -f conf$$.dir/conf$$.file
953ff289 17637else
5213506e
RW
17638 rm -f conf$$.dir
17639 mkdir conf$$.dir 2>/dev/null
953ff289 17640fi
5213506e
RW
17641if (echo >conf$$.file) 2>/dev/null; then
17642 if ln -s conf$$.file conf$$ 2>/dev/null; then
953ff289 17643 as_ln_s='ln -s'
5213506e
RW
17644 # ... but there are two gotchas:
17645 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17646 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 17647 # In both cases, we have to default to `cp -pR'.
5213506e 17648 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 17649 as_ln_s='cp -pR'
5213506e
RW
17650 elif ln conf$$.file conf$$ 2>/dev/null; then
17651 as_ln_s=ln
17652 else
22e05272 17653 as_ln_s='cp -pR'
953ff289 17654 fi
953ff289 17655else
22e05272 17656 as_ln_s='cp -pR'
953ff289 17657fi
5213506e
RW
17658rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17659rmdir conf$$.dir 2>/dev/null
17660
17661
17662# as_fn_mkdir_p
17663# -------------
17664# Create "$as_dir" as a directory, including parents if necessary.
17665as_fn_mkdir_p ()
17666{
17667
17668 case $as_dir in #(
17669 -*) as_dir=./$as_dir;;
17670 esac
17671 test -d "$as_dir" || eval $as_mkdir_p || {
17672 as_dirs=
17673 while :; do
17674 case $as_dir in #(
17675 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17676 *) as_qdir=$as_dir;;
17677 esac
17678 as_dirs="'$as_qdir' $as_dirs"
17679 as_dir=`$as_dirname -- "$as_dir" ||
17680$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17681 X"$as_dir" : 'X\(//\)[^/]' \| \
17682 X"$as_dir" : 'X\(//\)$' \| \
17683 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17684$as_echo X"$as_dir" |
17685 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17686 s//\1/
17687 q
17688 }
17689 /^X\(\/\/\)[^/].*/{
17690 s//\1/
17691 q
17692 }
17693 /^X\(\/\/\)$/{
17694 s//\1/
17695 q
17696 }
17697 /^X\(\/\).*/{
17698 s//\1/
17699 q
17700 }
17701 s/.*/./; q'`
17702 test -d "$as_dir" && break
17703 done
17704 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 17705 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5213506e 17706
953ff289 17707
5213506e 17708} # as_fn_mkdir_p
953ff289 17709if mkdir -p . 2>/dev/null; then
5213506e 17710 as_mkdir_p='mkdir -p "$as_dir"'
953ff289
DN
17711else
17712 test -d ./-p && rmdir ./-p
17713 as_mkdir_p=false
17714fi
17715
22e05272
JM
17716
17717# as_fn_executable_p FILE
17718# -----------------------
17719# Test if FILE is an executable regular file.
17720as_fn_executable_p ()
17721{
17722 test -f "$1" && test -x "$1"
17723} # as_fn_executable_p
17724as_test_x='test -x'
17725as_executable_p=as_fn_executable_p
953ff289
DN
17726
17727# Sed expression to map a string onto a valid CPP name.
17728as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17729
5213506e
RW
17730# Sed expression to map a string onto a valid variable name.
17731as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
953ff289 17732
953ff289
DN
17733
17734exec 6>&1
5213506e
RW
17735## ----------------------------------- ##
17736## Main body of $CONFIG_STATUS script. ##
17737## ----------------------------------- ##
17738_ASEOF
17739test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17740
17741cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17742# Save the log message, to keep $0 and so on meaningful, and to
953ff289 17743# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
17744# values after options handling.
17745ac_log="
f1f3453e 17746This file was extended by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
22e05272 17747generated by GNU Autoconf 2.69. Invocation command line was
953ff289
DN
17748
17749 CONFIG_FILES = $CONFIG_FILES
17750 CONFIG_HEADERS = $CONFIG_HEADERS
17751 CONFIG_LINKS = $CONFIG_LINKS
17752 CONFIG_COMMANDS = $CONFIG_COMMANDS
17753 $ $0 $@
17754
5213506e
RW
17755on `(hostname || uname -n) 2>/dev/null | sed 1q`
17756"
17757
953ff289
DN
17758_ACEOF
17759
5213506e
RW
17760case $ac_config_files in *"
17761"*) set x $ac_config_files; shift; ac_config_files=$*;;
17762esac
953ff289 17763
5213506e
RW
17764case $ac_config_headers in *"
17765"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17766esac
953ff289 17767
953ff289 17768
5213506e
RW
17769cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17770# Files that config.status was made for.
17771config_files="$ac_config_files"
17772config_headers="$ac_config_headers"
17773config_commands="$ac_config_commands"
953ff289 17774
5213506e 17775_ACEOF
953ff289 17776
5213506e 17777cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
953ff289 17778ac_cs_usage="\
5213506e
RW
17779\`$as_me' instantiates files and other configuration actions
17780from templates according to the current configuration. Unless the files
17781and actions are specified as TAGs, all are instantiated by default.
953ff289 17782
5213506e 17783Usage: $0 [OPTION]... [TAG]...
953ff289
DN
17784
17785 -h, --help print this help, then exit
5213506e 17786 -V, --version print version number and configuration settings, then exit
22e05272 17787 --config print configuration, then exit
5213506e
RW
17788 -q, --quiet, --silent
17789 do not print progress messages
953ff289
DN
17790 -d, --debug don't remove temporary files
17791 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
17792 --file=FILE[:TEMPLATE]
17793 instantiate the configuration file FILE
17794 --header=FILE[:TEMPLATE]
17795 instantiate the configuration header FILE
953ff289
DN
17796
17797Configuration files:
17798$config_files
17799
17800Configuration headers:
17801$config_headers
17802
17803Configuration commands:
17804$config_commands
17805
5213506e 17806Report bugs to the package provider.
f1f3453e 17807GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
5213506e 17808General help using GNU software: <http://www.gnu.org/gethelp/>."
953ff289 17809
5213506e
RW
17810_ACEOF
17811cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 17812ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
953ff289 17813ac_cs_version="\\
f1f3453e 17814GNU Offloading and Multi Processing Runtime Library config.status 1.0
22e05272
JM
17815configured by $0, generated by GNU Autoconf 2.69,
17816 with options \\"\$ac_cs_config\\"
953ff289 17817
22e05272 17818Copyright (C) 2012 Free Software Foundation, Inc.
953ff289
DN
17819This config.status script is free software; the Free Software Foundation
17820gives unlimited permission to copy, distribute and modify it."
5213506e
RW
17821
17822ac_pwd='$ac_pwd'
17823srcdir='$srcdir'
17824INSTALL='$INSTALL'
17825MKDIR_P='$MKDIR_P'
17826AWK='$AWK'
17827test -n "\$AWK" || AWK=awk
953ff289
DN
17828_ACEOF
17829
5213506e
RW
17830cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17831# The default lists apply if the user does not specify any file.
953ff289
DN
17832ac_need_defaults=:
17833while test $# != 0
17834do
17835 case $1 in
22e05272 17836 --*=?*)
5213506e
RW
17837 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17838 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
953ff289
DN
17839 ac_shift=:
17840 ;;
22e05272
JM
17841 --*=)
17842 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17843 ac_optarg=
17844 ac_shift=:
17845 ;;
5213506e 17846 *)
953ff289
DN
17847 ac_option=$1
17848 ac_optarg=$2
17849 ac_shift=shift
17850 ;;
953ff289
DN
17851 esac
17852
17853 case $ac_option in
17854 # Handling of the options.
953ff289
DN
17855 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17856 ac_cs_recheck=: ;;
5213506e
RW
17857 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17858 $as_echo "$ac_cs_version"; exit ;;
22e05272
JM
17859 --config | --confi | --conf | --con | --co | --c )
17860 $as_echo "$ac_cs_config"; exit ;;
5213506e 17861 --debug | --debu | --deb | --de | --d | -d )
953ff289
DN
17862 debug=: ;;
17863 --file | --fil | --fi | --f )
17864 $ac_shift
5213506e
RW
17865 case $ac_optarg in
17866 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22e05272 17867 '') as_fn_error $? "missing file argument" ;;
5213506e
RW
17868 esac
17869 as_fn_append CONFIG_FILES " '$ac_optarg'"
953ff289
DN
17870 ac_need_defaults=false;;
17871 --header | --heade | --head | --hea )
17872 $ac_shift
5213506e
RW
17873 case $ac_optarg in
17874 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17875 esac
17876 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
953ff289 17877 ac_need_defaults=false;;
5213506e
RW
17878 --he | --h)
17879 # Conflict between --help and --header
22e05272 17880 as_fn_error $? "ambiguous option: \`$1'
5213506e
RW
17881Try \`$0 --help' for more information.";;
17882 --help | --hel | -h )
17883 $as_echo "$ac_cs_usage"; exit ;;
953ff289
DN
17884 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17885 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17886 ac_cs_silent=: ;;
17887
17888 # This is an error.
22e05272 17889 -*) as_fn_error $? "unrecognized option: \`$1'
5213506e 17890Try \`$0 --help' for more information." ;;
953ff289 17891
5213506e
RW
17892 *) as_fn_append ac_config_targets " $1"
17893 ac_need_defaults=false ;;
953ff289
DN
17894
17895 esac
17896 shift
17897done
17898
17899ac_configure_extra_args=
17900
17901if $ac_cs_silent; then
17902 exec 6>/dev/null
17903 ac_configure_extra_args="$ac_configure_extra_args --silent"
17904fi
17905
17906_ACEOF
5213506e 17907cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
953ff289 17908if \$ac_cs_recheck; then
22e05272 17909 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5213506e
RW
17910 shift
17911 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17912 CONFIG_SHELL='$SHELL'
17913 export CONFIG_SHELL
17914 exec "\$@"
953ff289
DN
17915fi
17916
17917_ACEOF
5213506e
RW
17918cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17919exec 5>>config.log
17920{
17921 echo
17922 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17923## Running $as_me. ##
17924_ASBOX
17925 $as_echo "$ac_log"
17926} >&5
953ff289 17927
5213506e
RW
17928_ACEOF
17929cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
953ff289 17930#
5213506e 17931# INIT-COMMANDS
953ff289
DN
17932#
17933
953ff289
DN
17934srcdir="$srcdir"
17935host="$host"
17936target="$target"
17937with_multisubdir="$with_multisubdir"
17938with_multisrctop="$with_multisrctop"
17939with_target_subdir="$with_target_subdir"
17940ac_configure_args="${multilib_arg} ${ac_configure_args}"
17941multi_basedir="$multi_basedir"
17942CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17943CC="$CC"
396b7fa4
JM
17944CXX="$CXX"
17945GFORTRAN="$GFORTRAN"
22e05272 17946GDC="$GDC"
953ff289
DN
17947AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17948
1cf3d07d
SE
17949
17950# The HP-UX ksh and POSIX shell print the target directory to stdout
17951# if CDPATH is set.
17952(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17953
17954sed_quote_subst='$sed_quote_subst'
17955double_quote_subst='$double_quote_subst'
17956delay_variable_subst='$delay_variable_subst'
43e02a8a
RW
17957macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17958macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17959enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17960enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17961pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17962enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17963SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17964ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17965host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17966host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17967host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17968build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17969build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17970build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17971SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17972Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17973GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17974EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17975FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17976LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17977NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17978LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17979max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17980ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17981exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17982lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17983lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17984lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17985reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17986reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17987OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17988deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17989file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17990AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17991AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17992STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17993RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17994old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17995old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17996old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17997lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17998CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17999CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18000compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18001GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18002lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18003lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18004lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18005lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
18006objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18007MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18008lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18009lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18010lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18011lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18012lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18013need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18014DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18015NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18016LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18017OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18018OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18019libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18020shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18021extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18022archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18023enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18024export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18025whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18026compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18027old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18028old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18029archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18030archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18031module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18032module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18033with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18034allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18035no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18036hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18037hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18038hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18039hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18040hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18041hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18042hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18043hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18044inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18045link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18046fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
18047always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18048export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18049exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18050include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18051prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18052file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18053variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18054need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18055need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18056version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18057runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18058shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18059shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18060libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18061library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18062soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18063install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18064postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18065postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18066finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18067finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18068hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18069sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18070sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18071hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18072enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18073enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18074enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18075old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18076striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18077compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18078predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18079postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18080predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18081postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18082compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18083LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
18084reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
18085reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
18086old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
18087compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
18088GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
18089lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
18090lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
18091lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
18092lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
18093lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
18094archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
18095enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
18096export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
18097whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
18098compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
18099old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
18100old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
18101archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
18102archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
18103module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
18104module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
18105with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
18106allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
18107no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
18108hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
18109hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
18110hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
18111hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
18112hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
18113hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
18114hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
18115hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
18116inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
18117link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
18118fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
18119always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
18120export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
18121exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
18122include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
18123prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
18124file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
18125hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
18126compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
18127predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
18128postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
18129predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
18130postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
18131compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
1cf3d07d
SE
18132
18133LTCC='$LTCC'
18134LTCFLAGS='$LTCFLAGS'
18135compiler='$compiler_DEFAULT'
18136
43e02a8a
RW
18137# A function that is used when there is no print builtin or printf.
18138func_fallback_echo ()
18139{
18140 eval 'cat <<_LTECHO_EOF
18141\$1
18142_LTECHO_EOF'
18143}
18144
1cf3d07d 18145# Quote evaled strings.
43e02a8a
RW
18146for var in SHELL \
18147ECHO \
18148SED \
1cf3d07d
SE
18149GREP \
18150EGREP \
18151FGREP \
18152LD \
18153NM \
18154LN_S \
18155lt_SP2NL \
18156lt_NL2SP \
18157reload_flag \
6b4a97ed 18158OBJDUMP \
1cf3d07d
SE
18159deplibs_check_method \
18160file_magic_cmd \
18161AR \
18162AR_FLAGS \
18163STRIP \
18164RANLIB \
18165CC \
18166CFLAGS \
18167compiler \
18168lt_cv_sys_global_symbol_pipe \
18169lt_cv_sys_global_symbol_to_cdecl \
18170lt_cv_sys_global_symbol_to_c_name_address \
6b4a97ed 18171lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
1cf3d07d
SE
18172lt_prog_compiler_no_builtin_flag \
18173lt_prog_compiler_wl \
18174lt_prog_compiler_pic \
18175lt_prog_compiler_static \
18176lt_cv_prog_compiler_c_o \
18177need_locks \
6b4a97ed
PG
18178DSYMUTIL \
18179NMEDIT \
18180LIPO \
18181OTOOL \
18182OTOOL64 \
1cf3d07d
SE
18183shrext_cmds \
18184export_dynamic_flag_spec \
18185whole_archive_flag_spec \
18186compiler_needs_object \
18187with_gnu_ld \
18188allow_undefined_flag \
18189no_undefined_flag \
18190hardcode_libdir_flag_spec \
18191hardcode_libdir_flag_spec_ld \
18192hardcode_libdir_separator \
18193fix_srcfile_path \
18194exclude_expsyms \
18195include_expsyms \
18196file_list_spec \
18197variables_saved_for_relink \
18198libname_spec \
18199library_names_spec \
18200soname_spec \
43e02a8a 18201install_override_mode \
1cf3d07d
SE
18202finish_eval \
18203old_striplib \
18204striplib \
6b4a97ed 18205compiler_lib_search_dirs \
1cf3d07d
SE
18206predep_objects \
18207postdep_objects \
18208predeps \
18209postdeps \
18210compiler_lib_search_path \
18211LD_FC \
43e02a8a 18212reload_flag_FC \
1cf3d07d
SE
18213compiler_FC \
18214lt_prog_compiler_no_builtin_flag_FC \
18215lt_prog_compiler_wl_FC \
18216lt_prog_compiler_pic_FC \
18217lt_prog_compiler_static_FC \
18218lt_cv_prog_compiler_c_o_FC \
18219export_dynamic_flag_spec_FC \
18220whole_archive_flag_spec_FC \
18221compiler_needs_object_FC \
18222with_gnu_ld_FC \
18223allow_undefined_flag_FC \
18224no_undefined_flag_FC \
18225hardcode_libdir_flag_spec_FC \
18226hardcode_libdir_flag_spec_ld_FC \
18227hardcode_libdir_separator_FC \
18228fix_srcfile_path_FC \
18229exclude_expsyms_FC \
18230include_expsyms_FC \
18231file_list_spec_FC \
6b4a97ed 18232compiler_lib_search_dirs_FC \
1cf3d07d
SE
18233predep_objects_FC \
18234postdep_objects_FC \
18235predeps_FC \
18236postdeps_FC \
18237compiler_lib_search_path_FC; do
43e02a8a 18238 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1cf3d07d 18239 *[\\\\\\\`\\"\\\$]*)
43e02a8a 18240 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1cf3d07d
SE
18241 ;;
18242 *)
18243 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18244 ;;
18245 esac
18246done
18247
18248# Double-quote double-evaled strings.
18249for var in reload_cmds \
18250old_postinstall_cmds \
18251old_postuninstall_cmds \
18252old_archive_cmds \
18253extract_expsyms_cmds \
18254old_archive_from_new_cmds \
18255old_archive_from_expsyms_cmds \
18256archive_cmds \
18257archive_expsym_cmds \
18258module_cmds \
18259module_expsym_cmds \
18260export_symbols_cmds \
18261prelink_cmds \
18262postinstall_cmds \
18263postuninstall_cmds \
18264finish_cmds \
18265sys_lib_search_path_spec \
18266sys_lib_dlsearch_path_spec \
43e02a8a 18267reload_cmds_FC \
1cf3d07d
SE
18268old_archive_cmds_FC \
18269old_archive_from_new_cmds_FC \
18270old_archive_from_expsyms_cmds_FC \
18271archive_cmds_FC \
18272archive_expsym_cmds_FC \
18273module_cmds_FC \
18274module_expsym_cmds_FC \
18275export_symbols_cmds_FC \
18276prelink_cmds_FC; do
43e02a8a 18277 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1cf3d07d 18278 *[\\\\\\\`\\"\\\$]*)
43e02a8a 18279 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1cf3d07d
SE
18280 ;;
18281 *)
18282 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18283 ;;
18284 esac
18285done
18286
1cf3d07d
SE
18287ac_aux_dir='$ac_aux_dir'
18288xsi_shell='$xsi_shell'
18289lt_shell_append='$lt_shell_append'
18290
18291# See if we are running on zsh, and set the options which allow our
18292# commands through without removal of \ escapes INIT.
18293if test -n "\${ZSH_VERSION+set}" ; then
18294 setopt NO_GLOB_SUBST
18295fi
18296
18297
18298 PACKAGE='$PACKAGE'
18299 VERSION='$VERSION'
18300 TIMESTAMP='$TIMESTAMP'
18301 RM='$RM'
18302 ofile='$ofile'
18303
18304
18305
18306
18307
18308
18cbfd85
PB
18309GCC="$GCC"
18310CC="$CC"
18311acx_cv_header_stdint="$acx_cv_header_stdint"
18312acx_cv_type_int8_t="$acx_cv_type_int8_t"
18313acx_cv_type_int16_t="$acx_cv_type_int16_t"
18314acx_cv_type_int32_t="$acx_cv_type_int32_t"
18315acx_cv_type_int64_t="$acx_cv_type_int64_t"
18316acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
18317ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
18318ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
18319ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
18320ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
18321ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
18322ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
18323ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
18324ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
18325
18326
953ff289
DN
18327_ACEOF
18328
5213506e 18329cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
953ff289 18330
5213506e 18331# Handling of arguments.
953ff289
DN
18332for ac_config_target in $ac_config_targets
18333do
5213506e
RW
18334 case $ac_config_target in
18335 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18336 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18337 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18338 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18339 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
18340 "omp.h") CONFIG_FILES="$CONFIG_FILES omp.h" ;;
18341 "omp_lib.h") CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
18342 "omp_lib.f90") CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
18343 "libgomp_f.h") CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
18344 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18345 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
18346 "libgomp.spec") CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
41dbbb37 18347 "testsuite/libgomp-test-support.pt.exp") CONFIG_FILES="$CONFIG_FILES testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in" ;;
5213506e 18348
22e05272 18349 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
953ff289
DN
18350 esac
18351done
18352
5213506e 18353
953ff289
DN
18354# If the user did not use the arguments to specify the items to instantiate,
18355# then the envvar interface is used. Set only those that are not.
18356# We use the long form for the default assignment because of an extremely
18357# bizarre bug on SunOS 4.1.3.
18358if $ac_need_defaults; then
18359 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18360 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18361 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18362fi
18363
18364# Have a temporary directory for convenience. Make it in the build tree
5213506e 18365# simply because there is no reason against having it here, and in addition,
953ff289 18366# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
18367# Hook for its removal unless debugging.
18368# Note that there is a small window in which the directory will not be cleaned:
18369# after its creation but before its name has been assigned to `$tmp'.
953ff289
DN
18370$debug ||
18371{
22e05272 18372 tmp= ac_tmp=
5213506e 18373 trap 'exit_status=$?
22e05272
JM
18374 : "${ac_tmp:=$tmp}"
18375 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5213506e
RW
18376' 0
18377 trap 'as_fn_exit 1' 1 2 13 15
953ff289 18378}
953ff289
DN
18379# Create a (secure) tmp directory for tmp files.
18380
18381{
5213506e 18382 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22e05272 18383 test -d "$tmp"
953ff289
DN
18384} ||
18385{
5213506e
RW
18386 tmp=./conf$$-$RANDOM
18387 (umask 077 && mkdir "$tmp")
22e05272
JM
18388} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18389ac_tmp=$tmp
5213506e
RW
18390
18391# Set up the scripts for CONFIG_FILES section.
18392# No need to generate them if there are no CONFIG_FILES.
18393# This happens for instance with `./config.status config.h'.
18394if test -n "$CONFIG_FILES"; then
18395
18396
18397ac_cr=`echo X | tr X '\015'`
18398# On cygwin, bash can eat \r inside `` if the user requested igncr.
18399# But we know of no other shell where ac_cr would be empty at this
18400# point, so we can use a bashism as a fallback.
18401if test "x$ac_cr" = x; then
18402 eval ac_cr=\$\'\\r\'
18403fi
18404ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18405if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22e05272 18406 ac_cs_awk_cr='\\r'
5213506e
RW
18407else
18408 ac_cs_awk_cr=$ac_cr
18409fi
18410
22e05272 18411echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5213506e
RW
18412_ACEOF
18413
18414
953ff289 18415{
5213506e
RW
18416 echo "cat >conf$$subs.awk <<_ACEOF" &&
18417 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18418 echo "_ACEOF"
18419} >conf$$subs.sh ||
22e05272
JM
18420 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18421ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5213506e
RW
18422ac_delim='%!_!# '
18423for ac_last_try in false false false false false :; do
18424 . ./conf$$subs.sh ||
22e05272 18425 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e
RW
18426
18427 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18428 if test $ac_delim_n = $ac_delim_num; then
18429 break
18430 elif $ac_last_try; then
22e05272 18431 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e
RW
18432 else
18433 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18434 fi
18435done
18436rm -f conf$$subs.sh
18437
18438cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 18439cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5213506e
RW
18440_ACEOF
18441sed -n '
18442h
18443s/^/S["/; s/!.*/"]=/
18444p
18445g
18446s/^[^!]*!//
18447:repl
18448t repl
18449s/'"$ac_delim"'$//
18450t delim
18451:nl
18452h
22e05272 18453s/\(.\{148\}\)..*/\1/
5213506e
RW
18454t more1
18455s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18456p
18457n
18458b repl
18459:more1
18460s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18461p
18462g
18463s/.\{148\}//
18464t nl
18465:delim
18466h
22e05272 18467s/\(.\{148\}\)..*/\1/
5213506e
RW
18468t more2
18469s/["\\]/\\&/g; s/^/"/; s/$/"/
18470p
18471b
18472:more2
18473s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18474p
18475g
18476s/.\{148\}//
18477t delim
18478' <conf$$subs.awk | sed '
18479/^[^""]/{
18480 N
18481 s/\n//
953ff289 18482}
5213506e
RW
18483' >>$CONFIG_STATUS || ac_write_fail=1
18484rm -f conf$$subs.awk
18485cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18486_ACAWK
22e05272 18487cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5213506e
RW
18488 for (key in S) S_is_set[key] = 1
18489 FS = "\a"
953ff289 18490
5213506e
RW
18491}
18492{
18493 line = $ 0
18494 nfields = split(line, field, "@")
18495 substed = 0
18496 len = length(field[1])
18497 for (i = 2; i < nfields; i++) {
18498 key = field[i]
18499 keylen = length(key)
18500 if (S_is_set[key]) {
18501 value = S[key]
18502 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18503 len += length(value) + length(field[++i])
18504 substed = 1
18505 } else
18506 len += 1 + keylen
18507 }
953ff289 18508
5213506e
RW
18509 print line
18510}
953ff289 18511
5213506e
RW
18512_ACAWK
18513_ACEOF
18514cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18515if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18516 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18517else
18518 cat
22e05272
JM
18519fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18520 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5213506e
RW
18521_ACEOF
18522
22e05272
JM
18523# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18524# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5213506e
RW
18525# trailing colons and then remove the whole line if VPATH becomes empty
18526# (actually we leave an empty line to preserve line numbers).
18527if test "x$srcdir" = x.; then
22e05272
JM
18528 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18529h
18530s///
18531s/^/:/
18532s/[ ]*$/:/
18533s/:\$(srcdir):/:/g
18534s/:\${srcdir}:/:/g
18535s/:@srcdir@:/:/g
18536s/^:*//
5213506e 18537s/:*$//
22e05272
JM
18538x
18539s/\(=[ ]*\).*/\1/
18540G
18541s/\n//
5213506e
RW
18542s/^[^=]*=[ ]*$//
18543}'
18544fi
953ff289 18545
5213506e
RW
18546cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18547fi # test -n "$CONFIG_FILES"
953ff289 18548
5213506e
RW
18549# Set up the scripts for CONFIG_HEADERS section.
18550# No need to generate them if there are no CONFIG_HEADERS.
18551# This happens for instance with `./config.status Makefile'.
18552if test -n "$CONFIG_HEADERS"; then
22e05272 18553cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
5213506e 18554BEGIN {
953ff289
DN
18555_ACEOF
18556
5213506e
RW
18557# Transform confdefs.h into an awk script `defines.awk', embedded as
18558# here-document in config.status, that substitutes the proper values into
18559# config.h.in to produce config.h.
18560
18561# Create a delimiter string that does not exist in confdefs.h, to ease
18562# handling of long lines.
18563ac_delim='%!_!# '
18564for ac_last_try in false false :; do
22e05272
JM
18565 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18566 if test -z "$ac_tt"; then
5213506e
RW
18567 break
18568 elif $ac_last_try; then
22e05272 18569 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
5213506e
RW
18570 else
18571 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
953ff289 18572 fi
5213506e 18573done
953ff289 18574
5213506e
RW
18575# For the awk script, D is an array of macro values keyed by name,
18576# likewise P contains macro parameters if any. Preserve backslash
18577# newline sequences.
18578
18579ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18580sed -n '
18581s/.\{148\}/&'"$ac_delim"'/g
18582t rset
18583:rset
18584s/^[ ]*#[ ]*define[ ][ ]*/ /
18585t def
18586d
18587:def
18588s/\\$//
18589t bsnl
18590s/["\\]/\\&/g
18591s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18592D["\1"]=" \3"/p
18593s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18594d
18595:bsnl
18596s/["\\]/\\&/g
18597s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18598D["\1"]=" \3\\\\\\n"\\/p
18599t cont
18600s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18601t cont
18602d
18603:cont
18604n
18605s/.\{148\}/&'"$ac_delim"'/g
18606t clear
18607:clear
18608s/\\$//
18609t bsnlc
18610s/["\\]/\\&/g; s/^/"/; s/$/"/p
18611d
18612:bsnlc
18613s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18614b cont
18615' <confdefs.h | sed '
18616s/'"$ac_delim"'/"\\\
18617"/g' >>$CONFIG_STATUS || ac_write_fail=1
18618
18619cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18620 for (key in D) D_is_set[key] = 1
18621 FS = "\a"
18622}
18623/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18624 line = \$ 0
18625 split(line, arg, " ")
18626 if (arg[1] == "#") {
18627 defundef = arg[2]
18628 mac1 = arg[3]
18629 } else {
18630 defundef = substr(arg[1], 2)
18631 mac1 = arg[2]
18632 }
18633 split(mac1, mac2, "(") #)
18634 macro = mac2[1]
18635 prefix = substr(line, 1, index(line, defundef) - 1)
18636 if (D_is_set[macro]) {
18637 # Preserve the white space surrounding the "#".
18638 print prefix "define", macro P[macro] D[macro]
18639 next
18640 } else {
18641 # Replace #undef with comments. This is necessary, for example,
18642 # in the case of _POSIX_SOURCE, which is predefined and required
18643 # on some systems where configure will not decide to define it.
18644 if (defundef == "undef") {
18645 print "/*", prefix defundef, macro, "*/"
18646 next
18647 }
18648 }
18649}
18650{ print }
18651_ACAWK
953ff289 18652_ACEOF
5213506e 18653cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22e05272 18654 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
5213506e
RW
18655fi # test -n "$CONFIG_HEADERS"
18656
18657
18658eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18659shift
18660for ac_tag
18661do
18662 case $ac_tag in
18663 :[FHLC]) ac_mode=$ac_tag; continue;;
18664 esac
18665 case $ac_mode$ac_tag in
18666 :[FHL]*:*);;
22e05272 18667 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5213506e
RW
18668 :[FH]-) ac_tag=-:-;;
18669 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18670 esac
18671 ac_save_IFS=$IFS
18672 IFS=:
18673 set x $ac_tag
18674 IFS=$ac_save_IFS
18675 shift
18676 ac_file=$1
18677 shift
18678
18679 case $ac_mode in
18680 :L) ac_source=$1;;
18681 :[FH])
18682 ac_file_inputs=
18683 for ac_f
18684 do
18685 case $ac_f in
22e05272 18686 -) ac_f="$ac_tmp/stdin";;
5213506e
RW
18687 *) # Look for the file first in the build tree, then in the source tree
18688 # (if the path is not absolute). The absolute path cannot be DOS-style,
18689 # because $ac_f cannot contain `:'.
18690 test -f "$ac_f" ||
18691 case $ac_f in
18692 [\\/$]*) false;;
18693 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18694 esac ||
22e05272 18695 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5213506e
RW
18696 esac
18697 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18698 as_fn_append ac_file_inputs " '$ac_f'"
18699 done
18700
18701 # Let's still pretend it is `configure' which instantiates (i.e., don't
18702 # use $as_me), people would be surprised to read:
18703 # /* config.h. Generated by config.status. */
18704 configure_input='Generated from '`
18705 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18706 `' by configure.'
18707 if test x"$ac_file" != x-; then
18708 configure_input="$ac_file. $configure_input"
18709 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18710$as_echo "$as_me: creating $ac_file" >&6;}
18711 fi
18712 # Neutralize special characters interpreted by sed in replacement strings.
18713 case $configure_input in #(
18714 *\&* | *\|* | *\\* )
18715 ac_sed_conf_input=`$as_echo "$configure_input" |
18716 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18717 *) ac_sed_conf_input=$configure_input;;
18718 esac
18719
18720 case $ac_tag in
22e05272
JM
18721 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18722 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5213506e
RW
18723 esac
18724 ;;
953ff289
DN
18725 esac
18726
5213506e 18727 ac_dir=`$as_dirname -- "$ac_file" ||
953ff289
DN
18728$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18729 X"$ac_file" : 'X\(//\)[^/]' \| \
18730 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
18731 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18732$as_echo X"$ac_file" |
18733 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18734 s//\1/
18735 q
18736 }
18737 /^X\(\/\/\)[^/].*/{
18738 s//\1/
18739 q
18740 }
18741 /^X\(\/\/\)$/{
18742 s//\1/
18743 q
18744 }
18745 /^X\(\/\).*/{
18746 s//\1/
18747 q
18748 }
18749 s/.*/./; q'`
18750 as_dir="$ac_dir"; as_fn_mkdir_p
953ff289
DN
18751 ac_builddir=.
18752
5213506e
RW
18753case "$ac_dir" in
18754.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18755*)
18756 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18757 # A ".." for each directory in $ac_dir_suffix.
18758 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18759 case $ac_top_builddir_sub in
18760 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18761 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18762 esac ;;
18763esac
18764ac_abs_top_builddir=$ac_pwd
18765ac_abs_builddir=$ac_pwd$ac_dir_suffix
18766# for backward compatibility:
18767ac_top_builddir=$ac_top_build_prefix
953ff289
DN
18768
18769case $srcdir in
5213506e 18770 .) # We are building in place.
953ff289 18771 ac_srcdir=.
5213506e
RW
18772 ac_top_srcdir=$ac_top_builddir_sub
18773 ac_abs_top_srcdir=$ac_pwd ;;
18774 [\\/]* | ?:[\\/]* ) # Absolute name.
953ff289 18775 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
18776 ac_top_srcdir=$srcdir
18777 ac_abs_top_srcdir=$srcdir ;;
18778 *) # Relative name.
18779 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18780 ac_top_srcdir=$ac_top_build_prefix$srcdir
18781 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
953ff289 18782esac
5213506e 18783ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
953ff289 18784
953ff289 18785
5213506e
RW
18786 case $ac_mode in
18787 :F)
18788 #
18789 # CONFIG_FILE
18790 #
953ff289
DN
18791
18792 case $INSTALL in
18793 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e 18794 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
953ff289 18795 esac
5213506e
RW
18796 ac_MKDIR_P=$MKDIR_P
18797 case $MKDIR_P in
18798 [\\/$]* | ?:[\\/]* ) ;;
18799 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18800 esac
18801_ACEOF
953ff289 18802
5213506e
RW
18803cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18804# If the template does not know about datarootdir, expand it.
18805# FIXME: This hack should be removed a few years after 2.60.
18806ac_datarootdir_hack=; ac_datarootdir_seen=
18807ac_sed_dataroot='
18808/datarootdir/ {
18809 p
18810 q
18811}
18812/@datadir@/p
18813/@docdir@/p
18814/@infodir@/p
18815/@localedir@/p
18816/@mandir@/p'
18817case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18818*datarootdir*) ac_datarootdir_seen=yes;;
18819*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18821$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18822_ACEOF
18823cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18824 ac_datarootdir_hack='
18825 s&@datadir@&$datadir&g
18826 s&@docdir@&$docdir&g
18827 s&@infodir@&$infodir&g
18828 s&@localedir@&$localedir&g
18829 s&@mandir@&$mandir&g
18830 s&\\\${datarootdir}&$datarootdir&g' ;;
18831esac
953ff289 18832_ACEOF
5213506e
RW
18833
18834# Neutralize VPATH when `$srcdir' = `.'.
18835# Shell code in configure.ac might set extrasub.
18836# FIXME: do we really want to maintain this feature?
18837cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18838ac_sed_extra="$ac_vpsub
953ff289
DN
18839$extrasub
18840_ACEOF
5213506e 18841cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
953ff289
DN
18842:t
18843/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
18844s|@configure_input@|$ac_sed_conf_input|;t t
18845s&@top_builddir@&$ac_top_builddir_sub&;t t
18846s&@top_build_prefix@&$ac_top_build_prefix&;t t
18847s&@srcdir@&$ac_srcdir&;t t
18848s&@abs_srcdir@&$ac_abs_srcdir&;t t
18849s&@top_srcdir@&$ac_top_srcdir&;t t
18850s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18851s&@builddir@&$ac_builddir&;t t
18852s&@abs_builddir@&$ac_abs_builddir&;t t
18853s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18854s&@INSTALL@&$ac_INSTALL&;t t
18855s&@MKDIR_P@&$ac_MKDIR_P&;t t
18856$ac_datarootdir_hack
18857"
22e05272
JM
18858eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18859 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5213506e
RW
18860
18861test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22e05272
JM
18862 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18863 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18864 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5213506e 18865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 18866which seems to be undefined. Please make sure it is defined" >&5
5213506e 18867$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 18868which seems to be undefined. Please make sure it is defined" >&2;}
5213506e 18869
22e05272 18870 rm -f "$ac_tmp/stdin"
953ff289 18871 case $ac_file in
22e05272
JM
18872 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18873 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5213506e 18874 esac \
22e05272 18875 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5213506e
RW
18876 ;;
18877 :H)
18878 #
18879 # CONFIG_HEADER
18880 #
953ff289 18881 if test x"$ac_file" != x-; then
5213506e
RW
18882 {
18883 $as_echo "/* $configure_input */" \
22e05272
JM
18884 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18885 } >"$ac_tmp/config.h" \
18886 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18887 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
5213506e
RW
18888 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18889$as_echo "$as_me: $ac_file is unchanged" >&6;}
953ff289 18890 else
5213506e 18891 rm -f "$ac_file"
22e05272
JM
18892 mv "$ac_tmp/config.h" "$ac_file" \
18893 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
953ff289
DN
18894 fi
18895 else
5213506e 18896 $as_echo "/* $configure_input */" \
22e05272
JM
18897 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18898 || as_fn_error $? "could not create -" "$LINENO" 5
953ff289 18899 fi
5213506e
RW
18900# Compute "$ac_file"'s index in $config_headers.
18901_am_arg="$ac_file"
953ff289
DN
18902_am_stamp_count=1
18903for _am_header in $config_headers :; do
18904 case $_am_header in
5213506e 18905 $_am_arg | $_am_arg:* )
953ff289
DN
18906 break ;;
18907 * )
18908 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18909 esac
18910done
5213506e
RW
18911echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18912$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18913 X"$_am_arg" : 'X\(//\)[^/]' \| \
18914 X"$_am_arg" : 'X\(//\)$' \| \
18915 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18916$as_echo X"$_am_arg" |
18917 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18918 s//\1/
18919 q
18920 }
18921 /^X\(\/\/\)[^/].*/{
18922 s//\1/
18923 q
18924 }
18925 /^X\(\/\/\)$/{
18926 s//\1/
18927 q
18928 }
18929 /^X\(\/\).*/{
18930 s//\1/
18931 q
18932 }
18933 s/.*/./; q'`/stamp-h$_am_stamp_count
18934 ;;
953ff289 18935
5213506e
RW
18936 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18937$as_echo "$as_me: executing $ac_file commands" >&6;}
18938 ;;
18939 esac
953ff289
DN
18940
18941
5213506e
RW
18942 case $ac_file$ac_mode in
18943 "default-1":C)
953ff289
DN
18944# Only add multilib support code if we just rebuilt the top-level
18945# Makefile.
18946case " $CONFIG_FILES " in
18947 *" Makefile "*)
18948 ac_file=Makefile . ${multi_basedir}/config-ml.in
18949 ;;
18950esac ;;
5213506e 18951 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22e05272 18952 # Older Autoconf quotes --file arguments for eval, but not when files
5213506e
RW
18953 # are listed without --file. Let's play safe and only enable the eval
18954 # if we detect the quoting.
18955 case $CONFIG_FILES in
18956 *\'*) eval set x "$CONFIG_FILES" ;;
18957 *) set x $CONFIG_FILES ;;
18958 esac
18959 shift
18960 for mf
18961 do
18962 # Strip MF so we end up with the name of the file.
18963 mf=`echo "$mf" | sed -e 's/:.*$//'`
18964 # Check whether this is an Automake generated Makefile or not.
22e05272 18965 # We used to match only the files named 'Makefile.in', but
5213506e
RW
18966 # some people rename them; so instead we look at the file content.
18967 # Grep'ing the first line is not enough: some people post-process
18968 # each Makefile.in and add a new line on top of each file to say so.
18969 # Grep'ing the whole file is not good either: AIX grep has a line
18970 # limit of 2048, but all sed's we know have understand at least 4000.
18971 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18972 dirpart=`$as_dirname -- "$mf" ||
953ff289
DN
18973$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18974 X"$mf" : 'X\(//\)[^/]' \| \
18975 X"$mf" : 'X\(//\)$' \| \
5213506e
RW
18976 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18977$as_echo X"$mf" |
18978 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18979 s//\1/
18980 q
18981 }
18982 /^X\(\/\/\)[^/].*/{
18983 s//\1/
18984 q
18985 }
18986 /^X\(\/\/\)$/{
18987 s//\1/
18988 q
18989 }
18990 /^X\(\/\).*/{
18991 s//\1/
18992 q
18993 }
18994 s/.*/./; q'`
18995 else
18996 continue
18997 fi
18998 # Extract the definition of DEPDIR, am__include, and am__quote
22e05272 18999 # from the Makefile without running 'make'.
5213506e
RW
19000 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19001 test -z "$DEPDIR" && continue
19002 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22e05272 19003 test -z "$am__include" && continue
5213506e 19004 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
5213506e
RW
19005 # Find all dependency output files, they are included files with
19006 # $(DEPDIR) in their names. We invoke sed twice because it is the
19007 # simplest approach to changing $(DEPDIR) to its actual value in the
19008 # expansion.
19009 for file in `sed -n "
19010 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22e05272 19011 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
5213506e
RW
19012 # Make sure the directory exists.
19013 test -f "$dirpart/$file" && continue
19014 fdir=`$as_dirname -- "$file" ||
953ff289
DN
19015$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19016 X"$file" : 'X\(//\)[^/]' \| \
19017 X"$file" : 'X\(//\)$' \| \
5213506e
RW
19018 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19019$as_echo X"$file" |
19020 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19021 s//\1/
19022 q
19023 }
19024 /^X\(\/\/\)[^/].*/{
19025 s//\1/
19026 q
19027 }
19028 /^X\(\/\/\)$/{
19029 s//\1/
19030 q
19031 }
19032 /^X\(\/\).*/{
19033 s//\1/
19034 q
19035 }
19036 s/.*/./; q'`
19037 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19038 # echo "creating $dirpart/$file"
19039 echo '# dummy' > "$dirpart/$file"
953ff289 19040 done
953ff289 19041 done
5213506e 19042}
1cf3d07d 19043 ;;
5213506e 19044 "libtool":C)
1cf3d07d
SE
19045
19046 # See if we are running on zsh, and set the options which allow our
19047 # commands through without removal of \ escapes.
19048 if test -n "${ZSH_VERSION+set}" ; then
19049 setopt NO_GLOB_SUBST
19050 fi
19051
19052 cfgfile="${ofile}T"
19053 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19054 $RM "$cfgfile"
19055
19056 cat <<_LT_EOF >> "$cfgfile"
19057#! $SHELL
19058
19059# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
6b4a97ed 19060# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1cf3d07d
SE
19061# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19062# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19063#
6b4a97ed 19064# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
43e02a8a 19065# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
6b4a97ed 19066# Written by Gordon Matzigkeit, 1996
1cf3d07d 19067#
6b4a97ed 19068# This file is part of GNU Libtool.
1cf3d07d 19069#
6b4a97ed
PG
19070# GNU Libtool is free software; you can redistribute it and/or
19071# modify it under the terms of the GNU General Public License as
19072# published by the Free Software Foundation; either version 2 of
19073# the License, or (at your option) any later version.
1cf3d07d 19074#
6b4a97ed
PG
19075# As a special exception to the GNU General Public License,
19076# if you distribute this file as part of a program or library that
19077# is built using GNU Libtool, you may include this file under the
19078# same distribution terms that you use for the rest of that program.
1cf3d07d 19079#
6b4a97ed
PG
19080# GNU Libtool is distributed in the hope that it will be useful,
19081# but WITHOUT ANY WARRANTY; without even the implied warranty of
19082# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19083# GNU General Public License for more details.
1cf3d07d 19084#
6b4a97ed
PG
19085# You should have received a copy of the GNU General Public License
19086# along with GNU Libtool; see the file COPYING. If not, a copy
19087# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19088# obtained by writing to the Free Software Foundation, Inc.,
19089# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1cf3d07d
SE
19090
19091
19092# The names of the tagged configurations supported by this script.
19093available_tags="FC "
19094
19095# ### BEGIN LIBTOOL CONFIG
19096
19097# Which release of libtool.m4 was used?
19098macro_version=$macro_version
19099macro_revision=$macro_revision
19100
19101# Whether or not to build shared libraries.
19102build_libtool_libs=$enable_shared
19103
19104# Whether or not to build static libraries.
19105build_old_libs=$enable_static
19106
19107# What type of objects to build.
19108pic_mode=$pic_mode
19109
19110# Whether or not to optimize for fast installation.
19111fast_install=$enable_fast_install
19112
43e02a8a
RW
19113# Shell to use when invoking shell scripts.
19114SHELL=$lt_SHELL
19115
19116# An echo program that protects backslashes.
19117ECHO=$lt_ECHO
19118
1cf3d07d
SE
19119# The host system.
19120host_alias=$host_alias
19121host=$host
19122host_os=$host_os
19123
19124# The build system.
19125build_alias=$build_alias
19126build=$build
19127build_os=$build_os
19128
19129# A sed program that does not truncate output.
19130SED=$lt_SED
19131
19132# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19133Xsed="\$SED -e 1s/^X//"
19134
19135# A grep program that handles long lines.
19136GREP=$lt_GREP
19137
19138# An ERE matcher.
19139EGREP=$lt_EGREP
19140
19141# A literal string matcher.
19142FGREP=$lt_FGREP
19143
19144# A BSD- or MS-compatible name lister.
19145NM=$lt_NM
19146
19147# Whether we need soft or hard links.
19148LN_S=$lt_LN_S
19149
19150# What is the maximum length of a command?
19151max_cmd_len=$max_cmd_len
19152
19153# Object file suffix (normally "o").
19154objext=$ac_objext
19155
19156# Executable file suffix (normally "").
19157exeext=$exeext
19158
19159# whether the shell understands "unset".
19160lt_unset=$lt_unset
19161
19162# turn spaces into newlines.
19163SP2NL=$lt_lt_SP2NL
19164
19165# turn newlines into spaces.
19166NL2SP=$lt_lt_NL2SP
19167
6b4a97ed
PG
19168# An object symbol dumper.
19169OBJDUMP=$lt_OBJDUMP
19170
1cf3d07d
SE
19171# Method to check whether dependent libraries are shared objects.
19172deplibs_check_method=$lt_deplibs_check_method
19173
19174# Command to use when deplibs_check_method == "file_magic".
19175file_magic_cmd=$lt_file_magic_cmd
19176
19177# The archiver.
19178AR=$lt_AR
19179AR_FLAGS=$lt_AR_FLAGS
19180
19181# A symbol stripping program.
19182STRIP=$lt_STRIP
19183
19184# Commands used to install an old-style archive.
19185RANLIB=$lt_RANLIB
19186old_postinstall_cmds=$lt_old_postinstall_cmds
19187old_postuninstall_cmds=$lt_old_postuninstall_cmds
19188
43e02a8a
RW
19189# Whether to use a lock for old archive extraction.
19190lock_old_archive_extraction=$lock_old_archive_extraction
19191
1cf3d07d
SE
19192# A C compiler.
19193LTCC=$lt_CC
19194
19195# LTCC compiler flags.
19196LTCFLAGS=$lt_CFLAGS
19197
19198# Take the output of nm and produce a listing of raw symbols and C names.
19199global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19200
19201# Transform the output of nm in a proper C declaration.
19202global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19203
19204# Transform the output of nm in a C name address pair.
19205global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19206
6b4a97ed
PG
19207# Transform the output of nm in a C name address pair when lib prefix is needed.
19208global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19209
1cf3d07d
SE
19210# The name of the directory that contains temporary libtool files.
19211objdir=$objdir
19212
1cf3d07d
SE
19213# Used to examine libraries when file_magic_cmd begins with "file".
19214MAGIC_CMD=$MAGIC_CMD
19215
19216# Must we lock files when doing compilation?
19217need_locks=$lt_need_locks
19218
6b4a97ed
PG
19219# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19220DSYMUTIL=$lt_DSYMUTIL
19221
19222# Tool to change global to local symbols on Mac OS X.
19223NMEDIT=$lt_NMEDIT
19224
19225# Tool to manipulate fat objects and archives on Mac OS X.
19226LIPO=$lt_LIPO
19227
19228# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19229OTOOL=$lt_OTOOL
19230
19231# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19232OTOOL64=$lt_OTOOL64
19233
1cf3d07d
SE
19234# Old archive suffix (normally "a").
19235libext=$libext
19236
19237# Shared library suffix (normally ".so").
19238shrext_cmds=$lt_shrext_cmds
19239
19240# The commands to extract the exported symbol list from a shared archive.
19241extract_expsyms_cmds=$lt_extract_expsyms_cmds
19242
19243# Variables whose values should be saved in libtool wrapper scripts and
19244# restored at link time.
19245variables_saved_for_relink=$lt_variables_saved_for_relink
19246
19247# Do we need the "lib" prefix for modules?
19248need_lib_prefix=$need_lib_prefix
19249
19250# Do we need a version for libraries?
19251need_version=$need_version
19252
19253# Library versioning type.
19254version_type=$version_type
19255
19256# Shared library runtime path variable.
19257runpath_var=$runpath_var
19258
19259# Shared library path variable.
19260shlibpath_var=$shlibpath_var
19261
19262# Is shlibpath searched before the hard-coded library search path?
19263shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19264
19265# Format of library name prefix.
19266libname_spec=$lt_libname_spec
19267
19268# List of archive names. First name is the real one, the rest are links.
19269# The last name is the one that the linker finds with -lNAME
19270library_names_spec=$lt_library_names_spec
19271
19272# The coded name of the library, if different from the real name.
19273soname_spec=$lt_soname_spec
19274
43e02a8a
RW
19275# Permission mode override for installation of shared libraries.
19276install_override_mode=$lt_install_override_mode
19277
1cf3d07d
SE
19278# Command to use after installation of a shared archive.
19279postinstall_cmds=$lt_postinstall_cmds
19280
19281# Command to use after uninstallation of a shared archive.
19282postuninstall_cmds=$lt_postuninstall_cmds
19283
19284# Commands used to finish a libtool library installation in a directory.
19285finish_cmds=$lt_finish_cmds
19286
19287# As "finish_cmds", except a single script fragment to be evaled but
19288# not shown.
19289finish_eval=$lt_finish_eval
19290
19291# Whether we should hardcode library paths into libraries.
19292hardcode_into_libs=$hardcode_into_libs
19293
19294# Compile-time system search path for libraries.
19295sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19296
19297# Run-time system search path for libraries.
19298sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19299
19300# Whether dlopen is supported.
19301dlopen_support=$enable_dlopen
19302
19303# Whether dlopen of programs is supported.
19304dlopen_self=$enable_dlopen_self
19305
19306# Whether dlopen of statically linked programs is supported.
19307dlopen_self_static=$enable_dlopen_self_static
19308
19309# Commands to strip libraries.
19310old_striplib=$lt_old_striplib
19311striplib=$lt_striplib
19312
19313
19314# The linker used to build libraries.
19315LD=$lt_LD
19316
43e02a8a
RW
19317# How to create reloadable object files.
19318reload_flag=$lt_reload_flag
19319reload_cmds=$lt_reload_cmds
19320
1cf3d07d
SE
19321# Commands used to build an old-style archive.
19322old_archive_cmds=$lt_old_archive_cmds
19323
19324# A language specific compiler.
19325CC=$lt_compiler
19326
19327# Is the compiler the GNU compiler?
19328with_gcc=$GCC
19329
19330# Compiler flag to turn off builtin functions.
19331no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19332
19333# How to pass a linker flag through the compiler.
19334wl=$lt_lt_prog_compiler_wl
19335
19336# Additional compiler flags for building library objects.
19337pic_flag=$lt_lt_prog_compiler_pic
19338
19339# Compiler flag to prevent dynamic linking.
19340link_static_flag=$lt_lt_prog_compiler_static
19341
19342# Does compiler simultaneously support -c and -o options?
19343compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19344
19345# Whether or not to add -lc for building shared libraries.
19346build_libtool_need_lc=$archive_cmds_need_lc
19347
19348# Whether or not to disallow shared libs when runtime libs are static.
19349allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19350
19351# Compiler flag to allow reflexive dlopens.
19352export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19353
19354# Compiler flag to generate shared objects directly from archives.
19355whole_archive_flag_spec=$lt_whole_archive_flag_spec
19356
19357# Whether the compiler copes with passing no objects directly.
19358compiler_needs_object=$lt_compiler_needs_object
19359
19360# Create an old-style archive from a shared archive.
19361old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19362
19363# Create a temporary old-style archive to link instead of a shared archive.
19364old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19365
19366# Commands used to build a shared archive.
19367archive_cmds=$lt_archive_cmds
19368archive_expsym_cmds=$lt_archive_expsym_cmds
19369
19370# Commands used to build a loadable module if different from building
19371# a shared archive.
19372module_cmds=$lt_module_cmds
19373module_expsym_cmds=$lt_module_expsym_cmds
19374
19375# Whether we are building with GNU ld or not.
19376with_gnu_ld=$lt_with_gnu_ld
19377
19378# Flag that allows shared libraries with undefined symbols to be built.
19379allow_undefined_flag=$lt_allow_undefined_flag
19380
19381# Flag that enforces no undefined symbols.
19382no_undefined_flag=$lt_no_undefined_flag
19383
19384# Flag to hardcode \$libdir into a binary during linking.
19385# This must work even if \$libdir does not exist
19386hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19387
19388# If ld is used when linking, flag to hardcode \$libdir into a binary
19389# during linking. This must work even if \$libdir does not exist.
19390hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19391
19392# Whether we need a single "-rpath" flag with a separated argument.
19393hardcode_libdir_separator=$lt_hardcode_libdir_separator
19394
19395# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19396# DIR into the resulting binary.
19397hardcode_direct=$hardcode_direct
19398
19399# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19400# DIR into the resulting binary and the resulting library dependency is
19401# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19402# library is relocated.
19403hardcode_direct_absolute=$hardcode_direct_absolute
19404
19405# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19406# into the resulting binary.
19407hardcode_minus_L=$hardcode_minus_L
19408
19409# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19410# into the resulting binary.
19411hardcode_shlibpath_var=$hardcode_shlibpath_var
19412
19413# Set to "yes" if building a shared library automatically hardcodes DIR
19414# into the library and all subsequent libraries and executables linked
19415# against it.
19416hardcode_automatic=$hardcode_automatic
19417
19418# Set to yes if linker adds runtime paths of dependent libraries
19419# to runtime path list.
19420inherit_rpath=$inherit_rpath
19421
19422# Whether libtool must link a program against all its dependency libraries.
19423link_all_deplibs=$link_all_deplibs
19424
19425# Fix the shell variable \$srcfile for the compiler.
19426fix_srcfile_path=$lt_fix_srcfile_path
19427
19428# Set to "yes" if exported symbols are required.
19429always_export_symbols=$always_export_symbols
19430
19431# The commands to list exported symbols.
19432export_symbols_cmds=$lt_export_symbols_cmds
19433
19434# Symbols that should not be listed in the preloaded symbols.
19435exclude_expsyms=$lt_exclude_expsyms
19436
19437# Symbols that must always be exported.
19438include_expsyms=$lt_include_expsyms
19439
19440# Commands necessary for linking programs (against libraries) with templates.
19441prelink_cmds=$lt_prelink_cmds
19442
19443# Specify filename containing input files.
19444file_list_spec=$lt_file_list_spec
19445
19446# How to hardcode a shared library path into an executable.
19447hardcode_action=$hardcode_action
19448
6b4a97ed
PG
19449# The directories searched by this compiler when creating a shared library.
19450compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19451
1cf3d07d
SE
19452# Dependencies to place before and after the objects being linked to
19453# create a shared library.
19454predep_objects=$lt_predep_objects
19455postdep_objects=$lt_postdep_objects
19456predeps=$lt_predeps
19457postdeps=$lt_postdeps
19458
19459# The library search path used internally by the compiler when linking
19460# a shared library.
19461compiler_lib_search_path=$lt_compiler_lib_search_path
19462
19463# ### END LIBTOOL CONFIG
19464
19465_LT_EOF
19466
19467 case $host_os in
19468 aix3*)
19469 cat <<\_LT_EOF >> "$cfgfile"
19470# AIX sometimes has problems with the GCC collect2 program. For some
19471# reason, if we set the COLLECT_NAMES environment variable, the problems
19472# vanish in a puff of smoke.
19473if test "X${COLLECT_NAMES+set}" != Xset; then
19474 COLLECT_NAMES=
19475 export COLLECT_NAMES
19476fi
19477_LT_EOF
19478 ;;
19479 esac
19480
19481
19482ltmain="$ac_aux_dir/ltmain.sh"
19483
19484
19485 # We use sed instead of cat because bash on DJGPP gets confused if
19486 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19487 # text mode, it properly converts lines to CR/LF. This bash problem
19488 # is reportedly fixed, but why not run on old versions too?
19489 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19490 || (rm -f "$cfgfile"; exit 1)
19491
19492 case $xsi_shell in
19493 yes)
19494 cat << \_LT_EOF >> "$cfgfile"
6b4a97ed 19495
1cf3d07d
SE
19496# func_dirname file append nondir_replacement
19497# Compute the dirname of FILE. If nonempty, add APPEND to the result,
19498# otherwise set result to NONDIR_REPLACEMENT.
19499func_dirname ()
19500{
19501 case ${1} in
19502 */*) func_dirname_result="${1%/*}${2}" ;;
19503 * ) func_dirname_result="${3}" ;;
19504 esac
19505}
19506
19507# func_basename file
19508func_basename ()
19509{
19510 func_basename_result="${1##*/}"
19511}
19512
6b4a97ed
PG
19513# func_dirname_and_basename file append nondir_replacement
19514# perform func_basename and func_dirname in a single function
19515# call:
19516# dirname: Compute the dirname of FILE. If nonempty,
19517# add APPEND to the result, otherwise set result
19518# to NONDIR_REPLACEMENT.
19519# value returned in "$func_dirname_result"
19520# basename: Compute filename of FILE.
19521# value retuned in "$func_basename_result"
19522# Implementation must be kept synchronized with func_dirname
19523# and func_basename. For efficiency, we do not delegate to
19524# those functions but instead duplicate the functionality here.
19525func_dirname_and_basename ()
19526{
19527 case ${1} in
19528 */*) func_dirname_result="${1%/*}${2}" ;;
19529 * ) func_dirname_result="${3}" ;;
19530 esac
19531 func_basename_result="${1##*/}"
19532}
19533
1cf3d07d
SE
19534# func_stripname prefix suffix name
19535# strip PREFIX and SUFFIX off of NAME.
19536# PREFIX and SUFFIX must not contain globbing or regex special
19537# characters, hashes, percent signs, but SUFFIX may contain a leading
19538# dot (in which case that matches only a dot).
19539func_stripname ()
19540{
19541 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19542 # positional parameters, so assign one to ordinary parameter first.
19543 func_stripname_result=${3}
19544 func_stripname_result=${func_stripname_result#"${1}"}
19545 func_stripname_result=${func_stripname_result%"${2}"}
19546}
19547
19548# func_opt_split
19549func_opt_split ()
19550{
19551 func_opt_split_opt=${1%%=*}
19552 func_opt_split_arg=${1#*=}
19553}
19554
19555# func_lo2o object
19556func_lo2o ()
19557{
19558 case ${1} in
19559 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19560 *) func_lo2o_result=${1} ;;
19561 esac
19562}
6b4a97ed
PG
19563
19564# func_xform libobj-or-source
19565func_xform ()
19566{
19567 func_xform_result=${1%.*}.lo
19568}
19569
19570# func_arith arithmetic-term...
19571func_arith ()
19572{
19573 func_arith_result=$(( $* ))
19574}
19575
19576# func_len string
19577# STRING may not start with a hyphen.
19578func_len ()
19579{
19580 func_len_result=${#1}
19581}
19582
1cf3d07d
SE
19583_LT_EOF
19584 ;;
19585 *) # Bourne compatible functions.
19586 cat << \_LT_EOF >> "$cfgfile"
6b4a97ed 19587
1cf3d07d
SE
19588# func_dirname file append nondir_replacement
19589# Compute the dirname of FILE. If nonempty, add APPEND to the result,
19590# otherwise set result to NONDIR_REPLACEMENT.
19591func_dirname ()
19592{
19593 # Extract subdirectory from the argument.
43e02a8a 19594 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
1cf3d07d
SE
19595 if test "X$func_dirname_result" = "X${1}"; then
19596 func_dirname_result="${3}"
19597 else
19598 func_dirname_result="$func_dirname_result${2}"
19599 fi
19600}
19601
19602# func_basename file
19603func_basename ()
19604{
43e02a8a 19605 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
1cf3d07d
SE
19606}
19607
6b4a97ed 19608
1cf3d07d
SE
19609# func_stripname prefix suffix name
19610# strip PREFIX and SUFFIX off of NAME.
19611# PREFIX and SUFFIX must not contain globbing or regex special
19612# characters, hashes, percent signs, but SUFFIX may contain a leading
19613# dot (in which case that matches only a dot).
19614# func_strip_suffix prefix name
19615func_stripname ()
19616{
19617 case ${2} in
43e02a8a
RW
19618 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19619 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
1cf3d07d
SE
19620 esac
19621}
19622
19623# sed scripts:
19624my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19625my_sed_long_arg='1s/^-[^=]*=//'
19626
19627# func_opt_split
19628func_opt_split ()
19629{
43e02a8a
RW
19630 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19631 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
1cf3d07d
SE
19632}
19633
19634# func_lo2o object
19635func_lo2o ()
19636{
43e02a8a 19637 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
1cf3d07d 19638}
6b4a97ed
PG
19639
19640# func_xform libobj-or-source
19641func_xform ()
19642{
43e02a8a 19643 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
6b4a97ed
PG
19644}
19645
19646# func_arith arithmetic-term...
19647func_arith ()
19648{
19649 func_arith_result=`expr "$@"`
19650}
19651
19652# func_len string
19653# STRING may not start with a hyphen.
19654func_len ()
19655{
19656 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19657}
19658
1cf3d07d
SE
19659_LT_EOF
19660esac
19661
19662case $lt_shell_append in
19663 yes)
19664 cat << \_LT_EOF >> "$cfgfile"
19665
19666# func_append var value
19667# Append VALUE to the end of shell variable VAR.
19668func_append ()
19669{
19670 eval "$1+=\$2"
19671}
19672_LT_EOF
19673 ;;
19674 *)
19675 cat << \_LT_EOF >> "$cfgfile"
19676
19677# func_append var value
19678# Append VALUE to the end of shell variable VAR.
19679func_append ()
19680{
19681 eval "$1=\$$1\$2"
19682}
6b4a97ed 19683
1cf3d07d
SE
19684_LT_EOF
19685 ;;
19686 esac
19687
19688
19689 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19690 || (rm -f "$cfgfile"; exit 1)
19691
19692 mv -f "$cfgfile" "$ofile" ||
19693 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19694 chmod +x "$ofile"
19695
19696
19697 cat <<_LT_EOF >> "$ofile"
19698
19699# ### BEGIN LIBTOOL TAG CONFIG: FC
19700
19701# The linker used to build libraries.
19702LD=$lt_LD_FC
19703
43e02a8a
RW
19704# How to create reloadable object files.
19705reload_flag=$lt_reload_flag_FC
19706reload_cmds=$lt_reload_cmds_FC
19707
1cf3d07d
SE
19708# Commands used to build an old-style archive.
19709old_archive_cmds=$lt_old_archive_cmds_FC
19710
19711# A language specific compiler.
19712CC=$lt_compiler_FC
19713
19714# Is the compiler the GNU compiler?
19715with_gcc=$GCC_FC
19716
19717# Compiler flag to turn off builtin functions.
19718no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
19719
19720# How to pass a linker flag through the compiler.
19721wl=$lt_lt_prog_compiler_wl_FC
19722
19723# Additional compiler flags for building library objects.
19724pic_flag=$lt_lt_prog_compiler_pic_FC
19725
19726# Compiler flag to prevent dynamic linking.
19727link_static_flag=$lt_lt_prog_compiler_static_FC
19728
19729# Does compiler simultaneously support -c and -o options?
19730compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
19731
19732# Whether or not to add -lc for building shared libraries.
19733build_libtool_need_lc=$archive_cmds_need_lc_FC
19734
19735# Whether or not to disallow shared libs when runtime libs are static.
19736allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
19737
19738# Compiler flag to allow reflexive dlopens.
19739export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
19740
19741# Compiler flag to generate shared objects directly from archives.
19742whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
19743
19744# Whether the compiler copes with passing no objects directly.
19745compiler_needs_object=$lt_compiler_needs_object_FC
19746
19747# Create an old-style archive from a shared archive.
19748old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
19749
19750# Create a temporary old-style archive to link instead of a shared archive.
19751old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
19752
19753# Commands used to build a shared archive.
19754archive_cmds=$lt_archive_cmds_FC
19755archive_expsym_cmds=$lt_archive_expsym_cmds_FC
19756
19757# Commands used to build a loadable module if different from building
19758# a shared archive.
19759module_cmds=$lt_module_cmds_FC
19760module_expsym_cmds=$lt_module_expsym_cmds_FC
19761
19762# Whether we are building with GNU ld or not.
19763with_gnu_ld=$lt_with_gnu_ld_FC
19764
19765# Flag that allows shared libraries with undefined symbols to be built.
19766allow_undefined_flag=$lt_allow_undefined_flag_FC
19767
19768# Flag that enforces no undefined symbols.
19769no_undefined_flag=$lt_no_undefined_flag_FC
19770
19771# Flag to hardcode \$libdir into a binary during linking.
19772# This must work even if \$libdir does not exist
19773hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
19774
19775# If ld is used when linking, flag to hardcode \$libdir into a binary
19776# during linking. This must work even if \$libdir does not exist.
19777hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
19778
19779# Whether we need a single "-rpath" flag with a separated argument.
19780hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
19781
19782# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19783# DIR into the resulting binary.
19784hardcode_direct=$hardcode_direct_FC
19785
19786# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19787# DIR into the resulting binary and the resulting library dependency is
19788# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19789# library is relocated.
19790hardcode_direct_absolute=$hardcode_direct_absolute_FC
19791
19792# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19793# into the resulting binary.
19794hardcode_minus_L=$hardcode_minus_L_FC
19795
19796# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19797# into the resulting binary.
19798hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
19799
19800# Set to "yes" if building a shared library automatically hardcodes DIR
19801# into the library and all subsequent libraries and executables linked
19802# against it.
19803hardcode_automatic=$hardcode_automatic_FC
19804
19805# Set to yes if linker adds runtime paths of dependent libraries
19806# to runtime path list.
19807inherit_rpath=$inherit_rpath_FC
19808
19809# Whether libtool must link a program against all its dependency libraries.
19810link_all_deplibs=$link_all_deplibs_FC
19811
19812# Fix the shell variable \$srcfile for the compiler.
19813fix_srcfile_path=$lt_fix_srcfile_path_FC
19814
19815# Set to "yes" if exported symbols are required.
19816always_export_symbols=$always_export_symbols_FC
19817
19818# The commands to list exported symbols.
19819export_symbols_cmds=$lt_export_symbols_cmds_FC
19820
19821# Symbols that should not be listed in the preloaded symbols.
19822exclude_expsyms=$lt_exclude_expsyms_FC
19823
19824# Symbols that must always be exported.
19825include_expsyms=$lt_include_expsyms_FC
19826
19827# Commands necessary for linking programs (against libraries) with templates.
19828prelink_cmds=$lt_prelink_cmds_FC
19829
19830# Specify filename containing input files.
19831file_list_spec=$lt_file_list_spec_FC
19832
19833# How to hardcode a shared library path into an executable.
19834hardcode_action=$hardcode_action_FC
19835
6b4a97ed
PG
19836# The directories searched by this compiler when creating a shared library.
19837compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
19838
1cf3d07d
SE
19839# Dependencies to place before and after the objects being linked to
19840# create a shared library.
19841predep_objects=$lt_predep_objects_FC
19842postdep_objects=$lt_postdep_objects_FC
19843predeps=$lt_predeps_FC
19844postdeps=$lt_postdeps_FC
19845
19846# The library search path used internally by the compiler when linking
19847# a shared library.
19848compiler_lib_search_path=$lt_compiler_lib_search_path_FC
19849
19850# ### END LIBTOOL TAG CONFIG: FC
19851_LT_EOF
19852
18cbfd85 19853 ;;
5213506e 19854 "gstdint.h":C)
18cbfd85
PB
19855if test "$GCC" = yes; then
19856 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
19857else
19858 echo "/* generated for $CC */" > tmp-stdint.h
19859fi
19860
19861sed 's/^ *//' >> tmp-stdint.h <<EOF
19862
19863 #ifndef GCC_GENERATED_STDINT_H
19864 #define GCC_GENERATED_STDINT_H 1
19865
19866 #include <sys/types.h>
19867EOF
19868
19869if test "$acx_cv_header_stdint" != stdint.h; then
19870 echo "#include <stddef.h>" >> tmp-stdint.h
19871fi
19872if test "$acx_cv_header_stdint" != stddef.h; then
19873 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
19874fi
19875
19876sed 's/^ *//' >> tmp-stdint.h <<EOF
19877 /* glibc uses these symbols as guards to prevent redefinitions. */
19878 #ifdef __int8_t_defined
19879 #define _INT8_T
19880 #define _INT16_T
19881 #define _INT32_T
19882 #endif
19883 #ifdef __uint32_t_defined
19884 #define _UINT32_T
19885 #endif
19886
19887EOF
19888
19889# ----------------- done header, emit basic int types -------------
19890if test "$acx_cv_header_stdint" = stddef.h; then
19891 sed 's/^ *//' >> tmp-stdint.h <<EOF
19892
19893 #ifndef _UINT8_T
19894 #define _UINT8_T
1cf3d07d
SE
19895 #ifndef __uint8_t_defined
19896 #define __uint8_t_defined
b9497ab5 19897 #ifndef uint8_t
18cbfd85
PB
19898 typedef unsigned $acx_cv_type_int8_t uint8_t;
19899 #endif
1cf3d07d 19900 #endif
b9497ab5 19901 #endif
18cbfd85
PB
19902
19903 #ifndef _UINT16_T
19904 #define _UINT16_T
1cf3d07d
SE
19905 #ifndef __uint16_t_defined
19906 #define __uint16_t_defined
b9497ab5 19907 #ifndef uint16_t
18cbfd85
PB
19908 typedef unsigned $acx_cv_type_int16_t uint16_t;
19909 #endif
1cf3d07d 19910 #endif
b9497ab5 19911 #endif
18cbfd85
PB
19912
19913 #ifndef _UINT32_T
19914 #define _UINT32_T
1cf3d07d
SE
19915 #ifndef __uint32_t_defined
19916 #define __uint32_t_defined
b9497ab5 19917 #ifndef uint32_t
18cbfd85
PB
19918 typedef unsigned $acx_cv_type_int32_t uint32_t;
19919 #endif
1cf3d07d 19920 #endif
b9497ab5 19921 #endif
18cbfd85
PB
19922
19923 #ifndef _INT8_T
19924 #define _INT8_T
1cf3d07d
SE
19925 #ifndef __int8_t_defined
19926 #define __int8_t_defined
b9497ab5 19927 #ifndef int8_t
18cbfd85
PB
19928 typedef $acx_cv_type_int8_t int8_t;
19929 #endif
1cf3d07d 19930 #endif
b9497ab5 19931 #endif
18cbfd85
PB
19932
19933 #ifndef _INT16_T
19934 #define _INT16_T
1cf3d07d
SE
19935 #ifndef __int16_t_defined
19936 #define __int16_t_defined
b9497ab5 19937 #ifndef int16_t
18cbfd85
PB
19938 typedef $acx_cv_type_int16_t int16_t;
19939 #endif
1cf3d07d 19940 #endif
b9497ab5 19941 #endif
18cbfd85
PB
19942
19943 #ifndef _INT32_T
19944 #define _INT32_T
1cf3d07d
SE
19945 #ifndef __int32_t_defined
19946 #define __int32_t_defined
b9497ab5 19947 #ifndef int32_t
18cbfd85
PB
19948 typedef $acx_cv_type_int32_t int32_t;
19949 #endif
1cf3d07d 19950 #endif
b9497ab5 19951 #endif
18cbfd85
PB
19952EOF
19953elif test "$ac_cv_type_u_int32_t" = yes; then
19954 sed 's/^ *//' >> tmp-stdint.h <<EOF
19955
19956 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
19957 #ifndef _INT8_T
19958 #define _INT8_T
19959 #endif
19960 #ifndef _INT16_T
19961 #define _INT16_T
19962 #endif
19963 #ifndef _INT32_T
19964 #define _INT32_T
19965 #endif
19966
19967 #ifndef _UINT8_T
19968 #define _UINT8_T
1cf3d07d
SE
19969 #ifndef __uint8_t_defined
19970 #define __uint8_t_defined
b9497ab5 19971 #ifndef uint8_t
18cbfd85
PB
19972 typedef u_int8_t uint8_t;
19973 #endif
1cf3d07d 19974 #endif
b9497ab5 19975 #endif
18cbfd85
PB
19976
19977 #ifndef _UINT16_T
19978 #define _UINT16_T
1cf3d07d
SE
19979 #ifndef __uint16_t_defined
19980 #define __uint16_t_defined
b9497ab5 19981 #ifndef uint16_t
18cbfd85
PB
19982 typedef u_int16_t uint16_t;
19983 #endif
1cf3d07d 19984 #endif
b9497ab5 19985 #endif
18cbfd85
PB
19986
19987 #ifndef _UINT32_T
19988 #define _UINT32_T
1cf3d07d
SE
19989 #ifndef __uint32_t_defined
19990 #define __uint32_t_defined
b9497ab5 19991 #ifndef uint32_t
18cbfd85
PB
19992 typedef u_int32_t uint32_t;
19993 #endif
1cf3d07d 19994 #endif
b9497ab5 19995 #endif
18cbfd85
PB
19996EOF
19997else
19998 sed 's/^ *//' >> tmp-stdint.h <<EOF
19999
20000 /* Some systems have guard macros to prevent redefinitions, define them. */
20001 #ifndef _INT8_T
20002 #define _INT8_T
20003 #endif
20004 #ifndef _INT16_T
20005 #define _INT16_T
20006 #endif
20007 #ifndef _INT32_T
20008 #define _INT32_T
20009 #endif
20010 #ifndef _UINT8_T
20011 #define _UINT8_T
20012 #endif
20013 #ifndef _UINT16_T
20014 #define _UINT16_T
20015 #endif
20016 #ifndef _UINT32_T
20017 #define _UINT32_T
20018 #endif
20019EOF
20020fi
20021
20022# ------------- done basic int types, emit int64_t types ------------
20023if test "$ac_cv_type_uint64_t" = yes; then
20024 sed 's/^ *//' >> tmp-stdint.h <<EOF
20025
20026 /* system headers have good uint64_t and int64_t */
20027 #ifndef _INT64_T
20028 #define _INT64_T
20029 #endif
20030 #ifndef _UINT64_T
20031 #define _UINT64_T
20032 #endif
20033EOF
20034elif test "$ac_cv_type_u_int64_t" = yes; then
20035 sed 's/^ *//' >> tmp-stdint.h <<EOF
20036
20037 /* system headers have an u_int64_t (and int64_t) */
20038 #ifndef _INT64_T
20039 #define _INT64_T
20040 #endif
20041 #ifndef _UINT64_T
20042 #define _UINT64_T
1cf3d07d
SE
20043 #ifndef __uint64_t_defined
20044 #define __uint64_t_defined
b9497ab5 20045 #ifndef uint64_t
18cbfd85
PB
20046 typedef u_int64_t uint64_t;
20047 #endif
1cf3d07d 20048 #endif
b9497ab5 20049 #endif
18cbfd85
PB
20050EOF
20051elif test -n "$acx_cv_type_int64_t"; then
20052 sed 's/^ *//' >> tmp-stdint.h <<EOF
20053
20054 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
20055 #ifndef _INT64_T
20056 #define _INT64_T
b9497ab5 20057 #ifndef int64_t
18cbfd85
PB
20058 typedef $acx_cv_type_int64_t int64_t;
20059 #endif
b9497ab5 20060 #endif
18cbfd85
PB
20061 #ifndef _UINT64_T
20062 #define _UINT64_T
1cf3d07d
SE
20063 #ifndef __uint64_t_defined
20064 #define __uint64_t_defined
b9497ab5 20065 #ifndef uint64_t
18cbfd85
PB
20066 typedef unsigned $acx_cv_type_int64_t uint64_t;
20067 #endif
1cf3d07d 20068 #endif
b9497ab5 20069 #endif
18cbfd85
PB
20070EOF
20071else
20072 sed 's/^ *//' >> tmp-stdint.h <<EOF
20073
20074 /* some common heuristics for int64_t, using compiler-specific tests */
20075 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
20076 #ifndef _INT64_T
20077 #define _INT64_T
1cf3d07d 20078 #ifndef __int64_t_defined
b9497ab5 20079 #ifndef int64_t
18cbfd85
PB
20080 typedef long long int64_t;
20081 #endif
1cf3d07d 20082 #endif
b9497ab5 20083 #endif
18cbfd85
PB
20084 #ifndef _UINT64_T
20085 #define _UINT64_T
b9497ab5 20086 #ifndef uint64_t
18cbfd85
PB
20087 typedef unsigned long long uint64_t;
20088 #endif
b9497ab5 20089 #endif
18cbfd85
PB
20090
20091 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
20092 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
20093 does not implement __extension__. But that compiler doesn't define
20094 __GNUC_MINOR__. */
20095 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
20096 # define __extension__
20097 # endif
20098
20099 # ifndef _INT64_T
20100 # define _INT64_T
b9497ab5 20101 # ifndef int64_t
18cbfd85
PB
20102 __extension__ typedef long long int64_t;
20103 # endif
b9497ab5 20104 # endif
18cbfd85
PB
20105 # ifndef _UINT64_T
20106 # define _UINT64_T
b9497ab5 20107 # ifndef uint64_t
18cbfd85
PB
20108 __extension__ typedef unsigned long long uint64_t;
20109 # endif
b9497ab5 20110 # endif
18cbfd85
PB
20111
20112 #elif !defined __STRICT_ANSI__
20113 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
20114
20115 # ifndef _INT64_T
20116 # define _INT64_T
b9497ab5 20117 # ifndef int64_t
18cbfd85
PB
20118 typedef __int64 int64_t;
20119 # endif
b9497ab5 20120 # endif
18cbfd85
PB
20121 # ifndef _UINT64_T
20122 # define _UINT64_T
b9497ab5 20123 # ifndef uint64_t
18cbfd85
PB
20124 typedef unsigned __int64 uint64_t;
20125 # endif
b9497ab5 20126 # endif
18cbfd85
PB
20127 # endif /* compiler */
20128
20129 #endif /* ANSI version */
20130EOF
20131fi
20132
20133# ------------- done int64_t types, emit intptr types ------------
20134if test "$ac_cv_type_uintptr_t" != yes; then
20135 sed 's/^ *//' >> tmp-stdint.h <<EOF
20136
20137 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
1cf3d07d 20138 #ifndef __uintptr_t_defined
b9497ab5 20139 #ifndef uintptr_t
18cbfd85 20140 typedef u$acx_cv_type_intptr_t uintptr_t;
1cf3d07d 20141 #endif
b9497ab5 20142 #endif
1cf3d07d 20143 #ifndef __intptr_t_defined
b9497ab5 20144 #ifndef intptr_t
18cbfd85 20145 typedef $acx_cv_type_intptr_t intptr_t;
1cf3d07d 20146 #endif
b9497ab5 20147 #endif
18cbfd85
PB
20148EOF
20149fi
20150
20151# ------------- done intptr types, emit int_least types ------------
20152if test "$ac_cv_type_int_least32_t" != yes; then
20153 sed 's/^ *//' >> tmp-stdint.h <<EOF
20154
20155 /* Define int_least types */
20156 typedef int8_t int_least8_t;
20157 typedef int16_t int_least16_t;
20158 typedef int32_t int_least32_t;
20159 #ifdef _INT64_T
20160 typedef int64_t int_least64_t;
20161 #endif
20162
20163 typedef uint8_t uint_least8_t;
20164 typedef uint16_t uint_least16_t;
20165 typedef uint32_t uint_least32_t;
20166 #ifdef _UINT64_T
20167 typedef uint64_t uint_least64_t;
20168 #endif
20169EOF
20170fi
20171
20172# ------------- done intptr types, emit int_fast types ------------
20173if test "$ac_cv_type_int_fast32_t" != yes; then
20174 sed 's/^ *//' >> tmp-stdint.h <<EOF
20175
20176 /* Define int_fast types. short is often slow */
20177 typedef int8_t int_fast8_t;
20178 typedef int int_fast16_t;
20179 typedef int32_t int_fast32_t;
20180 #ifdef _INT64_T
20181 typedef int64_t int_fast64_t;
20182 #endif
20183
20184 typedef uint8_t uint_fast8_t;
20185 typedef unsigned int uint_fast16_t;
20186 typedef uint32_t uint_fast32_t;
20187 #ifdef _UINT64_T
20188 typedef uint64_t uint_fast64_t;
20189 #endif
20190EOF
20191fi
20192
20193if test "$ac_cv_type_uintmax_t" != yes; then
20194 sed 's/^ *//' >> tmp-stdint.h <<EOF
20195
20196 /* Define intmax based on what we found */
b9497ab5 20197 #ifndef intmax_t
18cbfd85
PB
20198 #ifdef _INT64_T
20199 typedef int64_t intmax_t;
20200 #else
20201 typedef long intmax_t;
20202 #endif
b9497ab5
RO
20203 #endif
20204 #ifndef uintmax_t
18cbfd85
PB
20205 #ifdef _UINT64_T
20206 typedef uint64_t uintmax_t;
20207 #else
20208 typedef unsigned long uintmax_t;
20209 #endif
b9497ab5 20210 #endif
18cbfd85
PB
20211EOF
20212fi
20213
20214sed 's/^ *//' >> tmp-stdint.h <<EOF
20215
20216 #endif /* GCC_GENERATED_STDINT_H */
20217EOF
20218
20219if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
20220 rm -f tmp-stdint.h
20221else
20222 mv -f tmp-stdint.h gstdint.h
20223fi
20224
953ff289 20225 ;;
5213506e 20226
953ff289 20227 esac
5213506e 20228done # for ac_tag
953ff289 20229
953ff289 20230
5213506e 20231as_fn_exit 0
953ff289 20232_ACEOF
953ff289
DN
20233ac_clean_files=$ac_clean_files_save
20234
5213506e 20235test $ac_write_fail = 0 ||
22e05272 20236 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5213506e 20237
953ff289
DN
20238
20239# configure is writing to config.log, and then calls config.status.
20240# config.status does its own redirection, appending to config.log.
20241# Unfortunately, on DOS this fails, as config.log is still kept open
20242# by configure, so config.status won't be able to write to it; its
20243# output is simply discarded. So we exec the FD to /dev/null,
20244# effectively closing config.log, so it can be properly (re)opened and
20245# appended to by config.status. When coming back to configure, we
20246# need to make the FD available again.
20247if test "$no_create" != yes; then
20248 ac_cs_success=:
20249 ac_config_status_args=
20250 test "$silent" = yes &&
20251 ac_config_status_args="$ac_config_status_args --quiet"
20252 exec 5>/dev/null
20253 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20254 exec 5>>config.log
20255 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20256 # would make configure fail if this is the last instruction.
22e05272 20257 $ac_cs_success || as_fn_exit 1
5213506e
RW
20258fi
20259if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20261$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
953ff289
DN
20262fi
20263